pthread_sigmask: fix bug on FreeBSD 9
[gnulib.git] / ChangeLog
1 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2
3         pthread_sigmask: fix bug on FreeBSD 9
4         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
5         Include string.h.
6         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
7         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
8         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
9         but pthread_sigmask (1729, NULL, NULL) returns zero.
10         See <http://bugs.gnu.org/11884>.
11         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
12         by inspecting whether the main call changed the old mask.
13
14 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
15
16         README-release: make it more legible
17         * top/README-release: Improve typography slightly.
18
19 2012-07-15  Jim Meyering  <meyering@redhat.com>
20
21         maint: require that each sc_... command start with "@"
22         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
23         "make sc_maint" helps us avoid this nit.
24
25 2012-07-15  Jim Meyering  <meyering@redhat.com>
26
27         maint.mk: add leading "@" to quiet new "make syntax-check" rule
28         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
29
30 2012-07-13  Eric Blake  <eblake@redhat.com>
31
32         maint.mk: new syntax check for HAVE_DECL checks
33         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34         * cfg.mk
35         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36         Exempt some false positives.
37         Based on a report by Karel Zak.
38
39         argp: make HAVE_DECL usage consistent
40         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
41         macros, not whether they are defined.
42         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
43         convention with other declaration checks.
44         Reported by Karel Zak, with suggestions from Paul Eggert.
45
46         stat-time: relax license to LGPLv2+
47         * modules/stat-time (License): Relax, with consent of all authors.
48
49         strndup: fix m4 usage error
50         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
51         defined, to either 0 or 1.
52         Reported by Karel Zak.
53
54 2012-07-11  Jim Meyering  <meyering@redhat.com>
55
56         maint: enable the sc_avoid_if_before_free syntax-check rule
57         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
58         (if_before_free_offenders_): Define.
59         (if_before_free_basename_re_): Define.
60         Exempt current files with useless if-before-free.
61
62 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63
64         gettext: do not assume '#define ... defined ...' behavior
65         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
66         Do not use '#define FOO ... defined BAR ...', as the C standard says
67         it's not portable to expect that this works after macro expansion.
68         Problem reported for gzip by Steven M. Schweda in
69         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
70
71 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72
73         getloadavg: clean out old Emacs and Autoconf cruft
74         See Glenn Morris in <http://bugs.gnu.org/11905>.
75         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
76         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
77         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
78         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
79
80 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
81
82         bootstrap: let warn be like tests/init.sh's warn_
83         Reported by Jim Meyering.
84         * build-aux/bootstrap (warn): Remove, replaced by...
85         (warnf_, warn_): these.
86         Adjust callers.
87         Shorten messages that no longer fit in 80 columns.
88
89 2012-07-09  Bruno Haible  <bruno@clisp.org>
90
91         getopt: Simplify after Emacs changed.
92         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
93         (gl_GETOPT_IFELSE): Remove macro.
94
95 2012-07-09  Jim Meyering  <meyering@redhat.com>
96
97         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
98         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
99
100         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
101         Bugs in both of those conspired to make the
102         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
103         _sc_search_regexp's handling of non-empty $in_files would filter
104         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
105         choice of in_files value meant there would be no match in most
106         projects, due to the presence of two or more Makefile.in files.
107         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
108         Fix a bug in how a non-empty $$in_files was processed:
109         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
110         in spite of the name, it's a regexp, not a list of file names.
111
112 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113
114         getloadavg, getopt: fix commentary re configure.in
115         Autoconf is deprecating the name 'configure.in', so change it to
116         to the new name 'configure.ac' in a couple of places.
117         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
118         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
119         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
120         Emacs has renamed it to configure.ac, and it no longer refers
121         to these macros anyway.
122
123         timespec: mark functions with const attributes
124         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
125         Mark with _GL_ATTRIBUTE_CONST.
126
127 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
128
129         canonicalize[-lgpl]: handle "guessing" values when cross-building
130         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
131         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
132         matches "*yes" instead of just "yes".  Regression introduced in commit
133         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
134
135 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
136             Bruno Haible  <bruno@clisp.org>
137
138         canonicalize: make the right guess when cross-compiling to GNU
139         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
140         determine whether cross-compiling to glibc systems, so as to
141         include GNU/Hurd.
142
143 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
144
145         timespec-sub: avoid duplicate include
146         * lib/timespec-sub.c: Do not include <config.h> twice.
147         Reported by Juanma Barranquero.
148
149 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
150
151         bootstrap: use a more consistent error reporting scheme
152         * build-aux/bootstrap (warn, die): New.
153         Use them.
154
155 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
156
157         sys_time: allow too-wide tv_sec
158         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
159         timeval even if tv_sec is wider than time_t.  This allows
160         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
161         as without this patch gnulib replaces struct timeval
162         and OpenBSD futimes therefore has a type mismatch.
163         * doc/posix-headers/sys_time.texi: Mention this.
164
165         pthread: check for both pthread_create and pthread_join
166         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
167         alter the check so that it tests for both pthread_create and
168         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
169         Suggested by Bruno Haible and Richard Yao in
170         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
171
172         parse-datetime: doc tuneup
173         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
174         spacing issues.
175
176 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
177
178         do-release-commit-and-tag: fix the previous commit
179         * build-aux/do-release-commit-and-tag: Actually the test was right,
180         but the comment and the error message were misleading.
181         Fix comment, and improve error message.
182         Perform check first, so that NEWS is not modified uselessly.
183
184         do-release-commit-and-tag: fix typo
185         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
186         _not_ start with a stub.
187
188 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
189
190         pthread: check for pthread_create, not pthread_join
191         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
192         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
193         pthread_join in libc.  I hope this removes the need for all the
194         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
195         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
196
197 2012-07-04  Jim Meyering  <meyering@redhat.com>
198
199         parse-datetime: fix failure to diagnose invalid input
200         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
201         rather than diagnosing the invalid input.  Now it reports this:
202         date: invalid date '\260'
203         * lib/parse-datetime.y (to_uchar): Define.
204         (yylex): Don't sign-extend "other" bytes.
205         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
206         Thanks to Bruno Haible for the patch to this file.
207         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
208         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
209
210 2012-07-03  Jim Meyering  <meyering@redhat.com>
211
212         bootstrap: do not require now-removed build-aux/missing
213         Now that build-aux/missing is, er, missing, bootstrap would
214         silently fail.
215         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
216         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
217         no longer part of gnulib.
218         Diagnose the failure.
219
220 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
221
222         alloca: add support for HP NonStop TNS/E native
223         * lib/alloca.in.h (alloca): Support the new host.
224         From a suggestion by Joachim Schmitz in
225         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
226
227 2012-07-02  Pádraig Brady  <P@draigBrady.com>
228
229         fsusage: remove code not needed on non GNU/Linux systems.
230
231         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
232         Don't include headers no longer needed in this case.
233         * lib/fsusage.c [STAT_STATVFS &&
234         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
235         STAT_STATFS2_FRSIZE to exclude code not used in this case.
236
237 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
238
239         fsusage: include files needed for glibc 2.6 fallback
240         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
241         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
242         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
243         Problem reported by Ludovic Courtès in
244         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
245
246         fsusage: avoid needless check on GNU/Linux
247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
248         on GNU/Linux systems, since it can't possibly work.
249
250 2012-07-01  Bruno Haible  <bruno@clisp.org>
251
252         log: Fix an autoconf >= 2.64 warning.
253         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
254         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
255
256 2012-06-28  Bruno Haible  <bruno@clisp.org>
257
258         log10f: Fix possible configuration problem.
259         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
260         $LOGF_LIBM.
261         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
262
263 2012-06-28  Bruno Haible  <bruno@clisp.org>
264
265         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
266         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
267         not gl_cv_func_unlink_works.
268         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
269
270 2012-06-27  Eric Blake  <eblake@redhat.com>
271
272         config: drop scripts that automake says are not independent
273         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
274         * build-aux/elisp-comp: Delete.
275         * build-aux/missing: Likewise.
276         * build-aux/ylwrap: Likewise.
277         * modules/elisp-comp: Likewise.
278         * MODULES.html.sh: Drop mention of elisp-comp.
279         * NEWS: Mention this.
280
281 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
282
283         root-uid: new module
284         This is for portability to Tandem's NonStop Kernel.
285         * lib/root-uid.h, modules/root-uid: New files.
286         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
287         * lib/write-any-file.c, tests/test-sethostname2.c:
288         Include "root-uid.h".
289         * lib/euidaccess.c (euidaccess):
290         * lib/pt_chown.c (main):
291         * lib/unlinkdir.c (cannot_unlink_dir):
292         * lib/write-any-file.c (can_write_any_file):
293         * m4/mknod.m4 (gl_FUNC_MKNOD):
294         * tests/test-sethostname2.c (geteuid, main):
295         Don't assume ROOT_UID == 0.
296         * modules/euidaccess (Depends-on):
297         * modules/pt_chown (Depends-on):
298         * modules/sethostname-tests (Depends-on):
299         * modules/unlinkdir (Depends-on):
300         * modules/write-any-file (Depends-on):
301         Add root-uid.
302
303         regex: use locale-independent comparison for codeset name
304         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
305         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
306         for codeset name.
307         * lib/regex_internal.h: Do not include <strings.h>, since we
308         no longer use strcasecmp.
309         * modules/regex (Depends-on): Remove strcase.
310
311 2012-06-23  Bruno Haible  <bruno@clisp.org>
312
313         getopt-posix: No longer guarantee that option processing is resettable.
314         * doc/posix-functions/getopt.texi: Drop description of problem with
315         internal state. Fix info about mingw and msvc9.
316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
317         option processing by getopt(). Run three test programs instead of one.
318         Simplify cross-compilation guess.
319         * NEWS: Mention the change.
320         Reported by Rich Felker <dalias@aerifal.cx>.
321
322 2012-06-26  Bruno Haible  <bruno@clisp.org>
323
324         argp, regex: Ensure strcasecmp gets declared.
325         * lib/argp-help.c: Include <strings.h>.
326         * lib/regex_internal.h: Likewise.
327         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
328
329 2012-06-24  Bruno Haible  <bruno@clisp.org>
330
331         ptsname_r: Make it consistent with ptsname on AIX.
332         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
333         implementation as for OSF/1.
334         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
335         a pty master.
336
337         ptsname_r: Make it consistent with ptsname on OSF/1.
338         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
339         OSF/1.
340
341 2012-06-24  Bruno Haible  <bruno@clisp.org>
342
343         ttyname_r: Fix result on OSF/1, Solaris.
344         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
345
346 2012-06-24  Bruno Haible  <bruno@clisp.org>
347
348         ptsname_r: Add support for Solaris.
349         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
350         Solaris.
351
352         ptsname_r: Fix test failure on native Windows.
353         * modules/ptsname_r (Depends-on): Add isatty.
354
355         ptsname_r: Fix test failures on IRIX, Solaris.
356         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
357         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
358         accordingly.
359         * lib/ptsname_r.c: Include <fcntl.h>.
360         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
361         set errno if fd is invalid.
362         * tests/test-isatty.c (main): Update comments.
363
364 2012-06-24  Bruno Haible  <bruno@clisp.org>
365
366         ptsname test: Extend test.
367         * tests/test-ptsname.c: Include <errno.h>.
368         (main): Test behaviour with invalid file descriptor.
369
370 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
371
372         time: fix obsolete comment
373         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
374         reference to HAVE_STRUCT_TIMESPEC in comment.
375
376 2012-06-23  Bruno Haible  <bruno@clisp.org>
377
378         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
380         does not handle abbreviated long options with equivalent
381         disambiguations, set gl_replace_getopt to yes.
382         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
383
384 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
385
386         time_r: fix typo that always overrode localtime_r decl
387         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
388         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
389         not in a standard include.
390
391 2012-06-22  Bruno Haible  <bruno@clisp.org>
392
393         Write "Mac OS X" instead of "MacOS X".
394         * README: Write "Mac OS X" instead of "MacOS X".
395         * build-aux/bootstrap: Likewise.
396         * build-aux/install-reloc: Likewise.
397         * lib/acl-internal.h: Likewise.
398         * lib/acl_entries.c: Likewise.
399         * lib/argp-ba.c: Likewise.
400         * lib/argp-pv.c: Likewise.
401         * lib/config.charset: Likewise.
402         * lib/copy-acl.c: Likewise.
403         * lib/csharpexec.c: Likewise.
404         * lib/euidaccess.c: Likewise.
405         * lib/fbufmode.c: Likewise.
406         * lib/fflush.c: Likewise.
407         * lib/file-has-acl.c: Likewise.
408         * lib/filemode.h: Likewise.
409         * lib/fpurge.c: Likewise.
410         * lib/freadable.c: Likewise.
411         * lib/freadahead.c: Likewise.
412         * lib/freading.c: Likewise.
413         * lib/freadptr.c: Likewise.
414         * lib/freadseek.c: Likewise.
415         * lib/fseeko.c: Likewise.
416         * lib/fseterr.c: Likewise.
417         * lib/fsusage.c: Likewise.
418         * lib/fwritable.c: Likewise.
419         * lib/fwriting.c: Likewise.
420         * lib/get-rusage-as.c: Likewise.
421         * lib/get-rusage-data.c: Likewise.
422         * lib/getdomainname.c: Likewise.
423         * lib/idpriv-drop.c: Likewise.
424         * lib/idpriv-droptemp.c: Likewise.
425         * lib/localcharset.c: Likewise.
426         * lib/locale.in.h: Likewise.
427         * lib/localename.c: Likewise.
428         * lib/mbsrtowcs-state.c: Likewise.
429         * lib/nproc.c: Likewise.
430         * lib/passfd.c: Likewise.
431         * lib/posix_openpt.c: Likewise.
432         * lib/printf-parse.c: Likewise.
433         * lib/progreloc.c: Likewise.
434         * lib/safe-read.h: Likewise.
435         * lib/safe-write.h: Likewise.
436         * lib/sched.in.h: Likewise.
437         * lib/set-mode-acl.c: Likewise.
438         * lib/signal.in.h: Likewise.
439         * lib/stdint.in.h: Likewise.
440         * lib/stdio-impl.h: Likewise.
441         * lib/stdlib.in.h: Likewise.
442         * lib/strtod.c: Likewise.
443         * lib/sys_select.in.h: Likewise.
444         * lib/tcgetsid.c: Likewise.
445         * lib/unistd.in.h: Likewise.
446         * lib/unlockpt.c: Likewise.
447         * lib/vasnprintf.c: Likewise.
448         * lib/vma-iter.c: Likewise.
449         * lib/wcsrtombs-state.c: Likewise.
450         * m4/acl.m4: Likewise.
451         * m4/acosl.m4: Likewise.
452         * m4/asinl.m4: Likewise.
453         * m4/atanl.m4: Likewise.
454         * m4/c-stack.m4: Likewise.
455         * m4/cosl.m4: Likewise.
456         * m4/expl.m4: Likewise.
457         * m4/extensions.m4: Likewise.
458         * m4/fdatasync.m4: Likewise.
459         * m4/fmal.m4: Likewise.
460         * m4/frexp.m4: Likewise.
461         * m4/frexpf.m4: Likewise.
462         * m4/frexpl.m4: Likewise.
463         * m4/fsusage.m4: Likewise.
464         * m4/getdomainname.m4: Likewise.
465         * m4/getloadavg.m4: Likewise.
466         * m4/getopt.m4: Likewise.
467         * m4/gettext.m4: Likewise.
468         * m4/gnulib-common.m4: Likewise.
469         * m4/intdiv0.m4: Likewise.
470         * m4/intlmacosx.m4: Likewise.
471         * m4/largefile.m4: Likewise.
472         * m4/ldexpl.m4: Likewise.
473         * m4/link-follow.m4: Likewise.
474         * m4/locale-ar.m4: Likewise.
475         * m4/locale-fr.m4: Likewise.
476         * m4/locale-ja.m4: Likewise.
477         * m4/locale-tr.m4: Likewise.
478         * m4/locale-zh.m4: Likewise.
479         * m4/locale_h.m4: Likewise.
480         * m4/lock.m4: Likewise.
481         * m4/logl.m4: Likewise.
482         * m4/mathfunc.m4: Likewise.
483         * m4/minus-zero.m4: Likewise.
484         * m4/mktime.m4: Likewise.
485         * m4/mmap-anon.m4: Likewise.
486         * m4/multiarch.m4: Likewise.
487         * m4/nanosleep.m4: Likewise.
488         * m4/nocrash.m4: Likewise.
489         * m4/poll.m4: Likewise.
490         * m4/printf-frexpl.m4: Likewise.
491         * m4/printf.m4: Likewise.
492         * m4/signbit.m4: Likewise.
493         * m4/sinl.m4: Likewise.
494         * m4/sqrtl.m4: Likewise.
495         * m4/strerror_r.m4: Likewise.
496         * m4/tanl.m4: Likewise.
497         * m4/threadlib.m4: Likewise.
498         * m4/ttyname_r.m4: Likewise.
499         * m4/unlink.m4: Likewise.
500         * m4/visibility.m4: Likewise.
501         * m4/wcwidth.m4: Likewise.
502         * tests/minus-zero.h: Likewise.
503         * tests/test-alloca-opt.c: Likewise.
504         * tests/test-copy-acl.sh: Likewise.
505         * tests/test-copy-file.sh: Likewise.
506         * tests/test-fdatasync.c: Likewise.
507         * tests/test-file-has-acl.sh: Likewise.
508         * tests/test-flock.c: Likewise.
509         * tests/test-fsync.c: Likewise.
510         * tests/test-localename.c: Likewise.
511         * tests/test-malloca.c: Likewise.
512         * tests/test-nonblocking-pipe.h: Likewise.
513         * tests/test-nonblocking-socket.h: Likewise.
514         * tests/test-openpty.c: Likewise.
515         * tests/test-posix_openpt.c: Likewise.
516         * tests/test-ptsname.c: Likewise.
517         * tests/test-ptsname_r.c: Likewise.
518         * tests/test-sameacls.c: Likewise.
519         * tests/test-select.h: Likewise.
520         * tests/test-set-mode-acl.sh: Likewise.
521         * tests/test-snprintf-posix.h: Likewise.
522         * tests/test-sprintf-posix.h: Likewise.
523         * tests/test-strtod.c: Likewise.
524         * tests/test-time.c: Likewise.
525         * tests/test-vasnprintf-posix.c: Likewise.
526         * tests/test-vasprintf-posix.c: Likewise.
527         * doc/acl-resources.txt: Likewise.
528         * doc/**/*.texi: Likewise.
529         Reported by Max Horn <max@quendi.de>.
530
531 2012-06-22  Bruno Haible  <bruno@clisp.org>
532
533         grantpt: Relax requirement regarding invalid file descriptors.
534         * lib/grantpt.c: Don't include <fcntl.h>.
535         (grantpt): Don't verify the validity of the file descriptor.
536         * modules/grantpt (Depends-on): Remove fcntl-h.
537         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
538         file descriptors.
539         * doc/posix-functions/grantpt.texi: Document more platforms on which
540         grantpt succeeds for invalid file descriptors.
541         Reported by Rich Felker <dalias@aerifal.cx>.
542
543 2012-06-22  Bruno Haible  <bruno@clisp.org>
544
545         fbufmode test: Don't test unportable behaviour.
546         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
547         (main): Invoke it three times.
548         Reported by Szabolcs Nagy <nsz@port70.net>
549         and Rich Felker <dalias@aerifal.cx>.
550
551 2012-06-21  Bruno Haible  <bruno@clisp.org>
552
553         gnulib-tool: Refactor inctests variable.
554         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
555         (func_modules_transitive_closure,
556         func_modules_transitive_closure_separately,
557         func_import, func_create_testdir): Update.
558
559         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
560         * gnulib-tool: Accept option --without-tests.
561         (func_usage): Document --without-tests option. Rearrange.
562         (inctests): Normalize according to the mode.
563         * NEWS: Mention the change.
564         Suggested by Simon Josefsson.
565
566 2012-06-21  Bruce Korb  <bkorb@gnu.org>
567
568         parse-duration test: Avoid spurious output.
569         * tests/test-parse-duration.sh: Reindent with leading tabs.
570
571 2012-06-21  Jim Meyering  <meyering@redhat.com>
572
573         maint: disable the strncpy prohibition
574         * cfg.mk: Do not prohibit strncpy here.
575
576 2012-06-21  Bruno Haible  <bruno@clisp.org>
577
578         nonblocking: Avoid compilation error on mingw64.
579         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
580         fscanf.
581         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
582         * modules/vfscanf (configure.ac): Likewise.
583         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
584         definition only if stdio.h has prepared it.
585         Reported by Daniel P. Berrange <berrange@redhat.com>.
586
587 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
588
589         gnulib-tool: Use readlink if it is available.
590         * gnulib-tool (func_readlink): Choose function more appropriately.
591
592 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
593
594         posixtm-tests: port to buggy compiler
595         Problem reported by Simon Josefsson in
596         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
597         * modules/posixtm-tests (Depends-on): Add stdint.
598         * tests/test-posixtm.c (struct posixtm_test.t_expected):
599         Now of type int_least64_t, not int64_t, both because that's
600         what INT64_C returns and because int_least64_t works even
601         on 72-bit hosts.
602         (T): Use INT64_C on constants outside the traditional int range,
603         to work around compiler bug noted by Simon.
604
605         mktime: fix integer overflow in 'configure'-time test
606         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
607         after integer overflow.  Problem reported by Rich Felker in
608         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
609         Also, don't look for further instances of a bug if we've already
610         found one instance; this helps 'configure' run faster.
611
612 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
613
614         tmpfile, clean-temp: Fix invocation of GetVersionEx.
615         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
616         GetVersionEx correctly.
617         * lib/clean-temp.c (supports_delete_on_close): Likewise.
618
619 2012-06-20  Bruno Haible  <bruno@clisp.org>
620
621         fdopen: Allow implementations that don't reject invalid fd arguments.
622         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
623         succeeds.
624         Reported by Rich Felker <dalias@aerifal.cx>.
625
626 2012-06-20  Simon Josefsson  <simon@josefsson.org>
627
628         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
629         bring in LIBINTL.
630
631 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
632
633         init.sh: do not rely on autoupated PWD
634         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
635         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
636         Although Nelson's bug was not necessarily fixed by this patch,
637         it seems wise to make the change for safety.
638         * tests/init.sh (path_prepend_): Do not rely on PWD updating
639         automagically after 'cd'; this is not reliable on older shells.
640         (setup_): Fail if we cannot cd to temporary directory.
641
642 2012-06-19  Bruno Haible  <bruno@clisp.org>
643
644         stat, fstat: Avoid warnings on mingw64.
645         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
646         redefining.
647         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
648         Reported by Daniel P. Berrange <berrange@redhat.com>.
649
650 2012-06-19  Bruno Haible  <bruno@clisp.org>
651
652         stdioext: Add support for musl libc.
653
654         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
655         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
656
657         * m4/fseterr.m4: New file.
658         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
659         function exists.
660         * modules/fseterr (Files): Add m4/fseterr.m4.
661         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
662         __fseterr does not exist.
663         (Makefile.am): Remove fseterr.c from lib_SOURCES.
664
665         * lib/freadable.h: Update comment.
666
667         * lib/fwritable.h: Update comment.
668
669         * lib/freading.h: Update comment.
670
671         * lib/fwriting.h: Update comment.
672
673         * m4/freadahead.m4: New file.
674         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
675         that function exists.
676         * modules/freadahead (Files): Add m4/freadahead.m4.
677         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
678         __freadahead does not exist.
679         (Makefile.am): Remove freadahead.c from lib_SOURCES.
680
681         * m4/freadptr.m4: New file.
682         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
683         function exists.
684         * modules/freadptr (Files): Add m4/freadptr.m4.
685         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
686         __freadptr does not exist.
687         (Makefile.am): Remove freadptr.c from lib_SOURCES.
688
689         * m4/freadseek.m4: New file.
690         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
691         exists.
692         * modules/freadseek (Files): Add m4/freadseek.m4.
693         (configure.ac): Invoke gl_FUNC_FREADSEEK.
694
695         * lib/fpurge.c (fpurge): Update comment.
696
697         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
698
699 2012-06-19  Bruno Haible  <bruno@clisp.org>
700
701         *printf-posix: Put more info into config.log.
702         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
703         exit code into config.log.
704
705 2012-06-19  Bruno Haible  <bruno@clisp.org>
706
707         getopt-gnu: Fix exit code overflow in autoconf test.
708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
709         to keep them below < 128.
710
711 2012-06-17  Jim Meyering  <meyering@redhat.com>
712
713         maint.mk: fix typo in code to derive GPG key at release time
714         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
715
716 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
717
718         regex: avoid warning when pointers are not long
719         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
720         and uintptr_t, not long, for portability to hosts where pointers and
721         long have different sizes.  Issue noted by Daniel P. Berrange in
722         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
723         and fix suggested by Bruno Haible in
724         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
725
726 2012-06-17  Bruno Haible  <bruno@clisp.org>
727
728         dummy: Relicense into the public domain.
729         * modules/dummy (License): Set to "public domain".
730         Suggested by Reuben Thomas.
731
732 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
733
734         announce-gen: VPATH issues
735         * build-aux/announce-gen (--srcdir): New option, used to trim the
736         $srcdir part of the path from $builddir to NEWS.
737         * top/maint.mk (announcement): Adjust.
738
739 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
740
741         gnu-web-doc-update: VPATH builds
742         * build-aux/gnu-web-doc-update (--builddir): New option.
743         Revamp the handling of options.
744         Prefer $(...) to `...`.
745         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
746         the template, and it is GNU mktemp specific.
747         Prefer set -e to long series of &&.
748         Restore the initial git branch, not "master".
749         Properly initialize submodules (don't rely only on bootstrap).
750         Do not reconfigure blindly, use config.status.
751         * top/README-release: Update instructions for gnu-web-doc-update.
752
753 2012-06-11  Jim Meyering  <meyering@redhat.com>
754
755         maint.mk: revert most of the previous change re "all these"
756         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
757         For rationale, see the discussion at
758         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
759
760 2012-06-10  Karl Berry  <karl@gnu.org>
761
762         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
763
764         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
765
766 2012-06-10  Bruce Korb  <bkorb@gnu.org>
767
768         parse-duration: Relicense under LGPLv2+.
769         * modules/parse-duration (License): Change to LGPLv2+.
770
771 2012-06-10  Jim Meyering  <meyering@redhat.com>
772
773         maint.mk: prohibit common grammar error: "all these"
774         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
775         the list of prohibited word sequences.  It should be "all of these".
776         * lib/tempname.c (__gen_tempname): Fix one of them.
777
778 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
779
780         do-release-commit-and-tag: support VPATH builds
781         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
782         (noteworthy): Defined earlier to factor its value.
783         (noteworthy_stub): New.
784         Use it to factor.
785         (help_version): Split into...
786         (help, version): these.
787         Adjust the option processing part.
788         Support "--option=value" in addition to "--option value".
789         (builddir): New.
790         (--builddir): New option.
791         * top/README-release: Document this.
792         Reword slightly so that the reader cannot understand that he
793         has to do these steps before calling do-release-commit-and-tag.
794
795 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
796
797         readme-release: also require announce-gen and maintainer-makefile
798         * modules/readme-release (Depends-on): here.
799         * modules/announce-gen, modules/do-release-commit-and-tag,
800         modules/gnu-web-doc-update, modules/maintainer-makefile
801         (Description): Point to readme-release.
802
803 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
804
805         maint.mk: fix VPATH issues.
806         * top/maint.mk (news-check): GNU Make understand $< very well.
807         (release-prep): NEWS is in $(srcdir).
808
809 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
810
811         readme-release: require the promoted modules.
812         * modules/readme-release (Depends-on): Add
813         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
814         in this text.
815
816 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
817             Bruno Haible  <bruno@clisp.org>
818
819         error, strerror-override: Support mingw64 from Fedora 17.
820         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
821         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
822         EINPROGRESS.
823         * lib/strerror-override.h (strerror_override): Test it.
824         * lib/strerror-override.c (strerror_override): Likewise.
825         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
826
827 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
828             Bruno Haible  <bruno@clisp.org>
829
830         error, strerror-override: Support mingw64 from Fedora 17.
831         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
832         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
833         * lib/strerror-override.h (strerror_override): Test it.
834         * lib/strerror-override.c (strerror_override): Likewise.
835
836 2012-06-03  Bruno Haible  <bruno@clisp.org>
837
838         error, strerror-override: Support new errno values from POSIX:2008.
839         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
840         ENOTRECOVERABLE.
841         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
842         platforms.
843         * lib/strerror-override.c (strerror_override): Conditionalize the
844         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
845         * lib/strerror-override.h (strerror_override): Declare also if
846         GNULIB_defined_EOWNERDEAD is defined.
847         * tests/test-errno.c (e130, e131): New variables.
848         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
849         ENOTRECOVERABLE.
850         Reported by Paolo Bonzini.
851
852 2012-05-31  Jim Meyering  <meyering@redhat.com>
853
854         savewd: add missing dependency on sys_wait module
855         * modules/savewd (Depends-on): Add sys_wait, needed at least
856         for MSVC.  Report and suggested change by Michael Goffioul.
857
858 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
859
860         system-quote-tests: port to CentOS 5
861         Problem reported by Tom G. Christensen in
862         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
863         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
864
865 2012-05-29  Jim Meyering  <meyering@redhat.com>
866
867         maint: fix typos in comments and ChangeLog
868         Culprits identified and fixed mostly automatically using these commands:
869         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
870         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
871         using http://github.com/lyda/misspell-check
872         * ChangeLog: Fix typos.
873         * doc/solaris-versions: Likewise.
874         * lib/regexec.c (re_search_stub): Likewise.
875         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
876
877 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
878
879         manywarnings: remove duplicate -Wmultichar entry
880         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
881         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
882         so keep the entry marked as documented.
883
884 2012-05-27  Karl Berry  <karl@gnu.org>
885
886         * config/srclist.txt (mktime.c): remove last libc sync,
887         perhaps just temporarily.
888
889 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
890
891         regex: don't assume uint64_t or uint32_t
892         * lib/regcomp.c (init_word_char): Don't assume that the types
893         uint64_t and uint32_t exist.  The C standard doesn't guarantee
894         them, and on some 32-bit compilers there is no uint64_t.
895         Problem reported by Gianluigi Tiesi in
896         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
897
898 2012-05-25  Jim Meyering  <meyering@redhat.com>
899
900         maint.mk: add strncpy-prohibiting syntax-check rule
901         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
902
903 2012-05-24  Jim Meyering  <meyering@redhat.com>
904
905         maint.mk: compute $(gpg_key_ID) more portably
906         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
907         That use of sed is not portable to some fringe systems.
908         Reported by Paul Eggert in
909         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
910
911 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
912
913         mktime: sync from glibc
914         * config/srclist.txt: Uncomment mktime.c.
915         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
916         First, indent with tabs, since glibc uses tabs and doesn't want to
917         change and we'd rather be identical to glibc.  Also, two small
918         coding changes:
919         (isdst_differ): Use &&, not &, as && is the usual style.
920         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
921         for clarity.
922
923 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
924
925         announce-gen: du -h is more portable than du --human
926         * build-aux/announce-gen (sizes): Invoke du with -h instead
927         of --human.  Accept leading white space in its output.
928
929 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
930
931         announce-gen: Improve diagnostics.
932         * build-aux/announce-gen: When parsing command line options,
933         prefer "announce-gen: option --release-type requires an argument"
934         to "Option release-type requires an argument".
935
936 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
937
938         maint.mk: gpg_key_ID: use sed more portably
939         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
940         the closing brace.
941         (refresh-po): Fuse two sed invocations into one.
942
943 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
944
945         gitlog-to-changelog: support the log message format used in Bison.
946         * build-aux/gitlog-to-changelog: Support --strip-tab and
947         --strip-cherry-picked.
948
949 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
950
951         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
952         the rest of the current time slice to another thread in the current
953         process. So if the thread that feeds the file decscriptor we're
954         polling is not in the current process, we get busy-waiting.
955         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
956         Patch from Theodore Leblond.
957         * lib/select.c: Split polling out of the loop that sets the output
958         fd_sets.  Check for zero result and loop if the wait timeout is
959         infinite.
960
961 2012-05-21  Simon Josefsson  <simon@josefsson.org>
962
963         select: Fix build error on IRIX 6.5.
964         * lib/select.c: Include stddef.h for NULL.
965
966 2012-05-21  Simon Josefsson  <simon@josefsson.org>
967
968         gc: fix libgcrypt detection on older machines.
969         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
970         copyright years because the file has been distributed every year
971         since it was created.
972
973 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
974
975         crypto: fix bug in large buffer handling
976         Problem reported by Serge Belyshev for glibc in
977         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
978         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
979         * lib/md4.c (md4_process_block):
980         * lib/md5.c (md5_process_block):
981         * lib/sha1.c (sha1_process_block):
982         * lib/sha256.c (sha256_process_block):
983         Don't assume the buffer length is less than 2**32.
984         * lib/sha512.c (sha512_process_block): Likewise.
985         Here, the bug is present only in the rare case where the host does
986         not support uint64_t or where size_t is wider than 64 bits.
987         Use u64size to work around the problems.
988         * lib/u64.h (u64size): New macro.
989
990 2012-05-15  Pádraig Brady  <P@draigBrady.com>
991
992         fsusage: fix block size returned on older Linux 2.6
993
994         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
995         which is available since Linux 2.6.
996         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
997         when the member is available so it can be used as a fallback.
998         * doc/posix-functions/statvfs.texi: Mention the hang issue
999         on Linux < 2.6.36.
1000
1001 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1002
1003         bootstrap: suppress stderr chatter
1004         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1005         Omit unnecessary chatter to stderr.  The main program chatter
1006         was there only inadvertantly.
1007
1008         bootstrap: .gitignore files created by autopoint, libtool
1009         I ran into this problem when bootstrapping the latest diffutils.
1010         After './bootstrap', 'git status' reported lots of untracked files
1011         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1012         autopoint and do not need to be version-controlled.
1013         * build-aux/bootstrap: Put into .gitignore the files that
1014         autopoint and libtool create, by keeping track of files that exist
1015         after but not before these programs are run.
1016         (version_controlled_file): Move up.  2nd arg is now full file
1017         name, not base name; this is more convenient.  Put CVS at the end,
1018         as it's now somewhat deprecated.
1019
1020 2012-05-14  Jim Meyering  <meyering@redhat.com>
1021
1022         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1023         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1024         definition.  Reported by Bruno Haible.
1025
1026 2012-05-13  Bruno Haible  <bruno@clisp.org>
1027             Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         binary-io: Define set_binary_mode function.
1030         * lib/binary-io.h (set_binary_mode): New function.
1031         (SET_BINARY): Define in terms of set_binary_mode.
1032         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1033         * tests/test-binary-io.c (main): Accept an argument, and test either
1034         set_binary_mode or SET_BINARY depending on the argument.
1035         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1036         argument. Clean up also t-bin-out0.tmp.
1037
1038 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1039
1040         bootstrap: take advantage of POSIX shell features
1041
1042         The 'bootstrap' script offered by Gnulib script already uses POSIX
1043         shell features (like $((...)) arithmetic expansions) that are not
1044         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1045         means that bootstrap must already be run using a proper POSIX shell,
1046         which will thus provide more features, like ${var#pattern} parameter
1047         expansion or inversion of a command exit status with '!'.  We can
1048         thus use these features to improve the clarity and the performances
1049         of the bootstrap script.
1050
1051         Suggested by Eric Blake.
1052
1053         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1054         of sed/expr plus command substitutions, to save some forks.  While
1055         we are at it, prefer the POSIX $(...) form of command substitution,
1056         rather than the legacy form `...` (since the former is visually
1057         clearer and interacts better with quoting), and prefer the idiom:
1058           "if ! CMD; then ACTION ..."
1059         over the idiom:
1060           "if CMD; then :; else ACTION ..."
1061         which was required by legacy Bourne shells not supporting '!'.
1062
1063 2012-05-12  Bruno Haible  <bruno@clisp.org>
1064
1065         system-quote: Add more comments.
1066         * lib/system-quote.h: Add more comments about wilcards and limitations.
1067         Suggested by Eli Zaretskii <eliz@gnu.org>.
1068
1069         sh-quote, system-quote: Add comments about wildcards.
1070         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1071         * lib/system-quote.h: Likewise.
1072         Reported by Eli Zaretskii <eliz@gnu.org>.
1073
1074 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1075
1076         fsusage: check for GNU/Linux statvfs problem dynamically
1077         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1078         Define STAT_STATFS2_BSIZE too, since in this case the code now
1079         checks dynamically whether statvfs is reliable, falling back on
1080         Linux-style statfs otherwise.
1081         (statvfs_works): New function, for dynamically testing statvfs.
1082         (get_fs_usage) [STAT_STATVFS]: Use it.
1083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1084         statvfs on GNU/Linux hosts, since it's now done dynamically.
1085
1086 2012-05-10  Bruno Haible  <bruno@clisp.org>
1087
1088         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1089         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1090         '?' character.
1091         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1092         * tests/test-system-quote-main.c (check_all): Check also strings like
1093         "??????????".
1094         Reported by Eli Zaretskii <eliz@gnu.org>.
1095
1096 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1097
1098         _Noreturn: port config.h to gcc -Wundef
1099         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1100         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1101         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1102
1103 2012-05-10  Bruno Haible  <bruno@clisp.org>
1104
1105         system-quote: Refactor.
1106         * lib/system-quote.h (system_quote_copy): Fix comment.
1107         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1108         New functions, extracted from system_quote_copy.
1109         (system_quote_length, system_quote_copy): Use these functions.
1110         Reported by Paul Eggert.
1111
1112 2012-05-08  Bruno Haible  <bruno@clisp.org>
1113
1114         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1115         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1116
1117 2012-05-08  Bruno Haible  <bruno@clisp.org>
1118
1119         Tests for module 'system-quote'.
1120         * modules/system-quote-tests: New file.
1121         * tests/test-system-quote.sh: New file.
1122         * tests/test-system-quote-main.c: New file.
1123         * tests/test-system-quote-child.c: New file.
1124
1125         New module 'system-quote'.
1126         * lib/system-quote.h: New file.
1127         * lib/system-quote.c: New file.
1128         * modules/system-quote: New file.
1129
1130 2012-05-08  Bruno Haible  <bruno@clisp.org>
1131
1132         sh-quote: Make C++ safe and allow multiple inclusion.
1133         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1134         declarations in extern "C".
1135
1136 2012-05-08  Bruno Haible  <bruno@clisp.org>
1137
1138         sh-quote tests: Make tests stricter.
1139         * tests/test-sh-quote.c (check_one): Check the return value of
1140         shell_quote_copy.
1141         (main): Check a string with a CR character. Check a string that
1142         contains UCHAR_MAX.
1143
1144 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1145
1146         warnings.m4: provide a means to specify the program to compile.
1147         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1148         (gl_WARN_ADD): here.
1149         Use gl_AS_VAR_APPEND.
1150         Support an argument to specify the program to compile.
1151         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1152         AC_SUBST the WARN_CFLAGS when they are used.
1153         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1154         leave this to gl_WARN_ADD.
1155
1156 2012-05-08  Eric Blake  <eblake@redhat.com>
1157
1158         doc: recommendations on gettext version
1159         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1160         choice between versions.
1161         * DEPENDENCIES (gettext): Cover both approaches.
1162
1163 2012-05-08  Jim Meyering  <meyering@redhat.com>
1164
1165         init.sh: explain why EXEEXT support uses aliases rather than functions
1166         * tests/init.sh: Add a comment.
1167
1168         init.sh: don't let bash aliases interfere with tests
1169         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1170         is bash.  This avoids problems for those who alias standard commands to
1171         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1172         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1173
1174 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1175
1176         stdint: be more consistent with glibc, SunOS libc
1177         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1178         (gl_int_fast16_t, gl_uint_fast16_t)
1179         (gl_int_fast32_t, gl_uint_fast32_t)
1180         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1181         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1182         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1183         Be consistent with glibc by default, and with SunOS 5.10 and later
1184         if __sun is defined.  This lessens the likelihood of clashes if
1185         code compiled for older hosts is combined with code compiled for
1186         newer ones.  Problem reported by Niels Möller in
1187         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1188
1189 2012-05-07  Eric Blake  <eblake@redhat.com>
1190
1191         isatty: relax license to LGPLv2+
1192         * modules/isatty (License): Relax license.
1193
1194 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1195
1196         stat-size: comment fix
1197         * lib/stat-size.h: Remove obsolete comment about indenting.
1198
1199 2012-05-06  Bruno Haible  <bruno@clisp.org>
1200
1201         Tests for module 'sh-quote'.
1202         * modules/sh-quote-tests: New file.
1203         * tests/test-sh-quote.c: New file.
1204
1205 2012-05-06  Bruno Haible  <bruno@clisp.org>
1206
1207         sh-quote: Improve shell_quote_argv's signature.
1208         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1209         * lib/sh-quote.c (shell_quote_argv): Likewise.
1210
1211 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1212
1213         stdint: document issues with int_fast8_t etc.
1214         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1215         stdint.h substitutes may define these types differently.  See
1216         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1217
1218 2012-05-05  Bruno Haible  <bruno@clisp.org>
1219
1220         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1222         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1223         or 'guessing no (mishandles large arguments)'.
1224
1225 2012-05-05  Bruno Haible  <bruno@clisp.org>
1226
1227         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1228         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1229         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1230         set gl_cv_func_link_follows_symlink to "guessing no".
1231
1232 2012-05-05  Bruno Haible  <bruno@clisp.org>
1233
1234         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1235         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1236         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1237         "guessing no".
1238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1239
1240 2012-05-05  Bruno Haible  <bruno@clisp.org>
1241
1242         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1243         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1244         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1245         set gl_cv_struct_dirent_d_ino to "guessing yes".
1246
1247 2012-05-05  Bruno Haible  <bruno@clisp.org>
1248
1249         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1250         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1251         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1252         "guessing yes".
1253
1254 2012-05-05  Bruno Haible  <bruno@clisp.org>
1255
1256         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1257         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1258         compiling to a glibc system, set gl_cv_func_signbit and
1259         gl_cv_func_signbit_gcc to "guessing yes".
1260
1261 2012-05-05  Bruno Haible  <bruno@clisp.org>
1262
1263         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1264         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1265         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1266         to "guessing yes".
1267         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1268         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1269
1270 2012-05-05  Bruno Haible  <bruno@clisp.org>
1271
1272         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1273         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1274         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1275         gl_cv_func_realpath_works to "guessing yes".
1276
1277 2012-05-05  Bruno Haible  <bruno@clisp.org>
1278
1279         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1281         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1282
1283 2012-05-04  Bruno Haible  <bruno@clisp.org>
1284
1285         Tweak last commit.
1286         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1287         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1288
1289 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1290
1291         unistd_h: make it easier to avoid sys_types_h
1292         This is useful for Emacs, which has its own method of porting to
1293         Windows, and which therefore does not need the sys_types_h module.
1294         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1295         code moved here from gl_SYS_TYPES_H.
1296         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1297         using the code directly.
1298         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1299         gl_SYS_TYPES_H.
1300         * modules/sys_types (Files):
1301         * modules/unistd (Files): Add m4/off_t.m4.
1302
1303 2012-05-03  Bruno Haible  <bruno@clisp.org>
1304
1305         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1306         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1307         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1308         "guessing yes" or "guessing no".
1309         (gl_FUNC_LSTAT): Update.
1310         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1311         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1312         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1313
1314 2012-05-03  Bruno Haible  <bruno@clisp.org>
1315
1316         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1317         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1318         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1319         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1320         cross-compiling, choose the first alternative on glibc systems.
1321         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1322
1323 2012-05-03  Bruno Haible  <bruno@clisp.org>
1324
1325         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1326         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1327         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1328
1329 2012-05-03  Bruno Haible  <bruno@clisp.org>
1330
1331         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1332         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1333
1334 2012-05-03  Bruno Haible  <bruno@clisp.org>
1335
1336         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1337         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1338         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1339         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1340         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1341         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1342         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1343         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1344         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1345         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1346         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1347         gl_cv_func_chown_ctime_works to "guessing yes".
1348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1349         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1350         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1351         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1352         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1354         compiling to glibc systems, set gl_cv_func_open_directory_works to
1355         "guessing yes".
1356         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1357         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1358         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1359         "guessing yes".
1360         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1361         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1362         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1363         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1364         "guessing yes".
1365         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1366         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1367         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1368         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1369         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1370         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1371         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1372         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1373         "guessing yes".
1374         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1375         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1376         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1377         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1378         "guessing yes".
1379         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1380         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1381         "guessing yes".
1382         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1383         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1384         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1385         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1386         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1387         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1388         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1389         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1390         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1391         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1392         "guessing yes".
1393         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1394         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1395         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1396         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1397         "guessing yes".
1398         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1399         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1400         "guessing yes".
1401         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1402         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1403         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1404         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1405         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1406         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1407         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1408         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1409         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1410         "guessing yes".
1411         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1412         compiling to glibc systems, set gl_cv_func_mknod_works to
1413         "guessing yes".
1414         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1415         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1416         "guessing yes".
1417         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1418         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1419         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1420         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1421         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1422         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1423         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1424         compiling to glibc systems, set gl_cv_func_svid_putenv to
1425         "guessing yes".
1426         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1427         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1428         "guessing yes".
1429         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1430         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1431         "guessing yes".
1432         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1433         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1434         to "guessing yes".
1435         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1436         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1437         to "guessing yes".
1438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1439         compiling to glibc systems, set gl_cv_func_rmdir_works to
1440         "guessing yes".
1441         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1442         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1443         gl_cv_func_unlink_parent_fails to "guessing yes".
1444         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1445         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1446         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1447         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1448         gl_cv_func_rename_dest_works to "guessing yes".
1449         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1450         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1451         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1452         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1453         "guessing yes".
1454         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1455         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1456         "guessing yes".
1457         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1458         compiling to glibc systems, set gl_cv_func_setenv_works to
1459         "guessing yes".
1460         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1461         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1462         "guessing yes".
1463         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1464         compiling to glibc systems, set gl_cv_func_sleep_works to
1465         "guessing yes".
1466         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1467         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1468         "guessing yes".
1469         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1470         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1471         "guessing yes".
1472         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1473         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1474         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1475         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1476         "guessing yes".
1477         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1478         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1479         "guessing yes".
1480         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1481         compiling to glibc systems, set gl_cv_func_usleep_works to
1482         "guessing yes".
1483         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1484         compiling to glibc systems, set gl_cv_func_futimesat_works to
1485         "guessing yes".
1486
1487 2012-05-03  Bruno Haible  <bruno@clisp.org>
1488
1489         Say "guessing yes" or "guessing no" when cross-compiling.
1490         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1491         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1492         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1493         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1494         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1495         am_cv_func_working_getline to "guessing yes" or "guessing no".
1496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1497         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1498         (gl_FUNC_MEMMEM): When cross-compiling, set
1499         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1501         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1503         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1504         "guessing no".
1505         (gl_FUNC_STRCASESTR): When cross-compiling, set
1506         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1507         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1508         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1509         (gl_FUNC_STRSTR): When cross-compiling, set
1510         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1511         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1512         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1513         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1514         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1515
1516 2012-05-01  Bruno Haible  <bruno@clisp.org>
1517
1518         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1519         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1520         * build-aux/reloc-ldflags: Likewise.
1521         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1522
1523 2012-05-01  Bruno Haible  <bruno@clisp.org>
1524
1525         gnulib-tool: Remove transitional code.
1526         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1527         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1528
1529 2012-05-01  Bruno Haible  <bruno@clisp.org>
1530
1531         getcwd: Fix misindentation.
1532         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1533
1534 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1535
1536         exclude: process exclude and include directives in order
1537         This restores the pre-2009 behavior, and is part of a fix of a
1538         grep bug reported by Quentin Arce in
1539         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1540         * lib/exclude.c (struct exclude): Remove 'tail' member.
1541         (new_exclude_segment): Prepend the new segment instead of appending.
1542         Return void, since that's now more convenient.
1543         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1544         (file_name_matches): Renamed from excluded_file_name_p.
1545         (file_pattern_matches, file_name_matches):
1546         Return true if the pattern matches, not if it excludes.
1547         All callers changed.
1548         (excluded_file_name): Process the list in reverse order;
1549         since the list is now reversed this restores the pre-2009 behavior.
1550         (add_exclude): Adjust to new reversed-order list.  Use local var
1551         rather than macro, for clarity.
1552         * tests/test-exclude7.sh: Adjust to corrected behavior.
1553
1554         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1555         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1556         it's not possible here.  Handle the case of \ at end of pattern
1557         without dumping core.
1558         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1559
1560         _Noreturn: future-proof non-GNU and non-MSVC compilers
1561         * build-aux/snippet/_Noreturn.h (_Noreturn):
1562         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1563         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1564         C11 or later.  This is more likely to work with random future C
1565         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1566         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1567
1568         exclude: handle wildcards with FNM_EXTMATCH
1569         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1570         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1571         comment that "has wildcards" really means "has or may have
1572         wildcards".  Simplify by avoiding the need to call strcspn.
1573
1574 2012-04-29  Bruno Haible  <bruno@clisp.org>
1575
1576         gnulib-tool: Fix list of authors.
1577         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1578
1579 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1580
1581         bootstrap: support Automake-NG in $buildreq
1582         * bootstrap (check_versions): Handle automake and aclocal from
1583         Automake-NG specially.  They can be specified as respectively
1584         the "automake-ng" and "aclocal-ng" requirements.
1585
1586 2012-04-25  Eric Blake  <eblake@redhat.com>
1587
1588         bootstrap: only force latest Makefile.in.in for gettext module
1589         * build-aux/bootstrap (with_gettext): Only install latest
1590         Makefile.in.in for projects requesting bleeding edge gettext.
1591
1592 2012-04-22  Bruno Haible  <bruno@clisp.org>
1593
1594         doc: Mention reason for replacement on glibc/Linux systems.
1595         * doc/posix-functions/dprintf.texi: Mention the problem with special
1596         'long double' values.
1597         * doc/posix-functions/fprintf.texi: Likewise.
1598         * doc/posix-functions/printf.texi: Likewise.
1599         * doc/posix-functions/snprintf.texi: Likewise.
1600         * doc/posix-functions/sprintf.texi: Likewise.
1601         * doc/posix-functions/vdprintf.texi: Likewise.
1602         * doc/posix-functions/vfprintf.texi: Likewise.
1603         * doc/posix-functions/vprintf.texi: Likewise.
1604         * doc/posix-functions/vsnprintf.texi: Likewise.
1605         * doc/posix-functions/vsprintf.texi: Likewise.
1606         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1607         platforms with F_DUPFD_CLOEXEC problems.
1608         * doc/posix-functions/glob.texi: Mention which platforms are affected
1609         by the problem with symbolic links.
1610         * doc/posix-functions/linkat.texi: Mention the problem with
1611         AT_SYMLINK_FOLLOW on Linux.
1612
1613 2012-04-22  Bruno Haible  <bruno@clisp.org>
1614
1615         pwrite: Don't replace on all platforms.
1616         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1617
1618 2012-04-22  Bruno Haible  <bruno@clisp.org>
1619
1620         rint* tests: Avoid gcc warnings.
1621         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1622         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1623         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1624
1625 2012-04-21  Bruno Haible  <bruno@clisp.org>
1626
1627         users.txt: Update.
1628         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1629         switched from CVS to git, bzr, or svn.
1630
1631 2012-04-21  Bruno Haible  <bruno@clisp.org>
1632
1633         Large File Support for native Windows platforms.
1634
1635         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1636         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1637
1638         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1639         type.
1640         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1641         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1642         * doc/posix-headers/sys_types.texi: Mention the effect of the
1643         'largefile' module.
1644
1645         * lib/fcntl.in.h: Add comments about off_t.
1646         * modules/fcntl-h (Depends-on): Add sys_types.
1647
1648         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1649         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1650         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1651         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1652         * modules/unistd (Depends-on): Add sys_types.
1653         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1654
1655         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1656         instead of lseek.
1657         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1658         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1659         * modules/lseek (Depends-on): Add sys_types.
1660
1661         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1662         msvc-nothrow.h.
1663         (SetFileSize): New function.
1664         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1665         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1666         if Large File Support is requested.
1667         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1668         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1669
1670         * lib/stdio.in.h: Add comments about off_t.
1671         * modules/stdio (Depends-on): Add sys_types.
1672
1673         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1674         instead of ftello.
1675         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1676         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1677         (gl_PREREQ_FTELLO): New macro.
1678         * modules/ftello (Depends-on): Add sys_types.
1679         (configure.ac): Incoke gl_PREREQ_FTELLO.
1680
1681         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1682         instead of fseeko.
1683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1684         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1685         (gl_PREREQ_FSEEKO): New macro.
1686         * modules/fseeko (Depends-on): Add sys_types.
1687         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1688
1689         * lib/sys_stat.in.h: Add comments about off_t.
1690         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1691         64-bit integer for st_size in 'struct stat'.
1692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1693         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1694         * modules/sys_stat (Depends-on): Add sys_types.
1695         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1696
1697         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1698         instead of stat or _stat.
1699
1700         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1701         'struct _stati64' instead of fstat and 'struct stat'.
1702         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1703         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1704
1705         Reported by Ray Satiro <raysatiro@yahoo.com>.
1706
1707 2012-04-19  Eric Blake  <eblake@redhat.com>
1708
1709         bootstrap: accommodate older libtool
1710         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1711         Reported by Daniel P. Berrange.
1712
1713 2012-04-19  Jim Meyering  <meyering@redhat.com>
1714
1715         announce-gen: avoid failure due to lack of Digest::SHA1
1716         Even with the preferred Digest::SHA available, this script
1717         would fail when the backup module, Digest::SHA1, was not installed.
1718         * build-aux/announce-gen: Quote the conditional use of "use".
1719         Reported by Reuben Thomas in:
1720         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1721
1722         bootstrap: don't let a user's CDPATH setting affect this script
1723         When CDPATH is set, cd will sometimes generate output.
1724         When "cd" is run in a subshell whose output matters, that
1725         surprising-to-some output can cause malfunction.
1726         Unsetting CDPATH turns off this shell "feature."
1727         * build-aux/bootstrap (CDPATH): Unset.
1728         Reported by Reuben Thomas in:
1729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1730         and inspired by his patch here:
1731         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1732
1733 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1734         and Jim Meyering  <meyering@redhat.com>
1735
1736         maint.mk: catch "see @xref{}" and similar
1737         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1738         prohibit "See also @xref{", "Also see @pxref{", and similar.
1739
1740 2012-04-16  Jim Meyering  <meyering@redhat.com>
1741
1742         bootstrap: really use gnulib's po/Makefile.in.in
1743         * build-aux/bootstrap: Correct the source file name in previous change.
1744         Reported by Akim Demaille.
1745
1746         configmake: correct minor inconsistency in Makefile rule
1747         * modules/configmake (Makefile.am): All other rules like this one
1748         run the final "mv -f ..." in the same backslash-continued command
1749         as the one that does everything else.  This one put the mv -f ...
1750         command on a separate, non-backslash-continued line.
1751         Make it like the others.
1752
1753         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1754         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1755         the one from gettext.  Reported by Akim Demaille.
1756
1757 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1758
1759         Fix recursion of install-* into po directories.
1760         Bison's install-pdf bug reported by Hans Aberg at
1761         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1762         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1763         (install-info, install-pdf, install-ps): New targets.
1764
1765 2012-04-16  Jim Meyering  <meyering@redhat.com>
1766
1767         maint: avoid spurious "make sc_maint" failure
1768         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1769         exempt all *.class file names, for lib/javaversion.class.
1770
1771 2012-04-15  Bruno Haible  <bruno@clisp.org>
1772
1773         lseek: Make configure test independent of environment.
1774         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1775         Windows, we know that lseek() on pipes is broken; skip the runtime
1776         test.
1777
1778 2012-04-14  Bruno Haible  <bruno@clisp.org>
1779
1780         stat: Bypass buggy override in mingw64.
1781         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1782         * lib/stat.c (stat) [mingw64]: Define to _stat.
1783         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1784
1785 2012-04-14  Bruno Haible  <bruno@clisp.org>
1786
1787         pathmax: Fix compilation error on MSVC 9.
1788         * modules/pathmax (Depends-on): Add unistd.
1789
1790 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1791
1792         README: document pointer comparison assumption
1793         * README (Portability guidelines): Document assumption about
1794         pointer comparisons, in response to a recent bug-gnulib comment by
1795         Jeffrey Kegler.
1796
1797 2012-04-12  Bruno Haible  <bruno@clisp.org>
1798
1799         Tests for module 'getrusage'.
1800         * modules/getrusage-tests: New file.
1801         * tests/test-getrusage.c: New file.
1802
1803         New module 'getrusage'.
1804         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1805         warn-on-use.h.
1806         (getrusage): New declaration.
1807         * lib/getrusage.c: New file.
1808         * m4/getrusage.m4: New file.
1809         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1810         is declared.
1811         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1812         HAVE_GETRUSAGE.
1813         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1814         snippet/c++defs, snippet/warn-on-use.
1815         (Makefile.am): Update generation of sys/resource.h. Substitute
1816         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1817         * modules/getrusage: New file.
1818         * doc/posix-functions/getrusage.texi: Mention the new module.
1819
1820 2012-04-12  Bruno Haible  <bruno@clisp.org>
1821
1822         Tests for module 'sys_resource'.
1823         * modules/sys_resource-tests: New file.
1824         * tests/test-sys_resource.c: New file.
1825
1826         New module 'sys_resource'.
1827         * lib/sys_resource.in.h: New file.
1828         * m4/sys_resource_h.m4: New file.
1829         * modules/sys_resource: New file.
1830         * doc/posix-headers/sys_resource.texi: Mention the new module.
1831
1832 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1833
1834         ioctl: Fix compilation error on mingw.
1835         * lib/ioctl.c: Include <windows.h>.
1836         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1837
1838 2012-04-04  Jim Meyering  <meyering@redhat.com>
1839
1840         regex: correct #pragma guard expression
1841         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1842         not 4.3.  Correct its cpp guard expression.
1843
1844 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1845
1846         regex: remove unnecessary type punning
1847         Problem reported by Vladimir Serbinenko in
1848         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1849         * lib/regex.h (struct re_pattern_buffer): Change the type of
1850         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1851         Fix comment to match code.
1852         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1853         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1854         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1855         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1856         (set_regs):
1857         Omit no-longer-necessary casts.
1858
1859 2012-04-03  Bruno Haible  <bruno@clisp.org>
1860
1861         Tests for module 'ilogbl'.
1862         * modules/ilogbl-tests: New file.
1863         * tests/test-ilogbl.c: New file.
1864
1865         New module 'ilogbl'.
1866         * lib/math.in.h (ilogbl): New declaration.
1867         * lib/ilogbl.c: New file.
1868         * m4/ilogbl.m4: New file.
1869         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1871         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1872         Split sed invocation, to avoid the limit of 100 substitutions of
1873         HP-UX 'sed'.
1874         * modules/ilogbl: New file.
1875         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1876         * doc/posix-functions/ilogbl.texi: Mention the new module.
1877
1878 2012-04-03  Bruno Haible  <bruno@clisp.org>
1879
1880         Tests for module 'ilogbf'.
1881         * modules/ilogbf-tests: New file.
1882         * tests/test-ilogbf.c: New file.
1883
1884         New module 'ilogbf'.
1885         * lib/math.in.h (ilogbf): New declaration.
1886         * lib/ilogbf.c: New file.
1887         * m4/ilogbf.m4: New file.
1888         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1890         REPLACE_ILOGBF.
1891         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1892         REPLACE_ILOGBF.
1893         * modules/ilogbf: New file.
1894         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1895         * doc/posix-functions/ilogbf.texi: Mention the new module.
1896
1897 2012-04-03  Bruno Haible  <bruno@clisp.org>
1898
1899         Tests for module 'ilogb'.
1900         * modules/ilogb-tests: New file.
1901         * tests/test-ilogb.c: New file.
1902         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1903         tests/test-logb-ieee.h.
1904
1905         New module 'ilogb'.
1906         * lib/math.in.h (ilogb): New declaration.
1907         * lib/ilogb.c: New file.
1908         * m4/ilogb.m4: New file.
1909         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1911         REPLACE_ILOGB.
1912         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1913         REPLACE_ILOGB.
1914         * modules/ilogb: New file.
1915         * tests/test-math-c++.cc: Check the declaration of ilogb.
1916         * doc/posix-functions/ilogb.texi: Mention the new module.
1917
1918 2012-04-03  Bruno Haible  <bruno@clisp.org>
1919
1920         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1921         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1922         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1923         (main): Check their values.
1924         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1925         problem.
1926
1927 2012-04-03  Bruno Haible  <bruno@clisp.org>
1928
1929         Tests for module 'logbl-ieee'.
1930         * modules/logbl-ieee-tests: New file.
1931         * tests/test-logbl-ieee.c: New file.
1932
1933         New module 'logbl-ieee'.
1934         * modules/logbl-ieee: New file.
1935
1936         Tests for module 'logb-ieee'.
1937         * modules/logb-ieee-tests: New file.
1938         * tests/test-logb-ieee.c: New file.
1939
1940         New module 'logb-ieee'.
1941         * modules/logb-ieee: New file.
1942
1943         Tests for module 'logbf-ieee'.
1944         * modules/logbf-ieee-tests: New file.
1945         * tests/test-logbf-ieee.c: New file.
1946         * tests/test-logb-ieee.h: New file.
1947
1948         New module 'logbf-ieee'.
1949         * modules/logbf-ieee: New file.
1950
1951 2012-04-03  Bruno Haible  <bruno@clisp.org>
1952
1953         Tests for module 'logbl'.
1954         * modules/logbl-tests: New file.
1955         * tests/test-logbl.c: New file.
1956
1957         New module 'logbl'.
1958         * lib/math.in.h (logbl): New declaration.
1959         * lib/logbl.c: New file.
1960         * m4/logbl.m4: New file.
1961         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1963         REPLACE_LOGBL.
1964         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1965         REPLACE_LOGBL.
1966         * modules/logbl: New file.
1967         * tests/test-math-c++.cc: Check the declaration of logbl.
1968         * doc/posix-functions/logbl.texi: Mention the new module.
1969
1970 2012-04-02  Bruno Haible  <bruno@clisp.org>
1971
1972         Tests for module 'logbf'.
1973         * modules/logbf-tests: New file.
1974         * tests/test-logbf.c: New file.
1975
1976         New module 'logbf'.
1977         * lib/math.in.h (logbf): New declaration.
1978         * lib/logbf.c: New file.
1979         * m4/logbf.m4: New file.
1980         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1982         REPLACE_LOGBF.
1983         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1984         REPLACE_LOGBF.
1985         * modules/logbf: New file.
1986         * tests/test-math-c++.cc: Check the declaration of logbf.
1987         * doc/posix-functions/logbf.texi: Mention the new module.
1988
1989 2012-04-02  Bruno Haible  <bruno@clisp.org>
1990
1991         logb tests: More tests.
1992         * tests/test-logb.h: New file, based on tests/test-logb.c and
1993         tests/test-frexp.h.
1994         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1995         (main): Just invoke test_function.
1996         * modules/logb-tests (Files): Add tests/test-logb.h,
1997         tests/minus-zero.h, tests/randomd.c.
1998         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1999
2000         logb: Provide replacement and workarounds.
2001         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2002         is 1.
2003         * lib/logb.c: New file.
2004         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2005         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2007         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2008         * modules/logb (Files): Add lib/logb.c.
2009         (Depends-on): Add isfinite, frexp, isnand.
2010         (configure.ac): Compile the replacement code logb.c if needed.
2011         * tests/test-math-c++.cc: Check the declaration of logb.
2012         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2013         with subnormal numbers.
2014
2015 2012-04-02  Bruno Haible  <bruno@clisp.org>
2016
2017         log10* tests: Speed up.
2018         * tests/test-log10.h (test_function): Reduce amount of random numbers
2019         to test.
2020
2021 2012-04-01  Bruno Haible  <bruno@clisp.org>
2022
2023         logf-ieee: Fix test whether logf works.
2024         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2025
2026 2012-04-01  Bruno Haible  <bruno@clisp.org>
2027
2028         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2029         * lib/log10l.c: Include <float.h>
2030         (log10l): On IRIX, normalize the +Infinity value.
2031         * modules/log10l (Depends-on): Add 'float'.
2032         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2033         +Infinity.
2034
2035         log10f-ieee: Work around test failure on NetBSD 5.1.
2036         * m4/log10f-ieee.m4: New file.
2037         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2038         test whether log10f works with a negative argument. Replace it if not.
2039         * lib/log10f.c (log10f): For negative arguments, return NaN.
2040         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2041         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2042         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2043
2044         log10f-ieee: Work around test failure on Solaris 9.
2045         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2046         (configure.ac): Require gl_FUNC_LOG10F.
2047
2048         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2049         * m4/log10-ieee.m4: New file.
2050         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2051         whether log10 works with a negative argument. Replace it if not.
2052         * lib/log10.c (log10): For negative arguments, return NaN.
2053         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2054         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2055         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2056
2057         Tests for module 'log10l-ieee'.
2058         * modules/log10l-ieee-tests: New file.
2059         * tests/test-log10l-ieee.c: New file.
2060
2061         New module 'log10l-ieee'.
2062         * modules/log10l-ieee: New file.
2063
2064         Tests for module 'log10-ieee'.
2065         * modules/log10-ieee-tests: New file.
2066         * tests/test-log10-ieee.c: New file.
2067
2068         New module 'log10-ieee'.
2069         * modules/log10-ieee: New file.
2070
2071         Tests for module 'log10f-ieee'.
2072         * modules/log10f-ieee-tests: New file.
2073         * tests/test-log10f-ieee.c: New file.
2074         * tests/test-log10-ieee.h: New file.
2075
2076         New module 'log10f-ieee'.
2077         * modules/log10f-ieee: New file.
2078
2079 2012-04-01  Bruno Haible  <bruno@clisp.org>
2080
2081         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2082         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2083         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2084         workaround.
2085         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2086         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2088         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2089         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2090         (Depends-on): Update conditions.
2091         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2092         IRIX 6.5, OSF/1 5.1 problems.
2093
2094 2012-04-01  Bruno Haible  <bruno@clisp.org>
2095
2096         log10f: Work around OSF/1 5.1 bug.
2097         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2098         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2099         workaround.
2100         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2101         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2103         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2104         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2105         (Depends-on): Update conditions.
2106         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2107
2108 2012-04-01  Bruno Haible  <bruno@clisp.org>
2109
2110         log10: Work around OSF/1 5.1 bug.
2111         * lib/math.in.h (log10): New declaration.
2112         * lib/log10.c: New file.
2113         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2114         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2115         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2117         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2118         * modules/log10 (Files): Add lib/log10.c.
2119         (Depends-on): Add math.
2120         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2121         * tests/test-math-c++.cc: Check the declaration of log10.
2122         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2123
2124 2012-03-31  Bruno Haible  <bruno@clisp.org>
2125
2126         log10l tests: More tests.
2127         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2128         tests/minus-zero.h, tests/randoml.c.
2129         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2130         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2131         (main): Invoke test_function.
2132
2133         log10f tests: More tests.
2134         * modules/log10f-tests (Files): Add tests/test-log10.h,
2135         tests/minus-zero.h, tests/randomf.c.
2136         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2137         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2138         (main): Invoke test_function.
2139
2140         log10 tests: More tests.
2141         * tests/test-log10.h: New file.
2142         * modules/log10-tests (Files): Add tests/test-log10.h,
2143         tests/minus-zero.h, tests/randomd.c.
2144         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2145         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2146         (main): Invoke test_function.
2147
2148 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2149
2150         fflush: Fix syntax error.
2151         * lib/fflush.c: Include unused-parameter.h, needed for
2152         _GL_UNUSED_PARAMETER.
2153         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2154
2155 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2156
2157         regex: pacify GCC when compiling GRUB
2158         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2159         a diagnostic.  Reported by Vladimir Serbinenko in
2160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2161
2162 2012-03-29  Eric Blake  <eblake@redhat.com>
2163
2164         stdio: don't assume gets any more
2165         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2166         support.
2167         * modules/stdio (Makefile.am): Likewise.
2168         * lib/stdio-read.c (gets): Likewise.
2169         * tests/test-stdio-c++.cc: Likewise.
2170         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2171         * lib/stdio.in.h (gets): Make warning occur in more places.
2172         * doc/posix-functions/gets.texi (gets): Update documentation.
2173         Reported by Christer Solskogen.
2174
2175         maint.mk: fix syntax checks without exclusions
2176         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2177         Reported by Daniel P. Berrange.
2178
2179         strerror_r: avoid compiler warning
2180         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2181         level.
2182
2183         fflush: avoid compiler warning
2184         * lib/fflush.c (update_fpos_cache): Mark variables that are
2185         potentially unused.
2186
2187 2012-03-25  Bruno Haible  <bruno@clisp.org>
2188
2189         Tests for module 'localeconv'.
2190         * modules/localeconv-tests: New file.
2191         * tests/test-localeconv.c: New file.
2192
2193         New module 'localeconv'.
2194         * lib/locale.in.h (localeconv): New declaration.
2195         * lib/localeconv.c: New file.
2196         * m4/localeconv.m4: New file.
2197         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2198         REPLACE_LOCALECONV.
2199         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2200         REPLACE_LOCALECONV.
2201         * modules/localeconv: New file.
2202         * modules/nl_langinfo (Depends-on): Add localeconv.
2203         * modules/human (Depends-on): Likewise.
2204         * doc/posix-functions/localeconv.texi: Mention the new module.
2205
2206 2012-03-25  Bruno Haible  <bruno@clisp.org>
2207
2208         locale: Provide a complete 'struct lconv'.
2209         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2210         'struct lconv' does not contain int_p_cs_precedes.
2211         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2212         * doc/posix-headers/locale.texi: Update.
2213
2214         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2215         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2216         * doc/posix-headers/locale.texi: Update.
2217
2218         locale: Provide a working 'struct lconv'.
2219         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2220         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2221         'struct lconv' does not even contain decimal_point.
2222         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2223         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2224         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2225         * doc/posix-headers/locale.texi: Mention the problems with
2226         'struct lconv'.
2227         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2228
2229 2012-03-24  Bruno Haible  <bruno@clisp.org>
2230
2231         Enable common subexpression optimization in GCC.
2232         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2233         macros.
2234         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2235         GCC attribute 'const'.
2236         (uc_locale_language): Declare with GCC attribute 'pure'.
2237         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2238         with GCC attribute 'const'.
2239         * lib/unictype.in.h (uc_is_general_category_withtable,
2240         uc_combining_class, uc_combining_class_name,
2241         uc_combining_class_long_name, uc_bidi_class_name,
2242         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2243         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2244         uc_decimal_value, uc_digit_value, uc_numeric_value,
2245         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2246         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2247         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2248         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2249         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2250         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2251         Declare with GCC attribute 'const'.
2252         (uc_general_category_name, uc_general_category_long_name,
2253         uc_general_category_byname, uc_general_category,
2254         uc_is_general_category, uc_combining_class_byname,
2255         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2256         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2257         Declare with GCC attribute 'pure'.
2258         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2259         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2260         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2261         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2262         with GCC attribute 'pure'.
2263         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2264         'const'.
2265         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2266         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2267         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2268         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2269         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2270         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2271         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2272         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2273         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2274         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2275         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2276         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2277         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2278         GCC attribute 'pure'.
2279         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2280         'const'.
2281         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2282         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2283         u32_strwidth): Declare with GCC attribute 'pure'.
2284
2285         Enable common subexpression optimization in GCC.
2286         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2287         (alphasort): Declare with GCC attribute 'pure'.
2288         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2289         (atoll): Declare with GCC attribute 'pure'.
2290         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2291         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2292         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2293         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2294         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2295         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2296         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2297
2298 2012-03-24  Bruno Haible  <bruno@clisp.org>
2299
2300         gnulib-tool: Avoid unintended error output from 'cmp'.
2301         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2302         "cmp -s", not "cmp > /dev/null".
2303
2304 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2305
2306         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2307
2308         It's not just Automake versions < 1.9b that creates an empty
2309         pkgdatadir at installation time if pkgdata_DATA is specified
2310         to empty; modern automake versions do this as well, at least
2311         until automake 1.11.4 (not yet released at the moment of writing,
2312         but soon to appear).  That behaviour was generally considered a
2313         feature rather than a bug, at least until this discussion:
2314         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2315
2316         See also automake bugs #10997 and #11030.
2317
2318         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2319         reference to relevant automake bug numbers.
2320         (func_emit_tests_Makefile_am): Likewise.
2321
2322 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2323
2324         announce-gen: use Digest::SHA when possible
2325         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2326         back to Digest::SHA1 if necessary.
2327
2328 2012-03-20  Jim Meyering  <meyering@redhat.com>
2329
2330         tests: avoid gcc warnings about argv vs. const initializers
2331         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2332         warnings about discarding 'const' qualifier from pointer target type.
2333         * tests/test-posix_spawn2.c (main): Likewise.
2334
2335 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2336
2337         README-release: simplify slightly
2338         * top/README-release: Run "git checkout master" only once.
2339
2340 2012-03-15  Mark Wielaard  <mark@klomp.org>
2341
2342         git-merge-changelog: add specific example on how to use with hg.
2343         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2344
2345 2012-03-18  Mark Wielaard  <mark@klomp.org>
2346
2347         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2348
2349 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2350
2351         git-version-gen: don't let "prefix" envvar cause trouble
2352         * build-aux/git-version-gen (prefix): Initialize properly,
2353         so as not to use a value specified via the environment.
2354         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2355
2356 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         regex: diagnose too-large repeat counts in EREs
2359         Previously, the code did not diagnose the too-large repeat count
2360         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2361         as if it were 'b\{1000000000}', which is unexpected.
2362         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2363         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2364         is a reasonable one for this problem.  Another option would be to
2365         create a new REG_OVERFLOW error for repeat counts that are too large.
2366         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2367         count is too large, so that the caller can distinguish the two cases.
2368         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2369         "Too large" return code, and that repeat counts are one example of this.
2370
2371 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2372
2373         doc: some glibc x32 integer width issues
2374         * doc/posix-headers/sys_types.texi (sys/types.h):
2375         * doc/posix-headers/time.texi (time.h):
2376         Mention that glibc x32 does not conform to POSIX in a couple of
2377         areas related to integer widths.
2378
2379 2012-03-15  Bruno Haible  <bruno@clisp.org>
2380
2381         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2382         * lib/fma.c (VOLATILE): New macro.
2383         (FUNC): Use it to work around a GCC compiler bug.
2384
2385 2012-03-13  Bruno Haible  <bruno@clisp.org>
2386
2387         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2388         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2389         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2390         REPLACE_HYPOTL to 1.
2391         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2392
2393 2012-03-13  Bruno Haible  <bruno@clisp.org>
2394
2395         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2396         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2397         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2398         REPLACE_REMAINDERL to 1.
2399         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2400         bug.
2401
2402 2012-03-13  Bruno Haible  <bruno@clisp.org>
2403
2404         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2405         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2406         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2407         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2408         too big rounding errors.
2409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2410         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2411         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2412         (Depends-on): Update conditions.
2413         * tests/test-sqrtl.c (my_ldexpl): New function.
2414         (main): Add test of a particular value.
2415         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2416
2417 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2418
2419         doc: Update timer_* platform portability notes.
2420         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2421         that always return ENOSYS.
2422         * doc/posix-functions/timer_delete.texi: Likewise.
2423         * doc/posix-functions/timer_gettime.texi: Likewise.
2424         * doc/posix-functions/timer_settime.texi: Likewise.
2425
2426 2012-03-13  Bruno Haible  <bruno@clisp.org>
2427
2428         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2429         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2430         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2431         REPLACE_CBRTL to 1.
2432         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2433
2434 2012-03-13  Bruno Haible  <bruno@clisp.org>
2435
2436         remainderl: Avoid compilation error on AIX >= 5.2.
2437         * lib/math.in.h (remainderl): Undefine macro from the system header.
2438
2439 2012-03-13  Bruno Haible  <bruno@clisp.org>
2440
2441         Avoid compilation errors with MSVC option -fp:strict.
2442         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2443         * lib/cbrtf.c: Likewise.
2444         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2445
2446 2012-03-12  Bruno Haible  <bruno@clisp.org>
2447
2448         uninorm: Don't crash in out-of-memory conditions.
2449         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2450         gracefully.
2451         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2452         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2453
2454 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2455
2456         quote: fix syntax-check
2457         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2458         also exports quote_quoting_options.
2459
2460 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2461
2462         Collapse list of copyright years to ranges.  See
2463         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2464         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2465         build-aux/csharpexec.sh.in, build-aux/gnupload,
2466         build-aux/install-reloc, build-aux/javacomp.sh.in,
2467         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2468         build-aux/move-if-change, build-aux/reloc-ldflags,
2469         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2470
2471 2012-03-11  Bruno Haible  <bruno@clisp.org>
2472
2473         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2474         * m4/log2f-ieee.m4: New file.
2475         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2476         whether log2f works with a minus zero argument. Replace it if not.
2477         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2478         (Depends-on): Add log2-ieee.
2479         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2480         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2481
2482         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2483         * m4/log2-ieee.m4: New file.
2484         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2485         whether log2 works with a minus zero argument. Replace it if not.
2486         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2487         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2488         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2489
2490         Tests for module 'log2l-ieee'.
2491         * modules/log2l-ieee-tests: New file.
2492         * tests/test-log2l-ieee.c: New file.
2493
2494         New module 'log2l-ieee'.
2495         * modules/log2l-ieee: New file.
2496
2497         Tests for module 'log2-ieee'.
2498         * modules/log2-ieee-tests: New file.
2499         * tests/test-log2-ieee.c: New file.
2500
2501         New module 'log2-ieee'.
2502         * modules/log2-ieee: New file.
2503
2504         Tests for module 'log2f-ieee'.
2505         * modules/log2f-ieee-tests: New file.
2506         * tests/test-log2f-ieee.c: New file.
2507         * tests/test-log2-ieee.h: New file.
2508
2509         New module 'log2f-ieee'.
2510         * modules/log2f-ieee: New file.
2511
2512 2012-03-11  Bruno Haible  <bruno@clisp.org>
2513
2514         Tests for module 'log2l'.
2515         * modules/log2l-tests: New file.
2516         * tests/test-log2l.c: New file.
2517
2518         New module 'log2l'.
2519         * lib/math.in.h (log2l): New declaration.
2520         * lib/log2l.c: New file.
2521         * m4/log2l.m4: New file.
2522         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2524         REPLACE_LOG2L.
2525         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2526         REPLACE_LOG2L.
2527         * modules/log2l: New file.
2528         * tests/test-math-c++.cc: Check the declaration of log2l.
2529         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2530         and OSF/1 problems.
2531
2532 2012-03-11  Bruno Haible  <bruno@clisp.org>
2533
2534         Tests for module 'log2f'.
2535         * modules/log2f-tests: New file.
2536         * tests/test-log2f.c: New file.
2537
2538         New module 'log2f'.
2539         * lib/math.in.h (log2f): New declaration.
2540         * lib/log2f.c: New file.
2541         * m4/log2f.m4: New file.
2542         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2544         REPLACE_LOG2F.
2545         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2546         REPLACE_LOG2F.
2547         * modules/log2f: New file.
2548         * tests/test-math-c++.cc: Check the declaration of log2f.
2549         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2550         and OSF/1 and Cygwin problems.
2551
2552 2012-03-11  Bruno Haible  <bruno@clisp.org>
2553
2554         Tests for module 'log2'.
2555         * modules/log2-tests: New file.
2556         * tests/test-log2.c: New file.
2557         * tests/test-log2.h: New file.
2558
2559         New module 'log2'.
2560         * lib/math.in.h (log2): New declaration.
2561         * lib/log2.c: New file.
2562         * m4/log2.m4: New file.
2563         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2565         REPLACE_LOG2.
2566         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2567         REPLACE_LOG2.
2568         * modules/log2: New file.
2569         * tests/test-math-c++.cc: Check the declaration of log2.
2570         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2571         and OSF/1 and Cygwin problems.
2572
2573 2012-03-11  Bruno Haible  <bruno@clisp.org>
2574
2575         exp2* tests: More tests.
2576         * tests/test-exp2.h (test_function): Test all integral arguments that
2577         don't need to overflow or denormalized numbers.
2578         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2579         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2580         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2581
2582 2012-03-10  Bruno Haible  <bruno@clisp.org>
2583
2584         log1pl-ieee: Work around test failure on AIX 7.1.
2585         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2586
2587         log1pl-ieee: Work around test failure on IRIX 6.5.
2588         * m4/log1pl-ieee.m4: New file.
2589         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2590         test whether log1pl works with a minus zero argument. Replace it if
2591         not.
2592         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2594         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2595         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2596         (Depends-on): Update conditions.
2597         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2598         m4/signbit.m4.
2599         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2600         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2601
2602         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2603         * m4/log1pf-ieee.m4: New file.
2604         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2605         test whether log1pf works with a minus zero argument. Replace it if
2606         not.
2607         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2608         m4/signbit.m4.
2609         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2610         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2611
2612         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2613         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2614         (configure.ac): Require gl_FUNC_LOG1PF.
2615
2616         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2617         * m4/log1p-ieee.m4: New file.
2618         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2619         whether log1p works with a minus zero argument. Replace it if not.
2620         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2622         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2623         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2624         (Depends-on): Update conditions.
2625         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2626         m4/signbit.m4.
2627         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2628         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2629
2630         Tests for module 'log1pl-ieee'.
2631         * modules/log1pl-ieee-tests: New file.
2632         * tests/test-log1pl-ieee.c: New file.
2633
2634         New module 'log1pl-ieee'.
2635         * modules/log1pl-ieee: New file.
2636
2637         Tests for module 'log1p-ieee'.
2638         * modules/log1p-ieee-tests: New file.
2639         * tests/test-log1p-ieee.c: New file.
2640
2641         New module 'log1p-ieee'.
2642         * modules/log1p-ieee: New file.
2643
2644         Tests for module 'log1pf-ieee'.
2645         * modules/log1pf-ieee-tests: New file.
2646         * tests/test-log1pf-ieee.c: New file.
2647         * tests/test-log1p-ieee.h: New file.
2648
2649         New module 'log1pf-ieee'.
2650         * modules/log1pf-ieee: New file.
2651
2652 2012-03-10  Bruno Haible  <bruno@clisp.org>
2653
2654         Tests for module 'log1pl'.
2655         * modules/log1pl-tests: New file.
2656         * tests/test-log1pl.c: New file.
2657
2658         New module 'log1pl'.
2659         * lib/math.in.h (log1pl): New declaration.
2660         * lib/log1pl.c: New file.
2661         * m4/log1pl.m4: New file.
2662         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2664         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2665         * modules/log1pl: New file.
2666         * tests/test-math-c++.cc: Check the declaration of log1pl.
2667         * doc/posix-functions/log1pl.texi: Mention the new module.
2668
2669 2012-03-10  Bruno Haible  <bruno@clisp.org>
2670
2671         Tests for module 'log1pf'.
2672         * modules/log1pf-tests: New file.
2673         * tests/test-log1pf.c: New file.
2674
2675         New module 'log1pf'.
2676         * lib/math.in.h (log1pf): New declaration.
2677         * lib/log1pf.c: New file.
2678         * m4/log1pf.m4: New file.
2679         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2681         REPLACE_LOG1PF.
2682         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2683         REPLACE_LOG1PF.
2684         * modules/log1pf: New file.
2685         * tests/test-math-c++.cc: Check the declaration of log1pf.
2686         * doc/posix-functions/log1pf.texi: Mention the new module.
2687
2688 2012-03-10  Bruno Haible  <bruno@clisp.org>
2689
2690         log1p tests: More tests.
2691         * tests/test-log1p.h: New file.
2692         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2693         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2694         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2695         (main): Invoke test_function.
2696
2697         log1p: Provide replacement for Minix and MSVC.
2698         * lib/math.in.h (log1p): New declaration.
2699         * lib/log1p.c: New file.
2700         * m4/log1p.m4: New file.
2701         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2703         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2704         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2705         (Depends-on): Add math, isnand, log, round.
2706         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2707         HAVE_LOG1P is 0.
2708         * tests/test-math-c++.cc: Check the declaration of log1p.
2709         * doc/posix-functions/log1p.texi: Mention the replacement.
2710
2711 2012-03-10  Bruno Haible  <bruno@clisp.org>
2712
2713         math tests: Small simplification.
2714         * tests/test-exp.h (test_function): Use the same err_bound for
2715         'double' on platforms with sizeof (long double) == sizeof (double)
2716         than on platforms with sizeof (long double) > sizeof (double).
2717         * tests/test-exp2.h (test_function): Likewise.
2718         * tests/test-expm1.h (test_function): Likewise.
2719         * tests/test-log.h (test_function): Likewise.
2720
2721 2012-03-10  Bruno Haible  <bruno@clisp.org>
2722
2723         Fix some comments.
2724         * lib/expl.c: Fix an ambiguous comment.
2725         * lib/expm1.c: Likewise.
2726         * lib/expm1l.c: Likewise.
2727         * lib/exp2.c: Likewise.
2728         * lib/exp2l.c: Likewise.
2729
2730 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2731
2732         regex: allow inclusion of <regex.h> before <limits.h>
2733         Without this patch, portable programs had to include <limits.h> before
2734         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2735         I ran into this problem with a test version of GNU grep on Solaris 8.
2736         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2737         This is done conditionally so that this change can be merged
2738         back to glibc.
2739         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2740         using the included regex.
2741
2742         fts: depend on fdopendir
2743         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2744         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2745         problem was introduced when fdopendir was split out.
2746
2747 2012-03-10  Bruno Haible  <bruno@clisp.org>
2748
2749         Remove unused variables.
2750         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2751         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2752
2753 2012-03-10  Bruno Haible  <bruno@clisp.org>
2754
2755         isnanf-nolibm: Fix last commit.
2756         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2757
2758         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2759         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2760
2761 2012-03-10  Bruno Haible  <bruno@clisp.org>
2762
2763         logf-ieee: Work around test failure on NetBSD 5.1.
2764         * m4/logf-ieee.m4: New file.
2765         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2766         whether logf works with a negative argument. Replace it if not.
2767         * lib/logf.c (logf): For negative arguments, return NaN.
2768         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2769         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2770         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2771
2772         logf-ieee: Work around test failure on Solaris 9.
2773         * modules/logf-ieee (Depends-on): Add log-ieee.
2774         (configure.ac): Require gl_FUNC_LOGF.
2775
2776         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2777         * m4/log-ieee.m4: New file.
2778         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2779         log works with a negative argument. Replace it if not.
2780         * lib/log.c (log): For negative arguments, return NaN.
2781         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2782         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2783         * doc/posix-functions/log.texi: Mention the log-ieee module.
2784
2785         Tests for module 'logl-ieee'.
2786         * modules/logl-ieee-tests: New file.
2787         * tests/test-logl-ieee.c: New file.
2788
2789         New module 'logl-ieee'.
2790         * modules/logl-ieee: New file.
2791
2792         Tests for module 'log-ieee'.
2793         * modules/log-ieee-tests: New file.
2794         * tests/test-log-ieee.c: New file.
2795
2796         New module 'log-ieee'.
2797         * modules/log-ieee: New file.
2798
2799         Tests for module 'logf-ieee'.
2800         * modules/logf-ieee-tests: New file.
2801         * tests/test-logf-ieee.c: New file.
2802         * tests/test-log-ieee.h: New file.
2803
2804         New module 'logf-ieee'.
2805         * modules/logf-ieee: New file.
2806
2807 2012-03-10  Bruno Haible  <bruno@clisp.org>
2808
2809         log: Fix bug introduced on 2012-03-09.
2810         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2811
2812 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2813
2814         timer-time: link explicitly with pthreads on glibc
2815         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2816         to support static linking, when newer glibc is
2817         detected, as that contains pthread emulation of
2818         POSIX timer functions where required.
2819         * modules/timer-time: Depend on threadlib to
2820         pull in the appropriate library to link.
2821
2822 2012-03-10  Bruno Haible  <bruno@clisp.org>
2823
2824         log* tests: More tests.
2825         * tests/test-log.h: New file.
2826         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2827         (main): Invoke test_function.
2828         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2829         (main): Invoke test_function.
2830         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2831         (main): Invoke test_function.
2832         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2833         tests/randomd.c.
2834         (Makefile.am): Add randomd.c to test_log_SOURCES.
2835         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2836         tests/randomf.c.
2837         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2838         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2839         tests/randoml.c.
2840         (Depends-on): Add 'float'.
2841         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2842
2843 2012-03-09  Bruno Haible  <bruno@clisp.org>
2844
2845         logl: Work around OSF/1 5.1 bug.
2846         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2847         * lib/logl.c (logl): If logl exists, use it and provide just the
2848         workaround.
2849         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2850         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2852         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2853         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2854         (Depends-on): Update conditions.
2855         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2856
2857 2012-03-09  Bruno Haible  <bruno@clisp.org>
2858
2859         logf: Work around OSF/1 5.1 bug.
2860         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2861         * lib/logf.c (logf): If logf exists, use it and provide just the
2862         workaround.
2863         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2864         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2866         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2867         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2868         (Depends-on): Update conditions.
2869         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2870
2871 2012-03-09  Bruno Haible  <bruno@clisp.org>
2872
2873         log: Work around OSF/1 5.1 bug.
2874         * lib/math.in.h (log): New declaration.
2875         * lib/log.c: New file.
2876         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2877         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2878         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2880         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2881         * modules/log (Files): Add lib/log.c.
2882         (Depends-on): Add math.
2883         (configure.ac): If REPLACE_LOG is 1, compile an override.
2884         * tests/test-math-c++.cc: Check the declaration of log.
2885         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2886
2887 2012-03-09  Jim Meyering  <meyering@redhat.com>
2888
2889         readtokens.c: adjust wording in a comment
2890         * lib/readtokens.c: Insert omitted "that" in a comment.
2891
2892 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2893
2894         modechange: add notations +40, 00440, etc.
2895         * lib/modechange.c (mode_compile): Support new notations
2896         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2897
2898 2012-03-08  Bruno Haible  <bruno@clisp.org>
2899
2900         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2901         * m4/exp2l-ieee.m4: New file.
2902         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2903         test whether exp2l works with a NaN argument and with a negative
2904         infinity argument. Replace it if not.
2905         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2907         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2908         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2909         (Depends-on): Update conditions.
2910         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2911         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2912         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2913
2914         Tests for module 'exp2l-ieee'.
2915         * modules/exp2l-ieee-tests: New file.
2916         * tests/test-exp2l-ieee.c: New file.
2917
2918         New module 'exp2l-ieee'.
2919         * modules/exp2l-ieee: New file.
2920
2921         Tests for module 'exp2-ieee'.
2922         * modules/exp2-ieee-tests: New file.
2923         * tests/test-exp2-ieee.c: New file.
2924
2925         New module 'exp2-ieee'.
2926         * modules/exp2-ieee: New file.
2927
2928         Tests for module 'exp2f-ieee'.
2929         * modules/exp2f-ieee-tests: New file.
2930         * tests/test-exp2f-ieee.c: New file.
2931         * tests/test-exp2-ieee.h: New file.
2932
2933         New module 'exp2f-ieee'.
2934         * modules/exp2f-ieee: New file.
2935
2936 2012-03-08  Bruno Haible  <bruno@clisp.org>
2937
2938         Tests for module 'exp2l'.
2939         * modules/exp2l-tests: New file.
2940         * tests/test-exp2l.c: New file.
2941
2942         New module 'exp2l'.
2943         * lib/math.in.h (exp2l): New declaration.
2944         * lib/exp2l.c: New file.
2945         * lib/expl-table.c: New file, extracted from lib/expl.c.
2946         * lib/expl.c (gl_expl_table): New declaration.
2947         (expl): Remove expl_table. Update reference.
2948         * m4/exp2l.m4: New file.
2949         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2951         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2952         * modules/exp2l: New file.
2953         * modules/expl (Files): Add lib/expl-table.c.
2954         (configure.ac): Compile also expl-table.c.
2955         * tests/test-math-c++.cc: Check the declaration of exp2l.
2956         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2957         problem.
2958
2959 2012-03-08  Bruno Haible  <bruno@clisp.org>
2960
2961         Tests for module 'exp2f'.
2962         * modules/exp2f-tests: New file.
2963         * tests/test-exp2f.c: New file.
2964
2965         New module 'exp2f'.
2966         * lib/math.in.h (exp2f): New declaration.
2967         * lib/exp2f.c: New file.
2968         * m4/exp2f.m4: New file.
2969         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2971         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2972         * modules/exp2f: New file.
2973         * tests/test-math-c++.cc: Check the declaration of exp2f.
2974         * doc/posix-functions/exp2f.texi: Mention the new module and the
2975         IRIX problem.
2976
2977 2012-03-08  Bruno Haible  <bruno@clisp.org>
2978
2979         Tests for module 'exp2'.
2980         * modules/exp2-tests: New file.
2981         * tests/test-exp2.c: New file.
2982         * tests/test-exp2.h: New file.
2983
2984         New module 'exp2'.
2985         * lib/math.in.h (exp2): New declaration.
2986         * lib/exp2.c: New file.
2987         * m4/exp2.m4: New file.
2988         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2990         REPLACE_EXP2.
2991         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2992         REPLACE_EXP2.
2993         * modules/exp2: New file.
2994         * tests/test-math-c++.cc: Check the declaration of exp2.
2995         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2996         and OpenBSD problems.
2997
2998 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         savedir: fix comment typo
3001         * lib/savedir.c (savedirstream): Fix typo in comment.
3002
3003 2012-03-08  Bruno Haible  <bruno@clisp.org>
3004
3005         test-readtokens.c: use const; remove unwarranted cast
3006         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3007
3008 2012-03-08  Bruno Haible  <bruno@clisp.org>
3009
3010         fmal: Avoid compilation error on AIX.
3011         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3012         AIX 5.2..7.1.
3013
3014 2012-03-08  Bruno Haible  <bruno@clisp.org>
3015
3016         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3017         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3018         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3019         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3020         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3021         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3022         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3023
3024 2012-03-08  Bruno Haible  <bruno@clisp.org>
3025
3026         remainderf: Override buggy system function on IRIX 6.5.
3027         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3028         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3029         when it exists.
3030         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3031
3032 2012-03-08  Jim Meyering  <meyering@redhat.com>
3033
3034         test-readtokens.c: avoid const-related compilation warnings
3035         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3036
3037 2012-03-07  Jim Meyering  <meyering@redhat.com>
3038             Bruno Haible  <bruno@clisp.org>
3039
3040         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3041         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3042         tests/randomd.c.
3043         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3044         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3045         tests/randoml.c.
3046         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3047
3048 2012-03-07  Bruno Haible  <bruno@clisp.org>
3049
3050         expm1l: Avoid compilation error on AIX.
3051         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3052         AIX 5.2..7.1.
3053
3054 2012-03-07  Bruno Haible  <bruno@clisp.org>
3055
3056         expm1l: Don't override undeclared system function on IRIX 6.5.
3057         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3058         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3059         it exists. Set HAVE_DECL_EXPM1L.
3060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3061         HAVE_EXPM1L.
3062         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3063         HAVE_EXPM1L.
3064         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3065
3066 2012-03-07  Bruno Haible  <bruno@clisp.org>
3067
3068         remainderl: Don't override undeclared system function on IRIX 6.5.
3069         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3070         HAVE_REMAINDERL.
3071         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3072         declared when it exists. Set HAVE_DECL_REMAINDERL.
3073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3074         not HAVE_REMAINDERL.
3075         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3076         HAVE_REMAINDERL.
3077         * doc/posix-functions/remainderl.texi: Mention missing declaration
3078         problem.
3079
3080 2012-03-07  Bruno Haible  <bruno@clisp.org>
3081
3082         rintf: Don't override undeclared system function on IRIX 6.5.
3083         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3084         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3085         exists. Set HAVE_DECL_RINTF.
3086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3087         HAVE_RINTF.
3088         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3089         HAVE_RINTF.
3090         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3091
3092 2012-03-07  Bruno Haible  <bruno@clisp.org>
3093
3094         roundl: Avoid compilation error on AIX.
3095         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3096         AIX 5.2..7.1.
3097
3098 2012-03-07  Bruno Haible  <bruno@clisp.org>
3099
3100         roundl: Don't override undeclared system function on IRIX 6.5.
3101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3102         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3103         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3104         * modules/roundl (configure.ac): For replacement code, test
3105         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3106         (Depends-on): Update conditions.
3107         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3108
3109 2012-03-07  Bruno Haible  <bruno@clisp.org>
3110
3111         roundf: Don't override undeclared system function on IRIX 6.5.
3112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3113         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3114         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3115         * modules/roundf (configure.ac): For replacement code, test
3116         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3117         (Depends-on): Update conditions.
3118         * modules/roundf-ieee (Depends-on): Update conditions.
3119         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3120
3121 2012-03-07  Bruno Haible  <bruno@clisp.org>
3122
3123         round: Don't override undeclared system function on IRIX 6.5.
3124         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3125         argument.
3126         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3127         also when it is not declared. Set HAVE_ROUND. For replacement code,
3128         test HAVE_ROUND, not HAVE_DECL_ROUND.
3129         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3130         not HAVE_DECL_ROUND.
3131         (Depends-on): Update conditions.
3132         * modules/round-ieee (Depends-on): Update conditions.
3133         * doc/posix-functions/round.texi: Mention the IRIX problem.
3134
3135 2012-03-07  Bruno Haible  <bruno@clisp.org>
3136
3137         copysignf: Don't override undeclared system function on IRIX 6.5.
3138         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3139         HAVE_COPYSIGNF.
3140         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3141         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3143         not HAVE_COPYSIGNF.
3144         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3145         HAVE_COPYSIGNF.
3146         * doc/posix-functions/copysignf.texi: Mention missing declaration
3147         problem.
3148
3149 2012-03-07  Jim Meyering  <meyering@redhat.com>
3150
3151         readtokens: add tests
3152         * modules/readtokens-tests: New file.
3153         * tests/test-readtokens.c: New file.
3154
3155 2012-03-07  Jim Meyering  <meyering@redhat.com>
3156
3157         quotearg: the module must now include quote.h
3158         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3159         So must the module.
3160         * modules/quotearg (Files): Add quote.h.
3161
3162 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3163
3164         readtokens: avoid core dumps with unusual calling patterns
3165         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3166         * lib/readtokens.c: Include limits.h.
3167         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3168         (readtoken): Don't cache the delimiters; the cache code was buggy
3169         if !delim && saved_delim, or if the new n_delim differs from the old.
3170         Also, it wasn't thread-safe.
3171
3172 2012-03-07  Bruno Haible  <bruno@clisp.org>
3173
3174         quote: Adhere to common module description layout.
3175         * modules/quote (Makefile.am): Add back empty section.
3176
3177 2012-03-06  Akim Demaille  <demaille@gostai.com>
3178
3179         quote: fuse into quotearg
3180         This patch is made for the benefit of Bison.
3181         quote does not leave the choice of the quoting style to the user.
3182         quoting_style provides poor customizability, yet quoting_options,
3183         which is very rich, is hidden inside quotearg.c.  So in order to
3184         allow quote customization, move its implementation to quotearg.c.
3185         * lib/quote.c: Remove.
3186         * modules/quote: Adjust.
3187         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3188         warning: provide all the members of literal structs.
3189         (quote_quoting_options): New.
3190         (quote, quote_n): Import implementation from quote.c.
3191         * lib/quote.h: Import the comments from quote.c.
3192         (quote_quoting_options): New.
3193
3194 2012-03-06  Bruno Haible  <bruno@clisp.org>
3195
3196         Tests for module 'expm1l-ieee'.
3197         * modules/expm1l-ieee-tests: New file.
3198         * tests/test-expm1l-ieee.c: New file.
3199
3200         New module 'expm1l-ieee'.
3201         * modules/expm1l-ieee: New file.
3202
3203         Tests for module 'expm1f-ieee'.
3204         * modules/expm1f-ieee-tests: New file.
3205         * tests/test-expm1f-ieee.c: New file.
3206
3207         New module 'expm1f-ieee'.
3208         * modules/expm1f-ieee: New file.
3209
3210         Tests for module 'expm1-ieee'.
3211         * modules/expm1-ieee-tests: New file.
3212         * tests/test-expm1-ieee.c: New file.
3213         * tests/test-expm1-ieee.h: New file.
3214
3215         New module 'expm1-ieee'.
3216         * modules/expm1-ieee: New file.
3217         * m4/expm1-ieee.m4: New file.
3218         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3219         whether expm1 works with a minus zero argument. Replace it if not.
3220         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3222         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3223         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3224         (Depends-on): Update conditions.
3225         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3226         AIX problem.
3227
3228 2012-03-06  Bruno Haible  <bruno@clisp.org>
3229
3230         Work around expm1f bug on IRIX 6.5.
3231         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3232         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3233         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3234         not work.
3235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3236         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3237         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3238         (Depends-on): Update conditions.
3239         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3240
3241 2012-03-06  Bruno Haible  <bruno@clisp.org>
3242
3243         Tests for module 'expm1l'.
3244         * modules/expm1l-tests: New file.
3245         * tests/test-expm1l.c: New file.
3246
3247         New module 'expm1l'.
3248         * lib/math.in.h (expm1l): New declaration.
3249         * lib/expm1l.c: New file.
3250         * m4/expm1l.m4: New file.
3251         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3253         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3254         * modules/expm1l: New file.
3255         * tests/test-math-c++.cc: Check the declaration of expm1l.
3256         * doc/posix-functions/expm1l.texi: Mention the new module.
3257
3258 2012-03-06  Bruno Haible  <bruno@clisp.org>
3259
3260         Tests for module 'expm1f'.
3261         * modules/expm1f-tests: New file.
3262         * tests/test-expm1f.c: New file.
3263
3264         New module 'expm1f'.
3265         * lib/math.in.h (expm1f): New declaration.
3266         * lib/expm1f.c: New file.
3267         * m4/expm1f.m4: New file.
3268         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3270         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3271         * modules/expm1f: New file.
3272         * tests/test-math-c++.cc: Check the declaration of expm1f.
3273         * doc/posix-functions/expm1f.texi: Mention the new module.
3274
3275 2012-03-06  Bruno Haible  <bruno@clisp.org>
3276
3277         Tests for module 'expm1'.
3278         * modules/expm1-tests: New file.
3279         * tests/test-expm1.c: New file.
3280         * tests/test-expm1.h: New file.
3281
3282         New module 'expm1'.
3283         * lib/math.in.h (expm1): New declaration.
3284         * lib/expm1.c: New file.
3285         * m4/expm1.m4: New file.
3286         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3288         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3289         * modules/expm1: New file.
3290         * tests/test-math-c++.cc: Check the declaration of expm1.
3291         * doc/posix-functions/expm1.texi: Mention the new module.
3292
3293 2012-03-06  Bruno Haible  <bruno@clisp.org>
3294
3295         math: Ensure declarations of math functions.
3296         * modules/acosf (Depends-on): Add 'extensions'.
3297         * modules/asinf (Depends-on): Likewise.
3298         * modules/atan2f (Depends-on): Likewise.
3299         * modules/atanf (Depends-on): Likewise.
3300         * modules/cbrt (Depends-on): Likewise.
3301         * modules/cbrtf (Depends-on): Likewise.
3302         * modules/cbrtl (Depends-on): Likewise.
3303         * modules/copysignf (Depends-on): Likewise.
3304         * modules/copysignl (Depends-on): Likewise.
3305         * modules/cosf (Depends-on): Likewise.
3306         * modules/coshf (Depends-on): Likewise.
3307         * modules/expf (Depends-on): Likewise.
3308         * modules/fabsf (Depends-on): Likewise.
3309         * modules/fabsl (Depends-on): Likewise.
3310         * modules/fmaf (Depends-on): Likewise.
3311         * modules/fmal (Depends-on): Likewise.
3312         * modules/fmodf (Depends-on): Likewise.
3313         * modules/fmodl (Depends-on): Likewise.
3314         * modules/frexpf (Depends-on): Likewise.
3315         * modules/frexpl (Depends-on): Likewise.
3316         * modules/hypot (Depends-on): Likewise.
3317         * modules/hypotf (Depends-on): Likewise.
3318         * modules/hypotl (Depends-on): Likewise.
3319         * modules/ldexpf (Depends-on): Likewise.
3320         * modules/ldexpl (Depends-on): Likewise.
3321         * modules/log10f (Depends-on): Likewise.
3322         * modules/log10l (Depends-on): Likewise.
3323         * modules/log1p (Depends-on): Likewise.
3324         * modules/logb (Depends-on): Likewise.
3325         * modules/logf (Depends-on): Likewise.
3326         * modules/modff (Depends-on): Likewise.
3327         * modules/modfl (Depends-on): Likewise.
3328         * modules/powf (Depends-on): Likewise.
3329         * modules/remainderf (Depends-on): Likewise.
3330         * modules/remainderl (Depends-on): Likewise.
3331         * modules/rintf (Depends-on): Likewise.
3332         * modules/rintl (Depends-on): Likewise.
3333         * modules/sinf (Depends-on): Likewise.
3334         * modules/sinhf (Depends-on): Likewise.
3335         * modules/sqrtf (Depends-on): Likewise.
3336         * modules/tanf (Depends-on): Likewise.
3337         * modules/tanhf (Depends-on): Likewise.
3338         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3339         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3340         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3341         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3342         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3343         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3344         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3345         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3346         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3347         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3348         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3349         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3350         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3351         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3352         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3353         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3354         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3355         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3356         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3357         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3358         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3359         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3360         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3361         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3363         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3364         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3365         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3366         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3367         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3368         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3369         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3370         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3371         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3372         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3373         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3374         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3375         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3376         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3377         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3378         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3379
3380 2012-03-06  Bruno Haible  <bruno@clisp.org>
3381
3382         math: Update module names in warnings.
3383         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3384         tanl): Use specific module name in warn-on-use warning.
3385
3386 2012-03-06  Bruno Haible  <bruno@clisp.org>
3387
3388         expl: Simplify computation.
3389         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3390
3391 2012-03-05  Bruno Haible  <bruno@clisp.org>
3392
3393         exp* tests: More tests.
3394         * tests/test-exp.h: New file.
3395         * tests/test-exp.c: Include <float.h> and test-exp.h.
3396         (main): Invoke test_function.
3397         * tests/test-expf.c: Include <float.h> and test-exp.h.
3398         (main): Invoke test_function.
3399         * tests/test-expl.c: Include <float.h> and test-exp.h.
3400         (main): Invoke test_function.
3401         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3402         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3403         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3404         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3405         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3406         (Depends-on): Add 'float'.
3407         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3408
3409         expl: Fix precision of computed result.
3410         * lib/expl.c: Completely rewritten.
3411         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3412         (Maintainer): Add me.
3413         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3414
3415 2012-03-05  Bruno Haible  <bruno@clisp.org>
3416
3417         cbrt* tests: More tests.
3418         * tests/test-cbrt.h: New file.
3419         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3420         (main): Invoke test_function.
3421         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3422         (main): Invoke test_function.
3423         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3424         (main): Invoke test_function.
3425         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3426         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3427         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3428         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3429         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3430         (Depends-on): Add 'float'.
3431         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3432
3433 2012-03-05  Bruno Haible  <bruno@clisp.org>
3434
3435         hypot* tests: More tests.
3436         * tests/test-hypot.h: New file, partially extracted from
3437         tests/test-hypotl.c.
3438         * tests/test-hypot.c: Include test-hypot.h.
3439         (main): Invoke test_function.
3440         * tests/test-hypotf.c: Include test-hypot.h.
3441         (main): Invoke test_function.
3442         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3443         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3444         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3445         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3446         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3447         tests/randomf.c.
3448         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3449         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3450         tests/randoml.c.
3451         (Depends-on): Add 'fpucw', 'float'.
3452         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3453
3454 2012-03-05  Bruno Haible  <bruno@clisp.org>
3455
3456         fpucw: Doc about FreeBSD.
3457         * lib/fpucw.h: Mention FreeBSD in comments.
3458
3459 2012-03-04  Bruno Haible  <bruno@clisp.org>
3460
3461         sqrt* tests: More tests.
3462         * tests/test-sqrt.h: New file.
3463         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3464         (main): Invoke test_function.
3465         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3466         (main): Invoke test_function.
3467         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3468         (main): Invoke test_function.
3469         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3470         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3471         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3472         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3473         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3474         (Depends-on): Add 'float'.
3475         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3476
3477 2012-03-04  Bruno Haible  <bruno@clisp.org>
3478
3479         remainder* tests: More tests.
3480         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3481         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3482         (main): Invoke test_function.
3483         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3484         (main): Invoke test_function.
3485         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3486         (main): Invoke test_function.
3487         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3488         tests/randomd.c.
3489         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3490         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3491         tests/randomf.c.
3492         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3493         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3494         tests/randoml.c.
3495         (Depends-on): Add 'float'.
3496         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3497
3498 2012-03-04  Bruno Haible  <bruno@clisp.org>
3499
3500         remainder, remainderf, remainderl: Fix computation for large quotients.
3501         * lib/remainder.c: Completely rewritten.
3502         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3503         USE_FLOAT.
3504         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3505         USE_LONG_DOUBLE.
3506         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3507         isnand, isinf. Remove round, fma.
3508         * modules/remainderf (Files): Add lib/remainder.c.
3509         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3510         Remove roundf, fmaf.
3511         * modules/remainderl (Files): Add lib/remainder.c.
3512         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3513         isinf. Remove roundl, fmal.
3514         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3515         REMAINDER_LIBM.
3516         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3517         REMAINDERF_LIBM.
3518         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3519         REMAINDERL_LIBM.
3520
3521 2012-03-04  Bruno Haible  <bruno@clisp.org>
3522
3523         fmod* tests: More tests.
3524         * tests/test-fmod.h (my_ldexp): New function.
3525         (test_function): Reduce amount of random numbers to test. Add tests
3526         of very large quotients x / y.
3527         * tests/test-fmod.c (MAX_EXP): New macro.
3528         * tests/test-fmodf.c (MAX_EXP): Likewise.
3529         * tests/test-fmodl.c (MAX_EXP): Likewise.
3530
3531 2012-03-04  Bruno Haible  <bruno@clisp.org>
3532
3533         fmod, fmodl: Fix computation for large quotients x / y.
3534         * lib/fmod.c: Completely rewritten.
3535         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3536         USE_LONG_DOUBLE.
3537         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3538         isnand. Remove fma.
3539         * modules/fmodl (Files): Add lib/fmod.c.
3540         (Depends-on): Add float, isfinite, signbit, fabsl,
3541         frexpl, ldexpl, isnanl. Remove fma.
3542         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3543         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3544
3545 2012-03-03  Bruno Haible  <bruno@clisp.org>
3546
3547         fmod* tests: More tests.
3548         * tests/test-fmod.h: New file.
3549         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3550         (main): Invoke test_function.
3551         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3552         (main): Invoke test_function.
3553         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3554         (main): Invoke test_function.
3555         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3556         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3557         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3558         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3559         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3560         (Depends-on): Add 'float'.
3561         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3562
3563 2012-03-03  Bruno Haible  <bruno@clisp.org>
3564
3565         rint* tests: More tests.
3566         * tests/test-rint.h: New file, partially extracted from
3567         tests/test-rintl.c.
3568         * tests/test-rint.c: Include test-rint.h.
3569         (main): Invoke test_function.
3570         * tests/test-rintf.c: Include test-rint.h.
3571         (main): Invoke test_function.
3572         * tests/test-rintl.c: Include test-rint.h.
3573         (main): Invoke test_function.
3574         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3575         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3576         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3577         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3578         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3579         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3580
3581 2012-03-03  Bruno Haible  <bruno@clisp.org>
3582
3583         modf* tests: More tests.
3584         * tests/test-modf.h: New file.
3585         * tests/test-modf.c: Include <float.h> and test-modf.h.
3586         (main): Invoke test_function.
3587         * tests/test-modff.c: Include <float.h> and test-modf.h.
3588         (main): Invoke test_function.
3589         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3590         (main): Invoke test_function.
3591         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3592         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3593         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3594         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3595         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3596         (Depends-on): Add 'float'.
3597         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3598
3599 2012-03-03  Bruno Haible  <bruno@clisp.org>
3600
3601         fabs* tests: More tests.
3602         * tests/test-fabs.h: New file, partially extracted from
3603         tests/test-fabsl.c.
3604         * tests/test-fabs.c (RANDOM): New macro.
3605         * tests/test-fabsf.c (RANDOM): New macro.
3606         * tests/test-fabsl.c (RANDOM): New macro.
3607         * modules/fabs-tests (Files): Add tests/randomd.c.
3608         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3609         * modules/fabsf-tests (Files): Add tests/randomf.c.
3610         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3611         * modules/fabsl-tests (Files): Add tests/randoml.c.
3612         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3613
3614 2012-03-03  Bruno Haible  <bruno@clisp.org>
3615
3616         ldexp* tests: More tests.
3617         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3618         * tests/test-ldexp.c (RANDOM): New macro.
3619         * tests/test-ldexpf.c (RANDOM): New macro.
3620         * tests/test-ldexpl.c (RANDOM): New macro.
3621         * modules/ldexp-tests (Files): Add tests/randomd.c.
3622         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3623         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3624         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3625         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3626         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3627
3628 2012-03-03  Bruno Haible  <bruno@clisp.org>
3629
3630         frexp* tests: More tests.
3631         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3632         * tests/test-frexp.c (RANDOM): New macro.
3633         * tests/test-frexpf.c (RANDOM): New macro.
3634         * tests/test-frexpl.c (RANDOM): New macro.
3635         * modules/frexp-tests (Files): Add tests/randomd.c.
3636         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3637         * modules/frexpf-tests (Files): Add tests/randomf.c.
3638         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3639         * modules/frexpl-tests (Files): Add tests/randoml.c.
3640         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3641
3642 2012-03-03  Bruno Haible  <bruno@clisp.org>
3643
3644         Support for pseudo-random numbers in tests.
3645         * tests/randomf.c: New file.
3646         * tests/randomd.c: New file.
3647         * tests/randoml.c: New file.
3648         * tests/macros.h (randomf, randomd, randoml): New declarations.
3649
3650 2012-03-03  Bruno Haible  <bruno@clisp.org>
3651
3652         frexp* tests: Refactor.
3653         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3654         * tests/test-frexp.c: Include and use it.
3655         * tests/test-frexpf.c: Likewise.
3656         * tests/test-frexpl.c: Likewise.
3657         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3658         * modules/frexpf-tests (Files): Likewise.
3659         * modules/frexpl-tests (Files): Likewise.
3660
3661 2012-03-02  Jim Meyering  <meyering@redhat.com>
3662
3663         maint: don't specify XZ_OPT=-9ev in dist-related rule
3664         Using xz's -9 option is warranted only if you have a very large
3665         tarball (see xz's documentation for the sizes vs. presets), and
3666         requires 64MiB of memory at decompression time.
3667         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3668         Automake's default of just "-e" is fine.  Override on a
3669         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3670
3671 2012-03-01  Eric Blake  <eblake@redhat.com>
3672
3673         maint.mk: allow announcement for non-gnulib project
3674         * maint.mk (announcement): Skip gnulib version if not used.
3675
3676 2012-03-01  Jim Meyering  <meyering@redhat.com>
3677
3678         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3679         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3680         envvar settings cannot interfere.  Otherwise, setting envvars like
3681         prohibit=foo require=bar, etc. would cause spurious test failures.
3682
3683 2012-03-01  Eric Blake  <eblake@redhat.com>
3684
3685         maint.mk: add per-line exclusions to prohibitions
3686         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3687         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3688         (sc_const_long_option): Use it.
3689
3690 2012-03-01  Bruno Haible  <bruno@clisp.org>
3691
3692         Tests for module 'expl-ieee'.
3693         * modules/expl-ieee-tests: New file.
3694         * tests/test-expl-ieee.c: New file.
3695
3696         New module 'expl-ieee'.
3697         * modules/expl-ieee: New file.
3698
3699         Tests for module 'exp-ieee'.
3700         * modules/exp-ieee-tests: New file.
3701         * tests/test-exp-ieee.c: New file.
3702
3703         New module 'exp-ieee'.
3704         * modules/exp-ieee: New file.
3705
3706         Tests for module 'expf-ieee'.
3707         * modules/expf-ieee-tests: New file.
3708         * tests/test-expf-ieee.c: New file.
3709         * tests/test-exp-ieee.h: New file.
3710
3711         New module 'expf-ieee'.
3712         * modules/expf-ieee: New file.
3713
3714 2012-02-29  Bruno Haible  <bruno@clisp.org>
3715
3716         cbrtl-ieee: Work around test failure on IRIX 6.5.
3717         * m4/cbrtl-ieee.m4: New file.
3718         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3719         test whether cbrtl works with a minus zero argument. Replace it if not.
3720         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3722         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3723         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3724         (Depends-on): Update conditions.
3725         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3726         m4/signbit.m4.
3727         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3728         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3729         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3730
3731         Tests for module 'cbrtl-ieee'.
3732         * modules/cbrtl-ieee-tests: New file.
3733         * tests/test-cbrtl-ieee.c: New file.
3734
3735         New module 'cbrtl-ieee'.
3736         * modules/cbrtl-ieee: New file.
3737
3738         Tests for module 'cbrt-ieee'.
3739         * modules/cbrt-ieee-tests: New file.
3740         * tests/test-cbrt-ieee.c: New file.
3741
3742         New module 'cbrt-ieee'.
3743         * modules/cbrt-ieee: New file.
3744
3745         Tests for module 'cbrtf-ieee'.
3746         * modules/cbrtf-ieee-tests: New file.
3747         * tests/test-cbrtf-ieee.c: New file.
3748         * tests/test-cbrt-ieee.h: New file.
3749
3750         New module 'cbrtf-ieee'.
3751         * modules/cbrtf-ieee: New file.
3752
3753 2012-02-29  Bruno Haible  <bruno@clisp.org>
3754
3755         cbrtf: Work around bug in IRIX 6.5 system function.
3756         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3757         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3758         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3759         work.
3760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3761         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3762         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3763         (Depends-on): Update conditions.
3764         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3765
3766 2012-02-29  Bruno Haible  <bruno@clisp.org>
3767
3768         Tests for module 'cbrtl'.
3769         * modules/cbrtl-tests: New file.
3770         * tests/test-cbrtl.c: New file.
3771
3772         New module 'cbrtl'.
3773         * lib/math.in.h (cbrtl): New declaration.
3774         * lib/cbrtl.c: New file.
3775         * m4/cbrtl.m4: New file.
3776         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3778         HAVE_DECL_CBRTL.
3779         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3780         HAVE_DECL_CBRTL.
3781         * modules/cbrtl: New file.
3782         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3783         * doc/posix-functions/cbrtl.texi: Mention the new module.
3784
3785 2012-02-29  Bruno Haible  <bruno@clisp.org>
3786
3787         Tests for module 'cbrtf'.
3788         * modules/cbrtf-tests: New file.
3789         * tests/test-cbrtf.c: New file.
3790
3791         New module 'cbrtf'.
3792         * lib/math.in.h (cbrtf): New declaration.
3793         * lib/cbrtf.c: New file.
3794         * m4/cbrtf.m4: New file.
3795         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3797         HAVE_DECL_CBRTF.
3798         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3799         HAVE_DECL_CBRTF.
3800         * modules/cbrtf: New file.
3801         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3802         * doc/posix-functions/cbrtf.texi: Mention the new module.
3803
3804 2012-02-29  Bruno Haible  <bruno@clisp.org>
3805
3806         cbrt: Provide replacement on MSVC and Minix.
3807         * lib/math.in.h (cbrt): New declaration.
3808         * lib/cbrt.c: New file.
3809         * m4/cbrt.m4: New file.
3810         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3812         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3813         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3814         (Depends-on): Add dependencies.
3815         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3816         * tests/test-math-c++.cc: Check the declaration of cbrt.
3817         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3818         replacement.
3819
3820 2012-02-29  Bruno Haible  <bruno@clisp.org>
3821
3822         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3823         * m4/hypotl-ieee.m4: New file.
3824         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3825         test whether hypotl works with mixed NaN and Infinity arguments.
3826         Replace it if not.
3827         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3829         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3830         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3831         (Depends-on): Update conditions.
3832         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3833         (Depends-on): Add hypot-ieee.
3834         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3835         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3836
3837         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3838         * m4/hypotf-ieee.m4: New file.
3839         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3840         test whether hypotf works with mixed NaN and Infinity arguments.
3841         Replace it if not.
3842         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3843         (Depends-on): Add hypot-ieee.
3844         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3845         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3846
3847         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3848         * lib/math.in.h (hypot): New declaration.
3849         * lib/hypot.c: New file.
3850         * m4/hypot-ieee.m4: New file.
3851         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3852         whether hypot works with mixed NaN and Infinity arguments. Replace it
3853         if not.
3854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3855         REPLACE_HYPOT.
3856         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3857         * modules/hypot (Files): Add lib/hypot.c.
3858         (Depends-on): Add dependencies.
3859         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3860         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3861         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3862         * tests/test-math-c++.cc: Check the declaration of hypot.
3863         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3864
3865         Tests for module 'hypotl-ieee'.
3866         * modules/hypotl-ieee-tests: New file.
3867         * tests/test-hypotl-ieee.c: New file.
3868
3869         New module 'hypotl-ieee'.
3870         * modules/hypotl-ieee: New file.
3871
3872         Tests for module 'hypot-ieee'.
3873         * modules/hypot-ieee-tests: New file.
3874         * tests/test-hypot-ieee.c: New file.
3875
3876         New module 'hypot-ieee'.
3877         * modules/hypot-ieee: New file.
3878
3879         Tests for module 'hypotf-ieee'.
3880         * modules/hypotf-ieee-tests: New file.
3881         * tests/test-hypotf-ieee.c: New file.
3882         * tests/test-hypot-ieee.h: New file.
3883
3884         New module 'hypotf-ieee'.
3885         * modules/hypotf-ieee: New file.
3886
3887 2012-02-29  Bruno Haible  <bruno@clisp.org>
3888
3889         Remove unused variables.
3890         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3891         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3892         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3893         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3894
3895 2012-02-29  Eric Blake  <eblake@redhat.com>
3896
3897         termios: fix pid_t always, not just for tcgetsid
3898         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3899         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3900         just when building tcgetsid.
3901
3902 2012-02-29  Bruno Haible  <bruno@clisp.org>
3903
3904         Tests for module 'hypotl'.
3905         * modules/hypotl-tests: New file.
3906         * tests/test-hypotl.c: New file.
3907
3908         New module 'hypotl'.
3909         * lib/math.in.h (hypotl): New declaration.
3910         * lib/hypotl.c: New file.
3911         * m4/hypotl.m4: New file.
3912         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3914         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3915         * modules/hypotl: New file.
3916         * tests/test-math-c++.cc: Check the hypotl declaration.
3917         * doc/posix-functions/hypotl.texi: Mention the new module.
3918
3919 2012-02-29  Eric Blake  <eblake@redhat.com>
3920
3921         tcgetsid: fix cygwin header bug
3922         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3923
3924         docs: update cygwin progress
3925         * doc/posix-functions/llround.texi (llround): Added in cygwin
3926         1.7.8.
3927         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3928         * doc/glibc-functions/program_invocation_name.texi
3929         (program_invocation_name): Likewise.
3930         * doc/glibc-functions/program_invocation_short_name.texi
3931         (program_invocation_short_name): Likewise.
3932         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3933         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3934         Likewise.
3935         * doc/posix-functions/pthread_spin_destroy.texi
3936         (pthread_spin_destroy): Added in cygwin 1.7.10.
3937         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3938         Likewise.
3939         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3940         Likewise.
3941         * doc/posix-functions/pthread_spin_trylock.texi
3942         (pthread_spin_trylock): Likewise.
3943         * doc/posix-functions/pthread_spin_unlock.texi
3944         (pthread_spin_unlock): Likewise.
3945         * doc/posix-functions/pthread_setschedprio.texi
3946         (pthread_setschedprio): Likewise.
3947         * doc/posix-functions/pthread_attr_getstack.texi
3948         (pthread_attr_getstack): Likewise.
3949         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3950         (pthread_attr_getstackaddr): Likewise.
3951         * doc/glibc-functions/pthread_getattr_np.texi
3952         (pthread_getattr_np): Likewise.
3953         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3954         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3955         * doc/posix-functions/clock_settime.texi (clock_settime):
3956         Likewise.
3957         * doc/posix-functions/pthread_attr_getguardsize.texi
3958         (pthread_attr_getguardsize): Likewise.
3959         * doc/posix-functions/pthread_attr_setguardsize.texi
3960         (pthread_attr_setguardsize): Likewise.
3961         * doc/posix-functions/pthread_attr_setstack.texi
3962         (pthread_attr_setstack): Likewise.
3963         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3964         (pthread_attr_setstackaddr): Likewise.
3965         * doc/posix-functions/clock_getcpuclockid.texi
3966         (clock_getcpuclockid): Likewise.
3967         * doc/posix-functions/pthread_getcpuclockid.texi
3968         (pthread_getcpuclockid): Likewise.
3969         * doc/glibc-functions/error.texi (error): Likewise.
3970         * doc/glibc-functions/error_at_line.texi (error_at_line):
3971         Likewise.
3972         * doc/glibc-functions/error_message_count.texi
3973         (error_message_count): Likewise.
3974         * doc/glibc-functions/error_one_per_line.texi
3975         (error_one_per_line): Likewise.
3976         * doc/glibc-functions/error_print_progname.texi
3977         (error_print_progname): Likewise.
3978         * doc/posix-functions/pthread_condattr_getclock.texi
3979         (pthread_condattr_getclock): Likewise.
3980         * doc/posix-functions/pthread_condattr_setclock.texi
3981         (pthread_condattr_setclock): Likewise.
3982         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3983         Likewise.
3984         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3985         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3986         * doc/glibc-functions/get_current_dir_name.texi
3987         (get_current_dir_name): Likewise.
3988         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3989         Likewise.
3990         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3991         wrong return type.
3992         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3993         1.7.11.
3994
3995 2012-02-29  Bruno Haible  <bruno@clisp.org>
3996
3997         Tests for module 'hypotf'.
3998         * modules/hypotf-tests: New file.
3999         * tests/test-hypotf.c: New file.
4000
4001         New module 'hypotf'.
4002         * lib/math.in.h (hypotf): New declaration.
4003         * lib/hypotf.c: New file.
4004         * m4/hypotf.m4: New file.
4005         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4007         REPLACE_HYPOTF.
4008         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4009         REPLACE_HYPOTF.
4010         * modules/hypotf: New file.
4011         * tests/test-math-c++.cc: Check the hypotf declaration.
4012         * doc/posix-functions/hypotf.texi: Mention the new module.
4013
4014         hypot: Prepare for hypotf module.
4015         * m4/hypot.m4: New file.
4016         * modules/hypot (Files): Add m4/hypot.m4.
4017         (configure.ac): Invoke gl_FUNC_HYPOT.
4018
4019 2012-02-29  Bruno Haible  <bruno@clisp.org>
4020
4021         hypot tests: More tests.
4022         * tests/test-hypot.c: Include <float.h>.
4023         (main): Add tests about overflow and underflow.
4024
4025 2012-02-29  Bruno Haible  <bruno@clisp.org>
4026
4027         math code: Add comments.
4028         * lib/acosl.c: Add comment about related glibc source files.
4029         * lib/asinl.c: Likewise.
4030         * lib/atanl.c: Likewise.
4031         * lib/expl.c: Likewise.
4032         * lib/logl.c: Likewise.
4033         * lib/sincosl.c: Likewise.
4034         * lib/sinl.c: Likewise.
4035         * lib/tanl.c: Likewise.
4036         * lib/trigl.c: Likewise.
4037         * lib/cosl.c: Likewise. Fix comments.
4038
4039 2012-02-28  Bruno Haible  <bruno@clisp.org>
4040
4041         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4042         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4043         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4044         HUGE_VALL are defined.
4045         (numeric_equald): Renamed from numeric_equal.
4046         (numeric_equalf, numeric_equall): New functions.
4047         (main): Check also HUGE_VALF, HUGE_VALL.
4048         * modules/math-tests (Files): Add tests/macros.h.
4049         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4050         HUGE_VALL.
4051
4052 2012-02-28  Bruno Haible  <bruno@clisp.org>
4053
4054         doc: Move ISO C11 feature notes into POSIX chapters.
4055         * doc/posix-functions/aligned_alloc.texi: Renamed from
4056         doc/glibc-functions/aligned_alloc.texi.
4057         * doc/posix-functions/quick_exit.texi: Renamed from
4058         doc/glibc-functions/quick_exit.texi.
4059         * doc/posix-headers/uchar.texi: Renamed from
4060         doc/glibc-headers/uchar.texi.
4061         * doc/posix-functions/c16rtomb.texi: Renamed from
4062         doc/glibc-functions/c16rtomb.texi.
4063         * doc/posix-functions/c32rtomb.texi: Renamed from
4064         doc/glibc-functions/c32rtomb.texi.
4065         * doc/posix-functions/mbrtoc16.texi: Renamed from
4066         doc/glibc-functions/mbrtoc16.texi.
4067         * doc/posix-functions/mbrtoc32.texi: Renamed from
4068         doc/glibc-functions/mbrtoc32.texi.
4069         * doc/gnulib.texi: Update.
4070         (Glibc uchar.h): Remove section.
4071         Suggested by Eric Blake.
4072
4073 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4074
4075         stdnoreturn: port to MSVC better
4076         MSVC standard headers use __declspec(noreturn), so #define noreturn
4077         to empty on that platform.  Reported by Bruno Haible in
4078         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4079         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4080         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4081
4082 2012-02-28  Bruno Haible  <bruno@clisp.org>
4083
4084         doc: Mention new glibc headers and functions.
4085         * doc/glibc-headers/uchar.texi: New file.
4086         * doc/glibc-functions/aligned_alloc.texi: New file.
4087         * doc/glibc-functions/c16rtomb.texi: New file.
4088         * doc/glibc-functions/c32rtomb.texi: New file.
4089         * doc/glibc-functions/clock_adjtime.texi: New file.
4090         * doc/glibc-functions/fanotify_init.texi: New file.
4091         * doc/glibc-functions/fanotify_mark.texi: New file.
4092         * doc/glibc-functions/inet6_opt_append.texi: New file.
4093         * doc/glibc-functions/inet6_opt_find.texi: New file.
4094         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4095         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4096         * doc/glibc-functions/inet6_opt_init.texi: New file.
4097         * doc/glibc-functions/inet6_opt_next.texi: New file.
4098         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4099         * doc/glibc-functions/inet6_rth_add.texi: New file.
4100         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4101         * doc/glibc-functions/inet6_rth_init.texi: New file.
4102         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4103         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4104         * doc/glibc-functions/inet6_rth_space.texi: New file.
4105         * doc/glibc-functions/login.texi: New file.
4106         * doc/glibc-functions/mbrtoc16.texi: New file.
4107         * doc/glibc-functions/mbrtoc32.texi: New file.
4108         * doc/glibc-functions/name_to_handle_at.texi: New file.
4109         * doc/glibc-functions/ntp_gettimex.texi: New file.
4110         * doc/glibc-functions/open_by_handle_at.texi: New file.
4111         * doc/glibc-functions/prlimit.texi: New file.
4112         * doc/glibc-functions/process_vm_readv.texi: New file.
4113         * doc/glibc-functions/process_vm_writev.texi: New file.
4114         * doc/glibc-functions/recvmmsg.texi: New file.
4115         * doc/glibc-functions/scandirat.texi: New file.
4116         * doc/glibc-functions/sendmmsg.texi: New file.
4117         * doc/glibc-functions/setns.texi: New file.
4118         * doc/glibc-functions/timespec_get.texi: New file.
4119         * doc/gnulib.texi: Include them.
4120         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4121         sections.
4122         Reported by Eric Blake.
4123
4124 2012-02-28  Bruno Haible  <bruno@clisp.org>
4125
4126         Avoid compilation errors with MSVC option -fp:strict.
4127         * lib/floor.c: Use MSVC specific pragma fenv_access.
4128         * lib/ceil.c: Likewise.
4129         * lib/trunc.c: Likewise.
4130         * lib/round.c: Likewise.
4131         * lib/rint.c: Likewise.
4132         * lib/fma.c: Likewise.
4133         * lib/integer_length.c: Likewise.
4134         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4135         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4136         * tests/test-floor2.c: Likewise.
4137         * tests/test-floorf2.c: Likewise.
4138         * tests/test-ceil2.c: Likewise.
4139         * tests/test-ceilf2.c: Likewise.
4140         * tests/test-trunc2.c: Likewise.
4141         * tests/test-truncf2.c: Likewise.
4142         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4143
4144 2012-02-27  Bruno Haible  <bruno@clisp.org>
4145
4146         Tests for module 'sqrtl-ieee'.
4147         * modules/sqrtl-ieee-tests: New file.
4148         * tests/test-sqrtl-ieee.c: New file.
4149
4150         New module 'sqrtl-ieee'.
4151         * modules/sqrtl-ieee: New file.
4152
4153         Tests for module 'sqrt-ieee'.
4154         * modules/sqrt-ieee-tests: New file.
4155         * tests/test-sqrt-ieee.c: New file.
4156
4157         New module 'sqrt-ieee'.
4158         * modules/sqrt-ieee: New file.
4159
4160         Tests for module 'sqrtf-ieee'.
4161         * modules/sqrtf-ieee-tests: New file.
4162         * tests/test-sqrtf-ieee.c: New file.
4163         * tests/test-sqrt-ieee.h: New file.
4164
4165         New module 'sqrtf-ieee'.
4166         * modules/sqrtf-ieee: New file.
4167
4168 2012-02-27  Bruno Haible  <bruno@clisp.org>
4169
4170         remainderl-ieee: Work around test failure on OSF/1.
4171         * m4/remainderl-ieee.m4: New file.
4172         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4173         present, test whether remainderl works with a zero second argument.
4174         Replace it if not.
4175         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4177         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4178         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4179         (Depends-on): Update conditions.
4180         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4181         (Depends-on): Add remainder-ieee.
4182         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4183         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4184         module.
4185
4186         remainderf-ieee: Work around test failure on OSF/1.
4187         * m4/remainderf-ieee.m4: New file.
4188         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4189         present, test whether remainderf works with a zero second argument.
4190         Replace it if not.
4191         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4193         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4194         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4195         (Depends-on): Update conditions.
4196         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4197         (Depends-on): Add remainder-ieee.
4198         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4199         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4200         module.
4201
4202         remainder-ieee: Work around test failure on OSF/1.
4203         * m4/remainder-ieee.m4: New file.
4204         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4205         present, test whether remainder works with a zero second argument.
4206         Replace it if not.
4207         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4209         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4210         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4211         (Depends-on): Update dependencies.
4212         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4213         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4214         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4215
4216         Tests for module 'remainderl-ieee'.
4217         * modules/remainderl-ieee-tests: New file.
4218         * tests/test-remainderl-ieee.c: New file.
4219
4220         New module 'remainderl-ieee'.
4221         * modules/remainderl-ieee: New file.
4222
4223         Tests for module 'remainder-ieee'.
4224         * modules/remainder-ieee-tests: New file.
4225         * tests/test-remainder-ieee.c: New file.
4226
4227         New module 'remainder-ieee'.
4228         * modules/remainder-ieee: New file.
4229
4230         Tests for module 'remainderf-ieee'.
4231         * modules/remainderf-ieee-tests: New file.
4232         * tests/test-remainderf-ieee.c: New file.
4233         * tests/test-remainder-ieee.h: New file.
4234
4235         New module 'remainderf-ieee'.
4236         * modules/remainderf-ieee: New file.
4237
4238 2012-02-27  Bruno Haible  <bruno@clisp.org>
4239
4240         modff, modfl: Fix configure syntax error.
4241         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4242         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4243
4244 2012-02-27  Bruno Haible  <bruno@clisp.org>
4245
4246         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4247         * m4/fmodl-ieee.m4: New file.
4248         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4249         whether fmodl works with zero arguments. Replace it if not.
4250         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4251         (Depends-on): Add fmod-ieee.
4252         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4253         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4254
4255         fmodf-ieee: Work around test failure on OSF/1.
4256         * m4/fmodf-ieee.m4: New file.
4257         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4258         whether fmodf works with zero arguments. Replace it if not.
4259         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4261         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4262         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4263         (Depends-on): Update dependencies.
4264         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4265         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4266         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4267
4268         fmodf-ieee: Work around test failure on MSVC 9.
4269         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4270         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4271
4272         fmod-ieee: Work around test failures on OSF/1, mingw.
4273         * m4/fmod-ieee.m4: New file.
4274         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4275         whether fmod works with zero arguments. Replace it if not.
4276         * lib/math.in.h (fmod): New declaration.
4277         * lib/fmod.c: New file.
4278         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4280         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4281         * modules/fmod (Files): Add lib/fmod.c.
4282         (Depends-on): Add math, isinf, trunc, fma.
4283         (configure.ac): Arrange to compile lib/fmod.c if needed.
4284         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4285         m4/signbit.m4.
4286         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4287         * tests/test-math-c++.cc: Check the declaration of fmod.
4288         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4289
4290         fmodl-ieee: Fix test failures.
4291         * lib/fmodl.c (fmodl): Treat Inf specially.
4292         * modules/fmodl (Depends-on): Add isinf.
4293
4294         Tests for module 'fmodl-ieee'.
4295         * modules/fmodl-ieee-tests: New file.
4296         * tests/test-fmodl-ieee.c: New file.
4297
4298         New module 'fmodl-ieee'.
4299         * modules/fmodl-ieee: New file.
4300
4301         Tests for module 'fmod-ieee'.
4302         * modules/fmod-ieee-tests: New file.
4303         * tests/test-fmod-ieee.c: New file.
4304
4305         New module 'fmod-ieee'.
4306         * modules/fmod-ieee: New file.
4307
4308         Tests for module 'fmodf-ieee'.
4309         * modules/fmodf-ieee-tests: New file.
4310         * tests/test-fmodf-ieee.c: New file.
4311         * tests/test-fmod-ieee.h: New file.
4312
4313         New module 'fmodf-ieee'.
4314         * modules/fmodf-ieee: New file.
4315
4316 2012-02-27  Bruno Haible  <bruno@clisp.org>
4317
4318         Tests for module 'rintl-ieee'.
4319         * modules/rintl-ieee-tests: New file.
4320         * tests/test-rintl-ieee.c: New file.
4321
4322         New module 'rintl-ieee'.
4323         * modules/rintl-ieee: New file.
4324
4325         Tests for module 'rint-ieee'.
4326         * modules/rint-ieee-tests: New file.
4327         * tests/test-rint-ieee.c: New file.
4328
4329         New module 'rint-ieee'.
4330         * modules/rint-ieee: New file.
4331
4332         Tests for module 'rintf-ieee'.
4333         * modules/rintf-ieee-tests: New file.
4334         * tests/test-rintf-ieee.c: New file.
4335         * tests/test-rint-ieee.h: New file.
4336
4337         New module 'rintf-ieee'.
4338         * modules/rintf-ieee: New file.
4339
4340 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4341
4342         regex: re_search etc. should return -2 when memory exhausted
4343         This bug was uncovered when testing 'grep'.  Without the fix,
4344         re_search and friends return -1 when memory is exhausted, but -1
4345         means no match, and this causes grep to falsely report no-match
4346         instead of memory-exhaustion.  See
4347         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4348         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4349         trouble; this can occur if re_search_internal ran out of memory.
4350
4351 2012-02-26  Bruno Haible  <bruno@clisp.org>
4352
4353         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4354         * m4/modfl-ieee.m4: New file.
4355         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4356         whether modfl works with Inf. Replace it if not.
4357         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4359         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4360         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4361         (Depends-on): Update dependencies.
4362         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4363         m4/signbit.m4.
4364         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4365         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4366
4367         modfl-ieee: Fix dependencies.
4368         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4369
4370         modfl-ieee: Fix test failures.
4371         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4372         * modules/modfl (Depends-on): Add isfinite, isinf.
4373
4374         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4375         * m4/modff-ieee.m4: New file.
4376         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4377         whether modff works with NaN and Inf. Replace it if not.
4378         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4380         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4381         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4382         (Depends-on): Update dependencies.
4383         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4384         m4/signbit.m4.
4385         (Depends-on): Add modf-ieee.
4386         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4387         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4388
4389         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4390         * m4/modf-ieee.m4: New file.
4391         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4392         whether modf works with NaN and Inf. Replace it if not.
4393         * lib/math.in.h (modf): New declaration.
4394         * lib/modf.c: New file.
4395         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4397         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4398         * modules/modf (Files): Add lib/modf.c.
4399         (Depends-on): Add math, isfinite, trunc, isinf.
4400         (configure.ac): Addrange to compile lib/modf.c if needed.
4401         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4402         m4/signbit.m4.
4403         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4404         * tests/test-math-c++.cc: Check the declaration of modf.
4405         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4406
4407         Tests for module 'modfl-ieee'.
4408         * modules/modfl-ieee-tests: New file.
4409         * tests/test-modfl-ieee.c: New file.
4410
4411         New module 'modfl-ieee'.
4412         * modules/modfl-ieee: New file.
4413
4414         Tests for module 'modf-ieee'.
4415         * modules/modf-ieee-tests: New file.
4416         * tests/test-modf-ieee.c: New file.
4417
4418         New module 'modf-ieee'.
4419         * modules/modf-ieee: New file.
4420
4421         Tests for module 'modff-ieee'.
4422         * modules/modff-ieee-tests: New file.
4423         * tests/test-modff-ieee.c: New file.
4424         * tests/test-modf-ieee.h: New file.
4425
4426         New module 'modff-ieee'.
4427         * modules/modff-ieee: New file.
4428
4429 2012-02-26  Bruno Haible  <bruno@clisp.org>
4430
4431         Tests for module 'fabsl-ieee'.
4432         * modules/fabsl-ieee-tests: New file.
4433         * tests/test-fabsl-ieee.c: New file.
4434
4435         New module 'fabsl-ieee'.
4436         * modules/fabsl-ieee: New file.
4437
4438         Tests for module 'fabs-ieee'.
4439         * modules/fabs-ieee-tests: New file.
4440         * tests/test-fabs-ieee.c: New file.
4441
4442         New module 'fabs-ieee'.
4443         * modules/fabs-ieee: New file.
4444
4445         Tests for module 'fabsf-ieee'.
4446         * modules/fabsf-ieee-tests: New file.
4447         * tests/test-fabsf-ieee.c: New file.
4448         * tests/test-fabs-ieee.h: New file.
4449
4450         New module 'fabsf-ieee'.
4451         * modules/fabsf-ieee: New file.
4452
4453 2012-02-26  Bruno Haible  <bruno@clisp.org>
4454
4455         Tests for module 'fmal-ieee'.
4456         * modules/fmal-ieee-tests: New file.
4457         * tests/test-fmal-ieee.c: New file.
4458
4459         New module 'fmal-ieee'.
4460         * modules/fmal-ieee: New file.
4461
4462         Tests for module 'fma-ieee'.
4463         * modules/fma-ieee-tests: New file.
4464         * tests/test-fma-ieee.c: New file.
4465
4466         New module 'fma-ieee'.
4467         * modules/fma-ieee: New file.
4468
4469         Tests for module 'fmaf-ieee'.
4470         * modules/fmaf-ieee-tests: New file.
4471         * tests/test-fmaf-ieee.c: New file.
4472         * tests/test-fma-ieee.h: New file.
4473
4474         New module 'fmaf-ieee'.
4475         * modules/fmaf-ieee: New file.
4476
4477 2012-02-26  Bruno Haible  <bruno@clisp.org>
4478
4479         Tests for module 'ldexpl-ieee'.
4480         * modules/ldexpl-ieee-tests: New file.
4481         * tests/test-ldexpl-ieee.c: New file.
4482
4483         New module 'ldexpl-ieee'.
4484         * modules/ldexpl-ieee: New file.
4485
4486         Tests for module 'ldexp-ieee'.
4487         * modules/ldexp-ieee-tests: New file.
4488         * tests/test-ldexp-ieee.c: New file.
4489
4490         New module 'ldexp-ieee'.
4491         * modules/ldexp-ieee: New file.
4492
4493         Tests for module 'ldexpf-ieee'.
4494         * modules/ldexpf-ieee-tests: New file.
4495         * tests/test-ldexpf-ieee.c: New file.
4496         * tests/test-ldexp-ieee.h: New file.
4497
4498         New module 'ldexpf-ieee'.
4499         * modules/ldexpf-ieee: New file.
4500
4501 2012-02-26  Bruno Haible  <bruno@clisp.org>
4502
4503         Refactor frexp*-ieee tests.
4504         * tests/test-frexp-ieee.h: New file.
4505         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4506         (main): Just call test_function.
4507         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4508         (main): Just call test_function.
4509         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4510         (main): Just call test_function.
4511         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4512         * modules/frexp-ieee-tests (Files): Likewise.
4513         * modules/frexpl-ieee-tests (Files): Likewise.
4514
4515         Tests for module 'frexpl-ieee'.
4516         * modules/frexpl-ieee-tests: New file.
4517         * tests/test-frexpl-ieee.c: New file.
4518
4519         New module 'frexpl-ieee'.
4520         * modules/frexpl-ieee: New file.
4521
4522         Tests for module 'frexp-ieee'.
4523         * modules/frexp-ieee-tests: New file.
4524         * tests/test-frexp-ieee.c: New file.
4525
4526         New module 'frexp-ieee'.
4527         * modules/frexp-ieee: New file.
4528
4529         Tests for module 'frexpf-ieee'.
4530         * modules/frexpf-ieee-tests: New file.
4531         * tests/test-frexpf-ieee.c: New file.
4532
4533         New module 'frexpf-ieee'.
4534         * modules/frexpf-ieee: New file.
4535
4536 2012-02-26  Bruno Haible  <bruno@clisp.org>
4537
4538         roundl-ieee tests: More tests.
4539         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4540         (main): Add tests for [MX] shaded specification in POSIX.
4541         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4542         (Depends-on): Add isnanl-nolibm.
4543
4544         round-ieee tests: More tests.
4545         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4546         (main): Add tests for [MX] shaded specification in POSIX.
4547         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4548         (Depends-on): Add isnand-nolibm.
4549
4550         roundf-ieee tests: More tests.
4551         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4552         (main): Add tests for [MX] shaded specification in POSIX.
4553         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4554         (Depends-on): Add isnanf-nolibm.
4555
4556         truncl-ieee tests: More tests.
4557         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4558         (main): Add tests for [MX] shaded specification in POSIX.
4559         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4560         (Depends-on): Add isnanl-nolibm.
4561
4562         trunc-ieee tests: More tests.
4563         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4564         (main): Add tests for [MX] shaded specification in POSIX.
4565         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4566         (Depends-on): Add isnand-nolibm.
4567
4568         truncf-ieee tests: More tests.
4569         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4570         (main): Add tests for [MX] shaded specification in POSIX.
4571         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4572         (Depends-on): Add isnanf-nolibm.
4573
4574         ceill-ieee tests: More tests.
4575         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4576         (main): Add tests for [MX] shaded specification in POSIX.
4577         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4578         (Depends-on): Add isnanl-nolibm.
4579
4580         ceil-ieee tests: More tests.
4581         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4582         (main): Add tests for [MX] shaded specification in POSIX.
4583         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4584         (Depends-on): Add isnand-nolibm.
4585
4586         ceilf-ieee tests: More tests.
4587         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4588         (main): Add tests for [MX] shaded specification in POSIX.
4589         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4590         (Depends-on): Add isnanf-nolibm.
4591
4592         floorl-ieee tests: More tests.
4593         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4594         (main): Add tests for [MX] shaded specification in POSIX.
4595         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4596         (Depends-on): Add isnanl-nolibm.
4597
4598         floor-ieee tests: More tests.
4599         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4600         (main): Add tests for [MX] shaded specification in POSIX.
4601         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4602         (Depends-on): Add isnand-nolibm.
4603
4604         floorf-ieee tests: More tests.
4605         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4606         (main): Add tests for [MX] shaded specification in POSIX.
4607         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4608         (Depends-on): Add isnanf-nolibm.
4609
4610 2012-02-26  Bruno Haible  <bruno@clisp.org>
4611
4612         fpieee: More comments.
4613         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4614
4615 2012-02-25  Bruno Haible  <bruno@clisp.org>
4616
4617         Tests for module 'log10l'.
4618         * modules/log10l-tests: New file.
4619         * tests/test-log10l.c: New file.
4620         * tests/test-math-c++.cc: Check the declaration of log10l.
4621
4622         New module 'log10l'.
4623         * lib/math.in.h (log10l): New declaration.
4624         * lib/log10l.c: New file.
4625         * m4/log10l.m4: New file.
4626         * modules/log10l: New file.
4627         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4629         HAVE_DECL_LOG10L.
4630         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4631         HAVE_DECL_LOG10L.
4632         * doc/posix-functions/log10l.texi: Mention the new module.
4633
4634 2012-02-25  Bruno Haible  <bruno@clisp.org>
4635
4636         fmodl, remainder*: Avoid wrong results due to rounding errors.
4637         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4638         expected bounds.
4639         * lib/remainderf.c (remainderf): Likewise.
4640         * lib/remainder.c (remainder): Likewise.
4641         * lib/remainderl.c (remainderl): Likewise.
4642
4643 2012-02-25  Bruno Haible  <bruno@clisp.org>
4644
4645         Tests for module 'remainderl'.
4646         * modules/remainderl-tests: New file.
4647         * tests/test-remainderl.c: New file.
4648         * tests/test-math-c++.cc: Check the declaration of remainderl.
4649
4650         New module 'remainderl'.
4651         * lib/math.in.h (remainderl): New declaration.
4652         * lib/remainderl.c: New file.
4653         * m4/remainderl.m4: New file.
4654         * modules/remainderl: New file.
4655         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4657         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4658         HAVE_REMAINDERL.
4659         * doc/posix-functions/remainderl.texi: Mention the new module.
4660
4661 2012-02-25  Bruno Haible  <bruno@clisp.org>
4662
4663         Tests for module 'remainderf'.
4664         * modules/remainderf-tests: New file.
4665         * tests/test-remainderf.c: New file.
4666         * tests/test-math-c++.cc: Check the declaration of remainderf.
4667
4668         New module 'remainderf'.
4669         * lib/math.in.h (remainderf): New declaration.
4670         * lib/remainderf.c: New file.
4671         * m4/remainderf.m4: New file.
4672         * modules/remainderf: New file.
4673         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4675         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4676         HAVE_REMAINDERF.
4677         * doc/posix-functions/remainderf.texi: Mention the new module.
4678
4679 2012-02-25  Bruno Haible  <bruno@clisp.org>
4680
4681         remainder: Support for MSVC.
4682         * lib/math.in.h (remainder): New declaration.
4683         * lib/remainder.c: New file.
4684         * m4/remainder.m4: New file.
4685         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4686         (Depends-on): Add math, round, fma.
4687         (configure.ac): Use results of gl_FUNC_REMAINDER.
4688         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4690         HAVE_DECL_REMAINDER.
4691         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4692         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4693         * tests/test-math-c++.cc: Check the declaration of remainder.
4694         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4695         problems are fixed.
4696
4697 2012-02-25  Bruno Haible  <bruno@clisp.org>
4698
4699         Tests for module 'fmodl'.
4700         * modules/fmodl-tests: New file.
4701         * tests/test-fmodl.c: New file.
4702         * tests/test-math-c++.cc: Check the declaration of fmodl.
4703
4704         New module 'fmodl'.
4705         * lib/math.in.h (fmodl): New declaration.
4706         * lib/fmodl.c: New file.
4707         * m4/fmodl.m4: New file.
4708         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4710         REPLACE_FMODL.
4711         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4712         REPLACE_FMODL.
4713         * modules/fmodl: New file.
4714         * doc/posix-functions/fmodl.texi: Mention the new module.
4715
4716 2012-02-25  Bruno Haible  <bruno@clisp.org>
4717
4718         Tests for module 'modfl'.
4719         * modules/modfl-tests: New file.
4720         * tests/test-modfl.c: New file.
4721         * tests/test-math-c++.cc: Check the declaration of modfl.
4722
4723         New module 'modfl'.
4724         * lib/math.in.h (modfl): New declaration.
4725         * lib/modfl.c: New file.
4726         * m4/modfl.m4: New file.
4727         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4729         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4730         * modules/modfl: New file.
4731         * doc/posix-functions/modfl.texi: Mention the new module.
4732
4733 2012-02-25  Bruno Haible  <bruno@clisp.org>
4734
4735         Tests for module 'fabsl'.
4736         * modules/fabsl-tests: New file.
4737         * tests/test-fabsl.c: New file.
4738         * tests/test-math-c++.cc: Check the declaration of fabsl.
4739
4740         New module 'fabsl'.
4741         * lib/math.in.h (fabsl): New declaration.
4742         * lib/fabsl.c: New file.
4743         * m4/fabsl.m4: New file.
4744         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4746         REPLACE_FABSL.
4747         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4748         REPLACE_FABSL.
4749         * modules/fabsl: New file.
4750         * doc/posix-functions/fabsl.texi: Mention the new module.
4751
4752 2012-02-25  Bruno Haible  <bruno@clisp.org>
4753
4754         fabs tests: More tests.
4755         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4756         (zero): New variable.
4757         (main): Add tests for signed zero.
4758         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4759
4760         fabsf tests: More tests.
4761         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4762         (zero): New variable.
4763         (main): Add tests for signed zero.
4764         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4765
4766 2012-02-24  Bruno Haible  <bruno@clisp.org>
4767
4768         atanl: Provide function definition on MSVC.
4769         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4770         function pointer.
4771         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4772
4773 2012-02-24  Bruno Haible  <bruno@clisp.org>
4774
4775         acosl: Provide function definition on MSVC.
4776         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4777         function pointer.
4778         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4779
4780 2012-02-24  Bruno Haible  <bruno@clisp.org>
4781
4782         asinl: Provide function definition on MSVC.
4783         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4784         function pointer.
4785         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4786
4787 2012-02-24  Bruno Haible  <bruno@clisp.org>
4788
4789         tanl: Provide function definition on MSVC.
4790         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4791         function pointer.
4792         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4793
4794 2012-02-24  Bruno Haible  <bruno@clisp.org>
4795
4796         cosl: Provide function definition on MSVC.
4797         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4798         function pointer.
4799         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4800
4801 2012-02-24  Bruno Haible  <bruno@clisp.org>
4802
4803         sinl: Provide function definition on MSVC.
4804         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4805         function pointer.
4806         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4807
4808 2012-02-24  Bruno Haible  <bruno@clisp.org>
4809
4810         logl: Provide function definition on MSVC.
4811         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4812         function pointer.
4813         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4814
4815 2012-02-24  Bruno Haible  <bruno@clisp.org>
4816
4817         expl: Provide function definition on MSVC.
4818         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4819         function pointer.
4820         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4821
4822 2012-02-24  Bruno Haible  <bruno@clisp.org>
4823
4824         sqrtl: Provide function definition on MSVC.
4825         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4826         a function pointer.
4827         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4828
4829 2012-02-24  Bruno Haible  <bruno@clisp.org>
4830
4831         ceill: Provide function definition on MSVC.
4832         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4833         used as a function pointer.
4834         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4835
4836 2012-02-24  Bruno Haible  <bruno@clisp.org>
4837
4838         floorl: Provide function definition on MSVC.
4839         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4840         used as a function pointer.
4841         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4842
4843 2012-02-24  Bruno Haible  <bruno@clisp.org>
4844
4845         ceilf: Provide function definition on MSVC.
4846         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4847         used as a function pointer.
4848         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4849
4850 2012-02-24  Bruno Haible  <bruno@clisp.org>
4851
4852         floorf: Provide function definition on MSVC.
4853         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4854         used as a function pointer.
4855         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4856
4857 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4858
4859         stdnoreturn: new module
4860         This implements a replacement for C11's <stdnoreturn.h>.
4861         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4862         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4863         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4864         * tests/test-stdnoreturn.c: New files.
4865
4866 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4867
4868         regex: fix false multibyte matches in some regular expressions
4869         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4870         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4871         * lib/regex_internal.c (re_string_skip_chars):
4872         Fix miscomputation of remain_len that may cause incomplete
4873         multi-byte character and false match.
4874
4875 2012-02-24  Jim Meyering  <meyering@redhat.com>
4876
4877         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4878         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4879         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4880         Remove now-unnecessary str''cmp obfuscation.
4881         Suggested by Akim Demaille.
4882
4883 2012-02-24  Bruno Haible  <bruno@clisp.org>
4884
4885         streq: Rename macro.
4886         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4887         * NEWS: Mention the change.
4888         * lib/mbrtowc.c (mbrtowc): Update.
4889         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4890         * lib/wcwidth.c (wcwidth): Update.
4891         Suggested by Akim Demaille and Jim Meyering.
4892
4893 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4894
4895         regex: fix typo in definition of MIN
4896         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4897         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4898
4899 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4900             Bruno Haible  <bruno@clisp.org>
4901
4902         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4903         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4904         entries into a stack-allocated buffer directly.
4905         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4906
4907 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4908             Bruno Haible  <bruno@clisp.org>
4909
4910         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4911
4912          - There were several instances of this pattern:
4913
4914              for (;;) {
4915                n = acl (f, GETACLCNT, 0, NULL);
4916                [ allocate an array A of size N ]
4917                if (acl (f, GETACL, n, a) == n)
4918                  break;
4919              }
4920
4921            This loop might never terminate if some other process is constantly
4922            manipulating the file's ACL.  The loop should be rewritten to
4923            terminate.
4924
4925          - The acl (... GETACLNT ...) call is merely an optimization; its value
4926            is merely a hint as to how big to make the array.  A better
4927            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4928            and just guess a reasonably-big size, growing the size and trying
4929            again if it's not large enough.  This guarantees termination, and
4930            saves a system call.
4931
4932         * lib/acl-internal.h: Include <limits.h>.
4933         (MIN, SIZE_MAX): New macros.
4934         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4935         a stack-allocated buffer, and use malloc if it does not fit. Don't
4936         use GETACLCNT.
4937         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4938
4939 2012-02-19  Bruno Haible  <bruno@clisp.org>
4940
4941         acl: Fix endless loop on Solaris with vxfs.
4942         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4943         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4944         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4945         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4946         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4947         Reported by Bill Jones in
4948         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4949
4950 2012-02-19  Bruno Haible  <bruno@clisp.org>
4951
4952         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4953         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4954         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4955         that this function returns 0 in some more cases.
4956
4957 2012-02-19  Bruno Haible  <bruno@clisp.org>
4958
4959         acl: Update doc references.
4960         * doc/acl-resources.txt: Update links to Solaris documentation.
4961
4962 2012-02-19  Bruno Haible  <bruno@clisp.org>
4963
4964         Fix test failure in many locales on Solaris 11.
4965         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4966         'tr' arguments.
4967         * tests/test-pipe-filter-ii1.c (main): Likewise.
4968         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4969         expressions in the C locale.
4970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4971         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4972
4973 2012-02-19  Bruno Haible  <bruno@clisp.org>
4974
4975         gnulib-tool: Improve usage message.
4976         * gnulib-tool (func_usage): Move doc of --help and --version to the
4977         section "Operation modes".
4978
4979 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4980
4981         README-release: make it easier to execute commands
4982         * top/README-release: break commands out on to separate lines.
4983
4984 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4985
4986         GNUmakefile: simplify detection of unconfigured trees
4987         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4988         whether the tree make is being run from is already configured or
4989         not.  Related simplifications.
4990
4991 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4992
4993         * gnulib-tool (func_usage): Document --help and --version.
4994
4995 2012-02-11  Jim Meyering  <meyering@redhat.com>
4996
4997         bootstrap: don't exit 0 upon gnulib-tool failure
4998         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4999         its exit status, not 0.
5000
5001 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5002
5003         README-release: various improvements
5004         * top/README-release: Give a command to push changes for the
5005         release.  Add "distcheck" to list of other pre-release checks.
5006         Fix instance of "make stable" which should be "make TYPE".
5007
5008 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5009
5010         maint: replace FSF snail-mail addresses with URLs
5011         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5012         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5013         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5014         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5015         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5016         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5017         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5018         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5019         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5020         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5021         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5022         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5023         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5024         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5025         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5026         * lib/glthread/thread.c, lib/glthread/thread.h:
5027         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5028         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5029         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5030         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5031         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5032         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5033         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5034         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5035         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5036         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5037         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5038         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5039         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5040         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5041         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5042         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5043         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5044         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5045         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5046         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5047         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5048         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5049         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5050         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5051         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5052         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5053         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5054         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5055         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5056         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5057         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5058         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5059         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5060         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5061         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5062         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5063         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5064         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5065         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5066         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5067         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5068         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5069         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5070         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5071         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5072         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5073         * tests/test-poll.c, tests/test-quotearg-simple.c:
5074         * tests/test-quotearg.c, tests/test-quotearg.h:
5075         * tests/test-round-ieee.c, tests/test-round1.c:
5076         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5077         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5078         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5079         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5080         * tests/test-strerror.c, tests/test-strerror_r.c:
5081         * tests/test-strsignal.c, tests/test-strverscmp.c:
5082         * tests/test-xmemdup0.c:
5083         Replace FSF snail mail addresses with URLs, as per GNU coding
5084         standards.  See glibc bug
5085         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5086
5087 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5088
5089         README-release: capitalize a word and split a line
5090         * top/README-release: Fix punctuation and spacing.
5091
5092 2012-02-08  Akim Demaille  <demaille@gostai.com>
5093
5094         fatal-signal: use C prototypes (with explicit void).
5095         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5096         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5097
5098 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         regex: spelling fix
5101         * lib/regexec.c: spelling fix
5102
5103         regex: rely on stdint.h for SIZE_MAX
5104         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5105
5106 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         regex: merge glibc changes
5109
5110         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5111         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5112         (init_word_char): Work even if bitset words are not exactly 32 or
5113         64 bits wide.  Don't assume there are no padding bits.
5114         * lib/regex.c [_LIBC]: Do not include <config.h>.
5115         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5116         and -Wtype-limits.
5117         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5118         needless disagreement with glibc.  All uses changed.  Define it to
5119         1 only if _GNU_SOURCE, to match glibc.
5120         (_REG_RM_NAME): Remove; no longer needed, since the names in
5121         question are now all protected by __USE_GNU.
5122         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5123         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5124         * lib/regex_internal.h (MIN): New macro.
5125
5126         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5127         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5128
5129         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5130         * lib/regex_internal.c (re_string_fetch_byte_case):
5131         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5132         is miscompiled, and it turns out it is because of an incorrect
5133         attribute on re_string_fetch_byte_case.  Unlike
5134         re_string_peek_byte_case, this one is really not pure, it modifies
5135         memory (increments pstr->cur_idx), and with the pure attribute GCC
5136         assumed it doesn't and it cached the presumed value of
5137         regexp->cur_idx in a variable across the
5138          for (;; ++i)
5139            {
5140              if (i >= BRACKET_NAME_BUF_SIZE)
5141                return REG_EBRACK;
5142              if (token->type == OP_OPEN_CHAR_CLASS)
5143                ch = re_string_fetch_byte_case (regexp);
5144              else
5145                ch = re_string_fetch_byte (regexp);
5146              if (re_string_eoi(regexp))
5147                return REG_EBRACK;
5148              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5149                break;
5150              elem->opr.name[i] = ch;
5151            }
5152
5153         2011-11-29 Andreas Schwab <schwab@redhat.com>
5154         * lib/regcomp.c (build_equiv_class):
5155         Fix access after end of search string in regex matcher.
5156
5157         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5158         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5159
5160         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5161         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5162
5163         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5164         * lib/regcomp.c (parse_branch, parse_sub_exp):
5165         More regex memory leak fixes and tests.
5166         (parse_sub_exp, parse_bracket_exp):
5167         Fix memory leak for some invalid regular expressions.
5168
5169         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5170         * lib/regex_internal.c, lib/regexec.c:
5171         Fix unnecessary overallocation due to incomplete character.  When
5172         incomplete characters are found at the end of a string the code
5173         ran amok and allocated lots of memory.  Stricter limits are now in
5174         place.
5175
5176         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5177         * lib/regex.h: Update documentation.
5178
5179         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5180         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5181
5182         2010-05-05 Andreas Schwab <schwab@redhat.com>
5183         * lib/regexec.c (find_collation_sequence_value):
5184         Fix lookup of collation sequence value during regexp matching.
5185
5186         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5187         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5188
5189         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5190         * lib/regex.h: Cleanup namespace.
5191
5192         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5193         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5194
5195         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5196         * lib/regex_internal.h: Prevent some declarations and definitions
5197         to be seen when used in tests.
5198
5199         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5200         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5201         __libc_lock_* macros if not _LIBC.
5202         (struct re_dfa_t): Add lock.
5203
5204 2012-02-07  Eric Blake  <eblake@redhat.com>
5205
5206         maint.mk: also prohibit lower-case @var@
5207         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5208         lower case, like @top_srcdir@.
5209
5210 2012-02-04  Eric Blake  <eblake@redhat.com>
5211
5212         canonicalize: avoid uninitialized memory use
5213         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5214         random '/' left in dest.
5215         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5216
5217 2012-02-04  Bruno Haible  <bruno@clisp.org>
5218
5219         isatty: Fix test failure of ptsname_r on native Windows.
5220         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5221         and don't set errno.
5222         (isatty): Test first whether fd is valid. Set errno when returning 0.
5223
5224 2012-02-04  Bruno Haible  <bruno@clisp.org>
5225
5226         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5227         * tests/test-spawn-pipe-main.c: Include progname.h.
5228         (main): Invoke set_program_name.
5229         * modules/spawn-pipe-tests (Depends-on): Add progname.
5230
5231         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5232         * tests/test-nonblocking-socket-main.c: Include progname.h.
5233         (main): Invoke set_program_name.
5234         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5235
5236         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5237         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5238         (main): Invoke set_program_name.
5239         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5240
5241 2012-02-04  Eric Blake  <eblake@redhat.com>
5242
5243         canonicalize-lgpl: fix // handling
5244         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5245
5246         canonicalize: fix // handling
5247         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5248         /// to //, since only // is special.
5249
5250 2012-02-04  Bruno Haible  <bruno@clisp.org>
5251
5252         ioctl: Fix test failure on native Windows.
5253         * lib/ioctl.c: Include msvc-nothrow.h.
5254         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5255
5256 2012-02-04  Bruno Haible  <bruno@clisp.org>
5257
5258         fsync: Avoid test failure on native Windows.
5259         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5260         read-only.
5261
5262 2012-02-04  Bruno Haible  <bruno@clisp.org>
5263
5264         sys_select: Avoid syntax error on OpenBSD 5.0.
5265         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5266         currently being included, just include the system's <sys/select.h>.
5267
5268 2012-02-04  Bruno Haible  <bruno@clisp.org>
5269
5270         sys_select: Avoid syntax error on OpenBSD 5.0.
5271         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5272         <sys/select.h>, not before.
5273         Reported by Jiri B <jirib@devio.us>.
5274
5275 2012-02-04  Bruno Haible  <bruno@clisp.org>
5276
5277         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5278         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5279         global variables.
5280         * tests/test-get-rusage-data.c (main): Likewise.
5281         Reported by Jim Meyering.
5282
5283 2012-02-04  Bruno Haible  <bruno@clisp.org>
5284
5285         stdioext: Fix last commit.
5286         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5287
5288 2012-02-03  Bruno Haible  <bruno@clisp.org>
5289
5290         stdioext: Add tentative support for Plan9.
5291         * lib/stdio-impl.h: Include <errno.h>.
5292         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5293         * lib/freadable.c (freadable): Likewise.
5294         * lib/fwritable.c (fwritable): Likewise.
5295         * lib/fbufmode.c (fbufmode): Likewise.
5296         * lib/freading.c (freading): Likewise.
5297         * lib/fwriting.c (fwriting): Likewise.
5298         * lib/freadptr.c (freadptr): Likewise.
5299         * lib/freadseek.c (freadptrinc): Likewise.
5300         * lib/freadahead.c (freadahead): Likewise.
5301         * lib/fpurge.c (fpurge): Likewise.
5302         * lib/fseeko.c (rpl_fseeko): Likewise.
5303         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5304         Reported by Jens Staal <staal1978@gmail.com>.
5305
5306 2012-02-02  Jim Meyering  <meyering@redhat.com>
5307
5308         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5309         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5310         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5311         not even to try to add the attribute.  Instead, add a pragma to suppress
5312         the suggestion/warning.
5313
5314 2012-01-31  Karl Berry  <karl@gnu.org>
5315
5316         setstate doc: typo.
5317         * doc/posix-functions/setstate.texi (setstate): { not (.
5318
5319 2012-01-31  Bruno Haible  <bruno@clisp.org>
5320
5321         popen: Make more robust on Windows.
5322         * lib/popen.c: On native Windows, use the _popen based code even if
5323         HAVE_POPEN is set.
5324         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5325         environment variable on native Windows.
5326
5327 2012-01-30  Bruno Haible  <bruno@clisp.org>
5328
5329         pclose: Fix typo.
5330         * lib/stdio.in.h (pclose): Fix typo in warning message.
5331
5332 2012-01-30  Bruno Haible  <bruno@clisp.org>
5333
5334         doc about getlogin_r, setstate.
5335         * doc/posix-functions/getlogin_r.texi: List the incompatible
5336         declaration problem under "not fixed by gnulib".
5337         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5338         problem on Solaris 11 and other platforms.
5339
5340 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5341             Bruno Haible  <bruno@clisp.org>
5342
5343         poll tests: Make test more robust.
5344         * tests/test-poll.c: Include macros.h.
5345         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5346         return value of various I/O operations.
5347         * modules/poll-tests (Files): Add tests/macros.h.
5348
5349 2012-01-30  Bruno Haible  <bruno@clisp.org>
5350
5351         sys_stat: Fix support for mingw64 and MSVC.
5352         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5353         header files already do it.
5354         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5355         stat itself.
5356         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5357
5358 2012-01-30  Bruno Haible  <bruno@clisp.org>
5359
5360         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5362         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5363
5364 2012-01-29  Bruno Haible  <bruno@clisp.org>
5365
5366         quotearg: Fix test failure on MacOS X 10.5.
5367         * tests/test-quotearg-simple.c: Include localcharset.h.
5368         (main): If the locale encoding is not ASCII, bypass the tests of
5369         locale_quoting_style and clocale_quoting_style.
5370         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5371
5372 2012-01-29  Jim Meyering  <meyering@redhat.com>
5373
5374         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5375         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5376         detect uses of canonicalize_file_name.
5377
5378 2012-01-28  Bruno Haible  <bruno@clisp.org>
5379
5380         test-framework-sh: Fix test failure with AIX 7.1 diff.
5381         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5382         in column 1, like 'diff -c' does.
5383         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5384         whether 'diff -u' is used. Instead, test whether the output contains
5385         some '@' character.
5386
5387 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5388
5389         strtoimax: eliminate need for stdint.h, inttypes.h checks
5390         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5391         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5392         the prerequisites for a recently-introduced strtoimax test.
5393         I guess this might cause strtoimax to be replaced when not
5394         strictly necessary on older hosts, but this shouldn't introduce
5395         any bugs and it should make Emacs 'configure' faster on typical
5396         modern hosts.  Problem discovered when importing the latest gnulib
5397         to an Emacs test version.
5398         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5399
5400 2012-01-28  Bruno Haible  <bruno@clisp.org>
5401
5402         sys_time: Override 'struct timeval' on some native Windows platforms.
5403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5404         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5405         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5406         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5407         needs to be overridden.
5408         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5409         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5410         * tests/test-sys_select.c: Check that the tv_sec member has the same
5411         size as a 'time_t'.
5412         * tests/test-sys_time.c: Likewise.
5413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5414         is set, set also REPLACE_GETTIMEOFDAY.
5415         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5416         convert the resulting 'struct timeval' before returning.
5417         * lib/select.c: Include <sys/time.h>.
5418         (select, timeval): Undefine at the right place.
5419         * modules/select (Depends-on): Add sys_time.
5420         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5421         some Windows platforms.
5422         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5423
5424 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5425
5426         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5427         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5428         an integer.
5429         * lib/fcntl.c (dupfd): Likewise.
5430         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5431
5432 2012-01-28  Bruno Haible  <bruno@clisp.org>
5433
5434         fcntl: Avoid compilation error on native Windows.
5435         * modules/fcntl (Depends-on): Add 'close'.
5436
5437 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5438
5439         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5440         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5441         pointer to an integer.
5442         * lib/poll.c (IsConsoleHandle): Likewise.
5443         * lib/isatty.c (IsConsoleHandle): Likewise.
5444
5445 2012-01-28  Jim Meyering  <meyering@redhat.com>
5446
5447         doc: clarify README-release
5448         * top/README-release: Clarify: you should make a point to have
5449         the latest stable versions of build tools in your PATH, and the
5450         reference to buildreq is solely for its list of tool names, not
5451         for its minimal-functional version numbers.
5452         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5453
5454         maint.mk: use more readable (yet functionally equivalent) quoting
5455         It is common to quote a single quote in a single quoted string like
5456         this:  '...'\''...'.  Unless you know the idiom, that looks like
5457         gibberish, so prefer to double-quote the string when possible.
5458         Then you can use a more readable, lone single quote: "...'..."
5459         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5460         "don't" is more readable than the equivalent 'don'\''t'.
5461         (sc_cast_of_x_alloc_return_value): Likewise.
5462         (sc_cast_of_alloca_return_value): Likewise.
5463         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5464         rather than '\'':'\''.
5465
5466 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5467
5468         stdalign: relax _Alignof and tighten _Alignas test
5469         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5470         as it was too strict: alignof must divide offsetof, but it need
5471         not equal offsetof.  Inspired by Joseph S. Myers's comment
5472         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5473         Conversely, tighten the _Alignas test a bit, as the resulting
5474         alignment must be exactly 8.
5475
5476 2012-01-27  Bruno Haible  <bruno@clisp.org>
5477
5478         stdalign: Document the last change.
5479         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5480
5481 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5482
5483         stdalign: check that alignof and offsetof are consistent
5484         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5485         Problem reported for gnulib by Richard W.M. Jones in
5486         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5487
5488 2012-01-27  Jim Meyering  <meyering@redhat.com>
5489
5490         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5491         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5492         convert a sequence with gaps to the minimal containing range.
5493         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5494         * tests/test-update-copyright.sh: Test for this.
5495         The FSF confirmed it is ok to do this, assuming there is at
5496         least one significant change per year in the affected range:
5497         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5498
5499 2012-01-26  Bruno Haible  <bruno@clisp.org>
5500
5501         pipe2: refine doc about thread-safety
5502         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5503         multithread-safety problem.
5504         * doc/glibc-functions/accept4.texi: Likewise.
5505
5506 2012-01-26  Bruno Haible  <bruno@clisp.org>
5507
5508         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5509         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5510         In the test program, include <fcntl.h>, for O_RDONLY.
5511
5512 2012-01-26  Eric Blake  <eblake@redhat.com>
5513
5514         pipe2: document lack of thread-safety in replacement
5515         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5516         issue in replacement.
5517         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5518         Based on a report by Eric Wong.
5519
5520 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5521             Bruno Haible  <bruno@clisp.org>
5522
5523         malloca: Avoid warnings on x86_64 mingw64.
5524         * lib/malloca.c: Include <stdint.h>.
5525         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5526         * modules/malloca (Depends-on): Add stdint.
5527         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5528
5529 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5530
5531         obstack: remove __STDC__ conditionals
5532         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5533         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5534         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5535         m4/include_next.m4 as the only gnulib-maintained places that still
5536         refer to __STDC__.
5537
5538 2012-01-24  Bruno Haible  <bruno@clisp.org>
5539
5540         havelib: Modern quoting.
5541         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5542         the recent change to the GNU coding standards.
5543
5544 2012-01-24  Bruno Haible  <bruno@clisp.org>
5545
5546         stdint: Improve support for Android.
5547         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5548         Reported by Simon Josefsson <simon@josefsson.org>.
5549
5550 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         doc: omit trailing empty lines from INSTALL etc.
5553         * doc/Makefile (INSTALL): Omit trailing empty lines.
5554         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5555         omit trailing empty lines.  This simplifies the build procedure.
5556
5557 2012-01-23  Jim Meyering  <meyering@redhat.com>
5558
5559         tests: avoid spurious warnings about gl_sockets_startup
5560         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5561         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5562         reporting a "statement with no effect".
5563         * tests/test-accept.c (main): Mark as "(void)".
5564         * tests/test-accept4.c (main): Likewise.
5565         * tests/test-bind.c (main): Likewise.
5566         * tests/test-connect.c (main): Likewise.
5567         * tests/test-getpeername.c (main): Likewise.
5568         * tests/test-getsockname.c (main): Likewise.
5569         * tests/test-getsockopt.c (main): Likewise.
5570         * tests/test-listen.c (main): Likewise.
5571         * tests/test-recv.c (main): Likewise.
5572         * tests/test-recvfrom.c (main): Likewise.
5573         * tests/test-send.c (main): Likewise.
5574         * tests/test-sendto.c (main): Likewise.
5575         * tests/test-setsockopt.c (main): Likewise.
5576         * tests/test-shutdown.c (main): Likewise.
5577
5578 2012-01-21  Bruno Haible  <bruno@clisp.org>
5579
5580         locale-fr.m4: Fix for Android.
5581         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5582         failure of the test program on Bionic libc.
5583
5584 2012-01-21  Jim Meyering  <meyering@redhat.com>
5585
5586         bootstrap: fail when bootstrap_post_import_hook fails
5587         Otherwise, it's far too easy to miss diagnostics emitted
5588         between gnulib-tool's output and that of running configure.
5589         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5590
5591 2012-01-17  Jim Meyering  <meyering@redhat.com>
5592
5593         maint: enable sc_trailing_blank
5594         * build-aux/pmccabe.css: Remove trailing blanks.
5595         * doc/acl-cygwin.txt: Likewise.
5596         * doc/gnu-oids.texi: Likewise
5597         * cfg.mk: Enable sc_trailing_blank.
5598         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5599
5600 2012-01-17  Jim Meyering  <meyering@redhat.com>
5601
5602         maint: enable sc_prohibit_openat_without_use
5603         * cfg.mk: Enable sc_prohibit_openat_without_use.
5604         Exempt lib/selinux-at.c.
5605
5606 2012-01-17  Jim Meyering  <meyering@redhat.com>
5607
5608         maint: enable sc_prohibit_cloexec_without_use
5609         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5610         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5611
5612 2012-01-17  Jim Meyering  <meyering@redhat.com>
5613
5614         maint: enable sc_prohibit_intprops_without_use
5615         * cfg.mk: Enable sc_prohibit_intprops_without_use
5616         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5617
5618 2012-01-17  Jim Meyering  <meyering@redhat.com>
5619
5620         maint: enable sc_prohibit_hash_pjw_without_use
5621         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5622         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5623         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5624         following " (".
5625
5626 2012-01-17  Jim Meyering  <meyering@redhat.com>
5627
5628         maint: enable double-word-prohibiting rule
5629         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5630         Exempt three files.
5631
5632 2012-01-17  Jim Meyering  <meyering@redhat.com>
5633
5634         maint: remove empty lines at EOF, but excluding modules/*
5635         Apply syntax rules at home as well as abroad.  Most changes
5636         were induced by running this:
5637           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5638             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5639             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5640         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5641         Exempt modules/* and two binary files.
5642         Also exempt doc/INSTALL*, per request from Bruno Haible.
5643         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5644         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5645         * doc/Copyright/request-assign.future: Likewise.
5646         * doc/Copyright/request-disclaim.changes: Likewise.
5647         * doc/INSTALL: Likewise.
5648         * doc/INSTALL.ISO: Likewise.
5649         * doc/INSTALL.UTF-8: Likewise.
5650         * doc/acl-cygwin.txt: Likewise.
5651         * doc/acl-resources.txt: Likewise.
5652         * doc/fdl-1.2.texi: Likewise.
5653         * doc/fdl-1.3.texi: Likewise.
5654         * doc/fdl.texi: Likewise.
5655         * lib/argp-pin.c: Likewise.
5656         * lib/round.c: Likewise.
5657         * lib/unicase/u16-totitle.c: Likewise.
5658         * lib/unictype/block_test.c: Likewise.
5659         * lib/uninorm/canonical-decomposition.c: Likewise.
5660         * m4/README: Likewise.
5661         * m4/relocatable-lib.m4: Likewise.
5662         * tests/test-isnand-nolibm.c: Likewise.
5663         * tests/test-isnand.c: Likewise.
5664         * tests/uninorm/NormalizationTest.txt: Likewise.
5665
5666 2012-01-17  Jim Meyering  <meyering@redhat.com>
5667
5668         maint: add framework to run syntax-check rules against gnulib sources
5669         * cfg.mk: New file, to disable all currently-failing tests.
5670         We'll enable them one by one, as they are made to pass.
5671         * Makefile (sc_maint): New rule.
5672
5673 2012-01-21  Bruno Haible  <bruno@clisp.org>
5674
5675         stdint: Add support for Android.
5676         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5677         include the system's <stdint.h>.
5678         Reported by Simon Josefsson <simon@josefsson.org>.
5679
5680 2012-01-19  Jim Meyering  <meyering@redhat.com>
5681
5682         bootstrap: add bootstrap_post_import_hook
5683         Bison does still need something like the gnulib_mk_hook whose
5684         invocation I had to remove along with slurp in commit 767ccd40.
5685         Technically, we could get along without it, but doing so would
5686         have required living with a warning and a mandatory post-bootstrap
5687         automake rerun.
5688         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5689         (bootstrap_post_import_hook): New function.
5690         Invoke it after gnulib-tool --import and before autoreconf.
5691
5692 2012-01-18  Jim Meyering  <meyering@redhat.com>
5693
5694         gitlog-to-changelog: don't use "no_"-prefixed variable name
5695         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5696         to enable both --cluster and --no-cluster.  Change variable name,
5697         s/\$no_cluster/$cluster/, and reverse usage to match.
5698
5699         gitlog-to-changelog: use "||", not "or" in expressions
5700         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5701         expressions.
5702
5703 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5704
5705         gitlog-to-changelog: new option --no-cluster
5706         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5707         clustering of adjacent commit messages.
5708
5709 2012-01-17  Jim Meyering  <meyering@redhat.com>
5710
5711         maint: spell file systems with two words, not one
5712         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5713         two words, not one.
5714
5715 2012-01-16  Jim Meyering  <meyering@redhat.com>
5716
5717         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5718         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5719
5720 2012-01-16  Eric Blake  <eblake@redhat.com>
5721
5722         bootstrap: cater to autoconf 2.59
5723         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5724         is not available.
5725
5726         bootstrap: properly check for libtool
5727         * build-aux/bootstrap (libtoolize): Also run libtool when older
5728         usage is detected.
5729
5730 2012-01-15  Bruno Haible  <bruno@clisp.org>
5731
5732         Improve support for MSVC 9.
5733         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5734         clashes on MSVC.
5735         * lib/fcntl.in.h: Likewise.
5736         * lib/stdlib.in.h: Likewise.
5737         * lib/sys_stat.in.h: Likewise.
5738
5739 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5740
5741         gnupload: we hold the master copy of this script now
5742         For motivation and more information, see:
5743         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5744         * build-aux/gnupload: Make it clear in the heading comments that the
5745         master copy of this file is maintained by gnulib.  Since we are at
5746         it, bump its copyright year and ...
5747         ($scriptversion): ... the date in its version.
5748         ($usage): Patches and bug reports should be sent to the gnulib list,
5749         not the automake one.
5750         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5751         anymore.
5752
5753 2012-01-15  Bruno Haible  <bruno@clisp.org>
5754
5755         Fix module 'random'.
5756         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5757         initstate, setstate are declared.
5758
5759 2012-01-14  Bruno Haible  <bruno@clisp.org>
5760
5761         Tests for module 'random'.
5762         * modules/random-tests: New file.
5763         * tests/test-random.c: New file, based on tests/test-random_r.c.
5764
5765         New module 'random'.
5766         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5767         declarations.
5768         * lib/random.c: New file, based on glibc/stdlib/random.c.
5769         * m4/random.m4: New file.
5770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5771         HAVE_RANDOM.
5772         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5773         * modules/random: New file.
5774         * config/srclist.txt: Add an entry for random.c.
5775         * doc/posix-functions/random.texi: Mention the 'random' module.
5776         * doc/posix-functions/initstate.texi: Likewise.
5777         * doc/posix-functions/setstate.texi: Likewise.
5778         * doc/posix-functions/srandom.texi: Likewise.
5779
5780 2012-01-12  Bruno Haible  <bruno@clisp.org>
5781
5782         random_r: Use common idioms.
5783         * lib/random_r.c: Include <stdlib.h> first.
5784
5785         random_r: Override incompatible API on AIX, OSF/1.
5786         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5787         Override the system function if REPLACE_RANDOM_R is 1.
5788         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5789         and OSF/1, set REPLACE_RANDOM_R.
5790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5791         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5792         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5793         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5794         * doc/glibc-functions/random_r.texi: Likewise.
5795         * doc/glibc-functions/setstate_r.texi: Likewise.
5796
5797         random_r: Support for MSVC 9.
5798         * lib/random_r.c: Include stdint.h, not inttypes.h.
5799
5800 2012-01-12  Eric Blake  <eblake@redhat.com>
5801
5802         inet_ntop: guard extra work by IF_LINT
5803         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5804         better code generation when not checking for warnings.
5805         Suggested by Paul Eggert and Jim Meyering.
5806
5807         strptime: fix regression on mingw
5808         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5809         Fix regression.  Reported by Bruno Haible.
5810
5811 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5812             Bruno Haible  <bruno@clisp.org>
5813
5814         copy-file: add error-code-returning variant.
5815         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5816         (qcopy_file_preserving): New declaration.
5817         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5818         copy_file_preserving. Change return type to 'int'. Don't emit an error
5819         message here.
5820         (copy_file_preserving): New function.
5821         * tests/test-copy-file.c: Include <stdlib.h>.
5822         (main): Test qcopy_file_preserving if the environment variable
5823         NO_STDERR_OUTPUT is set.
5824         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5825         with NO_STDERR_OUTPUT
5826         * tests/test-copy-file-2.sh: Likewise.
5827
5828 2012-01-10  Bruno Haible  <bruno@clisp.org>
5829
5830         copy-file: Use 'quote' module consistently.
5831         * lib/copy-file.c (copy_file_preserving): Use quote().
5832
5833         copy-file: Refactor.
5834         * lib/copy-file.c: Include quote.h.
5835         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5836         message here.
5837         * modules/copy-file (Depends-on): Add quote.
5838
5839         acl: Export qcopy_acl.
5840         * lib/acl.h (qcopy_acl): New declaration.
5841         * lib/copy-acl.c (qcopy_acl): Make non-static.
5842
5843         acl: Rename a local variable.
5844         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5845
5846         acl: Align return values of copy_acl and qcopy_acl.
5847         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5848         maybe < -1.
5849
5850 2012-01-11  Eric Blake  <eblake@redhat.com>
5851
5852         strptime: silence gcc warnings
5853         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5854         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5855         Reported by Daniel P. Berrange.
5856
5857         inet_ntop: silence gcc warning
5858         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5859         Reported by Daniel P. Berrange.
5860
5861 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5862
5863         getloadavg test: skip the test on GNU/Linux without /proc mounted
5864         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5865         file.  When /proc is not mounted, it always fails with ENOENT.
5866         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5867         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5868
5869 2012-01-10  Bruno Haible  <bruno@clisp.org>
5870
5871         regex: Avoid link error on MSVC 9.
5872         * modules/regex (Depends-on): Add wctype.
5873
5874 2012-01-10  Bruno Haible  <bruno@clisp.org>
5875
5876         doc: Mention --with-tests option.
5877         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5878         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5879         --with-tests.
5880         Reported by Reuben Thomas.
5881
5882 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5883
5884         users.txt: order package names lexicographically.
5885         * users.txt: Order package names lexicographically.
5886
5887 2012-01-10  Jim Meyering  <meyering@redhat.com>
5888
5889         maint.mk: fix description in comment
5890         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5891
5892         ignore-value: remove deprecated ignore_ptr function
5893         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5894         * NEWS: Note this.
5895
5896 2012-01-09  Jim Meyering  <meyering@redhat.com>
5897
5898         test-init.sh: avoid a subshell
5899         * tests/test-init.sh: Remove protective subshell.
5900         Suggested by Bernhard Voelker.  While a subshell is normally
5901         required to protect against older shells (Solaris, FreeBSD) that
5902         warn about a missing program before performing redirection, the
5903         shell-selection tests performed by init.sh probably exclude any
5904         offending shell.
5905
5906 2012-01-08  Bruno Haible  <bruno@clisp.org>
5907
5908         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5909         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5910         variable.
5911
5912 2012-01-08  Bruno Haible  <bruno@clisp.org>
5913
5914         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5915         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5916         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5917         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5918         macro.
5919         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5920         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5921         * lib/spawn_faction_addopen.c: Add workaround implementation if
5922         HAVE_WORKING_POSIX_SPAWN.
5923         * modules/spawn (Makefile): Substitute
5924         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5925         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5926         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5927         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5928         (Depends-on): Update conditions.
5929         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5930         the Solaris 11 bug.
5931
5932 2012-01-08  Bruno Haible  <bruno@clisp.org>
5933
5934         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5935         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5936         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5937         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5938         macro.
5939         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5940         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5941         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5942         HAVE_WORKING_POSIX_SPAWN.
5943         * modules/spawn (Makefile): Substitute
5944         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5945         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5946         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5947         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5948         (Depends-on): Update conditions.
5949         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5950         the Solaris 11 bug.
5951
5952 2012-01-08  Bruno Haible  <bruno@clisp.org>
5953
5954         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5955         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5956         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5957         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5958         HAVE_WORKING_POSIX_SPAWN.
5959         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5960         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5961         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5962         * lib/spawn_faction_addclose.c: Add workaround implementation if
5963         HAVE_WORKING_POSIX_SPAWN.
5964         * modules/spawn (Makefile): Substitute
5965         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5966         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5967         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5968         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5969         (Depends-on): Update conditions.
5970         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5971         the Solaris 11 bug.
5972
5973 2012-01-08  Bruno Haible  <bruno@clisp.org>
5974
5975         doc: Update for Solaris 11 2011-11.
5976         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5977         * m4/printf.m4: Update comments.
5978
5979 2012-01-08  Bruno Haible  <bruno@clisp.org>
5980
5981         mktime: Avoid compilation error on Solaris 11.
5982         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5983
5984 2012-01-08  Bruno Haible  <bruno@clisp.org>
5985
5986         doc: Small fix.
5987         * doc/posix-headers/nl_types.texi: Correct platforms list.
5988
5989 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5990
5991         Add lgpl-3.0 module.
5992         * MODULES.html.sh (Support for building documentation): Add
5993         lgpl-3.0.
5994         * modules/lgpl-3.0: New file.
5995
5996 2012-01-08  Jim Meyering  <meyering@redhat.com>
5997
5998         select.c: indent with spaces, not TABs
5999         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6000
6001 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6002
6003         quotearg: do not use grave accent for left quote
6004         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6005         locale_quoting_style.
6006         (quotearg_buffer_restyled): Fix example.
6007         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6008
6009 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6010
6011         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6012         Most programs do not have translation catalogs for English and much
6013         less separate catalogs for British and American English.  Drop the
6014         suggestion to translators about these two, and provide it
6015         automatically for Unicode locales.  Like most programs, even those
6016         using American English, we use single quotation marks.  This conflicts
6017         with the American typographic convention, but works better when you
6018         cite the entire error message within double quotes.  It also tries not
6019         to clash with established practice and with what non-gnulib programs
6020         will usually do.
6021         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6022         using an UTF-8 or GB-18030 locale.  The list of other locales with
6023         quotes was provided by Bruno Haible.
6024         (quotearg_buffer_restyled): Adjust instructions to translators.
6025         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6026         text, since this would be wrong when using Unicode.
6027         * modules/quotearg: Depend on c-strcaseeq.
6028
6029 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6030
6031         quotearg: fix Wikipedia link
6032         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6033
6034 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6035
6036         Fix for mingw with MSVC9.
6037         * m4/ld-version-script.m4: Check that compiler rejects version
6038         scripts with syntax errors.  Reported by Bruno Haible
6039         <bruno@clisp.org>.
6040
6041 2012-01-06  Bruno Haible  <bruno@clisp.org>
6042
6043         Talk about "native Windows API", not "Woe32".
6044         * lib/accept4.c: Update comments to mention native Windows.
6045         * lib/execute.c: Likewise.
6046         * lib/fatal-signal.c: Likewise.
6047         * lib/localcharset.c: Likewise.
6048         * lib/nanosleep.c: Likewise.
6049         * lib/nl_langinfo.c: Likewise.
6050         * lib/pclose.c: Likewise.
6051         * lib/pipe-filter-gi.c: Likewise.
6052         * lib/pipe-filter-ii.c: Likewise.
6053         * lib/pipe.c: Likewise.
6054         * lib/pipe2.c: Likewise.
6055         * lib/popen.c: Likewise.
6056         * lib/progreloc.c: Likewise.
6057         * lib/relocatable.c: Likewise.
6058         * lib/sigaction.c: Likewise.
6059         * lib/sigprocmask.c: Likewise.
6060         * lib/spawn-pipe.h: Likewise.
6061         * lib/spawn-pipe.c: Likewise.
6062         * lib/spawni.c: Likewise.
6063         * lib/stat-time.h: Likewise.
6064         * lib/w32spawn.h: Likewise.
6065         * tests/test-isatty.c: Likewise.
6066         * lib/config.charset: More comments.
6067         * doc/gnulib-intro.texi: Mention native Windows.
6068         * doc/posix-functions/_Exit_C99.texi: Likewise.
6069         * doc/posix-headers/fcntl.texi: Likewise.
6070
6071 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6072
6073         argp: Avoid crash if translator uses % characters in a translation.
6074         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6075         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6076
6077 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6078
6079         doc: C11 and C++11 are now official
6080         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6081         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6082         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6083         * modules/stdalign:
6084         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6085
6086 2012-01-06  Bruno Haible  <bruno@clisp.org>
6087
6088         uc-is-grapheme-break tests: Tweak.
6089         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6090         message.
6091
6092 2012-01-06  Bruno Haible  <bruno@clisp.org>
6093
6094         test-init.sh: correct the test for diff -u
6095         * tests/test-init.sh: Also redirect stdout to /dev/null.
6096
6097 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6098
6099         Use ', not `, for quoting output.
6100         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6101         (print_changelog_deltas, get_tool_versions, main program):
6102         * build-aux/git-version-gen:
6103         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6104         * build-aux/move-if-change (help):
6105         * build-aux/useless-if-before-free (usage, main program):
6106         * check-module (parse_module_file, usage)
6107         (find_included_lib_files, check_module):
6108         * lib/argmatch.c (main) [TEST]:
6109         * lib/argp-help.c (_help):
6110         * lib/getopt1.c (main) [TEST]:
6111         * lib/git-merge-changelog.c (usage):
6112         * lib/xstrtol-error.c (xstrtol_error):
6113         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6114         * m4/argz.m4 (gl_FUNC_ARGZ):
6115         * m4/bison.m4 (gl_BISON):
6116         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6117         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6118         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6119         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6120         * m4/gc-random.m4 (gl_GC_RANDOM):
6121         * m4/intl.m4 (gt_CHECK_DECL):
6122         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6123         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6124         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6126         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6127         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6128         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6129         * tests/test-dirname.c (main):
6130         * tests/test-getpass.c (main):
6131         * tests/test-iconvme.c (main):
6132         * tests/test-parse-datetime.c (LOG):
6133         * tests/test-xstrtoimax.sh:
6134         * tests/test-xstrtol.sh:
6135         * tests/test-xstrtoll.sh:
6136         * tests/test-xstrtoumax.sh:
6137         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6138         * top/GNUmakefile (abort-due-to-no-makefile):
6139         Quote 'like this', not `like this', as per the recent change to
6140         the GNU coding standards.
6141
6142 2012-01-05  Bruno Haible  <bruno@clisp.org>
6143
6144         strtoimax: Don't force a replacement on systems where intmax_t is int.
6145         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6146         'intmax_t' is not larger than 'int'.
6147         Reported by Pádraig Brady <P@draigBrady.com>.
6148
6149 2012-01-05  Bruno Haible  <bruno@clisp.org>
6150
6151         doc: Mention NetBSD bugs.
6152         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6153         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6154
6155 2012-01-05  Bruno Haible  <bruno@clisp.org>
6156
6157         strtoumax tests: Enhance tests.
6158         * tests/test-strtoumax.c (main): Add tests for large values.
6159
6160 2012-01-05  Bruno Haible  <bruno@clisp.org>
6161
6162         strtoimax: Work around AIX 5.1 bug.
6163         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6164         definition.
6165         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6166         Set HAVE_STRTOIMAX.
6167         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6168         REPLACE_STRTOIMAX.
6169         * modules/inttypes-incomplete (Makefile.am): Substitute
6170         REPLACE_STRTOIMAX.
6171         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6172         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6173         (Depends-on): Update conditions.
6174         * tests/test-strtoimax.c (main): Add tests for large values.
6175         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6176
6177 2012-01-05  Bruno Haible  <bruno@clisp.org>
6178
6179         inttypes: Modernize.
6180         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6181         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6182         (Makefile.am): Update inttypes.h rule.
6183
6184 2012-01-05  Jim Meyering  <meyering@redhat.com>
6185
6186         init.sh: don't waste a subshell just to redirect stderr
6187         * tests/init.sh: In testing for diff -u and diff -c, use a
6188         stderr-redirecting exec inside `...` rather than a subshell.
6189
6190         test-init.sh: avoid failure on HP-UX 11.00
6191         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6192         resolves to diff -c or cmp.  Reported by Bruno Haible.
6193
6194 2012-01-05  Bruno Haible  <bruno@clisp.org>
6195
6196         Tests for module 'strtoull'.
6197         * modules/strtoull-tests: New file.
6198         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6199
6200 2012-01-05  Bruno Haible  <bruno@clisp.org>
6201
6202         Tests for module 'strtoll'.
6203         * modules/strtoll-tests: New file.
6204         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6205
6206 2012-01-05  Bruno Haible  <bruno@clisp.org>
6207
6208         Tests for module 'strtoul'.
6209         * modules/strtoul-tests: New file.
6210         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6211
6212 2012-01-05  Bruno Haible  <bruno@clisp.org>
6213
6214         Tests for module 'strtol'.
6215         * modules/strtol-tests: New file.
6216         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6217
6218 2012-01-04  Jim Meyering  <meyering@redhat.com>
6219
6220         test-init.sh: accommodate Solaris 5.10's different diff -u output
6221         * tests/test-init.sh: Also exempt @@ lines from the comparison
6222         of diff output, since Solaris 5.10 and GNU diff formats differ.
6223         Reported by Stefano Lattarini.
6224
6225 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6226
6227         test-posixtm: don't assume signed integer wraparound
6228         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6229         after signed integer overflow.  Inspired by (though it may not
6230         fix) Bruno Haible's bug report in
6231         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6232
6233         Spell out "Windows 9x" and "Windows XP".
6234         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6235         "Windows 9x" and "WinXP" with "Windows XP".
6236
6237 2012-01-04  Jim Meyering  <meyering@redhat.com>
6238
6239         test-vc-list-files-cvs.sh: remove obsolete comment
6240         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6241         double exit.  Now that's all encapsulated via skip_ and Exit.
6242
6243 2012-01-04  Bruno Haible  <bruno@clisp.org>
6244
6245         Talk about "native Windows API", not "Win32".
6246         * lib/classpath.c: Update comments to mention native Windows.
6247         * lib/csharpexec.c: Likewise.
6248         * lib/dup2.c: Likewise.
6249         * lib/error.c: Likewise.
6250         * lib/fcntl.c: Likewise.
6251         * lib/filename.h: Likewise.
6252         * lib/findprog.c: Likewise.
6253         * lib/get-rusage-as.c: Likewise.
6254         * lib/get-rusage-data.c: Likewise.
6255         * lib/getpagesize.c: Likewise.
6256         * lib/javaexec.c: Likewise.
6257         * lib/msvc-inval.c: Likewise.
6258         * lib/msvc-nothrow.c: Likewise.
6259         * lib/nanosleep.c: Likewise.
6260         * lib/nonblocking.c: Likewise.
6261         * lib/printf-parse.c: Likewise.
6262         * lib/setlocale.c: Likewise.
6263         * lib/sigaction.c: Likewise.
6264         * lib/strerror_r.c: Likewise.
6265         * lib/tmpdir.c: Likewise.
6266         * lib/vasnprintf.c: Likewise.
6267         * lib/w32spawn.h: Likewise.
6268         * lib/waitpid.c: Likewise.
6269         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6270         * m4/locale-ar.m4: Likewise.
6271         * m4/locale-fr.m4: Likewise.
6272         * m4/locale-ja.m4: Likewise.
6273         * m4/locale-tr.m4: Likewise.
6274         * m4/locale-zh.m4: Likewise.
6275         * m4/printf.m4: Likewise.
6276         * tests/test-cloexec.c: Likewise.
6277         * tests/test-copy-acl.sh: Likewise.
6278         * tests/test-copy-file.sh: Likewise.
6279         * tests/test-file-has-acl.sh: Likewise.
6280         * tests/test-set-mode-acl.sh: Likewise.
6281         * tests/test-dup-safer.c: Likewise.
6282         * tests/test-dup2.c: Likewise.
6283         * tests/test-dup3.c: Likewise.
6284         * tests/test-fcntl.c: Likewise.
6285         * tests/test-nonblocking-pipe.h: Likewise.
6286         * tests/test-nonblocking-socket.h: Likewise.
6287         * tests/test-pipe.c: Likewise.
6288         * tests/test-pipe2.c: Likewise.
6289         * tests/test-spawn-pipe-child.c: Likewise.
6290         * doc/acl-resources.txt: Likewise.
6291         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6292         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6293         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6294         * lib/localcharset.c: Update comments to mention native Windows.
6295         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6296         * lib/localename.c: Likewise.
6297         * lib/progreloc.c: Likewise.
6298         * lib/relocatable.c: Likewise.
6299         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6300         (windows_compute_revents): Renamed from win32_compute_revents.
6301         (windows_compute_revents_socket): Renamed from
6302         win32_compute_revents_socket.
6303         * lib/select.c: Update comments to mention native Windows.
6304         (windows_poll_handle): Renamed from win32_poll_handle.
6305         * m4/threadlib.m4: Update comments to mention native Windows.
6306         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6307         --enable-threads=windows instead of --enable-threads=win32. Set
6308         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6309         * lib/glthread/lock.h: Update comments to mention native Windows.
6310         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6311         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6312         USE_WIN32_THREADS.
6313         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6314         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6315         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6316         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6317         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6318         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6319         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6320         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6321         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6322         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6323         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6324         * tests/test-tls.c: Likewise.
6325         Rationale:
6326         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6327         on both 32-bit and 64-bit Windows systems.
6328         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6329         line of distinction is between "native Windows" on one side and Unix/
6330         POSIX systems on the other side. More details in
6331         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6332         Suggested by Paul Eggert.
6333
6334 2012-01-03  Bruno Haible  <bruno@clisp.org>
6335
6336         isatty: Support for MSVC 9.
6337         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6338         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6339         (_isatty_nothrow): New function.
6340         (isatty): Use it instead of _isatty.
6341         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6342         * lib/poll.c (IsConsoleHandle): Likewise.
6343         * lib/select.c (IsConsoleHandle): Likewise.
6344         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6345         (gl_PREREQ_ISATTY): New macro.
6346         * modules/isatty (Depends-on): Add msvc-inval.
6347         (configure.ac): Invoke gl_PREREQ_ISATTY.
6348
6349 2012-01-03  Jim Meyering  <meyering@redhat.com>
6350
6351         maint.mk: remove temporary transition aid from over 1.5 years ago
6352         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6353         purpose was to aid in the transition (avoiding silent malfunction)
6354         from that old name to the new _sc_search_regexp.  This shim was
6355         added by commit 219c504b.
6356
6357         init.sh: do not try to accommodate compare arguments starting with "-"
6358         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6359         compare arguments that start with "-".  Besides, we do not worry
6360         about this when invoking diff or cmp; why start now with sed?
6361         Using "--" to separate options from argument would trigger sed
6362         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6363         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6364
6365 2012-01-02  Bruno Haible  <bruno@clisp.org>
6366
6367         Enhance tests for module 'isatty'.
6368         * modules/isatty-tests (Depends-on): Add pipe-posix.
6369         * tests/test-isatty.c: Include <fcntl.h>.
6370         (DEV_NULL): New macro.
6371         (main): Test the resut of isatty() also on regular files, pipes, and
6372         /dev/null.
6373
6374         New module 'isatty'.
6375         * lib/unistd.in.h (isatty): New declaration.
6376         * lib/isatty.c: New file, based on an idea of
6377         Bastien Roucariès <roucaries.bastien@gmail.com>.
6378         * m4/isatty.m4: New file.
6379         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6380         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6381         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6382         REPLACE_ISATTY.
6383         * modules/isatty: New file.
6384         * doc/posix-functions/isatty.texi: Mention the new module.
6385         Suggested by Paolo Bonzini.
6386
6387 2012-01-02  Bruno Haible  <bruno@clisp.org>
6388
6389         canonicalize: Tweak 2011-12-29 commit.
6390         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6391         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6392
6393 2012-01-02  Jim Meyering  <meyering@redhat.com>
6394
6395         gitlog-to-changelog: describe input syntax in --help output
6396         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6397
6398         gitlog-to-changelog: fix typo in --help: show backslash before email @
6399         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6400         in sources, but not in actual output.
6401
6402 2011-12-30  Jim Meyering  <meyering@redhat.com>
6403
6404         gitlog-to-changelog: don't malfunction when name contains %-directive
6405         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6406         in a name string cause trouble.  E.g., with a user name of "%s",
6407         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6408
6409 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6410
6411         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6412         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6413         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6414         the "  (tiny change)" notation that is appended to the standard
6415         ChangeLog "date  name  email" header line.
6416
6417 2012-01-01  Jim Meyering  <meyering@redhat.com>
6418
6419         test-framework-sh: init.sh: fix "make dist" failure
6420         When using gnulib-tool's --with-tests option and any module that
6421         depends on test-framework-sh, "make dist" would fail due to the
6422         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6423         in the gltests directory, and not in the gllib/ directory.
6424         One way to work around that is to move the EXTRA_DIST += init.sh
6425         from the primary module to the -tests one:
6426         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6427         * modules/test-framework-sh (Makefile.am): ...not here.
6428         Reported by Tom G. Christensen in
6429         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6430
6431         version-etc: update copyright year reported by --version
6432         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6433
6434 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6435
6436         canonicalize: only stat() if required
6437         * lib/canonicalize.c (canonicalize_filename_mode):
6438         Avoid calling l?stat() when both CAN_MISSING,
6439         and CAN_NOLINKS are set, as we neither need
6440         to resolve symlinks or test component existence.
6441
6442 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6443
6444         doc: cover st_ino issues once; add OpenVMS etc.
6445         * doc/posix-functions/stat.texi (stat):
6446         * doc/posix-functions/lstat.texi (lstat):
6447         * doc/posix-functions/fstatat.texi (fstatat):
6448         * doc/posix-functions/fstat.texi (fstat):
6449         Move general 'struct stat' stuff to sys_stat.texi,
6450         leaving behind a pointer.
6451         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6452         Merge duplicate info about 'struct stat' problems into here.
6453         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6454         and suggest partial workarounds.
6455
6456         same-inode: port to OpenVMS
6457         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6458         three st_ino values.
6459
6460 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6461
6462         canonicalize: fix references to stat() and lstat()
6463         * lib/canonicalize.c (canonicalize_filename_mode):
6464         Ensure references always resolve to a replacement
6465         function if required (even via a macro).
6466
6467 2011-12-30  Jim Meyering  <meyering@redhat.com>
6468
6469         gitlog-to-changelog: remove a little duplication
6470         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6471         rather than twice.
6472
6473 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6474
6475         canonicalize: add support for not resolving symlinks
6476         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6477         indicate we don't want to follow symlinks.  Also
6478         provide CAN_MODE_MASK to aid setting these existing
6479         mutually exclusive values.
6480         * lib/canonicalize.c (canonicalize_filename_mode):
6481         Extract the flags from can_mode parameter, which
6482         are currently just used to select between stat()
6483         and lstat().  Also ensure that mutually exclusive
6484         values are flagged immediately as invalid.
6485         * tests/test-canonicalize.c: Verify symlinks are
6486         not followed, and that invalid flag combinations
6487         are diagnosed.
6488
6489 2011-12-25  Jim Meyering  <meyering@redhat.com>
6490
6491         gitlog-to-changelog: do not clump multi-paragraph entries
6492         Identical header lines (date,name,email+coauthors) are suppressed,
6493         thus putting all entries with those same characteristics under
6494         a single header.  However, when a log entry consists of two or
6495         more paragraphs, it may not be clear where it starts and ends.
6496         This change makes it so that such an entry is always separated
6497         from others by a header line, even when that header would
6498         otherwise be suppressed.
6499         * build-aux/gitlog-to-changelog: Implement the above.
6500         Inspired by a related request from Stefano Lattarini in
6501         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6502
6503 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6504
6505         announce-gen: fix `cmd' typo in diagnostic
6506         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6507         diagnostic: a missing '$' meant that the command was not output.
6508
6509 2011-12-23  Jim Meyering  <meyering@redhat.com>
6510
6511         test-framework-sh: distribute init.sh
6512         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6513         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6514         fail due to the lack of init.sh.
6515
6516         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6517         * modules/atexit-tests: Rather than listing tests/init.sh,
6518         now that there's a module for it, simply depend on that new module.
6519         * modules/closein-tests: Likewise.
6520         * modules/exclude-tests: Likewise.
6521         * modules/getcwd-tests: Likewise.
6522         * modules/perror-tests: Likewise.
6523         * modules/pread-tests: Likewise.
6524         * modules/pwrite-tests: Likewise.
6525         * modules/vc-list-files-tests: Likewise.
6526         * modules/verify-tests: Likewise.
6527         * modules/xalloc-die-tests: Likewise.
6528         * modules/xstrtoimax-tests: Likewise.
6529         * modules/xstrtol-tests: Likewise.
6530         * modules/xstrtoll-tests: Likewise.
6531         * modules/xstrtoumax-tests: Likewise.
6532         * modules/yesno-tests: Likewise.
6533
6534 2011-12-22  Jim Meyering  <meyering@redhat.com>
6535
6536         test-framework-sh: add minimal tests of init.sh's compare function
6537         * modules/test-framework-sh-tests: New file.
6538         * tests/test-init.sh: New file.
6539
6540         test-framework-sh: new module
6541         * modules/test-framework-sh: New file.
6542         * MODULES.html.sh (Support for maintaining and releasing projects):
6543         List it.
6544
6545         init.sh: do not emit simulated diff output to stderr
6546         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6547
6548 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6549
6550         .gitignore: ignore gnulib.dvi and regex.info
6551         * doc/.gitignore:add gnulib.dvi and regex.info
6552
6553 2011-12-22  Jim Meyering  <meyering@redhat.com>
6554
6555         init.sh: correct previous change
6556         * tests/init.sh (compare): My previous change was wrong.
6557         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6558
6559         init.sh: avoid unwarranted test failure when using "set -e"
6560         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6561         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6562         a use like "compare exp out" would get evoke an unconditional failure.
6563
6564 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6565
6566         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6567         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6568         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6569         autoreconf that did not.
6570         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6571         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6572
6573 2011-12-17  Jim Meyering  <meyering@redhat.com>
6574
6575         bootstrap: remove some now-unneeded code
6576         This script arose back when gnulib-tool was young.
6577         Since then, it has seen improvements that render much of this
6578         script unnecessary.  In particular, it can now make symlinks
6579         to the files it uses.  Also, I no longer see as much value in
6580         marking files as read-only via comments.
6581         If you relied on the symlink-creation feature of the preceding
6582         version of this script, you can get most of that functionality
6583         by adding the --symlink option to the definition of
6584         gnulib_tool_option_extras in your bootstrap.conf file.
6585         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6586         Run autopoint and libtoolize *before* gnulib-tool.
6587         After it, run an abbreviated autoreconf, rather than a loop around
6588         all tools.
6589         (slirp, bt_mark_as_generated): Remove functions.
6590
6591 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6592
6593         ftoastr: fix typo
6594         * lib/ftoastr.h: Fix misspelling in comment.
6595
6596 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6597
6598         * top/README-release: fix punctuation.
6599
6600 2011-12-17  Jim Meyering  <meyering@redhat.com>
6601
6602         bootstrap: correct the recent buildreq change
6603         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6604         had no effect.
6605         * build-aux/bootstrap (buildreq): Bracket each search term with
6606         "*...*", so that the shell "case" statement works as intended.
6607         Add comments.
6608
6609 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6610
6611         build: let bootstrap resort to wget when downloading .po files
6612         * build-aux/bootstrap (download_po_files): Fallback to wget when
6613         downloading the .po files via rsync fails.  This is necessary to
6614         bootstrap from behind a strict firewall.
6615
6616 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6617
6618         stdint: don't assume C++11 when compiling with g++
6619         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6621         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6622         work also in C++ before C++11, as that improperly inhibits
6623         generating a substitute stdint.h for that case.
6624
6625 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6626
6627         alloca: protect comment from gnulib-tool
6628         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6629         that gnulib-tool doesn't think it's a license, and munge it to
6630         say "GCC version 3".
6631
6632 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6633
6634         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6635         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6636         $(abs_top_builddir) instead of $(top_builddir).
6637
6638 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6639
6640         strftime-tests: also test nanoseconds
6641         * tests/test-strftime.c (T): Add a test of %N.
6642
6643 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6644
6645         inttypes, stdint: add C++11 support
6646         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6647         when including inttypes.h and stdint.h.  Support this change to
6648         the standard.
6649         * doc/posix-headers/inttypes.texi (inttypes.h):
6650         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6651         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6652         Define if not defined already, for the benefit of pre-C++11 hosts.
6653         Define the standard format macros (e.g., PRId8) always.
6654         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6655         Likewise, if __cpluspus.  Define the standard constant and limit
6656         macros (e.g., INT8_C, INT8_MAX) always.
6657         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6658         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6659         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6660         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6661         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6662         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6663         Likewise.
6664
6665 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         nonblocking tests: Fix test failure on Linux/PPC.
6668         Suggested by Prerna Saxena in
6669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6670         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6671         Set to 1100000.
6672
6673 2011-12-12  Jim Meyering  <meyering@redhat.com>
6674
6675         argmatch: don't hard-code `' when listing valid option arguments
6676         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6677         use the quote function to add quotes.  Use fputs rather than
6678         fprintf for the format string with no format directive.
6679
6680 2011-12-07  Eric Blake  <eblake@redhat.com>
6681
6682         bootstrap: detect tools required by gnulib-tool
6683         * build-aux/bootstrap (buildreq): Provide minimum implicit
6684         dependencies.
6685         * DEPENDENCIES: Mention patch as a prereq.
6686
6687 2011-12-04  Bruno Haible  <bruno@clisp.org>
6688
6689         sethostname: Port to Windows platforms.
6690         * lib/sethostname.c: Provide an alternate implementation for Windows
6691         platforms.
6692         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6693         (main): Skip the test if sethostname() fails with EPERM. On Windows
6694         platforms, don't check the result of gethostname().
6695
6696 2011-12-04  Bruno Haible  <bruno@clisp.org>
6697             Jim Meyering  <meyering@redhat.com>
6698
6699         tests: Avoid spurious error message on platforms without mktemp program.
6700         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6701
6702 2011-12-04  Bruno Haible  <bruno@clisp.org>
6703
6704         sethostname: Fix documentation.
6705         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6706         "not fixed" section.
6707
6708 2011-12-03  Bruno Haible  <bruno@clisp.org>
6709
6710         gnulib-tool: Verify that the License field is present and non-empty.
6711         * gnulib-tool (func_get_license_raw): New function, extracted from
6712         func_get_license.
6713         (func_get_license): Use it. Warn if the module is not a test module and
6714         has no license.
6715         Suggested by Jim Meyering.
6716
6717 2011-12-03  Bruno Haible  <bruno@clisp.org>
6718
6719         sethostname tests: Fix link error on mingw.
6720         * tests/test-sethostname1.c: New file, extracted from
6721         tests/test-sethostname.c.
6722         * tests/test-sethostname2.c: New file, extracted from
6723         tests/test-sethostname.c.
6724         * tests/test-sethostname.c: Remove file.
6725         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6726         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6727         (Depends-on): Add gethostname.
6728         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6729         Link the latter with $(GETHOSTNAME_LIB).
6730
6731         sethostname tests: Fix compilation error on mingw.
6732         * tests/test-sethostname.c: Don't include <sys/types.h>.
6733         (geteuid): Use a dummy value without uid_t.
6734         * modules/sethostname-tests (Depends-on): Remove sys_types.
6735
6736         sethostname tests: Avoid a gcc warning.
6737         * tests/test-sethostname.c (main): Remove an unused variable.
6738
6739         Tweak last commit.
6740         * modules/sethostname-tests (Files): Sort by decreasing importance.
6741         (configure.ac): Check for geteuid.
6742         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6743         the test when there's nothing to test. Drop an unnecessary cast.
6744         Improve an error message. Verify that the final sethostname() call
6745         succeeds.
6746
6747 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6748
6749         Add a test suite for the sethostname module.
6750         * modules/sethostname-tests: New file.  A test program
6751         for the sethostname module.
6752         * tests/test-sethostname.c: Likewise.
6753
6754 2011-12-03  Bruno Haible  <bruno@clisp.org>
6755
6756         Tweak last commit.
6757         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6758         Fix preprocessor directives indentation. Fix typos.
6759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6760         * modules/unistd (Makefile): Likewise.
6761
6762 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6763
6764         Integrate the sethostname module into unistd.
6765         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6766         into the unistd.h header.
6767         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6768         preprocessor directives.
6769         * modules/unistd: Setup the Makefile substitutions of the
6770         SETHOSTNAME preprocessor directives.
6771
6772 2011-12-03  Bruno Haible  <bruno@clisp.org>
6773
6774         Tweak last commit.
6775         * lib/sethostname.c: Don't include <string.h>.
6776         (sethostname): No need to copy the argument string to the stack. Don't
6777         call clearerr. Preserve errno when fprintf failed.
6778         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6779         Don't invoke AC_REPLACE_FUNCS.
6780         * modules/sethostname (Link): Remove empty section.
6781         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6782         failure problem.
6783
6784 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6785
6786         New module 'sethostname'.
6787         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6788         for systems that lack it.
6789         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6790         sethostname declaration and function.
6791         * modules/sethostname: New file.  Define the sethostname module.
6792
6793 2011-12-03  Bruno Haible  <bruno@clisp.org>
6794
6795         Tweak last commit.
6796         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6797
6798 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6799
6800         Split the HOST_NAME_MAX detection into a separate m4 macro.
6801         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6802         macro so it can be used by the pending sethostname module.
6803
6804 2011-12-03  Bruno Haible  <bruno@clisp.org>
6805
6806         Fix module descriptions syntax.
6807         * modules/argv-iter (License): Fix syntax.
6808         * modules/di-set (License): Likewise.
6809         * modules/ino-map (License): Likewise.
6810         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6811
6812 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6813
6814         stdalign: port to Clang 3.0
6815         Problem reported by Simon Josefsson in
6816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6817         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6818         which has <stdalign.h> but which does not define alignof.
6819         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6820
6821 2011-12-01  Eric Blake  <eblake@redhat.com>
6822
6823         mktempd: silence dd usage
6824         * build-aux/mktempd (rand_bytes): Silence dd.
6825
6826 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6827
6828         manywarnings: Don't mention gcc version in docstring.
6829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6830         Jim Meyering <meyering@redhat.com>.
6831
6832 2011-11-30  Jim Meyering  <meyering@redhat.com>
6833
6834         hash: mark a few floating point constants with "f" suffix
6835         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6836         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6837         floating point constants with "f", since they're destined to be
6838         saved/used as "float"s.
6839
6840 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6841
6842         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6843         * tests/test-float.c (test_long_double): Correct and re-enable the
6844         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6845
6846 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6847
6848         Avoid subtracting two pointers that don't point into the same block.
6849         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6850         only pointers into the same memory block are subtracted. We cannot
6851         assume that sizeof (ptrdiff_t) == sizeof (void *).
6852
6853 2011-11-29  Eric Blake  <eblake@redhat.com>
6854
6855         maint.mk: add syntax check for use of compare from init.sh
6856         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6857         moved here from coreutils.
6858
6859         manywarnings: drop -Wunsuffixed-float-constants
6860         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6861         '1.0D', which is the only way to silence this warning for 'double'.
6862
6863 2011-11-29  Jim Meyering  <meyering@redhat.com>
6864
6865         hash: mark compute_bucket_size with the pure attribute
6866         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6867
6868         quotearg, propername: correct pragma guard expression
6869         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6870         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6871
6872 2011-11-28  Jim Meyering  <meyering@redhat.com>
6873
6874         propername: do not mark proper_name with the const attribute
6875         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6876         since it examines data pointed to by its parameter.
6877         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6878         the suggestion from -Wsuggest-attribute=const.
6879
6880         propername: mark one more function as const
6881         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6882
6883 2011-11-27  Jim Meyering  <meyering@redhat.com>
6884
6885         mark functions with const and pure attributes
6886
6887         Mark functions per suggestions from gcc-4.6 when using these options:
6888         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6889         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6890         Follow these guidelines: when possible, apply the attribute to
6891         an extern declaration, not to its definition.  Apply it to the
6892         definition only when the definition is static.
6893         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6894         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6895         * lib/base64.h (isbase64): Likewise.
6896         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6897         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6898         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6899         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6900         (c_tolower, c_toupper): Likewise.
6901         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6902         * lib/chdir-long.c (find_non_slash): Likewise.
6903         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6904         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6905         * lib/file-type.h (file_type): Likewise.
6906         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6907         * lib/filevercmp.c (verrevcmp): Likewise.
6908         * lib/freadahead.h (freadahead): Likewise.
6909         * lib/fts.c (fts_maxarglen): Likewise.
6910         * lib/hash-pjw.h (hash_pjw): Likewise.
6911         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6912         * lib/hash.c (is_prime, next_prime): Likewise.
6913         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6914         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6915         (hash_table_ok, hash_get_first, hash_string): Likewise.
6916         (compute_bucket_size): Likewise.
6917         * lib/i-ring.h (i_ring_empty): Likewise.
6918         * lib/isnan.c (isnanl): Likewise.
6919         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6920         * lib/memcasecmp.h (memcasecmp): Likewise.
6921         * lib/memchr2.h (memchr2): Likewise.
6922         * lib/memcmp2.h (memcmp2): Likewise.
6923         * lib/parse-datetime.y (lookup_zone): Likewise.
6924         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6925         [!WINDOWS_SOCKETS]: Likewise.
6926         * lib/strnlen1.h (strnlen1): Likewise.
6927         * lib/uniwidth.in.h (uc_width): Likewise.
6928         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6929         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6930         (quoting_options_from_style): Add a comment.
6931         * lib/propername.h (proper_name): Add a comment.
6932
6933 2011-11-27  Bruno Haible  <bruno@clisp.org>
6934
6935         Remove unused macros from !_LIBC code in glibc-borrowed files.
6936         * lib/fnmatch.c (STRCOLL): Remove macro.
6937         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6938         * lib/glob.c (__stat, __readdir64): Remove macros.
6939         * lib/tempname.c (__open64, __xstat64): Remove macros.
6940         Suggested by Paul Eggert.
6941
6942 2011-11-27  Bruno Haible  <bruno@clisp.org>
6943
6944         getcwd: Fix link error on MSVC 9.
6945         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6946
6947 2011-11-27  Bruno Haible  <bruno@clisp.org>
6948
6949         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6950         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6951         HAVE_OPENDIR is 0.
6952         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6953         HAVE_CLOSEDIR is 0.
6954         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6955         is 0.
6956         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6957
6958 2011-11-27  Bruno Haible  <bruno@clisp.org>
6959
6960         getcwd: Fix bug from 2011-08-17.
6961         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6962         platforms that need it.
6963         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6964         code of 4 to be a failure, not a success. This ensures that
6965         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6966
6967 2011-11-27  Bruno Haible  <bruno@clisp.org>
6968
6969         binary-io tests: Avoid test failure on mingw when libtool is used.
6970         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6971         Don't verify the size of t-bin-out1.tmp here.
6972         * tests/test-binary-io.sh: Verify it here.
6973         Reported by Simon Josefsson.
6974
6975 2011-11-26  Bruno Haible  <bruno@clisp.org>
6976
6977         Fix conflict between two instantiations of module 'unistd'.
6978         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6979         ${include_guard_prefix} also in the autoconf snippet.
6980         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6982         GNULIB_UNISTD_H_GETOPT.
6983         * modules/getopt-posix (configure.ac): Set the
6984         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6985         * modules/getopt-gnu (configure.ac): Likewise.
6986         * modules/unistd (Makefile.am): Change the substitution value of
6987         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6988         Reported by Simon Josefsson.
6989
6990 2011-11-25  Bruno Haible  <bruno@clisp.org>
6991
6992         pagealign_alloc: Doc and comments.
6993         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6994         module.
6995         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6996
6997 2011-11-25  Jim Meyering  <meyering@redhat.com>
6998
6999         test-update-copyright.sh: avoid false-positive failure
7000         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7001         around false positive failure on Cygwin/Windows.  The latter was
7002         matching erroneously-created files with names like
7003         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7004
7005 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7006
7007         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7008         * m4/valgrind-tests.m4: Check that the parameters that will be
7009         used works, not just a subset of them.  Reported by Bruno Haible
7010         <bruno@clisp.org>.
7011
7012 2011-11-24  Jim Meyering  <meyering@redhat.com>
7013
7014         test-stdalign.c: comment out long double tests
7015         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7016         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7017         error: '_Alignas' specifiers cannot reduce alignment of \
7018         'static_longdouble_alignas'.
7019
7020 2011-11-22  Jim Meyering  <meyering@redhat.com>
7021
7022         init.sh: make "compare /dev/null FILE" output more readable
7023         * tests/init.sh (compare_): Document the preferred order of arguments.
7024         (emit_diff_u_header_): New function.
7025         (compare_dev_null_): Emit a simulated diff, rather than just the
7026         contents of the unexpected file.  Suggestion from Bruno Haible.
7027
7028 2011-11-21  Jim Meyering  <meyering@redhat.com>
7029             Eric Blake  <eblake@redhat.com>
7030
7031         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7032         * tests/init.sh: Make our compare function slightly more portable.
7033         Reported by Bruno Haible in
7034         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7035
7036 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7037
7038         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7039         before using it, in code that ends up in config.h.
7040
7041 2011-11-20  Bruno Haible  <bruno@clisp.org>
7042
7043         getcwd: Work around getcwd bug on AIX 5..7.
7044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7045         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7046         Use a different value for gl_cv_func_getcwd_path_max. Move the
7047         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7048         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7049         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7050         Define HAVE_MINIMALLY_WORKING_GETCWD.
7051         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7052         where it is not even minimally working, that is, on AIX.
7053         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7054         m4/getcwd-path-max.m4.
7055         (main): Update exit code computation.
7056         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7057         getcwd does not handle long file names.
7058
7059 2011-11-20  Bruno Haible  <bruno@clisp.org>
7060
7061         getcwd: Fix bug from 2009-09-10.
7062         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7063         like "no".
7064
7065 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7066
7067         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7068
7069 2011-11-20  Bruno Haible  <bruno@clisp.org>
7070
7071         fma tests: Avoid shadowing local variables.
7072         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7073         expected.
7074
7075 2011-11-20  Bruno Haible  <bruno@clisp.org>
7076
7077         copysignf tests: Fix.
7078         * tests/test-copysignf.c: Fix signature check.
7079
7080 2011-11-20  Bruno Haible  <bruno@clisp.org>
7081
7082         fma: Remove unused code.
7083         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7084         unused macros.
7085
7086 2011-11-20  Bruno Haible  <bruno@clisp.org>
7087
7088         sethostname: Fix doc about AIX.
7089         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7090         sethostname; it has it.
7091
7092         sethostname: Mention more portability problems.
7093         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7094         problem.
7095         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7096
7097 2011-11-19  Bruno Haible  <bruno@clisp.org>
7098
7099         Depend on module fcntl-h when AT_FDCWD is used.
7100         * modules/utimens (Depends-on): Add fcntl-h.
7101         * modules/areadlinkat (Depends-on): Likewise.
7102         * modules/areadlinkat-with-size (Depends-on): Likewise.
7103         * modules/faccessat (Depends-on): Likewise.
7104         * modules/fchmodat (Depends-on): Likewise.
7105         * modules/fchownat (Depends-on): Likewise.
7106         * modules/getcwd (Depends-on): Likewise.
7107         * modules/mkdirat (Depends-on): Likewise.
7108         * modules/mkfifoat (Depends-on): Likewise.
7109         * modules/readlinkat (Depends-on): Likewise.
7110         * modules/symlinkat (Depends-on): Likewise.
7111         * modules/dup2-tests (Depends-on): Likewise.
7112         * modules/fdutimensat-tests (Depends-on): Likewise.
7113         * modules/futimens-tests (Depends-on): Likewise.
7114
7115 2011-11-19  Bruno Haible  <bruno@clisp.org>
7116
7117         euidaccess: Update a comment.
7118         * lib/euidaccess.c: Update comment about platforms with faccessat.
7119
7120 2011-11-19  Bruno Haible  <bruno@clisp.org>
7121
7122         openat: Fix file list.
7123         * modules/openat (Files): Remove lib/at-func.c.
7124
7125 2011-11-19  Bruno Haible  <bruno@clisp.org>
7126
7127         fstatat: Simplify.
7128         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7129         gnulib should define rpl_fstatat, there is a
7130         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7131
7132 2011-11-19  Bruno Haible  <bruno@clisp.org>
7133
7134         Ensure 'inline' can be used in tests/test-utimens-common.h.
7135         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7136         * modules/futimens-tests (configure.ac): Likewise.
7137         * modules/utimens-tests (configure.ac): Likewise.
7138         * modules/utimensat-tests (configure.ac): Likewise.
7139
7140 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7141
7142         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7143         not hash_insert0.
7144         (hash_insert_if_absent): Doc fix.
7145
7146 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7147
7148         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7149
7150 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7151
7152         test-getcwd: disambiguate exit status
7153         * tests/test-getcwd.c (test_long_name): Return 0..7.
7154         (main): Exit with an unambiguous exit status.  The old
7155         code yielded a mysterious mixture of two failure codes.
7156
7157         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7158         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7159         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7160         rpl_fstatat or fstatat.  This should fix the other problem
7161         reported by Kai Habel in
7162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7163         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7165         and I reproduced it on a Solaris 8 host we still have in production.
7166
7167 2011-11-18  Jim Meyering  <meyering@redhat.com>
7168
7169         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7170         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7171         Add a sentence to the comment.
7172         (hash_insert0): New function that simply calls hash_insert_if_absent.
7173         * lib/hash.h (hash_insert_if_absent): Declare it.
7174         (hash_insert0): Add deprecation attribute.
7175         (_GL_ATTRIBUTE_DEPRECATED): Define.
7176         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7177         not hash_insert0.
7178         * NEWS: Mention it, even though it's not really an incompatible change.
7179
7180 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7181
7182         openat: avoid compilation failure due to lack of <errno.h> inclusion
7183         * lib/openat.c: Include <errno.h>.
7184
7185 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7186
7187         * modules/getcwd (Depends-on): Add fdopendir.
7188         This fixes one of the two problems reported by Kai Habel in
7189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7190
7191         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7192         stdalign problem reported by Ian Beckwith in
7193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7194         * modules/crypto/gc-arcfour (Depends-on):
7195         Depend conditionally on crypto/arcfour.
7196         * modules/crypto/gc-arctwo (Depends-on):
7197         Depend conditionally on crypto/arctwo.
7198         * modules/crypto/gc-des (Depends-on):
7199         Depend conditionally on crypto/des.
7200         * modules/crypto/gc-hmac-md5 (Depends-on):
7201         Depend conditionally on crypto/hmac-md5.
7202         * modules/crypto/gc-hmac-sha1 (Depends-on):
7203         Depend conditionally on crypto/hmac-sha1.
7204         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7205         * modules/crypto/gc-md4 (Depends-on):
7206         Depend conditionally on crypto/md4.
7207         * modules/crypto/gc-md5 (Depends-on):
7208         Depend conditionally on crypto/md5.
7209         * modules/crypto/gc-rijndael (Depends-on):
7210         Depend conditionally on crypto/rijndael.
7211         * modules/crypto/gc-sha1 (Depends-on):
7212         Depend conditionally on crypto/sha1.
7213         * modules/crypto/gc-arcfour:
7214         * modules/crypto/gc-arctwo:
7215         * modules/crypto/gc-des:
7216         * modules/crypto/gc-hmac-md5:
7217         * modules/crypto/gc-hmac-sha1:
7218         * modules/crypto/gc-md2:
7219         * modules/crypto/gc-md4:
7220         * modules/crypto/gc-md5:
7221         * modules/crypto/gc-rijndael:
7222         * modules/crypto/gc-sha1:
7223         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7224         now that the conditional dependencies do the work for us.
7225
7226 2011-11-17  Jim Meyering  <meyering@redhat.com>
7227
7228         tests: factor st_ctime-comparison out of two headers
7229         * tests/test-utimens-common.h (ctime_compare): Define.
7230         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7231         * tests/test-lutimens.h (test_lutimens): Likewise.
7232         * tests/test-utimens.h (test_utimens): Likewise.
7233
7234         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7235         Invoke the test program via an init.sh-using wrapper.
7236         * tests/test-getcwd.sh: New file.
7237         * modules/getcwd-tests (Files): Add it.
7238         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7239
7240 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7241
7242         gitlog-to-changelog: support multi-author commits.
7243         The FSF cares about keeping track of all authors of patches to its
7244         projects, but Git doesn't provide obvious support for multi-author
7245         changesets. Consensus seems to be forming around the use of extra
7246         Signed-off-by inspired lines in the log message formatted as
7247         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7248         multi-author commits between version control systems.
7249         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7250         log message and output in standard ChangeLog multi-author format.
7251         Reported by Peter Rosin <peda@lysator.liu.se>
7252
7253 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7254             Bruno Haible  <bruno@clisp.org>
7255
7256         Fix some modules' file list.
7257         * modules/fstatat (Files): Add m4/lstat.m4.
7258         * modules/openat (Files): Likewise.
7259         * modules/unlinkat (Files): Likewise.
7260
7261 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7262
7263         maint.mk: fix tight-scope.mk generation in VPATH builds.
7264         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7265         reference with $(srcdir) so that the file is found correctly even
7266         when running `make syntax-check' in a VPATH build.
7267
7268 2011-11-13  Bruno Haible  <bruno@clisp.org>
7269             Jim Meyering  <meyering@redhat.com>
7270
7271         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7272         * tests/init.sh (compare): Remove "No differences encountered" or
7273         synonymous output from the 'diff' program.
7274
7275 2011-11-13  Bruno Haible  <bruno@clisp.org>
7276
7277         Makefile: Tweak indentation.
7278         * Makefile: Use tab as first character in every line that contains rule
7279         commands.
7280
7281 2011-11-13  Bruno Haible  <bruno@clisp.org>
7282
7283         Syntax check for copyright statements.
7284         * check-copyright: New file.
7285         * Makefile (sc_check_copyright): New rule.
7286
7287 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7288
7289         * build-aux/git-version-gen: Add --prefix to configure the tag
7290         match string.
7291
7292 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7293
7294         * build-aux/git-version-gen: Add --help and --version.
7295
7296 2011-11-12  Jim Meyering  <meyering@redhat.com>
7297
7298         revamp the other test-exclude?.sh scripts to use init.sh, too
7299         * tests/test-exclude1.sh: Use init.sh.
7300         * tests/test-exclude2.sh: Likewise.
7301         * tests/test-exclude3.sh: Likewise.
7302         * tests/test-exclude4.sh: Likewise.
7303         * tests/test-exclude5.sh: Likewise.
7304         * tests/test-exclude6.sh: Likewise.
7305         * tests/test-exclude7.sh: Likewise.
7306         * tests/test-exclude8.sh: Likewise.
7307         * modules/exclude-tests (Files): List init.sh.
7308
7309         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7310         These shell scripts ignored failure of the binary test-exclude,
7311         so making the latter return 77 didn't cause them to be skipped.
7312         * tests/test-exclude5.sh: Exit with test-exclude's error status
7313         when that program fails.  Revamp to use init.sh.
7314         * tests/test-exclude2.sh: Likewise.
7315
7316         test-exclude: fix a typo
7317         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7318
7319 2011-11-11  Bruno Haible  <bruno@clisp.org>
7320
7321         obstack: Fix compilation error on MSVC 9.
7322         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7323
7324 2011-11-11  Jim Meyering  <meyering@redhat.com>
7325
7326         test-exclude: skip tests rather than failing on deficient systems
7327         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7328         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7329         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7330         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7331
7332 2011-11-10  Bruno Haible  <bruno@clisp.org>
7333
7334         ptsname_r test: Avoid gcc warning on glibc systems.
7335         * tests/test-ptsname_r.c (null_ptr): New function.
7336         (test_errors): Use it.
7337
7338 2011-11-10  Bruno Haible  <bruno@clisp.org>
7339
7340         ptsname_r: Avoid compilation error on OSF/1 5.1.
7341         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7343         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7344         function is not declared or incompatibly declared.
7345         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7346         * modules/ptsname_r (Depends-on, configure.ac): Update.
7347         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7348
7349 2011-11-10  Bruno Haible  <bruno@clisp.org>
7350
7351         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7352         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7353         When cross-compiling, guess yes on all platforms except AIX.
7354         Reported by Ludovic Courtès <ludo@gnu.org>.
7355
7356 2011-11-09  Bruno Haible  <bruno@clisp.org>
7357
7358         ptsname_r tests: Fix bugs.
7359         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7360         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7361
7362 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7363
7364         fstatat: work with cross-compilation
7365         Problem reported by Ludovic Courtès in
7366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7367         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7368         "cross-compiling" and assume the bug is present.  Replace
7369         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7370         an inverted sense, to be more conservative about our assumptions.
7371         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7372
7373 2011-11-09  Bruno Haible  <bruno@clisp.org>
7374
7375         Improve MODULES.html output.
7376         * modules/mkfifoat (Description): Use the word "function".
7377         * modules/readlinkat (Description): Likewise.
7378         * modules/symlinkat (Description): Likewise.
7379
7380 2011-11-09  Eric Blake  <eblake@redhat.com>
7381
7382         ptsname_r-tests: new test module
7383         * modules/ptsname_r-tests: New module.
7384         * tests/test-ptsname_r.c: New file.
7385
7386         ptsname_r: new module
7387         * modules/ptsname_r: New module.
7388         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7389         * lib/ptsname.c (__ptsname_r): Split...
7390         * lib/ptsname_r.c: ...into new file.
7391         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7392         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7393         * modules/stdlib (Makefile.am): Substitute witnesses.
7394         * lib/stdlib.in.h (ptsname_r): Declare it.
7395         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7396         * MODULES.html.sh (Misc): Likewise.
7397         * modules/ptsname (Depends-on): Alter dependency.
7398         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7399
7400 2011-11-09  Jim Meyering  <meyering@redhat.com>
7401
7402         announce-gen: be more concise when there's only one URL+tarball
7403         * build-aux/announce-gen (get_tool_versions): When you distribute
7404         only one type of tarball, combine the first two "Here are..."
7405         sections and make the key-checking grammar independent of
7406         how many tarballs there are.
7407
7408 2011-11-09  Eric Blake  <eblake@redhat.com>
7409
7410         openpty: provide a stub on mingw
7411         * lib/pty.in.h (includes): Provide forward declarations.
7412         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7413
7414         raise: fix mingw handling of SIGPIPE
7415         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7416
7417 2011-11-08  Bruno Haible  <bruno@clisp.org>
7418
7419         More conditional dependencies.
7420         * modules/faccessat (Depends-on): Add conditions.
7421         * modules/fchmodat (Depends-on): Likewise.
7422         * modules/fchownat (Depends-on): Likewise.
7423         * modules/fstatat (Depends-on): Likewise.
7424         * modules/mkfifoat (Depends-on): Likewise.
7425         * modules/readlinkat (Depends-on): Likewise.
7426         * modules/symlinkat (Depends-on): Likewise.
7427         * modules/unlinkat (Depends-on): Likewise.
7428         * modules/utimensat (Depends-on): Likewise.
7429         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7430         * modules/linkat (Depends-on): Refine the conditions.
7431         * modules/renameat (Depends-on): Likewise.
7432
7433 2011-11-08  Bruno Haible  <bruno@clisp.org>
7434
7435         faccessat: Move AC_LIBOBJ invocation to module description.
7436         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7437         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7438         invocation from here...
7439         * modules/faccessat (configure.ac): ... to here. Invoke
7440         gl_PREREQ_FACCESSAT.
7441
7442 2011-11-08  Bruno Haible  <bruno@clisp.org>
7443
7444         faccessat: Simplify autoconf macro.
7445         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7446         gl_FUNC_EUIDACCESS.
7447
7448 2011-11-08  Bruno Haible  <bruno@clisp.org>
7449
7450         renameat: Fix dependencies.
7451         * modules/renameat (Depends-on): Add stdbool.
7452
7453 2011-11-08  Bruno Haible  <bruno@clisp.org>
7454
7455         mkfifoat: Fix module description.
7456         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7457         not gl_UNISTD_MODULE_INDICATOR.
7458
7459 2011-11-08  Bruno Haible  <bruno@clisp.org>
7460
7461         fstatat: Remove unused dependency.
7462         * modules/fstatat (Depends-on): Remove fstat.
7463
7464 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7465
7466         GNUmakefile: behave when Makefile is missing.
7467         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7468
7469 2011-11-08  Bruno Haible  <bruno@clisp.org>
7470
7471         openat: Conditionalize dependencies.
7472         * lib/openat.c: Reduce the scope of some #includes.
7473         * modules/openat (Depends-on): Add conditions.
7474
7475 2011-11-07  Jim Meyering  <meyering@redhat.com>
7476
7477         maint.mk: extract GPG key ID without using a temporary file
7478         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7479         without using a temporary file.  Based on a suggestion from Werner Koch
7480         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7481
7482 2011-11-07  Eric Blake  <eblake@redhat.com>
7483
7484         grantpt: fix typo
7485         * lib/stdlib.in.h (grantpt): Check correct function.
7486
7487         maint.mk: silence new syntax check
7488         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7489
7490 2011-11-06  Bruno Haible  <bruno@clisp.org>
7491
7492         Doc about floating-point and math API.
7493         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7494         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7495
7496 2011-11-06  Bruno Haible  <bruno@clisp.org>
7497
7498         stdalign tests: Skip the test when compiled by Sun C.
7499         * tests/test-stdalign.c (main): Skip the test on Sun C.
7500
7501 2011-11-06  Bruno Haible  <bruno@clisp.org>
7502
7503         ansi-c++-opt: Complete the 2011-06-05 change.
7504         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7505         does not support namespaces, set the variable to "no", not to ":".
7506
7507 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7508
7509         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7510
7511 2011-11-06  Bruno Haible  <bruno@clisp.org>
7512
7513         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7514         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7515         (minus_zerol) [HP-UX]: New macro.
7516         (unary_minus) [HP-UX]: New function.
7517         (copysignl) [HP-UX]: Use unary_minus function.
7518
7519 2011-11-06  Bruno Haible  <bruno@clisp.org>
7520
7521         ldexp, ldexpf, ldexpl: Enhance tests.
7522         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7523         and tests/test-ldexpl.c.
7524         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7525         LDEXP, MIN_EXP, MAX_EXP): New macros.
7526         Include test-ldexp.h.
7527         (main): Just call test_function.
7528         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7529         infinity.h, nan.h.
7530         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7531         MAX_EXP): New macros.
7532         Include test-ldexp.h.
7533         (x, y): Remove variables.
7534         (main): Just call test_function.
7535         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7536         infinity.h, nan.h.
7537         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7538         MAX_EXP): New macros.
7539         Include test-ldexp.h.
7540         (x, y): Remove variables.
7541         (main): Just call test_function.
7542         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7543         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7544         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7545         (Depends-on): Add isnand-nolibm, signbit, float.
7546         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7547         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7548         (Depends-on): Add isnanf-nolibm, signbit, float.
7549
7550 2011-11-06  Bruno Haible  <bruno@clisp.org>
7551
7552         math tests: Cosmetics.
7553         * tests/test-math-c++.cc: Reorder declarations.
7554
7555 2011-11-05  Bruno Haible  <bruno@clisp.org>
7556
7557         fma*: Simplify test.
7558         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7559         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7560
7561         Tests for module 'fmal'.
7562         * modules/fmal-tests: New file.
7563         * tests/test-fmal1.c: New file.
7564         * tests/test-fmal2.c: New file.
7565
7566         New module 'fmal'.
7567         * lib/math.in.h (fmal): New declaration.
7568         * lib/fmal.c: New file.
7569         * m4/fmal.m4: New file.
7570         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7572         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7573         REPLACE_FMAL.
7574         * modules/fmal: New file.
7575         * doc/posix-functions/fmal.texi: Mention the new module and the various
7576         bugs.
7577
7578         Tests for module 'fmaf'.
7579         * modules/fmaf-tests: New file.
7580         * tests/test-fmaf1.c: New file.
7581         * tests/test-fmaf2.c: New file.
7582
7583         New module 'fmaf'.
7584         * lib/math.in.h (fmaf): New declaration.
7585         * lib/fmaf.c: New file.
7586         * m4/fmaf.m4: New file.
7587         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7589         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7590         REPLACE_FMAF.
7591         * modules/fmaf: New file.
7592         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7593         bugs.
7594
7595         Tests for module 'fma'.
7596         * modules/fma-tests: New file.
7597         * tests/test-fma1.c: New file.
7598         * tests/test-fma1.h: New file.
7599         * tests/test-fma2.c: New file.
7600         * tests/test-fma2.h: New file.
7601
7602         New module 'fma'.
7603         * lib/math.in.h (fma): New declaration.
7604         * lib/fma.c: New file.
7605         * m4/fma.m4: New file.
7606         * m4/fegetround.m4: New file.
7607         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7609         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7610         REPLACE_FMA.
7611         * modules/fma: New file.
7612         * doc/posix-functions/fma.texi: Mention the new module and the various
7613         bugs.
7614
7615         Extend gl_MATHFUNC.
7616         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7617         Support 'void' as argument type.
7618         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7619
7620 2011-11-05  Jim Meyering  <meyering@redhat.com>
7621
7622         maint.mk: also prohibit inclusion of dirent.h without use
7623         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7624
7625 2011-11-05  Bruno Haible  <bruno@clisp.org>
7626
7627         ldexpl tests: Avoid test failure on MSVC 9.
7628         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7629         value. Needed in order to enforce the conversion from a value greater
7630         than LDBL_MAX to Infinity.
7631
7632 2011-11-05  Bruno Haible  <bruno@clisp.org>
7633
7634         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7635         * modules/at-internal: New file, extracted from modules/openat.
7636         * modules/openat-h: New file.
7637         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7638         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7639         * modules/openat (Description): Add reference to POSIX function.
7640         (Files): Remove lib/openat.h, lib/openat-proc.c.
7641         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7642         intprops, unistd.
7643         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7644         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7645         gl_FCNTL_MODULE_INDICATOR.
7646         (Include): Remove unistd.h, openat.h.
7647         * modules/areadlinkat (Files): Add lib/at-func.c.
7648         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7649         openat-die, openat-h, save-cwd.
7650         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7651         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7652         openat-die, openat-h, save-cwd, unistd.
7653         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7654         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7655         openat-h, save-cwd. Remove fcntl-h, openat.
7656         * modules/fchmodat (Files): Remove lib/openat.h.
7657         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7658         openat, stdbool, unistd.
7659         * modules/fchownat (Files): Remove lib/openat.h.
7660         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7661         openat, stdbool, sys_stat.
7662         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7663         lib/openat-proc.c.
7664         (Depends-on): Add at-internal.
7665         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7666         * modules/fstatat (Files): Remove lib/openat.h.
7667         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7668         stdbool, unistd.
7669         * modules/fts (Depends-on): Add openat-h.
7670         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7671         openat.
7672         * modules/mkdirat (Files): Remove lib/openat.h.
7673         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7674         openat, stdbool, sys_stat.
7675         * modules/mkfifoat (Files): Add lib/at-func.c.
7676         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7677         openat-h, save-cwd. Remove fcntl-h, openat.
7678         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7679         * modules/readlinkat (Files): Add lib/at-func.c.
7680         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7681         openat-h, save-cwd. Remove fcntl-h, openat.
7682         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7683         openat.
7684         * modules/selinux-at (Files): Add lib/at-func.c.
7685         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7686         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7687         * modules/symlinkat (Files): Add lib/at-func.c.
7688         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7689         openat-h, save-cwd. Remove fcntl-h, openat.
7690         * modules/unlinkat (Files): Remove lib/openat.h.
7691         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7692         stdbool.
7693         * modules/utimensat (Files): Add lib/at-func.c.
7694         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7695         openat-die, openat-h, save-cwd.
7696         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7697         * modules/fdutimensat-tests (Depends-on): Add openat.
7698         * modules/fstatat-tests (Depends-on): Add openat-h.
7699         * modules/readlinkat-tests (Depends-on): Add openat.
7700         * modules/symlinkat-tests (Depends-on): Add openat.
7701
7702 2011-11-05  Bruno Haible  <bruno@clisp.org>
7703
7704         openat: Include <stdbool.h>.
7705         * lib/openat.c: Include <stdbool.h>.
7706
7707 2011-11-04  Bruno Haible  <bruno@clisp.org>
7708
7709         fchownat, renameat, unlinkat: Fix dependencies.
7710         * modules/fchownat (Depends-on): Add fstatat.
7711         * modules/renameat (Depends-on): Likewise.
7712         * modules/unlinkat (Depends-on): Likewise.
7713
7714 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7715
7716         openat: remove direct dependency on dirent
7717         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7718         and hasn't been needed ever since fdopendir was split into its own
7719         module on 2009-08-31.
7720         * modules/openat (Depends-on): Remove dirent.
7721
7722 2011-11-04  Bruno Haible  <bruno@clisp.org>
7723
7724         renameat: Optimize code size.
7725         * modules/renameat (configure.ac): Don't compile at-func2.c if
7726         REPLACE_RENAMEAT is 1.
7727
7728 2011-11-04  Bruno Haible  <bruno@clisp.org>
7729
7730         openat tests: Fix file list.
7731         * modules/openat-tests (Files): Add tests/test-open.h.
7732
7733 2011-11-04  Bruno Haible  <bruno@clisp.org>
7734
7735         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7736         * modules/fchmodat (Depends-on): Add openat-die.
7737         * modules/fchownat (Depends-on): Likewise.
7738         * modules/linkat (Depends-on): Likewise.
7739         * modules/renameat (Depends-on): Likewise.
7740         * modules/openat (Depends-on): Add dirent.
7741
7742 2011-11-04  Jim Meyering  <meyering@redhat.com>
7743
7744         at-func*.c: fix comments
7745         * lib/at-func2.c: Correct/improve first-line comment.
7746         * lib/at-func.c: Correct grammar in first-line comment.
7747
7748 2011-11-04  Bruno Haible  <bruno@clisp.org>
7749
7750         New module 'mkdirat', split off from module 'openat'.
7751         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7752         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7753         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7754         * modules/mkdirat: New file, extracted from modules/openat.
7755         * modules/openat (Files): Remove lib/mkdirat.c.
7756         (Depends-on): Remove mkdir.
7757         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7758         (Include): Remove <sys/stat.h>.
7759         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7760         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7761         tests/test-mkdir.h.
7762         (Depends-on): Remove ignore-value.
7763         (Makefile.am): Remove rules for test-mkdirat.
7764         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7765         of module 'openat'.
7766         * NEWS: Mention the change.
7767
7768 2011-11-04  Bruno Haible  <bruno@clisp.org>
7769
7770         closedir: Avoid warning on mingw.
7771         * lib/closedir.c: Include <unistd.h>.
7772
7773 2011-11-04  Bruno Haible  <bruno@clisp.org>
7774
7775         New module 'fstatat', split off from module 'openat'.
7776         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7777         defined.
7778         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7779         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7780         gl_FUNC_FSTATAT.
7781         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7782         * modules/fstatat: New file, extracted from modules/openat.
7783         * modules/openat (Files): Remove lib/fstatat.c.
7784         (Depends-on): Remove lstat.
7785         (configure.ac): Remove AC_LIBOBJ of fstatat.
7786         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7787         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7788         tests/test-lstat.h, tests/test-stat.h.
7789         (Depends-on): Remove getcwd-lgpl.
7790         (Makefile.am): Remove rules for test-fstatat.
7791         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7792         of module 'openat'.
7793         * NEWS: Mention the change.
7794         * modules/getcwd (Depends-on): Add fstatat.
7795         * modules/linkat (Depends-on): Likewise.
7796         * modules/mkfifoat-tests (Depends-on): Likewise.
7797         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7798
7799 2011-11-03  Bruno Haible  <bruno@clisp.org>
7800
7801         New module 'unlinkat', split off from module 'openat'.
7802         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7803         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7804         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7805         * modules/unlinkat: New file, extracted from modules/openat. Correct
7806         the dependency conditions.
7807         * modules/openat (Files): Remove lib/unlinkat.c.
7808         (Depends-on): Remove rmdir, unlink.
7809         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7810         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7811         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7812         tests/test-rmdir.h, tests/test-unlink.h.
7813         (Depends-on): Remove unlinkdir.
7814         (Makefile.am): Remove rules for test-unlinkat.
7815         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7816         of module 'openat'.
7817         * NEWS: Mention the change.
7818         * modules/linkat-tests (Depends-on): Add unlinkat.
7819         * modules/mkfifoat-tests (Depends-on): Likewise.
7820         * modules/readlinkat-tests (Depends-on): Likewise.
7821
7822 2011-11-02  Bruno Haible  <bruno@clisp.org>
7823
7824         New module 'fchmodat', split off from module 'openat'.
7825         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7826         defined.
7827         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7828         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7829         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7830         * modules/fchmodat: New file, extracted from modules/openat.
7831         * modules/openat (Files): Remove lib/fchmodat.c.
7832         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7833         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7834         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7835         (Makefile.am): Remove rules for test-fchmodat.
7836         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7837         of module 'openat'.
7838         * NEWS: Mention the change.
7839
7840 2011-11-02  Jim Meyering  <meyering@redhat.com>
7841
7842         putenv: indent #definition of "environ" to placate cppi
7843         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7844
7845         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7846         Git logs are often treated as immutable, because editing them
7847         changes the SHA1 checksums of all descendants.  Thus, errors in
7848         git logs tend to stay there forever.  However, when we generate
7849         a ChangeLog file -- typically for distribution -- from that git log,
7850         we can actually make corrections in the generated file.  The key
7851         lies in recording in machine-readable/applicable form the desired
7852         corrections.  See --help for description and an example.
7853         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7854         (usage): Describe it; alphabetize option descriptions.
7855         (main): Honor the new option, carefully.
7856
7857 2011-11-01  Jim Meyering  <meyering@redhat.com>
7858
7859         gitlog-to-changelog: avoid an infloop
7860         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7861         that ends up being empty.
7862
7863 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7864
7865         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7866         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7867         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7868         contains (possibly-quoted) backslashes.  This should avoid
7869         all-too-common shell bugs if COMPLICATED contains backslashes in
7870         the "wrong" places.  Reported by David Evans in
7871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7872         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7873         because we want ASCII ranges.  Is there some reason we don't use
7874         the C locale everywhere in this script?
7875         (func_module, top level): Avoid unwanted pathname expansion when
7876         $repo_url_prefix or $repo_url_suffix_repl contain shell
7877         metacharacters like '?' and '*'.
7878
7879 2011-11-01  Bruno Haible  <bruno@clisp.org>
7880
7881         fchownat: Improve description.
7882         * modules/fchownat (Description): Add link to function.
7883
7884 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7885
7886         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7887         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7889         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7890
7891 2011-11-01  Bruno Haible  <bruno@clisp.org>
7892
7893         alignof: Avoid collision with stdalign module.
7894         * lib/alignof.h (alignof): Remove macro.
7895         * NEWS: Mention the change.
7896         Reported by Paul Eggert.
7897
7898 2011-11-01  Bruno Haible  <bruno@clisp.org>
7899
7900         New module 'fchownat', split off from module 'openat'.
7901         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7902         defined.
7903         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7904         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7905         invoke gl_FUNC_FCHOWNAT.
7906         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7907         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7908         * modules/fchownat: New file, extracted from modules/openat.
7909         * modules/openat (Files): Remove lib/fchownat.c.
7910         (Depends-on): Remove lchown.
7911         (configure.ac): Remove AC_LIBOBJ of fchownat.
7912         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7913         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7914         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7915         (Depends-on): Remove mgetgroups, usleep, stat-time.
7916         (configure.ac): Remove test for getegid.
7917         (Makefile.am): Remove rules for test-fchownat.
7918         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7919         of module 'openat'.
7920         * NEWS: Mention the change.
7921
7922 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7923
7924         stdalign: port better to MSVC and to Sun C 5.11
7925         This fixes some of the problems reported by Bruno Haible in
7926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7927         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7928         shortcomings of MSVC and of Sun C 5.11.
7929         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7930         around __declspec arg.
7931         * modules/stdalign-tests (Files): Add tests/macros.h.
7932         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7933         Include macros.h, for ASSERT.
7934         (DECLARE_ALIGNED): Remove.
7935         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7936         to catch bug), and to 1 if not (simplifies the rest of the code).
7937         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7938         (CHECK_AUTO): Remove.
7939         (CHECK_ALIGNED): Check only the alignment of the static vars,
7940         since auto var alignment isn't supported by Sun C 5.11.
7941         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7942         ASSERT failures are easier to diagnose.
7943
7944 2011-10-31  Bruno Haible  <bruno@clisp.org>
7945
7946         doc about some IRIX 5.3 problems.
7947         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7948         on IRIX 5.3.
7949         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7950         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7951         5.3.
7952         * doc/posix-functions/grantpt.texi: Likewise.
7953         * doc/posix-functions/unlockpt.texi: Likewise.
7954         * doc/posix-functions/lgamma.texi: Likewise.
7955         * doc/posix-functions/nextafter.texi: Likewise.
7956         * doc/posix-functions/remainder.texi: Likewise.
7957         * doc/posix-functions/select.texi: Mention misplaced declaration on
7958         IRIX 5.3.
7959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7960
7961 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7962
7963         gitlog-to-changelog: fix git-log invocation.
7964         git-log mishandles date strings before 1970-01-01 UTC, and there is
7965         no use to specify --since=1970-01-01 by default anyway.
7966         * build-aux/gitlog-to-changelog: By default, when no --since option
7967         was given, do not specify explicit --since option to git-log.
7968
7969 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7970
7971         gitlog-to-changelog: new option --append-dot.
7972         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7973         first non-blank line of each commit message terminated with a dot.
7974
7975 2011-10-30  Bruno Haible  <bruno@clisp.org>
7976
7977         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7978         * lib/ffsl.h: Include <config.h>.
7979         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7980
7981 2011-10-30  Jim Meyering  <meyering@redhat.com>
7982
7983         GNUmakefile: reenable "make syntax-check" for most projects
7984         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7985         build-aux variable", "syntax-check" would do nothing but succeed with
7986         the "No version control files detected..." diagnostic (unless you
7987         happened to override _build-aux via cfg.mk).
7988         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7989         to precede inclusion of maint.mk.  Otherwise, these variables would
7990         be used undefined in any project that does not override the default.
7991
7992 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7993
7994         gitlog-to-changelog: treat a message with only blank lines as empty.
7995         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7996         trailing blank lines before the code that issues a warning about an
7997         empty commit message.
7998
7999 2011-10-30  Jim Meyering  <meyering@redhat.com>
8000
8001         test-parse-datetime.c: avoid new DST-related false positive test failure
8002         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8003         based on the time/date we'll convert, not the current time.
8004         Otherwise, the moment we cross a DST boundary like today's in
8005         Europe, (CEST to CET), that offset ends up being one hour off.
8006
8007 2011-10-27  Bruno Haible  <bruno@clisp.org>
8008
8009         fstat: Tweak documentation.
8010         * modules/fstat (Description): More precise description.
8011
8012 2011-10-27  Bruno Haible  <bruno@clisp.org>
8013
8014         Update documentation regarding 'largefile' module.
8015         * doc/posix-functions/fstat.texi: Tweak wording.
8016         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8017         problems with huge directories and/or small ino_t types.
8018         * doc/posix-functions/readdir.texi: Likewise.
8019         * doc/posix-functions/rewinddir.texi: Likewise.
8020
8021 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8022
8023         maint.mk: don't maintain a second build-aux variable.
8024         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8025         depends on GNUmakefile, which already maintains a cfg.mk
8026         overridable $(_build-aux) for projects with a non-standard
8027         build-aux directory location, although without the $(srcdir)
8028         prefix.  Use that variable consistently instead of introducing a
8029         second one.  Adjust all call sites.
8030
8031 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8032
8033         Add stdalign module and use it in other modules.
8034         This is based on a previous proposal by Bruno Haible
8035         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8036
8037         stdalign: new module
8038         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8039         * modules/stdalign: New files.
8040         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8041         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8042
8043         stdalign-tests: new module
8044         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8045
8046         argp: use stdalign
8047         * lib/argp-parse.c: Include <stdalign.h>.
8048         (alignof): Remove.
8049         * modules/argp (Depends-on): Add stdalign.
8050
8051         crypto libraries: use stdalign
8052         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8053         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8054         Do not include <stdlib.h> twice, in md4.c.
8055         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8056         because we are accessing a pointer's bit-pattern, not a size.
8057         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8058         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8059         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8060         * modules/crypto/sha512: Likewise.
8061
8062         sys_socket: use stdalign, not alignof
8063         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8064         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8065
8066 2011-10-27  Bruno Haible  <bruno@clisp.org>
8067
8068         raise test: Avoid a test failure on Linux/MIPS.
8069         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8070         because 99 is a valid signal on Linux/MIPS.
8071
8072 2011-10-27  Bruno Haible  <bruno@clisp.org>
8073
8074         nonblocking tests: Fix test failure on Linux/MIPS.
8075         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8076         Set to 270000.
8077
8078 2011-10-27  Bruno Haible  <bruno@clisp.org>
8079
8080         utimensat: Work around problem on Linux/hppa.
8081         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8082         values.
8083         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8084
8085 2011-10-25  Jim Meyering  <meyering@redhat.com>
8086
8087         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8088         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8089         after symbols like NULL, size_t, etc.
8090         Reported by Alfred M. Szmidt.
8091
8092         maint.mk: exempt ENODATA from a syntax-check rule
8093         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8094         from the sc_prohibit_always-defined_macros syntax-check rule.
8095         Add a comment.  See this for more details:
8096         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8097
8098 2011-10-23  Jim Meyering  <meyering@redhat.com>
8099
8100         fts: close parent dir FD before returning from post-traversal fts_read
8101         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8102         unlink A, even though an FD open on A remained.  This is suboptimal
8103         (holding a file descriptor open longer than needed), but otherwise not
8104         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8105         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8106         that represents a real problem: it causes the removal of A to fail
8107         with e.g., "rm: cannot remove `A': Device or resource busy"
8108
8109         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8110         directory file descriptors.  After completing the final, FTS_DP,
8111         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8112         cache, but then proceeded to add a new FD to it via the subsequent
8113         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8114         final file descriptor would be closed only via fts_close's call to
8115         fd_ring_clear.  Now, it is usually closed earlier, via the final
8116         FTS_DP-returning fts_read call.
8117         * lib/fts.c (restore_initial_cwd): New function, converted from
8118         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8119         Update callers.
8120         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8121         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8122
8123 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8124             Bruno Haible  <bruno@clisp.org>
8125             Jim Meyering  <jim@meyering.net>
8126
8127         readme-release: improve safety of release prep instructions.
8128         * README-release: Don't git pull all branches when only master
8129         is needed for the release process.
8130         Run make maintainer-clean before changing trees and merging.
8131         Don't try to run ./configure right after git pull in case files
8132         that influence the bootstrap process have changed, move the
8133         ./configure step to after running ./bootstrap.
8134         Don't bootstrap "one last time"... it's the first time!
8135
8136 2011-10-22  Bruno Haible  <bruno@clisp.org>
8137
8138         errno, strerror-override: Support for MSVC 10.
8139         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8140         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8141         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8142         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8143         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8144         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8145         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8146         Assign values compatible with MSVC 10.
8147         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8148         New macros.
8149         (GNULIB_defined_EWINSOCK): New macro.
8150         * lib/strerror-override.c (strerror_override): Update accordingly.
8151         * lib/strerror-override.h: Likewise.
8152         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8153         longer equal to the corresponding errno value.
8154         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8155
8156 2011-10-22  Bruno Haible  <bruno@clisp.org>
8157
8158         perror: Recognize when test program crashes.
8159         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8160         strerror, set gl_cv_func_perror_works to no.
8161         Reported by Daniel Richard G. <skunk@iskunk.org>.
8162
8163         perror: Fix indentation.
8164         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8165
8166 2011-10-22  Bruno Haible  <bruno@clisp.org>
8167
8168         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8169         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8170         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8171         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8172         functions, not as a macro.
8173         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8174         macros.
8175         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8176         absence of macro.
8177         Suggested by Eric Blake.
8178         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8179
8180 2011-10-21  Bruno Haible  <bruno@clisp.org>
8181
8182         relocatable-prog-wrapper: Don't leave object files behind.
8183         * build-aux/install-reloc: Re-synchronize list of .o files to be
8184         removed with list of compilation units.
8185
8186 2011-10-20  Bruno Haible  <bruno@clisp.org>
8187
8188         openpty, posix_openpt: Remove code duplication.
8189         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8190         * lib/openpty.c: Include <stdlib.h>.
8191         (openpty): Use posix_openpt on all platforms except IRIX.
8192         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8193
8194 2011-10-20  Bruno Haible  <bruno@clisp.org>
8195
8196         unlockpt: Detect invalid argument.
8197         * lib/unlockpt.c: Include <fcntl.h>.
8198         (unlockpt): Check whether fd is valid, using fcntl().
8199         * modules/unlockpt (Depends-on): Add fcntl-h.
8200
8201 2011-10-20  Bruno Haible  <bruno@clisp.org>
8202
8203         openpty: Avoid compilation error on AIX 6.1.
8204         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8205
8206 2011-10-20  Bruno Haible  <bruno@clisp.org>
8207
8208         posix_openpt: Support for OpenBSD.
8209         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8210         (posix_openpt) [OpenBSD]: New code.
8211         * lib/grantpt.c: Include <fcntl.h>.
8212         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8213         * modules/grantpt (Depends-on): Add fcntl-h.
8214
8215 2011-10-20  Bruno Haible  <bruno@clisp.org>
8216
8217         posix_openpt test: Coding style.
8218         * tests/test-posix_openpt.c: Use GNU coding style.
8219
8220 2011-10-20  Bruno Haible  <bruno@clisp.org>
8221
8222         grantpt: Support --avoid=pt_chown.
8223         * modules/grantpt (Files): Add lib/pty-private.h.
8224
8225 2011-10-20  Bruno Haible  <bruno@clisp.org>
8226
8227         posix_openpt: Fix autoconf macro.
8228         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8229         unneeded check for _getpty.
8230
8231 2011-10-20  Bruno Haible  <bruno@clisp.org>
8232
8233         openpty: Update comments.
8234         * lib/openpty.c: Add comments about Minix.
8235
8236 2011-10-19  Eric Blake  <eblake@redhat.com>
8237
8238         openpty: relax license
8239         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8240
8241         pt_chown: use configmake to simplify build
8242         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8243
8244         ptsname and others: relax license
8245         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8246         * modules/unlockpt (License): Likewise.
8247         * modules/pt_chown (License): Likewise.
8248         * modules/ptsname (License): Likewise.
8249         * modules/ttyname_r (License): Likewise.
8250
8251 2011-10-19  Jim Meyering  <meyering@redhat.com>
8252
8253         posix_openpt: remove spurious #endif
8254         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8255
8256 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8257
8258         maint.mk: Respect $(build_aux) in web-manual rule.
8259         * top/maint.mk (web-manual): Find gen-announce script in user's
8260         $(build_aux) directory instead of hard-coding 'build-aux'.
8261
8262 2011-10-19  Bruno Haible  <bruno@clisp.org>
8263
8264         posix_openpt: Fix compilation error.
8265         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8266         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8267         Mention the openpty module as an alternative.
8268
8269 2011-10-19  Bruno Haible  <bruno@clisp.org>
8270
8271         Support for old NeXTstep 3.3 frexp().
8272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8273         execution time of the test to 5 seconds.
8274         Reported by Daniel Richard G. <skunk@iskunk.org>.
8275
8276 2011-10-19  Bruno Haible  <bruno@clisp.org>
8277
8278         Support for old NeXTstep 3.3 sed.
8279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8280         part, use /.../, not \|...|. Escape periods in the header file name.
8281         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8282         Reported by Daniel Richard G. <skunk@iskunk.org>.
8283
8284 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8285
8286         Support for old NeXTstep 3.3 gcc.
8287         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8288         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8289         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8290         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8291         * lib/regex.h (_Restrict_arr_): Likewise.
8292         * lib/regex_internal.h (re_token_t): Likewise.
8293         * lib/regexec.c (check_node_accept_bytes): Likewise.
8294         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8295
8296 2011-10-18  Eric Blake  <eblake@redhat.com>
8297
8298         posix_openpt: new module
8299         * modules/posix_openpt: New module.
8300         * m4/posix_openpt.m4: New file.
8301         * lib/posix_openpt.c: Likewise.
8302         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8303         (gl_STDLIB_H_DEFAULTS): Set defaults.
8304         * modules/stdlib (Makefile.am): Substitute macros.
8305         * lib/stdlib.in.h (posix_openpt): Declare.
8306         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8307         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8308         * modules/posix_openpt-tests: New test module.
8309         * tests/test-posix_openpt.c: New test.
8310
8311 2011-10-15  Bruno Haible  <bruno@clisp.org>
8312
8313         xstrtoll: Fix compilation failure.
8314         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8315         from lib/strtol.c.
8316         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8317         some platforms.
8318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8319
8320 2011-10-15  Bruno Haible  <bruno@clisp.org>
8321
8322         vasnprintf: Optimize bit search operation.
8323         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8325         gl_DOUBLE_EXPONENT_LOCATION.
8326         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8327         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8328         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8329         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8330         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8331         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8332         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8333         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8334         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8335
8336 2011-10-15  Bruno Haible  <bruno@clisp.org>
8337
8338         vasnprintf: Fix comments.
8339         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8340
8341 2011-10-14  Bruno Haible  <bruno@clisp.org>
8342
8343         Tests for module 'integer_length_ll'.
8344         * modules/integer_length_ll-tests: New file.
8345         * tests/test-integer_length_ll.c: New file.
8346
8347         New module 'integer_length_ll'.
8348         * lib/integer_length_ll.c: New file.
8349         * modules/integer_length_ll: New file.
8350
8351 2011-10-14  Bruno Haible  <bruno@clisp.org>
8352
8353         Tests for module 'integer_length_l'.
8354         * modules/integer_length_l-tests: New file.
8355         * tests/test-integer_length_l.c: New file.
8356
8357         New module 'integer_length_l'.
8358         * lib/integer_length_l.c: New file.
8359         * modules/integer_length_l: New file.
8360
8361 2011-10-14  Bruno Haible  <bruno@clisp.org>
8362
8363         Tests for module 'integer_length'.
8364         * modules/integer_length-tests: New file.
8365         * tests/test-integer_length.c: New file.
8366
8367         New module 'integer_length'.
8368         * lib/integer_length.h: New file.
8369         * lib/integer_length.c: New file.
8370         * modules/integer_length: New file.
8371
8372 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8373
8374         popen: Fix dependency conditions.
8375         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8376
8377 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8378
8379         perror: Fix autoconf test.
8380         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8381         <stdlib.h> and <string.h>.
8382
8383 2011-10-14  Bruno Haible  <bruno@clisp.org>
8384
8385         ffsl: Optimize on 64-bit platforms.
8386         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8387         unrolling.
8388
8389 2011-10-13  Bruno Haible  <bruno@clisp.org>
8390
8391         ffsl: Optimize on 32-bit platforms.
8392         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8393         use ffs() without a loop.
8394
8395         ffsl, ffsll: Optimize for GCC.
8396         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8397         * lib/ffsl.c (GCC_BUILTIN): New macro.
8398         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8399
8400 2011-10-13  Bruno Haible  <bruno@clisp.org>
8401
8402         ffs, bcopy, memset: Support symbol renaming via config.h.
8403         * lib/ffs.c: Include <config.h>.
8404         * lib/bcopy.c: Likewise.
8405         * lib/memset.c: Likewise.
8406
8407 2011-10-10  Bruno Haible  <bruno@clisp.org>
8408
8409         atanl: Simplify for platforms where 'long double' == 'double'.
8410         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8411         alternative implementation.
8412         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8413         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8414         * modules/atanl (Depends-on): Add atan. Update conditions.
8415
8416 2011-10-10  Bruno Haible  <bruno@clisp.org>
8417
8418         acosl: Simplify for platforms where 'long double' == 'double'.
8419         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8420         alternative implementation.
8421         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8422         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8423         * modules/acosl (Depends-on): Add acos. Update conditions.
8424
8425 2011-10-10  Bruno Haible  <bruno@clisp.org>
8426
8427         asinl: Simplify for platforms where 'long double' == 'double'.
8428         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8429         alternative implementation.
8430         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8431         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8432         * modules/asinl (Depends-on): Add asin. Update conditions.
8433
8434 2011-10-10  Bruno Haible  <bruno@clisp.org>
8435
8436         tanl: Simplify for platforms where 'long double' == 'double'.
8437         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8438         implementation.
8439         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8440         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8441         * modules/tanl (Depends-on): Add tan. Update conditions.
8442         (configure.ac): Don't compile trigl.c if
8443         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8444
8445 2011-10-10  Bruno Haible  <bruno@clisp.org>
8446
8447         cosl: Simplify for platforms where 'long double' == 'double'.
8448         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8449         implementation.
8450         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8451         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8452         * modules/cosl (Depends-on): Add cos. Update conditions.
8453         (configure.ac): Don't compile sincosl.c and trigl.c if
8454         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8455
8456 2011-10-10  Bruno Haible  <bruno@clisp.org>
8457
8458         sinl: Simplify for platforms where 'long double' == 'double'.
8459         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8460         implementation.
8461         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8462         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8463         * modules/sinl (Depends-on): Add sin. Update conditions.
8464         (configure.ac): Don't compile sincosl.c and trigl.c if
8465         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8466
8467 2011-10-10  Bruno Haible  <bruno@clisp.org>
8468
8469         logl: Simplify for platforms where 'long double' == 'double'.
8470         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8471         implementation.
8472         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8473         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8474         * modules/logl (Depends-on): Add log. Update conditions.
8475
8476 2011-10-10  Bruno Haible  <bruno@clisp.org>
8477
8478         expl: Simplify for platforms where 'long double' == 'double'.
8479         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8480         implementation.
8481         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8482         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8483         * modules/expl (Depends-on): Add exp. Update conditions.
8484
8485 2011-10-10  Bruno Haible  <bruno@clisp.org>
8486
8487         sqrtl: Simplify for platforms where 'long double' == 'double'.
8488         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8489         alternative implementation.
8490         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8491         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8492         * modules/sqrtl (Depends-on): Update conditions.
8493
8494 2011-10-10  Bruno Haible  <bruno@clisp.org>
8495
8496         ldexpl: Simplify for platforms where 'long double' == 'double'.
8497         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8498         alternative implementation.
8499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8500         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8501         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8502
8503 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8504
8505         ffsll: set correct witness
8506         * modules/ffsll (configure.ac): Fix typo.
8507
8508 2011-10-10  Bruno Haible  <bruno@clisp.org>
8509
8510         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8511         * lib/printf-frexpl.c: Include <config.h>.
8512         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8513         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8514         second time.
8515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8516         gl_LONG_DOUBLE_VS_DOUBLE.
8517         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8518         conditions.
8519
8520 2011-10-10  Bruno Haible  <bruno@clisp.org>
8521
8522         frexpl: Simplify for platforms where 'long double' == 'double'.
8523         * lib/frexpl.c: Include <config.h>.
8524         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8525         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8526         time.
8527         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8528         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8529         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8530         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8531         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8532         conditions.
8533
8534 2011-10-10  Jim Meyering  <meyering@redhat.com>
8535
8536         test-renameat: don't leave behind a temporary file
8537         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8538           ERROR: files left in build directory after distclean:
8539           ./gltests/test-renameat.too
8540           make[1]: *** [distcleancheck] Error 1
8541         Reported by Tom G. Christensen.
8542
8543 2011-10-09  Bruno Haible  <bruno@clisp.org>
8544
8545         rint: Determine RINT_LIBM correctly on AIX 7.
8546         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8547         directly, not only through a function pointer. Also accept an optional
8548         4th argument with extra code.
8549         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8550         rintf() call by gcc when optimizing.
8551
8552         mathfunc.m4: Refactor.
8553         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8554         m4 variable.
8555
8556 2011-10-09  Bruno Haible  <bruno@clisp.org>
8557
8558         rintl: Simplify for platforms where 'long double' == 'double'.
8559         * lib/rintl.c: Include <config.h>.
8560         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8561         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8562         time.
8563         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8564         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8565         * modules/rintl (Depends-on): Add rint. Update conditions.
8566
8567 2011-10-09  Bruno Haible  <bruno@clisp.org>
8568
8569         roundl: Simplify for platforms where 'long double' == 'double'.
8570         * lib/roundl.c: Include <config.h>.
8571         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8572         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8573         time.
8574         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8575         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8576         * modules/roundl (Depends-on): Add round. Update conditions.
8577
8578 2011-10-09  Bruno Haible  <bruno@clisp.org>
8579
8580         truncl: Simplify for platforms where 'long double' == 'double'.
8581         * lib/truncl.c: Include <config.h>.
8582         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8583         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8584         time.
8585         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8586         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8587         * modules/truncl (Depends-on): Add trunc. Update conditions.
8588
8589 2011-10-09  Bruno Haible  <bruno@clisp.org>
8590
8591         ceill: Simplify for platforms where 'long double' == 'double'.
8592         * lib/ceill.c: Include <config.h>.
8593         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8594         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8595         time.
8596         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8597         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8598         * modules/ceill (Depends-on): Add ceil. Update conditions.
8599
8600 2011-10-09  Bruno Haible  <bruno@clisp.org>
8601
8602         floorl: Simplify for platforms where 'long double' == 'double'.
8603         * lib/floorl.c: Include <config.h>.
8604         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8605         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8606         time.
8607         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8608         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8609         * modules/floorl (Depends-on): Add floor. Update conditions.
8610
8611 2011-10-09  Bruno Haible  <bruno@clisp.org>
8612
8613         rint: Fix ordering constraints.
8614         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8615         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8616         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8617
8618 2011-10-09  Bruno Haible  <bruno@clisp.org>
8619
8620         copysignl: Simplify for platforms where 'long double' == 'double'.
8621         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8622         alternative.
8623         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8624         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8625         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8626
8627 2011-10-09  Bruno Haible  <bruno@clisp.org>
8628
8629         Tests for module 'rintl'.
8630         * modules/rintl-tests: New file.
8631         * tests/test-rintl.c: New file.
8632
8633         New module 'rintl'.
8634         * lib/math.in.h (rintl): New declaration.
8635         * lib/rintl.c: New file.
8636         * m4/rintl.m4: New file.
8637         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8639         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8640         * modules/rintl: New file.
8641         * tests/test-math-c++.cc: Check the declaration of rintl.
8642         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8643         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8644         * doc/posix-functions/rintl.texi: Mention the new module.
8645
8646 2011-10-09  Bruno Haible  <bruno@clisp.org>
8647
8648         Tests for module 'rintf'.
8649         * modules/rintf-tests: New file.
8650         * tests/test-rintf.c: New file.
8651
8652         New module 'rintf'.
8653         * lib/math.in.h (rintf): New declaration.
8654         * lib/rintf.c: New file.
8655         * m4/rintf.m4: New file.
8656         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8658         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8659         * modules/rintf: New file.
8660         * tests/test-math-c++.cc: Check the declaration of rintf.
8661         * doc/posix-functions/rintf.texi: Mention the new module.
8662
8663 2011-10-09  Bruno Haible  <bruno@clisp.org>
8664
8665         rint: Support for MSVC.
8666         * lib/math.in.h (rint): New declaration.
8667         * lib/rint.c: New file.
8668         * m4/rint.m4: New file.
8669         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8671         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8672         * modules/rint (Description): Fix.
8673         (Files): Add lib/rint.c, m4/rint.m4.
8674         (Depends-on): Add math.
8675         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8676         gl_MATH_MODULE_INDICATOR.
8677         * tests/test-math-c++.cc: Check the declaration of rint.
8678         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8679         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8680         * doc/posix-functions/rint.texi: Mention the replacement provided by
8681         the module.
8682
8683         rint tests: More tests.
8684         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8685         minus-zero.h, infinity.h, nan.h.
8686         (main): Skip the test if the current rounding mode is not standard. Add
8687         tests for negative numbers, minus zero, infinity, NaN.
8688         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8689         tests/nan.h.
8690         (Depends-on): Add isnand-nolibm.
8691
8692 2011-10-09  Bruno Haible  <bruno@clisp.org>
8693
8694         Tests for module 'copysignl'.
8695         * modules/copysignl-tests: New file.
8696         * tests/test-copysignl.c: New file.
8697
8698         New module 'copysignl'.
8699         * lib/math.in.h (copysignl): New declaration.
8700         * lib/copysignl.c: New file.
8701         * m4/copysignl.m4: New file.
8702         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8704         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8705         HAVE_COPYSIGNL.
8706         * modules/copysignl: New file.
8707         * tests/test-math-c++.cc: Check the declaration of copysignl.
8708         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8709         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8710         * doc/posix-functions/copysignl.texi: Mention the new module.
8711
8712 2011-10-09  Bruno Haible  <bruno@clisp.org>
8713
8714         Tests for module 'copysignf'.
8715         * modules/copysignf-tests: New file.
8716         * tests/test-copysignf.c: New file.
8717
8718         New module 'copysignf'.
8719         * lib/math.in.h (copysignf): New declaration.
8720         * lib/copysignf.c: New file.
8721         * m4/copysignf.m4: New file.
8722         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8724         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8725         HAVE_COPYSIGNF.
8726         * modules/copysignf: New file.
8727         * tests/test-math-c++.cc: Check the declaration of copysignf.
8728         * doc/posix-functions/copysignf.texi: Mention the new module.
8729
8730 2011-10-09  Bruno Haible  <bruno@clisp.org>
8731
8732         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8733         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8735         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8737         gl_SIGNAL_H_DEFAULTS.
8738
8739 2011-10-09  Bruno Haible  <bruno@clisp.org>
8740
8741         poll: Make macro safer.
8742         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8743         ac_cv_header_poll_h is not set.
8744
8745 2011-10-09  Bruno Haible  <bruno@clisp.org>
8746
8747         copysign: Provide replacement.
8748         * lib/math.in.h (copysign): New declaration.
8749         * lib/copysign.c: New file.
8750         * m4/copysign.m4: New file.
8751         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8753         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8754         HAVE_COPYSIGN.
8755         * modules/copysign (Description): Clarify.
8756         (Files): Add lib/copysign.c, m4/copysign.m4.
8757         (Depends-on): Add math, signbit.
8758         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8759         gl_MATH_MODULE_INDICATOR.
8760         * tests/test-math-c++.cc: Check the declaration of copysign.
8761         * doc/posix-functions/copysign.texi: Mention the effects of the module
8762         on Minix and MSVC.
8763
8764 2011-10-09  Bruno Haible  <bruno@clisp.org>
8765
8766         isinf: Ensure macro on AIX 5.1.
8767         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8768         macro.
8769         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8770
8771 2011-10-09  Bruno Haible  <bruno@clisp.org>
8772
8773         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8774         * modules/snprintf-posix-tests (configure.ac): Require
8775         gl_LONG_DOUBLE_VS_DOUBLE.
8776         * modules/sprintf-posix-tests (configure.ac): Likewise.
8777         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8778         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8779         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8780         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8781         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8782         tests on platforms where 'long double' is the same as 'double'.
8783         * tests/test-sprintf-posix.h (test_function): Likewise.
8784         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8785         * tests/test-vasprintf-posix.c (test_function): Likewise.
8786
8787         *printf: Fix for platforms where 'long double' == 'double'.
8788         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8789         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8790         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8791         * modules/fprintf-posix (Files): Likewise.
8792         * modules/obstack-printf-posix (Files): Likewise.
8793         * modules/snprintf-posix (Files): Likewise.
8794         * modules/sprintf-posix (Files): Likewise.
8795         * modules/vasnprintf (Files): Likewise.
8796         * modules/vasnprintf-posix (Files): Likewise.
8797         * modules/vasprintf-posix (Files): Likewise.
8798         * modules/vdprintf-posix (Files): Likewise.
8799         * modules/vfprintf-posix (Files): Likewise.
8800         * modules/vsnprintf-posix (Files): Likewise.
8801         * modules/vsprintf-posix (Files): Likewise.
8802         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8803         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8804         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8805         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8806         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8807         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8808         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8809
8810         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8811         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8812         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8813         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8814         'long double'.
8815         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8816
8817         isinf: Fix for platforms where 'long double' == 'double'.
8818         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8819         Don't blindly assume 80-bit 'long double'.
8820
8821         isfinite: Fix for platforms where 'long double' == 'double'.
8822         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8823         Don't blindly assume 80-bit 'long double'.
8824
8825         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8826         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8827         * modules/isfinite-tests (configure.ac): Require
8828         gl_LONG_DOUBLE_VS_DOUBLE.
8829         * modules/isinf-tests (configure.ac): Likewise.
8830         * modules/isnan-tests (configure.ac): Likewise.
8831         * modules/isnanl-tests (configure.ac): Likewise.
8832         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8833         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8834         tests on platforms where 'long double' is the same as 'double'.
8835         * tests/test-isinf.c (test_isinfl): Likewise.
8836         * tests/test-isnan.c (test_long_double): Likewise.
8837         * tests/test-isnanl.h (main): Likewise.
8838
8839 2011-10-08  Bruno Haible  <bruno@clisp.org>
8840
8841         Tests for module 'tanhf'.
8842         * modules/tanhf-tests: New file.
8843         * tests/test-tanhf.c: New file.
8844
8845         New module 'tanhf'.
8846         * lib/math.in.h (tanhf): New declaration.
8847         * lib/tanhf.c: New file.
8848         * m4/tanhf.m4: New file.
8849         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8851         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8852         * modules/tanhf: New file.
8853         * tests/test-math-c++.cc: Check the declaration of tanhf.
8854         * doc/posix-functions/tanhf.texi: Mention the new module.
8855
8856         tanh: Use a .m4 file.
8857         * m4/tanh.m4: New file.
8858         * modules/tanh (Files): Add it.
8859         (configure.ac): Just invoke gl_FUNC_TANH.
8860
8861 2011-10-08  Bruno Haible  <bruno@clisp.org>
8862
8863         Tests for module 'coshf'.
8864         * modules/coshf-tests: New file.
8865         * tests/test-coshf.c: New file.
8866
8867         New module 'coshf'.
8868         * lib/math.in.h (coshf): New declaration.
8869         * lib/coshf.c: New file.
8870         * m4/coshf.m4: New file.
8871         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8873         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8874         * modules/coshf: New file.
8875         * tests/test-math-c++.cc: Check the declaration of coshf.
8876         * doc/posix-functions/coshf.texi: Mention the new module.
8877
8878         cosh: Use a .m4 file.
8879         * m4/cosh.m4: New file.
8880         * modules/cosh (Files): Add it.
8881         (configure.ac): Just invoke gl_FUNC_COSH.
8882
8883 2011-10-08  Bruno Haible  <bruno@clisp.org>
8884
8885         Tests for module 'sinhf'.
8886         * modules/sinhf-tests: New file.
8887         * tests/test-sinhf.c: New file.
8888
8889         New module 'sinhf'.
8890         * lib/math.in.h (sinhf): New declaration.
8891         * lib/sinhf.c: New file.
8892         * m4/sinhf.m4: New file.
8893         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8895         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8896         * modules/sinhf: New file.
8897         * tests/test-math-c++.cc: Check the declaration of sinhf.
8898         * doc/posix-functions/sinhf.texi: Mention the new module.
8899
8900         sinh: Use a .m4 file.
8901         * m4/sinh.m4: New file.
8902         * modules/sinh (Files): Add it.
8903         (configure.ac): Just invoke gl_FUNC_SINH.
8904
8905 2011-10-08  Bruno Haible  <bruno@clisp.org>
8906
8907         Tests for module 'atan2f'.
8908         * modules/atan2f-tests: New file.
8909         * tests/test-atan2f.c: New file.
8910
8911         New module 'atan2f'.
8912         * lib/math.in.h (atan2f): New declaration.
8913         * lib/atan2f.c: New file.
8914         * m4/atan2f.m4: New file.
8915         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8917         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8918         * modules/atan2f: New file.
8919         * tests/test-math-c++.cc: Check the declaration of atan2f.
8920         * doc/posix-functions/atan2f.texi: Mention the new module.
8921
8922         atan2: Use a .m4 file.
8923         * m4/atan2.m4: New file.
8924         * modules/atan2 (Files): Add it.
8925         (configure.ac): Just invoke gl_FUNC_ATAN2.
8926
8927 2011-10-08  Bruno Haible  <bruno@clisp.org>
8928
8929         Tests for module 'atanf'.
8930         * modules/atanf-tests: New file.
8931         * tests/test-atanf.c: New file.
8932
8933         New module 'atanf'.
8934         * lib/math.in.h (atanf): New declaration.
8935         * lib/atanf.c: New file.
8936         * m4/atanf.m4: New file.
8937         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8939         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8940         * modules/atanf: New file.
8941         * tests/test-math-c++.cc: Check the declaration of atanf.
8942         * doc/posix-functions/atanf.texi: Mention the new module.
8943
8944         atan: Use a .m4 file.
8945         * m4/atan.m4: New file.
8946         * modules/atan (Files): Add it.
8947         (configure.ac): Just invoke gl_FUNC_ATAN.
8948
8949 2011-10-08  Bruno Haible  <bruno@clisp.org>
8950
8951         Tests for module 'acosf'.
8952         * modules/acosf-tests: New file.
8953         * tests/test-acosf.c: New file.
8954
8955         New module 'acosf'.
8956         * lib/math.in.h (acosf): New declaration.
8957         * lib/acosf.c: New file.
8958         * m4/acosf.m4: New file.
8959         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8961         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8962         * modules/acosf: New file.
8963         * tests/test-math-c++.cc: Check the declaration of acosf.
8964         * doc/posix-functions/acosf.texi: Mention the new module.
8965
8966         acos: Use a .m4 file.
8967         * m4/acos.m4: New file.
8968         * modules/acos (Files): Add it.
8969         (configure.ac): Just invoke gl_FUNC_ACOS.
8970
8971 2011-10-08  Bruno Haible  <bruno@clisp.org>
8972
8973         Tests for module 'asinf'.
8974         * modules/asinf-tests: New file.
8975         * tests/test-asinf.c: New file.
8976
8977         New module 'asinf'.
8978         * lib/math.in.h (asinf): New declaration.
8979         * lib/asinf.c: New file.
8980         * m4/asinf.m4: New file.
8981         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8983         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8984         * modules/asinf: New file.
8985         * tests/test-math-c++.cc: Check the declaration of asinf.
8986         * doc/posix-functions/asinf.texi: Mention the new module.
8987
8988         asin: Use a .m4 file.
8989         * m4/asin.m4: New file.
8990         * modules/asin (Files): Add it.
8991         (configure.ac): Just invoke gl_FUNC_ASIN.
8992
8993 2011-10-08  Bruno Haible  <bruno@clisp.org>
8994
8995         Tests for module 'tanf'.
8996         * modules/tanf-tests: New file.
8997         * tests/test-tanf.c: New file.
8998
8999         New module 'tanf'.
9000         * lib/math.in.h (tanf): New declaration.
9001         * lib/tanf.c: New file.
9002         * m4/tanf.m4: New file.
9003         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9005         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9006         * modules/tanf: New file.
9007         * tests/test-math-c++.cc: Check the declaration of tanf.
9008         * doc/posix-functions/tanf.texi: Mention the new module.
9009
9010         tan: Use a .m4 file.
9011         * m4/tan.m4: New file.
9012         * modules/tan (Files): Add it.
9013         (configure.ac): Just invoke gl_FUNC_TAN.
9014
9015 2011-10-08  Bruno Haible  <bruno@clisp.org>
9016
9017         Tests for module 'cosf'.
9018         * modules/cosf-tests: New file.
9019         * tests/test-cosf.c: New file.
9020
9021         New module 'cosf'.
9022         * lib/math.in.h (cosf): New declaration.
9023         * lib/cosf.c: New file.
9024         * m4/cosf.m4: New file.
9025         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9027         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9028         * modules/cosf: New file.
9029         * tests/test-math-c++.cc: Check the declaration of cosf.
9030         * doc/posix-functions/cosf.texi: Mention the new module.
9031
9032         cos: Use a .m4 file.
9033         * m4/cos.m4: New file.
9034         * modules/cos (Files): Add it.
9035         (configure.ac): Just invoke gl_FUNC_COS.
9036
9037 2011-10-08  Bruno Haible  <bruno@clisp.org>
9038
9039         Tests for module 'sinf'.
9040         * modules/sinf-tests: New file.
9041         * tests/test-sinf.c: New file.
9042
9043         New module 'sinf'.
9044         * lib/math.in.h (sinf): New declaration.
9045         * lib/sinf.c: New file.
9046         * m4/sinf.m4: New file.
9047         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9049         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9050         * modules/sinf: New file.
9051         * tests/test-math-c++.cc: Check the declaration of sinf.
9052         * doc/posix-functions/sinf.texi: Mention the new module.
9053
9054         sin: Use a .m4 file.
9055         * m4/sin.m4: New file.
9056         * modules/sin (Files): Add it.
9057         (configure.ac): Just invoke gl_FUNC_SIN.
9058
9059 2011-10-08  Bruno Haible  <bruno@clisp.org>
9060
9061         Tests for module 'powf'.
9062         * modules/powf-tests: New file.
9063         * tests/test-powf.c: New file.
9064
9065         New module 'powf'.
9066         * lib/math.in.h (powf): New declaration.
9067         * lib/powf.c: New file.
9068         * m4/powf.m4: New file.
9069         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9071         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9072         * modules/powf: New file.
9073         * tests/test-math-c++.cc: Check the declaration of powf.
9074         * doc/posix-functions/powf.texi: Mention the new module.
9075
9076         pow: Use a .m4 file.
9077         * m4/pow.m4: New file.
9078         * modules/pow (Files): Add it.
9079         (configure.ac): Just invoke gl_FUNC_POW.
9080
9081 2011-10-08  Bruno Haible  <bruno@clisp.org>
9082
9083         Tests for module 'log10f'.
9084         * modules/log10f-tests: New file.
9085         * tests/test-log10f.c: New file.
9086
9087         New module 'log10f'.
9088         * lib/math.in.h (log10f): New declaration.
9089         * lib/log10f.c: New file.
9090         * m4/log10f.m4: New file.
9091         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9093         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9094         * modules/log10f: New file.
9095         * tests/test-math-c++.cc: Check the declaration of log10f.
9096         * doc/posix-functions/log10f.texi: Mention the new module.
9097
9098         log10: Use a .m4 file.
9099         * m4/log10.m4: New file.
9100         * modules/log10 (Files): Add it.
9101         (configure.ac): Just invoke gl_FUNC_LOG10.
9102
9103 2011-10-08  Bruno Haible  <bruno@clisp.org>
9104
9105         Tests for module 'logf'.
9106         * modules/logf-tests: New file.
9107         * tests/test-logf.c: New file.
9108
9109         New module 'logf'.
9110         * lib/math.in.h (logf): New declaration.
9111         * lib/logf.c: New file.
9112         * m4/logf.m4: New file.
9113         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9115         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9116         * modules/logf: New file.
9117         * tests/test-math-c++.cc: Check the declaration of logf.
9118         * doc/posix-functions/logf.texi: Mention the new module.
9119
9120         log: Use a .m4 file.
9121         * m4/log.m4: New file.
9122         * modules/log (Files): Add it.
9123         (configure.ac): Just invoke gl_FUNC_LOG.
9124
9125 2011-10-08  Bruno Haible  <bruno@clisp.org>
9126
9127         Tests for module 'expf'.
9128         * modules/expf-tests: New file.
9129         * tests/test-expf.c: New file.
9130
9131         New module 'expf'.
9132         * lib/math.in.h (expf): New declaration.
9133         * lib/expf.c: New file.
9134         * m4/expf.m4: New file.
9135         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9137         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9138         * modules/expf: New file.
9139         * tests/test-math-c++.cc: Check the declaration of expf.
9140         * doc/posix-functions/expf.texi: Mention the new module.
9141
9142         exp: Use a .m4 file.
9143         * m4/exp.m4: New file.
9144         * modules/exp (Files): Add it.
9145         (configure.ac): Just invoke gl_FUNC_EXP.
9146
9147 2011-10-08  Bruno Haible  <bruno@clisp.org>
9148
9149         Tests for module 'sqrtf'.
9150         * modules/sqrtf-tests: New file.
9151         * tests/test-sqrtf.c: New file.
9152
9153         New module 'sqrtf'.
9154         * lib/math.in.h (sqrtf): New declaration.
9155         * lib/sqrtf.c: New file.
9156         * m4/sqrtf.m4: New file.
9157         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9159         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9160         * modules/sqrtf: New file.
9161         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9162         * doc/posix-functions/sqrtf.texi: Mention the new module.
9163
9164 2011-10-08  Bruno Haible  <bruno@clisp.org>
9165
9166         Tests: Avoid link failures w.r.t. libintl.
9167         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9168         $(LIBINTL).
9169         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9170         $(LIBINTL).
9171         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9172         against $(LIBINTL).
9173         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9174         $(LIBINTL).
9175         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9176         $(LIBINTL).
9177         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9178
9179 2011-10-08  Bruno Haible  <bruno@clisp.org>
9180
9181         pow tests: Defeat compiler optimizations.
9182         * tests/test-pow.c (main): Assign arguments to x and y before use.
9183
9184 2011-10-08  Bruno Haible  <bruno@clisp.org>
9185
9186         gnulib-tool: Improve last commit.
9187         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9188         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9189         ignore dependencies that are not among the modules list.
9190
9191 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9192
9193         gnulib-tool: don't follow dependencies to avoided modules
9194         This fixes a bug that is related to the previous one.
9195         * gnulib-tool (func_modules_transitive_closure)
9196         (func_emit_autoconf_snippets):
9197         Check whether a dependency is acceptable before using it.
9198         (--extract-dependencies): Report an error if --avoid is also used,
9199         since this combination of options is not yet supported.
9200
9201         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9202         Problem reported by Peter Dyballa in
9203         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9204         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9205         when echoing "$condition".
9206
9207 2011-10-07  Bruno Haible  <bruno@clisp.org>
9208
9209         Fix documentation about math functions on MacOS X.
9210         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9211         MacOS X 10.5.
9212         * doc/posix-functions/fdim.texi: Likewise.
9213         * doc/posix-functions/feclearexcept.texi: Likewise.
9214         * doc/posix-functions/fegetenv.texi: Likewise.
9215         * doc/posix-functions/fegetround.texi: Likewise.
9216         * doc/posix-functions/feholdexcept.texi: Likewise.
9217         * doc/posix-functions/feraiseexcept.texi: Likewise.
9218         * doc/posix-functions/fesetenv.texi: Likewise.
9219         * doc/posix-functions/fesetround.texi: Likewise.
9220         * doc/posix-functions/fetestexcept.texi: Likewise.
9221         * doc/posix-functions/feupdateenv.texi: Likewise.
9222         * doc/posix-functions/fmax.texi: Likewise.
9223         * doc/posix-functions/fmin.texi: Likewise.
9224         * doc/posix-functions/log2.texi: Likewise.
9225         * doc/posix-functions/modff.texi: Likewise.
9226         * doc/posix-functions/nan.texi: Likewise.
9227         * doc/posix-functions/nanf.texi: Likewise.
9228         * doc/posix-functions/nextafterf.texi: Likewise.
9229         * doc/posix-functions/remquo.texi: Likewise.
9230
9231 2011-10-07  Bruno Haible  <bruno@clisp.org>
9232
9233         modff: Drop assumption about library that defines modff.
9234         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9235         AC_CHECK_FUNCS.
9236         * modules/modff (Files): Add m4/mathfunc.m4.
9237
9238 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9239
9240         raise tests: Avoid a GCC warning.
9241         * tests/test-raise.c (handler): Use _Noreturn.
9242
9243 2011-10-07  Bruno Haible  <bruno@clisp.org>
9244
9245         Tests for module 'ldexpf'.
9246         * modules/ldexpf-tests: New file.
9247         * tests/test-ldexpf.c: New file.
9248
9249         New module 'ldexpf'.
9250         * lib/math.in.h (ldexpf): New declaration.
9251         * lib/ldexpf.c: New file.
9252         * m4/ldexpf.m4: New file.
9253         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9255         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9256         * modules/ldexpf: New file.
9257         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9258         * doc/posix-functions/ldexpf.texi: Mention the new module.
9259
9260 2011-10-06  Bruno Haible  <bruno@clisp.org>
9261
9262         frexpf: Work around problems on IRIX and mingw.
9263         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9265         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9266         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9267         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9268         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9269         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9270
9271 2011-10-06  Bruno Haible  <bruno@clisp.org>
9272
9273         fabsf: Drop assumption about library that defines fabsf.
9274         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9275         AC_CHECK_FUNCS.
9276         * modules/fabsf (Files): Add m4/mathfunc.m4.
9277
9278 2011-10-06  Bruno Haible  <bruno@clisp.org>
9279
9280         frexpf: Drop assumption about library that defines frexpf.
9281         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9282         'int *', 'float *', 'long double *', 'float', 'long double'.
9283         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9284         AC_CHECK_FUNCS.
9285         * modules/frexpf (Files): Add m4/mathfunc.m4.
9286
9287         Tests for module 'frexpf'.
9288         * modules/frexpf-tests: New file.
9289         * tests/test-frexpf.c: New file.
9290
9291         New module 'frexpf'.
9292         * lib/math.in.h (frexpf): New declaration.
9293         * lib/frexpf.c: New file.
9294         * m4/frexpf.m4: New file.
9295         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9297         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9298         * modules/frexpf: New file.
9299         * tests/test-math-c++.cc: Check the declaration of frexpf.
9300         * doc/posix-functions/frexpf.texi: Mention the new module.
9301
9302 2011-10-06  Bruno Haible  <bruno@clisp.org>
9303
9304         math: Sort function declarations of math.in.h.
9305         * lib/math.in.h (frexp, logb): Move declarations.
9306
9307 2011-10-05  Bruno Haible  <bruno@clisp.org>
9308
9309         Tests for module 'modff'.
9310         * modules/modff-tests: New file.
9311         * tests/test-modff.c: New file.
9312
9313         New module 'modff'.
9314         * lib/math.in.h (modff): New declaration.
9315         * lib/modff.c: New file.
9316         * m4/modff.m4: New file.
9317         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9319         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9320         * modules/modff: New file.
9321         * tests/test-math-c++.cc: Check the declaration of modff.
9322         * doc/posix-functions/modff.texi: Mention the new module.
9323
9324         modf tests: Make test sharper.
9325         * tests/test-modf.c (main): Strengthen upper bound.
9326
9327         modf: Use a .m4 file.
9328         * m4/modf.m4: New file.
9329         * modules/modf (Files): Add it.
9330         (configure.ac): Just invoke gl_FUNC_MODF.
9331
9332 2011-10-05  Bruno Haible  <bruno@clisp.org>
9333
9334         Tests for module 'fmodf'.
9335         * modules/fmodf-tests: New file.
9336         * tests/test-fmodf.c: New file.
9337
9338         New module 'fmodf'.
9339         * lib/math.in.h (fmodf): New declaration.
9340         * lib/fmodf.c: New file.
9341         * m4/fmodf.m4: New file.
9342         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9344         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9345         * modules/fmodf: New file.
9346         * tests/test-math-c++.cc: Check the declaration of fmodf.
9347         * doc/posix-functions/fmodf.texi: Mention the new module.
9348
9349         fmod: Use a .m4 file.
9350         * m4/fmod.m4: New file.
9351         * modules/fmod (Files): Add it.
9352         (configure.ac): Just invoke gl_FUNC_FMOD.
9353
9354 2011-10-05  Bruno Haible  <bruno@clisp.org>
9355
9356         Tests for module 'fabsf'.
9357         * modules/fabsf-tests: New file.
9358         * tests/test-fabsf.c: New file.
9359
9360         New module 'fabsf'.
9361         * lib/math.in.h (fabsf): New declaration.
9362         * lib/fabsf.c: New file.
9363         * m4/fabsf.m4: New file.
9364         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9366         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9367         * modules/fabsf: New file.
9368         * tests/test-math-c++.cc: Check the declaration of fabsf.
9369         * doc/posix-functions/fabsf.texi: Mention the new module.
9370
9371         fabs: Use a .m4 file.
9372         * m4/fabs.m4: New file.
9373         * modules/fabs (Files): Add it.
9374         (configure.ac): Just invoke gl_FUNC_FABS.
9375
9376 2011-10-05  Jim Meyering  <meyering@redhat.com>
9377
9378         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9379         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9380         ls -lL regression introduced in coreutils-8.12, it does so at the
9381         cost of an additional stat call in the common case.  Besides, now
9382         that the kernel change that prompted commit 95f7c57f has been reverted
9383         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9384         we have no use for commit 95f7c57f, "file-has-acl: use
9385         acl_extended_file_nofollow if available".
9386
9387 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9388
9389         file-has-acl: revert unintended change in behavior of ls -L
9390         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9391         derived from...
9392         (file_has_acl): ...code here.  Call it.
9393         This problem was introduced with 2011-07-22 commit 95f7c57f,
9394         "file-has-acl: use acl_extended_file_nofollow if available".
9395         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9396
9397 2011-10-03  Bruno Haible  <bruno@clisp.org>
9398
9399         poll: Avoid link errors on MSVC.
9400         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9401         * modules/poll (Depends-on): Add sockets.
9402         (Link): New section.
9403         * NEWS: Mention the change.
9404         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9405         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9406         $(LIB_POLL) instead of $(LIBSOCKET).
9407
9408 2011-10-03  Bruno Haible  <bruno@clisp.org>
9409
9410         sys_select tests: Fix link error on MSVC 9.
9411         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9412         with $(LIB_SELECT) instead of $(LIBSOCKET).
9413
9414 2011-10-03  Bruno Haible  <bruno@clisp.org>
9415
9416         sys_select: Fix compilation error on mingw.
9417         * lib/sys_select.in.h: On native Windows, include <io.h>.
9418
9419 2011-10-03  Bruno Haible  <bruno@clisp.org>
9420
9421         wmemset: Support for MSVC.
9422         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9423         whether wmemset() exists.
9424
9425 2011-10-03  Bruno Haible  <bruno@clisp.org>
9426
9427         wmemmove: Support for MSVC.
9428         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9429         whether wmemmove() exists.
9430
9431 2011-10-03  Bruno Haible  <bruno@clisp.org>
9432
9433         wmemcpy: Support for MSVC.
9434         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9435         whether wmemcpy() exists.
9436
9437 2011-10-03  Bruno Haible  <bruno@clisp.org>
9438
9439         wmemcmp: Support for MSVC.
9440         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9441         whether wmemcmp() exists.
9442
9443 2011-10-03  Bruno Haible  <bruno@clisp.org>
9444
9445         wmemchr: Support for MSVC.
9446         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9447         whether wmemchr() exists.
9448
9449 2011-10-03  Bruno Haible  <bruno@clisp.org>
9450
9451         glthread/*, strsignal: Support for MSVC.
9452         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9453         including <winsock.h> on MSVC 9.
9454         * lib/glthread/lock.h: Likewise.
9455         * lib/glthread/thread.h: Likewise.
9456         * lib/glthread/tls.h: Likewise.
9457         * lib/glthread/yield.h: Likewise.
9458         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9459         if HAVE_UNISTD_H is false.
9460         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9461
9462 2011-10-03  Bruno Haible  <bruno@clisp.org>
9463
9464         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9465         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9466         Set to 100000.
9467
9468 2011-10-03  Bruno Haible  <bruno@clisp.org>
9469
9470         acl: Fix specification.
9471         * lib/file-has-acl.c (file_has_acl): Fix specification.
9472
9473 2011-10-03  Bruno Haible  <bruno@clisp.org>
9474
9475         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9476         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9477         (compute_curr_prefix, shared_library_fullname,
9478         find_shared_library_fullname, get_shared_library_fullname, relocate):
9479         Use it together with PIC && INSTALLDIR.
9480         Reported by <jojelino@gmail.com>
9481         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9482
9483 2011-10-01  Jim Meyering  <meyering@redhat.com>
9484
9485         maint.mk: adjust a release-related rule not to require use of gzip
9486         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9487         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9488         projects that build only .tar.xz files.  Also fix an erroneous test.
9489
9490         test-linkat: don't leave behind a temporary file
9491         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9492         Otherwise, coreutils' "make distcheck" would fail with this:
9493           Only in /c/cu/tests/torture/coreutils/test/\
9494             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9495           make[2]: *** [my-distcheck] Error 1
9496
9497         float, math: add omitted file
9498         * lib/itold.c: Add file, required for yesterday's float change.
9499
9500 2011-10-01  Bruno Haible  <bruno@clisp.org>
9501
9502         isinf: Fix for OpenBSD/x86.
9503         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9504         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9505         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9506
9507 2011-10-01  Bruno Haible  <bruno@clisp.org>
9508
9509         isfinite: Fix syntax error in configure test.
9510         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9511
9512         isfinite: Fix typo.
9513         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9514         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9515
9516 2011-10-01  Bruno Haible  <bruno@clisp.org>
9517
9518         nonblocking tests: Fix test failure on Linux/IA-64.
9519         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9520         Set to 270000.
9521
9522 2011-10-01  Bruno Haible  <bruno@clisp.org>
9523
9524         mkfifoat tests: Fix a test failure on mingw.
9525         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9526         with error ENOSYS.
9527
9528 2011-09-30  Bruno Haible  <bruno@clisp.org>
9529
9530         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9531         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9532         'long double'. Set REPLACE_ITOLD.
9533         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9534         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9535         * lib/itold.c: New file.
9536         * modules/float (Files): Add lib/itold.c.
9537         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9538         (Makefile.am): Substitute REPLACE_ITOLD.
9539         * modules/math (Depends-on): Add float.
9540         (Makefile.am): Substitute REPLACE_ITOLD.
9541         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9542         * doc/posix-headers/math.texi: Likewise.
9543         * doc/posix-functions/logl.texi: Likewise.
9544
9545 2011-09-30  Bruno Haible  <bruno@clisp.org>
9546
9547         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9548         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9549         Set to 140000.
9550
9551 2011-09-30  Bruno Haible  <bruno@clisp.org>
9552
9553         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9554         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9555         invocation, say "right after AC_PROG_CC_STDC", not "right after
9556         AC_PROG_CC".
9557         Reported by Gary V. Vaughan <gary@gnu.org>.
9558
9559 2011-09-30  Bruno Haible  <bruno@clisp.org>
9560
9561         Centralize C99 requirement.
9562         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9563         * modules/stdarg (configure.ac-early): Invoke it instead of
9564         AC_PROG_CC_STDC.
9565         Reported by Gary V. Vaughan and Paul Eggert.
9566
9567 2011-09-29  Bruno Haible  <bruno@clisp.org>
9568
9569         float: Fix LDBL_MAX value on Linux/PowerPC.
9570         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9571         on Linux/PowerPC.
9572         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9573         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9574         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9575         platform.
9576         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9577
9578 2011-09-29  Bruno Haible  <bruno@clisp.org>
9579
9580         doc: Improve doc about gl_EARLY.
9581         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9582         AC_PROG_CC_STDC invocation.
9583         Reported by Gary V. Vaughan <gary@gnu.org>.
9584
9585 2011-09-28  Bruno Haible  <bruno@clisp.org>
9586
9587         fgetc, fputc, fread, fwrite tests: Fix link error.
9588         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9589         on non-MSVC platforms.
9590         * tests/test-fputc.c (main): Likewise.
9591         * tests/test-fread.c (main): Likewise.
9592         * tests/test-fwrite.c (main): Likewise.
9593         Reported by Jim Meyering.
9594
9595 2011-09-27  Bruno Haible  <bruno@clisp.org>
9596
9597         fputc, fwrite tests: Avoid test failure on MSVC.
9598         * tests/test-fgetc.c: Include msvc-inval.h.
9599         (main): Invoke gl_msvc_inval_ensure_handler.
9600         * tests/test-fputc.c: Include msvc-inval.h.
9601         (main): Invoke gl_msvc_inval_ensure_handler.
9602         * tests/test-fread.c: Include msvc-inval.h.
9603         (main): Invoke gl_msvc_inval_ensure_handler.
9604         * tests/test-fwrite.c: Include msvc-inval.h.
9605         (main): Invoke gl_msvc_inval_ensure_handler.
9606         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9607         * modules/fputc-tests (Depends-on): Likewise.
9608         * modules/fread-tests (Depends-on): Likewise.
9609         * modules/fwrite-tests (Depends-on): Likewise.
9610
9611 2011-09-27  Bruno Haible  <bruno@clisp.org>
9612
9613         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9614         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9615         (raise): Remove older, duplicated declaration.
9616         (_gl_raise_SIGPIPE): New declaration.
9617         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9618         (rpl_raise): Remove function.
9619         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9620         a gnulib-defined SIGPIPE here.
9621         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9622         'sigprocmask' has detected missing signal-blocking and the module
9623         'sigpipe' is enabled.
9624         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9625
9626 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9627
9628         base64-tests: avoid memory leak
9629         * tests/test-base64.c (main): Plug memory leak.
9630
9631         base32: new module
9632         * modules/base32: New module.
9633         * lib/base32.c: New file.
9634         * lib/base32.h: Likewise.
9635         * m4/base32.m4: Likewise.
9636         * modules/base32-tests: New test.
9637         * tests/test-base32.c: Likewise.
9638         * MODULES.html.sh (Misc): Mention it.
9639
9640 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9641
9642         gnulib: use more-standard license notice wording
9643         * gnulib-tool (func_emit_copyright_notice): When emitting a
9644         license notice into a file, use the standard wording as suggested
9645         by the current information for GNU maintainers, except say "file"
9646         rather than "program".  The new wording gives a license version
9647         number, which addresses an issue raised by Glenn Morris in
9648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9649         * m4/onceonly.m4: Use that same wording here, too.
9650
9651         dup2: minor simplification
9652         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9653         as lib/dup2.c no longer uses 'inline'.
9654
9655 2011-09-25  Bruno Haible  <bruno@clisp.org>
9656
9657         strings: Fix compilation error on MSVC.
9658         * lib/strings.in.h: Include <stddef.h> for size_t.
9659
9660 2011-09-25  Bruno Haible  <bruno@clisp.org>
9661
9662         fflush et al.: Document limitation on MSVC.
9663         * doc/posix-functions/fflush.texi: Document possible crash in handling
9664         mode other than DEFAULT_HANDLING.
9665         * doc/posix-functions/fgetc.texi: Likewise.
9666         * doc/posix-functions/fputc.texi: Likewise.
9667         * doc/posix-functions/fread.texi: Likewise.
9668         * doc/posix-functions/fwrite.texi: Likewise.
9669
9670 2011-09-25  Bruno Haible  <bruno@clisp.org>
9671
9672         msvc-inval: Allow three invalid parameter handling modes.
9673         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9674         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9675         macros.
9676         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9677         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9678         SANE_LIBRARY_HANDLING as a no-op.
9679         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9680         <stdlib.h>.
9681         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9682
9683 2011-09-25  Bruno Haible  <bruno@clisp.org>
9684
9685         msvc-inval: Make handler multithread-safe.
9686         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9687         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9688         declarations.
9689         (gl_msvc_inval_current): New declaration.
9690         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9691         Operate on the structure returned by gl_msvc_inval_current().
9692         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9693         Remove varaiables.
9694         (tls_index, tls_initialized): New variables.
9695         (not_per_thread): New variable.
9696         (gl_msvc_inval_current): New function.
9697         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9698         returned by gl_msvc_inval_current().
9699
9700 2011-09-25  Bruno Haible  <bruno@clisp.org>
9701
9702         msvc-inval: Install handler globally.
9703         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9704         !_MSC_VER.
9705         (gl_msvc_invalid_parameter_handler): Remove declaration.
9706         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9707         declarations.
9708         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9709         Install the handler globally, don't uninstall it.
9710         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9711         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9712         currently valid, call RaiseException instead.
9713         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9714         for !_MSC_VER.
9715
9716 2011-09-25  Bruno Haible  <bruno@clisp.org>
9717
9718         strerror_r-posix: Fix for MSVC 9.
9719         * lib/strerror_r.c (local_snprintf): New function.
9720         (snprintf): Define to local_snprintf, not to _snprintf.
9721
9722 2011-09-25  Bruno Haible  <bruno@clisp.org>
9723
9724         ftruncate: Support for MSVC 9.
9725         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9726         (chsize_nothrow): New function.
9727         (chsize): Redefine as a macro.
9728         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9729         * modules/ftruncate (Depends-on): Add msvc-inval.
9730
9731 2011-09-25  Bruno Haible  <bruno@clisp.org>
9732
9733         New module 'fstat'.
9734         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9735         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9736         * lib/fchdir.c (rpl_fstat): Remove function.
9737         * m4/fstat.m4: New file.
9738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9740         declared.
9741         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9742         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9743         * modules/fstat: New file.
9744         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9745         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9746         is set.
9747         * doc/posix-functions/fstat.texi: Mention the new module and the
9748         problem on MSVC.
9749         * NEWS: Mention the change.
9750         * modules/acl (Depends-on): Add fstat.
9751         * modules/chdir-safer (Depends-on): Likewise.
9752         * modules/chown (Depends-on): Likewise.
9753         * modules/copy-file (Depends-on): Likewise.
9754         * modules/fchdir (Depends-on): Likewise.
9755         * modules/fdopendir (Depends-on): Likewise.
9756         * modules/fopen (Depends-on): Likewise.
9757         * modules/fts (Depends-on): Likewise.
9758         * modules/getcwd (Depends-on): Likewise.
9759         * modules/isapipe (Depends-on): Likewise.
9760         * modules/linkat (Depends-on): Likewise.
9761         * modules/lseek (Depends-on): Likewise.
9762         * modules/mkdir-p (Depends-on): Likewise.
9763         * modules/open (Depends-on): Likewise.
9764         * modules/openat (Depends-on): Likewise.
9765         * modules/read-file (Depends-on): Likewise.
9766         * modules/renameat (Depends-on): Likewise.
9767         * modules/utimens (Depends-on): Likewise.
9768
9769 2011-09-25  Bruno Haible  <bruno@clisp.org>
9770
9771         linkat: Fix compilation on MSVC 9.
9772         * lib/linkat.c: Don't include <stdint.h>.
9773
9774 2011-09-25  Bruno Haible  <bruno@clisp.org>
9775
9776         fclose: Support for MSVC 9.
9777         * lib/fclose.c: Include msvc-inval.h.
9778         (fclose_nothrow): New function.
9779         (rpl_fclose): Use it.
9780         * modules/fclose (Depends-on): Add msvc-inval.
9781         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9782
9783 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9784
9785         dup2: minor simplifications
9786         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9787         that it's a performance win.
9788         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9789         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9790
9791 2011-09-24  Jim Meyering  <meyering@redhat.com>
9792
9793         test-futimens: avoid a warning from gcc -Wshadow
9794         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9795         to avoid a shadowing warning.
9796
9797 2011-09-24  Bruno Haible  <bruno@clisp.org>
9798
9799         fdopen: Support for MSVC 9.
9800         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9801         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9802         * lib/fdopen.c: Include msvc-inval.h.
9803         (fdopen_nothrow): New function.
9804         (rpl_fdopen): Use it.
9805         * modules/fdopen (Depends-on): Add msvc-inval.
9806         * modules/fclose-tests (Depends-on): Add fdopen.
9807         * modules/fflush-tests (Depends-on): Likewise.
9808         * modules/fgetc-tests (Depends-on): Likewise.
9809         * modules/fputc-tests (Depends-on): Likewise.
9810         * modules/fread-tests (Depends-on): Likewise.
9811         * modules/freopen-tests (Depends-on): Likewise.
9812         * modules/fseeko-tests (Depends-on): Likewise.
9813         * modules/ftello-tests (Depends-on): Likewise.
9814         * modules/fwrite-tests  (Depends-on): Likewise.
9815         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9816
9817 2011-09-24  Bruno Haible  <bruno@clisp.org>
9818
9819         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9820         * modules/fgetc-tests (Depends-on): Add unistd.
9821         * modules/fputc-tests (Depends-on): Likewise.
9822         * modules/fread-tests (Depends-on): Likewise.
9823         * modules/fwrite-tests (Depends-on): Likewise.
9824
9825 2011-09-24  Bruno Haible  <bruno@clisp.org>
9826
9827         dup: Simplify autoconf test.
9828         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9829         on gl_MSVC_INVAL's result.
9830
9831 2011-09-24  Bruno Haible  <bruno@clisp.org>
9832
9833         Tests for function fwrite().
9834         * modules/fwrite-tests: New file.
9835         * tests/test-fwrite.c: New file.
9836         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9837
9838         Tests for function fread().
9839         * modules/fread-tests: New file.
9840         * tests/test-fread.c: New file.
9841         * modules/stdio-tests (Depends-on): Add fread-tests.
9842
9843         Activate fputc tests.
9844         * modules/stdio-tests (Depends-on): Add fputc-tests.
9845
9846         Enhance fgetc, fputc tests.
9847         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9848         * tests/test-fputc.c (main): Likewise.
9849
9850 2011-09-24  Bruno Haible  <bruno@clisp.org>
9851
9852         write: Support for MSVC 9.
9853         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9854         is not 1.
9855         * lib/write.c (write_nothrow): New function.
9856         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9857         not 1. Use write_nothrow.
9858         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9859         invalid parameter handler.
9860         (gl_PREREQ_WRITE): New macro.
9861         * modules/write (Depends-on): Add msvc-inval.
9862         (configure.ac): Invoke gl_PREREQ_WRITE.
9863         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9864
9865 2011-09-24  Bruno Haible  <bruno@clisp.org>
9866
9867         read: Fix last commit.
9868         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9869
9870 2011-09-24  Bruno Haible  <bruno@clisp.org>
9871
9872         dup2: Fix last commit.
9873         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9874         (rpl_dup2): Disable fcntl workaround on native Windows.
9875
9876         sigprocmask: Make code safer.
9877         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9878         section that changes macro definitions for this compilation unit.
9879
9880 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9881
9882         dup2: clarify by coalescing Windows-specific material
9883         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9884         "msvc-nothrow.h"' to the Windows-specific section, so that the
9885         Emacs source need not contain these include files.
9886         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9887         Windows-specific fixes into this function rather than just the
9888         nothrow fix, as this shortens and clarifies the code.  Always
9889         define as a function, as that's a bit cleaner than having it be
9890         sometimes a function and sometimes a macro.
9891         (rpl_dup2): Move the Windows-specific stuff out of here and into
9892         ms_windows_dup2.  Don't protect the Haiku-related fix with
9893         "#if !defined __linux__", as the same code also works around
9894         a Linux kernel bug, and it doesn't add any system calls on any
9895         platform.  Add comment about FreeBSD 6.1.
9896
9897         sigprocmask: move #include directive
9898         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9899         Windows-specific section, so that the Emacs source need not
9900         contain msvc-inval.h.
9901
9902 2011-09-23  Bruno Haible  <bruno@clisp.org>
9903
9904         read: Support for MSVC 9.
9905         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9906         is not 1.
9907         * lib/read.c (read_nothrow): New function.
9908         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9909         read_nothrow.
9910         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9911         invalid parameter handler.
9912         (gl_PREREQ_READ): New macro.
9913         * modules/read (Depends-on): Add msvc-inval.
9914         (configure.ac): Invoke gl_PREREQ_READ.
9915         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9916
9917 2011-09-23  Bruno Haible  <bruno@clisp.org>
9918
9919         close: Support for MSVC 9.
9920         * lib/close.c: Include <errno.h>, msvc-inval.h.
9921         (close_nothrow): New function.
9922         (rpl_close): Use it.
9923         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9924         invalid parameter handler.
9925         * modules/close (Depends-on): Add msvc-inval.
9926         * modules/dup2-tests (Depends-on): Add close.
9927         * modules/dup3-tests (Depends-on): Likewise.
9928         * modules/fcntl-tests (Depends-on): Likewise.
9929         * modules/spawn-pipe-tests (Depends-on): Likewise.
9930         * modules/unistd-safer-tests (Depends-on): Likewise.
9931         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9932
9933 2011-09-23  Bruno Haible  <bruno@clisp.org>
9934
9935         New module 'dup'.
9936         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9937         Allow replacement.
9938         * lib/dup.c: New file.
9939         * lib/fchdir.c (rpl_dup): Remove function.
9940         * m4/dup.m4: New file.
9941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9942         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9943         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9944         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9945         * modules/dup: New file.
9946         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9947         'dup' module is in use.
9948         * modules/fdopendir (Depends-on): Add dup.
9949         * modules/fdutimensat-tests (Depends-on): Likewise.
9950         * modules/fts (Depends-on): Likewise.
9951         * modules/futimens-tests (Depends-on): Likewise.
9952         * modules/posix_spawnp-tests (Depends-on): Likewise.
9953         * modules/unistd-safer-tests (Depends-on): Likewise.
9954         * modules/utimens-tests (Depends-on): Likewise.
9955         * doc/posix-functions/dup.texi: Mention the new module and the problem
9956         on MSVC.
9957
9958 2011-09-23  Bruno Haible  <bruno@clisp.org>
9959
9960         getdtablesize: Support for MSVC 9.
9961         * lib/getdtablesize.c: Include msvc-inval.h.
9962         (_setmaxstdio_nothrow): New function.
9963         (_setmaxstdio): Redefine it.
9964         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9965         * modules/getdtablesize (Depends-on): Add msvc-inval.
9966         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9967
9968 2011-09-23  Bruno Haible  <bruno@clisp.org>
9969
9970         signal-h: Rename from signal.
9971         * modules/signal-h: Renamed from modules/signal.
9972         * modules/pthread_sigmask (Depends-on): Update.
9973         * modules/raise (Depends-on): Likewise.
9974         * modules/sigaction (Depends-on): Likewise.
9975         * modules/sigpipe (Depends-on): Likewise.
9976         * modules/sigprocmask (Depends-on): Likewise.
9977         * modules/sys_select (Depends-on): Likewise.
9978         * modules/signal-h-tests: Renamed from modules/signal-tests.
9979         (Files, Depends-on, Makefile.am): Update.
9980         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9981         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9982         (Files, Makefile.am): Update.
9983         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9984         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9985         * modules/signal: New placeholder file.
9986         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9987         * doc/posix-headers/signal.texi: Update.
9988         * NEWS: Mention the change.
9989
9990 2011-09-23  Bruno Haible  <bruno@clisp.org>
9991
9992         sigprocmask: Avoid crashes through signal() on MSVC 9.
9993         * lib/sigprocmask.c: Include msvc-inval.h.
9994         (signal_nothrow): New function.
9995         (signal): Redefine it.
9996         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9997         * modules/sigprocmask (Depends-on): Add msvc-inval.
9998         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9999
10000 2011-09-23  Bruno Haible  <bruno@clisp.org>
10001
10002         Tests for module 'raise'.
10003         * modules/raise-tests: New file.
10004         * tests/test-raise.c: New file.
10005
10006         raise: Support for MSVC.
10007         * lib/signal.in.h (raise): New declaration.
10008         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10009         for native Windows platforms.
10010         * m4/raise.m4: New file.
10011         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10012         HAVE_RAISE, REPLACE_RAISE.
10013         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10014         REPLACE_RAISE.
10015         * modules/raise (Status, Notice): Remove fields.
10016         (Files): Add m4/raise.m4.
10017         (Depends-on): Add signal, msvc-inval.
10018         (configure.ac): Use the common idioms.
10019         (Maintainer): Add me.
10020         * tests/test-signal-c++.cc: Check the signature of raise.
10021         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10022
10023 2011-09-23  Bruno Haible  <bruno@clisp.org>
10024
10025         pipe2: Fix compilation on pre-C99 compilers.
10026         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10027
10028 2011-09-23  Bruno Haible  <bruno@clisp.org>
10029
10030         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10031         * lib/msvc-nothrow.h: New file.
10032         * lib/msvc-nothrow.c: New file.
10033         * m4/msvc-nothrow.m4: New file.
10034         * modules/msvc-nothrow: New file.
10035         * lib/dup2.c: Include msvc-nothrow.h.
10036         (rpl_dup2): No need to protect _get_osfhandle call here.
10037         * lib/accept4.c: Include msvc-nothrow.h.
10038         * lib/error.c: Likewise.
10039         * lib/fcntl.c: Likewise.
10040         * lib/lseek.c: Likewise.
10041         * lib/nonblocking.c: Likewise.
10042         * lib/poll.c: Likewise.
10043         * lib/read.c: Likewise.
10044         * lib/select.c: Likewise.
10045         * lib/sockets.h: Likewise.
10046         * lib/sockets.c: Likewise.
10047         * lib/stdio-read.c: Likewise.
10048         * lib/stdio-write.c: Likewise.
10049         * lib/write.c: Likewise.
10050         * lib/w32sock.h: Likewise.
10051         * lib/w32spawn.h: Likewise.
10052         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10053         * lib/fsync.c: Likewise.
10054         * lib/isapipe.c: Likewise.
10055         * modules/dup2 (Depends-on): Add msvc-nothrow.
10056         * modules/accept4 (Depends-on): Likewise.
10057         * modules/error (Depends-on): Likewise.
10058         * modules/fcntl (Depends-on): Likewise.
10059         * modules/lseek (Depends-on): Likewise.
10060         * modules/nonblocking (Depends-on): Likewise.
10061         * modules/poll (Depends-on): Likewise.
10062         * modules/read (Depends-on): Likewise.
10063         * modules/select (Depends-on): Likewise.
10064         * modules/sockets (Depends-on): Likewise.
10065         * modules/sigpipe (Depends-on): Likewise.
10066         * modules/write (Depends-on): Likewise.
10067         * modules/accept (Depends-on): Likewise.
10068         * modules/bind (Depends-on): Likewise.
10069         * modules/connect (Depends-on): Likewise.
10070         * modules/gethostname (Depends-on): Likewise.
10071         * modules/getpeername (Depends-on): Likewise.
10072         * modules/getsockname (Depends-on): Likewise.
10073         * modules/getsockopt (Depends-on): Likewise.
10074         * modules/ioctl (Depends-on): Likewise.
10075         * modules/listen (Depends-on): Likewise.
10076         * modules/recv (Depends-on): Likewise.
10077         * modules/recvfrom (Depends-on): Likewise.
10078         * modules/send (Depends-on): Likewise.
10079         * modules/sendto (Depends-on): Likewise.
10080         * modules/setsockopt (Depends-on): Likewise.
10081         * modules/shutdown (Depends-on): Likewise.
10082         * modules/socket (Depends-on): Likewise.
10083         * modules/execute (Depends-on): Likewise.
10084         * modules/spawn-pipe (Depends-on): Likewise.
10085         * modules/flock (Depends-on): Likewise.
10086         * modules/fsync (Depends-on): Likewise.
10087         * modules/isapipe (Depends-on): Likewise.
10088         * tests/test-cloexec.c: Include msvc-nothrow.h.
10089         * tests/test-dup-safer.c: Likewise.
10090         * tests/test-dup2.c: Likewise.
10091         * tests/test-dup3.c: Likewise.
10092         * tests/test-fcntl.c: Likewise.
10093         * tests/test-pipe.c: Likewise.
10094         * tests/test-pipe2.c: Likewise.
10095         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10096         * modules/unistd-safer-tests (Depends-on): Likewise.
10097         * modules/dup2-tests (Depends-on): Likewise.
10098         * modules/dup3-tests (Depends-on): Likewise.
10099         * modules/fcntl-tests (Depends-on): Likewise.
10100         * modules/pipe-posix-tests (Depends-on): Likewise.
10101         * modules/pipe2-tests (Depends-on): Likewise.
10102
10103 2011-09-23  Bruno Haible  <bruno@clisp.org>
10104
10105         dup2: Make code more maintainable.
10106         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10107         (rpl_dup2): Use it.
10108         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10109         * modules/dup2 (configure.ac): Invoke it.
10110         Reported by Paul Eggert.
10111
10112 2011-09-23  Bruno Haible  <bruno@clisp.org>
10113
10114         msvc-inval: Fix compilation error.
10115         * lib/msvc-inval.h: Include <excpt.h>.
10116
10117 2011-09-23  Bruno Haible  <bruno@clisp.org>
10118
10119         mkdir: Tweak for MSVC 9.
10120         * lib/sys_stat.in.h: Update comments.
10121         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10122
10123         Tests for module 'chdir'.
10124         * modules/chdir-tests: New file.
10125         * tests/test-chdir.c: New file.
10126
10127         New module 'chdir'.
10128         * modules/chdir: New file.
10129         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10130         (chdir): New declaration.
10131         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10132         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10133         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10134         * tests/test-unistd-c++.cc: Check signature of chdir.
10135         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10136         * modules/chdir-long (Depends-on): Add chdir.
10137         * modules/fchdir (Depends-on): Likewise.
10138         * modules/rename (Depends-on): Likewise.
10139         * modules/savewd (Depends-on): Likewise.
10140
10141         rmdir: Support for mingw, MSVC 9.
10142         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10143         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10144
10145         getcwd: Tweak for MSVC 9.
10146         * lib/unistd.in.h: Update comments.
10147         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10148
10149 2011-09-22  Bruno Haible  <bruno@clisp.org>
10150
10151         strerror_r-posix: Avoid a link error on MSVC.
10152         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10153         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10154
10155 2011-09-22  Bruno Haible  <bruno@clisp.org>
10156
10157         select: Avoid link errors on MSVC.
10158         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10159         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10160         * modules/pselect (Link): Likewise.
10161         * NEWS: Mention the change.
10162         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10163         test-select-stdin against $(LIB_SELECT).
10164         * modules/pselect-tests (Makefile.am): Link test-pselect against
10165         $(LIB_SELECT).
10166
10167 2011-09-22  Bruno Haible  <bruno@clisp.org>
10168
10169         select: Avoid compilation error on MSVC.
10170         * lib/select.c: Don't include <stdbool.h>.
10171
10172 2011-09-21  Bruno Haible  <bruno@clisp.org>
10173
10174         Consolidate all uses of PATH_MAX in *.m4 files.
10175         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10176         macros.
10177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10178         and gl_PATHMAX_SNIPPET.
10179         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10180         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10181         * modules/chdir-long (Files): Add m4/pathmax.m4.
10182         * modules/getcwd (Files): Likewise.
10183
10184 2011-09-21  Bruno Haible  <bruno@clisp.org>
10185
10186         ftruncate: Un-deprecate, concentrate on Win32 support.
10187         * modules/ftruncate (Status, Notice): Remove sections.
10188         (Depends-on): Add largefile.
10189         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10190         non-mingw platforms.
10191         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10192         include <io.h>.
10193         * modules/perror-tests (Depends-on): Add ftruncate.
10194         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10195         'ftruncate' module.
10196
10197 2011-09-21  Bruno Haible  <bruno@clisp.org>
10198
10199         Add dependencies to new dirent related modules.
10200         * modules/opendir (Depends-on): Add closedir.
10201         * modules/getcwd (Depends-on): Add opendir, closedir.
10202         * modules/dirent-safer-tests (Depends-on): Likewise.
10203         * modules/fdopendir-tests (Depends-on): Likewise.
10204         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10205         * modules/renameat-tests (Depends-on): Likewise.
10206
10207 2011-09-21  Bruno Haible  <bruno@clisp.org>
10208
10209         opendir: Avoid compilation error on mingw.
10210         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10211         * modules/opendir (Depends-on): Add unistd.
10212
10213 2011-09-21  Bruno Haible  <bruno@clisp.org>
10214
10215         ftruncate tests: Avoid a test failure on mingw.
10216         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10217
10218 2011-09-21  Bruno Haible  <bruno@clisp.org>
10219
10220         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10221         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10222         native Windows.
10223
10224 2011-09-21  Bruno Haible  <bruno@clisp.org>
10225
10226         New module 'fdopen'.
10227         * lib/stdio.in.h (fdopen): New declaration.
10228         * lib/fdopen.c: New file.
10229         * m4/fdopen.m4: New file.
10230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10231         REPLACE_FDOPEN.
10232         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10233         REPLACE_FDOPEN.
10234         * modules/fdopen: New file.
10235         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10236         * tests/test-stdio-c++.cc: Check signature of fdopen.
10237         * doc/posix-functions/fdopen.texi: Mention the new module.
10238
10239 2011-09-21  Bruno Haible  <bruno@clisp.org>
10240
10241         unlockpt tests: Avoid test failure on NetBSD 5.1.
10242         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10243         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10244
10245 2011-09-21  Bruno Haible  <bruno@clisp.org>
10246
10247         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10248         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10249         * tests/test-getlogin_r.c (main): Likewise.
10250
10251 2011-09-20  Bruno Haible  <bruno@clisp.org>
10252
10253         time tests: Don't require pid_t.
10254         * doc/posix-headers/time.texi: Revert last change.
10255         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10256         * tests/test-time.c: Comment out the check for pid_t.
10257
10258 2011-09-20  Bruno Haible  <bruno@clisp.org>
10259
10260         fsync tests: Avoid a test failure on mingw.
10261         * tests/test-fsync.c (main): Allow a failure with EIO.
10262
10263 2011-09-20  Bruno Haible  <bruno@clisp.org>
10264
10265         euidaccess: Update comments.
10266         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10267
10268 2011-09-20  Bruno Haible  <bruno@clisp.org>
10269
10270         Ensure EBADF returns for socket functions on mingw.
10271         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10272         descriptor is invalid.
10273         * lib/bind.c (rpl_bind): Likewise.
10274         * lib/connect.c (rpl_connect): Likewise.
10275         * lib/getpeername.c (rpl_getpeername): Likewise.
10276         * lib/getsockname.c (rpl_getsockname): Likewise.
10277         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10278         * lib/listen.c (rpl_listen): Likewise.
10279         * lib/recv.c (rpl_recv): Likewise.
10280         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10281         * lib/send.c (rpl_send): Likewise.
10282         * lib/sendto.c (rpl_sendto): Likewise.
10283         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10284         * lib/shutdown.c (rpl_shutdown): Likewise.
10285
10286 2011-09-20  Bruno Haible  <bruno@clisp.org>
10287
10288         select tests: EBADF tests.
10289         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10290         test_bad_fd): New functions.
10291         (test_function): Invoke also test_bad_fd.
10292
10293 2011-09-20  Bruno Haible  <bruno@clisp.org>
10294
10295         Tests for module 'posix_spawn_file_actions_addopen.
10296         * modules/posix_spawn_file_actions_addopen-tests: New file.
10297         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10298
10299         Tests for module 'posix_spawn_file_actions_adddup2'.
10300         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10301         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10302
10303         Tests for module 'posix_spawn_file_actions_addclose'.
10304         * modules/posix_spawn_file_actions_addclose-tests: New file.
10305         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10306
10307 2011-09-20  Bruno Haible  <bruno@clisp.org>
10308
10309         Tests for module 'unlockpt'.
10310         * modules/unlockpt-tests: New file.
10311         * tests/test-unlockpt.c: New file.
10312         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10313
10314         Tests for module 'grantpt'.
10315         * modules/grantpt-tests: New file.
10316         * tests/test-grantpt.c: New file.
10317         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10318
10319 2011-09-20  Bruno Haible  <bruno@clisp.org>
10320
10321         freopen tests: EBADF tests.
10322         * tests/test-freopen.c: Include errno.h, unistd.h.
10323         (main): Add tests for EBADF, commented out for the moment.
10324
10325         fclose tests: EBADF tests.
10326         * tests/test-fclose.c (main): Add tests for EBADF.
10327
10328         fflush tests: EBADF tests.
10329         * tests/test-fflush.c: Include errno.h, macros.h.
10330         (main): Add tests for EBADF.
10331
10332         ftello tests: EBADF tests.
10333         * tests/test-ftello4.sh: New file.
10334         * tests/test-ftello4.c: New file.
10335         * modules/ftello-tests (Files): Add them.
10336         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10337
10338         fseeko tests: EBADF tests.
10339         * tests/test-fseeko4.sh: New file.
10340         * tests/test-fseeko4.c: New file.
10341         * modules/fseeko-tests (Files): Add them.
10342         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10343
10344         Tests for function fputc().
10345         * modules/fputc-tests: New file.
10346         * tests/test-fputc.c: New file.
10347         * modules/stdio-tests (Depends-on): Add fputc-tests.
10348
10349         Tests for function fgetc().
10350         * modules/fgetc-tests: New file.
10351         * tests/test-fgetc.c: New file.
10352         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10353
10354         Tests for function fdopen().
10355         * modules/fdopen-tests: New file.
10356         * tests/test-fdopen.c: New file.
10357         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10358
10359         Tests for module 'vdprintf'.
10360         * modules/vdprintf-tests: New file.
10361         * tests/test-vdprintf.c: New file.
10362
10363         Tests for module 'dprintf'.
10364         * modules/dprintf-tests: New file.
10365         * tests/test-dprintf.c: New file.
10366
10367 2011-09-20  Bruno Haible  <bruno@clisp.org>
10368
10369         Tests for module 'ioctl'.
10370         * modules/ioctl-tests: New file.
10371         * tests/test-ioctl.c: New file.
10372
10373 2011-09-20  Bruno Haible  <bruno@clisp.org>
10374
10375         fcntl tests: EBADF tests.
10376         * tests/test-fcntl.c (main): Add more tests for EBADF.
10377
10378 2011-09-20  Bruno Haible  <bruno@clisp.org>
10379
10380         utimensat tests: EBADF tests.
10381         * tests/test-utimensat.c (main): Add tests for EBADF.
10382
10383         renameat tests: EBADF tests.
10384         * tests/test-renameat.c (main): Add tests for EBADF.
10385
10386         mkfifoat tests: EBADF tests.
10387         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10388
10389         readlinkat tests: EBADF tests.
10390         * tests/test-readlinkat.c (main): Add tests for EBADF.
10391
10392         symlinkat tests: EBADF tests.
10393         * tests/test-symlinkat.c (main): Add tests for EBADF.
10394
10395         linkat tests: EBADF tests.
10396         * tests/test-linkat.c (main): Add tests for EBADF.
10397
10398         Tests for module 'faccessat'.
10399         * modules/faccessat-tests: New file.
10400         * tests/test-faccessat.c: New file.
10401
10402         fdopendir tests: EBADF tests.
10403         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10404
10405         openat tests: EBADF tests.
10406         * tests/test-fchownat.c (main): Add tests for EBADF.
10407         * tests/test-fstatat.c (main): Likewise.
10408         * tests/test-mkdirat.c (main): Likewise.
10409         * tests/test-openat.c (main): Likewise.
10410         * tests/test-unlinkat.c (main): Likewise.
10411         * tests/test-fchmodat.c: New file.
10412         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10413         (Makefile.am): Also run 'test-fchmodat'.
10414
10415 2011-09-20  Bruno Haible  <bruno@clisp.org>
10416
10417         utimens, futimens, fdutimensat tests: EBADF tests.
10418         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10419
10420         Tests for function fstat().
10421         * modules/fstat-tests: New file.
10422         * tests/test-fstat.c: New file.
10423         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10424
10425 2011-09-20  Bruno Haible  <bruno@clisp.org>
10426
10427         test-ttyname_r tests: EBADF tests.
10428         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10429
10430         Tests for module 'isatty'.
10431         * modules/isatty-tests: New file.
10432         * tests/test-isatty.c: New file.
10433
10434         Tests for module 'write'.
10435         * modules/write-tests: New file.
10436         * tests/test-write.c: New file.
10437
10438         Tests for module 'read'.
10439         * modules/read-tests: New file.
10440         * tests/test-read.c: New file.
10441
10442         pwrite tests: EBADF tests.
10443         * tests/test-pwrite.c (main): Add tests for EBADF.
10444
10445         pread tests: EBADF tests.
10446         * tests/test-pread.c (main): Add tests for EBADF.
10447
10448         lseek tests: EBADF tests.
10449         * tests/test-lseek.c (main): Add more tests for EBADF.
10450
10451         Tests for module 'ftruncate'.
10452         * modules/ftruncate-tests: New file.
10453         * tests/test-ftruncate.sh: New file.
10454         * tests/test-ftruncate.c: New file.
10455
10456         fsync tests: EBADF tests.
10457         * tests/test-fsync.c (main): Add more tests for EBADF.
10458
10459         fdatasync tests: EBADF tests.
10460         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10461
10462         Tests for module 'fchown'.
10463         * modules/fchown-tests: New file.
10464         * tests/test-fchown.c: New file.
10465
10466         Tests for module 'fchmod'.
10467         * modules/fchmod-tests: New file.
10468         * tests/test-fchmod.c: New file.
10469
10470         fchdir tests: EBADF tests.
10471         * tests/test-fchdir.c (main): Add more tests for EBADF.
10472
10473         dup2 tests: EBADF tests.
10474         * tests/test-dup2.c (main): Add more tests for EBADF.
10475
10476         Tests for module 'dup'.
10477         * modules/dup-tests: New file.
10478         * tests/test-dup.c: New file.
10479
10480         Tests for module 'close'.
10481         * modules/close-tests: New file.
10482         * tests/test-close.c: New file.
10483
10484 2011-09-20  Bruno Haible  <bruno@clisp.org>
10485
10486         Tests for module 'shutdown'.
10487         * modules/shutdown-tests: New file.
10488         * tests/test-shutdown.c: New file.
10489
10490         Tests for module 'setsockopt'.
10491         * modules/setsockopt-tests: New file.
10492         * tests/test-setsockopt.c: New file.
10493
10494         Tests for module 'sendto'.
10495         * modules/sendto-tests: New file.
10496         * tests/test-sendto.c: New file.
10497
10498         Tests for module 'send'.
10499         * modules/send-tests: New file.
10500         * tests/test-send.c: New file.
10501
10502         Tests for module 'recvfrom'.
10503         * modules/recvfrom-tests: New file.
10504         * tests/test-recvfrom.c: New file.
10505
10506         Tests for module 'recv'.
10507         * modules/recv-tests: New file.
10508         * tests/test-recv.c: New file.
10509
10510         Tests for module 'listen'.
10511         * modules/listen-tests: New file.
10512         * tests/test-listen.c: New file.
10513
10514         Tests for module 'getsockopt'.
10515         * modules/getsockopt-tests: New file.
10516         * tests/test-getsockopt.c: New file.
10517
10518         Tests for module 'getsockname'.
10519         * modules/getsockname-tests: New file.
10520         * tests/test-getsockname.c: New file.
10521
10522         Tests for module 'getpeername'.
10523         * modules/getpeername-tests: New file.
10524         * tests/test-getpeername.c: New file.
10525
10526         Tests for module 'connect'.
10527         * modules/connect-tests: New file.
10528         * tests/test-connect.c: New file.
10529
10530         Tests for module 'bind'.
10531         * modules/bind-tests: New file.
10532         * tests/test-bind.c: New file.
10533
10534         accept4 tests: Fix for native Windows.
10535         * tests/test-accept4.c: Include sockets.h.
10536         (main): Invoke gl_sockets_startup.
10537         * modules/accept4-tests (Depends-on): Add sockets.
10538
10539         accept tests: Fix for native Windows.
10540         * tests/test-accept.c: Include sockets.h.
10541         (main): Invoke gl_sockets_startup.
10542         * modules/accept-tests (Depends-on): Add sockets.
10543
10544 2011-09-19  Bruno Haible  <bruno@clisp.org>
10545
10546         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10547         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10548         do...while(0).
10549         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10550         Suggested by Paul Eggert.
10551
10552 2011-09-19  Bruno Haible  <bruno@clisp.org>
10553
10554         sched: Ensure pid_t is defined.
10555         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10556         not define pid_t.
10557         * lib/sched.in.h: Include <sys/types.h>.
10558         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10560
10561 2011-09-19  Bruno Haible  <bruno@clisp.org>
10562
10563         msvc-inval: Ensure the entire expansion is a single statement.
10564         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10565         of braces.
10566
10567 2011-09-19  Jim Meyering  <meyering@redhat.com>
10568
10569         tests: use printf, not echo in init.sh's warn_ function
10570         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10571         misbehave when given strings containing a backslash or starting
10572         with e.g., -n.  James Youngman suggested setting IFS.
10573
10574 2011-09-19  Eric Blake  <eblake@redhat.com>
10575
10576         futimens: enhance test
10577         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10578         closed non-negative fd.
10579
10580         date: accept 'hence' as opposite of 'ago'
10581         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10582         * tests/test-parse-datetime.c (main): Enhance test.
10583         Suggested by Jesse Wilson.
10584
10585 2011-09-19  Jim Meyering  <meyering@redhat.com>
10586
10587         getcwd: don't fail in a deep directory on a system without openat
10588         Before this change, getcwd would fail when called from a directory
10589         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10590         the non-openat implementation used "..", "../..", "../../..", etc.
10591         to access ancestor directories.  With too many, that string would
10592         be longer than PATH_MAX.
10593         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10594         using gnulib's openat replacement.
10595         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10596         we're using the replacement function.
10597
10598 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10599
10600         maint.mk: avoid warnings from perl about missing files
10601         * top/maint.mk (def_sym_regex): Ignore files listed in
10602         $(gl_other_headers_) that do not exist, say because a project
10603         does not use a corresponding module.
10604
10605 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10606
10607         stat: use pathmax.h only if needed
10608         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10609         This is better for Emacs, which does not have a mingw port and
10610         therefore can avoid the pathmax module.
10611
10612         utimens: remove dependency on dup2
10613         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10614         to work around the Linux kernel bug.
10615         * modules/utimens (Depends-on): Remove dup2.
10616
10617 2011-09-18  Bruno Haible  <bruno@clisp.org>
10618
10619         inet_ntop, inet_pton: Look for it also in libresolv.
10620         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10621         libnsl, search for it in libresolv.
10622         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10623         Needed on Solaris 7.
10624
10625 2011-09-18  Bruno Haible  <bruno@clisp.org>
10626
10627         accept, accept4 tests: Avoid link error on Solaris.
10628         * modules/accept-tests (Makefile.am): Link test-accept against
10629         $(LIBSOCKET).
10630         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10631         $(LIBSOCKET).
10632
10633         accept4: Avoid link error on Solaris.
10634         * modules/accept4 (Link): New section.
10635
10636         socket functions: Avoid link errors on Solaris.
10637         * modules/accept (Depends-on): Add socketlib.
10638         (Link): New section.
10639         * modules/bind (Depends-on): Add socketlib.
10640         (Link): New section.
10641         * modules/connect (Depends-on): Add socketlib.
10642         (Link): New section.
10643         * modules/getpeername (Depends-on): Add socketlib.
10644         (Link): New section.
10645         * modules/getsockname (Depends-on): Add socketlib.
10646         (Link): New section.
10647         * modules/getsockopt (Depends-on): Add socketlib.
10648         (Link): New section.
10649         * modules/listen (Depends-on): Add socketlib.
10650         (Link): New section.
10651         * modules/recv (Depends-on): Add socketlib.
10652         (Link): New section.
10653         * modules/recvfrom (Depends-on): Add socketlib.
10654         (Link): New section.
10655         * modules/send (Depends-on): Add socketlib.
10656         (Link): New section.
10657         * modules/sendto (Depends-on): Add socketlib.
10658         (Link): New section.
10659         * modules/setsockopt (Depends-on): Add socketlib.
10660         (Link): New section.
10661         * modules/shutdown (Depends-on): Add socketlib.
10662         (Link): New section.
10663         * modules/socket (Depends-on): Add socketlib.
10664         (Link): New section.
10665
10666 2011-09-18  Bruno Haible  <bruno@clisp.org>
10667
10668         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10669         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10670         than 5 seconds.
10671         * modules/ptsname-tests (configure.ac): Test for alarm.
10672
10673 2011-09-18  Bruno Haible  <bruno@clisp.org>
10674
10675         posix_spawn_file_actions_add*: Fix module dependencies.
10676         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10677         posix_spawn_file_actions_init.
10678         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10679         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10680
10681 2011-09-18  Bruno Haible  <bruno@clisp.org>
10682
10683         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10684         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10685         * tests/test-renameat.c (main): Likewise.
10686
10687 2011-09-18  Bruno Haible  <bruno@clisp.org>
10688
10689         Tests for module 'accept4'.
10690         * modules/accept4-tests: New file.
10691         * tests/test-accept4.c: New file.
10692
10693 2011-09-18  Bruno Haible  <bruno@clisp.org>
10694
10695         Tests for module 'accept'.
10696         * modules/accept-tests: New file.
10697         * tests/test-accept.c: New file.
10698
10699 2011-09-18  Bruno Haible  <bruno@clisp.org>
10700
10701         dup2: Support for MSVC.
10702         * lib/dup2.c: Include msvc-inval.h.
10703         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10704         _get_osfhandle calls.
10705         * modules/dup2 (Depends-on): Add msvc-inval.
10706         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10707
10708         New module 'msvc-inval'.
10709         * lib/msvc-inval.h: New file.
10710         * lib/msvc-inval.c: New file.
10711         * m4/msvc-inval.m4: New file.
10712         * modules/msvc-inval: New file.
10713
10714 2011-09-17  Bruno Haible  <bruno@clisp.org>
10715
10716         Tests for module 'pclose'.
10717         * modules/pclose-tests: New file.
10718
10719         New module 'pclose'.
10720         * lib/stdio.in.h (pclose): New declaration.
10721         * lib/pclose.c: New file.
10722         * m4/pclose.m4: New file.
10723         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10724         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10725         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10726         * modules/pclose: New file.
10727         * modules/popen-tests (Depends-on): Add pclose.
10728         * modules/popen-safer-tests (Depends-on): Likewise.
10729         * doc/posix-functions/pclose.texi: Mention the new module.
10730
10731 2011-09-17  Bruno Haible  <bruno@clisp.org>
10732
10733         popen: Support for MSVC.
10734         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10735         * lib/popen.c (popen): Provide alternate definition for native Windows.
10736         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10738         * modules/popen (Depends-on, configure.ac): Update condition.
10739         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10740         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10741         fixed.
10742
10743 2011-09-17  Bruno Haible  <bruno@clisp.org>
10744
10745         isnanl, isnand, isnanf: Work around MSVC bug.
10746         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10747
10748 2011-09-17  Bruno Haible  <bruno@clisp.org>
10749
10750         sys_socket tests: Fix recent mistake.
10751         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10752
10753 2011-09-17  Bruno Haible  <bruno@clisp.org>
10754
10755         putenv: Support for MSVC.
10756         * modules/putenv (Depends-on): Add environ.
10757         * lib/putenv.c (environ): Disable declaration.
10758         * lib/unistd.in.h: Update comment.
10759
10760 2011-09-17  Bruno Haible  <bruno@clisp.org>
10761
10762         math: Avoid macro redefinition warnings on MSVC.
10763         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10764         Undefine before redefining.
10765
10766 2011-09-17  Bruno Haible  <bruno@clisp.org>
10767
10768         doc: Mention functions which are declared as macros.
10769         * doc/posix-functions/*[fl].texi: Mention that some functions are
10770         defined as macros with arguments only.
10771
10772 2011-09-17  Bruno Haible  <bruno@clisp.org>
10773
10774         Add dependencies to new dirent related modules.
10775         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10776         * modules/fts (Depends-on): Likewise.
10777         * modules/glob (Depends-on): Likewise.
10778         * modules/savedir (Depends-on): Likewise.
10779         * modules/scandir (Depends-on): Likewise.
10780         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10781         * modules/fdopendir (Depends-on): Add opendir.
10782
10783 2011-09-17  Bruno Haible  <bruno@clisp.org>
10784
10785         inet_pton: Support for MSVC on Windows Vista or newer.
10786         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10787         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10788         HAVE_DECL_INET_PTON is defined.
10789         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10790         On platforms with <winsock2.h>, test whether inet_pton is declared in
10791         <ws2tcpip.h>. If so, arrange to replace it.
10792         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10793         REPLACE_INET_PTON.
10794         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10795         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10796         (Depends-on, configure.ac): Update condition.
10797         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10798
10799 2011-09-17  Bruno Haible  <bruno@clisp.org>
10800
10801         inet_ntop: Support for MSVC on Windows Vista or newer.
10802         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10803         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10804         HAVE_DECL_INET_NTOP is defined.
10805         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10806         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10807         <ws2tcpip.h>. If so, arrange to replace it.
10808         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10809         REPLACE_INET_NTOP.
10810         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10811         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10812         (Depends-on, configure.ac): Update condition.
10813         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10814
10815 2011-09-16  Eric Blake  <eblake@redhat.com>
10816
10817         test-fsync: yet another enhancement
10818         * tests/test-fsync.c (main): Also test behavior on read-only text
10819         file.
10820
10821 2011-09-16  Bruno Haible  <bruno@clisp.org>
10822
10823         Enhance fsync, fdatasync tests.
10824         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10825         * tests/test-fdatasync.c (main): Likewise.
10826
10827 2011-09-16  Bruno Haible  <bruno@clisp.org>
10828
10829         Support for MSVC compiler: Ensure mode_t gets defined.
10830         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10831         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10833         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10834         * tests/test-fcntl-h.c: Check that mode_t is defined.
10835         * tests/test-sys_stat.c: Likewise.
10836         * tests/test-sys_types.c: Likewise.
10837         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10838         * doc/posix-headers/sys_stat.texi: Likewise.
10839         * doc/posix-headers/sys_types.texi: Likewise.
10840
10841 2011-09-16  Bruno Haible  <bruno@clisp.org>
10842
10843         sys_stat: Support for MSVC.
10844         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10845         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10846         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10847         MSVC.
10848
10849 2011-09-16  Bruno Haible  <bruno@clisp.org>
10850
10851         Support for MSVC compiler: Ensure off_t gets defined.
10852         * lib/unistd.in.h: Include <sys/types.h>.
10853         * tests/test-fcntl-h.c: Check that off_t is defined.
10854         * tests/test-sys_stat.c: Likewise.
10855         * tests/test-sys_types.c: Likewise.
10856
10857 2011-09-16  Eric Blake  <eblake@redhat.com>
10858
10859         fdatasync: port to Solaris
10860         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10861         * modules/fdatasync (Link): Document it.
10862         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10863
10864         fdatasync: port to MacOS X 10.7
10865         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10866         declared.
10867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10868         * modules/unistd (Makefile.am): Substitute it.
10869         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10870         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10871
10872         fdatasync: minor improvements
10873         * modules/fdatasync (Depends-on): Add condition for fsync.
10874         * lib/fdatasync.c (fdatasync): Add comment.
10875         * tests/test-unistd-c++.cc: Test fdatasync.
10876
10877         unistd: update refs to newer POSIX
10878         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10879         Suggested by Bruno Haible.
10880
10881         fdatasync: new module
10882         * modules/fsync (Description): Document difference to fdatasync.
10883         * modules/fdatasync: New module.
10884         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10885         * lib/fdatasync.c (fdatasync): Likewise.
10886         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10887         defaults.
10888         * modules/unistd (Makefile.am): Set witnesses.
10889         * lib/unistd.in.h (fdatasync): Declare.
10890         * MODULES.html.sh: Document it.
10891         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10892         * modules/fdatasync-tests: New test.
10893         * tests/test-fdatasync.c: Likewise.
10894
10895 2011-09-16  Eric Blake  <eblake@redhat.com>
10896
10897         test-fsync: enhance tests
10898         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10899         * tests/test-fsync.c (main): Enhance test.
10900
10901 2011-09-15  Bruno Haible  <bruno@clisp.org>
10902
10903         Support for MSVC compiler: Ensure ssize_t gets defined.
10904         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10905         * doc/posix-headers/stdio.texi: Likewise.
10906         * modules/stdio (Depends-on): Add ssize_t.
10907         * modules/sys_socket (Depends-on): Likewise.
10908         * modules/sys_types (Depends-on): Likewise.
10909         * modules/sys_uio (Depends-on): Likewise.
10910         * modules/unistd (Depends-on): Likewise.
10911         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10912         * tests/test-sys_types.c: Check that ssize_t is defined.
10913
10914 2011-09-14  Bruno Haible  <bruno@clisp.org>
10915
10916         Avoid using #, the m4 comment starter character, near brackets.
10917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10918         delimiter character in sed expressions.
10919         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10920         Suggested by Eric Blake.
10921
10922         Properly quote AC_CHECK_DECLS' 4th argument.
10923         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10924         argument.
10925         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10926         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10927         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10928         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10929         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10930         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10932         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10933         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10934         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10935         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10936         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10937         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10938         * m4/isinf.m4 (gl_ISINF): Likewise.
10939         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10940         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10942         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10943         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10945         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10946         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10947         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10948         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10952         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10954         Reported by Eric Blake.
10955
10956         Properly quote AC_CHECK_DECL's 4th argument.
10957         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10958         argument.
10959         * m4/argp.m4 (gl_ARGP): Likewise.
10960         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10961         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10962         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10963         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10964         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10965         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10966         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10967         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10969         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10970         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10971         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10972         Reported by Eric Blake.
10973
10974 2011-09-14  Eric Blake  <eblake@redhat.com>
10975
10976         opendir: avoid compile warning
10977         * lib/opendir.c (includes): Always include errno.h.
10978         Reported by Tatsuro MATSUOKA.
10979
10980 2011-09-14  Jim Meyering  <meyering@redhat.com>
10981
10982         maint.mk: sc_tight_scope: propagate failure from sub-make
10983         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10984         Reported by Martin von Gagern.
10985
10986 2011-09-13  Bruno Haible  <bruno@clisp.org>
10987
10988         tempname: Support for MSVC.
10989         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10990         MSVC.
10991         * modules/tempname (Depends-on): Add fcntl-h.
10992
10993 2011-09-13  Bruno Haible  <bruno@clisp.org>
10994
10995         sys_time: Support for MSVC.
10996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10997         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10998         include <winsock2.h>.
10999         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11000         function declarations that collide with POSIX.
11001         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11002         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11003
11004 2011-09-13  Bruno Haible  <bruno@clisp.org>
11005
11006         stat: Support for MSVC.
11007         * lib/stat.c: Include pathmax.h.
11008         * modules/stat (Depends-on): Add pathmax.
11009
11010         pathmax: Support for native Windows.
11011         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11012
11013 2011-09-12  Bruno Haible  <bruno@clisp.org>
11014
11015         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11016         * lib/dirent.in.h (struct dirent): New type.
11017         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11018         DT_WHT): New macros.
11019         (DIR): New type.
11020         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11021         (readdir, rewinddir): New declarations.
11022         * lib/dirent-private.h: New file.
11023         * lib/opendir.c: New file.
11024         * lib/readdir.c: New file.
11025         * lib/rewinddir.c: New file.
11026         * lib/closedir.c: New file.
11027         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11028         * m4/opendir.m4: New file.
11029         * m4/readdir.m4: New file.
11030         * m4/rewinddir.m4: New file.
11031         * m4/closedir.m4: New file.
11032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11033         REPLACE_CLOSEDIR here.
11034         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11035         readdir, rewinddir are declared.
11036         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11037         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11038         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11039         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11040         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11041         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11042         * modules/opendir: New file.
11043         * modules/readdir: New file.
11044         * modules/rewinddir: New file.
11045         * modules/closedir: New file.
11046         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11047         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11048         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11049         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11050         * NEWS: Mention the 'fchdir' change.
11051
11052 2011-09-11  Bruno Haible  <bruno@clisp.org>
11053
11054         asm-underscore.m4: Support for MSVC.
11055         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11056         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11057
11058 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11059
11060         Doc about crypt functions.
11061         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11062         needing for _GNU_SOURCE to get crypt.
11063         * doc/posix-functions/encrypt.texi: Likewise.
11064         * doc/posix-functions/setkey.texi: Likewise.
11065
11066 2011-09-11  Bruno Haible  <bruno@clisp.org>
11067
11068         doc: Update regarding MSVC 9.
11069         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11070         tested".
11071         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11072         * doc/posix-headers/*.texi: Likewise.
11073         * doc/pastposix-functions/*.texi: Likewise.
11074         * doc/glibc-functions/*.texi: Likewise.
11075         * doc/glibc-headers/*.texi: Likewise.
11076
11077 2011-09-11  Bruno Haible  <bruno@clisp.org>
11078
11079         unistd et al.: Don't assume <unistd.h> exists.
11080         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11081         does not exist.
11082         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11083         exist. But include <stdlib.h>.
11084         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11085         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11086         symlink() does not exist.
11087         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11088         include <io.h> instead.
11089         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11090         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11091         include <direct.h> instead.
11092         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11094         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11095         <io.h> instead.
11096         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11097         correctly if the system does not have hard links.
11098         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11099         <direct.h> instead.
11100         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11101         it when looking for function declarations.
11102         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11103         <direct.h> and <io.h> instead.
11104         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11105
11106 2011-09-11  Bruno Haible  <bruno@clisp.org>
11107
11108         strcase: Support for MSVC.
11109         * modules/strcase (Status, Notice): Remove obsoletion mark.
11110         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11111         * doc/posix-functions/strncasecmp.texi: Likewise.
11112
11113         strings: Don't assume <strings.h> exists.
11114         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11115         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11116         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11117         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11118
11119 2011-09-11  Bruno Haible  <bruno@clisp.org>
11120
11121         dirent: Don't assume <dirent.h> exists.
11122         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11123         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11124         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11125         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11126
11127 2011-09-11  Bruno Haible  <bruno@clisp.org>
11128
11129         Fix wint_t on MSVC.
11130         * lib/wchar.in.h (wint_t): On MSVC, override it.
11131         * lib/wctype.in.h (wint_t): Likewise.
11132         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11133         MSVC.
11134         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11135         * doc/posix-headers/wctype.texi: Likewise.
11136
11137 2011-09-11  Bruno Haible  <bruno@clisp.org>
11138
11139         sys_types: Fix typo.
11140         * lib/sys_types.in.h: Fix typo in comment.
11141         Reported by Paul Eggert.
11142
11143         Support for MSVC compiler: Ensure size_t gets defined.
11144         * modules/strings (Depends-on): Add 'sys_types'.
11145         * modules/sys_uio (Depends-on): Likewise.
11146         * lib/sys_uio.in.h: Update comment.
11147
11148         C++ tests for module 'sys_types'.
11149         * modules/sys_types-c++-tests: New file.
11150         * tests/test-sys_types-c++.cc: New file.
11151
11152         Tests for module 'sys_types'.
11153         * modules/sys_types-tests: New file.
11154         * tests/test-sys_types.c: New file.
11155
11156         New module 'sys_types'.
11157         * lib/sys_types.in.h: New file.
11158         * m4/sys_types_h.m4: New file.
11159         * modules/sys_types: New file.
11160         * doc/posix-headers/sys_types.texi: Mention the new module and the
11161         size_t problem on MSVC 9.
11162
11163 2011-09-11  Bruno Haible  <bruno@clisp.org>
11164
11165         Support for MSVC compiler: Avoid division by a literal 0.
11166         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11168         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11169         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11170         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11171         * tests/infinity.h: New file.
11172         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11173         on MSVC.
11174         * tests/test-ceilf1.c: Include infinity.h.
11175         (main): Use Infinityf.
11176         * tests/test-ceil1.c: Include infinity.h.
11177         (main): Use Infinityd.
11178         * tests/test-ceill.c: Include infinity.h.
11179         (main): Use Infinityl.
11180         * tests/test-dprintf-posix.c: Include infinity.h.
11181         (test_function): Use Infinityd.
11182         * tests/test-floorf1.c: Include infinity.h.
11183         (main): Use Infinityf.
11184         * tests/test-floor1.c: Include infinity.h.
11185         (main): Use Infinityd.
11186         * tests/test-floorl.c: Include infinity.h.
11187         (main): Use Infinityl.
11188         * tests/test-fprintf-posix.c: Include infinity.h.
11189         (test_function): Use Infinityd.
11190         * tests/test-frexp.c: Include infinity.h.
11191         (main): Use Infinityd.
11192         * tests/test-frexpl.c: Include infinity.h.
11193         (main): Use Infinityl.
11194         * tests/test-isfinite.c: Include infinity.h.
11195         (test_isfinitef): Use Infinityf.
11196         (test_isfinited): Use Infinityd.
11197         (test_isfinitel): Use Infinityl.
11198         * tests/test-isinf.c: Include infinity.h.
11199         (test_isinff): Use Infinityf.
11200         (test_isinfd): Use Infinityd.
11201         (test_isinfl): Use Infinityl.
11202         * tests/test-isnan.c: Include infinity.h.
11203         (test_float): Use Infinityf.
11204         (test_double): Use Infinityd.
11205         (test_long_double): Use Infinityl.
11206         * tests/test-isnanf.h: Include infinity.h.
11207         (main): Use Infinityf.
11208         * tests/test-isnand.h: Include infinity.h.
11209         (main): Use Infinityd.
11210         * tests/test-isnanl.h: Include infinity.h.
11211         (main): Use Infinityl.
11212         * tests/test-ldexpl.c: Include infinity.h.
11213         (main): Use Infinityl.
11214         * tests/test-printf-posix.h: Include infinity.h.
11215         (test_function): Use Infinityd.
11216         * tests/test-roundf1.c: Include infinity.h.
11217         (main): Use Infinityf.
11218         * tests/test-round1.c: Include infinity.h.
11219         (main): Use Infinityd.
11220         * tests/test-roundl.c: Include infinity.h.
11221         (main): Use Infinityl.
11222         * tests/test-signbit.c: Include infinity.h.
11223         (test_signbitf): Use Infinityf.
11224         (test_signbitd): Use Infinityd.
11225         (test_signbitl): Use Infinityl.
11226         * tests/test-snprintf-posix.h: Include infinity.h.
11227         (test_function): Use Infinityd, Infinityl.
11228         * tests/test-sprintf-posix.h: Include infinity.h.
11229         (test_function): Use Infinityd, Infinityl.
11230         * tests/test-truncf1.c: Include infinity.h.
11231         (main): Use Infinityf.
11232         * tests/test-trunc1.c: Include infinity.h.
11233         (main): Use Infinityd.
11234         * tests/test-truncl.c: Include infinity.h.
11235         (main): Use Infinityl.
11236         * tests/test-vasnprintf-posix.c: Include infinity.h.
11237         (test_function): Use Infinityd, Infinityl.
11238         * tests/test-vasprintf-posix.c: Include infinity.h.
11239         (test_function): Use Infinityd, Infinityl.
11240         * modules/ceilf-tests (Files): Add tests/infinity.h.
11241         * modules/ceil-tests (Files): Likewise.
11242         * modules/ceill-tests (Files): Likewise.
11243         * modules/dprintf-posix-tests (Files): Likewise.
11244         * modules/floorf-tests (Files): Likewise.
11245         * modules/floor-tests (Files): Likewise.
11246         * modules/floorl-tests (Files): Likewise.
11247         * modules/fprintf-posix-tests (Files): Likewise.
11248         * modules/frexp-tests (Files): Likewise.
11249         * modules/frexp-nolibm-tests (Files): Likewise.
11250         * modules/frexpl-tests (Files): Likewise.
11251         * modules/frexpl-nolibm-tests (Files): Likewise.
11252         * modules/isfinite-tests (Files): Likewise.
11253         * modules/isinf-tests (Files): Likewise.
11254         * modules/isnan-tests (Files): Likewise.
11255         * modules/isnanf-tests (Files): Likewise.
11256         * modules/isnanf-nolibm-tests (Files): Likewise.
11257         * modules/isnand-tests (Files): Likewise.
11258         * modules/isnand-nolibm-tests (Files): Likewise.
11259         * modules/isnanl-tests (Files): Likewise.
11260         * modules/isnanl-nolibm-tests (Files): Likewise.
11261         * modules/ldexpl-tests (Files): Likewise.
11262         * modules/printf-posix-tests (Files): Likewise.
11263         * modules/roundf-tests (Files): Likewise.
11264         * modules/round-tests (Files): Likewise.
11265         * modules/roundl-tests (Files): Likewise.
11266         * modules/signbit-tests (Files): Likewise.
11267         * modules/snprintf-posix-tests (Files): Likewise.
11268         * modules/sprintf-posix-tests (Files): Likewise.
11269         * modules/truncf-tests (Files): Likewise.
11270         * modules/trunc-tests (Files): Likewise.
11271         * modules/truncl-tests (Files): Likewise.
11272         * modules/vasnprintf-posix-tests (Files): Likewise.
11273         * modules/vasprintf-posix-tests (Files): Likewise.
11274         * modules/vdprintf-posix-tests (Files): Likewise.
11275         * modules/vfprintf-posix-tests (Files): Likewise.
11276         * modules/vprintf-posix-tests (Files): Likewise.
11277         * modules/vsnprintf-posix-tests (Files): Likewise.
11278         * modules/vsprintf-posix-tests (Files): Likewise.
11279         * modules/xprintf-posix-tests (Files): Likewise.
11280
11281 2011-09-11  Bruno Haible  <bruno@clisp.org>
11282
11283         Ensure pid_t gets defined.
11284         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11285         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11286         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11287         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11288         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11289         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11290         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11291         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11292         * tests/test-fcntl-h.c: Check that pid_t is defined.
11293         * tests/test-sched.c: Likewise.
11294         * tests/test-termios.c: Likewise.
11295         * tests/test-time.c: Likewise.
11296         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11297         * doc/posix-headers/signal.texi: Likewise.
11298         * doc/posix-headers/sys_types.texi: Likewise.
11299         * doc/posix-headers/time.texi: Likewise.
11300
11301 2011-09-11  Bruno Haible  <bruno@clisp.org>
11302
11303         acl: Fix compilation on Solaris 10 (older version).
11304         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11305         of ACE_EVERYONE.
11306         * lib/set-mode-acl.c (qset_acl): Likewise.
11307         Reported by Christian Jullien <eligis@orange.fr>.
11308
11309 2011-09-10  Bruno Haible  <bruno@clisp.org>
11310
11311         iconv, unsetenv: Add support for MSVC compiler.
11312         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11313         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11314
11315 2011-09-10  Bruno Haible  <bruno@clisp.org>
11316
11317         *printf: Add support for MSVC compiler.
11318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11319         handles the exception caused by the %n directive. When cross-compiling,
11320         guess no on native Windows.
11321         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11322         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11323         emulate it through vsnprintf.
11324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11325         * doc/posix-functions/dprintf.texi: Update documentation regarding
11326         MSVC 9.
11327         * doc/posix-functions/fprintf.texi: Likewise.
11328         * doc/posix-functions/printf.texi: Likewise.
11329         * doc/posix-functions/snprintf.texi: Likewise.
11330         * doc/posix-functions/sprintf.texi: Likewise.
11331         * doc/posix-functions/swprintf.texi: Likewise.
11332         * doc/posix-functions/vdprintf.texi: Likewise.
11333         * doc/posix-functions/vfprintf.texi: Likewise.
11334         * doc/posix-functions/vprintf.texi: Likewise.
11335         * doc/posix-functions/vsnprintf.texi: Likewise.
11336         * doc/posix-functions/vsprintf.texi: Likewise.
11337         * doc/glibc-functions/asprintf.texi: Likewise.
11338         * doc/glibc-functions/obstack_printf.texi: Likewise.
11339         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11340         * doc/glibc-functions/vasprintf.texi: Likewise.
11341
11342 2011-09-10  Bruno Haible  <bruno@clisp.org>
11343
11344         nocrash: Add support for native Windows.
11345         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11346
11347 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11348             Bruno Haible  <bruno@clisp.org>
11349
11350         absolute-header, include-next: Add support for MSVC compiler.
11351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11352         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11353         directory separator in #line directives.
11354         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11355         recognize also backslash as directory separator in #line directives.
11356
11357 2011-09-08  Jim Meyering  <meyering@redhat.com>
11358
11359         maint.mk: mark the post-release commit log with "maint: " prefix
11360         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11361         one-line commit-log summary.
11362
11363 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11364             Bruno Haible  <bruno@clisp.org>
11365
11366         Doc about crypt functions.
11367         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11368         systems.
11369         * doc/posix-functions/encrypt.texi: Likewise.
11370         * doc/posix-functions/setkey.texi: Likewise.
11371
11372 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11373
11374         * lib/gc.h: Fix copyright header.
11375
11376 2011-09-07  Bruno Haible  <bruno@clisp.org>
11377
11378         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11379         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11380         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11381
11382 2011-09-07  Bruno Haible  <bruno@clisp.org>
11383
11384         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11385         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11386         * lib/freopen.c: Likewise.
11387         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11388         * lib/lstat.c: Likewise.
11389         * lib/stat.c: Likewise.
11390         * lib/open.c: Use different syntax for include of <fcntl.h>.
11391         * lib/openat.c: Include fcntl.h again, explicitly.
11392
11393 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11394
11395         parse-datetime: document the newly accepted format
11396         * doc/parse-datetime.texi (Combined date and time of day items):
11397         New section.
11398
11399 2011-09-06  Bruno Haible  <bruno@clisp.org>
11400
11401         acl: Fix a test failure on newer Solaris 10 with ZFS.
11402         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11403         ENOSYS as no ACL.
11404         Reported by Jim Meyering.
11405
11406 2011-09-06  Bruno Haible  <bruno@clisp.org>
11407
11408         acl: Update for AIX >= 5.3 with NFS.
11409         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11410         ENOSYS as no ACL.
11411
11412         acl: Fix a test failure on AIX >= 5.3 with NFS.
11413         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11414         as no ACL.
11415
11416 2011-09-06  Bruno Haible  <bruno@clisp.org>
11417
11418         acl: Fix a test failure on IRIX 6.5 with NFS.
11419         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11420         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11421         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11422         * lib/copy-acl.c (qcopy_acl): Likewise.
11423
11424 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         openat: port to AIX 7.1 with large files
11427         AIX 7.1 does a "#define openat open64at" if large files are in use,
11428         so we can't simply #undef openat.  Use the orig_openat trick (similar
11429         to orig_open in lib/open.c) to work around the problem.  Problem
11430         reported by Kevin Brott for GNU tar, in the thread containing
11431         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11432         * lib/openat.c (__need_system_fcntl_h): Define first.
11433         Include <fcntl.h> and <sys/types.h> before undefining.
11434         (orig_openat) [HAVE_OPENAT]: New inline function.
11435         (openat) [HAVE_OPENAT]: Do not undef.
11436         (rpl_openat): Use orig_openat, not openat.
11437
11438 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11439             Bruno Haible  <bruno@clisp.org>
11440
11441         acl: Avoid errors on NonStop Kernel.
11442         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11443         ENOTSUP errors.
11444
11445 2011-09-05  Bruno Haible  <bruno@clisp.org>
11446
11447         acl: Clean up Solaris code.
11448         * lib/acl-internal.h: Remove no-op #if.
11449         * lib/file-has-acl.c: Likewise.
11450         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11451         * lib/copy-acl.c (qcopy_acl): Likewise.
11452
11453 2011-09-05  Bruno Haible  <bruno@clisp.org>
11454
11455         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11456         binaries built on the original Solaris 10.
11457         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11458         trivial.
11459
11460 2011-09-05  Bruno Haible  <bruno@clisp.org>
11461
11462         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11463         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11464         10.
11465         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11466         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11467         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11468         instead of acl_get, facl_get, acl_set, facl_set.
11469
11470 2011-09-05  Bruno Haible  <bruno@clisp.org>
11471
11472         copy-file: Try unit tests on more file systems.
11473         * tests/test-copy-file-1.sh: New file.
11474         * tests/test-copy-file-2.sh: New file.
11475         * modules/copy-file-tests (Files): Add them.
11476         (Makefile.am): Add them to TESTS.
11477
11478         acl: Try unit tests on more file systems.
11479         * tests/test-file-has-acl-1.sh: New file.
11480         * tests/test-file-has-acl-2.sh: New file.
11481         * tests/test-set-mode-acl-1.sh: New file.
11482         * tests/test-set-mode-acl-2.sh: New file.
11483         * tests/test-copy-acl-1.sh: New file.
11484         * tests/test-copy-acl-2.sh: New file.
11485         * modules/acl-tests (Files): Add them.
11486         (Makefile.am): Add them to TESTS.
11487
11488 2011-09-04  Bruno Haible  <bruno@clisp.org>
11489
11490         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11491         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11492         10.
11493         (OLD_ALLOW, OLD_DENY): New macros.
11494         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11495         ACE_ACCESS_ALLOWED_ACE_TYPE.
11496         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11497         ACE_ACCESS_DENIED_ACE_TYPE.
11498         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11499         (NEW_ACE_EXECUTE): Fix value.
11500         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11501         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11502         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11503         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11504         NEW_ACE_SYNCHRONIZE): New macros.
11505         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11506         instead of acl_fromtext, acl_set, facl_set.
11507         Fixes a coreutils/tests/cp/perm failure.
11508
11509 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11510
11511         openat: test for fstatat (..., 0) bug
11512         Further testing with tar suggests that fstatat (..., 0)
11513         does not work in general, on AIX 7.1; see
11514         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11515         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11516         replacement fstatat (which is what older AIX releases were using
11517         anyway).
11518         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11519         use is now changed to orig_fstatat.  This was probably the right
11520         thing to do anyway.
11521         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11522         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11523         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11524         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11525         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11526         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11527         if the bug is found.
11528
11529         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11530         This tests for another fstatat bug on AIX 7.1:
11531         fstatat (AT_FDCWD, ..., 0) does not work.  See
11532         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11533         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11534         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11535         (rpl_fstatat): Adjust so that it works around either (or both)
11536         bugs if present.
11537         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11538
11539 2011-09-03  Karl Berry  <karl@gnu.org>
11540
11541         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11542         in index entries.
11543
11544 2011-09-02  Bruno Haible  <bruno@clisp.org>
11545
11546         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11547         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11548         values of AR, ARFLAGS, RANLIB.
11549         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11550
11551 2011-09-02  Bruno Haible  <bruno@clisp.org>
11552
11553         Find 'ar' program that fits with --host argument.
11554         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11555
11556 2011-09-02  Bruno Haible  <bruno@clisp.org>
11557
11558         tests: init.sh: Support any non-GNU diff.
11559         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11560         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11561         Solaris 8.
11562
11563 2011-09-02  Bruno Haible  <bruno@clisp.org>
11564
11565         tests: init.sh: work also with any non-GNU diff that supports -u
11566         * tests/init.sh: Relax check for diff -u support.
11567         Rather than checking for GNU diff via --version, simply check
11568         for support for -u itself.  Useful at least on OpenBSD 4.9,
11569         AIX 7.1, IRIX 6.5, and Solaris 10.
11570
11571 2011-09-01  Bruno Haible  <bruno@clisp.org>
11572
11573         strtoimax, strtoumax: Document problem on HP-UX 11.
11574         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11575         * doc/posix-functions/strtoumax.texi: Likewise.
11576
11577 2011-09-01  Bruno Haible  <bruno@clisp.org>
11578
11579         strtoumax: Avoid link error on OSF/1 with DTK cc.
11580         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11581         defined as a function.
11582         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11583         strtoumax is defined, not whether it is declared.
11584
11585 2011-09-01  Bruno Haible  <bruno@clisp.org>
11586
11587         strtoimax: Avoid link error on OSF/1 with DTK cc.
11588         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11589         defined as a function.
11590         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11591         strtoimax is defined, not whether it is declared.
11592
11593 2011-09-01  Bruno Haible  <bruno@clisp.org>
11594
11595         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11596         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11597         as a function.
11598         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11599         whether it is declared.
11600
11601 2011-09-01  Bruno Haible  <bruno@clisp.org>
11602
11603         imaxabs: Avoid link error on OSF/1 with DTK cc.
11604         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11605         as a function.
11606         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11607         whether it is declared.
11608
11609 2011-09-01  Bruno Haible  <bruno@clisp.org>
11610
11611         Tests for module 'strtoumax'.
11612         * modules/strtoumax-tests: New file.
11613         * tests/test-strtoumax.c: New file.
11614
11615         Tests for module 'strtoimax'.
11616         * modules/strtoimax-tests: New file.
11617         * tests/test-strtoimax.c: New file.
11618
11619         Tests for module 'imaxdiv'.
11620         * modules/imaxdiv-tests: New file.
11621         * tests/test-imaxdiv.c: New file.
11622
11623         Tests for module 'imaxabs'.
11624         * modules/imaxabs-tests: New file.
11625         * tests/test-imaxabs.c: New file.
11626
11627 2011-09-01  Bruno Haible  <bruno@clisp.org>
11628
11629         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11631         pthread_create.
11632
11633 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         openat: work around AIX 7.1 fstatat issue
11636         This should fix the problem that was not properly fixed
11637         in the previous change, dated 2011-08-30.
11638         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11639         __need_system_stat_h defined.
11640         (orig_fstatat) [HAVE_FSTATAT]: New function.
11641         (rpl_fstatat): Go back to the old way of doing things,
11642         except call orig_fstatat instead of fstatat.
11643         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11644         Remove unnecessary check whether fstatat fills in st_size etc.
11645
11646 2011-09-01  Bruno Haible  <bruno@clisp.org>
11647
11648         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11649         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11650         just include the system's header.
11651
11652 2011-08-31  Jim Meyering  <meyering@redhat.com>
11653
11654         tests: avoid spurious assertion failure in test-float.c on ppc64
11655         * tests/test-float.c (test_long_double): Comment out an assertion,
11656         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11657         with gcc-4.4.4.
11658
11659         maint: indent with spaces, not TABs
11660         I need to get in the habit of running gnulib's "make check".
11661         Both of these would have been caught.
11662         * m4/largefile.m4: Indent with spaces, not TABs.
11663         * lib/parse-datetime.y (iso_8601_time): Likewise.
11664         Spotted by Pádraig Brady.
11665
11666         test-parse-datetime.c: accommodate a relatively strict gcc warning
11667         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11668         to avoid a warning from gcc's -Werror=missing-declarations.
11669         Insert a few spaces-before-funcall-parenthesis.
11670
11671 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11672
11673         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11674         The parser now accepts ISO 8601 date-time strings with "T" as the
11675         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11676         with a space between the date and time strings.  Now it also parses
11677         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11678         variants like "2004-02-29T16:21:42.333-07:00"
11679         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11680         of day representation using the 'T' separator character.
11681         * doc/parse-datetime.texi (General date syntax): replace use of
11682         deprecated --iso-8601 option with --rfc-3339 in example of date
11683         command output formats that can be parsed.
11684         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11685         lib/parse-datetime.y.
11686         (gmt_offset): New function.
11687         (main): Add additional test cases to validate ISO8601 extended
11688         date and time of day parsing.
11689
11690 2011-08-31  Bruno Haible  <bruno@clisp.org>
11691
11692         freopen: Documentation.
11693         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11694         name.
11695         Reported by Claudio Bley <claudio.bley@gmail.com>.
11696
11697 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11698
11699         freopen: Don't crash if the filename argument is NULL.
11700         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11701         NULL.
11702
11703 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11704
11705         openat: work around AIX 7.1 fstatat bug
11706         Problem reported by Kevin Brott for GNU tar, in the thread containing
11707         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11708         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11709         FSTATAT_ST_SIZE_ETC_BROKEN.
11710         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11711         rpl_fstatat.
11712         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11713         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11714         AC_CHECK_FUNCS_ONCE for fstatat.
11715         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11716         fchmodat, mkdirat, openat and unlinkat.
11717
11718 2011-08-30  Bruno Haible  <bruno@clisp.org>
11719
11720         Avoid endless recursions if config.h includes some header files.
11721         * lib/fopen.c (__need_FILE): Define already before including config.h.
11722         * lib/freopen.c (__need_FILE): Likewise.
11723         * lib/open.c (__need_system_fcntl_h): Likewise.
11724         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11725         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11726         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11727
11728 2011-08-25  Karl Berry  <karl@gnu.org>
11729
11730         * config/srclist.txt (ylwrap): new try.
11731         * build-aux/ylwrap: new file.
11732
11733 2011-08-23  Bruno Haible  <bruno@clisp.org>
11734
11735         tmpdir: Use a good default directory on native Windows.
11736         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11737         (P_tmpdir): Default to _P_tmpdir on native Windows.
11738         (path_search): On native Windows, try the value returned by GetTempPath
11739         before trying P_tmpdir.
11740         * modules/tmpdir (Depends-on): Add pathmax.
11741         Suggested by John Darrington <john@darrington.wattle.id.au>.
11742
11743 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11744
11745         doc: fix typo in README-release
11746         * top/README-release: Capitalize first word of a sentence.
11747
11748 2011-08-19  Jim Meyering  <meyering@redhat.com>
11749
11750         fts: do not exhaust memory when processing million-entry directories
11751         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11752         directory would require about 256*N bytes of memory.  Thus, it was
11753         easy to construct a directory too large to be processed by any of
11754         those tools.  With this change, fts' maximum memory utilization is
11755         now limited to around 30MB.
11756         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11757         (fts_read): When we've processed the final entry (i.e., when
11758         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11759         using the parent entry to read any remaining entries.  Dispatch
11760         depending on what fts_build returns:
11761         - NULL+stop, aka failure: stop
11762         - NULL otherwise: move up in the dir hierarchy
11763         - non-NULL: handle this new entry
11764         (fts_build): Declare and use new local, continue_readdir.
11765         Prepare to be called from fts_read, when the entries
11766         from a partially-read directory have just been exhausted.
11767         In that case, we'll skip the opendir and instead use the parent's
11768         fts_dirp and derive dir_fd from that.
11769         Finally, in the readdir loop, if we read max_entries entries,
11770         exit the loop ensuring *not* to call closedir.  This is required
11771         so that fts_dirp can be reused on a subsequent call.
11772         Prompted by Ben England's report of memory exhaustion in find
11773         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11774
11775         maint: fts: move decl of `dp' down into while loop; split a long line
11776         * lib/fts.c (fts_build): No semantic change.
11777
11778         fts: add/use new struct member, fts_dirp
11779         We are about to use this to manage any directory with
11780         too many entries to read all of them into memory at once.
11781         To do that, we'll need to save the DIR* pointer in each
11782         affected FTSENT struct.
11783         * lib/fts_.h: Include <dirent.h>.
11784         (struct FTSENT) [fts_dirp]: New member.
11785         * lib/fts.c (closedir_and_clear): Define.
11786         Use it in place of closedir so that we are sure to
11787         clear the new fts_dirp member when done with it.
11788         (fts_alloc): Initialize the new member.
11789         (fts_lfree): Free, if needed.
11790
11791         maint: fts: give __opendir2 a new parameter and rename
11792         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11793         than surreptitiously using sole caller's "dir_fd".
11794         (fts_opendir): Rename from __opendir2.
11795
11796         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11797         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11798
11799         maint: fts.c: correct off-by-one indentation
11800         * lib/fts.c (fts_build): Correct indentation, change style
11801         of a couple of block comments, and bracing style.
11802
11803         maint: fts.c: move __opendir2 #define "up" out of function body
11804         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11805
11806         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11807         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11808         out for a long time and besides was useful only on BSD systems.
11809
11810 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11811
11812         regex: port to Stratus OpenVOS
11813         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11814         define to empty, rather than attempting nonportable optimizations.
11815         Problem reported by Paul Green in:
11816         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11817         and fix suggested by Eric Blake in:
11818         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11819
11820 2011-08-17  Eric Blake  <eblake@redhat.com>
11821
11822         getcwd: fix test failures on mingw
11823         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11824         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11825         test if long directory cannot be created, and allow mingw errno.
11826
11827         getcwd-lgpl: fix m4 to match relaxed test for BSD
11828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11829         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11830         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11831         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11832         signature problem.
11833
11834         getcwd: fix compilation on mingw64
11835         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11836         getcwd.
11837         Reported by Marc-André Lureau.
11838
11839         pipe2: silence compiler warning
11840         * lib/pipe2.c (pipe2): Hide label if it is not used.
11841
11842 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11843
11844         relocatable-prog: fix link error
11845         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11846         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11847         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11848         into modules/relocatable-lib without noticing that
11849         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11850         also needs to build relocatable.c.
11851
11852 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11853
11854         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11856         shell code: it contained a 'break' that was not in a loop.
11857         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11858         via a shell-language loop; this may have been true in old Autoconf
11859         versions, but it's not true in Autoconf 2.68.  I found this bug
11860         when testing coreutils git on Solaris 8, whose shell complains
11861         about the syntax error.
11862
11863 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11864
11865         * lib/base64.c: Fix comment to reference RFC 4648.
11866         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11867         <gvtulder@gmail.com>.
11868
11869 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11870
11871         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11872
11873         po/Makefile.in.in: fix make -q problem
11874         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11875         rule, since there's no file named 'check-macro-version' and its
11876         use as a file breaks make -q.
11877         (all): Don't depend on check-macro-version.
11878         (CHECK_MACRO_VERSION): New macro.
11879         (stamp-po): Use it.
11880
11881         configmake: fix make -q problem
11882         * modules/configmake (configmake.h): Update configmake.h's time stamp
11883         even if the file does not change.  Otherwise, 'make -q' fails.
11884         Problem reported by Simon Josefsson in
11885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11886
11887 2011-08-11  Jim Meyering  <meyering@redhat.com>
11888
11889         git-version-gen: correct the advice in a comment
11890         * build-aux/git-version-gen: Correct comment.
11891         Don't recommend to list .tarball-version in .gitignore.
11892
11893 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11894
11895         base64: fix off-by-one buffer size bug
11896         Problem and (trivial) fix reported by Gijs van Tulder in
11897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11898         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11899         * tests/test-base64.c (main): Catch the bug.
11900
11901 2011-08-10  Eric Blake  <eblake@redhat.com>
11902
11903         closein: correct comments
11904         * lib/closein.c (close_stdin): Improve comments.
11905
11906 2011-08-09  Bruno Haible  <bruno@clisp.org>
11907
11908         More tests for 'fseeko'.
11909         * tests/test-fseeko3.c: New file, from Eric Blake.
11910         * tests/test-fseeko3.sh: New file.
11911         * modules/fseeko-tests (Files): Add them.
11912         (TESTS): Add test-fseeko3.sh.
11913         (check_PROGRAMS): Add test-fseeko3.
11914
11915 2011-08-09  Eric Blake  <eblake@redhat.com>
11916
11917         fseeko: remove unneeded hack
11918         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11919
11920         fseeko: fix bug on glibc
11921         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11922         Reported by John W. Eaton.
11923
11924 2011-08-08  Bruno Haible  <bruno@clisp.org>
11925
11926         unictype/base: Fix interoperability with preinstalled libunistring.
11927         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11928         Reported by Simon Josefsson.
11929
11930 2011-08-08  Bruno Haible  <bruno@clisp.org>
11931
11932         iswblank: Detect declaration correctly.
11933         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11934         AC_CHECK_DECLS invocation.
11935
11936 2011-08-08  Bruno Haible  <bruno@clisp.org>
11937
11938         tcgetsid: Detect declaration correctly.
11939         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11940         AC_CHECK_DECLS invocation.
11941         Reported by Simon Josefsson.
11942
11943 2011-08-08  Eric Blake  <eblake@redhat.com>
11944
11945         largefile: fix typo that regressed large file support
11946         * modules/largefile (configure.ac-early): Fix section name.
11947
11948 2011-08-06  Karl Berry  <karl@gnu.org>
11949
11950         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11951         a separate module.
11952
11953 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11954
11955         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11956         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11957         get prototype for free.
11958
11959 2011-08-04  Bruno Haible  <bruno@clisp.org>
11960
11961         Tests for module 'pathmax'.
11962         * modules/pathmax-tests: New file.
11963         * tests/test-pathmax.c: New file.
11964
11965         canonicalize-lgpl: Support larger filenames on the Hurd.
11966         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11967         Reported by Paul Eggert.
11968
11969         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11970         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11971         * lib/chdir-long.h: Include pathmax.h.
11972         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11973         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11974         (PATH_MAX): Remove code that is done by pathmax.h.
11975         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11976         * lib/tmpfile.c: Add a comment.
11977         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11978         * modules/chdir-long (Depends-on): Add pathmax.
11979         * modules/getcwd (Depends-on): Add pathmax.
11980         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11981         is not defined.
11982         * doc/posix-headers/limits.texi: Mention the pathmax module.
11983         * NEWS: Mention the change.
11984
11985 2011-08-02  Bruno Haible  <bruno@clisp.org>
11986
11987         pthread_sigmask: Actually use results of gl_THREADLIB.
11988         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11989         gl_THREADLIB, not gl_[]THREADLIB.
11990         Reported by Eric Blake.
11991
11992 2011-08-02  Jim Meyering  <meyering@redhat.com>
11993
11994         maint.mk: relax the default _gl_TS_function_match regexp
11995         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11996         space between function name and "(" in an "extern" declaration.
11997         That would fail to match a decl with no space there: extern void foo();
11998
11999 2011-07-31  Iain Nicol  <iain@thenicols.net>
12000
12001         git-version-gen: document that EXTRA_DIST must include .version
12002         * build-aux/git-version-gen: In the how-to-use comment, document
12003         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12004         will fail when run from an unpacked distribution tarball.
12005
12006 2011-08-01  Bruno Haible  <bruno@clisp.org>
12007
12008         wctype-h: Fix last change.
12009         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12010         REPLACE_TOWLOWER to 0.
12011         Reported by Sam Steingold <sds@gnu.org>.
12012
12013 2011-07-31  Bruno Haible  <bruno@clisp.org>
12014
12015         frexpl: Update autoconf test.
12016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12017         according to changes of 2011-06-20.
12018
12019 2011-07-31  Bruno Haible  <bruno@clisp.org>
12020
12021         sys_utsname: Add support for Minix.
12022         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12023         <sys/utsname.h>.
12024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12025         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12026
12027 2011-07-31  Bruno Haible  <bruno@clisp.org>
12028
12029         strings: Add support for Minix.
12030         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12031         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12032         * doc/posix-headers/strings.texi: Document the Minix problem.
12033
12034 2011-07-31  Bruno Haible  <bruno@clisp.org>
12035
12036         wctype-h: Add support for Minix.
12037         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12038         REPLACE_TOWLOWER.
12039         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12040         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12041         REPLACE_ISWCNTRL.
12042
12043 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12044
12045         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12046         This is a performance improvement for 64-bit hosts: it causes the
12047         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12048
12049 2011-07-31  Bruno Haible  <bruno@clisp.org>
12050
12051         stdioext: Add support for Minix.
12052         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12053         * lib/fpurge.c (fpurge): Likewise.
12054         * lib/freadahead.c (freadahead): Likewise.
12055         * lib/freadable.c (freadable): Likewise.
12056         * lib/freading.c (freading): Likewise.
12057         * lib/freadptr.c (freadptr): Likewise.
12058         * lib/freadseek.c (freadptrinc): Likewise.
12059         * lib/fseeko.c (rpl_fseeko): Likewise.
12060         * lib/fseterr.c (fseterr): Likewise.
12061         * lib/fwritable.c (fwritable): Likewise.
12062         * lib/fwriting.c (fwriting): Likewise.
12063         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12064         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12065
12066 2011-07-31  Bruno Haible  <bruno@clisp.org>
12067
12068         errno: Port to Minix.
12069         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12070         ECONNABORTED are defined.
12071         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12072         GNULIB_defined_ECONNABORTED): New macros.
12073         * lib/strerror-override.h (strerror_override): Test also
12074         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12075         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12076         ECONNABORTED.
12077         * doc/posix-headers/errno.texi: Mention the Minix problem.
12078
12079 2011-07-31  Bruno Haible  <bruno@clisp.org>
12080
12081         Work around declaration collisions on Minix.
12082         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12083         defined, set REPLACE_MBSINIT.
12084         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12085         defined, set REPLACE_MBRTOWC.
12086         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12087         set REPLACE_MBRLEN.
12088         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12089         defined, set REPLACE_MBSRTOWCS.
12090         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12091         defined, set REPLACE_WCRTOMB.
12092         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12093         defined, set REPLACE_WCSRTOMBS.
12094
12095 2011-07-31  Bruno Haible  <bruno@clisp.org>
12096
12097         Add support for Minix with ACK compiler.
12098         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12099         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12100         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12101
12102 2011-07-31  Bruno Haible  <bruno@clisp.org>
12103
12104         Documentation about Minix.
12105         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12106         * doc/glibc-headers/*.texi: Likewise.
12107         * doc/posix-functions/*.texi: Likewise.
12108         * doc/glibc-functions/*.texi: Likewise.
12109
12110 2011-07-31  Bruno Haible  <bruno@clisp.org>
12111
12112         snippet/warn-on-use: Fix indentation.
12113         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12114
12115 2011-07-25  Jim Meyering  <meyering@redhat.com>
12116
12117         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12118         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12119         commands.
12120
12121 2011-07-27  Jim Meyering  <meyering@redhat.com>
12122
12123         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12124         * top/maint.mk (gl_extract_significant_defines_): Now that
12125         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12126         gnulib/lib/signal.in.h, and now that we recommend to
12127         define-if-undefined those two symbols in application code,
12128         we must filter them out of the "significant" list.
12129         This avoids a "make syntax-check" failure in coreutils.
12130
12131 2011-07-26  Eric Blake  <eblake@redhat.com>
12132
12133         warnings: add comments about previous patch
12134         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12135         * m4/include_next.m4: Likewise.
12136         * m4/warn-on-use.m4: Likewise.
12137         * m4/warnings.m4: Likewise, and simplify use.
12138         Suggested by Stefano Lattarini.
12139
12140         include-next, warnings: support older autoconf
12141         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12142         AS_VAR_PUSHDEF in a way that works with older autoconf.
12143         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12144         Reported by Daniel P. Berrange.
12145
12146 2011-07-25  Bruno Haible  <bruno@clisp.org>
12147
12148         fseek, ftell: Fix doc.
12149         * doc/posix-functions/fseek.texi: Reword statement about
12150         AC_SYS_LARGEFILE.
12151         * doc/posix-functions/ftell.texi: Likewise.
12152
12153 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12154             Bruno Haible  <bruno@clisp.org>
12155
12156         Add dependencies to the 'largefile' module.
12157         * modules/fopen (Depends-on): Add 'largefile'.
12158         * modules/freopen (Depends-on): Likewise.
12159         * modules/fseeko (Depends-on): Likewise.
12160         * modules/ftello (Depends-on): Likewise.
12161         * modules/glob (Depends-on): Likewise.
12162         * modules/lseek (Depends-on): Likewise.
12163         * modules/lstat (Depends-on): Likewise.
12164         * modules/mkostemp (Depends-on): Likewise.
12165         * modules/mkostemps (Depends-on): Likewise.
12166         * modules/mkstemp (Depends-on): Likewise.
12167         * modules/mkstemps (Depends-on): Likewise.
12168         * modules/open (Depends-on): Likewise.
12169         * modules/openat (Depends-on): Likewise.
12170         * modules/pread (Depends-on): Likewise.
12171         * modules/pwrite (Depends-on): Likewise.
12172         * modules/scandir (Depends-on): Likewise.
12173         * modules/stat (Depends-on): Likewise.
12174         * modules/tmpfile (Depends-on): Likewise.
12175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12176         since the containing module now depends on the largefile module.
12177         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12178         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12179         off_t is fixed by gnulib.
12180         * doc/posix-functions/freopen.texi: Likewise.
12181         * doc/posix-functions/fseeko.texi: Likewise.
12182         * doc/posix-functions/fstatat.texi: Likewise.
12183         * doc/posix-functions/ftello.texi: Likewise.
12184         * doc/posix-functions/glob.texi: Likewise.
12185         * doc/posix-functions/lseek.texi: Likewise.
12186         * doc/posix-functions/lstat.texi: Likewise.
12187         * doc/posix-functions/mkstemp.texi: Likewise.
12188         * doc/posix-functions/open.texi: Likewise.
12189         * doc/posix-functions/openat.texi: Likewise.
12190         * doc/posix-functions/pread.texi: Likewise.
12191         * doc/posix-functions/pwrite.texi: Likewise.
12192         * doc/posix-functions/scandir.texi: Likewise.
12193         * doc/posix-functions/stat.texi: Likewise.
12194         * doc/posix-functions/tmpfile.texi: Likewise.
12195         * doc/glibc-functions/mkostemp.texi: Likewise.
12196         * doc/glibc-functions/mkostemps.texi: Likewise.
12197         * doc/glibc-functions/mkstemps.texi: Likewise.
12198
12199 2011-07-25  Bruno Haible  <bruno@clisp.org>
12200
12201         fcntl: Move AC_LIBOBJ invocation to module description.
12202         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12203         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12204
12205         fcntl: Remove call-in from fchdir.m4.
12206         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12208
12209         dup3: Remove potential call-in from fchdir.m4.
12210         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12212
12213         dup2: Move AC_LIBOBJ invocation to module description.
12214         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12215         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12216         Don't invoke AC_LIBOBJ.
12217         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12218
12219         dup2: Remove call-in from fchdir.m4.
12220         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12222
12223         fclose: Move AC_LIBOBJ invocation to module description.
12224         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12225         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12226         to 1.
12227         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12228
12229         fclose: Remove call-in from close.m4.
12230         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12231         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12232
12233         close: Move AC_LIBOBJ invocation to module description.
12234         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12235         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12236         1.
12237         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12238
12239         close: Remove call-in from fchdir.m4.
12240         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12242
12243         open: Move AC_LIBOBJ invocation to module description.
12244         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12245         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12246         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12247
12248         open: Remove call-in from fchdir.m4.
12249         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12251
12252         fchdir: Start to remove gl_REPLACE_* idiom.
12253         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12254         (gl_FUNC_FCHDIR): Invoke it.
12255
12256 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12257
12258         * lib/ftell.c (ftell): Comment out cast.
12259
12260         close: use gl_REPLACE_FCLOSE only if defined
12261         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12262         is defined.  The close module doesn't depend on the fclose module
12263         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12265         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12266
12267 2011-07-24  Jim Meyering  <meyering@redhat.com>
12268
12269         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12270         * tests/test-select.h (test_function): Declare as "static".
12271
12272 2011-07-24  Bruno Haible  <bruno@clisp.org>
12273
12274         doc: Mention the effects of AC_SYS_LARGEFILE.
12275         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12276         on this function.
12277         * doc/posix-functions/aio_error.texi: Likewise.
12278         * doc/posix-functions/aio_fsync.texi: Likewise.
12279         * doc/posix-functions/aio_read.texi: Likewise.
12280         * doc/posix-functions/aio_return.texi: Likewise.
12281         * doc/posix-functions/aio_suspend.texi: Likewise.
12282         * doc/posix-functions/aio_write.texi: Likewise.
12283         * doc/posix-functions/fgetpos.texi: Likewise.
12284         * doc/posix-functions/fopen.texi: Likewise.
12285         * doc/posix-functions/freopen.texi: Likewise.
12286         * doc/posix-functions/fsetpos.texi: Likewise.
12287         * doc/posix-functions/fstatvfs.texi: Likewise.
12288         * doc/posix-functions/ftruncate.texi: Likewise.
12289         * doc/posix-functions/ftw.texi: Likewise.
12290         * doc/posix-functions/getrlimit.texi: Likewise.
12291         * doc/posix-functions/glob.texi: Likewise.
12292         * doc/posix-functions/lio_listio.texi: Likewise.
12293         * doc/posix-functions/lockf.texi: Likewise.
12294         * doc/posix-functions/mkstemp.texi: Likewise.
12295         * doc/posix-functions/mmap.texi: Likewise.
12296         * doc/posix-functions/nftw.texi: Likewise.
12297         * doc/posix-functions/openat.texi: Likewise.
12298         * doc/posix-functions/opendir.texi: Likewise.
12299         * doc/posix-functions/posix_fadvise.texi: Likewise.
12300         * doc/posix-functions/posix_fallocate.texi: Likewise.
12301         * doc/posix-functions/pread.texi: Likewise.
12302         * doc/posix-functions/pwrite.texi: Likewise.
12303         * doc/posix-functions/readdir.texi: Likewise.
12304         * doc/posix-functions/readdir_r.texi: Likewise.
12305         * doc/posix-functions/rewinddir.texi: Likewise.
12306         * doc/posix-functions/scandir.texi: Likewise.
12307         * doc/posix-functions/seekdir.texi: Likewise.
12308         * doc/posix-functions/setrlimit.texi: Likewise.
12309         * doc/posix-functions/statvfs.texi: Likewise.
12310         * doc/posix-functions/telldir.texi: Likewise.
12311         * doc/posix-functions/tmpfile.texi: Likewise.
12312         * doc/posix-functions/truncate.texi: Likewise.
12313         * doc/glibc-functions/fallocate.texi: Likewise.
12314         * doc/glibc-functions/fstatfs.texi: Likewise.
12315         * doc/glibc-functions/fts_children.texi: Likewise.
12316         * doc/glibc-functions/fts_read.texi: Likewise.
12317         * doc/glibc-functions/getdirentries.texi: Likewise.
12318         * doc/glibc-functions/mkostemp.texi: Likewise.
12319         * doc/glibc-functions/mkostemps.texi: Likewise.
12320         * doc/glibc-functions/mkstemps.texi: Likewise.
12321         * doc/glibc-functions/preadv.texi: Likewise.
12322         * doc/glibc-functions/pwritev.texi: Likewise.
12323         * doc/glibc-functions/sendfile.texi: Likewise.
12324         * doc/glibc-functions/statfs.texi: Likewise.
12325
12326 2011-07-24  Bruno Haible  <bruno@clisp.org>
12327
12328         doc: Fix typo.
12329         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12330
12331 2011-07-24  Bruno Haible  <bruno@clisp.org>
12332
12333         doc: Mention fsusage.
12334         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12335
12336 2011-07-24  Bruno Haible  <bruno@clisp.org>
12337
12338         doc: Mention new glibc headers and functions.
12339         * doc/glibc-headers/gshadow.texi: New file.
12340         * doc/glibc-functions/endsgent.texi: New file.
12341         * doc/glibc-functions/fgetsgent.texi: New file.
12342         * doc/glibc-functions/fgetsgent_r.texi: New file.
12343         * doc/glibc-functions/getsgent.texi: New file.
12344         * doc/glibc-functions/getsgent_r.texi: New file.
12345         * doc/glibc-functions/getsgnam.texi: New file.
12346         * doc/glibc-functions/getsgnam_r.texi: New file.
12347         * doc/glibc-functions/putsgent.texi: New file.
12348         * doc/glibc-functions/setsgent.texi: New file.
12349         * doc/glibc-functions/sgetsgent.texi: New file.
12350         * doc/glibc-functions/sgetsgent_r.texi: New file.
12351         * doc/glibc-functions/malloc_info.texi: New file.
12352         * doc/glibc-functions/preadv.texi: New file.
12353         * doc/glibc-functions/pwritev.texi: New file.
12354         * doc/glibc-functions/register_printf_modifier.texi: New file.
12355         * doc/glibc-functions/register_printf_specifier.texi: New file.
12356         * doc/glibc-functions/register_printf_type.texi: New file.
12357         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12358         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12359         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12360         * doc/glibc-functions/pthread_getname_np.texi: New file.
12361         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12362         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12363         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12364         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12365         * doc/glibc-functions/pthread_setname_np.texi: New file.
12366         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12367         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12368         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12369         * doc/glibc-functions/qsort_r.texi: New file.
12370         * doc/glibc-functions/quick_exit.texi: New file.
12371         * doc/glibc-functions/syncfs.texi: New file.
12372         * doc/gnulib.texi: Include them.
12373         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12374         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12375         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12376         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12377         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12378         * doc/glibc-functions/execvpe.texi: Likewise.
12379
12380 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         ftell: don't include <unistd.h>
12383         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12384         guaranteed to define off_t, and the ftell module depends on the
12385         stdio module.
12386
12387         ftell: do not assume wraparound signed arithmetic
12388         * lib/ftell.c: Include <limits.h>.
12389         (ftell): Don't assume wraparound signed arithmetic.
12390
12391 2011-07-24  Bruno Haible  <bruno@clisp.org>
12392
12393         close: No longer depend on module 'fclose'.
12394         * modules/close (Depends-on): Remove fclose.
12395         * NEWS: Mention the change.
12396         Suggested by Sam Steingold <sds@gnu.org>.
12397
12398 2011-07-24  Bruno Haible  <bruno@clisp.org>
12399
12400         fsusage: Enable large volume support on AIX >= 5.2.
12401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12402         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12403         instead of STAT_STATVFS.
12404         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12405
12406         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12408         f_blocks field only on MacOS X.
12409
12410         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12412         * modules/fsusage (Depends-on): Add largefile.
12413
12414 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12415
12416         * README: Modernize discussion of signed integers.
12417         Assuming overflow wraparound is no longer safe.
12418         Mention ones' complement and signed magnitude.
12419
12420 2011-07-22  Bruno Haible  <bruno@clisp.org>
12421
12422         select tests, pselect tests: Refactor.
12423         * tests/test-select.h: New file, extracted from tests/test-select.c.
12424         (select_fn): New type.
12425         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12426         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12427         test_pipe): Add my_select argument.
12428         (test_function): Renamed from main. Add my_select argument.
12429         * tests/test-select.c: Move most code to tests/test-select.h. Include
12430         test-select.h.
12431         * modules/select-tests (Files): Add tests/test-select.h.
12432         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12433         (my_select, main): New functions.
12434         * modules/pselect-tests (Files): Add tests/test-select.h,
12435         tests/macros.h, tests/signature.h.
12436         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12437         (configure.ac): Check for <sys/wait.h>.
12438
12439 2011-07-22  Bruno Haible  <bruno@clisp.org>
12440
12441         sys_select tests: Check the signature of FD_*.
12442         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12443         signature tests from here...
12444         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12445         here.
12446         * modules/sys_select-tests (Files): Add tests/signature.h.
12447
12448 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12449
12450         largefile: new module, replacing large-inode
12451         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12452         * MODULES.html.sh: Add largefile, remove large-inode.
12453         * modules/largefile, m4/largefile.m4: New files.
12454         * modules/large-inode, m4/large-inode.m4: Remove.
12455
12456         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12457         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12458         implementations that use only 32 bits to count blocks.
12459         On typical hosts with 1024-byte blocks, this fails with file
12460         systems as small as 4 TiB.  Problem reported by Herb Wartens
12461         <http://debbugs.gnu.org/9140> and this should also fix a similar
12462         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12463
12464         large-inode: New module
12465         * MODULES.html.sh: Add it.
12466         * modules/large-inode, m4/large-inode.m4: New files.
12467
12468         extensions: Enable extensions on MacOS X 10.5 and later.
12469         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12470
12471 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12472
12473         file-has-acl: use acl_extended_file_nofollow if available
12474         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12475         (acl_extended_file): New macro.
12476         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12477         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12478
12479 2011-07-21  Bruno Haible  <bruno@clisp.org>
12480
12481         Declare system functions in a way that works with C++.
12482         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12483         declare fdopendir as extern "C".
12484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12485         declare frexpl as extern "C".
12486         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12487         declare gai_strerror as extern "C".
12488         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12489         programs, declare gai_strerror as extern "C".
12490         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12491         declare getlogin_r as extern "C".
12492         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12493         as extern "C".
12494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12495         declare ldexpl as extern "C".
12496         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12497         as extern "C".
12498         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12499         program, declare getmntinfo as extern "C".
12500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12501         stpncpy as extern "C".
12502         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12503         program, declare __xpg_strerror_r as extern "C".
12504         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12505         strndup as extern "C".
12506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12507         declare memset and bzero as extern "C".
12508         Reported by Sam Steingold <sds@gnu.org>.
12509
12510 2011-07-12  Jim Meyering  <meyering@redhat.com>
12511
12512         maint.mk: prohibit inclusion of "verify.h" without use
12513         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12514
12515 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12516
12517         timer-time: A new module to check for timer_settime()
12518         * m4/timer_time.m4: Check for the posix function.
12519         * modules/timer-time: Add the new module.
12520         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12521         Mention it.
12522
12523 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12524             Bruno Haible  <bruno@clisp.org>
12525
12526         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12527         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12528         not defined, assume POSIX threads and look for pthread_sigmask in
12529         $LIBS, without changing $CPPFLAGS.
12530
12531 2011-07-19  Bruno Haible  <bruno@clisp.org>
12532
12533         strstr: Update cross-compilation guess.
12534         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12535         CPUs, guess no, in view of glibc
12536         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12537         Suggested by Eric Blake. Reported by Reuben Thomas.
12538
12539 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12540
12541         getopt-gnu: suppress core dumps from detection code
12542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12543         to suppress core dumps that may well occur on glibc systems.
12544         * modules/getopt-gnu: Depend on nocrash.
12545
12546 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12547
12548         pthread_sigmask: ensure usleep is declared
12549         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12550         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12551
12552 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12553
12554         doc: Document NonStop portability issues.
12555         * doc/posix-functions/sigaction.texi (sigaction):
12556         * doc/posix-headers/signal.texi (signal.h):
12557         Document NonStop.  See Joachim Schmitz in
12558         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12559
12560 2011-07-15  Bruno Haible  <bruno@clisp.org>
12561
12562         ffsl, ffsll: Avoid unportable behaviour.
12563         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12564
12565 2011-07-15  Bruno Haible  <bruno@clisp.org>
12566
12567         ffs: More tests.
12568         * tests/test-ffs.c (NBITS): New macro.
12569         (main): Add more tests.
12570         * tests/test-ffsl.c (NBITS): New macro.
12571         (main): Add more tests.
12572         * tests/test-ffsll.c (NBITS): New macro.
12573         (main): Add more tests.
12574
12575 2011-07-15  Eric Blake  <eblake@redhat.com>
12576
12577         ffsl, ffsll: new modules
12578         * modules/ffsl: New file.
12579         * modules/ffsll: Likewise.
12580         * m4/ffsl.m4: Likewise.
12581         * m4/ffsll.m4: Likewise.
12582         * lib/ffsl.c: Likewise.
12583         * lib/ffsl.h: Likewise.
12584         * lib/ffsll.c: Likewise.
12585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12586         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12587         * modules/string (Makefile.am): Substitute witnesses.
12588         * lib/strings.in.h (ffsl, ffsll): Declare.
12589         * modules/ffsl-tests: New test file.
12590         * modules/ffsll-tests: Likewise.
12591         * tests/test-ffsl.c: Likewise.
12592         * tests/test-ffsll.c: Likewise.
12593         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12594         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12595         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12596
12597         ffs: fix m4 prerequisite
12598         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12599
12600         ffs: avoid undefined behavior
12601         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12602         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12603         Reported by Bruno Haible.
12604
12605 2011-07-12  Bruno Haible  <bruno@clisp.org>
12606
12607         pthread_sigmask: Rely on module 'threadlib'.
12608         * modules/pthread_sigmask (Depends-on): Add threadlib.
12609         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12610         is defined.
12611
12612 2011-07-12  Bruno Haible  <bruno@clisp.org>
12613
12614         regex: Depend on module 'strcase'.
12615         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12616
12617 2011-07-12  Jim Meyering  <meyering@redhat.com>
12618
12619         warn-on-use: fix typo in file name
12620         * modules/snippet/warn-on-use (Files): Correct file name:
12621         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12622
12623 2011-07-12  Bruno Haible  <bruno@clisp.org>
12624
12625         strings: Document module.
12626         * doc/posix-headers/strings.texi: Mention module 'strings'.
12627
12628 2011-07-12  Bruno Haible  <bruno@clisp.org>
12629
12630         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12631         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12632         (Files, Makefile.am): Update.
12633         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12634         * modules/stdlib (Depends-on): Update.
12635
12636 2011-07-12  Bruno Haible  <bruno@clisp.org>
12637
12638         * NEWS: Mention the changes.
12639
12640         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12641         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12642         (Files, Makefile.am): Update.
12643         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12644         * modules/arpa_inet (Depends-on): Update.
12645         * modules/ctype (Depends-on): Update.
12646         * modules/dirent (Depends-on): Update.
12647         * modules/fcntl-h (Depends-on): Update.
12648         * modules/glob (Depends-on): Update.
12649         * modules/iconv-h (Depends-on): Update.
12650         * modules/inttypes-incomplete (Depends-on): Update.
12651         * modules/langinfo (Depends-on): Update.
12652         * modules/locale (Depends-on): Update.
12653         * modules/math (Depends-on): Update.
12654         * modules/netdb (Depends-on): Update.
12655         * modules/poll-h (Depends-on): Update.
12656         * modules/pty (Depends-on): Update.
12657         * modules/search (Depends-on): Update.
12658         * modules/signal (Depends-on): Update.
12659         * modules/spawn (Depends-on): Update.
12660         * modules/stdio (Depends-on): Update.
12661         * modules/stdlib (Depends-on): Update.
12662         * modules/string (Depends-on): Update.
12663         * modules/strings (Depends-on): Update.
12664         * modules/sys_file (Depends-on): Update.
12665         * modules/sys_ioctl (Depends-on): Update.
12666         * modules/sys_select (Depends-on): Update.
12667         * modules/sys_socket (Depends-on): Update.
12668         * modules/sys_stat (Depends-on): Update.
12669         * modules/sys_time (Depends-on): Update.
12670         * modules/sys_times (Depends-on): Update.
12671         * modules/sys_utsname (Depends-on): Update.
12672         * modules/sys_wait (Depends-on): Update.
12673         * modules/termios (Depends-on): Update.
12674         * modules/time (Depends-on): Update.
12675         * modules/unistd (Depends-on): Update.
12676         * modules/wchar (Depends-on): Update.
12677         * modules/wctype-h (Depends-on): Update.
12678         * MODULES.html.sh (Support for building libraries and executables):
12679         Update.
12680
12681         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12682         * modules/snippet/unused-parameter: Renamed from
12683         modules/unused-parameter.
12684         (Files, Makefile.am): Update.
12685         * build-aux/snippet/unused-parameter.h: Renamed from
12686         build-aux/unused-parameter.h.
12687         * modules/selinux-h (Depends-on): Update.
12688         * modules/unistr/base (Depends-on): Update.
12689         * MODULES.html.sh (Core language properties): Update.
12690
12691         Rename module 'link-warning' to 'snippet/link-warning'.
12692         * modules/snippet/link-warning: Renamed from modules/link-warning.
12693         (Files, Makefile.am): Update.
12694         * build-aux/snippet/link-warning.h: Renamed from
12695         build-aux/link-warning.h.
12696         * MODULES.html.sh (Support for building libraries and executables):
12697         Update.
12698
12699         Rename module 'c++defs' to 'snippet/c++defs'.
12700         * modules/snippet/c++defs: Renamed from modules/c++defs.
12701         (Files, Makefile.am): Update.
12702         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12703         * modules/arpa_inet (Depends-on): Update.
12704         * modules/ctype (Depends-on): Update.
12705         * modules/dirent (Depends-on): Update.
12706         * modules/fcntl-h (Depends-on): Update.
12707         * modules/glob (Depends-on): Update.
12708         * modules/iconv-h (Depends-on): Update.
12709         * modules/langinfo (Depends-on): Update.
12710         * modules/locale (Depends-on): Update.
12711         * modules/math (Depends-on): Update.
12712         * modules/netdb (Depends-on): Update.
12713         * modules/poll-h (Depends-on): Update.
12714         * modules/pty (Depends-on): Update.
12715         * modules/search (Depends-on): Update.
12716         * modules/signal (Depends-on): Update.
12717         * modules/spawn (Depends-on): Update.
12718         * modules/stdio (Depends-on): Update.
12719         * modules/stdlib (Depends-on): Update.
12720         * modules/string (Depends-on): Update.
12721         * modules/strings (Depends-on): Update.
12722         * modules/sys_ioctl (Depends-on): Update.
12723         * modules/sys_select (Depends-on): Update.
12724         * modules/sys_socket (Depends-on): Update.
12725         * modules/sys_stat (Depends-on): Update.
12726         * modules/sys_time (Depends-on): Update.
12727         * modules/sys_wait (Depends-on): Update.
12728         * modules/termios (Depends-on): Update.
12729         * modules/time (Depends-on): Update.
12730         * modules/unistd (Depends-on): Update.
12731         * modules/wchar (Depends-on): Update.
12732         * modules/wctype-h (Depends-on): Update.
12733
12734         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12735         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12736         (Files, Makefile.am): Update.
12737         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12738         * modules/argv-iter (Depends-on): Update.
12739         * modules/arpa_inet (Depends-on): Update.
12740         * modules/dirent (Depends-on): Update.
12741         * modules/fcntl-h (Depends-on): Update.
12742         * modules/fnmatch (Depends-on): Update.
12743         * modules/getopt-posix (Depends-on): Update.
12744         * modules/glob (Depends-on): Update.
12745         * modules/iconv-h (Depends-on): Update.
12746         * modules/inttypes-incomplete (Depends-on): Update.
12747         * modules/locale (Depends-on): Update.
12748         * modules/math (Depends-on): Update.
12749         * modules/netdb (Depends-on): Update.
12750         * modules/search (Depends-on): Update.
12751         * modules/signal (Depends-on): Update.
12752         * modules/spawn (Depends-on): Update.
12753         * modules/stdio (Depends-on): Update.
12754         * modules/stdlib (Depends-on): Update.
12755         * modules/string (Depends-on): Update.
12756         * modules/strings (Depends-on): Update.
12757         * modules/sys_socket (Depends-on): Update.
12758         * modules/sys_stat (Depends-on): Update.
12759         * modules/sys_time (Depends-on): Update.
12760         * modules/sys_times (Depends-on): Update.
12761         * modules/sys_utsname (Depends-on): Update.
12762         * modules/time (Depends-on): Update.
12763         * modules/unistd (Depends-on): Update.
12764         * modules/wchar (Depends-on): Update.
12765         * MODULES.html.sh (Support for building libraries and executables):
12766         Update.
12767
12768 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12769
12770         Improvements on _Noreturn and related modules.
12771
12772         modules/_Exit-tests: test _Noreturn too
12773         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12774         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12775         (main): Use them.
12776
12777         stdnoreturn, stdnoreturn-tests: remove modules
12778         They're not needed here and a bit premature for use elsewhere.  See
12779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12780         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12781         * tests/test-stdnoreturn.c: Remove files.
12782         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12783         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12784         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12785         and using noreturn.
12786         * modules/openat, modules/sigpipe-die, modules/xalloc:
12787         * modules/xmemdup0, modules/xstrtol:
12788         Remove dependency on stdnoreturn.
12789
12790         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12791         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12792         Reparenthesize to avoid GCC warning.
12793         Support Microsoft's syntax.
12794         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12795
12796         _Noreturn-tests: remove module
12797         * modules/_Noreturn-tests: Remove.
12798         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12799         * tests/test-_Noreturn.c: Remove.
12800         * tests/test-stdnoreturn.c: Merge from the old
12801         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12802
12803 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12804
12805         _Noreturn, stdnoreturn, and related modules.
12806
12807         * top/maint.mk: Adjust to new noreturn support.
12808         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12809         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12810
12811         xalloc: use stdnoreturn.h
12812         * lib/xalloc.h: Include <stdnoreturn.h>.
12813         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12814         * modules/xalloc (Depends-on): Add stdnoreturn.
12815
12816         xstrtol: use stdnoreturn.h
12817         * lib/xstrtol.h: Include <stdnoreturn.h>.
12818         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12819         * modules/xstrtol (Depends-on): Add stdnoreturn.
12820
12821         xmemdup0: use stdnoreturn.h
12822         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12823         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12824         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12825
12826         sigpipe-die: use stdnoreturn.h
12827         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12828         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12829         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12830
12831         openat: use stdnoreturn.h
12832         * lib/openat.h: Include <stdnoreturn.h>.
12833         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12834         * modules/openat (Depends-on): Add stdnoreturn.
12835
12836         * lib/openat-die.c (openat_save_fail): Modernize comment.
12837
12838         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12839
12840         * lib/glthread/thread.h: Modernize comment.
12841
12842         obstack: use _Noreturn
12843         * lib/obstack.c (__attribute__): Remove macro.
12844         (print_and_abort): Use _Noreturn.
12845
12846         c-stack: use _Noreturn
12847         * lib/c-stack.c (die, overflow_handler, segv_handler):
12848         Use _Noreturn rather than __attribute__((noreturn)).
12849
12850         argmatch-tests, exclude_tests: use _Noreturn
12851         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12852         Remove.
12853         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12854
12855         stdlib: use _Noreturn
12856         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12857         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12858         * modules/stdlib (Depends-on): Add _Noreturn.
12859         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12860
12861         stdnoreturn-tests: new module
12862         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12863
12864         stdnoreturn: new module
12865         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12866         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12867
12868         _Noreturn-tests: new module
12869         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12870
12871         _Noreturn: new module
12872         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12873         New section, mentioning it.
12874         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12875
12876         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12877
12878 2011-07-11  Eric Blake  <eblake@redhat.com>
12879
12880         ffs: new module
12881         * modules/ffs: New file.
12882         * m4/ffs.m4: Likewise.
12883         * lib/ffs.c: Likewise.
12884         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12885         * modules/strings (Makefile.am): Substitute witness.
12886         (Depends-on): Add c++defs.
12887         * lib/strings.in.h (ffs): Declare.
12888         * modules/ffs-tests: New test file.
12889         * tests/test-ffs.c: Test new module.
12890         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12891         * doc/posix-functions/ffs.texi (ffs): Likewise.
12892
12893         regex: avoid compiler warning
12894         * lib/regex.c (includes): Include <strings.h>, for use of
12895         strcasecmp in regcomp.c.
12896         Reported by Joachim Schmitz.
12897
12898 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12899
12900         stdint: respect system's intmax_t if INTMAX_MAX
12901         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12902         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12903         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12904         long but int64_t is long long, and where we will clash with the
12905         system intmax_t if we override it.  See
12906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12907         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12908         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12909         similarly for UINTMAX_C.
12910
12911 2011-07-08  Bruno Haible  <bruno@clisp.org>
12912
12913         pthread_sigmask tests: Avoid a compiler warning.
12914         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12915         non-zero.
12916
12917         sigprocmask tests: A better way to avoid a compiler warning.
12918         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12919         (main): Complain if system() returns non-zero.
12920         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12921
12922 2011-07-08  Bruno Haible  <bruno@clisp.org>
12923
12924         pthread_sigmask: Work around IRIX bug.
12925         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12926         bug.
12927         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12928         there may be unblocked pending signals.
12929         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12930
12931 2011-07-08  Bruno Haible  <bruno@clisp.org>
12932
12933         pthread_sigmask: Work around Cygwin bug.
12934         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12935         bug.
12936         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12937         the system's pthread_sigmask function.
12938         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12939
12940 2011-07-08  Bruno Haible  <bruno@clisp.org>
12941
12942         pthread_sigmask: Work around bug in single-threaded implementation.
12943         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12944         FreeBSD, HP-UX, Solaris bug.
12945         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12946         * lib/pthread_sigmask.c: Include <stddef.h>.
12947         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12948         the system's pthread_sigmask function.
12949         * modules/pthread_sigmask (configure.ac): Invoke
12950         gl_PREREQ_PTHREAD_SIGMASK.
12951         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12952         HP-UX, Solaris.
12953
12954 2011-07-08  Eric Blake  <eblake@redhat.com>
12955
12956         test-sigprocmask: avoid compiler warning
12957         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12958         * tests/test-sigprocmask.c (main): Use it to silence warning.
12959         Reported by Jim Meyering.
12960
12961         test-snprintf: avoid compiler warning
12962         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12963         * tests/test-vsnprintf.c (main): Likewise.
12964         Reported by Jim Meyering.
12965
12966 2011-07-08  Bruno Haible  <bruno@clisp.org>
12967
12968         Tests for module 'pthread_sigmask'.
12969         * modules/pthread_sigmask-tests: New file.
12970         * tests/test-pthread_sigmask1.c: New file, based on
12971         tests/test-sigprocmask.c.
12972         * tests/test-pthread_sigmask2.c: New file.
12973
12974 2011-07-08  Jim Meyering  <meyering@redhat.com>
12975
12976         test-getopt.h: avoid warning about an unused variable
12977         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12978
12979 2011-07-07  Jim Meyering  <meyering@redhat.com>
12980
12981         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12982         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12983         now that it no longer contains leading TABs.
12984         Remove unused "url=FIXME" statement.
12985
12986 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12987
12988         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12989         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12990         When gl_THREADLIB is not in use, assume that the POSIX sematics
12991         are desired.  This is better for Emacs, which uses POSIX semantics
12992         on GNUish and/or POSIXish platforms, and does not use threads at
12993         all otherwise.
12994
12995         pthread_sigmask: fix typo when testing for libraries
12996         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12997         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12998
12999 2011-07-08  Eric Blake  <eblake@redhat.com>
13000
13001         fts: introduce FTS_NOATIME
13002         * lib/fts_.h (FTS_NOATIME): New bit flag.
13003         (FTS_OPTIONMASK): Adjust.
13004         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13005         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13006
13007 2011-07-08  Bruno Haible  <bruno@clisp.org>
13008
13009         Tests for module 'thread'.
13010         * modules/thread-tests: New file.
13011         * tests/test-thread_self.c: New file.
13012         * tests/test-thread_create.cc: New file.
13013
13014 2011-07-08  Bruno Haible  <bruno@clisp.org>
13015
13016         thread: Avoid gcc warnings when using gl_thread_self().
13017         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13018         'void *'.
13019         (gl_thread_self_pointer): Update.
13020
13021 2011-07-07  Bruno Haible  <bruno@clisp.org>
13022
13023         signal-c++-tests: Check declaration of pthread_sigmask.
13024         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13025         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13026         $(LIB_PTHREAD_SIGMASK).
13027
13028 2011-07-07  Bruno Haible  <bruno@clisp.org>
13029
13030         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13031         * lib/signal.in.h (pthread_sigmask): Override if
13032         REPLACE_PTHREAD_SIGMASK is 1.
13033         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13034         REPLACE_PTHREAD_SIGMASK.
13035         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13036         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13037         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13038         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13039         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13040
13041 2011-07-07  Bruno Haible  <bruno@clisp.org>
13042
13043         pthread_sigmask: Ensure declaration in <signal.h>.
13044         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13045         include <pthread.h>.
13046         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13047         problem.
13048
13049 2011-07-07  Bruno Haible  <bruno@clisp.org>
13050
13051         pthread_sigmask: Document the module.
13052         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13053
13054 2011-07-07  Bruno Haible  <bruno@clisp.org>
13055
13056         pthread_sigmask: Follow gnulib conventions.
13057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13058         gl_PTHREAD_SIGMASK.
13059         * modules/pthread_sigmask (configure.ac): Update.
13060
13061 2011-07-07  Bruno Haible  <bruno@clisp.org>
13062
13063         pthread_sigmask: Make declaration C++ safe.
13064         * lib/signal.in.h: In two special conditions, just do an #include_next.
13065         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13066         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13067         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13068         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13069         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13070         not REPLACE_PTHREAD_MASK.
13071         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13072         not REPLACE_PTHREAD_MASK.
13073         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13074
13075 2011-07-07  Bruno Haible  <bruno@clisp.org>
13076
13077         pthread_sigmask: Fix return value.
13078         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13079         * lib/pthread_sigmask.c: New file.
13080         * modules/pthread_sigmask (Files): Add it.
13081         (configure.ac): Invoke AC_LIBOBJ.
13082
13083 2011-07-07  Eric Blake  <eblake@redhat.com>
13084
13085         getopt: more portable argv creation
13086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13087         const, use char arrays rather than strings.
13088         Suggested by Paul Eggert.
13089
13090 2011-07-07  Bruno Haible  <bruno@clisp.org>
13091
13092         Tests for module 'sigprocmask'.
13093         * modules/sigprocmask-tests: New file.
13094         * tests/test-sigprocmask.c: New file.
13095
13096 2011-07-07  Bruno Haible  <bruno@clisp.org>
13097
13098         float tests: Tweak.
13099         * tests/test-float.c (main): Tweak skip message.
13100
13101 2011-07-07  Eric Blake  <eblake@redhat.com>
13102
13103         getopt: avoid compiler warning during configure
13104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13105         assigning string literals to non-const pointer.
13106
13107         getopt-gnu: avoid crash in glibc getopt
13108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13109         * tests/test-getopt.h (test_getopt): Enhance test.
13110         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13111         * doc/posix-functions/getopt.texi (getopt): Document it.
13112         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13113         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13114         Likewise.
13115
13116 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13117
13118         getopt: handle W; without long options in getopt [BZ #12922]
13119         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13120         but no long options are defined, just return 'W'.
13121
13122 2011-07-07  Bruno Haible  <bruno@clisp.org>
13123
13124         Avoid literal tabs.
13125         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13126         variable containing a tab instead of a literal tab.
13127         Reported by Jim Meyering.
13128
13129 2011-07-07  Bruno Haible  <bruno@clisp.org>
13130
13131         Comments.
13132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13133
13134 2011-07-06  Bruno Haible  <bruno@clisp.org>
13135
13136         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13137         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13138         <winsock2.h>.
13139         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13140         lib/sys_socket.in.h.
13141         (close, gethostname): Hide declarations from <winsock2.h>.
13142         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13143         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13144         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13145         (select): Don't override if gnulib's <sys/select.h> was already
13146         included.
13147         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13148         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13149         setsockopt, shutdown, select): Tweak indentation.
13150
13151 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13152
13153         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13154         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13155         in an application that does not use the sys_select module.
13156
13157 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13158
13159         poll: do not return 0 on timeout=-1
13160         * lib/poll.c: Loop with yield if no events occured
13161
13162 2011-07-06  Eric Blake  <eblake@redhat.com>
13163
13164         pthread_sigmask: always replace when not using pthread
13165         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13166         replacement when using some threading other than pthread.  Fix
13167         logic bug.
13168
13169 2011-07-06  Bruno Haible  <bruno@clisp.org>
13170
13171         Comments.
13172         * m4/printf.m4: Update comments about mingw.
13173
13174 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13175
13176         sys_select: define sigset_t more portably
13177         * lib/sys_select.in.h: Always include <sys/types.h>, since
13178         we now need sigset_t and mingw defines it there.
13179         Include <signal.h> before split inclusion guard, to avoid
13180         mishaps on Solaris, whose <signal.h> eventually includes us.
13181         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13182         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13183         which come from ...
13184         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13185         gl_CHECK_TYPE_SIGSET_T.
13186         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13187         does the real work.
13188         * modules/sys_select (Depends-on): Add 'signal'.
13189
13190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13191         Suggested by Bruno Haible.
13192
13193         pselect: Use pthread_sigmask, not sigprocmask.
13194         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13195         multithreaded apps better than sigprocmask does.
13196         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13197         sigprocmask directly.
13198
13199 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13200
13201         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13202         Don't #undef,  since we don't need any underlying pselect.
13203         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13204         (Depends-on): Add select.
13205         (Link): Add $(LIBSOCKET).
13206         These changes suggested by Bruno Haible.
13207
13208         pselect: document better
13209         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13210         * doc/posix-functions/pselect.texi (pselect): Document new module.
13211
13212         pthread_sigmask: new module
13213         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13214         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13215         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13216         This is done only as a macro; I don't know how well that'll
13217         work for C++.  Move <sys/types.h> include before the include_next,
13218         to avoid mishap on Solaris.
13219         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13220         * modules/signal (Makefile.am): Substitute the check's results.
13221         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13222
13223         test-pselect: new module
13224         * modules/pselect-tests, tests/test-pselect.c: New files.
13225         * tests/test-select.c, tests/test-sys_select-c++.cc:
13226         If TEST_PSELECT is defined, test pselect instead of testing select.
13227
13228         * tests/test-sys_select.c (sigset_t): Test for it, too.
13229         Suggested by Bruno Haible.
13230
13231 2011-07-05  Eric Blake  <eblake@redhat.com>
13232
13233         snprintf: guarantee %1$d, for libintl
13234         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13235         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13236         * doc/posix-functions/snprintf.texi (snprintf): Update.
13237         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13238         * tests/test-snprintf.c (main): Enhance test.
13239         * tests/test-vsnprintf.c (main): Likewise.
13240
13241 2011-07-05  Jim Meyering  <meyering@redhat.com>
13242
13243         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13244         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13245         per Bruno's request, to accommodate this idiom (no space after "#")
13246         even when the function is inside an #if block:
13247         char *
13248         gets (char *s)
13249         #undef gets
13250         {
13251           ...
13252         }
13253
13254 2011-07-04  Jim Meyering  <meyering@redhat.com>
13255
13256         maint: indent with spaces, not TABs, and add a rule to check this
13257         * tests/test-userspec.c: Indent with spaces, not TABs.
13258         * tests/test-argp.c: Likewise.
13259         * tests/test-c-stack2.sh: Likewise.
13260         * tests/test-parse-duration.sh: Likewise
13261         * m4/strtod.m4: Likewise.
13262         * m4/alloca.m4: Likewise.
13263         * m4/pselect.m4: Likewise.
13264         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13265
13266 2011-07-03  Jim Meyering  <meyering@redhat.com>
13267
13268         maint.mk: correct omissions in prohibit_argmatch_without_use check
13269         This rule would mistakenly report that argmatch.h is included without
13270         use even when both the argmatch and invalid_arg macro were used.
13271         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13272         of argmatch and invalid_arg.
13273
13274 2011-07-03  Bruno Haible  <bruno@clisp.org>
13275
13276         Comments about EINTR.
13277         * lib/safe-read.h: Explain the purpose of this module.
13278         * lib/safe-write.h: Likewise.
13279         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13280         module.
13281         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13282         module.
13283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13284
13285 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13286
13287         xnanosleep: Rewrite to use new dtotimespec module.
13288         It has the conversion code that used to be in xnanosleep.
13289         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13290         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13291         (TIME_T_MAX): Remove.
13292         (xnanosleep): Rewrite in terms of dtotimespec.
13293         * modules/xnanosleep (Depends-on): Add dtotimespec.
13294         Remove intprops, stdbool.
13295
13296         timespec-add, timespec-sub: new modules
13297         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13298         * lib/timespec-add.c, lib/timespec-sub.c:
13299         * modules/timespec-add, modules/timespec-sub: New files.
13300
13301         dtotimespec: new module
13302         * lib/timespec.h (dtotimespec): New decl.
13303         * lib/dtotimespec.c, modules/dtotimespec: New files.
13304
13305         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13306
13307         pselect: new module
13308         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13309         (pselect): New decls.
13310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13311         since the standard pselect decl uses 'restrict'.
13312         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13313         HAVE_PSELECT, REPLACE_PSELECT.
13314         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13315         HAVE_PSELECT, REPLACE_PSELECT.
13316         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13317
13318         sys_select: don't depend on sys_socket
13319         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13321         This fix works on GNU and GNU-like platforms, but has not been tested
13322         on native Windows.
13323         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13325         gl_HEADER_SYS_SOCKET.
13326         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13327         gl_PREREQ_SYS_H_WINSOCK2.
13328
13329 2011-06-29  Eric Blake  <eblake@redhat.com>
13330
13331         pipe2: fix C89 compile problem
13332         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13333         Reported by Bruno Haible.
13334
13335         pipe, pipe2: don't corrupt fd on error
13336         * lib/pipe.c (pipe): Leave fd unchanged on error.
13337         * lib/pipe2.c (pipe2): Likewise.
13338         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13339         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13340
13341 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13342
13343         mmap-anon: do not use regular expressions inadvertently
13344         * m4/mmap-anon.m4: Remove trailing period from strings sought
13345         in the output.
13346
13347 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         nanosleep: fix integer overflow problem
13350         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13351         arithmetic wraps around on overflow.
13352
13353         nanosleep: simplify carrying
13354         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13355         first call to the underyling nanosleep, not for the last one.
13356         This doesn't fix any bugs, but it simplifies the computation of
13357         the remaining delay.  Found while auditing integer overflow issues.
13358
13359         dup2: remove test for existence of fcntl
13360         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13361         "#if HAVE_FCNTL", in the configure-time test program.
13362         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13363         and therefore speeds up "configure" a bit.  Found while
13364         adding the dup2 module to Emacs.
13365
13366 2011-06-24  Eric Blake  <eblake@redhat.com>
13367
13368         maint.mk: enhance useless header checks
13369         * top/maint.mk (_sc_header_without_use): Check both include
13370         styles.
13371         (sc_prohibit_assert_without_use)
13372         (sc_prohibit_close_stream_without_use)
13373         (sc_prohibit_getopt_without_use)
13374         (sc_prohibit_quotearg_without_use)
13375         (sc_prohibit_quote_without_use)
13376         (sc_prohibit_long_options_without_use)
13377         (sc_prohibit_inttostr_without_use)
13378         (sc_prohibit_ignore_value_without_use)
13379         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13380         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13381         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13382         (sc_prohibit_hash_pjw_without_use)
13383         (sc_prohibit_safe_read_without_use)
13384         (sc_prohibit_argmatch_without_use)
13385         (sc_prohibit_canonicalize_without_use)
13386         (sc_prohibit_root_dev_ino_without_use)
13387         (sc_prohibit_openat_without_use)
13388         (sc_prohibit_c_ctype_without_use)
13389         (sc_prohibit_signal_without_use)
13390         (sc_prohibit_stdio--_without_use)
13391         (sc_prohibit_stdio-safer_without_use)
13392         (sc_prohibit_strings_without_use)
13393         (sc_prohibit_intprops_without_use)
13394         (sc_prohibit_stddef_without_use)
13395         (sc_prohibit_xfreopen_without_use): Update clients.
13396
13397 2011-06-24  Jim Meyering  <meyering@redhat.com>
13398
13399         syntax-check: keep one maint.mk rule in sync with its header
13400         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13401         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13402         I prefer to avoid temporary files here, so use <(...), but that
13403         is not supported by /bin/sh, so...
13404         (SHELL): Define to /bin/bash.
13405
13406 2011-06-24  Eric Blake  <eblake@redhat.com>
13407
13408         maint.mk: update sc_prohibit_intprops_without_use
13409         * top/maint.mk (_intprops_names): Match recent changes.
13410
13411 2011-06-24  Bruno Haible  <bruno@clisp.org>
13412
13413         strerror-override: No-op tweak.
13414         * lib/strerror-override.h (strerror_override): Reorder conditions,
13415         for consistency with lib/strerror-override.c.
13416
13417 2011-06-23  Eric Blake  <eblake@redhat.com>
13418
13419         maint.mk: test further PATH_MAX issues
13420         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13421         (sc_prohibit_path_max_allocation): ...and also test alloca.
13422         Suggested by Jim Meyering.
13423
13424 2011-06-22  Eric Blake  <eblake@redhat.com>
13425
13426         maint.mk: add syntax-check to avoid char[PATH_MAX]
13427         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13428
13429         stat: be robust to PATH_MAX definition
13430         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13431         * modules/stat (Depends-on): Add verify.
13432
13433         link: work around IRIX bug
13434         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13435         * lib/link.c (rpl_link): Work around it.
13436         * tests/test-link.h (test_link): Enhance test.
13437         * doc/posix-functions/link.texi (link): Document the bug.
13438
13439         getopt: silence clang warning
13440         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13441         dereference.
13442         Reported by Gustavo Martin Domato.
13443
13444 2011-06-22  Jim Meyering  <meyering@redhat.com>
13445
13446         bootstrap: do not insert a blank line into each .gitignore file
13447         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13448
13449 2011-06-21  Eric Blake  <eblake@redhat.com>
13450
13451         perror: test for output mismatch
13452         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13453         perror on IRIX.
13454
13455         strerror_r: fix OpenBSD behavior on out-of-range
13456         * lib/strerror_r.c (strerror_r): Always use maximal string.
13457         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13458
13459         strerror_r: fix OpenBSD behavior on 0
13460         * lib/strerror-override.c (strerror_override): Also override 0
13461         when needed.
13462         * lib/strerror-override.h (strerror_override): Likewise.
13463         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13464         earlier.
13465         * lib/strerror_r.c (strerror_r): Likewise.
13466         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13467         behavior...
13468         (gl_FUNC_STRERROR_0): ...into new macro.
13469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13470         is overridden.
13471         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13472         * modules/strerror-override (Files): Add strerror.m4.
13473         (configure.ac): Also provide override for 0 when needed.
13474         * doc/posix-functions/strerror.texi (strerror): Document this.
13475         * doc/posix-functions/perror.texi (perror): Likewise.
13476
13477         perror: adjust array size
13478         * modules/perror (Depends-on): Add strerror-override.
13479         * lib/perror.c (perror): Use it to avoid magic number.
13480
13481         strerror-override: reduce size
13482         * lib/strerror-override.c (strerror_override): Use fewer lines.
13483
13484 2011-06-20  Bruno Haible  <bruno@clisp.org>
13485
13486         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13487         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13488
13489 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13490
13491         alloca: port to compilers that can optimize like GCC 4.6.0
13492         * lib/alloca.c (find_stack_direction): New signature, taken from
13493         Autoconf git.  This works with GCC 4.6.0.  This code should never
13494         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13495         be used with other compilers that optimize as well as GCC 4.6.0 does.
13496         (alloca): Adjust to new signature.
13497         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13498         New macro, which patches Autoconf in a similar way.
13499
13500         c-stack: stop worrying about stack direction
13501         * lib/c-stack.c (find_stack_direction): Remove.
13502         (segv_handler): Don't worry about stack direction growth, as it's
13503         too much of a pain to configure this correctly, given how compilers
13504         are optimizing-away our stack-growth detection code.  Instead, assume
13505         that any access to just before or just after the stack is OK.
13506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13507         Don't require AC_FUNC_ALLOCA; no longer needed.
13508
13509 2011-06-20  Eric Blake  <eblake@redhat.com>
13510
13511         test-stat: don't allocate PATH_MAX bytes
13512         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13513         PATH_MAX-sized buffer.
13514         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13515         * modules/stat-tests (Depends-on): Likewise.
13516         * tests/test-fstatat.c (includes): Drop pathmax.h.
13517         * tests/test-stat.c (includes): Likewise.
13518         Reported by Bruno Haible.
13519
13520 2011-06-20  Bruno Haible  <bruno@clisp.org>
13521
13522         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13523         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13524         * lib/float.c: New file.
13525         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13526         REPLACE_FLOAT_LDBL.
13527         * modules/float (Files): Add lib/float.c.
13528         (configure.ac): Invoke AC_LIBOBJ.
13529         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13530
13531 2011-06-20  Bruno Haible  <bruno@clisp.org>
13532
13533         Tests for module 'float'.
13534         * modules/float-tests: New file.
13535         * tests/test-float.c: New file.
13536
13537 2011-06-19  Bruno Haible  <bruno@clisp.org>
13538
13539         isinf: Coding style.
13540         * lib/isinf.c: Use GNU coding style.
13541
13542 2011-06-19  Bruno Haible  <bruno@clisp.org>
13543
13544         linkat test: Avoid test failure on AIX 7.1.
13545         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13546         * tests/test-link.h (test_link): Likewise.
13547
13548 2011-06-19  Bruno Haible  <bruno@clisp.org>
13549
13550         pread test: Avoid test failure on OpenBSD 4.9.
13551         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13552
13553 2011-06-19  Bruno Haible  <bruno@clisp.org>
13554
13555         sprintf-posix: Fix test failure on AIX 7.1.
13556         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13557         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13558         on AIX.
13559         * doc/posix-functions/fprintf.texi: Likewise.
13560         * doc/posix-functions/printf.texi: Likewise.
13561         * doc/posix-functions/snprintf.texi: Likewise.
13562         * doc/posix-functions/sprintf.texi: Likewise.
13563         * doc/posix-functions/vdprintf.texi: Likewise.
13564         * doc/posix-functions/vfprintf.texi: Likewise.
13565         * doc/posix-functions/vprintf.texi: Likewise.
13566         * doc/posix-functions/vsnprintf.texi: Likewise.
13567         * doc/posix-functions/vsprintf.texi: Likewise.
13568
13569 2011-06-19  Bruno Haible  <bruno@clisp.org>
13570
13571         roundl-ieee: Fix test failure on AIX 7.1.
13572         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13573         * doc/posix-functions/roundl.texi: Mention problem with negative
13574         arguments.
13575
13576 2011-06-19  Bruno Haible  <bruno@clisp.org>
13577
13578         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13579         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13580         * doc/posix-functions/round.texi: Mention problem with negative
13581         arguments.
13582         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13583
13584 2011-06-19  Bruno Haible  <bruno@clisp.org>
13585
13586         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13587         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13588         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13589         * doc/posix-functions/roundf.texi: Mention problem with negative
13590         arguments.
13591         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13592
13593 2011-06-19  Bruno Haible  <bruno@clisp.org>
13594
13595         ceilf-ieee: Work around bug on MacOS X 10.5.
13596         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13597
13598         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13599         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13600         IEEE compliant, avoid compiler optimizations.
13601         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13602         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13603         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13604         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13605         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13606         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13609         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13611
13612 2011-06-19  Bruno Haible  <bruno@clisp.org>
13613
13614         ceilf-ieee: Work around bug on AIX 7.1.
13615         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13616         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13617
13618 2011-06-19  Bruno Haible  <bruno@clisp.org>
13619
13620         ceil-ieee: Work around bug on AIX 7.1.
13621         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13622         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13623
13624 2011-06-18  Bruno Haible  <bruno@clisp.org>
13625
13626         fsync test: Avoid test failure on MacOS X and AIX.
13627         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13628         EINVAL.
13629
13630 2011-06-18  Bruno Haible  <bruno@clisp.org>
13631
13632         openat, fdopendir tests: Fix link errors.
13633         * modules/openat-tests (Depends-on): Add progname.
13634         * modules/fdopendir-tests (Depends-on): Likewise.
13635         * tests/test-fchownat.c: Include progname.h.
13636         (main): Call set_program_name.
13637         * tests/test-fstatat.c: Include progname.h.
13638         (main): Call set_program_name.
13639         * tests/test-mkdirat.c: Include progname.h.
13640         (main): Call set_program_name.
13641         * tests/test-openat.c: Include progname.h.
13642         (main): Call set_program_name.
13643         * tests/test-unlinkat.c: Include progname.h.
13644         (main): Call set_program_name.
13645         * tests/test-fdopendir.c: Include progname.h.
13646         (main): Call set_program_name.
13647
13648 2011-06-18  Bruno Haible  <bruno@clisp.org>
13649
13650         Doc update.
13651         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13652         HP-UX.
13653         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13654
13655 2011-06-18  Bruno Haible  <bruno@clisp.org>
13656
13657         getcwd tests: Avoid compilation error on HP-UX 11.31.
13658         * modules/getcwd-tests (Depends-on): Add pathmax.
13659         * tests/test-getcwd.c: Include pathmax.h.
13660
13661 2011-06-18  Bruno Haible  <bruno@clisp.org>
13662
13663         isfinite, isinf: Fix link error on AIX 6 and 7.
13664         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13665         needed, also test the macro with a 'float' argument.
13666         * m4/isinf.m4 (gl_ISINF): Likewise.
13667
13668 2011-06-18  Bruno Haible  <bruno@clisp.org>
13669
13670         getloadavg: Don't clobber LIBS. Regression from previous commit.
13671         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13672         AC_CHECK_LIB from here...
13673         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13674         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13675         gl_func_getloadavg_done.
13676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13677
13678 2011-06-18  Bruno Haible  <bruno@clisp.org>
13679
13680         clean-temp: Improve documentation.
13681         * lib/clean-temp.h: Explain better how to use this module.
13682         Reported by John Darrington <john@darrington.wattle.id.au>.
13683
13684 2011-06-17  Bruno Haible  <bruno@clisp.org>
13685
13686         pread, pwrite: Avoid cc warning on AIX.
13687         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13688         (pwrite): Likewise.
13689
13690 2011-06-17  Bruno Haible  <bruno@clisp.org>
13691
13692         spawn-pipe tests: Fix link error.
13693         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13695
13696 2011-06-17  Bruno Haible  <bruno@clisp.org>
13697
13698         Tests: Remove unnecessary dependency.
13699         * modules/canonicalize-tests (Depends-on): Remove progname.
13700         * modules/chown-tests (Depends-on): Likewise.
13701         * modules/dirname-tests (Depends-on): Likewise.
13702         * modules/fdopendir-tests (Depends-on): Likewise.
13703         * modules/fdutimensat-tests (Depends-on): Likewise.
13704         * modules/hash-tests (Depends-on): Likewise.
13705         * modules/lchown-tests (Depends-on): Likewise.
13706         * modules/linkat-tests (Depends-on): Likewise.
13707         * modules/renameat-tests (Depends-on): Likewise.
13708         * modules/spawn-pipe-tests (Depends-on): Likewise.
13709         * modules/utimensat-tests (Depends-on): Likewise.
13710
13711 2011-06-17  Bruno Haible  <bruno@clisp.org>
13712
13713         spawn-pipe tests: Fix link error.
13714         * tests/test-spawn-pipe-child.c: Undefine fflush.
13715
13716 2011-06-17  Bruno Haible  <bruno@clisp.org>
13717
13718         Fix tests link errors.
13719         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13720         * modules/chown-tests (Makefile.am): Don't link test-chown with
13721         LIBINTL.
13722         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13723         LIBINTL.
13724         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13725         LIBINTL.
13726         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13727         LIBINTL.
13728
13729 2011-06-16  Bruno Haible  <bruno@clisp.org>
13730
13731         crypto/gc-sha1: Fix recent regression.
13732         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13733         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13734
13735         crypto/gc-md5: Fix recent regression.
13736         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13737
13738         crypto/gc-md4: Fix recent regression.
13739         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13740         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13741
13742         crypto/gc-arctwo: Fix recent regression.
13743         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13744         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13745
13746         crypto/gc-rijndael: Fix recent regression.
13747         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13748         (configure.ac): Invoke AC_LIBOBJ here.
13749         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13751
13752         crypto/gc-hmac-sha1: Fix recent regression.
13753         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13754         (configure.ac): Invoke AC_LIBOBJ here.
13755         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13757
13758         crypto/gc-hmac-md5: Fix recent regression.
13759         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13760         (configure.ac): Invoke AC_LIBOBJ here.
13761         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13763
13764         crypto/gc-des: Fix recent regression.
13765         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13766         (configure.ac): Invoke AC_LIBOBJ here.
13767         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13769
13770         crypto/gc-arcfour: Fix recent regression.
13771         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13772         (configure.ac): Invoke AC_LIBOBJ here.
13773         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13775
13776 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13777
13778         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13779         After the 2011-05-21 change, this macro requires
13780         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13781         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13782
13783 2011-06-16  Bruno Haible  <bruno@clisp.org>
13784
13785         fprintftime: Move AC_LIBOBJ invocations to module description.
13786         * m4/fprintftime.m4: Remove file.
13787         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13788         (configure.ac): Remove gl_FPRINTFTIME call.
13789         (Makefile.am): Augment lib_SOURCES.
13790         Reported by Jim Meyering.
13791
13792 2011-06-16  Bruno Haible  <bruno@clisp.org>
13793
13794         tmpfile-safer: Finish 2011-05-23 commit.
13795         * m4/stdio-safer.m4: Really remove file.
13796         Reported by Jim Meyering.
13797
13798 2011-06-16  Bruno Haible  <bruno@clisp.org>
13799
13800         syntax-check: Fix typo.
13801         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13802         printf-posix.m4.
13803         Reported by Jim Meyering.
13804
13805 2011-06-13  Jim Meyering  <meyering@redhat.com>
13806
13807         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13808         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13809
13810 2011-05-23  Bruno Haible  <bruno@clisp.org>
13811
13812         yesno: Move AC_LIBOBJ invocations to module description.
13813         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13814         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13815
13816 2011-05-23  Bruno Haible  <bruno@clisp.org>
13817
13818         xstrtol: Move AC_LIBOBJ invocations to module description.
13819         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13820         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13821
13822 2011-05-23  Bruno Haible  <bruno@clisp.org>
13823
13824         xstrtold: Move AC_LIBOBJ invocations to module description.
13825         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13826         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13827
13828 2011-05-23  Bruno Haible  <bruno@clisp.org>
13829
13830         xstrtod: Move AC_LIBOBJ invocations to module description.
13831         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13832         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13833
13834 2011-05-23  Bruno Haible  <bruno@clisp.org>
13835
13836         xnanosleep: Move AC_LIBOBJ invocations to module description.
13837         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13838         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13839
13840 2011-05-23  Bruno Haible  <bruno@clisp.org>
13841
13842         xgetcwd: Move AC_LIBOBJ invocations to module description.
13843         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13844         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13845
13846 2011-05-23  Bruno Haible  <bruno@clisp.org>
13847
13848         xalloc: Move AC_LIBOBJ invocations to module description.
13849         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13850         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13851
13852 2011-05-23  Bruno Haible  <bruno@clisp.org>
13853
13854         write-any-file: Move AC_LIBOBJ invocations to module description.
13855         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13856         invocation.
13857         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13858
13859 2011-05-23  Bruno Haible  <bruno@clisp.org>
13860
13861         utimens: Move AC_LIBOBJ invocations to module description.
13862         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13863         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13864
13865 2011-05-23  Bruno Haible  <bruno@clisp.org>
13866
13867         utimecmp: Move AC_LIBOBJ invocations to module description.
13868         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13869         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13870
13871 2011-05-23  Bruno Haible  <bruno@clisp.org>
13872
13873         userspec: Move AC_LIBOBJ invocations to module description.
13874         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13875         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13876
13877 2011-05-23  Bruno Haible  <bruno@clisp.org>
13878
13879         unlinkdir: Move AC_LIBOBJ invocations to module description.
13880         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13881         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13882
13883 2011-05-23  Bruno Haible  <bruno@clisp.org>
13884
13885         unistd-safer: Move AC_LIBOBJ invocations to module description.
13886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13887         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13888
13889 2011-05-23  Bruno Haible  <bruno@clisp.org>
13890
13891         tempname: Move AC_LIBOBJ invocations to module description.
13892         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13893         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13894
13895 2011-05-23  Bruno Haible  <bruno@clisp.org>
13896
13897         strftime: Move AC_LIBOBJ invocations to module description.
13898         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13899         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13900
13901 2011-05-23  Bruno Haible  <bruno@clisp.org>
13902
13903         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13904         * m4/stdlib-safer.m4: Remove file.
13905         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13906         (configure.ac): Remove gl_STDLIB_SAFER call.
13907         (Makefile.am): Augment lib_SOURCES.
13908
13909 2011-05-23  Bruno Haible  <bruno@clisp.org>
13910
13911         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13912         * m4/stdio-safer.m4: Remove file.
13913         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13914         (configure.ac): Remove gl_TMPFILE_SAFER call.
13915         (Makefile.am): Augment lib_SOURCES.
13916
13917 2011-05-23  Bruno Haible  <bruno@clisp.org>
13918
13919         popen-safer: Move AC_LIBOBJ invocations to module description.
13920         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13921         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13922         (configure.ac): Remove gl_POPEN_SAFER call.
13923         (Makefile.am): Augment lib_SOURCES.
13924
13925 2011-05-23  Bruno Haible  <bruno@clisp.org>
13926
13927         freopen-safer: Move AC_LIBOBJ invocations to module description.
13928         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13929         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13930         (configure.ac): Remove gl_FREOPEN_SAFER call.
13931         (Makefile.am): Augment lib_SOURCES.
13932
13933 2011-05-23  Bruno Haible  <bruno@clisp.org>
13934
13935         fopen-safer: Move AC_LIBOBJ invocations to module description.
13936         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13937         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13938         (configure.ac): Remove gl_FOPEN_SAFER call.
13939         (Makefile.am): Augment lib_SOURCES.
13940
13941 2011-05-23  Bruno Haible  <bruno@clisp.org>
13942
13943         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13944         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13945         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13946
13947 2011-05-23  Bruno Haible  <bruno@clisp.org>
13948
13949         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13950         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13951         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13952
13953 2011-05-23  Bruno Haible  <bruno@clisp.org>
13954
13955         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13956         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13957         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13958
13959 2011-05-23  Bruno Haible  <bruno@clisp.org>
13960
13961         settime: Move AC_LIBOBJ invocations to module description.
13962         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13963         * modules/settime (Makefile.am): Augment lib_SOURCES.
13964
13965 2011-05-23  Bruno Haible  <bruno@clisp.org>
13966
13967         savedir: Move AC_LIBOBJ invocations to module description.
13968         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13969         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13970
13971 2011-05-23  Bruno Haible  <bruno@clisp.org>
13972
13973         save-cwd: Move AC_LIBOBJ invocations to module description.
13974         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13975         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13976
13977 2011-05-23  Bruno Haible  <bruno@clisp.org>
13978
13979         same: Move AC_LIBOBJ invocations to module description.
13980         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13981         * modules/same (Makefile.am): Augment lib_SOURCES.
13982
13983 2011-05-23  Bruno Haible  <bruno@clisp.org>
13984
13985         safe-write: Move AC_LIBOBJ invocations to module description.
13986         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13987         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13988         instead of gl_SAFE_WRITE.
13989         (Makefile.am): Augment lib_SOURCES.
13990
13991 2011-05-23  Bruno Haible  <bruno@clisp.org>
13992
13993         safe-read: Move AC_LIBOBJ invocations to module description.
13994         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13995         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13996         of gl_SAFE_READ.
13997         (Makefile.am): Augment lib_SOURCES.
13998
13999 2011-05-23  Bruno Haible  <bruno@clisp.org>
14000
14001         safe-alloc: Move AC_LIBOBJ invocations to module description.
14002         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14003         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14004
14005 2011-05-23  Bruno Haible  <bruno@clisp.org>
14006
14007         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14008         * m4/rijndael.m4: Remove file.
14009         * modules/crypto/rijndael (Files): Remove it.
14010         (configure.ac): Remove gl_RIJNDAEL call.
14011         (Makefile.am): Augment lib_SOURCES.
14012
14013 2011-05-23  Bruno Haible  <bruno@clisp.org>
14014
14015         readtokens: Move AC_LIBOBJ invocations to module description.
14016         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14017         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14018
14019 2011-05-23  Bruno Haible  <bruno@clisp.org>
14020
14021         read-file: Move AC_LIBOBJ invocations to module description.
14022         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14023         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14024         of gl_FUNC_READ_FILE.
14025         (Makefile.am): Augment lib_SOURCES.
14026
14027 2011-05-23  Bruno Haible  <bruno@clisp.org>
14028
14029         quotearg: Move AC_LIBOBJ invocations to module description.
14030         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14031         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14032
14033 2011-05-23  Bruno Haible  <bruno@clisp.org>
14034
14035         quote: Move AC_LIBOBJ invocations to module description.
14036         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14037         * modules/quote (Makefile.am): Augment lib_SOURCES.
14038
14039 2011-05-23  Bruno Haible  <bruno@clisp.org>
14040
14041         posixver: Move AC_LIBOBJ invocations to module description.
14042         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14043         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14044
14045 2011-05-23  Bruno Haible  <bruno@clisp.org>
14046
14047         posixtm: Move AC_LIBOBJ invocations to module description.
14048         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14049         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14050
14051 2011-05-23  Bruno Haible  <bruno@clisp.org>
14052
14053         physmem: Move AC_LIBOBJ invocations to module description.
14054         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14055         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14056
14057 2011-05-23  Bruno Haible  <bruno@clisp.org>
14058
14059         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14060         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14061         invocation.
14062         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14063
14064 2011-05-23  Bruno Haible  <bruno@clisp.org>
14065
14066         mpsort: Move AC_LIBOBJ invocations to module description.
14067         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14068         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14069
14070 2011-05-23  Bruno Haible  <bruno@clisp.org>
14071
14072         modechange: Move AC_LIBOBJ invocations to module description.
14073         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14074         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14075
14076 2011-05-23  Bruno Haible  <bruno@clisp.org>
14077
14078         mkdir-p: Move AC_LIBOBJ invocations to module description.
14079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14080         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14081
14082 2011-05-23  Bruno Haible  <bruno@clisp.org>
14083
14084         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14085         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14086         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14087
14088 2011-05-23  Bruno Haible  <bruno@clisp.org>
14089
14090         mgetgroups: Move AC_LIBOBJ invocations to module description.
14091         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14092         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14093
14094 2011-05-23  Bruno Haible  <bruno@clisp.org>
14095
14096         memxor: Move AC_LIBOBJ invocations to module description.
14097         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14098         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14099
14100 2011-05-23  Bruno Haible  <bruno@clisp.org>
14101
14102         memcoll: Move AC_LIBOBJ invocations to module description.
14103         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14104         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14105
14106 2011-05-23  Bruno Haible  <bruno@clisp.org>
14107
14108         memcasecmp: Move AC_LIBOBJ invocations to module description.
14109         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14110         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14111
14112 2011-05-23  Bruno Haible  <bruno@clisp.org>
14113
14114         crypto/md5: Move AC_LIBOBJ invocations to module description.
14115         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14116         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14117
14118 2011-05-23  Bruno Haible  <bruno@clisp.org>
14119
14120         crypto/md4: Move AC_LIBOBJ invocations to module description.
14121         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14122         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14123
14124 2011-05-23  Bruno Haible  <bruno@clisp.org>
14125
14126         crypto/md2: Move AC_LIBOBJ invocations to module description.
14127         * m4/md2.m4: Remove file.
14128         * modules/crypto/md2 (Files): Remove it.
14129         (configure.ac): Remove gl_MD2 call.
14130         (Makefile.am): Augment lib_SOURCES.
14131
14132 2011-05-23  Bruno Haible  <bruno@clisp.org>
14133
14134         long-options: Move AC_LIBOBJ invocations to module description.
14135         * m4/long-options.m4: Remove file.
14136         * modules/long-options (Files): Remove it.
14137         (configure.ac): Remove gl_LONG_OPTIONS call.
14138         (Makefile.am): Augment lib_SOURCES.
14139
14140 2011-05-23  Bruno Haible  <bruno@clisp.org>
14141
14142         i-ring: Move AC_LIBOBJ invocations to module description.
14143         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14144         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14145
14146 2011-05-23  Bruno Haible  <bruno@clisp.org>
14147
14148         idcache: Move AC_LIBOBJ invocations to module description.
14149         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14150         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14151
14152 2011-05-23  Bruno Haible  <bruno@clisp.org>
14153
14154         human: Move AC_LIBOBJ invocations to module description.
14155         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14156         * modules/human (Makefile.am): Augment lib_SOURCES.
14157
14158 2011-05-23  Bruno Haible  <bruno@clisp.org>
14159
14160         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14161         * m4/hmac-sha1.m4: Remove file.
14162         * modules/crypto/hmac-sha1 (Files): Remove it.
14163         (configure.ac): Remove gl_HMAC_SHA1 call.
14164         (Makefile.am): Augment lib_SOURCES.
14165
14166 2011-05-23  Bruno Haible  <bruno@clisp.org>
14167
14168         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14169         * m4/hmac-md5.m4: Remove file.
14170         * modules/crypto/hmac-md5 (Files): Remove it.
14171         (configure.ac): Remove gl_HMAC_MD5 call.
14172         (Makefile.am): Augment lib_SOURCES.
14173
14174 2011-05-23  Bruno Haible  <bruno@clisp.org>
14175
14176         hash: Move AC_LIBOBJ invocations to module description.
14177         * m4/hash.m4: Remove file.
14178         * modules/hash (Files): Remove it.
14179         (configure.ac): Remove gl_HASH call.
14180         (Makefile.am): Augment lib_SOURCES.
14181
14182 2011-05-23  Bruno Haible  <bruno@clisp.org>
14183
14184         hard-locale: Move AC_LIBOBJ invocations to module description.
14185         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14186         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14187
14188 2011-05-23  Bruno Haible  <bruno@clisp.org>
14189
14190         getugroups: Move AC_LIBOBJ invocations to module description.
14191         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14192         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14193
14194 2011-05-23  Bruno Haible  <bruno@clisp.org>
14195
14196         gettime: Move AC_LIBOBJ invocations to module description.
14197         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14198         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14199
14200 2011-05-23  Bruno Haible  <bruno@clisp.org>
14201
14202         getndelim2: Move AC_LIBOBJ invocations to module description.
14203         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14204         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14205
14206 2011-05-23  Bruno Haible  <bruno@clisp.org>
14207
14208         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14209         * m4/gc-pbkdf2-sha1.m4: Remove file.
14210         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14211         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14212         (Makefile.am): Augment lib_SOURCES.
14213
14214 2011-05-23  Bruno Haible  <bruno@clisp.org>
14215
14216         fts: Move AC_LIBOBJ invocations to module description.
14217         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14218         * modules/fts (configure.ac): ... to here.
14219
14220 2011-05-23  Bruno Haible  <bruno@clisp.org>
14221
14222         file-type: Move AC_LIBOBJ invocations to module description.
14223         * m4/file-type.m4: Remove file.
14224         * modules/file-type (Files): Remove it.
14225         (configure.ac): Remove gl_FILE_TYPE call.
14226         (Makefile.am): Augment lib_SOURCES.
14227
14228 2011-05-23  Bruno Haible  <bruno@clisp.org>
14229
14230         filenamecat*: Respect rules for use of AC_LIBOBJ.
14231         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14232         Remove AC_LIBOBJ invocation.
14233         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14234         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14235
14236 2011-05-23  Bruno Haible  <bruno@clisp.org>
14237
14238         filemode: Move AC_LIBOBJ invocations to module description.
14239         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14240         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14241
14242 2011-05-23  Bruno Haible  <bruno@clisp.org>
14243
14244         openat-safer: Move AC_LIBOBJ invocations to module description.
14245         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14246         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14247
14248 2011-05-23  Bruno Haible  <bruno@clisp.org>
14249
14250         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14251         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14252         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14253
14254 2011-05-23  Bruno Haible  <bruno@clisp.org>
14255
14256         exclude: Move AC_LIBOBJ invocations to module description.
14257         * m4/exclude.m4: Remove file.
14258         * modules/exclude (Files): Remove it.
14259         (configure.ac): Remove gl_EXCLUDE call.
14260         (Makefile.am): Augment lib_SOURCES.
14261
14262 2011-05-23  Bruno Haible  <bruno@clisp.org>
14263
14264         dirname*: Respect rules for use of AC_LIBOBJ.
14265         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14266         invocations.
14267         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14268         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14269
14270 2011-05-23  Bruno Haible  <bruno@clisp.org>
14271
14272         dirent-safer: Move AC_LIBOBJ invocations to module description.
14273         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14274         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14275
14276 2011-05-23  Bruno Haible  <bruno@clisp.org>
14277
14278         crypto/des: Move AC_LIBOBJ invocations to module description.
14279         * m4/des.m4: Remove file.
14280         * modules/crypto/des (Files): Remove it.
14281         (configure.ac): Remove gl_DES call.
14282         (Makefile.am): Augment lib_SOURCES.
14283
14284 2011-05-23  Bruno Haible  <bruno@clisp.org>
14285
14286         cycle-check: Move AC_LIBOBJ invocations to module description.
14287         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14288         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14289
14290 2011-05-23  Bruno Haible  <bruno@clisp.org>
14291
14292         c-strtold: Move AC_LIBOBJ invocations to module description.
14293         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14294         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14295
14296 2011-05-23  Bruno Haible  <bruno@clisp.org>
14297
14298         c-strtod: Move AC_LIBOBJ invocations to module description.
14299         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14300         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14301
14302 2011-05-23  Bruno Haible  <bruno@clisp.org>
14303
14304         crc: Move AC_LIBOBJ invocations to module description.
14305         * m4/crc.m4: Remove file.
14306         * modules/crc (Files): Remove it.
14307         (configure.ac): Remove gl_CRC call.
14308         (Makefile.am): Augment lib_SOURCES.
14309
14310 2011-05-23  Bruno Haible  <bruno@clisp.org>
14311
14312         close-stream: Move AC_LIBOBJ invocations to module description.
14313         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14314         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14315
14316 2011-05-23  Bruno Haible  <bruno@clisp.org>
14317
14318         closeout: Move AC_LIBOBJ invocations to module description.
14319         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14320         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14321
14322 2011-05-23  Bruno Haible  <bruno@clisp.org>
14323
14324         closein: Move AC_LIBOBJ invocations to module description.
14325         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14326         * modules/closein (Makefile.am): Augment lib_SOURCES.
14327
14328 2011-05-23  Bruno Haible  <bruno@clisp.org>
14329
14330         cloexec: Move AC_LIBOBJ invocations to module description.
14331         * m4/cloexec.m4: Remove file.
14332         * modules/cloexec (Files): Remove it.
14333         (configure.ac): Remove gl_CLOEXEC call.
14334         (Makefile.am): Augment lib_SOURCES.
14335
14336 2011-05-23  Bruno Haible  <bruno@clisp.org>
14337
14338         check-version: Move AC_LIBOBJ invocations to module description.
14339         * m4/check-version.m4: Remove file.
14340         * modules/check-version (Files): Remove it.
14341         (configure.ac): Remove gl_CHECK_VERSION call.
14342         (Makefile.am): Augment lib_SOURCES.
14343
14344 2011-05-23  Bruno Haible  <bruno@clisp.org>
14345
14346         chdir-safer: Move AC_LIBOBJ invocations to module description.
14347         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14348         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14349
14350 2011-05-23  Bruno Haible  <bruno@clisp.org>
14351
14352         canonicalize: Move AC_LIBOBJ invocations to module description.
14353         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14354         AC_LIBOBJ invocation.
14355         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14356
14357 2011-05-23  Bruno Haible  <bruno@clisp.org>
14358
14359         canon-host: Move AC_LIBOBJ invocations to module description.
14360         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14361         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14362         instead of gl_CANON_HOST.
14363         (Makefile.am): Augment lib_SOURCES.
14364
14365 2011-05-23  Bruno Haible  <bruno@clisp.org>
14366
14367         backupfile: Move AC_LIBOBJ invocations to module description.
14368         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14369         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14370
14371 2011-05-23  Bruno Haible  <bruno@clisp.org>
14372
14373         argmatch: Move AC_LIBOBJ invocations to module description.
14374         * m4/argmatch.m4: Remove file.
14375         * modules/argmatch (Files): Remove it.
14376         (configure.ac): Remove gl_ARGMATCH call.
14377         (Makefile.am): Augment lib_SOURCES.
14378
14379 2011-05-23  Bruno Haible  <bruno@clisp.org>
14380
14381         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14382         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14383         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14384
14385 2011-05-23  Bruno Haible  <bruno@clisp.org>
14386
14387         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14388         * m4/arcfour.m4: Remove file.
14389         * modules/crypto/arcfour (Files): Remove it.
14390         (configure.ac): Remove gl_ARCFOUR call.
14391         (Makefile.am): Augment lib_SOURCES.
14392
14393 2011-05-22  Bruno Haible  <bruno@clisp.org>
14394
14395         write: Move AC_LIBOBJ invocations to module description.
14396         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14397         * modules/write (configure.ac): ... to here.
14398
14399 2011-05-22  Bruno Haible  <bruno@clisp.org>
14400
14401         wmemset: Move AC_LIBOBJ invocations to module description.
14402         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14403         here...
14404         * modules/wmemset (configure.ac): ... to here.
14405
14406 2011-05-22  Bruno Haible  <bruno@clisp.org>
14407
14408         wmemmove: Move AC_LIBOBJ invocations to module description.
14409         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14410         here...
14411         * modules/wmemmove (configure.ac): ... to here.
14412
14413 2011-05-22  Bruno Haible  <bruno@clisp.org>
14414
14415         wmemcpy: Move AC_LIBOBJ invocations to module description.
14416         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14417         here...
14418         * modules/wmemcpy (configure.ac): ... to here.
14419
14420 2011-05-22  Bruno Haible  <bruno@clisp.org>
14421
14422         wmemcmp: Move AC_LIBOBJ invocations to module description.
14423         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14424         here...
14425         * modules/wmemcmp (configure.ac): ... to here.
14426
14427 2011-05-22  Bruno Haible  <bruno@clisp.org>
14428
14429         wmemchr: Move AC_LIBOBJ invocations to module description.
14430         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14431         here...
14432         * modules/wmemchr (configure.ac): ... to here.
14433
14434 2011-05-22  Bruno Haible  <bruno@clisp.org>
14435
14436         wcswidth: Move AC_LIBOBJ invocations to module description.
14437         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14438         here...
14439         * modules/wcswidth (configure.ac): ... to here.
14440
14441 2011-05-22  Bruno Haible  <bruno@clisp.org>
14442
14443         wcwidth: Respect rules for use of AC_LIBOBJ.
14444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14445         invocation from here...
14446         * modules/wcwidth (configure.ac): ... to here.
14447         (Depends-on): Update conditions.
14448
14449 2011-05-22  Bruno Haible  <bruno@clisp.org>
14450
14451         wctype: Move AC_LIBOBJ invocations to module description.
14452         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14453         invocation from here...
14454         * modules/wctype (configure.ac): ... to here.
14455         (Depends-on): Update conditions.
14456
14457 2011-05-22  Bruno Haible  <bruno@clisp.org>
14458
14459         wctrans: Move AC_LIBOBJ invocations to module description.
14460         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14461         invocation from here...
14462         * modules/wctrans (configure.ac): ... to here.
14463
14464 2011-05-22  Bruno Haible  <bruno@clisp.org>
14465
14466         wctomb: Move AC_LIBOBJ invocations to module description.
14467         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14468         invocations from here...
14469         * modules/wctomb (configure.ac): ... to here.
14470
14471 2011-05-22  Bruno Haible  <bruno@clisp.org>
14472
14473         wctob: Move AC_LIBOBJ invocations to module description.
14474         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14475         gl_PREREQ_WCTOB invocations from here...
14476         * modules/wctob (configure.ac): ... to here.
14477         (Depends-on): Update conditions.
14478
14479 2011-05-22  Bruno Haible  <bruno@clisp.org>
14480
14481         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14482         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14483         here...
14484         * modules/wcsxfrm (configure.ac): ... to here.
14485
14486 2011-05-22  Bruno Haible  <bruno@clisp.org>
14487
14488         wcstok: Move AC_LIBOBJ invocations to module description.
14489         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14490         * modules/wcstok (configure.ac): ... to here.
14491
14492 2011-05-22  Bruno Haible  <bruno@clisp.org>
14493
14494         wcsstr: Move AC_LIBOBJ invocations to module description.
14495         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14496         * modules/wcsstr (configure.ac): ... to here.
14497
14498 2011-05-22  Bruno Haible  <bruno@clisp.org>
14499
14500         wcsspn: Move AC_LIBOBJ invocations to module description.
14501         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14502         * modules/wcsspn (configure.ac): ... to here.
14503
14504 2011-05-22  Bruno Haible  <bruno@clisp.org>
14505
14506         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14507         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14508         gl_PREREQ_WCSRTOMBS invocations from here...
14509         * modules/wcsrtombs (configure.ac): ... to here.
14510
14511 2011-05-22  Bruno Haible  <bruno@clisp.org>
14512
14513         wcsrchr: Move AC_LIBOBJ invocations to module description.
14514         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14515         here...
14516         * modules/wcsrchr (configure.ac): ... to here.
14517
14518 2011-05-22  Bruno Haible  <bruno@clisp.org>
14519
14520         wcspbrk: Move AC_LIBOBJ invocations to module description.
14521         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14522         here...
14523         * modules/wcspbrk (configure.ac): ... to here.
14524
14525 2011-05-22  Bruno Haible  <bruno@clisp.org>
14526
14527         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14528         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14529         gl_PREREQ_WCSNRTOMBS invocations from here...
14530         * modules/wcsnrtombs (configure.ac): ... to here.
14531
14532 2011-05-22  Bruno Haible  <bruno@clisp.org>
14533
14534         wcsnlen: Move AC_LIBOBJ invocations to module description.
14535         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14536         here...
14537         * modules/wcsnlen (configure.ac): ... to here.
14538
14539 2011-05-22  Bruno Haible  <bruno@clisp.org>
14540
14541         wcsncpy: Move AC_LIBOBJ invocations to module description.
14542         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14543         here...
14544         * modules/wcsncpy (configure.ac): ... to here.
14545
14546 2011-05-22  Bruno Haible  <bruno@clisp.org>
14547
14548         wcsncmp: Move AC_LIBOBJ invocations to module description.
14549         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14550         here...
14551         * modules/wcsncmp (configure.ac): ... to here.
14552
14553 2011-05-22  Bruno Haible  <bruno@clisp.org>
14554
14555         wcsncat: Move AC_LIBOBJ invocations to module description.
14556         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14557         here...
14558         * modules/wcsncat (configure.ac): ... to here.
14559
14560 2011-05-22  Bruno Haible  <bruno@clisp.org>
14561
14562         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14563         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14564         from here...
14565         * modules/wcsncasecmp (configure.ac): ... to here.
14566
14567 2011-05-22  Bruno Haible  <bruno@clisp.org>
14568
14569         wcslen: Move AC_LIBOBJ invocations to module description.
14570         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14571         * modules/wcslen (configure.ac): ... to here.
14572
14573 2011-05-22  Bruno Haible  <bruno@clisp.org>
14574
14575         wcsdup: Move AC_LIBOBJ invocations to module description.
14576         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14577         * modules/wcsdup (configure.ac): ... to here.
14578
14579 2011-05-22  Bruno Haible  <bruno@clisp.org>
14580
14581         wcscspn: Move AC_LIBOBJ invocations to module description.
14582         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14583         here...
14584         * modules/wcscspn (configure.ac): ... to here.
14585
14586 2011-05-22  Bruno Haible  <bruno@clisp.org>
14587
14588         wcscpy: Move AC_LIBOBJ invocations to module description.
14589         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14590         * modules/wcscpy (configure.ac): ... to here.
14591
14592 2011-05-22  Bruno Haible  <bruno@clisp.org>
14593
14594         wcscoll: Move AC_LIBOBJ invocations to module description.
14595         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14596         here...
14597         * modules/wcscoll (configure.ac): ... to here.
14598
14599 2011-05-22  Bruno Haible  <bruno@clisp.org>
14600
14601         wcscmp: Move AC_LIBOBJ invocations to module description.
14602         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14603         * modules/wcscmp (configure.ac): ... to here.
14604
14605 2011-05-22  Bruno Haible  <bruno@clisp.org>
14606
14607         wcschr: Move AC_LIBOBJ invocations to module description.
14608         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14609         * modules/wcschr (configure.ac): ... to here.
14610
14611 2011-05-22  Bruno Haible  <bruno@clisp.org>
14612
14613         wcscat: Move AC_LIBOBJ invocations to module description.
14614         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14615         * modules/wcscat (configure.ac): ... to here.
14616
14617 2011-05-22  Bruno Haible  <bruno@clisp.org>
14618
14619         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14620         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14621         here...
14622         * modules/wcscasecmp (configure.ac): ... to here.
14623
14624 2011-05-22  Bruno Haible  <bruno@clisp.org>
14625
14626         wcrtomb: Move AC_LIBOBJ invocations to module description.
14627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14628         invocations from here...
14629         * modules/wcrtomb (configure.ac): ... to here.
14630
14631 2011-05-22  Bruno Haible  <bruno@clisp.org>
14632
14633         wcpncpy: Move AC_LIBOBJ invocations to module description.
14634         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14635         here...
14636         * modules/wcpncpy (configure.ac): ... to here.
14637
14638 2011-05-22  Bruno Haible  <bruno@clisp.org>
14639
14640         wcpcpy: Move AC_LIBOBJ invocations to module description.
14641         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14642         * modules/wcpcpy (configure.ac): ... to here.
14643
14644 2011-05-22  Bruno Haible  <bruno@clisp.org>
14645
14646         waitpid: Move AC_LIBOBJ invocations to module description.
14647         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14648         invocation from here...
14649         * modules/waitpid (configure.ac): ... to here.
14650
14651 2011-05-22  Bruno Haible  <bruno@clisp.org>
14652
14653         utimensat: Move AC_LIBOBJ invocations to module description.
14654         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14655         here...
14656         * modules/utimensat (configure.ac): ... to here.
14657
14658 2011-05-22  Bruno Haible  <bruno@clisp.org>
14659
14660         usleep: Move AC_LIBOBJ invocations to module description.
14661         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14662         here...
14663         * modules/usleep (configure.ac): ... to here.
14664
14665 2011-05-22  Bruno Haible  <bruno@clisp.org>
14666
14667         unlockpt: Move AC_LIBOBJ invocations to module description.
14668         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14669         gl_PREREQ_UNLOCKPT invocations from here...
14670         * modules/unlockpt (configure.ac): ... to here.
14671
14672 2011-05-22  Bruno Haible  <bruno@clisp.org>
14673
14674         unlink: Respect rules for use of AC_LIBOBJ.
14675         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14676         * modules/unlink (configure.ac): ... to here.
14677
14678 2011-05-22  Bruno Haible  <bruno@clisp.org>
14679
14680         uname: Move AC_LIBOBJ invocations to module description.
14681         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14683         here...
14684         * modules/uname (configure.ac): ... to here.
14685
14686 2011-05-22  Bruno Haible  <bruno@clisp.org>
14687
14688         ttyname_r: Move AC_LIBOBJ invocations to module description.
14689         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14690         gl_PREREQ_TTYNAME_R invocations from here...
14691         * modules/ttyname_r (configure.ac): ... to here.
14692
14693 2011-05-22  Bruno Haible  <bruno@clisp.org>
14694
14695         tsearch: Move AC_LIBOBJ invocations to module description.
14696         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14697         invocations from here...
14698         * modules/tsearch (configure.ac): ... to here.
14699
14700 2011-05-22  Bruno Haible  <bruno@clisp.org>
14701
14702         towctrans: Move AC_LIBOBJ invocations to module description.
14703         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14704         AC_LIBOBJ invocation from here...
14705         * modules/towctrans (configure.ac): ... to here.
14706
14707 2011-05-22  Bruno Haible  <bruno@clisp.org>
14708
14709         tmpfile: Move AC_LIBOBJ invocations to module description.
14710         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14711         invocations from here...
14712         * modules/tmpfile (configure.ac): ... to here.
14713
14714 2011-05-22  Bruno Haible  <bruno@clisp.org>
14715
14716         times: Move AC_LIBOBJ invocations to module description.
14717         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14718         * modules/times (configure.ac): ... to here.
14719
14720 2011-05-22  Bruno Haible  <bruno@clisp.org>
14721
14722         time_r: Move AC_LIBOBJ invocations to module description.
14723         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14724         invocations from here...
14725         * modules/time_r (configure.ac): ... to here.
14726
14727 2011-05-22  Bruno Haible  <bruno@clisp.org>
14728
14729         timegm: Move AC_LIBOBJ invocations to module description.
14730         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14731         invocations from here...
14732         * modules/timegm (configure.ac): ... to here.
14733
14734 2011-05-22  Bruno Haible  <bruno@clisp.org>
14735
14736         tcgetsid: Move AC_LIBOBJ invocations to module description.
14737         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14738         and gl_PREREQ_TCGETSID invocations from here...
14739         * modules/tcgetsid (configure.ac): ... to here.
14740         (Depends-on): Update conditions.
14741
14742 2011-05-22  Bruno Haible  <bruno@clisp.org>
14743
14744         symlinkat: Move AC_LIBOBJ invocations to module description.
14745         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14746         here...
14747         * modules/symlinkat (configure.ac): ... to here.
14748
14749 2011-05-22  Bruno Haible  <bruno@clisp.org>
14750
14751         symlink: Move AC_LIBOBJ invocations to module description.
14752         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14753         here...
14754         * modules/symlink (configure.ac): ... to here.
14755
14756 2011-05-22  Bruno Haible  <bruno@clisp.org>
14757
14758         strverscmp: Move AC_LIBOBJ invocations to module description.
14759         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14760         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14761         from here...
14762         * modules/strverscmp (configure.ac): ... to here.
14763
14764 2011-05-22  Bruno Haible  <bruno@clisp.org>
14765
14766         strtok_r: Move AC_LIBOBJ invocations to module description.
14767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14768         and gl_PREREQ_STRTOK_R invocations from here...
14769         * modules/strtok_r (configure.ac): ... to here.
14770         (Depends-on): Update conditions.
14771
14772 2011-05-22  Bruno Haible  <bruno@clisp.org>
14773
14774         strtoumax: Move AC_LIBOBJ invocations to module description.
14775         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14777         from here...
14778         * modules/strtoumax (configure.ac): ... to here.
14779
14780 2011-05-22  Bruno Haible  <bruno@clisp.org>
14781
14782         strtoimax: Move AC_LIBOBJ invocations to module description.
14783         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14785         from here...
14786         * modules/strtoimax (configure.ac): ... to here.
14787
14788 2011-05-22  Bruno Haible  <bruno@clisp.org>
14789
14790         strtoull: Move AC_LIBOBJ invocations to module description.
14791         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14793         from here...
14794         * modules/strtoull (configure.ac): ... to here.
14795
14796 2011-05-22  Bruno Haible  <bruno@clisp.org>
14797
14798         strtoll: Move AC_LIBOBJ invocations to module description.
14799         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14801         here...
14802         * modules/strtoll (configure.ac): ... to here.
14803
14804 2011-05-22  Bruno Haible  <bruno@clisp.org>
14805
14806         strtoul: Move AC_LIBOBJ invocations to module description.
14807         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14808         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14809         * modules/strtoul (configure.ac): ... to here.
14810
14811 2011-05-22  Bruno Haible  <bruno@clisp.org>
14812
14813         strtol: Move AC_LIBOBJ invocations to module description.
14814         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14815         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14816         * modules/strtol (configure.ac): ... to here.
14817
14818 2011-05-22  Bruno Haible  <bruno@clisp.org>
14819
14820         strtod: Move AC_LIBOBJ invocations to module description.
14821         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14822         invocations from here...
14823         * modules/strtod (configure.ac): ... to here.
14824
14825 2011-05-22  Bruno Haible  <bruno@clisp.org>
14826
14827         strstr*: Move AC_LIBOBJ invocations to module description.
14828         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14829         invocations from here...
14830         * modules/strstr-simple (configure.ac): ... to here.
14831         * modules/strstr (configure.ac): ... and here.
14832
14833 2011-05-22  Bruno Haible  <bruno@clisp.org>
14834
14835         strsignal: Move AC_LIBOBJ invocations to module description.
14836         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14837         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14838         * modules/strsignal (configure.ac): ... to here.
14839         (Depends-on): Update conditions.
14840
14841 2011-05-22  Bruno Haible  <bruno@clisp.org>
14842
14843         strsep: Move AC_LIBOBJ invocations to module description.
14844         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14846         here...
14847         * modules/strsep (configure.ac): ... to here.
14848
14849 2011-05-22  Bruno Haible  <bruno@clisp.org>
14850
14851         strptime: Move AC_LIBOBJ invocations to module description.
14852         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14853         gl_PREREQ_STRPTIME invocations from here...
14854         * modules/strptime (configure.ac): ... to here.
14855
14856 2011-05-22  Bruno Haible  <bruno@clisp.org>
14857
14858         strpbrk: Move AC_LIBOBJ invocations to module description.
14859         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14861         here...
14862         * modules/strpbrk (configure.ac): ... to here.
14863
14864 2011-05-22  Bruno Haible  <bruno@clisp.org>
14865
14866         strnlen: Move AC_LIBOBJ invocations to module description.
14867         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14868         invocations from here...
14869         * modules/strnlen (configure.ac): ... to here.
14870
14871 2011-05-22  Bruno Haible  <bruno@clisp.org>
14872
14873         strndup: Move AC_LIBOBJ invocations to module description.
14874         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14875         invocations from here...
14876         * modules/strndup (configure.ac): ... to here.
14877         (Depends-on): Update conditions.
14878
14879 2011-05-22  Bruno Haible  <bruno@clisp.org>
14880
14881         strncat: Move AC_LIBOBJ invocations to module description.
14882         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14883         invocations from here...
14884         * modules/strncat (configure.ac): ... to here.
14885
14886 2011-05-22  Bruno Haible  <bruno@clisp.org>
14887
14888         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14889         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14890         invocations from here...
14891         * modules/strdup (configure.ac): ... to here.
14892         * modules/strdup-posix (configure.ac): ... and here.
14893
14894 2011-05-22  Bruno Haible  <bruno@clisp.org>
14895
14896         strcspn: Move AC_LIBOBJ invocations to module description.
14897         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14899         here...
14900         * modules/strcspn (configure.ac): ... to here.
14901
14902 2011-05-22  Bruno Haible  <bruno@clisp.org>
14903
14904         strchrnul: Move AC_LIBOBJ invocations to module description.
14905         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14906         gl_PREREQ_STRCHRNUL invocations from here...
14907         * modules/strchrnul (configure.ac): ... to here.
14908
14909 2011-05-22  Bruno Haible  <bruno@clisp.org>
14910
14911         strcasestr*: Move AC_LIBOBJ invocations to module description.
14912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14913         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14914         * modules/strcasestr-simple (configure.ac): ... to here.
14915         * modules/strcasestr (configure.ac): ... and here.
14916
14917 2011-05-22  Bruno Haible  <bruno@clisp.org>
14918
14919         strcase: Move AC_LIBOBJ invocations to module description.
14920         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14921         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14922         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14923         gl_PREREQ_STRNCASECMP invocations from here...
14924         * modules/strcase (configure.ac): ... to here.
14925
14926 2011-05-22  Bruno Haible  <bruno@clisp.org>
14927
14928         stpncpy: Move AC_LIBOBJ invocations to module description.
14929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14930         here...
14931         * modules/stpncpy (configure.ac): ... to here.
14932
14933 2011-05-22  Bruno Haible  <bruno@clisp.org>
14934
14935         stpcpy: Move AC_LIBOBJ invocations to module description.
14936         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14938         here...
14939         * modules/stpcpy (configure.ac): ... to here.
14940
14941 2011-05-21  Bruno Haible  <bruno@clisp.org>
14942
14943         stat: Move AC_LIBOBJ invocations to module description.
14944         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14945         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14946         here...
14947         * modules/stat (configure.ac): ... to here.
14948
14949 2011-05-21  Bruno Haible  <bruno@clisp.org>
14950
14951         sleep: Move AC_LIBOBJ invocations to module description.
14952         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14953         * modules/sleep (configure.ac): ... to here.
14954
14955 2011-05-21  Bruno Haible  <bruno@clisp.org>
14956
14957         signbit: Move AC_LIBOBJ invocations to module description.
14958         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14959         * modules/signbit (configure.ac): ... to here.
14960
14961 2011-05-21  Bruno Haible  <bruno@clisp.org>
14962
14963         sigprocmask: Move AC_LIBOBJ invocations to module description.
14964         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14965         gl_PREREQ_SIGPROMASK invocations from here...
14966         * modules/sigprocmask (configure.ac): ... to here.
14967
14968 2011-05-21  Bruno Haible  <bruno@clisp.org>
14969
14970         sigaction: Move AC_LIBOBJ invocations to module description.
14971         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14972         gl_PREREQ_SIGACTION invocations from here...
14973         * modules/sigaction (configure.ac): ... to here.
14974
14975 2011-05-21  Bruno Haible  <bruno@clisp.org>
14976
14977         sig2str: Move AC_LIBOBJ invocations to module description.
14978         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14980         here...
14981         * modules/sig2str (configure.ac): ... to here.
14982
14983 2011-05-21  Bruno Haible  <bruno@clisp.org>
14984
14985         setlocale: Move AC_LIBOBJ invocations to module description.
14986         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14987         gl_PREREQ_SETLOCALE invocations from here...
14988         * modules/setlocale (configure.ac): ... to here.
14989
14990 2011-05-21  Bruno Haible  <bruno@clisp.org>
14991
14992         unsetenv: Move AC_LIBOBJ invocations to module description.
14993         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14994         and gl_PREREQ_UNSETENV invocations from here...
14995         * modules/unsetenv (configure.ac): ... to here.
14996         (Depends-on): Update.
14997
14998 2011-05-21  Bruno Haible  <bruno@clisp.org>
14999
15000         setenv: Move AC_LIBOBJ invocations to module description.
15001         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15002         here...
15003         * modules/setenv (configure.ac): ... to here.
15004
15005 2011-05-21  Bruno Haible  <bruno@clisp.org>
15006
15007         selinux-h: Move AC_LIBOBJ invocations to module description.
15008         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15009         AC_LIBOBJ invocation from here...
15010         * modules/selinux-h (configure.ac): ... to here.
15011
15012 2011-05-21  Bruno Haible  <bruno@clisp.org>
15013
15014         select: Respect rules for use of AC_LIBOBJ.
15015         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15016         here...
15017         * modules/select (configure.ac): ... to here.
15018
15019 2011-05-21  Bruno Haible  <bruno@clisp.org>
15020
15021         scandir: Move AC_LIBOBJ invocations to module description.
15022         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15023         invocations from here...
15024         * modules/scandir (configure.ac): ... to here.
15025
15026 2011-05-21  Bruno Haible  <bruno@clisp.org>
15027
15028         rpmatch: Move AC_LIBOBJ invocations to module description.
15029         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15030         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15031         here...
15032         * modules/rpmatch (configure.ac): ... to here.
15033
15034 2011-05-21  Bruno Haible  <bruno@clisp.org>
15035
15036         rmdir: Respect rules for use of AC_LIBOBJ.
15037         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15038         * modules/rmdir (configure.ac): ... to here.
15039
15040 2011-05-21  Bruno Haible  <bruno@clisp.org>
15041
15042         renameat: Move AC_LIBOBJ invocations to module description.
15043         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15044         here...
15045         * modules/renameat (configure.ac): ... to here.
15046
15047 2011-05-21  Bruno Haible  <bruno@clisp.org>
15048
15049         rename: Respect rules for use of AC_LIBOBJ.
15050         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15051         here...
15052         * modules/rename (configure.ac): ... to here.
15053
15054 2011-05-21  Bruno Haible  <bruno@clisp.org>
15055
15056         remove: Move AC_LIBOBJ invocations to module description.
15057         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15058         here...
15059         * modules/remove (configure.ac): ... to here.
15060
15061 2011-05-21  Bruno Haible  <bruno@clisp.org>
15062
15063         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15064         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15065         macro.
15066         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15067         * modules/relocatable-lib (configure.ac): ... to here.
15068         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15069         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15070
15071 2011-05-21  Bruno Haible  <bruno@clisp.org>
15072
15073         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15074         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15075         here...
15076         * modules/relocatable-prog (configure.ac): ... to here.
15077
15078 2011-05-21  Bruno Haible  <bruno@clisp.org>
15079
15080         regex: Move AC_LIBOBJ invocations to module description.
15081         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15082         invocations from here...
15083         * modules/regex (configure.ac): ... to here.
15084
15085 2011-05-21  Bruno Haible  <bruno@clisp.org>
15086
15087         realloc-*: Move AC_LIBOBJ invocations to module description.
15088         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15089         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15090         AC_LIBOBJ invocations from here...
15091         * modules/realloc-gnu (configure.ac): ... to here.
15092         * modules/realloc-posix (configure.ac): ... and here.
15093
15094 2011-05-21  Bruno Haible  <bruno@clisp.org>
15095
15096         readutmp: Move AC_LIBOBJ invocations to module description.
15097         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15098         * modules/readutmp (configure.ac): ... to here.
15099
15100 2011-05-21  Bruno Haible  <bruno@clisp.org>
15101
15102         readlinkat: Move AC_LIBOBJ invocations to module description.
15103         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15104         here...
15105         * modules/readlinkat (configure.ac): ... to here.
15106
15107 2011-05-21  Bruno Haible  <bruno@clisp.org>
15108
15109         readlink: Move AC_LIBOBJ invocations to module description.
15110         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15111         gl_PREREQ_READLINK invocations from here...
15112         * modules/readlink (configure.ac): ... to here.
15113
15114 2011-05-21  Bruno Haible  <bruno@clisp.org>
15115
15116         readline: Move AC_LIBOBJ invocations to module description.
15117         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15118         gl_PREREQ_READLINE invocations from here...
15119         * modules/readline (configure.ac): ... to here.
15120
15121 2011-05-21  Bruno Haible  <bruno@clisp.org>
15122
15123         read: Move AC_LIBOBJ invocations to module description.
15124         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15125         * modules/read (configure.ac): ... to here.
15126
15127 2011-05-21  Bruno Haible  <bruno@clisp.org>
15128
15129         rawmemchr: Move AC_LIBOBJ invocations to module description.
15130         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15132         from here...
15133         * modules/rawmemchr (configure.ac): ... to here.
15134
15135 2011-05-21  Bruno Haible  <bruno@clisp.org>
15136
15137         random_r: Move AC_LIBOBJ invocations to module description.
15138         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15139         gl_PREREQ_RANDOM_R invocations from here...
15140         * modules/random_r (configure.ac): ... to here.
15141
15142 2011-05-21  Bruno Haible  <bruno@clisp.org>
15143
15144         pwrite: Move AC_LIBOBJ invocations to module description.
15145         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15146         * modules/pwrite (configure.ac): ... to here.
15147
15148 2011-05-21  Bruno Haible  <bruno@clisp.org>
15149
15150         putenv: Move AC_LIBOBJ invocations to module description.
15151         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15152         * modules/putenv (configure.ac): ... to here.
15153
15154 2011-05-21  Bruno Haible  <bruno@clisp.org>
15155
15156         login_tty: Move AC_LIBOBJ invocations to module description.
15157         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15158         * modules/login_tty (configure.ac): ... to here.
15159
15160 2011-05-21  Bruno Haible  <bruno@clisp.org>
15161
15162         openpty: Move AC_LIBOBJ invocations to module description.
15163         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15164         * modules/openpty (configure.ac): ... to here.
15165
15166 2011-05-21  Bruno Haible  <bruno@clisp.org>
15167
15168         forkpty: Move AC_LIBOBJ invocations to module description.
15169         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15170         * modules/forkpty (configure.ac): ... to here.
15171
15172 2011-05-21  Bruno Haible  <bruno@clisp.org>
15173
15174         ptsname: Move AC_LIBOBJ invocations to module description.
15175         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15176         invocations from here...
15177         * modules/ptsname (configure.ac): ... to here.
15178
15179 2011-05-21  Bruno Haible  <bruno@clisp.org>
15180
15181         pread: Move AC_LIBOBJ invocations to module description.
15182         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15183         * modules/pread (configure.ac): ... to here.
15184
15185 2011-05-21  Bruno Haible  <bruno@clisp.org>
15186
15187         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15188         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15189         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15190         * modules/posix_spawn (configure.ac): ... to here.
15191         * modules/posix_spawnp (configure.ac): ... and here.
15192
15193 2011-05-21  Bruno Haible  <bruno@clisp.org>
15194
15195         popen: Move AC_LIBOBJ invocations to module description.
15196         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15197         invocations from here...
15198         * modules/popen (configure.ac): ... to here.
15199
15200 2011-05-21  Bruno Haible  <bruno@clisp.org>
15201
15202         poll: Move AC_LIBOBJ invocations to module description.
15203         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15204         invocations from here...
15205         * modules/poll (configure.ac): ... to here.
15206
15207 2011-05-21  Bruno Haible  <bruno@clisp.org>
15208
15209         pipe-posix: Move AC_LIBOBJ invocations to module description.
15210         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15211         * modules/pipe-posix (configure.ac): ... to here.
15212
15213 2011-05-21  Bruno Haible  <bruno@clisp.org>
15214
15215         openat: Respect rules for use of AC_LIBOBJ.
15216         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15217         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15218         * modules/openat (configure.ac): ... to here.
15219
15220 2011-05-21  Bruno Haible  <bruno@clisp.org>
15221
15222         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15223         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15224         invocation from here...
15225         * modules/obstack-printf (configure.ac): ... to here.
15226         * modules/obstack-printf-posix (configure.ac): ... and here.
15227
15228 2011-05-21  Bruno Haible  <bruno@clisp.org>
15229
15230         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15231         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15232         from here...
15233         * modules/nl_langinfo (configure.ac): ... to here.
15234
15235 2011-05-21  Bruno Haible  <bruno@clisp.org>
15236
15237         nanosleep: Move AC_LIBOBJ invocations to module description.
15238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15239         gl_PREREQ_NANOSLEEP invocations from here...
15240         * modules/nanosleep (configure.ac): ... to here.
15241
15242 2011-05-21  Bruno Haible  <bruno@clisp.org>
15243
15244         mountlist: Move AC_LIBOBJ invocations to module description.
15245         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15246         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15247         * modules/mountlist (configure.ac): ... to here.
15248
15249 2011-05-21  Bruno Haible  <bruno@clisp.org>
15250
15251         mktime: Respect rules for use of AC_LIBOBJ.
15252         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15253         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15254         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15255         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15256         * modules/mktime (configure.ac): ... to here.
15257         * modules/mktime-internal (configure.ac): ... and here.
15258         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15259
15260 2011-05-21  Bruno Haible  <bruno@clisp.org>
15261
15262         mkstemps: Move AC_LIBOBJ invocations to module description.
15263         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15264         here...
15265         * modules/mkstemps (configure.ac): ... to here.
15266
15267 2011-05-21  Bruno Haible  <bruno@clisp.org>
15268
15269         mkstemp: Move AC_LIBOBJ invocations to module description.
15270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15271         gl_PREREQ_MKSTEMP invocations from here...
15272         * modules/mkstemp (configure.ac): ... to here.
15273
15274 2011-05-21  Bruno Haible  <bruno@clisp.org>
15275
15276         mkostemps: Move AC_LIBOBJ invocations to module description.
15277         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15278         here...
15279         * modules/mkostemps (configure.ac): ... to here.
15280
15281 2011-05-21  Bruno Haible  <bruno@clisp.org>
15282
15283         mkostemp: Move AC_LIBOBJ invocations to module description.
15284         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15285         gl_PREREQ_MKOSTEMP invocations from here...
15286         * modules/mkostemp (configure.ac): ... to here.
15287
15288 2011-05-21  Bruno Haible  <bruno@clisp.org>
15289
15290         mknod: Move AC_LIBOBJ invocations to module description.
15291         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15292         * modules/mknod (configure.ac): ... to here.
15293
15294 2011-05-21  Bruno Haible  <bruno@clisp.org>
15295
15296         mkfifoat: Move AC_LIBOBJ invocations to module description.
15297         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15298         here...
15299         * modules/mkfifoat (configure.ac): ... to here.
15300
15301 2011-05-21  Bruno Haible  <bruno@clisp.org>
15302
15303         mkfifo: Respect rules for use of AC_LIBOBJ.
15304         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15305         here...
15306         * modules/mkfifo (configure.ac): ... to here.
15307
15308 2011-05-21  Bruno Haible  <bruno@clisp.org>
15309
15310         mkdtemp: Move AC_LIBOBJ invocations to module description.
15311         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15312         invocations from here...
15313         * modules/mkdtemp (configure.ac): ... to here.
15314
15315 2011-05-21  Bruno Haible  <bruno@clisp.org>
15316
15317         mkdir: Move AC_LIBOBJ invocations to module description.
15318         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15319         * modules/mkdir (configure.ac): ... to here.
15320
15321 2011-05-21  Bruno Haible  <bruno@clisp.org>
15322
15323         memset: Move AC_LIBOBJ invocations to module description.
15324         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15326         here...
15327         * modules/memset (configure.ac): ... to here.
15328
15329 2011-05-21  Bruno Haible  <bruno@clisp.org>
15330
15331         memrchr: Move AC_LIBOBJ invocations to module description.
15332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15334         here...
15335         * modules/memrchr (configure.ac): ... to here.
15336
15337 2011-05-21  Bruno Haible  <bruno@clisp.org>
15338
15339         mempcpy: Move AC_LIBOBJ invocations to module description.
15340         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15342         here...
15343         * modules/mempcpy (configure.ac): ... to here.
15344
15345 2011-05-21  Bruno Haible  <bruno@clisp.org>
15346
15347         memmove: Move AC_LIBOBJ invocations to module description.
15348         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15350         here...
15351         * modules/memmove (configure.ac): ... to here.
15352
15353 2011-05-21  Bruno Haible  <bruno@clisp.org>
15354
15355         memmem*: Move AC_LIBOBJ invocations to module description.
15356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15357         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15358         here...
15359         (gl_FUNC_MEMMEM): ... and here...
15360         * modules/memmem-simple (configure.ac): ... to here.
15361         * modules/memmem (configure.ac): ... and here.
15362
15363 2011-05-21  Bruno Haible  <bruno@clisp.org>
15364
15365         memcpy: Move AC_LIBOBJ invocations to module description.
15366         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15368         here...
15369         * modules/memcpy (configure.ac): ... to here.
15370
15371 2011-05-21  Bruno Haible  <bruno@clisp.org>
15372
15373         memcmp: Simplify autoconf macro.
15374         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15375         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15376         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15377
15378 2011-05-21  Bruno Haible  <bruno@clisp.org>
15379
15380         memcmp: Move AC_LIBOBJ invocations to module description.
15381         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15382         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15383         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15384         * modules/memcmp (configure.ac): ... to here.
15385         (Depends-on): Update conditions.
15386
15387 2011-05-21  Bruno Haible  <bruno@clisp.org>
15388
15389         memchr: Respect rules for use of AC_LIBOBJ.
15390         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15391         invocations from here...
15392         * modules/memchr (configure.ac): ... to here.
15393
15394 2011-05-21  Bruno Haible  <bruno@clisp.org>
15395
15396         mbtowc: Move AC_LIBOBJ invocations to module description.
15397         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15398         invocations from here...
15399         * modules/mbtowc (configure.ac): ... to here.
15400
15401 2011-05-21  Bruno Haible  <bruno@clisp.org>
15402
15403         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15404         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15405         gl_PREREQ_MBSRTOWCS invocations from here...
15406         * modules/mbsrtowcs (configure.ac): ... to here.
15407
15408 2011-05-21  Bruno Haible  <bruno@clisp.org>
15409
15410         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15411         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15412         gl_PREREQ_MBSNRTOWCS invocations from here...
15413         * modules/mbsnrtowcs (configure.ac): ... to here.
15414
15415 2011-05-21  Bruno Haible  <bruno@clisp.org>
15416
15417         mbsinit: Move AC_LIBOBJ invocations to module description.
15418         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15419         invocations from here...
15420         * modules/mbsinit (configure.ac): ... to here.
15421
15422 2011-05-21  Bruno Haible  <bruno@clisp.org>
15423
15424         mbrlen: Move AC_LIBOBJ invocations to module description.
15425         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15426         invocations from here...
15427         * modules/mbrlen (configure.ac): ... to here.
15428
15429 2011-05-21  Bruno Haible  <bruno@clisp.org>
15430
15431         mbrtowc: Respect rules for use of AC_LIBOBJ.
15432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15433         invocations from here...
15434         * modules/mbrtowc (configure.ac): ... to here.
15435
15436 2011-05-21  Bruno Haible  <bruno@clisp.org>
15437
15438         malloc-*: Move AC_LIBOBJ invocations to module description.
15439         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15440         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15441         AC_LIBOBJ invocations from here...
15442         * modules/malloc-gnu (configure.ac): ... to here.
15443         * modules/malloc-posix (configure.ac): ... and here.
15444
15445 2011-05-21  Bruno Haible  <bruno@clisp.org>
15446
15447         lstat, openat: Respect rules for use of AC_LIBOBJ.
15448         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15449         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15450         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15451         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15452         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15453         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15454         here.
15455         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15456
15457 2011-05-21  Bruno Haible  <bruno@clisp.org>
15458
15459         lseek: Move AC_LIBOBJ invocations to module description.
15460         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15461         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15462         * modules/lseek (configure.ac): ... to here.
15463
15464 2011-05-21  Bruno Haible  <bruno@clisp.org>
15465
15466         linkat: Move AC_LIBOBJ invocations to module description.
15467         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15468         here...
15469         * modules/linkat (configure.ac): ... to here.
15470
15471 2011-05-21  Bruno Haible  <bruno@clisp.org>
15472
15473         link: Respect rules for use of AC_LIBOBJ.
15474         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15475         * modules/link (configure.ac): ... to here.
15476
15477 2011-05-21  Bruno Haible  <bruno@clisp.org>
15478
15479         lchown: Move AC_LIBOBJ invocations to module description.
15480         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15481         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15482         * modules/lchown (configure.ac): ... to here.
15483
15484 2011-05-21  Bruno Haible  <bruno@clisp.org>
15485
15486         iswctype: Move AC_LIBOBJ invocations to module description.
15487         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15488         here...
15489         * modules/iswctype (configure.ac): ... to here.
15490
15491 2011-05-21  Bruno Haible  <bruno@clisp.org>
15492
15493         iswblank: Move AC_LIBOBJ invocations to module description.
15494         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15495         here...
15496         * modules/iswblank (configure.ac): ... to here.
15497
15498 2011-05-21  Bruno Haible  <bruno@clisp.org>
15499
15500         atanl: Move AC_LIBOBJ invocations to module description.
15501         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15502         * modules/atanl (configure.ac): ... to here.
15503
15504 2011-05-21  Bruno Haible  <bruno@clisp.org>
15505
15506         acosl: Move AC_LIBOBJ invocations to module description.
15507         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15508         * modules/acosl (configure.ac): ... to here.
15509
15510 2011-05-21  Bruno Haible  <bruno@clisp.org>
15511
15512         asinl: Respect rules for use of AC_LIBOBJ.
15513         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15514         * modules/asinl (configure.ac): ... to here.
15515
15516 2011-05-21  Bruno Haible  <bruno@clisp.org>
15517
15518         tanl: Move AC_LIBOBJ invocations to module description.
15519         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15520         * modules/tanl (configure.ac): ... to here.
15521
15522 2011-05-21  Bruno Haible  <bruno@clisp.org>
15523
15524         cosl: Move AC_LIBOBJ invocations to module description.
15525         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15526         * modules/cosl (configure.ac): ... to here.
15527
15528 2011-05-21  Bruno Haible  <bruno@clisp.org>
15529
15530         sinl: Move AC_LIBOBJ invocations to module description.
15531         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15532         * modules/sinl (configure.ac): ... to here.
15533
15534 2011-05-21  Bruno Haible  <bruno@clisp.org>
15535
15536         logl: Move AC_LIBOBJ invocations to module description.
15537         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15538         * modules/logl (configure.ac): ... to here.
15539
15540 2011-05-21  Bruno Haible  <bruno@clisp.org>
15541
15542         expl: Move AC_LIBOBJ invocations to module description.
15543         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15544         * modules/expl (configure.ac): ... to here.
15545
15546 2011-05-21  Bruno Haible  <bruno@clisp.org>
15547
15548         roundl: Move AC_LIBOBJ invocations to module description.
15549         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15550         * modules/roundl (configure.ac): ... to here.
15551
15552 2011-05-21  Bruno Haible  <bruno@clisp.org>
15553
15554         round: Move AC_LIBOBJ invocations to module description.
15555         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15556         * modules/round (configure.ac): ... to here.
15557
15558 2011-05-21  Bruno Haible  <bruno@clisp.org>
15559
15560         roundf: Move AC_LIBOBJ invocations to module description.
15561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15562         * modules/roundf (configure.ac): ... to here.
15563
15564 2011-05-21  Bruno Haible  <bruno@clisp.org>
15565
15566         truncl: Move AC_LIBOBJ invocations to module description.
15567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15568         * modules/truncl (configure.ac): ... to here.
15569
15570 2011-05-21  Bruno Haible  <bruno@clisp.org>
15571
15572         trunc: Move AC_LIBOBJ invocations to module description.
15573         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15574         * modules/trunc (configure.ac): ... to here.
15575
15576 2011-05-21  Bruno Haible  <bruno@clisp.org>
15577
15578         truncf: Move AC_LIBOBJ invocations to module description.
15579         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15580         * modules/truncf (configure.ac): ... to here.
15581
15582 2011-05-21  Bruno Haible  <bruno@clisp.org>
15583
15584         ceill: Move AC_LIBOBJ invocations to module description.
15585         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15586         * modules/ceill (configure.ac): ... to here.
15587
15588 2011-05-21  Bruno Haible  <bruno@clisp.org>
15589
15590         ceil: Move AC_LIBOBJ invocations to module description.
15591         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15592         * modules/ceil (configure.ac): ... to here.
15593
15594 2011-05-21  Bruno Haible  <bruno@clisp.org>
15595
15596         ceilf: Move AC_LIBOBJ invocations to module description.
15597         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15598         * modules/ceilf (configure.ac): ... to here.
15599
15600 2011-05-21  Bruno Haible  <bruno@clisp.org>
15601
15602         floorl: Respect rules for use of AC_LIBOBJ.
15603         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15604         * modules/floorl (configure.ac): ... to here.
15605
15606 2011-05-21  Bruno Haible  <bruno@clisp.org>
15607
15608         floor: Respect rules for use of AC_LIBOBJ.
15609         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15610         * modules/floor (configure.ac): ... to here.
15611
15612 2011-05-21  Bruno Haible  <bruno@clisp.org>
15613
15614         floorf: Move AC_LIBOBJ invocations to module description.
15615         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15616         * modules/floorf (configure.ac): ... to here.
15617
15618 2011-05-20  Bruno Haible  <bruno@clisp.org>
15619
15620         sqrtl: Respect rules for use of AC_LIBOBJ.
15621         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15622         * modules/sqrtl (configure.ac): ... to here.
15623
15624 2011-05-20  Bruno Haible  <bruno@clisp.org>
15625
15626         ldexpl: Respect rules for use of AC_LIBOBJ.
15627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15628         * modules/ldexpl (configure.ac): ... to here.
15629
15630 2011-05-20  Bruno Haible  <bruno@clisp.org>
15631
15632         frexpl*: Respect rules for use of AC_LIBOBJ.
15633         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15634         invocation from here...
15635         * modules/frexpl (configure.ac): ... to here.
15636         * modules/frexpl-nolibm (configure.ac): ... and here.
15637
15638 2011-05-20  Bruno Haible  <bruno@clisp.org>
15639
15640         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15641         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15642         invocation from here...
15643         * modules/frexp (configure.ac): ... to here.
15644         * modules/frexp-nolibm (configure.ac): ... and here.
15645
15646 2011-05-20  Bruno Haible  <bruno@clisp.org>
15647
15648         isnan: Respect rules for use of AC_LIBOBJ.
15649         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15650         invocations here.
15651         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15652         REPLACE_ISNAN.
15653         * modules/isnand (configure.ac): Likewise.
15654         * modules/isnanl (configure.ac): Likewise.
15655
15656 2011-05-20  Bruno Haible  <bruno@clisp.org>
15657
15658         isnanl*: Respect rules for use of AC_LIBOBJ.
15659         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15660         invocation from here...
15661         * modules/isnanl (configure.ac): ... to here.
15662         * modules/isnanl-nolibm (configure.ac): ... and here.
15663
15664 2011-05-20  Bruno Haible  <bruno@clisp.org>
15665
15666         isnand*: Move AC_LIBOBJ invocations to module description.
15667         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15668         invocation from here...
15669         * modules/isnand (configure.ac): ... to here.
15670         * modules/isnand-nolibm (configure.ac): ... and here.
15671
15672 2011-05-20  Bruno Haible  <bruno@clisp.org>
15673
15674         isnanf*: Move AC_LIBOBJ invocations to module description.
15675         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15676         invocation from here...
15677         * modules/isnanf (configure.ac): ... to here.
15678         * modules/isnanf-nolibm (configure.ac): ... and here.
15679
15680 2011-05-20  Bruno Haible  <bruno@clisp.org>
15681
15682         isnan*: Separate the AC_LIBOBJ invocations.
15683         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15684         AC_LIBOBJ invocation.
15685         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15686         here.
15687         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15688         AC_LIBOBJ invocation.
15689         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15690         here.
15691         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15692         AC_LIBOBJ invocation.
15693         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15694         here.
15695         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15696
15697 2011-05-08  Bruno Haible  <bruno@clisp.org>
15698
15699         isinf: Move AC_LIBOBJ invocations to module description.
15700         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15701         * modules/isinf (configure.ac): ... to here.
15702
15703 2011-05-08  Bruno Haible  <bruno@clisp.org>
15704
15705         isfinite: Move AC_LIBOBJ invocations to module description.
15706         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15707         * modules/isfinite (configure.ac): ... to here.
15708
15709 2011-05-08  Bruno Haible  <bruno@clisp.org>
15710
15711         isblank: Move AC_LIBOBJ invocations to module description.
15712         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15713         here...
15714         * modules/isblank (configure.ac): ... to here.
15715
15716 2011-05-08  Bruno Haible  <bruno@clisp.org>
15717
15718         isapipe: Move AC_LIBOBJ invocations to module description.
15719         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15720         gl_PREREQ_ISAPIPE invocations from here...
15721         * modules/isapipe (configure.ac): ... to here.
15722         (Depends-on): Update condition.
15723
15724 2011-05-08  Bruno Haible  <bruno@clisp.org>
15725
15726         ioctl: Move AC_LIBOBJ invocations to module description.
15727         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15728         invocations from here...
15729         * modules/ioctl (configure.ac): ... to here.
15730         (Depends-on): Update condition.
15731
15732 2011-05-08  Bruno Haible  <bruno@clisp.org>
15733
15734         imaxdiv: Move AC_LIBOBJ invocations to module description.
15735         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15736         invocations from here...
15737         * modules/imaxdiv (configure.ac): ... to here.
15738
15739 2011-05-08  Bruno Haible  <bruno@clisp.org>
15740
15741         imaxabs: Move AC_LIBOBJ invocations to module description.
15742         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15743         invocations from here...
15744         * modules/imaxabs (configure.ac): ... to here.
15745
15746 2011-05-08  Bruno Haible  <bruno@clisp.org>
15747
15748         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15750         AC_LIBOBJ invocations from here...
15751         * modules/getaddrinfo (configure.ac): ... to here.
15752         (Depends-on): Add conditions.
15753
15754 2011-05-08  Bruno Haible  <bruno@clisp.org>
15755
15756         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15757         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15758         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15759         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15760         (gl_PREREQ_INET_PTON): ... from here.
15761         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15762         gl_PREREQ_INET_PTON here.
15763         (Depends-on): Update condition.
15764
15765 2011-05-08  Bruno Haible  <bruno@clisp.org>
15766
15767         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15769         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15770         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15771         (gl_PREREQ_INET_NTOP): ... from here.
15772         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15773         gl_PREREQ_INET_NTOP here.
15774         (Depends-on): Update condition.
15775
15776 2011-05-08  Bruno Haible  <bruno@clisp.org>
15777
15778         iconv_open: Move AC_LIBOBJ invocations to module description.
15779         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15780         AC_LIBOBJ invocations from here...
15781         * modules/iconv_open (configure.ac): ... to here.
15782
15783 2011-05-08  Bruno Haible  <bruno@clisp.org>
15784
15785         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15786         If module 'iconv_open' is among the main modules and module
15787         'iconv_open-utf' is among the tests dependencies, then
15788         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15789         return the special iconv_t values. Therefore iconv() and iconv_close()
15790         must support these special iconv_t values, already in lib, not only in
15791         tests.
15792         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15793         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15794         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15795         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15796         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15797         (Depends-on): Add the dependencies of iconv_open-utf.
15798         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15799         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15800         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15801
15802 2011-05-08  Bruno Haible  <bruno@clisp.org>
15803
15804         group-member: Move AC_LIBOBJ invocations to module description.
15805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15806         gl_PREREQ_GROUP_MEMBER invocations from here...
15807         * modules/group-member (configure.ac): ... to here.
15808
15809 2011-05-08  Bruno Haible  <bruno@clisp.org>
15810
15811         grantpt: Move AC_LIBOBJ invocations to module description.
15812         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15813         invocations from here...
15814         * modules/grantpt (configure.ac): ... to here.
15815
15816 2011-05-08  Bruno Haible  <bruno@clisp.org>
15817
15818         glob: Move AC_LIBOBJ invocations to module description.
15819         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15820         from here...
15821         * modules/glob (configure.ac): ... to here.
15822
15823 2011-05-08  Bruno Haible  <bruno@clisp.org>
15824
15825         getusershell: Move AC_LIBOBJ invocations to module description.
15826         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15827         Move AC_LIBOBJ invocation from here...
15828         * modules/getusershell (configure.ac): ... to here.
15829         (Depends-on): Update condition.
15830
15831 2011-05-08  Bruno Haible  <bruno@clisp.org>
15832
15833         gettimeofday: Move AC_LIBOBJ invocations to module description.
15834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15835         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15836         gl_PREREQ_GETTIMEOFDAY invocations from here...
15837         * modules/gettimeofday (configure.ac): ... to here.
15838
15839 2011-05-08  Bruno Haible  <bruno@clisp.org>
15840
15841         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15842         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15843         just gl_FUNC_TZSET.
15844         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15845         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15847         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15848
15849 2011-05-08  Bruno Haible  <bruno@clisp.org>
15850
15851         getsubopt: Move AC_LIBOBJ invocations to module description.
15852         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15853         gl_PREREQ_GETSUBOPT invocations from here...
15854         * modules/getsubopt (configure.ac): ... to here.
15855
15856 2011-05-08  Bruno Haible  <bruno@clisp.org>
15857
15858         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15859         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15860         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15861         * modules/getpass-gnu (configure.ac): ... to here.
15862
15863 2011-05-08  Bruno Haible  <bruno@clisp.org>
15864
15865         getpass: Move AC_LIBOBJ invocations to module description.
15866         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15867         gl_PREREQ_GETPASS invocations from here...
15868         * modules/getpass (configure.ac): ... to here.
15869
15870 2011-05-08  Bruno Haible  <bruno@clisp.org>
15871
15872         getpagesize: Move AC_LIBOBJ invocations to module description.
15873         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15874         from here...
15875         * modules/getpagesize (configure.ac): ... to here.
15876
15877 2011-05-08  Bruno Haible  <bruno@clisp.org>
15878
15879         getopt: Move AC_LIBOBJ invocations to module description.
15880         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15881         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15882         invocations from here...
15883         * modules/getopt-gnu (configure.ac): ... to here.
15884         * modules/getopt-posix (configure.ac): ... and here.
15885         (Depends-on): Update condition.
15886
15887 2011-05-08  Bruno Haible  <bruno@clisp.org>
15888
15889         getopt, argp: Respect rules for use of AC_LIBOBJ.
15890         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15891         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15892         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15893         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15894
15895 2011-05-08  Bruno Haible  <bruno@clisp.org>
15896
15897         getlogin_r: Move AC_LIBOBJ invocations to module description.
15898         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15899         gl_PREREQ_GETLOGIN_R invocations from here...
15900         * modules/getlogin_r (configure.ac): ... to here.
15901
15902 2011-05-08  Bruno Haible  <bruno@clisp.org>
15903
15904         getlogin: Move AC_LIBOBJ invocations to module description.
15905         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15906         here...
15907         * modules/getlogin (configure.ac): ... to here.
15908
15909 2011-05-08  Bruno Haible  <bruno@clisp.org>
15910
15911         getloadavg: Move AC_LIBOBJ invocations to module description.
15912         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15913         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15914         * modules/getloadavg (configure.ac): ... to here.
15915
15916 2011-05-08  Bruno Haible  <bruno@clisp.org>
15917
15918         gethrxtime: Move AC_LIBOBJ invocations to module description.
15919         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15920         LIB_GETHRXTIME from here...
15921         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15922         invocations from here...
15923         * modules/gethrxtime (configure.ac): ... to here.
15924
15925 2011-05-08  Bruno Haible  <bruno@clisp.org>
15926
15927         gethostname: Move AC_LIBOBJ invocations to module description.
15928         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15929         gl_PREREQ_GETHOSTNAME invocations from here...
15930         * modules/gethostname (configure.ac): ... to here.
15931
15932 2011-05-08  Bruno Haible  <bruno@clisp.org>
15933
15934         getgroups: Move AC_LIBOBJ invocations to module description.
15935         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15936         here...
15937         * modules/getgroups (configure.ac): ... to here.
15938
15939 2011-05-08  Bruno Haible  <bruno@clisp.org>
15940
15941         getdtablesize: Move AC_LIBOBJ invocations to module description.
15942         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15943         invocation from here...
15944         * modules/getdtablesize (configure.ac): ... to here.
15945
15946 2011-05-08  Bruno Haible  <bruno@clisp.org>
15947
15948         getdomainname: Move AC_LIBOBJ invocations to module description.
15949         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15950         gl_PREREQ_GETDOMAINNAME invocations from here...
15951         * modules/getdomainname (configure.ac): ... to here.
15952
15953 2011-05-08  Bruno Haible  <bruno@clisp.org>
15954
15955         getline: Move AC_LIBOBJ invocations to module description.
15956         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15957         invocations from here...
15958         * modules/getline (configure.ac): ... to here.
15959
15960 2011-05-08  Bruno Haible  <bruno@clisp.org>
15961
15962         getline: Simplify.
15963         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15964         It's already handled through the module dependency.
15965
15966 2011-05-08  Bruno Haible  <bruno@clisp.org>
15967
15968         getdelim: Move AC_LIBOBJ invocations to module description.
15969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15970         and gl_PREREQ_GETDELIM invocations from here...
15971         * modules/getdelim (configure.ac): ... to here.
15972         (Depends-on): Fix condition.
15973
15974 2011-05-08  Bruno Haible  <bruno@clisp.org>
15975
15976         getcwd: Move AC_LIBOBJ invocations to module description.
15977         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15978         invocations from here...
15979         * modules/getcwd (configure.ac): ... to here.
15980
15981 2011-05-08  Bruno Haible  <bruno@clisp.org>
15982
15983         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15984         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15985         here...
15986         * modules/getcwd-lgpl (configure.ac): ... to here.
15987
15988 2011-05-07  Bruno Haible  <bruno@clisp.org>
15989
15990         crypto/gc: Move AC_LIBOBJ invocations to module description.
15991         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15992         * modules/crypto/gc (configure.ac): ... to here.
15993
15994 2011-05-07  Bruno Haible  <bruno@clisp.org>
15995
15996         fwriting: Move AC_LIBOBJ invocations to module description.
15997         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15998         here...
15999         * modules/fwriting (configure.ac): ... to here.
16000
16001 2011-05-07  Bruno Haible  <bruno@clisp.org>
16002
16003         fwritable: Move AC_LIBOBJ invocations to module description.
16004         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16005         here...
16006         * modules/fwritable (configure.ac): ... to here.
16007
16008 2011-05-07  Bruno Haible  <bruno@clisp.org>
16009
16010         futimens: Move AC_LIBOBJ invocations to module description.
16011         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16012         here...
16013         * modules/futimens (configure.ac): ... to here.
16014
16015 2011-05-07  Bruno Haible  <bruno@clisp.org>
16016
16017         ftruncate: Move AC_LIBOBJ invocations to module description.
16018         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16019         gl_PREREQ_FTRUNCATE invocations from here...
16020         * modules/ftruncate (configure.ac): ... to here.
16021
16022 2011-05-07  Bruno Haible  <bruno@clisp.org>
16023
16024         fsync: Move AC_LIBOBJ invocations to module description.
16025         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16026         invocations from here...
16027         * modules/fsync (configure.ac): ... to here.
16028
16029 2011-05-07  Bruno Haible  <bruno@clisp.org>
16030
16031         fsusage: Move AC_LIBOBJ invocations to module description.
16032         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16033         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16034         * modules/fsusage (configure.ac): ... to here.
16035
16036 2011-05-07  Bruno Haible  <bruno@clisp.org>
16037
16038         freopen: Move AC_LIBOBJ invocations to module description.
16039         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16040         invocations from here...
16041         * modules/freopen (configure.ac): ... to here.
16042
16043 2011-05-07  Bruno Haible  <bruno@clisp.org>
16044
16045         free: Move AC_LIBOBJ invocations to module description.
16046         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16047         invocations from here...
16048         * modules/free (configure.ac): ... to here.
16049
16050 2011-05-07  Bruno Haible  <bruno@clisp.org>
16051
16052         freadable: Move AC_LIBOBJ invocations to module description.
16053         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16054         here...
16055         * modules/freadable (configure.ac): ... to here.
16056
16057 2011-05-07  Bruno Haible  <bruno@clisp.org>
16058
16059         fpurge: Move AC_LIBOBJ invocations to module description.
16060         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16061         invocations from here...
16062         * modules/fpurge (configure.ac): ... to here.
16063
16064 2011-05-07  Bruno Haible  <bruno@clisp.org>
16065
16066         fpending: Move AC_LIBOBJ invocations to module description.
16067         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16068         gl_FUNC_FPENDING.
16069         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16070         invocations from here...
16071         * modules/fpending (configure.ac): ... to here.
16072
16073 2011-05-07  Bruno Haible  <bruno@clisp.org>
16074
16075         fopen: Move AC_LIBOBJ invocations to module description.
16076         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16077         invocations from here...
16078         * modules/fopen (configure.ac): ... to here.
16079
16080 2011-05-07  Bruno Haible  <bruno@clisp.org>
16081
16082         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16083         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16084         gl_FUNC_FNMATCH_POSIX.
16085         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16086         invocations from here...
16087         * modules/fnmatch (configure.ac): ... to here.
16088         * modules/fnmatch-gnu (configure.ac): ... and here.
16089
16090 2011-05-07  Bruno Haible  <bruno@clisp.org>
16091
16092         flock: Move AC_LIBOBJ invocations to module description.
16093         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16094         invocations from here...
16095         * modules/flock (configure.ac): ... to here.
16096
16097 2011-05-07  Bruno Haible  <bruno@clisp.org>
16098
16099         fileblocks: Move AC_LIBOBJ invocations to module description.
16100         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16101         gl_PREREQ_FILEBLOCKS invocations from here...
16102         * modules/fileblocks (configure.ac): ... to here.
16103
16104 2011-05-06  Bruno Haible  <bruno@clisp.org>
16105
16106         fflush: Move AC_LIBOBJ invocations to module description.
16107         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16108         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16109         invocations from here...
16110         * modules/fflush (configure.ac): ... to here.
16111
16112 2011-05-06  Bruno Haible  <bruno@clisp.org>
16113
16114         fdopendir: Move AC_LIBOBJ invocations to module description.
16115         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16116         here...
16117         * modules/fdopendir (configure.ac): ... to here.
16118         (Depends-on): Improve conditions.
16119
16120 2011-05-06  Bruno Haible  <bruno@clisp.org>
16121
16122         _Exit: Move AC_LIBOBJ invocations to module description.
16123         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16124         invocations from here...
16125         * modules/_Exit (configure.ac): ... to here.
16126
16127 2011-05-21  Bruno Haible  <bruno@clisp.org>
16128
16129         euidaccess: Respect rules for use of AC_LIBOBJ.
16130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16132         from here...
16133         * modules/euidaccess (configure.ac): ... to here.
16134
16135 2011-05-06  Bruno Haible  <bruno@clisp.org>
16136
16137         error: Move AC_LIBOBJ invocations to module description.
16138         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16139         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16140         invocations from here...
16141         * modules/error (configure.ac): ... to here.
16142
16143 2011-05-06  Bruno Haible  <bruno@clisp.org>
16144
16145         duplocale: Move AC_LIBOBJ invocations to module description.
16146         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16147         gl_PREREQ_DUPLOCALE invocations from here...
16148         * modules/duplocale (configure.ac): ... to here.
16149
16150 2011-05-05  Bruno Haible  <bruno@clisp.org>
16151
16152         dirfd: Move AC_LIBOBJ invocations to module description.
16153         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16154         gl_FUNC_DIRFD.
16155         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16156         here...
16157         * modules/dirfd (configure.ac): ... to here.
16158         (Depends-on): Fix condition.
16159
16160 2011-05-05  Bruno Haible  <bruno@clisp.org>
16161
16162         chown: Respect rules for use of AC_LIBOBJ.
16163         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16164         * modules/chown (configure.ac): ... to here.
16165
16166 2011-05-05  Bruno Haible  <bruno@clisp.org>
16167
16168         chdir-long: Move AC_LIBOBJ invocations to module description.
16169         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16170         gl_PREREQ_CHDIR_LONG invocations from here...
16171         * modules/chdir-long (configure.ac): ... to here.
16172
16173 2011-05-05  Bruno Haible  <bruno@clisp.org>
16174
16175         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16176         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16177         from here...
16178         * modules/canonicalize-lgpl (configure.ac): ... to here.
16179
16180 2011-05-05  Bruno Haible  <bruno@clisp.org>
16181
16182         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16183         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16184         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16185         REPLACE_CALLOC.
16186         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16187         * modules/calloc-gnu (configure.ac): Likewise.
16188
16189 2011-05-05  Bruno Haible  <bruno@clisp.org>
16190
16191         btowc: Move AC_LIBOBJ invocations to module description.
16192         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16193         invocations from here...
16194         * modules/btowc (configure.ac): ... to here.
16195
16196 2011-05-21  Bruno Haible  <bruno@clisp.org>
16197
16198         atexit: Move AC_LIBOBJ invocations to module description.
16199         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16201         here...
16202         * modules/atexit (configure.ac): ... to here.
16203
16204 2011-05-05  Bruno Haible  <bruno@clisp.org>
16205
16206         atoll: Move AC_LIBOBJ invocations to module description.
16207         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16208         invocations from here...
16209         * modules/atoll (configure.ac): ... to here.
16210
16211 2011-05-05  Bruno Haible  <bruno@clisp.org>
16212
16213         argz: Move AC_LIBOBJ invocations to module description.
16214         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16215         * modules/argz (configure.ac): ... to here.
16216
16217 2011-05-05  Bruno Haible  <bruno@clisp.org>
16218
16219         alphasort: Move AC_LIBOBJ invocations to module description.
16220         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16221         gl_PREREQ_ALPHASORT invocations from here...
16222         * modules/alphasort (configure.ac): ... to here.
16223
16224 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16225
16226         verify: new macro verify_expr; verify_true deprecated
16227         * NEWS: Mention this.
16228         * doc/verify.texi (Compile-time Assertions): Document this.
16229         * lib/verify.h (verify_true): Deprecate.
16230         (verify_expr): New macro.
16231         * tests/test-verify.c (function): Test verify_expr.
16232
16233 2011-06-14  Jim Meyering  <meyering@redhat.com>
16234
16235         init.sh: give more portable redirection-related advice in a comment
16236         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16237         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16238         for lots of discussion.  Stefano Lattarini suggested the solution
16239         of putting "9>&2" after the command.  Reported by Bruno Haible.
16240
16241 2011-06-13  Bruno Haible  <bruno@clisp.org>
16242
16243         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16245         'none'.
16246
16247 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16248
16249         ftoastr: use strtof only if HAVE_STRTOF
16250         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16252         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16253         * modules/ftoastr (configure.ac): Check for strtof.
16254
16255 2011-06-13  Bruno Haible  <bruno@clisp.org>
16256
16257         gnulib-tool: Addendum to 2011-06-08 commit.
16258         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16259         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16260
16261 2011-06-13  Bruno Haible  <bruno@clisp.org>
16262
16263         fseeko: Provide a non-inline replacement of fseek().
16264         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16265         * modules/fseeko (Depends-on): Add fseek.
16266         * modules/fseek (License): Change to LGPLv2+.
16267
16268 2011-06-13  Bruno Haible  <bruno@clisp.org>
16269
16270         ftello: Provide a non-inline replacement of ftell().
16271         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16272         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16273         not have ftello() (such as on mingw).
16274         * modules/ftello (Depends-on): Add ftell.
16275         * modules/ftell (License): Change to LGPLv2+.
16276
16277 2011-05-07  Bruno Haible  <bruno@clisp.org>
16278
16279         ftell: Move AC_LIBOBJ invocations to module description.
16280         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16281         * modules/ftell (configure.ac): ... to here.
16282
16283 2011-05-07  Bruno Haible  <bruno@clisp.org>
16284
16285         ftello: Respect rules for use of AC_LIBOBJ.
16286         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16287         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16288         here...
16289         * modules/ftello (configure.ac): ... to here.
16290
16291 2011-05-07  Bruno Haible  <bruno@clisp.org>
16292
16293         fseeko: Simplify.
16294         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16295         (gl_FUNC_FSEEKO): Inline it here.
16296
16297 2011-05-07  Bruno Haible  <bruno@clisp.org>
16298
16299         fseek: Move AC_LIBOBJ invocations to module description.
16300         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16301         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16302         * modules/fseek (configure.ac): ... to here.
16303
16304 2011-05-07  Bruno Haible  <bruno@clisp.org>
16305
16306         fseek: Respect rules for use of AC_LIBOBJ.
16307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16308         here...
16309         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16310
16311 2011-05-07  Bruno Haible  <bruno@clisp.org>
16312
16313         fseeko: Respect rules for use of AC_LIBOBJ.
16314         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16315         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16316         here...
16317         * modules/fseeko (configure.ac): ... to here.
16318
16319 2011-06-13  Bruno Haible  <bruno@clisp.org>
16320
16321         gnulib-tool: Allow comments in the 'Depends-on' section.
16322         * doc/gnulib.texi (Module description): Mention comment syntax in the
16323         Depends-on section.
16324         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16325
16326 2011-06-13  Bruno Haible  <bruno@clisp.org>
16327
16328         file-set.h: guard __attibute__ use, now that it's not always defined
16329         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16330         versions that support it.  This fixes a coreutils build failure with
16331         the vendor cc on HP-UX 11.31.
16332
16333 2011-06-12  Bruno Haible  <bruno@clisp.org>
16334
16335         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16336         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16337         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16338         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16339         (acl, aclsort): New declarations.
16340         (aclv_nontrivial): New declaration.
16341         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16342         (file_has_acl): Read also the second kind of HP-UX ACLs.
16343         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16344         kind of HP-UX ACLs if the first kind fails.
16345         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16346         second kind of HP-UX ACLs.
16347         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16348         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16349         agree.
16350         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16351         hpuxjfs.
16352         Handle hpuxjfs.
16353         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16354         hpuxjfs.
16355         Handle hpuxjfs.
16356         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16357         (func_test_same_acls): Use both lsacl and getacl.
16358         Handle hpuxjfs.
16359         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16360         (func_test_same_acls): Use both lsacl and getacl.
16361         Handle hpuxjfs.
16362
16363 2011-06-12  Bruno Haible  <bruno@clisp.org>
16364
16365         acl: Complete the 2010-08-10 fix.
16366         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16367         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16368         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16369         explicitly.
16370         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16371         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16372
16373 2011-06-12  Bruno Haible  <bruno@clisp.org>
16374
16375         spawn-pipe tests: Comments.
16376         * tests/test-spawn-pipe-child.c (main): Update comment.
16377         Reported by James Youngman <jay@gnu.org>.
16378
16379 2011-06-11  James Youngman  <jay@gnu.org>
16380
16381         New module 'stat-size'.
16382         * modules/stat-size: New module.  Provides macros for accessing
16383         file size information in instances of struct stat.  Depends on the
16384         fileblocks module because it calls st_blocks.
16385         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16386         * doc/gnulib.texi: Include stat-size.texi.
16387         * doc/stat-size.texi: Documentation for this module.
16388         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16389         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16390         AC_STRUCT_ST_BLOCKS.
16391
16392 2011-06-09  Bruno Haible  <bruno@clisp.org>
16393
16394         thread: Support pthreads-win32.
16395         * lib/glthread/thread.h (gl_thread_self): Define differently on
16396         pthreads-win32.
16397         (gl_null_thread): New declaration.
16398         (gl_thread_self_pointer): New macro.
16399         * lib/glthread/thread.c (gl_null_thread): New constant.
16400         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16401         gl_thread_self.
16402         * tests/test-tls.c: Likewise.
16403         Suggested by Paul Eggert. Reported by Eric Blake.
16404
16405 2011-06-09  Bruno Haible  <bruno@clisp.org>
16406
16407         thread: Fix confusion between NULL and 0.
16408         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16409         Reported by Paul Eggert.
16410
16411 2011-06-09  Bruno Haible  <bruno@clisp.org>
16412
16413         spawn-pipe tests: Avoid test failure on HP-UX 11.
16414         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16415         is closed.
16416
16417 2011-06-09  Bruno Haible  <bruno@clisp.org>
16418
16419         acl tests: Fix compilation error on HP-UX 11.
16420         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16421
16422 2011-06-09  Bruno Haible  <bruno@clisp.org>
16423
16424         rmdir: Avoid test failure on HP-UX 10.20.
16425         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16426         EEXIST.
16427
16428 2011-06-08  Eric Blake  <eblake@redhat.com>
16429
16430         perror: fix test on mingw
16431         * modules/perror-tests (Depends-on): Add dup2.
16432
16433         strerror_r-posix: fix on MacOS
16434         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16435         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16436         logic bug.
16437         * lib/strerror_r.c (strerror_r): Fix the bug.
16438         * lib/strerror.c (strerror): Likewise.
16439         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16440         problem.
16441         * doc/posix-functions/strerror.texi (strerror): Likewise.
16442         * doc/posix-functions/perror.texi (perror): Likewise.
16443         * tests/test-strerror.c (main): Enhance test.
16444         * tests/test-strerror_r.c (main): Likewise.
16445
16446 2011-06-08  Bruno Haible  <bruno@clisp.org>
16447
16448         gnulib-tool: Better isolation between different gnulib-tool invocations.
16449         * gnulib-tool: New option --witness-c-macro.
16450         (witness_c_macro): New variable.
16451         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16452         AM_CPPFLAGS define it as a C macro.
16453         (func_emit_tests_Makefile_am): Likewise.
16454         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16455         read it from there.
16456         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16457         m4_define, not AC_DEFUN.
16458         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16459         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16460         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16461         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16462         s|...|...|, to substitute the values of the GNULIB_* module indicator
16463         variables.
16464         * modules/dirent (Makefile.am): Likewise.
16465         * modules/fcntl-h (Makefile.am): Likewise.
16466         * modules/iconv-h (Makefile.am): Likewise.
16467         * modules/langinfo (Makefile.am): Likewise.
16468         * modules/locale (Makefile.am): Likewise.
16469         * modules/math (Makefile.am): Likewise.
16470         * modules/netdb (Makefile.am): Likewise.
16471         * modules/poll-h (Makefile.am): Likewise.
16472         * modules/pty (Makefile.am): Likewise.
16473         * modules/search (Makefile.am): Likewise.
16474         * modules/signal (Makefile.am): Likewise.
16475         * modules/spawn (Makefile.am): Likewise.
16476         * modules/stdio (Makefile.am): Likewise.
16477         * modules/stdlib (Makefile.am): Likewise.
16478         * modules/string (Makefile.am): Likewise.
16479         * modules/sys_ioctl (Makefile.am): Likewise.
16480         * modules/sys_select (Makefile.am): Likewise.
16481         * modules/sys_socket (Makefile.am): Likewise.
16482         * modules/sys_stat (Makefile.am): Likewise.
16483         * modules/sys_times (Makefile.am): Likewise.
16484         * modules/sys_utsname (Makefile.am): Likewise.
16485         * modules/sys_wait (Makefile.am): Likewise.
16486         * modules/termios (Makefile.am): Likewise.
16487         * modules/time (Makefile.am): Likewise.
16488         * modules/unistd (Makefile.am): Likewise.
16489         * modules/wchar (Makefile.am): Likewise.
16490
16491 2011-06-08  Eric Blake  <eblake@redhat.com>
16492
16493         strerror: simplify replacement
16494         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16495         * modules/strerror (configure.ac): No prereqs needed here...
16496         * modules/strerror-override (configure.ac): ...but this needs it.
16497         (Files): Add file for needed prereq macro.
16498
16499 2011-06-08  Bruno Haible  <bruno@clisp.org>
16500
16501         strerror_r-posix: Tweaks.
16502         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16503         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16505         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16506         (gl_FUNC_STRERROR_R): ... to here.
16507         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16508
16509 2011-06-07  Eric Blake  <eblake@redhat.com>
16510
16511         perror: document fixed bugs
16512         * doc/posix-functions/perror.texi (perror): Document recent
16513         patches.
16514
16515 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         stat-time: get_stat_birthtime failure is better-defined
16518         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16519         return a timestamp whose tv_sec and tv_nsec values are both -1.
16520         Previously, the spec said only that the tv_nsec value was negative.
16521         This upward-compatible change simplifies GNU tar a bit.
16522
16523 2011-06-07  Eric Blake  <eblake@redhat.com>
16524
16525         strerror_r-posix: work around cygwin 1.7.9
16526         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16527         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16528         bug without replacing strerror_r.
16529         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16530         strerror_r is buggy, but without requiring strerror_r compilation.
16531         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16532
16533         test-perror: relax test to ignore cygwin bug
16534         * tests/test-perror2.c (main): Relax test on requiring detection
16535         of stream errors, and use unbuffered stream.
16536         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16537         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16538         * doc/posix-functions/fputc.texi (fputc): Likewise.
16539         * doc/posix-functions/fputs.texi (fputs): Likewise.
16540         * doc/posix-functions/fputws.texi (fputws): Likewise.
16541         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16542         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16543         * doc/posix-functions/getopt.texi (getopt): Likewise.
16544         * doc/posix-functions/perror.texi (perror): Likewise.
16545         * doc/posix-functions/printf.texi (printf): Likewise.
16546         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16547         * doc/posix-functions/psignal.texi (psignal): Likewise.
16548         * doc/posix-functions/putc.texi (putc): Likewise.
16549         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16550         Likewise.
16551         * doc/posix-functions/putchar.texi (putchar): Likewise.
16552         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16553         Likewise.
16554         * doc/posix-functions/puts.texi (puts): Likewise.
16555         * doc/posix-functions/putwc.texi (putwc): Likewise.
16556         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16557         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16558         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16559         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16560         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16561         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16562         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16563         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16564
16565 2011-05-22  Bruno Haible  <bruno@clisp.org>
16566
16567         strerror: Move AC_LIBOBJ invocations to module description.
16568         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16569         gl_PREREQ_STRERROR invocations from here...
16570         * modules/strerror (configure.ac): ... to here.
16571
16572 2011-05-21  Bruno Haible  <bruno@clisp.org>
16573
16574         perror: Use common idiom.
16575         * modules/perror (configure.ac): Reorder statements.
16576
16577 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16578
16579         tests: fix usage message in 'mktempd_'
16580         * tests/init.sh (mktempd_): In the usage message, use literal
16581         'mktempd_', not '$ME' (which is even undefined), as the name of
16582         the subroutine.
16583
16584 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16585
16586         tests init: new function 'fatal_', for hard errors
16587         Before this patch, the only way offered by tests/init.sh to
16588         properly signal a hard error was the `framework_failure_'
16589         function.  But the error message issued by that function,
16590         as its name would suggest, refers to a set-up failure in the
16591         testsuite, while hard errors can obviously also be due to
16592         other reasons.  The best way to fix this inconsistency is to
16593         introduce a new function with a more general error message.
16594         * tests/init.sh (fatal_): New function.
16595
16596 2011-06-06  Eric Blake  <eblake@redhat.com>
16597
16598         canonicalize-lgpl: use common idiom
16599         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16600         over newer POSIX -Rf.
16601         Reported by Bruno Haible.
16602
16603         canonicalize-lgpl: work around AIX realpath bug
16604         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16605         * doc/posix-functions/realpath.texi (realpath): Document it.
16606         Reported by Bruno Haible.
16607
16608         strerror: work around FreeBSD bug
16609         * lib/strerror.c (strerror): Special case 0.
16610         Reported by Bruno Haible.
16611
16612         strerror-override: avoid bloating errno module
16613         * modules/errno (Files, configure.ac): Move replacement strings...
16614         * modules/strerror-override: ...to new module.
16615         * modules/strerror (Depends-on): Add strerror-override.
16616         * modules/strerror_r-posix (Depends-on): Likewise.
16617         * MODULES.html.sh: Document new module.
16618         Reported by Bruno Haible.
16619
16620 2011-06-06  Bruno Haible  <bruno@clisp.org>
16621
16622         spawn-pipe tests: Rename program.
16623         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16624         * tests/test-spawn-pipe-child.c: Update comment.
16625         * tests/test-spawn-pipe.sh: Update.
16626         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16627
16628         spawn-pipe tests: Link the child program only against libc.
16629         * tests/test-spawn-pipe-child.c: New file, extracted from
16630         tests/test-spawn-pipe.c.
16631         (main): Expect only one argument.
16632         (is_open): New function, copied from tests/test-pipe.c.
16633         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16634         (child_main): Remove function.
16635         (test_pipe): Pass only one argument to the child program.
16636         (main): Remove child process code. Expect the child program's name as
16637         first argument.
16638         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16639         argument.
16640         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16641         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16642         test-spawn-pipe-child against no libraries.
16643
16644 2011-06-06  Bruno Haible  <bruno@clisp.org>
16645
16646         careadlinkat: Avoid mismatch between ssize_t and int.
16647         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16648         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16649
16650 2011-06-06  Jim Meyering  <meyering@redhat.com>
16651
16652         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16653         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16654         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16655
16656 2011-06-05  Bruno Haible  <bruno@clisp.org>
16657
16658         ansi-c++-opt: Interoperability with libtool.
16659         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16660         set the variable to "no", not to ":".
16661         * NEWS: Mention the change.
16662
16663 2011-06-05  Bruno Haible  <bruno@clisp.org>
16664
16665         acl: Fix test failure on AIX 7.
16666         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16667         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16668
16669 2011-06-05  Bruno Haible  <bruno@clisp.org>
16670
16671         pipe-filter-ii: Fix test failure on AIX and IRIX.
16672         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16673         with EAGAIN, retry with a smaller buffer size.
16674
16675 2011-06-05  Bruno Haible  <bruno@clisp.org>
16676
16677         localename: Fix link dependencies.
16678         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16679         * modules/localename-tests (Makefile.am): Link test-localename with
16680         $(LIBTHREAD).
16681
16682 2011-06-05  Bruno Haible  <bruno@clisp.org>
16683
16684         error: Avoid gcc warning.
16685         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16686
16687 2011-06-05  Bruno Haible  <bruno@clisp.org>
16688
16689         unsetenv: Avoid gcc warning.
16690         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16691
16692 2011-06-05  Bruno Haible  <bruno@clisp.org>
16693
16694         setenv: Avoid gcc warning.
16695         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16696
16697 2011-06-05  Bruno Haible  <bruno@clisp.org>
16698
16699         sys_select: Ensure memset is declared also on AIX 7.
16700         * lib/sys_select.in.h: Include <string.h> also on AIX.
16701         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16702         self-contained also on AIX 7.1.
16703
16704 2011-06-04  Jim Meyering  <meyering@redhat.com>
16705
16706         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16707         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16708         function name, "error".
16709         (_gl_translatable_diag_func_re): New configurable variable.
16710
16711 2011-06-04  Bruno Haible  <bruno@clisp.org>
16712
16713         getopt: Avoid gcc warning.
16714         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16715
16716 2011-06-04  Bruno Haible  <bruno@clisp.org>
16717
16718         strerror_r: Fix comments.
16719         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16720         commit.
16721
16722 2011-06-04  Bruno Haible  <bruno@clisp.org>
16723
16724         perror: Fix compilation error.
16725         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16726         Undefine fprintf, not sprintf.
16727         * modules/perror (Depends-on): Remove intprops, verify.
16728
16729 2011-06-04  Bruno Haible  <bruno@clisp.org>
16730
16731         setlocale: Enable replacement on Cygwin 1.5.
16732         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16733         Cygwin 1.5.x.
16734         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16735         LC_CTYPE category also exists on Cygwin 1.5.x.
16736
16737 2011-06-04  Bruno Haible  <bruno@clisp.org>
16738
16739         strerror-override: Don't disable symbol renamings.
16740         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16741         * lib/strerror-override.c: Include config.h.
16742         (strerror_override): Don't undefine.
16743
16744 2011-06-03  Bruno Haible  <bruno@clisp.org>
16745
16746         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16747         * lib/localename.h: Update copyright header.
16748         * lib/localename.c: Likewise.
16749         * lib/relocatable.h: Likewise.
16750         * lib/relocatable.c: Likewise.
16751
16752 2011-06-02  Bruno Haible  <bruno@clisp.org>
16753
16754         doc: Fix a module name.
16755         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16756
16757 2011-06-02  Bruno Haible  <bruno@clisp.org>
16758
16759         pipe2: Remove dependency on 'nonblocking' module.
16760         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16761         O_NONBLOCK is defined by gnulib.
16762         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16763         is zero.
16764         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16765         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16766         defined by gnulib.
16767         (get_nonblocking_flag): New function.
16768         (main): Test O_NONBLOCK flag only if it is nonzero.
16769         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16770
16771 2011-06-03  Jim Meyering  <meyering@redhat.com>
16772
16773         maint: three new prohibit-header-without-use rules
16774         Prohibit use of cloexec.h, posixver.h, same.h without use.
16775         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16776         (sc_prohibit_posixver_without_use): Likewise.
16777         (sc_prohibit_same_without_use): Likewise.
16778
16779 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16780
16781         allocator: 'die' routine is now given requested size
16782         * lib/allocator.h (struct allocator.die): New size arg.
16783         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16784         If the actual problem is an ssize_t limitation, not a size_t or
16785         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16786
16787 2011-06-01  Eric Blake  <eblake@redhat.com>
16788
16789         strerror: drop strerror_r dependency
16790         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16791         * lib/strerror-override.c (strerror_override): ...to new file.
16792         * lib/strerror-override.h: Add prototype.
16793         * lib/strerror-impl.h: Delete.
16794         * lib/strerror.c (strerror): New implementation.
16795         * modules/errno (Files): Add new files.
16796         (configure.ac): Compile new file as appropriate.
16797         * modules/strerror (Files): Drop unused file.
16798         (Depends-on): Drop strerror_r-posix.
16799         * MODULES.html.sh: Document strerror_r-posix.
16800         Requested by Sam Steingold.
16801
16802         perror: call strerror_r directly
16803         * modules/perror (Files): Drop strerror-impl.h.
16804         * lib/perror.c (perror): Use our own stack buffer, rather than
16805         calling a wrapper that uses static storage.
16806         * doc/posix-functions/perror.texi (perror): Document a limitation
16807         of our replacement.
16808
16809         strerror_r: fix includes for FreeBSD
16810         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16811         since we use abort on some platforms.
16812         Reported by Matthias Bolte.
16813
16814 2011-05-31  Bruno Haible  <bruno@clisp.org>
16815
16816         Fix link errors in tests: openat-die uses gettext-h.
16817         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16818         against $(LIBINTL).
16819         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16820         against $(LIBINTL).
16821         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16822         $(LIBINTL).
16823         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16824         against $(LIBINTL).
16825         * modules/linkat-tests (Makefile.am): Link test-linkat against
16826         $(LIBINTL).
16827         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16828         $(LIBINTL).
16829         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16830         against $(LIBINTL).
16831         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16832         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16833         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16834         $(LIBINTL).
16835         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16836         $(LIBINTL).
16837         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16838         $(LIBINTL).
16839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16840
16841 2011-05-31  Bruno Haible  <bruno@clisp.org>
16842
16843         Fix link errors in tests: wait-process uses gettext-h.
16844         * modules/nonblocking-pipe-tests (Makefile.am): Set
16845         test_nonblocking_pipe_main_LDADD.
16846         * modules/nonblocking-socket-tests (Makefile.am): Link
16847         test-nonblocking-socket-main against $(LIBINTL).
16848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16849
16850 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16851
16852         assert-h: work around 'verify' incompatibility
16853         * lib/verify.h: Use @...@ directives, not ifdef.
16854         * modules/assert-h (assert.h): Implement the directives.
16855         (assert.h): Substitute the symbol-prefix more consistently.
16856
16857 2011-05-29  Jim Meyering  <meyering@redhat.com>
16858
16859         trim: remove three superfluous assignments
16860         * lib/trim.c (trim2): Remove three superfluous assignments
16861         and correct brace positioning.
16862
16863 2011-05-29  Bruno Haible  <bruno@clisp.org>
16864
16865         wctype-h: Avoid namespace pollution on Solaris 2.6.
16866         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16867         identifiers.
16868         * doc/posix-headers/wctype.texi: Mention the problem.
16869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16870
16871 2011-05-28  Jim Meyering  <meyering@redhat.com>
16872
16873         parse-datetime.y: accommodate -Wstrict-overflow
16874         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16875         placate -Wstrict-overflow.
16876
16877         trim: avoid a warning from -O2 -Wstrict-overflow
16878         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16879
16880 2011-05-29  Bruno Haible  <bruno@clisp.org>
16881
16882         gnulib-tool: Fix bug in yesterday's commit.
16883         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16884         twice.
16885
16886 2011-05-29  Bruno Haible  <bruno@clisp.org>
16887
16888         Allow multiple gnulib generated include files to be combined.
16889         * gnulib-tool (func_compute_include_guard_prefix): New function.
16890         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16891         ${gl_include_guard_prefix} references.
16892         (func_import, func_create_testdir): Invoke
16893         func_compute_include_guard_prefix.
16894         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16895         * lib/ctype.in.h: Likewise.
16896         * lib/dirent.in.h: Likewise.
16897         * lib/errno.in.h: Likewise.
16898         * lib/fcntl.in.h: Likewise.
16899         * lib/float.in.h: Likewise.
16900         * lib/getopt.in.h: Likewise.
16901         * lib/iconv.in.h: Likewise.
16902         * lib/langinfo.in.h: Likewise.
16903         * lib/locale.in.h: Likewise.
16904         * lib/math.in.h: Likewise.
16905         * lib/netdb.in.h: Likewise.
16906         * lib/netinet_in.in.h: Likewise.
16907         * lib/poll.in.h: Likewise.
16908         * lib/pthread.in.h: Likewise.
16909         * lib/pty.in.h: Likewise.
16910         * lib/sched.in.h: Likewise.
16911         * lib/se-selinux.in.h: Likewise.
16912         * lib/search.in.h: Likewise.
16913         * lib/signal.in.h: Likewise.
16914         * lib/spawn.in.h: Likewise.
16915         * lib/stdarg.in.h: Likewise.
16916         * lib/stddef.in.h: Likewise.
16917         * lib/stdint.in.h: Likewise.
16918         * lib/stdio.in.h: Likewise.
16919         * lib/stdlib.in.h: Likewise.
16920         * lib/string.in.h: Likewise.
16921         * lib/strings.in.h: Likewise.
16922         * lib/sys_file.in.h: Likewise.
16923         * lib/sys_ioctl.in.h: Likewise.
16924         * lib/sys_select.in.h: Likewise.
16925         * lib/sys_socket.in.h: Likewise.
16926         * lib/sys_stat.in.h: Likewise.
16927         * lib/sys_time.in.h: Likewise.
16928         * lib/sys_times.in.h: Likewise.
16929         * lib/sys_uio.in.h: Likewise.
16930         * lib/sys_utsname.in.h: Likewise.
16931         * lib/sys_wait.in.h: Likewise.
16932         * lib/sysexits.in.h: Likewise.
16933         * lib/termios.in.h: Likewise.
16934         * lib/time.in.h: Likewise.
16935         * lib/unistd.in.h: Likewise.
16936         * lib/wchar.in.h: Likewise.
16937         * lib/wctype.in.h: Likewise.
16938         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16939         * modules/ctype (Makefile.am): Likewise.
16940         * modules/dirent (Makefile.am): Likewise.
16941         * modules/errno (Makefile.am): Likewise.
16942         * modules/fcntl-h (Makefile.am): Likewise.
16943         * modules/float (Makefile.am): Likewise.
16944         * modules/getopt-posix (Makefile.am): Likewise.
16945         * modules/iconv-h (Makefile.am): Likewise.
16946         * modules/langinfo (Makefile.am): Likewise.
16947         * modules/locale (Makefile.am): Likewise.
16948         * modules/math (Makefile.am): Likewise.
16949         * modules/netdb (Makefile.am): Likewise.
16950         * modules/netinet_in (Makefile.am): Likewise.
16951         * modules/poll-h (Makefile.am): Likewise.
16952         * modules/pthread (Makefile.am): Likewise.
16953         * modules/pty (Makefile.am): Likewise.
16954         * modules/sched (Makefile.am): Likewise.
16955         * modules/search (Makefile.am): Likewise.
16956         * modules/selinux-h (Makefile.am): Likewise.
16957         * modules/signal (Makefile.am): Likewise.
16958         * modules/spawn (Makefile.am): Likewise.
16959         * modules/stdarg (Makefile.am): Likewise.
16960         * modules/stddef (Makefile.am): Likewise.
16961         * modules/stdint (Makefile.am): Likewise.
16962         * modules/stdio (Makefile.am): Likewise.
16963         * modules/stdlib (Makefile.am): Likewise.
16964         * modules/string (Makefile.am): Likewise.
16965         * modules/strings (Makefile.am): Likewise.
16966         * modules/sys_file (Makefile.am): Likewise.
16967         * modules/sys_ioctl (Makefile.am): Likewise.
16968         * modules/sys_select (Makefile.am): Likewise.
16969         * modules/sys_socket (Makefile.am): Likewise.
16970         * modules/sys_stat (Makefile.am): Likewise.
16971         * modules/sys_time (Makefile.am): Likewise.
16972         * modules/sys_times (Makefile.am): Likewise.
16973         * modules/sys_uio (Makefile.am): Likewise.
16974         * modules/sys_utsname (Makefile.am): Likewise.
16975         * modules/sys_wait (Makefile.am): Likewise.
16976         * modules/sysexits (Makefile.am): Likewise.
16977         * modules/termios (Makefile.am): Likewise.
16978         * modules/time (Makefile.am): Likewise.
16979         * modules/unistd (Makefile.am): Likewise.
16980         * modules/wchar (Makefile.am): Likewise.
16981         * modules/wctype-h (Makefile.am): Likewise.
16982         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16983
16984 2011-05-29  Bruno Haible  <bruno@clisp.org>
16985
16986         assert-h: Allow multiple gnulib generated replacements to coexist.
16987         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16988
16989 2011-05-29  Bruno Haible  <bruno@clisp.org>
16990
16991         argp: Allow coexistence with strerror_r-posix module.
16992         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16993         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16994         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16995         not the glibc signature.
16996
16997 2011-05-28  Bruno Haible  <bruno@clisp.org>
16998
16999         gnulib-tool: Alternative structure of testdirs, similar to --import.
17000         * gnulib-tool: New option --single-configure.
17001         (func_usage): Document it.
17002         (single_configure): New variable.
17003         (func_modules_transitive_closure_separately,
17004         func_modules_transitive_closure_separately,
17005         func_determine_use_libtests, func_modules_add_dummy_separately,
17006         func_modules_to_filelist_separately): New functions, extracted from
17007         func_import.
17008         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17009         (func_import): Use the new functions.
17010         (func_create_testdir): Set final_modules. Handle $single_configure =
17011         true case.
17012
17013 2011-05-28  Bruno Haible  <bruno@clisp.org>
17014
17015         getloadavg: Remove an unreliable safety check.
17016         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17017         getloadavg.c is in place.
17018         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17019         Reported by Sam Steingold <sds@gnu.org>.
17020
17021 2011-05-28  Bruno Haible  <bruno@clisp.org>
17022
17023         doc: Cleanup yet another file produced by texinfo.tex.
17024         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17025
17026 2011-05-28  Bruno Haible  <bruno@clisp.org>
17027
17028         Finish the conditional dependencies mechanism.
17029         * gnulib-tool: New option --no-conditional-dependencies.
17030         (func_usage): Document it. Don't mark --conditional-dependencies as
17031         experimental.
17032         (cond_dependencies): The possible values can now be true, false, empty.
17033         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17034         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17035         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17036
17037 2011-05-28  Bruno Haible  <bruno@clisp.org>
17038
17039         doc: Use a recent texinfo.tex.
17040         * doc/Makefile (tex_opts): New variable.
17041         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17042
17043 2011-05-28  Jim Meyering  <meyering@redhat.com>
17044
17045         intprops.h: adjust comment to match code change
17046         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17047         only once, it *may* have side effects.  Also fix an unrelated typo.
17048         (_GL_INT_SIGNED): Likewise.
17049
17050 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17051
17052         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17053
17054 2011-05-26  Bruno Haible  <bruno@clisp.org>
17055
17056         mbsrchr: Avoid collision with system function on Interix.
17057         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17058         Reported by Markus Duft <mduft@gentoo.org>.
17059
17060 2011-05-15  James Youngman  <jay@gnu.org>
17061
17062         getopt: for ambiguous options, enumerate the possibilities.
17063         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17064         the ambiguous options when an ambiguous prefix is given. This was
17065         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17066         glibc change was
17067         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17068
17069 2011-05-25  Eric Blake  <eblake@redhat.com>
17070
17071         getcwd: work around mingw bug
17072         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17073         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17074         Reported by Matthias Bolte.
17075
17076 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17077
17078         test-intprops: disable -Wtype-limits diagnostics
17079         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17080         diagnostics.  Otherwise, the integer overflow macros generate many
17081         diagnostics.  Reported by Jim Meyering in
17082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17083
17084         intprops: shorten, to pacify gcc -Woverlength-strings
17085         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17086         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17087         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17088         likely to run afoul of C compiler limits for string constant lengths.
17089         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17090
17091 2011-05-24  Eric Blake  <eblake@redhat.com>
17092
17093         docs: document recently fixed glibc printf bug
17094         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17095         * doc/posix-functions/printf.texi (printf): Likewise.
17096         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17097         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17098
17099         closein-tests: convert to init.sh
17100         * modules/closein-tests (Files): Add init.sh
17101         * tests/test-closein.sh Use it.
17102
17103         yesno-tests: convert to init.sh
17104         * modules/yesno-tests (Files): Add init.sh.
17105         * tests/test-yesno.sh: Use it.
17106
17107         atexit-tests: ensure reliable exit status
17108         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17109         Reported by Bruno Haible.
17110
17111 2011-05-24  Bruno Haible  <bruno@clisp.org>
17112
17113         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17115         gl_PREREQ_STRERROR_R invocations from here...
17116         * modules/strerror_r-posix (configure.ac): ... to here.
17117
17118 2011-05-24  Eric Blake  <eblake@redhat.com>
17119
17120         strerror_r: fix missing header
17121         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17122
17123         strerror_r: fix AIX test failures
17124         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17125         ERANGE failure.
17126
17127         strerror_r: fix Solaris test failures
17128         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17129         failures.
17130         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17131
17132         strerror_r: enforce POSIX recommendations
17133         * lib/strerror_r.c (safe_copy): New helper method.
17134         (strerror_r): Guarantee a non-empty string.
17135         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17136         recent POSIX rulings and to match our strerror guarantees.
17137         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17138
17139 2011-05-24  Jim Meyering  <meyering@redhat.com>
17140
17141         test-perror2.c: avoid warning about unused variable
17142         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17143
17144 2011-05-24  Eric Blake  <eblake@redhat.com>
17145
17146         perror: avoid spurious test failure on HP-UX
17147         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17148
17149         tests: fix logic bug in init.sh
17150         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17151         shell.
17152
17153 2011-05-24  Jim Meyering  <meyering@redhat.com>
17154
17155         utimensat: do not reference an out-of-scope buffer
17156         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17157         declared in an inner scope, yet "times" would be dereferenced outside
17158         the scope in which "ts" was valid.
17159         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17160         of ts[2] "out/up", so that the use of aliased "times" (via
17161         "times = ts;") does not end up referencing an out-of-scope "ts"
17162
17163         opendir-safer.c: don't clobber errno; don't close negative FD
17164         * lib/opendir-safer.c (opendir_safer):
17165         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17166         file descriptor, and more importantly, don't clobber the
17167         offending errno value with EINVAL.  Before, upon failure
17168         of dup_safer, we would pass the negative file descriptor to
17169         fdopendir, which would clobber errno.
17170
17171 2011-05-23  Bruno Haible  <bruno@clisp.org>
17172
17173         idcache: Fix module description.
17174         * modules/idcache (Include): Set to "idcache.h".
17175
17176 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17177
17178         gnulib-tool: fix portability problem with MacOS sed
17179         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17180         before the "}".  Problem reported by Leo in
17181         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17182         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17183         sed_extract_condition1, sed_extract_condition2.
17184
17185 2011-05-23  Bruno Haible  <bruno@clisp.org>
17186
17187         hash: Simplify autoconf macro.
17188         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17189
17190 2011-05-23  Bruno Haible  <bruno@clisp.org>
17191
17192         getugroups: Fix module description.
17193         * modules/getugroups (Include): Set to "getugroups.h".
17194
17195 2011-05-23  Bruno Haible  <bruno@clisp.org>
17196
17197         linkat: Simplify autoconf macro.
17198         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17199
17200 2011-05-23  Bruno Haible  <bruno@clisp.org>
17201             Eric Blake  <eblake@redhat.com>
17202
17203         linkat, renameat: Update dependencies.
17204         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17205         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17206         symlinkat.
17207
17208 2011-05-23  Jim Meyering  <meyering@redhat.com>
17209
17210         maint.mk: more tight_scope improvements
17211         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17212         (_gl_TS_headers): Define only in if-0'd block.
17213         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17214         sometimes we must *not* use it.  Adjust uses accordingly.
17215         (sc_tight_scope): Use much simpler grep-based test to determine
17216         whether we skip this rule.
17217
17218         maint.mk: generalize/improve the tight-scope rule
17219         * top/maint.mk: Emit a warning when the test is skipped.
17220         (_gl_TS_dir): Add $(srcdir)/ prefix.
17221         (_gl_TS_function_match): Simplify, rather than trying
17222         to enumerate common types.  Otherwise, it would fail to match an
17223         "extern unsigned char const *" declaration in idutils.
17224         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17225         a way to support use of that type of macro.
17226         (_gl_TS_var_match): Simplify regexp.
17227         (_gl_TS_obj_files): New configurable variable.
17228         (_gl_TS_headers): Likewise.
17229
17230 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17231
17232         verify: fix bug when gnulib <assert.h> is also included
17233         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17234         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17235         Perhaps there's a better way, but this fixes the immediate problem.
17236         Problem reported by Bruno Haible in
17237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17238
17239 2011-05-22  Bruno Haible  <bruno@clisp.org>
17240
17241         xgetcwd: Simplify autoconf macro.
17242         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17243
17244 2011-05-22  Bruno Haible  <bruno@clisp.org>
17245
17246         New module 'mktime-internal'.
17247         * modules/mktime-internal: New file.
17248         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17249         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17250         mktime_internal as a C macro if libc has __mktime_internal.
17251         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17252         conditions.
17253         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17254
17255 2011-05-22  Bruno Haible  <bruno@clisp.org>
17256
17257         timegm: Correct mktime replacement statements.
17258         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17259         defining mktime as a C macro. This completes a 2009-07-28 commit.
17260
17261 2011-05-22  Bruno Haible  <bruno@clisp.org>
17262
17263         timegm: Simplify autoconf macro.
17264         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17265
17266 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17267
17268         clock-time: change to LGPLv2+.
17269         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17270         BSD-like but we have no mark for that; this is good enough for now.
17271
17272 2011-05-21  Bruno Haible  <bruno@clisp.org>
17273
17274         strerror_r: Fix comments.
17275         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17276
17277 2011-05-21  Bruno Haible  <bruno@clisp.org>
17278
17279         relocatable-prog-wrapper: Fix possible link error.
17280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17281         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17282         (gl_FUNC_SETENV): ... to here.
17283         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17284         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17285
17286 2011-05-21  Bruno Haible  <bruno@clisp.org>
17287
17288         relocatable-prog-wrapper: Assume strerror() exists.
17289         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17290         m4/strerror.m4.
17291         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17292         * lib/relocwrapper.c: Remove mention of strerror module.
17293         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17295         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17296         C macro.
17297
17298 2011-05-21  Bruno Haible  <bruno@clisp.org>
17299
17300         select: Simplify replacement idiom.
17301         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17302         Win32 platforms.
17303         * lib/sys_select.in.h (select): Simplify accordingly.
17304         * modules/select (Depends-on): Likewise.
17305
17306 2011-05-21  Bruno Haible  <bruno@clisp.org>
17307
17308         mkdir-p: Simplify autoconf macro.
17309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17310         gl_FUNC_LCHOWN.
17311
17312 2011-05-21  Eric Blake  <eblake@redhat.com>
17313
17314         strerror_r: avoid clobbering strerror on cygwin
17315         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17316         fall back instead to sys_errlist.
17317         * modules/strerror (configure.ac): Add witness.
17318         * tests/test-strerror_r.c (main): Enhance test.
17319         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17320         * tests/test-perror2.c (main): Free memory before exit.
17321
17322 2011-05-21  Bruno Haible  <bruno@clisp.org>
17323
17324         mkdtemp: Use gnulib naming conventions.
17325         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17326         * modules/mkdtemp (configure.ac): Update.
17327
17328 2011-05-20  Eric Blake  <eblake@redhat.com>
17329
17330         strerror_r: avoid corrupting errno on Solaris
17331         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17332         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17333
17334         strerror_r: avoid compiler warning
17335         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17336
17337         strerror_r: simplify AIX code
17338         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17339
17340         test-perror: avoid spurious failure on FreeBSD
17341         * modules/perror-tests (Depends-on): Add strerror, now that
17342         strerror_r no longer pulls it in.
17343
17344 2011-05-20  Bruno Haible  <bruno@clisp.org>
17345
17346         strerror_r-posix: Remove unused dependencies.
17347         * modules/strerror_r-posix (Depends-on): Remove strerror.
17348         Reported by Eric Blake.
17349
17350 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17351
17352         intprops: remove assumption about A|B representation
17353         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17354         is a valid integer if both A and B are.  Although this is true for
17355         all known practical hosts, the C standard doesn't guarantee it,
17356         and the code need not assume it.  Also, this change may work around
17357         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17359
17360 2011-05-20  Eric Blake  <eblake@redhat.com>
17361
17362         perror: work around FreeBSD bug
17363         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17364         is broken.  Move AC_LIBOBJ...
17365         * modules/perror (configure.ac): Here.
17366         * doc/posix-functions/perror.texi (perror): Document this.
17367         * tests/test-perror2.c (main): Enhance test.
17368
17369         test-perror: check for strerror interactions
17370         * tests/macros.h (STREQ): Add macro.
17371         * modules/perror-tests (Files): Add second test.
17372         * tests/test-perror2.c (main): New file.
17373         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17374
17375         test-perror: rewrite to use init script
17376         * modules/perror-tests (Files): Add init.sh.
17377         * tests/test-perror.sh: Use temporary directory.
17378
17379 2011-05-20  Jim Meyering  <meyering@redhat.com>
17380
17381         maint: replace misused "a" with "an"
17382         * doc/intprops.texi: "a integer"
17383         * doc/regex.texi: "a explanation"
17384         * lib/alignof.h: "a object"
17385         * lib/argmatch.h: "a explanation"
17386         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17387         * lib/stdint.in.h: "a integer"
17388         * lib/userspec.c: "a owner"
17389         * doc/gnulib.texi: Fix "a idea", and reword.
17390
17391 2011-05-19  Jim Meyering  <meyering@redhat.com>
17392
17393         maint: correct misuse of "a" and "an"
17394         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17395         * lib/argp-help.c: "an docum...": s/an/a/
17396         * lib/argp-parse.c: "An vector": s/An/A/
17397         * lib/execute.c: "an native": s/an/a/
17398         * lib/spawn-pipe.c: Likewise.
17399         * lib/gc.h: "an Gc_rc": s/an/a/
17400         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17401         * lib/fts.c: "an stat.st_dev": s/an/a/
17402
17403 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17404
17405         intprops-tests: work around HP-UX 11.23 cc bug with constants
17406         * tests/test-intprops.c (VERIFY): New macro.
17407         (main): Use it, instead of verify, to work around the compiler bug; see
17408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17409
17410         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17411         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17412         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17413         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17414         (_GL_REMAINDER_OVERFLOW): Use it.
17415
17416         intprops-tests: revert unsigned part of previous change
17417         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17418         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17419         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17421
17422 2011-05-19  Bruno Haible  <bruno@clisp.org>
17423
17424         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17425         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17426         strerror_r() returned without filling the buffer.
17427         Reported by Eric Blake.
17428
17429 2011-05-19  Eric Blake  <eblake@redhat.com>
17430
17431         strerror_r: guarantee unchanged errno
17432         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17433         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17434         failure.
17435         * tests/test-strerror_r.c (main): Enhance test.
17436
17437 2011-05-19  Bruno Haible  <bruno@clisp.org>
17438
17439         strerror_r: Reorder #if blocks.
17440         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17441         for consistency with the previous commit.
17442
17443 2011-05-19  Bruno Haible  <bruno@clisp.org>
17444
17445         perror: Avoid clobbering the strerror buffer when possible.
17446         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17447         * lib/strerror.c: Include it.
17448         * modules/strerror (Files): Add lib/strerror-impl.h.
17449         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17450         (my_strerror): New function, defined through lib/strerror-impl.h.
17451         (perror): Use it instead of strerror.
17452         * modules/perror (Files): Add lib/strerror-impl.h.
17453         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17454
17455 2011-05-19  Eric Blake  <eblake@redhat.com>
17456
17457         strerror_r: fix on newer cygwin
17458         * lib/strerror_r.c (strerror_r): Cygwin now has
17459         __xpg_strerror_r, use it.
17460
17461 2011-05-19  Bruno Haible  <bruno@clisp.org>
17462
17463         strerror_r: Avoid clobbering the strerror buffer when possible.
17464         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17465         (sys_nerr, sys_errlist): New declarations.
17466         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17467         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17468         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17469
17470 2011-05-19  Bruno Haible  <bruno@clisp.org>
17471
17472         strerror_r: Fix test failure on mingw.
17473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17474         EXTEND_STRERROR_R.
17475         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17476         macros from errno.in.h instead.
17477
17478 2011-05-19  Eric Blake  <eblake@redhat.com>
17479
17480         strerror: relax test for Solaris
17481         * tests/test-strerror.c (main): Permit Solaris behavior.
17482         * tests/test-strerror_r.c (main): Likewise.
17483
17484         strerror: enforce POSIX ruling on strerror(0)
17485         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17487         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17488         * doc/posix-functions/strerror.texi (strerror): Document it.
17489         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17490         * tests/test-strerror.c (main): Strengthen test.
17491         * tests/test-strerror_r.c (main): Likewise.
17492
17493 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17494
17495         intprop-tests: port to older and more-pedantic compilers
17496         * modules/intprops-tests (Files): Add tests/macros.h.
17497         * tests/test-intprops.c: Include macros.h.
17498         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17499         it's no longer documented to expand to an integer constant expression.
17500         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17501         argument is floating point, as it's no longer documented to expand
17502         to an integer constant expression in that case.
17503         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17504         compiler bugs reported by Bruno Haible.  See
17505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17506         (U0, U1): New constants, to work around the same bugs.  Also,
17507         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17508
17509         intprops: work around C compiler bugs
17510         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17511         bug in Sun C 5.11 2010/08/13 and other compilers; see
17512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17513
17514         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17515         * doc/intprops.texi (Integer Type Determination): Fix
17516         documentation for TYPE_IS_INTEGER: it returns an constant
17517         expression, not an integer constant expression.  Fix doc for
17518         TYPE_SIGNED: it returns an integer constant expression only if its
17519         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17520         hardly worth documented that way....)
17521
17522 2011-05-18  Bruno Haible  <bruno@clisp.org>
17523
17524         strerror_r: Avoid clobbering the strerror buffer when possible.
17525         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17526         Handle gnulib defined errno values here. When strerror() returns NULL
17527         or an empty string, return EINVAL.
17528         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17529         gnulib defined errno values here.
17530         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17531
17532 2011-05-18  Eric Blake  <eblake@redhat.com>
17533
17534         fnmatch: avoid compiler warning
17535         * lib/fnmatch_loop.c (FCT): Use correct type.
17536         Reported by Matthias Bolte.
17537
17538 2011-05-13  Jim Meyering  <meyering@redhat.com>
17539
17540         maint.mk: three new prohibit_<HDR>_without_use rules
17541         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17542         (sc_prohibit_stdio-safer_without_use): Likewise.
17543         (sc_prohibit_xfreopen_without_use): Likewise.
17544
17545 2011-05-17  Jim Meyering  <meyering@redhat.com>
17546
17547         announce-gen: fail if the NEWS delta is empty
17548         If there's nothing noteworthy in NEWS, then either you forgot
17549         or you shouldn't be releasing.
17550         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17551
17552 2011-05-17  Pádraig Brady <P@draigBrady.com>
17553
17554         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17555         reserved symbols starting with double underscore from the check.
17556
17557 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         intprops: add doc
17560         * doc/intprops.texi: New file, documenting intprops.
17561         * doc/gnulib.texi (Particular Modules): Include it.
17562
17563         verify: add doc to gnulib manual and fix example
17564         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17565         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17566         (Compile-time Assertions): Fix example so it can't overflow.
17567
17568 2011-05-17  Jim Meyering  <meyering@redhat.com>
17569
17570         warnings.m4: don't usurp save_CPPFLAGS variable name
17571         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17572
17573         doc: fix typo
17574         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17575
17576 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17577             Bruno Haible  <bruno@clisp.org>
17578
17579         doc: Tweak recent change.
17580         * README (Portability guidelines): Tweak new text.
17581         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17582         Interix 6.1.
17583
17584 2011-05-16  Eric Blake  <eblake@redhat.com>
17585
17586         inttypes: avoid autoconf warning
17587         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17588         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17589
17590 2011-05-16  Sam Steingold <sds@gnu.org>
17591         and Eric Blake  <eblake@redhat.com>
17592
17593         vc-list-files: accept multiple directory operands
17594         * build-aux/vc-list-files: Iterate over all remaining operands.
17595
17596 2011-05-16  Bruno Haible  <bruno@clisp.org>
17597
17598         Fix confusion regarding deprecated modules.
17599         * modules/calloc (Status, Notice): Mark module as deprecated, not
17600         obsolete.
17601         * modules/fnmatch-posix (Status, Notice): Likewise.
17602         * modules/getdate (Status, Notice): Likewise.
17603         * modules/getopt (Status, Notice): Likewise.
17604         * modules/malloc (Status, Notice): Likewise.
17605         * modules/pipe (Status, Notice): Likewise.
17606         * modules/realloc (Status, Notice): Likewise.
17607         * modules/rename-dest-slash (Status, Notice): Likewise.
17608         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17609         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17610         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17611         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17612         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17613
17614 2011-05-16  Bruno Haible  <bruno@clisp.org>
17615
17616         doc: List the target platforms.
17617         * doc/gnulib-intro.texi (Target Platforms): New section.
17618         * doc/gnulib.texi (Introduction): Update menu.
17619         * README (Portability guidelines): Refer to the new section. Update
17620         statement about oldest supported environment. Remove rationale why
17621         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17622         unportable C89 function.
17623         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17624         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17625
17626 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17627
17628         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17629
17630 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17631
17632         intprops-tests: new module
17633         * modules/intprops-tests, tests/test-intprops.c: New files.
17634
17635         intprops: add safe, portable integer overflow checking
17636         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17637         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17638         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17639         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17640         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17641         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17642         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17643         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17644         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17645         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17646         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17647
17648 2011-05-12  James Youngman  <jay@gnu.org>
17649
17650         Add a test for glibc's Bugzilla bug #12378.
17651         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17652         doesn't allow the literal matching of a lone "[" (which is
17653         required by POSIX).
17654         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17655
17656 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17657
17658         Sync glibc change fixing Bugzilla bug #12378.
17659         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17660         beginning and fall back to matching as normal character if the
17661         string ends before the matching ']' is found.  This is what POSIX
17662         requires.
17663
17664 2011-05-13  Eric Blake  <eblake@redhat.com>
17665
17666         getcwd-lgpl: relax test for FreeBSD
17667         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17668         issue.
17669         * tests/test-getcwd-lgpl.c (main): Relax test.
17670         Reported by Matthias Bolte.
17671
17672 2011-05-11  Eric Blake  <eblake@redhat.com>
17673
17674         test-fflush: silence compiler warning
17675         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17676
17677 2011-05-11  Bruno Haible  <bruno@clisp.org>
17678
17679         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17680         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17681         * modules/canonicalize (Depends-on): Add 'nocrash'.
17682         * modules/canonicalize-lgpl (Depends-on): Likewise.
17683         * doc/posix-functions/realpath.texi: Update platforms list.
17684         Reported by Ryan Schmidt <ryandesign@macports.org>.
17685
17686 2011-05-11  Bruno Haible  <bruno@clisp.org>
17687
17688         group-member: Declare function in <unistd.h>.
17689         * lib/unistd.in.h (group_member): New declaration.
17690         * lib/group-member.h: Remove file.
17691         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17692         * tests/test-unistd-c++.cc: Check signature of group_member.
17693         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17694         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17695         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17696         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17697         HAVE_GROUP_MEMBER.
17698         * modules/group-member (Files): Remove lib/group-member.h.
17699         (Depends-on): Add unistd. Specify conditions.
17700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17701         (Include): Change to <unistd.h>.
17702         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17703         HAVE_GROUP_MEMBER.
17704         * NEWS: Mention the change.
17705         * lib/euidaccess.c: Don't include group-member.h.
17706
17707 2011-05-11  Bruno Haible  <bruno@clisp.org>
17708
17709         group-member: Document module.
17710         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17711         module.
17712
17713 2011-05-11  Bruno Haible  <bruno@clisp.org>
17714
17715         fclose: Fix mistake earlier today.
17716         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17717
17718 2011-05-11  Eric Blake  <eblake@redhat.com>
17719
17720         fclose: preserve fflush errors
17721         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17722         Reported by Jim Meyering.
17723
17724         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17725         * build-aux/bootstrap (check_versions): When no specific version
17726         is required, merely check that the app produces an exit status
17727         that indicates its existence.
17728
17729         maint.mk: drop redundant check
17730         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17731         the same but better.
17732
17733 2011-05-11  Bruno Haible  <bruno@clisp.org>
17734
17735         fclose: Fix possible link error.
17736         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17737         unregister_shadow_fd. Improve comments.
17738         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17739         Eric Blake.
17740
17741 2011-05-11  Jim Meyering  <meyering@redhat.com>
17742
17743         maint.mk: improve "can not" detection and generalize rule name
17744         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17745         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17746         Use the same technique as in sc_prohibit_doubled_word, so that
17747         we recognize "can not" also when the words are separated by a newline.
17748         Suggested by Eric Blake.
17749         (perl_filename_lineno_text_): Define.  Factored out of...
17750         (prohibit_doubled_word_): ...here.  Use the new definition.
17751         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17752         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17753         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17754
17755 2011-05-10  Eric Blake  <eblake@redhat.com>
17756
17757         fclose: avoid double close race when possible
17758         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17759         all but WINDOWS_SOCKETS.
17760
17761 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17762
17763         openat: correct new comment
17764         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17765
17766 2011-05-10  Jim Meyering  <meyering@redhat.com>
17767
17768         openat: add comments
17769         * lib/openat-proc.c (openat_proc_name): Add comments,
17770         mostly from Eric Blake.
17771
17772 2011-05-09  Eric Blake  <eblake@redhat.com>
17773
17774         openat: reduce syscalls in first probe of /proc
17775         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17776         be a directory.  Simplify the probe for .. bugs.
17777         * modules/openat (Depends-on): Drop same-inode.
17778         Reported by Bastien ROUCARIES.
17779
17780 2011-05-09  Jim Meyering  <meyering@redhat.com>
17781
17782         maint.mk: change semantics/name of tight_scope variables
17783         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17784         Rename variables to align with semantics that make them more useful.
17785
17786         maint.mk: tweak new rule's name not to impinge
17787         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17788         (sc_tight_scope): Use new rule name rather than $@-0.
17789
17790         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17791         * top/maint.mk (sc_tight_scope): New rule.
17792         (sc_tight_scope-0): New rule, ifdef'd out.
17793         (_gl_TS_dir): Default.
17794         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17795         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17796
17797 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17798
17799         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17800         Haible <bruno@clisp.org>.
17801
17802 2011-05-08  Bruno Haible  <bruno@clisp.org>
17803
17804         Comments.
17805         * m4/isnanf.m4: Add comment.
17806         * m4/isnanl.m4: Likewise.
17807
17808 2011-05-08  Bruno Haible  <bruno@clisp.org>
17809
17810         glob: Remove obsolete macro.
17811         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17812
17813 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17814
17815         intprops: Sun C 5.11 supports __typeof__
17816         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17817         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17818         which is new.
17819         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17820
17821         intprops: switch to usual gnulib indenting and naming
17822         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17823         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17824
17825         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17826
17827 2011-05-08  Jim Meyering  <meyering@redhat.com>
17828
17829         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17830         * top/maint.mk (release-prep): Use make's --no-print-directory
17831         option when generating the announcement.  This eliminates the
17832         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17833         generated announcement template.
17834
17835 2011-05-08  Bruno Haible  <bruno@clisp.org>
17836
17837         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17838         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17839         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17840
17841 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17842
17843         ignore-value, verify: Omit include files from lib_SOURCES.
17844         * modules/ignore-value, modules/verify (Makefile.am):
17845         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17846         that leads Automake to duplicate use of am__objects_... variables
17847         in Makefile.in.  See
17848         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17849
17850 2011-05-07  Bruno Haible  <bruno@clisp.org>
17851
17852         fclose: Simplify autoconf macro.
17853         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17854         defined.
17855
17856 2011-05-07  Bruno Haible  <bruno@clisp.org>
17857
17858         canonicalize-lgpl: Fix autoconf macro ordering bug.
17859         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17860         gl_STDLIB_H_DEFAULTS.
17861
17862 2011-05-06  Eric Blake  <eblake@redhat.com>
17863
17864         maintainer-makefile: make sc_po_check easier to tune
17865         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17866         to probe for strings, such as an alternate location for gnulib.
17867
17868         fclose: guarantee behavior on seekable stdin
17869         * modules/fclose (Depends-on): Add fflush.
17870         * doc/posix-functions/fclose.texi (fclose): Document this.
17871         * tests/test-fclose.c (main): Make test for this unconditional.
17872
17873 2011-05-06  Bruno Haible  <bruno@clisp.org>
17874
17875         fflush, fpurge: Relicense under LGPLv2+.
17876         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17877         * modules/fpurge (License): Likewise.
17878         With permission from Eric Blake and Jim Meyering.
17879         Suggested by Eric Blake.
17880
17881 2011-05-06  Karl Berry  <karl@gnu.org>
17882
17883         * MODULES.html.sh (func_all_modules): remove exit.
17884
17885 2011-05-06  Jim Meyering  <meyering@redhat.com>
17886
17887         maint.mk: use info-gnu@ as the default only for a stable release
17888         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17889         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17890         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17891         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17892
17893 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17894
17895         assert-h: new module, which supports C1X-style static_assert
17896         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17897         * lib/verify.h: Revamp so that this can be copied into assert.h,
17898         while retaining the ability to use it standalone as before.
17899         Rename private identifiers so as not to encroach on the
17900         standard C namespace, since this is now used by assert.h.
17901         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17902         the old verify_true.
17903         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17904         the old verify_true.  Use _GL_VERIFY_TYPE.
17905         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17906         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17907         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17908         defined when this file is copied into the replacement assert.h.
17909         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17910         and _Static_assert is not built in.
17911         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17912         defined, and use the new macros mentioned above.
17913         * doc/posix-headers/assert.texi: Document this.
17914
17915 2011-05-05  Bruno Haible  <bruno@clisp.org>
17916
17917         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17918         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17919         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17920         gl_REPLACE_FCLOSE here.
17921         * modules/fflush (Depends-on): Remove fclose.
17922         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17923         combination with module 'fclose'.
17924
17925 2011-05-05  Bruno Haible  <bruno@clisp.org>
17926
17927         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17928         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17929         gl_FUNC_FFLUSH.
17930         (gl_FUNC_FFLUSH): Use it.
17931         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17933         gl_REPLACE_FSEEKO here.
17934
17935 2011-05-05  Bruno Haible  <bruno@clisp.org>
17936
17937         tzset: Relicense under LGPL.
17938         * modules/tzset (License): Change to LGPL.
17939         No agreement needed; it's a no-op.
17940
17941         strtoimax, strtoumax: Relicense under LGPL.
17942         * modules/strtoimax (License): Change to LGPL.
17943         * modules/strtoumax (License): Likewise.
17944         With permission from Jim Meyering, Paul Eggert:
17945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17947
17948         getgroups: Relicense under LGPL.
17949         * modules/getgroups (License): Change to LGPL.
17950         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17954
17955         nanosleep: Relicense under LGPL.
17956         * modules/nanosleep (License): Change to LGPL.
17957         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17958         Haible:
17959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17963
17964         futimens: Relicense under LGPL.
17965         * modules/futimens (License): Change to LGPL.
17966         With permission from Eric Blake:
17967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17968
17969         fflush: Relicense under LGPL.
17970         * modules/fflush (License): Change to LGPL.
17971         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17975
17976         tmpfile: Relicense under LGPL.
17977         * modules/tmpfile (License): Change to LGPL.
17978         With permission from Ben Pfaff:
17979         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17980
17981         isfinite: Relicense under LGPL.
17982         * modules/isfinite (License): Change to LGPL.
17983         With permission from Ben Pfaff, Bruno Haible:
17984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17986
17987         acosl..tanl: Relicense under LGPL.
17988         * modules/acosl (License): Change to LGPL.
17989         * modules/asinl (License): Likewise.
17990         * modules/atanl (License): Likewise.
17991         * modules/cosl (License): Likewise.
17992         * modules/expl (License): Likewise.
17993         * modules/logl (License): Likewise.
17994         * modules/sinl (License): Likewise.
17995         * modules/sqrtl (License): Likewise.
17996         * modules/tanl (License): Likewise.
17997         Source code originally from glibc and Paolo Bonzini. Agreements:
17998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18000
18001 2011-05-05  Bruno Haible  <bruno@clisp.org>
18002
18003         signal: Define sighandler_t.
18004         * lib/signal.in.h (sighandler_t): New type.
18005         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18006         whether sighandler_t is defined.
18007         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18008         * modules/signal (Depends-on): Add extensions.
18009         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18010         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18011         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18012
18013 2011-05-05  Eric Blake  <eblake@redhat.com>
18014
18015         maint: remove useless REPLACE_*_H macros
18016         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18017         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18018         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18019         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18020         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18021         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18022         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18023         * m4/btowc.m4: Update callers.
18024         * m4/dirfd.m4: Likewise.
18025         * m4/duplocale.m4: Likewise.
18026         * m4/fchdir.m4: Likewise.
18027         * m4/fdopendir.m4: Likewise.
18028         * m4/inet_ntop.m4: Likewise.
18029         * m4/inet_pton.m4: Likewise.
18030         * m4/ioctl.m4: Likewise.
18031         * m4/mbrlen.m4: Likewise.
18032         * m4/mbrtowc.m4: Likewise.
18033         * m4/mbsinit.m4: Likewise.
18034         * m4/mbsnrtowcs.m4: Likewise.
18035         * m4/mbsrtowcs.m4: Likewise.
18036         * m4/poll.m4: Likewise.
18037         * m4/setlocale.m4: Likewise.
18038         * m4/wcrtomb.m4: Likewise.
18039         * m4/wcsnrtombs.m4: Likewise.
18040         * m4/wcsrtombs.m4: Likewise.
18041         * m4/wctob.m4: Likewise.
18042         * m4/wcwidth.m4: Likewise.
18043         * modules/posix_spawn: Likewise.
18044         * modules/posix_spawn_file_actions_addclose: Likewise.
18045         * modules/posix_spawn_file_actions_adddup2: Likewise.
18046         * modules/posix_spawn_file_actions_addopen: Likewise.
18047         * modules/posix_spawn_file_actions_destroy: Likewise.
18048         * modules/posix_spawn_file_actions_init: Likewise.
18049         * modules/posix_spawnattr_destroy: Likewise.
18050         * modules/posix_spawnattr_getflags: Likewise.
18051         * modules/posix_spawnattr_getpgroup: Likewise.
18052         * modules/posix_spawnattr_getschedparam: Likewise.
18053         * modules/posix_spawnattr_getschedpolicy: Likewise.
18054         * modules/posix_spawnattr_getsigdefault: Likewise.
18055         * modules/posix_spawnattr_getsigmask: Likewise.
18056         * modules/posix_spawnattr_init: Likewise.
18057         * modules/posix_spawnattr_setflags: Likewise.
18058         * modules/posix_spawnattr_setpgroup: Likewise.
18059         * modules/posix_spawnattr_setschedparam: Likewise.
18060         * modules/posix_spawnattr_setschedpolicy: Likewise.
18061         * modules/posix_spawnattr_setsigdefault: Likewise.
18062         * modules/posix_spawnattr_setsigmask: Likewise.
18063         * modules/posix_spawnp: Likewise.
18064
18065 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18066
18067         Add option to do-release-commit-and-tag to specify branch.
18068         * build-aux/do-release-commit-and-tag: Add --branch.
18069
18070 2011-05-03  Bruno Haible  <bruno@clisp.org>
18071
18072         Avoid unnecessary compilation units, through conditional dependencies.
18073         * modules/accept (Depends-on): Add conditions to the dependencies.
18074         * modules/acosl (Depends-on): Likewise.
18075         * modules/argz (Depends-on): Likewise.
18076         * modules/asinl (Depends-on): Likewise.
18077         * modules/atanl (Depends-on): Likewise.
18078         * modules/atoll (Depends-on): Likewise.
18079         * modules/bind (Depends-on): Likewise.
18080         * modules/btowc (Depends-on): Likewise.
18081         * modules/canonicalize-lgpl (Depends-on): Likewise.
18082         * modules/ceil (Depends-on): Likewise.
18083         * modules/ceilf (Depends-on): Likewise.
18084         * modules/ceill (Depends-on): Likewise.
18085         * modules/chdir-long (Depends-on): Likewise.
18086         * modules/chown (Depends-on): Likewise.
18087         * modules/close (Depends-on): Likewise.
18088         * modules/connect (Depends-on): Likewise.
18089         * modules/cosl (Depends-on): Likewise.
18090         * modules/dirfd (Depends-on): Likewise.
18091         * modules/dprintf (Depends-on): Likewise.
18092         * modules/dprintf-posix (Depends-on): Likewise.
18093         * modules/error (Depends-on): Likewise.
18094         * modules/euidaccess (Depends-on): Likewise.
18095         * modules/expl (Depends-on): Likewise.
18096         * modules/faccessat (Depends-on): Likewise.
18097         * modules/fchdir (Depends-on): Likewise.
18098         * modules/fclose (Depends-on): Likewise.
18099         * modules/fcntl (Depends-on): Likewise.
18100         * modules/fdopendir (Depends-on): Likewise.
18101         * modules/fflush (Depends-on): Likewise.
18102         * modules/floor (Depends-on): Likewise.
18103         * modules/floorf (Depends-on): Likewise.
18104         * modules/floorl (Depends-on): Likewise.
18105         * modules/fnmatch (Depends-on): Likewise.
18106         * modules/fopen (Depends-on): Likewise.
18107         * modules/fprintf-posix (Depends-on): Likewise.
18108         * modules/frexp (Depends-on): Likewise.
18109         * modules/frexp-nolibm (Depends-on): Likewise.
18110         * modules/frexpl (Depends-on): Likewise.
18111         * modules/frexpl-nolibm (Depends-on): Likewise.
18112         * modules/fseek (Depends-on): Likewise.
18113         * modules/fsusage (Depends-on): Likewise.
18114         * modules/ftell (Depends-on): Likewise.
18115         * modules/ftello (Depends-on): Likewise.
18116         * modules/futimens (Depends-on): Likewise.
18117         * modules/getcwd (Depends-on): Likewise.
18118         * modules/getcwd-lgpl (Depends-on): Likewise.
18119         * modules/getdelim (Depends-on): Likewise.
18120         * modules/getdomainname (Depends-on): Likewise.
18121         * modules/getgroups (Depends-on): Likewise.
18122         * modules/gethostname (Depends-on): Likewise.
18123         * modules/getline (Depends-on): Likewise.
18124         * modules/getlogin_r (Depends-on): Likewise.
18125         * modules/getopt-posix (Depends-on): Likewise.
18126         * modules/getpeername (Depends-on): Likewise.
18127         * modules/getsockname (Depends-on): Likewise.
18128         * modules/getsockopt (Depends-on): Likewise.
18129         * modules/getsubopt (Depends-on): Likewise.
18130         * modules/getusershell (Depends-on): Likewise.
18131         * modules/glob (Depends-on): Likewise.
18132         * modules/grantpt (Depends-on): Likewise.
18133         * modules/iconv_open (Depends-on): Likewise.
18134         * modules/iconv_open-utf (Depends-on): Likewise.
18135         * modules/inet_ntop (Depends-on): Likewise.
18136         * modules/inet_pton (Depends-on): Likewise.
18137         * modules/ioctl (Depends-on): Likewise.
18138         * modules/isapipe (Depends-on): Likewise.
18139         * modules/isfinite (Depends-on): Likewise.
18140         * modules/isinf (Depends-on): Likewise.
18141         * modules/lchown (Depends-on): Likewise.
18142         * modules/ldexpl (Depends-on): Likewise.
18143         * modules/link (Depends-on): Likewise.
18144         * modules/linkat (Depends-on): Likewise.
18145         * modules/listen (Depends-on): Likewise.
18146         * modules/logl (Depends-on): Likewise.
18147         * modules/lstat (Depends-on): Likewise.
18148         * modules/mbrlen (Depends-on): Likewise.
18149         * modules/mbrtowc (Depends-on): Likewise.
18150         * modules/mbsinit (Depends-on): Likewise.
18151         * modules/mbsnrtowcs (Depends-on): Likewise.
18152         * modules/mbsrtowcs (Depends-on): Likewise.
18153         * modules/mbtowc (Depends-on): Likewise.
18154         * modules/memcmp (Depends-on): Likewise.
18155         * modules/mkdir (Depends-on): Likewise.
18156         * modules/mkdtemp (Depends-on): Likewise.
18157         * modules/mkfifo (Depends-on): Likewise.
18158         * modules/mkfifoat (Depends-on): Likewise.
18159         * modules/mknod (Depends-on): Likewise.
18160         * modules/mkostemp (Depends-on): Likewise.
18161         * modules/mkostemps (Depends-on): Likewise.
18162         * modules/mkstemp (Depends-on): Likewise.
18163         * modules/mkstemps (Depends-on): Likewise.
18164         * modules/mktime (Depends-on): Likewise.
18165         * modules/nanosleep (Depends-on): Likewise.
18166         * modules/open (Depends-on): Likewise.
18167         * modules/openat (Depends-on): Likewise.
18168         * modules/perror (Depends-on): Likewise.
18169         * modules/poll (Depends-on): Likewise.
18170         * modules/popen (Depends-on): Likewise.
18171         * modules/posix_spawn (Depends-on): Likewise.
18172         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18173         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18174         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18175         * modules/posix_spawnp (Depends-on): Likewise.
18176         * modules/pread (Depends-on): Likewise.
18177         * modules/printf-posix (Depends-on): Likewise.
18178         * modules/ptsname (Depends-on): Likewise.
18179         * modules/putenv (Depends-on): Likewise.
18180         * modules/pwrite (Depends-on): Likewise.
18181         * modules/readline (Depends-on): Likewise.
18182         * modules/readlink (Depends-on): Likewise.
18183         * modules/readlinkat (Depends-on): Likewise.
18184         * modules/recv (Depends-on): Likewise.
18185         * modules/recvfrom (Depends-on): Likewise.
18186         * modules/regex (Depends-on): Likewise.
18187         * modules/remove (Depends-on): Likewise.
18188         * modules/rename (Depends-on): Likewise.
18189         * modules/renameat (Depends-on): Likewise.
18190         * modules/rmdir (Depends-on): Likewise.
18191         * modules/round (Depends-on): Likewise.
18192         * modules/roundf (Depends-on): Likewise.
18193         * modules/roundl (Depends-on): Likewise.
18194         * modules/rpmatch (Depends-on): Likewise.
18195         * modules/select (Depends-on): Likewise.
18196         * modules/send (Depends-on): Likewise.
18197         * modules/sendto (Depends-on): Likewise.
18198         * modules/setenv (Depends-on): Likewise.
18199         * modules/setlocale (Depends-on): Likewise.
18200         * modules/setsockopt (Depends-on): Likewise.
18201         * modules/shutdown (Depends-on): Likewise.
18202         * modules/sigaction (Depends-on): Likewise.
18203         * modules/signbit (Depends-on): Likewise.
18204         * modules/sigprocmask (Depends-on): Likewise.
18205         * modules/sinl (Depends-on): Likewise.
18206         * modules/sleep (Depends-on): Likewise.
18207         * modules/snprintf (Depends-on): Likewise.
18208         * modules/snprintf-posix (Depends-on): Likewise.
18209         * modules/socket (Depends-on): Likewise.
18210         * modules/sprintf-posix (Depends-on): Likewise.
18211         * modules/sqrtl (Depends-on): Likewise.
18212         * modules/stat (Depends-on): Likewise.
18213         * modules/strchrnul (Depends-on): Likewise.
18214         * modules/strdup-posix (Depends-on): Likewise.
18215         * modules/strerror (Depends-on): Likewise.
18216         * modules/strerror_r-posix (Depends-on): Likewise.
18217         * modules/strndup (Depends-on): Likewise.
18218         * modules/strnlen (Depends-on): Likewise.
18219         * modules/strptime (Depends-on): Likewise.
18220         * modules/strsep (Depends-on): Likewise.
18221         * modules/strsignal (Depends-on): Likewise.
18222         * modules/strstr-simple (Depends-on): Likewise.
18223         * modules/strtod (Depends-on): Likewise.
18224         * modules/strtoimax (Depends-on): Likewise.
18225         * modules/strtok_r (Depends-on): Likewise.
18226         * modules/strtoumax (Depends-on): Likewise.
18227         * modules/symlink (Depends-on): Likewise.
18228         * modules/symlinkat (Depends-on): Likewise.
18229         * modules/tanl (Depends-on): Likewise.
18230         * modules/tcgetsid (Depends-on): Likewise.
18231         * modules/tmpfile (Depends-on): Likewise.
18232         * modules/trunc (Depends-on): Likewise.
18233         * modules/truncf (Depends-on): Likewise.
18234         * modules/truncl (Depends-on): Likewise.
18235         * modules/uname (Depends-on): Likewise.
18236         * modules/unlink (Depends-on): Likewise.
18237         * modules/unlockpt (Depends-on): Likewise.
18238         * modules/unsetenv (Depends-on): Likewise.
18239         * modules/usleep (Depends-on): Likewise.
18240         * modules/utimensat (Depends-on): Likewise.
18241         * modules/vasprintf (Depends-on): Likewise.
18242         * modules/vdprintf (Depends-on): Likewise.
18243         * modules/vdprintf-posix (Depends-on): Likewise.
18244         * modules/vfprintf-posix (Depends-on): Likewise.
18245         * modules/vprintf-posix (Depends-on): Likewise.
18246         * modules/vsnprintf (Depends-on): Likewise.
18247         * modules/vsnprintf-posix (Depends-on): Likewise.
18248         * modules/vsprintf-posix (Depends-on): Likewise.
18249         * modules/wcrtomb (Depends-on): Likewise.
18250         * modules/wcscasecmp (Depends-on): Likewise.
18251         * modules/wcscspn (Depends-on): Likewise.
18252         * modules/wcsdup (Depends-on): Likewise.
18253         * modules/wcsncasecmp (Depends-on): Likewise.
18254         * modules/wcsnrtombs (Depends-on): Likewise.
18255         * modules/wcspbrk (Depends-on): Likewise.
18256         * modules/wcsrtombs (Depends-on): Likewise.
18257         * modules/wcsspn (Depends-on): Likewise.
18258         * modules/wcsstr (Depends-on): Likewise.
18259         * modules/wcstok (Depends-on): Likewise.
18260         * modules/wcswidth (Depends-on): Likewise.
18261         * modules/wctob (Depends-on): Likewise.
18262         * modules/wctomb (Depends-on): Likewise.
18263         * modules/wctype (Depends-on): Likewise.
18264         * modules/wcwidth (Depends-on): Likewise.
18265         * modules/write (Depends-on): Likewise.
18266
18267 2011-05-03  Bruno Haible  <bruno@clisp.org>
18268
18269         Support for conditional dependencies.
18270         * doc/gnulib.texi (Module description): Document the syntax of
18271         conditional dependencies.
18272         * gnulib-tool: New option --conditional-dependencies.
18273         (func_usage): Document it.
18274         (cond_dependencies): New variable.
18275         (func_get_automake_snippet_conditional,
18276         func_get_automake_snippet_unconditional): New functions, extracted from
18277         func_get_automake_snippet.
18278         (func_get_automake_snippet): Use them.
18279         (sed_first_32_chars): New variable.
18280         (func_module_shellfunc_name): New function.
18281         (func_module_shellvar_name): New function.
18282         (func_module_conditional_name): New function.
18283         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18284         func_cond_module_condition): New functions.
18285         (func_modules_transitive_closure): Add support for conditional
18286         dependencies.
18287         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18288         conditional automake snippet in an automake conditional.
18289         (func_emit_autoconf_snippets): Emit shell functions that contain the
18290         code for conditional modules.
18291         (func_import, func_create_testdir): Update specification.
18292
18293 2011-05-03  Eric Blake  <eblake@redhat.com>
18294
18295         test-getaddrinfo: report error information
18296         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18297
18298 2011-05-03  Jim Meyering  <meyering@redhat.com>
18299
18300         bootstrap: avoid build failure when $GZIP is set
18301         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18302         program name.  If defined at all, it is supposed to list gzip options.
18303         Reported by Alan Curry in http://debbugs.gnu.org/8609
18304
18305 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18306
18307         readme-release: new module with release instructions
18308         * modules/readme-release: New module.
18309         * top/README-release: New file, from coreutils, grep, diffutils.
18310         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18311
18312 2011-05-02  Eric Blake  <eblake@redhat.com>
18313
18314         fflush: also replace fclose when fixing fflush
18315         * modules/fflush (Depends-on): Add fclose.
18316         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18317         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18318         memstreams with no backing fd.
18319         * doc/posix-functions/fclose.texi (fclose): Document the use of
18320         fflush module to fix the bug.
18321         * tests/test-fclose.c (main): Relax test when fclose is used in
18322         isolation.
18323
18324         fclose: add some tests
18325         * modules/fclose-tests: New test module.
18326         * tests/test-fclose.c: New file.
18327         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18328
18329         fclose: reduced dependencies
18330         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18331         simpler lseek.
18332         * lib/fclose.c (rpl_fclose): Likewise.
18333         Reported by Simon Josefsson.
18334
18335         exit: drop remaining clients
18336         * modules/argmatch (Depends-on): Replace exit with stdlib.
18337         * modules/copy-file (Depends-on): Likewise.
18338         * modules/execute (Depends-on): Likewise.
18339         * modules/exitfail (Depends-on): Likewise.
18340         * modules/obstack (Depends-on): Likewise.
18341         * modules/pagealign_alloc (Depends-on): Likewise.
18342         * modules/pipe-filter-gi (Depends-on): Likewise.
18343         * modules/pipe-filter-ii (Depends-on): Likewise.
18344         * modules/savewd (Depends-on): Likewise.
18345         * modules/spawn-pipe (Depends-on): Likewise.
18346         * modules/wait-process (Depends-on): Likewise.
18347         * modules/xsetenv (Depends-on): Likewise.
18348         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18349         * modules/git-merge-changelog (Depends-on): Likewise.
18350         * modules/long-options (Depends-on): Likewise.
18351         * modules/pt_chown (Depends-on): Likewise.
18352         * modules/sysexits (Depends-on): Likewise.
18353
18354         freading: relax license from LGPLv3+ to LGPLv2+
18355         * modules/freading (License): Relax LGPL version.
18356
18357 2011-05-02  Bruno Haible  <bruno@clisp.org>
18358
18359         fchdir: Remove unused dependencies.
18360         * modules/fchdir (Depends-on): Remove include_next.
18361
18362 2011-05-02  Bruno Haible  <bruno@clisp.org>
18363
18364         gnulib-tool: Refactor.
18365         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18366         from func_emit_autoconf_snippets.
18367         (func_emit_autoconf_snippets): Use it.
18368
18369 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18370
18371         * NEWS: Document removal of 'exit'.
18372         * modules/exit: Remove file.
18373
18374 2011-05-01  Bruno Haible  <bruno@clisp.org>
18375
18376         Update DEPENDENCIES.
18377         * DEPENDENCIES (gettext): Recommend the newest release.
18378         Reported by Simon Josefsson.
18379
18380 2011-05-01  Bruno Haible  <bruno@clisp.org>
18381
18382         gnulib-tool: Reduce code duplication.
18383         * gnulib-tool (func_emit_autoconf_snippets): New function.
18384         (func_import, func_create_testdir): Use it.
18385
18386 2011-04-30  Eric Blake  <eblake@redhat.com>
18387
18388         fclose: don't fail on non-seekable input stream
18389         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18390         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18391         since fflush is allowed to fail in that case.
18392
18393 2011-04-30  Bruno Haible  <bruno@clisp.org>
18394
18395         dup3: cleanup
18396         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18397
18398 2011-04-30  Bruno Haible  <bruno@clisp.org>
18399
18400         netdb: Make it work in C++ mode.
18401         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18402         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18403         module.
18404         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18405         gl_MODULE_INDICATOR_FOR_TESTS.
18406         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18407         * modules/netdb-c++-tests: New file.
18408         * tests/test-netdb-c++.cc: New file.
18409
18410 2011-04-30  Bruno Haible  <bruno@clisp.org>
18411
18412         New modules 'vfscanf', 'vscanf'.
18413         * modules/vfscanf: New file.
18414         * modules/vscanf: New file.
18415         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18416         here.
18417         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18418         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18419
18420 2011-04-30  Bruno Haible  <bruno@clisp.org>
18421
18422         passfd: Add comments.
18423         * lib/passfd.c: Add comments about platforms.
18424
18425 2011-04-30  Bruno Haible  <bruno@clisp.org>
18426
18427         sys_uio: Make <sys/uio.h> self-contained.
18428         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18429         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18430
18431 2011-04-30  Bruno Haible  <bruno@clisp.org>
18432
18433         sys_socket: Ensure 'struct iovec' definition.
18434         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18435         <sys/socket.h>.
18436         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18437
18438 2011-04-30  Bruno Haible  <bruno@clisp.org>
18439
18440         sys_uio: Protect definition of 'struct iovec'.
18441         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18442         it as a C struct.
18443
18444 2011-04-30  Bruno Haible  <bruno@clisp.org>
18445
18446         manywarnings: fix indentation
18447         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18448
18449 2011-04-30  Pádraig Brady <P@draigBrady.com>
18450
18451         manywarnings: add -Wno-missing-field-initializers if needed.
18452         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18453         option if it's needed to allow initialization with { 0, }
18454
18455 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18456
18457         announce-gen: cosmetic improvement
18458         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18459
18460 2011-04-29  Jim Meyering  <meyering@redhat.com>
18461
18462         vc-list-files: indent with spaces, not TABs
18463         * build-aux/vc-list-files: Convert leading TABs to spaces,
18464         to match the style of most other files in gnulib.
18465
18466         announce-gen: indent with spaces, not TABs
18467         * build-aux/announce-gen: Convert all TABs to spaces, to match
18468         the style of most other files in gnulib.
18469
18470 2011-04-29  Eric Blake  <eblake@redhat.com>
18471
18472         quotearg: avoid uninitialized variable use
18473         * lib/quotearg.c (quoting_options_from_style): Initialize
18474         remaining fields, and ensure that custom styles are only used via
18475         quoting_options rather than quoting_style.
18476
18477 2011-04-29  Jim Meyering  <meyering@redhat.com>
18478
18479         maint.mk: remove unused VC-tag variable
18480         * top/maint.mk (VC-tag): Remove unused variable.
18481
18482 2011-04-29  Bruno Haible  <bruno@clisp.org>
18483
18484         netdb: fix gai_strerror replacements
18485         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18486         * modules/netdb: Substitute it.
18487
18488 2011-04-29  Jim Meyering  <meyering@redhat.com>
18489
18490         test-getcwd.c: avoid new set-but-not-used warning
18491         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18492         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18493         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18494         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18495
18496         test-hash.c: avoid a new shadowing warning
18497         * tests/test-hash.c (main): Don't shadow "dup".
18498
18499 2011-04-28  Eric Blake  <eblake@redhat.com>
18500
18501         getaddrinfo: fix gai_strerror signature
18502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18503         and work around mingw with UNICODE defined.
18504         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18505         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18506         * modules/netdb (Makefile.am): Substitute it.
18507         * lib/netdb.in.h (gai_strerror): Declare replacement.
18508         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18509         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18510         the fix.
18511
18512         getsockopt: avoid compiler warning
18513         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18514         Reported by Matthias Bolte.
18515
18516         tests: drop unused link dependency
18517         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18518         * modules/dirent-safer-tests (Makefile.am): Likewise.
18519         * modules/fdopendir-tests (Makefile.am): Likewise.
18520         * modules/mkfifoat-tests (Makefile.am): Likewise.
18521         * modules/openat-safer-tests (Makefile.am): Likewise.
18522         * modules/openat-tests (Makefile.am): Likewise.
18523         * modules/readlinkat-tests (Makefile.am): Likewise.
18524         * modules/symlinkat-tests (Makefile.am): Likewise.
18525         * modules/linkat-tests (Makefile.am): Likewise.
18526         (Depends-on): Switch to filenamecat-lgpl.
18527         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18528         LIBINTL.
18529         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18530         * tests/test-linkat.c (main): Don't require xalloc.
18531
18532         hash, mgetgroups: drop xalloc dependency
18533         * lib/hash.c (includes): Adjust includes.
18534         * lib/mgetgroups.c (includes): Likewise.
18535         (xgetgroups): Move...
18536         * lib/xgetgroups.c: ...to new file.
18537         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18538         * modules/xgetgroups: New file, split from...
18539         * modules/mgetgroups: ...here.
18540         (Depends-on): Add xalloc-oversized.
18541         * modules/hash (Depends-on): Likewise.
18542         * modules/hash-tests (Depends-on): Drop xalloc.
18543         (test_hash_LDADD): Drop unused library.
18544         * tests/test-hash.c (main): Break xalloc dependency.
18545         (includes): Drop unused include.
18546
18547         xalloc-oversized: new module
18548         * modules/xalloc-oversized: New module.
18549         * modules/xalloc (Depends-on): Add it.
18550         * lib/xalloc.h (xalloc_oversized): Move...
18551         * lib/xalloc-oversized.h: ...into new file.
18552
18553         utimecmp: drop dependency on xmalloc
18554         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18555         due to memory pressure.
18556         * modules/utimecmp (Depends-on): Drop xalloc.
18557
18558 2011-04-27  Eric Blake  <eblake@redhat.com>
18559
18560         getcwd: fix mingw bugs
18561         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18562         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18563         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18564
18565 2011-04-27  Bruno Haible  <bruno@clisp.org>
18566
18567         mkstemps: Ensure declaration on MacOS X 10.5.
18568         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18569         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18570         MacOS X.
18571
18572 2011-04-27  Bruno Haible  <bruno@clisp.org>
18573
18574         mkstemp: More documentation.
18575         * doc/posix-functions/mkstemp.texi: Document header file problem on
18576         MacOS X.
18577
18578 2011-04-27  Bruno Haible  <bruno@clisp.org>
18579
18580         mkstemp: Tweak configure message when cross-compiling.
18581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18582         result as a guess.
18583
18584 2011-04-27  Bruno Haible  <bruno@clisp.org>
18585
18586         clean-temp: Clarify what it does.
18587         * lib/clean-temp.h: Add more comments.
18588         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18589         module.
18590         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18591         * doc/glibc-functions/mkstemps.texi: Likewise.
18592         * doc/glibc-functions/mkostemps.texi: Likewise.
18593
18594 2011-04-27  Eric Blake  <eblake@redhat.com>
18595
18596         fchdir: avoid extra chdir and fix test
18597         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18598         getcwd-lgpl.
18599         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18600         have to be canonical.
18601         (canonicalize_file_name): Drop unused macro.
18602         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18603
18604         filenamecat-lgpl: fix licence
18605         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18606         when it was first created.
18607
18608         linkat, renameat: add missing dependency
18609         * modules/linkat (Depends-on): Require getcwd-lgpl.
18610         * modules/renameat (Depends-on): Likewise.
18611
18612         tests: reduce dependencies
18613         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18614         * tests/test-renameat.c (main): Likewise.
18615         * modules/linkat-tests (Depends-on): Relax dependency.
18616         * modules/renameat-tests (Depends-on): Likewise.
18617         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18618         dependency explicit.
18619
18620         save-cwd: reduce default dependency
18621         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18622         * lib/save-cwd.c: Update comments.
18623         * NEWS: Document the semantic change.
18624
18625         getcwd: enhance tests
18626         * tests/test-getcwd-lgpl.c: New file, taken from...
18627         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18628         repeat long path stress tests from m4 probe.
18629         * modules/getcwd-lgpl-tests: New module.
18630         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18631         * m4/getcwd-abort-bug.m4: Update comment.
18632         * m4/getcwd-path-max.m4: Likewise.
18633
18634         getcwd-lgpl: new module
18635         * modules/getcwd-lgpl: New module.
18636         * lib/getcwd-lgpl.c: New file.
18637         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18638         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18639         * modules/getcwd (configure.ac): Set C witness.
18640         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18641
18642         getcwd: tweak comments
18643         * m4/getcwd-abort-bug.m4: Fix comments.
18644         * m4/getcwd-path-max.m4: Likewise.
18645         * m4/getcwd.m4: Likewise.
18646
18647 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18648         and Eric Blake  <eblake@redhat.com>
18649
18650         mkstemp: replace if system version uses wrong permissions
18651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18652         read/write mode bits set in file created by mkstemp.
18653         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18654
18655 2011-04-27  Eric Blake  <eblake@redhat.com>
18656
18657         passfd: avoid compiler warning
18658         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18659         Reported by Laine Stump.
18660
18661 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18662
18663         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18664         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18665
18666 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18667         and Eric Blake  <eblake@redhat.com>
18668
18669         mkstemp: mention clean-temp module
18670         * lib/mkstemp.c: Add comment.
18671         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18672
18673 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18674
18675         inttypes: also provide default values for 32-bit tests
18676         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18677         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18678
18679 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18680
18681         strtoumax: remove dependency on strtoimax
18682         This is like the strtoull change of yesterday.
18683         * modules/strtoumax (Files): Add lib/strtoimax.c.
18684         (Depends-on): Remove strtoimax and add verify.
18685
18686         inttypes-incomplete: new module
18687         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18688         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18689         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18690         of gl_INTTYPES_H.
18691         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18692         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18693         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18694         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18695         * modules/strtoumax, modules/xstrtol (Depends-on):
18696         Depend on inttypes-incomplete, not inttypes.
18697         * modules/inttypes-incomplete: New module, containing the contents
18698         of the old modules/inttypes module, except that the Files: section
18699         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18700         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18701         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18702         (Depends-on): Depend only on inttypes-incomplete.
18703         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18704
18705         inttypes: omit now-redundant strtoimax and strtoumax work
18706         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18707         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18708
18709         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18710         This supports apps that need pointers to strtoimax and strtoumax,
18711         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18712         nonexistent functions.  See
18713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18714         et seq.
18715         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18716         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18717         a macro.
18718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18719
18720 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18721
18722         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18723
18724 2011-04-25  Bruno Haible  <bruno@clisp.org>
18725
18726         strtol, strtoul: Mark modules as obsolete.
18727         * modules/strtol (Status, Notice): New sections.
18728         * modules/strtoul (Status, Notice): New sections.
18729
18730 2011-04-25  Bruno Haible  <bruno@clisp.org>
18731
18732         strtod: Remove check for strtod, unless supporting old platforms.
18733         * modules/strtod-obsolete: New file.
18734         * m4/strtod-obsolete.m4: New file.
18735         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18736         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18737         * modules/strtod (Depends-on): Add strtod-obsolete.
18738         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18739
18740 2011-04-25  Bruno Haible  <bruno@clisp.org>
18741
18742         strcase: Make module obsolete.
18743         * modules/strcase (Status, Notice): New sections.
18744
18745 2011-04-25  Bruno Haible  <bruno@clisp.org>
18746
18747         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18748         * modules/dup2-obsolete: New file.
18749         * m4/dup2-obsolete.m4: New file.
18750         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18751         gl_FUNC_DUP2_OBSOLETE is not also defined.
18752         * modules/dup2 (Depends-on): Add dup2-obsolete.
18753         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18754
18755 2011-04-25  Bruno Haible  <bruno@clisp.org>
18756
18757         strnlen: Avoid memchr related link error on old obsolete platforms.
18758         * modules/memchr-obsolete: New file.
18759         * m4/memchr-obsolete.m4: New file.
18760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18761         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18762         * modules/memchr (Depends-on): Add memchr-obsolete.
18763         * modules/strnlen (Depends-on): Likewise.
18764         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18765
18766 2011-04-25  Jim Meyering  <meyering@redhat.com>
18767
18768         maint.mk: makefile_at_at_check extend and clean up
18769         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18770         in addition to */Makefile.am.
18771         Exempt legitimate uses of @VAR@ notation, e.g.,
18772         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18773         Remove obsolete coreutils-specific comment.
18774         Prompted by discussion here:
18775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18776
18777 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18778
18779         strtoul: remove dependency on strtol
18780         This is so that 'configure' need not check for strtol merely because
18781         the application needs strtoul.
18782         * modules/strtoul (Files): Add lib/strtol.c.
18783         (Depends-on): Remove strtol.
18784
18785         strtoull: remove dependency on strtoul
18786         This is like the strtoll change.
18787         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18788         (Depends-on): Remove strtoul.
18789
18790         strtoll: remove dependency on strtol
18791         This is so that 'configure' need not check for strtol merely because
18792         the application needs strtoll.
18793         * modules/strtoll (Files): Add lib/strtol.c.
18794         (Depends-on): Remove strtol.
18795
18796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18797
18798         inttypes: Move some configure check to module 'imaxdiv'.
18799         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18800         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18801         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18802
18803 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         inttypes: Move some configure check to module 'imaxabs'.
18806         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18807         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18808         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18809
18810 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18811
18812         inttypes: Remove configure tests that are not needed since 2009-12-31.
18813         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18814         gl_cv_header_working_inttypes_h.
18815
18816 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18817
18818         * modules/strnlen (Depends-on): Remove memchr.
18819         The strnlen implementation doesn't need the memchr module's fixes; see
18820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18821
18822         strtol: remove dependency on wchar
18823         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18824         * modules/strtol (Depends-on): Remove wchar.
18825
18826 2011-04-21  Eric Blake  <eblake@redhat.com>
18827
18828         passfd: fix test regression on Linux
18829         * modules/passfd-tests (configure.ac): Correct socketpair check.
18830
18831         passfd: speed up configure and drop unused code
18832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18833         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18834         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18835         Instead of probing at configure for unix_scm_rights_bsd44_way,
18836         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18837         check to a struct member probe.
18838         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18839         (sendfd, recvfd): Update preprocessor checks.
18840         * modules/passfd (Files): Reflect rename, and drop unused file.
18841         (Depends-on): Drop unused dependency.
18842
18843         passfd: allow compilation on mingw
18844         * modules/sys_socket (Depends-on): Add sys_uio.
18845         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18846         iovec and a minimal struct msghdr.
18847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18848         * tests/test-sys_socket.c (main): Enhance test.
18849         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18850         guaranteed to provide what we need.
18851         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18852         * modules/passfd-tests (Depends-on): Add sys_wait.
18853         * tests/test-passfd.c (main): Skip test on mingw, for now.
18854         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18855         partial 'struct msghdr' implementation.
18856
18857         sys_uio: new module
18858         * modules/sys_uio: New module.
18859         * modules/sys_uio-tests: Likewise.
18860         * lib/sys_uio.in.h: New file.
18861         * m4/sys_uio_h.m4: Likewise.
18862         * tests/test-sys_uio.c: Likewise.
18863         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18864         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18865
18866 2011-04-20  Jim Meyering  <meyering@redhat.com>
18867
18868         useless-if-before-free: avoid false-positive
18869         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18870         disjunct so that it too requires a terminating ";".  Without that,
18871         this script would identify as useless one statement from gcc that
18872         was not:
18873           if (aligned_ptr)
18874             free (((void **) aligned_ptr) [-1]);
18875
18876 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18877
18878         doc: update users.txt.
18879         * users.txt: Add barcode.
18880
18881 2011-04-19  Bruno Haible  <bruno@clisp.org>
18882
18883         ioctl: Remove link dependency on native Windows.
18884         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18885         (gl_close_fn, gl_ioctl_fn): New types.
18886         (struct fd_hook): Renamed from struct close_hook. Change type of
18887         private_close_fn field. Add private_ioctl_fn field.
18888         (close_hook_fn): Add parameter for primary close method.
18889         (execute_close_hooks, execute_all_close_hooks): Likewise.
18890         (ioctl_hook_fn): New type.
18891         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18892         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18893         argument.
18894         (unregister_fd_hook): Renamed from unregister_close_hook.
18895         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18896         Don't include <unistd.h>.
18897         (close): Remove undef.
18898         (anchor): Update.
18899         (execute_close_hooks): Add argument for primary close method.
18900         (execute_all_close_hooks): Likewise.
18901         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18902         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18903         argument. Allow each argument to be NULL.
18904         (unregister_fd_hook): Renamed from unregister_close_hook.
18905         * lib/close.c (rpl_close): Pass 'close' function pointer to
18906         execute_all_close_hooks.
18907         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18908         (primary_ioctl): New function.
18909         (ioctl): Don't call ioctlsocket here. Instead, call
18910         execute_all_ioctl_hooks.
18911         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18912         close method.
18913         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18914         (fd_sockets_hook): Renamed from close_sockets_hook.
18915         (gl_sockets_startup, gl_sockets_cleanup): Update.
18916         * modules/fd-hook: Renamed from modules/close-hook. Update.
18917         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18918         * modules/sockets (Depends-on): Likewise.
18919         * modules/ioctl (Depends-on): Add fd-hook.
18920         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18921         GNULIB_SOCKET.
18922
18923 2011-04-19  Bruno Haible  <bruno@clisp.org>
18924
18925         Move the support of O_NONBLOCK in open() to the 'open' module.
18926         * modules/nonblocking (Depends-on): Remove 'open'.
18927         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18928         gl_cv_have_open_O_NONBLOCK.
18929         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18930         O_NONBLOCK support.
18931         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18932
18933 2011-04-17  Bruno Haible  <bruno@clisp.org>
18934
18935         pipe2: Simplify code.
18936         * lib/pipe2.c (pipe2): Reduce code duplication.
18937
18938 2011-04-17  Bruno Haible  <bruno@clisp.org>
18939
18940         nonblocking: Add comment.
18941         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18942
18943 2011-04-17  Bruno Haible  <bruno@clisp.org>
18944
18945         nonblocking: Add tests for sockets.
18946         * tests/test-nonblocking-socket.sh: New file.
18947         * tests/test-nonblocking-socket-main.c: New file.
18948         * tests/test-nonblocking-socket-child.c: New file.
18949         * tests/test-nonblocking-socket.h: New file.
18950         * tests/socket-server.h: New file.
18951         * tests/socket-client.h: New file.
18952         * modules/nonblocking-socket-tests: New file.
18953         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18954
18955 2011-04-17  Bruno Haible  <bruno@clisp.org>
18956
18957         nonblocking: Add tests for pipes.
18958         * tests/test-nonblocking-pipe.sh: New file.
18959         * tests/test-nonblocking-pipe-main.c: New file.
18960         * tests/test-nonblocking-pipe-child.c: New file.
18961         * tests/test-nonblocking-pipe.h: New file.
18962         * tests/test-nonblocking-writer.h: New file.
18963         * tests/test-nonblocking-reader.h: New file.
18964         * tests/test-nonblocking-misc.h: New file.
18965         * modules/nonblocking-pipe-tests: New file.
18966         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18967
18968 2011-04-16  Bruno Haible  <bruno@clisp.org>
18969
18970         gettext: Clarify the needed programmer actions.
18971         * modules/gettext (Notice): New field.
18972         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18973
18974 2011-04-16  Bruno Haible  <bruno@clisp.org>
18975
18976         strchrnul: Tweak last commit.
18977         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18978         bug.
18979         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18980         as in _GL_FUNCDECL_SYS.
18981         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18982         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18983
18984 2011-04-15  Eric Blake  <eblake@redhat.com>
18985
18986         strchrnul: work around cygwin bug
18987         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18990         * modules/string (Makefile.am): Substitute it.
18991         * lib/string.in.h (strchrnul): Use it.
18992
18993 2011-04-15  Bruno Haible  <bruno@clisp.org>
18994
18995         Don't require lib/stdio-write.c when only module 'stdio' is used.
18996         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18997         invocation.
18998         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18999
19000 2011-04-14  Bruno Haible  <bruno@clisp.org>
19001
19002         Support non-blocking pipe I/O in read() on native Windows.
19003         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19004         (read): New declaration.
19005         * lib/read.c: New file.
19006         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19007         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19008         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19009         vscanf): New declarations.
19010         * lib/stdio-read.c: New file.
19011         * m4/read.m4: New file.
19012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19013         REPLACE_READ.
19014         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19015         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19016         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19017         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19018         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19021         * modules/read: New file.
19022         * modules/nonblocking (Files): Add lib/stdio-read.c.
19023         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19024         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19025         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19026         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19027         * modules/pread (Depends-on): Add read.
19028         * modules/safe-read (Depends-on): Likewise.
19029         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19030         gets, scanf, vfscanf, vscanf): Verify signatures.
19031         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19032         problem with non-blocking pipes.
19033         * doc/posix-functions/fgetc.texi: Likewise.
19034         * doc/posix-functions/fgets.texi: Likewise.
19035         * doc/posix-functions/fread.texi: Likewise.
19036         * doc/posix-functions/fscanf.texi: Likewise.
19037         * doc/posix-functions/getc.texi: Likewise.
19038         * doc/posix-functions/getchar.texi: Likewise.
19039         * doc/posix-functions/gets.texi: Likewise.
19040         * doc/posix-functions/scanf.texi: Likewise.
19041         * doc/posix-functions/vfscanf.texi: Likewise.
19042         * doc/posix-functions/vscanf.texi: Likewise.
19043
19044 2011-04-14  Bruno Haible  <bruno@clisp.org>
19045
19046         Support non-blocking pipe I/O in write() on native Windows.
19047         * lib/write.c (rpl_write): Split a write request that failed merely
19048         because the byte count was larger than the pipe buffer's size.
19049         * doc/posix-functions/write.texi: Mention the problem with large byte
19050         counts.
19051
19052 2011-04-14  Bruno Haible  <bruno@clisp.org>
19053
19054         wchar: Ensure that wchar_t gets defined on uClibc.
19055         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19056         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19057
19058 2011-04-13  Bruno Haible  <bruno@clisp.org>
19059
19060         safe-write, full-read: Avoid unnecessary compilation units.
19061         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19062         (Depends-on): Remove safe-read. Add ssize_t.
19063         * modules/full-read (Files): Add lib/full-write.c.
19064         (Depends-on): Add full-write.
19065
19066 2011-04-13  Bruno Haible  <bruno@clisp.org>
19067
19068         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19069         * modules/pwrite (Depends-on): Add 'write'.
19070
19071 2011-04-13  Bruno Haible  <bruno@clisp.org>
19072
19073         Support non-blocking pipe I/O in write() on native Windows.
19074         * lib/unistd.in.h (write): Enable replacement also if
19075         GNULIB_UNISTD_H_NONBLOCKING is 1.
19076         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19077         (rpl_write): When failing to write on a non-blocking pipe, change
19078         errno from ENOSPC to EAGAIN.
19079         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19080         putchar, puts, vfprintf, vprintf): Enable replacement also if
19081         GNULIB_STDIO_H_NONBLOCKING is 1.
19082         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19083         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19084         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19085         CALL_WITH_SIGPIPE_EMULATION.
19086         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19087         * m4/nonblocking.m4: New file.
19088         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19089         for non-blocking I/O support.
19090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19091         GNULIB_UNISTD_H_NONBLOCKING.
19092         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19093         required for non-blocking I/O support.
19094         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19095         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19096         lib/stdio-write.c, m4/asm-underscore.m4.
19097         (Depends-on): Add stdio, unistd.
19098         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19099         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19100         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19101         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19102         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19103         problem with non-blocking pipes.
19104         * doc/posix-functions/fputc.texi: Likewise.
19105         * doc/posix-functions/fputs.texi: Likewise.
19106         * doc/posix-functions/fwrite.texi: Likewise.
19107         * doc/posix-functions/printf.texi: Likewise.
19108         * doc/posix-functions/putc.texi: Likewise.
19109         * doc/posix-functions/putchar.texi: Likewise.
19110         * doc/posix-functions/puts.texi: Likewise.
19111         * doc/posix-functions/vfprintf.texi: Likewise.
19112         * doc/posix-functions/vprintf.texi: Likewise.
19113         * doc/posix-functions/write.texi: Likewise.
19114
19115 2011-04-10  Jim Meyering  <meyering@redhat.com>
19116
19117         maint.mk: prohibit doubled words
19118         Detect them also when they're separated by a newline.
19119         There are 3 ways to customize it:
19120           - disable the test on a per file basis, as usual with rules using
19121             $(VC_LIST_EXCEPT)
19122           - replace the default doubled-word-selecting regexp (affects all files)
19123           - ignore a particular file-vs-doubled-word match
19124         I nearly used that last one to ignore the "is is" match in
19125         coreutils' NEWS file, since the text was "ls -is is ..."
19126         To do that, I would have added this line to cfg.mk:
19127           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19128         but it would have ignored any "is is" match in NEWS.
19129         Low probability, but still...
19130         Instead, I changed the text, slightly:
19131           -  ls -is is now consistent with ls -lis in ignoring values returned
19132           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19133         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19134         (prohibit_doubled_word_): Define.
19135         (sc_prohibit_doubled_word): New rule.
19136         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19137
19138 2011-04-10  Jim Meyering  <meyering@redhat.com>
19139
19140         maint: fix doubled-word typo in comment
19141         * m4/gethostname.m4: s/is is/it is/
19142         * m4/getdomainname.m4: Likewise.
19143
19144 2011-04-10  Jim Meyering  <meyering@redhat.com>
19145
19146         maint: remove doubled word: s/it it/it/
19147         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19148
19149 2011-04-10  Jim Meyering  <meyering@redhat.com>
19150
19151         maint.mk: remove useless semicolon and backslash
19152         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19153         semicolon and backslash.
19154
19155 2011-04-10  Bruno Haible  <bruno@clisp.org>
19156
19157         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19158         * modules/stdint-tests (Depends-on): Add wchar.
19159
19160 2011-04-10  Jim Meyering  <meyering@redhat.com>
19161
19162         maint: remove doubled words in comments, e.g., s/a a/a/
19163         * lib/strptime.c (day_of_the_week): s/the the/the/
19164         * tests/test-chown.h (test_chown): s/a a/a/
19165
19166         test-chown.h: correct a cast
19167         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19168         when the destination is a stat.st_gid.
19169
19170 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19171
19172         getaddrinfo: Fix test for sa_len member.
19173         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19174         include <sys/types.h> before <sys/socket.h>.
19175
19176 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         maint: change "can not" to "cannot"
19179         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19180         boundaries.
19181
19182 2011-04-09  Jim Meyering  <meyering@redhat.com>
19183
19184         maint: change "a a" to "a"
19185         * tests/test-lchown.h (test_lchown): s/a a/a/
19186
19187         maint.mk: prohibit \<the the\>
19188         * top/maint.mk (sc_prohibit_the_the): New rule.
19189
19190         maint: fix "the the" in comment
19191         * lib/count-one-bits.h: s/the the/the/
19192
19193         maint: change "can not" to "cannot"
19194         But do not change the occurrences in maintain.texi or in
19195         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19196         * doc/gnulib-tool.texi: s/can not/cannot/
19197         * doc/posix-functions/accept.texi (accept): Likewise.
19198         * doc/posix-functions/socket.texi (socket): Likewise.
19199         * lib/mbrtowc.c: Likewise.
19200
19201         maint.mk: prohibit use of "can not"
19202         * top/maint.mk (sc_prohibit_can_not): New rule.
19203         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19204
19205 2011-04-09  Bruno Haible  <bruno@clisp.org>
19206
19207         careadlinkat: Guard against misuse of careadlinkatcwd.
19208         * lib/careadlinkat.c: Include <stdlib.h>.
19209         (careadlinkatcwd): Check that the fd argument is as expected.
19210
19211 2011-04-09  Bruno Haible  <bruno@clisp.org>
19212
19213         careadlinkat: Use common coding style.
19214         * lib/careadlinkat.c: Move gnulib includes after system includes.
19215
19216 2011-04-09  Bruno Haible  <bruno@clisp.org>
19217
19218         careadlinkat: Clarify specification.
19219         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19220         (careadlinkatcwd): Add comment.
19221         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19222
19223 2011-04-09  Bruno Haible  <bruno@clisp.org>
19224
19225         areadlinkat: Avoid link error on many platforms.
19226         * modules/areadlinkat (Depends-on): Add areadlink.
19227
19228 2011-04-09  Bruno Haible  <bruno@clisp.org>
19229
19230         allocator, careadlinkat: Fix double-inclusion guard.
19231         * lib/allocator.h: Fix double-inclusion guard.
19232         * lib/careadlinkat.h: Likewise.
19233
19234 2011-04-09  Bruno Haible  <bruno@clisp.org>
19235
19236         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19237         * lib/relocwrapper.c: Update dependencies hierarchy.
19238         * build-aux/install-reloc: Update list of files to be compiled.
19239         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19240         lib/allocator.[hc].
19241
19242 2011-04-08  Eric Blake  <eblake@redhat.com>
19243
19244         strftime: silence gnulib-tool warning
19245         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19246
19247 2011-04-08  Bruno Haible  <bruno@clisp.org>
19248
19249         verify: Fix syntax error with GCC 4.6 in C++ mode.
19250         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19251         (HAVE_STATIC_ASSERT): New macro.
19252         (verify_true, verify): Use 'static_assert' if it is supported and
19253         '_Static_assert' is not supported.
19254
19255 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19256
19257         allocator: New module.
19258         * modules/allocator, lib/allocator.c: New files.
19259         * lib/allocator.h (stdlib_allocator): New decl.
19260         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19261         Remove.  Do not include <stdlib.h>.
19262         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19263         * modules/careadlinkat (Files): Remove lib/allocator.h.
19264         (Depends-on): Add allocator.
19265
19266         stdlib: let modules use system malloc, realloc
19267         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19268         if !_GL_USE_STDLIB_ALLOC.
19269         (malloc, realloc): Limit this change to a smaller scope.
19270
19271         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19272         (malloc, realloc): Don't #undef; no longer needed.
19273         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19274         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19275         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19276         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19277         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19278         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19279         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19280         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19281
19282         careadlinkat: rename members to avoid problem
19283         * lib/allocator.h (struct allocator): Rename members from
19284         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19285         and realloc are #define'd.  Reported by Eric Blake in
19286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19287         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19288
19289 2011-04-08  Eric Blake  <eblake@redhat.com>
19290
19291         nonblocking: reduce dependency
19292         * tests/test-nonblocking.c: Only test sockets when in use.
19293         * modules/nonblocking-tests (Depends-on): Drop socket.
19294         (Makefile.am): Link even if sockets are not present.
19295         * modules/pipe2-tests (Makefile.am): Likewise.
19296         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19297
19298         pipe2: fix O_NONBLOCK support on mingw
19299         * modules/pipe2 (Depends-on): Add nonblocking.
19300         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19301         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19302         * tests/test-nonblocking.c (main): Likewise.
19303         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19304
19305         fcntl-h: fix O_ACCMODE on cygwin
19306         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19307         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19308
19309         pipe-filter: drop O_NONBLOCK workarounds
19310         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19311         * modules/pipe-filter-ii (Depends-on): Likewise.
19312         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19313
19314         nonblocking: provide O_NONBLOCK for mingw
19315         * modules/nonblocking (Depends-on): Add open.
19316         (configure.ac): Set new witness macro.
19317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19318         * modules/fcntl-h (Makefile.am): Substitute it.
19319         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19320         nonblocking module is in use.
19321         * lib/nonblocking.c: Adjust portability test.
19322         * lib/open.c (open): Don't let native open see gnulib flag.
19323         * tests/test-fcntl-h.c (main): Enhance test.
19324         * tests/test-open.h (test_open): Likewise.
19325         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19326
19327         careadlinkat: fix compilation error on mingw
19328         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19329         within struct allocator.
19330
19331 2011-04-06  Eric Blake  <eblake@redhat.com>
19332
19333         binary-io: relicense under LGPLv2+
19334         * modules/binary-io (License): Relax to LGPLv2+.
19335         Requested for libvirt, and required by pipe2.
19336
19337 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         verify: use _Static_assert if available
19340         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19341         (verify_true, verify): Use it if available.  This generates better
19342         diagnostics with GCC 4.6.0 and later.
19343
19344 2011-04-05  Bruno Haible  <bruno@clisp.org>
19345
19346         Remove leftover generated .h files after config.status changed.
19347
19348         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19349         GL_GENERATE_ALLOCA_H.
19350         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19351         GL_GENERATE_ALLOCA_H evaluates to false.
19352
19353         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19354         GL_GENERATE_ARGZ_H.
19355         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19356         evaluates to false.
19357
19358         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19359         GL_GENERATE_BYTESWAP_H.
19360         * modules/byteswap (Makefile.am): Remove byteswap.h if
19361         GL_GENERATE_BYTESWAP_H evaluates to false.
19362
19363         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19364         GL_GENERATE_ERRNO_H.
19365         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19366         evaluates to false.
19367
19368         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19369         GL_GENERATE_FLOAT_H.
19370         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19371         evaluates to false.
19372
19373         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19374         GL_GENERATE_FNMATCH_H.
19375         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19376         GL_GENERATE_FNMATCH_H evaluates to false.
19377
19378         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19379         GL_GENERATE_GLOB_H.
19380         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19381         evaluates to false.
19382
19383         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19384         automake conditional GL_GENERATE_ICONV_H.
19385         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19386         evaluates to false.
19387
19388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19389         GL_GENERATE_NETINET_IN_H.
19390         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19391         GL_GENERATE_NETINET_IN_H evaluates to false.
19392
19393         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19394         conditional GL_GENERATE_PTHREAD_H.
19395         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19396         * modules/pthread (Makefile.am): Remove pthread.h if
19397         GL_GENERATE_PTHREAD_H evaluates to false.
19398
19399         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19400         GL_GENERATE_SCHED_H.
19401         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19402         evaluates to false.
19403
19404         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19405         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19406         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19407         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19408
19409         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19410         GL_GENERATE_STDARG_H.
19411         * modules/stdarg (Makefile.am): Remove stdarg.h if
19412         GL_GENERATE_STDARG_H evaluates to false.
19413
19414         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19415         GL_GENERATE_STDBOOL_H.
19416         * modules/stdbool (Makefile.am): Remove stdbool.h if
19417         GL_GENERATE_STDBOOL_H evaluates to false.
19418
19419         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19420         conditional GL_GENERATE_STDDEF_H.
19421         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19422         * modules/stddef (Makefile.am): Remove stddef.h if
19423         GL_GENERATE_STDDEF_H evaluates to false.
19424
19425         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19426         GL_GENERATE_STDINT_H.
19427         * modules/stdint (Makefile.am): Remove stdint.h if
19428         GL_GENERATE_STDINT_H evaluates to false.
19429
19430         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19431         GL_GENERATE_SYSEXITS_H.
19432         * modules/sysexits (Makefile.am): Remove sysexits.h if
19433         GL_GENERATE_SYSEXITS_H evaluates to false.
19434
19435         Reported by Karl Berry and Ralf Wildenhues.
19436
19437 2011-04-05  Bruno Haible  <bruno@clisp.org>
19438
19439         Ensure to rebuild generated .h files when config.status has changed.
19440         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19441         config.status.
19442         * modules/ctype (Makefile.am): Likewise.
19443         * modules/dirent (Makefile.am): Likewise.
19444         * modules/errno (Makefile.am): Likewise.
19445         * modules/fcntl-h (Makefile.am): Likewise.
19446         * modules/float (Makefile.am): Likewise.
19447         * modules/getopt-posix (Makefile.am): Likewise.
19448         * modules/glob (Makefile.am): Likewise.
19449         * modules/iconv-h (Makefile.am): Likewise.
19450         * modules/inttypes (Makefile.am): Likewise.
19451         * modules/langinfo (Makefile.am): Likewise.
19452         * modules/locale (Makefile.am): Likewise.
19453         * modules/math (Makefile.am): Likewise.
19454         * modules/netdb (Makefile.am): Likewise.
19455         * modules/netinet_in (Makefile.am): Likewise.
19456         * modules/poll-h (Makefile.am): Likewise.
19457         * modules/pthread (Makefile.am): Likewise.
19458         * modules/pty (Makefile.am): Likewise.
19459         * modules/sched (Makefile.am): Likewise.
19460         * modules/search (Makefile.am): Likewise.
19461         * modules/selinux-h (Makefile.am): Likewise.
19462         * modules/signal (Makefile.am): Likewise.
19463         * modules/spawn (Makefile.am): Likewise.
19464         * modules/stdarg (Makefile.am): Likewise.
19465         * modules/stdbool (Makefile.am): Likewise.
19466         * modules/stddef (Makefile.am): Likewise.
19467         * modules/stdint (Makefile.am): Likewise.
19468         * modules/stdio (Makefile.am): Likewise.
19469         * modules/stdlib (Makefile.am): Likewise.
19470         * modules/string (Makefile.am): Likewise.
19471         * modules/strings (Makefile.am): Likewise.
19472         * modules/sys_file (Makefile.am): Likewise.
19473         * modules/sys_ioctl (Makefile.am): Likewise.
19474         * modules/sys_select (Makefile.am): Likewise.
19475         * modules/sys_socket (Makefile.am): Likewise.
19476         * modules/sys_stat (Makefile.am): Likewise.
19477         * modules/sys_time (Makefile.am): Likewise.
19478         * modules/sys_times (Makefile.am): Likewise.
19479         * modules/sys_utsname (Makefile.am): Likewise.
19480         * modules/sys_wait (Makefile.am): Likewise.
19481         * modules/sysexits (Makefile.am): Likewise.
19482         * modules/termios (Makefile.am): Likewise.
19483         * modules/time (Makefile.am): Likewise.
19484         * modules/unistd (Makefile.am): Likewise.
19485         * modules/wchar (Makefile.am): Likewise.
19486         * modules/wctype-h (Makefile.am): Likewise.
19487         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19488
19489 2011-04-05  Bruno Haible  <bruno@clisp.org>
19490
19491         pipe2: Relicense under LGPLv2+.
19492         * modules/pipe2 (License): Change to LGPLv2+.
19493         Requested by Eric Blake, for libvirt.
19494
19495 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19496
19497         bootstrap: compute gnulib_extra_files after updating build_aux
19498         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19499         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19500
19501 2011-04-05  Eric Blake  <eblake@redhat.com>
19502
19503         bootstrap: preserve git whitelist item sorting
19504         * build-aux/bootstrap (sort_patterns): New function.
19505         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19506
19507 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19508
19509         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19510         sc_space_tab check.
19511
19512 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19513
19514         areadlink, areadlinkat: rewrite in terms of careadlinkat
19515         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19516         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19517         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19518         (malloc, realloc): Remove #undefs.
19519         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19520         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19521         readlink, ssize_t, stdint, unistd.
19522         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19523         areadlink, stdint.
19524
19525         careadlinkat: new module
19526         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19527         * modules/careadlinkat: New files, written by me with
19528         a review and feedback from Ben Pfaff in
19529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19530
19531 2011-04-01  Bruno Haible  <bruno@clisp.org>
19532
19533         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19534         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19535         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19536         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19537         Reported by Bruce Korb <bruce.korb@gmail.com>.
19538
19539 2011-04-01  Bruno Haible  <bruno@clisp.org>
19540
19541         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19542         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19543         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19544         * modules/wcpcpy (Depends-on): Add extensions.
19545         * modules/wcpncpy (Depends-on): Likewise.
19546         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19547         systems.
19548         * doc/posix-functions/wcpncpy.texi: Likewise.
19549         * doc/posix-functions/wcwidth.texi: Likewise.
19550
19551 2011-03-31  Eric Blake  <eblake@redhat.com>
19552
19553         nonblocking: fix mingw test failures
19554         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19555         non-blocking flag on regular file.
19556         (get_nonblocking_flag): Set errno on invalid fd.
19557         * tests/test-nonblocking.c (main): Avoid test failure on
19558         directories if fchdir is not active.
19559         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19560
19561 2011-03-31  Bruno Haible  <bruno@clisp.org>
19562
19563         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19564         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19565         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19566         Reported by Simon Josefsson <simon@josefsson.org>.
19567
19568 2011-03-31  Bruno Haible  <bruno@clisp.org>
19569         and Eric Blake  <eblake@redhat.com>
19570
19571         nonblocking: new module
19572         * modules/nonblocking: New module.
19573         * modules/nonblocking-tests: Likewise.
19574         * lib/nonblocking.h: New file.
19575         * lib/nonblocking.c: Likewise.
19576         * tests/test-nonblocking.c: New test.
19577         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19578
19579 2011-03-30  Bruno Haible  <bruno@clisp.org>
19580
19581         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19582         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19583         instead of 'printf' format for GCC >= 4.4.
19584         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19585         (fprintf, printf, vfprintf, vprintf): Declare with
19586         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19587         the system's vfprintf() function.
19588         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19589
19590 2011-03-30  Eric Blake  <eblake@redhat.com>
19591
19592         passfd: fix scoping bug
19593         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19594         before sendmsg/recvmsg.
19595
19596         passfd: standardize coding conventions
19597         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19598         can be learned at compile time.
19599         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19600         ifdefs.
19601         (sendfd, recvfd): Follow gnulib code conventions.
19602
19603         passfd: fix incorrect sendmsg arguments
19604         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19605         incorrect msg_controllen value.
19606         * modules/passfd-tests (Depends-on): Check for alarm.
19607         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19608         Reported by Bastien ROUCARIES.
19609
19610 2011-03-30  Bruno Haible  <bruno@clisp.org>
19611
19612         c-strcasestr: Relicense under LGPLv2+.
19613         * modules/c-strcasestr (License): Change to LGPLv2+.
19614         Requested by Eric Blake, for libvirt.
19615
19616 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19617
19618         * users.txt: Add libidn2.  Fix libtasn1 link.
19619
19620 2011-03-30  Jim Meyering  <meyering@redhat.com>
19621
19622         tests: readlink* ("",... fails with EINVAL on newer kernels
19623         readlink and readlinkat have typically failed with ENOENT for
19624         the invalid, empty file name,  "".  However, with the advent
19625         of linux-2.6.39, they fail with EINVAL.
19626         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19627         when operating on the empty file name.
19628         * tests/test-readlink.h (test_readlink): Likewise.
19629
19630 2011-03-29  Bruno Haible  <bruno@clisp.org>
19631
19632         Relicense some modules under LGPLv2+, for libidn2.
19633         * modules/array-mergesort (License): Change to LGPLv2+.
19634         * modules/c-strcaseeq (License): Likewise.
19635         * modules/striconveh (License): Likewise.
19636         * modules/striconveha (License): Likewise.
19637         * modules/uniconv/base (License): Likewise.
19638         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19639         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19640         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19641         * modules/unictype/base (License): Likewise.
19642         * modules/unictype/bidiclass-of (License): Likewise.
19643         * modules/unictype/category-M (License): Likewise.
19644         * modules/unictype/category-none (License): Likewise.
19645         * modules/unictype/category-of (License): Likewise.
19646         * modules/unictype/category-test (License): Likewise.
19647         * modules/unictype/category-test-withtable (License): Likewise.
19648         * modules/unictype/combining-class (License): Likewise.
19649         * modules/unictype/joiningtype-of (License): Likewise.
19650         * modules/unictype/scripts (License): Likewise.
19651         * modules/uninorm/base (License): Likewise.
19652         * modules/uninorm/canonical-decomposition (License): Likewise.
19653         * modules/uninorm/composition (License): Likewise.
19654         * modules/uninorm/decompose-internal (License): Likewise.
19655         * modules/uninorm/decomposition-table (License): Likewise.
19656         * modules/uninorm/nfc (License): Likewise.
19657         * modules/uninorm/nfd (License): Likewise.
19658         * modules/uninorm/u32-normalize (License): Likewise.
19659         * modules/unistr/base (License): Likewise.
19660         * modules/unistr/u32-cpy (License): Likewise.
19661         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19662         * modules/unistr/u32-to-u8 (License): Likewise.
19663         * modules/unistr/u32-uctomb (License): Likewise.
19664         * modules/unistr/u8-check (License): Likewise.
19665         * modules/unistr/u8-mblen (License): Likewise.
19666         * modules/unistr/u8-mbtouc (License): Likewise.
19667         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19668         * modules/unistr/u8-mbtoucr (License): Likewise.
19669         * modules/unistr/u8-prev (License): Likewise.
19670         * modules/unistr/u8-strlen (License): Likewise.
19671         * modules/unistr/u8-to-u32 (License): Likewise.
19672         * modules/unistr/u8-uctomb (License): Likewise.
19673         * modules/unitypes (License): Likewise.
19674         Requested by Simon Josefsson.
19675
19676 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19677
19678         lib-symbol-visibility: Add a notice.
19679         * modules/lib-symbol-visibility (Notice): New field.
19680
19681 2011-03-29  Bruno Haible  <bruno@clisp.org>
19682
19683         getaddrinfo: Doc fix.
19684         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19685         section "fixed in Gnulib".
19686
19687 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19688
19689         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19690         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19691
19692 2011-03-26  Bruno Haible  <bruno@clisp.org>
19693
19694         unictype/property-byname: Reduce the number of load-time relocations.
19695         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19696         (UC_PROPERTY_INDEX_*): New enumeration values.
19697         (uc_property_byname): Convert an index from the lookup table to an
19698         uc_property_t.
19699         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19700         values.
19701
19702 2011-03-26  Bruno Haible  <bruno@clisp.org>
19703
19704         unictype/property-byname: Allow omitted word separators and aliases.
19705         * lib/unictype/pr_byname.gperf: Add property names without word
19706         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19707         for 'space'.
19708
19709 2011-03-26  Bruno Haible  <bruno@clisp.org>
19710
19711         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19712         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19713         also hyphens to space.
19714         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19715         without spaces.
19716         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19717
19718 2011-03-26  Bruno Haible  <bruno@clisp.org>
19719
19720         unictype/joiningtype-byname: Recognize long names as well.
19721         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19722         a long name.
19723         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19724         unictype/joiningtype_byname.h.
19725         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19726         * lib/unictype/joiningtype_byname.gperf: New file.
19727         * modules/unictype/joiningtype-byname (Files): Add
19728         lib/unictype/joiningtype_byname.gperf.
19729         (Depends-on): Add gperf.
19730         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19731         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19732         long names.
19733
19734         Tests for module 'unictype/joiningtype-longname'.
19735         * modules/unictype/joiningtype-longname-tests: New file.
19736         * tests/unictype/test-joiningtype_longname.c: New file.
19737
19738         New module 'unictype/joiningtype-longname'.
19739         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19740         * lib/unictype/joiningtype_longname.c: New file.
19741         * modules/unictype/joiningtype-longname: New file.
19742         * modules/unictype/joiningtype-all (Depends-on): Add
19743         unictype/joiningtype-longname.
19744
19745 2011-03-26  Bruno Haible  <bruno@clisp.org>
19746
19747         unictype/bidiclass-byname: Recognize long names as well.
19748         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19749         name.
19750         * lib/unictype/bidi_byname.c: Include <string.h>,
19751         unictype/bidi_byname.h.
19752         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19753         * lib/unictype/bidi_byname.gperf: New file.
19754         * modules/unictype/bidiclass-byname (Files): Add
19755         lib/unictype/bidi_byname.gperf.
19756         (Depends-on): Add gperf.
19757         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19758         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19759         long names.
19760
19761         Tests for module 'unictype/bidiclass-longname'.
19762         * modules/unictype/bidiclass-longname-tests: New file.
19763         * tests/unictype/test-bidi_longname.c: New file.
19764
19765         New module 'unictype/bidiclass-longname'.
19766         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19767         * lib/unictype/bidi_longname.c: New file.
19768         * modules/unictype/bidiclass-longname: New file.
19769         * modules/unictype/bidiclass-all (Depends-on): Add
19770         unictype/bidiclass-longname.
19771
19772 2011-03-26  Bruno Haible  <bruno@clisp.org>
19773
19774         unictype/bidi*: Rename modules.
19775         * modules/unictype/bidiclass-all: Renamed from
19776         modules/unictype/bidicategory-all.
19777         * modules/unictype/bidiclass-name: Renamed from
19778         modules/unictype/bidiclass-name.
19779         (Description): Update.
19780         * modules/unictype/bidiclass-name-tests: Renamed from
19781         modules/unictype/bidicategory-name-tests.
19782         * modules/unictype/bidiclass-byname: Renamed from
19783         modules/unictype/bidicategory-byname.
19784         (Description): Update.
19785         * modules/unictype/bidiclass-byname-tests: Renamed from
19786         modules/unictype/bidicategory-byname-tests.
19787         * modules/unictype/bidiclass-of: Renamed from
19788         modules/unictype/bidicategory-of.
19789         (Description): Update.
19790         * modules/unictype/bidiclass-of-tests: Renamed from
19791         modules/unictype/bidicategory-of-tests.
19792         * modules/unictype/bidiclass-test: Renamed from
19793         modules/unictype/bidicategory-test.
19794         (Description): Update.
19795         * modules/unictype/bidiclass-test-tests: Renamed from
19796         modules/unictype/bidicategory-test-tests.
19797         * modules/unictype/bidicategory-all: New file, a simple redirection.
19798         * modules/unictype/bidicategory-name: Likewise.
19799         * modules/unictype/bidicategory-byname: Likewise.
19800         * modules/unictype/bidicategory-of: Likewise.
19801         * modules/unictype/bidicategory-test: Likewise.
19802         * modules/unictype/property-bidi-* (Dependencies): Update.
19803         * lib/unictype/bidi_*.c: Update comment.
19804
19805 2011-03-26  Bruno Haible  <bruno@clisp.org>
19806
19807         unictype/bidi*: Rename functions, part 2.
19808         * modules/unictype/bidicategory-name (configure.ac): Update required
19809         libunistring version.
19810         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19811
19812 2011-03-25  Bruno Haible  <bruno@clisp.org>
19813
19814         New module 'unictype/combining-class-all'.
19815         * modules/unictype/combining-class-all: New file.
19816
19817         Tests for module 'unictype/combining-class-byname'.
19818         * modules/unictype/combining-class-byname-tests: New file.
19819         * tests/unictype/test-combiningclass_byname.c: New file.
19820
19821         New module 'unictype/combining-class-byname'.
19822         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19823         * lib/unictype/combiningclass_byname.c: New file.
19824         * lib/unictype/combiningclass_byname.gperf: New file.
19825         * modules/unictype/combining-class-byname: New file.
19826
19827         Tests for module 'unictype/combining-class-longname'.
19828         * modules/unictype/combining-class-longname-tests: New file.
19829         * tests/unictype/test-combiningclass_longname.c: New file.
19830
19831         New module 'unictype/combining-class-longname'.
19832         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19833         * lib/unictype/combiningclass_longname.c: New file.
19834         * modules/unictype/combining-class-longname: New file.
19835
19836         Tests for module 'unictype/combining-class-name'.
19837         * modules/unictype/combining-class-name-tests: New file.
19838         * tests/unictype/test-combiningclass_name.c: New file.
19839
19840         New module 'unictype/combining-class-name'.
19841         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19842         * lib/unictype/combiningclass_name.c: New file.
19843         * modules/unictype/combining-class-name: New file.
19844
19845 2011-03-25  Bruno Haible  <bruno@clisp.org>
19846
19847         unictype/combining-class: Rename source files.
19848         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19849         of unictype/combining.h.
19850         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19851         Update.
19852         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19853         * modules/unictype/combining-class (Description): Fix.
19854         (Files, Makefile.am): Update.
19855         * tests/unictype/test-combiningclass.c: Renamed from
19856         tests/unictype/test-combining.c.
19857         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19858
19859 2011-03-25  Bruno Haible  <bruno@clisp.org>
19860
19861         unictype: Update list of canonical combining classes.
19862         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19863
19864 2011-03-25  Bruno Haible  <bruno@clisp.org>
19865
19866         unictype/category-byname: Recognize long names as well.
19867         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19868         a long name.
19869         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19870         unictype/categ_byname.h.
19871         (UC_CATEGORY_INDEX_*): New enumeration values.
19872         (uc_general_category_byname): Use uc_general_category_lookup and
19873         convert from index to value.
19874         * lib/unictype/categ_byname.gperf: New file.
19875         * modules/unictype/category-byname (Files): Add
19876         lib/unictype/categ_byname.gperf.
19877         (Depends-on): Add gperf.
19878         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19879         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19880         long names.
19881
19882         Tests for module 'unictype/category-longname'.
19883         * modules/unictype/category-longname-tests: New file.
19884         * tests/unictype/test-categ_longname.c: New file.
19885
19886         New module 'unictype/category-longname'.
19887         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19888         * lib/unictype/categ_longname.c: New file.
19889         * modules/unictype/category-longname: New file.
19890         * modules/unictype/category-all (Depends-on): Add it.
19891
19892 2011-03-25  Bruno Haible  <bruno@clisp.org>
19893
19894         Tests for module 'unictype/category-LC'.
19895         * modules/unictype/category-LC-tests: New file.
19896         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19897
19898         New module 'unictype/category-LC'.
19899         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19900         (UC_CATEGORY_LC): New declaration.
19901         (UC_CASED_LETTER): New macro.
19902         * lib/gen-uni-tables.c (is_category_LC): New function.
19903         (output_categories): Also handle category LC.
19904         (UC_CATEGORY_MASK_LC): New enumeration value.
19905         (general_category_byname): Also handle category LC.
19906         * lib/unictype/categ_LC.c: New file.
19907         * lib/unictype/categ_LC.h: New file, automatically generated.
19908         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19909         category LC.
19910         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19911         * modules/unictype/category-LC: New file.
19912         * modules/unictype/category-byname (Depends-on): Add
19913         unictype/category-LC.
19914         * modules/unictype/category-all (Depends-on): Likewise.
19915
19916 2011-03-25  Eric Blake  <eblake@redhat.com>
19917
19918         xmalloc: revert yesterday's regression
19919         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19920         realloc's underlying behavior (allowing allocation of zero-size
19921         objects, especially if malloc-gnu is also in use).
19922
19923 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19924
19925         maint.mk: add missing version to VC-tag
19926         * top/maint.mk: git tag was missing actual tag name; add it.
19927
19928         valgrind: do leak checking, and exit with code 1 on error (not 0)
19929         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19930         to VALGRIND.
19931
19932 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19933
19934         posix-modules: say what it does.
19935         * posix-modules: Add a line to the --help output saying what it does.
19936
19937 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19938
19939         xmalloc: Do not leak if underlying realloc is C99 compatible.
19940         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19941         This avoids a leak on C99-based systems.  See
19942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19943
19944 2011-03-24  Eric Blake  <eblake@redhat.com>
19945
19946         realloc: document portability problem
19947         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19948         passing 0 size to realloc.
19949
19950 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19951
19952         doc: update users.txt
19953         * users.txt: Add cvsps, tmpwatch
19954
19955 2011-03-23  Matt Rice  <ratmice@gmail.com>
19956
19957         doc: update users.txt
19958         * users.txt: Add gdb.
19959
19960 2011-03-23  Jim Meyering  <meyering@redhat.com>
19961
19962         doc: update users.txt
19963         Looking through matches up to the following URL (there are still
19964         several more pages), I found several projects that use gnulib:
19965         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19966         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19967         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19968
19969 2011-03-22  Bruno Haible  <bruno@clisp.org>
19970
19971         unictype/bidi*: Rename functions.
19972         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19973         uc_bidi_class, uc_is_bidi_class): New declarations.
19974         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19975         uc_bidi_category_byname.
19976         (uc_bidi_category_byname): New function.
19977         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19978         u_bidi_category_name.
19979         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19980         (uc_bidi_category_name): New function.
19981         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19982         uc_bidi_category.
19983         (uc_bidi_category): New function.
19984         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19985         uc_is_bidi_category. Invoke uc_bidi_class.
19986         (uc_is_bidi_category): New function.
19987         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19988         instead of uc_bidi_category_byname.
19989         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19990         instead of uc_bidi_category_name.
19991         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19992         uc_bidi_category.
19993         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19994         instead of uc_is_bidi_category.
19995
19996 2011-03-21  Bruno Haible  <bruno@clisp.org>
19997
19998         New module 'unictype/joininggroup-all'.
19999         * modules/unictype/joininggroup-all: New file.
20000
20001         Tests for module 'unictype/joininggroup-of'.
20002         * modules/unictype/joininggroup-of-tests: New file.
20003         * tests/unictype/test-joininggroup_of.c: New file.
20004         * tests/unictype/test-joininggroup_of.h: New file, automatically
20005         generated by gen-uni-tables.
20006
20007         New module 'unictype/joininggroup-of'.
20008         * modules/unictype/joininggroup-of: New file.
20009         * lib/unictype/joininggroup_of.c: New file.
20010         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20011         gen-uni-tables.
20012
20013         Tests for module 'unictype/joininggroup-byname'.
20014         * modules/unictype/joininggroup-byname-tests: New file.
20015         * tests/unictype/test-joininggroup_byname.c: New file.
20016
20017         New module 'unictype/joininggroup-byname'.
20018         * modules/unictype/joininggroup-byname: New file.
20019         * lib/unictype/joininggroup_byname.c: New file.
20020         * lib/unictype/joininggroup_byname.gperf: New file.
20021
20022         Tests for module 'unictype/joininggroup-name'.
20023         * modules/unictype/joininggroup-name-tests: New file.
20024         * tests/unictype/test-joininggroup_name.c: New file.
20025
20026         New module 'unictype/joininggroup-name'.
20027         * modules/unictype/joininggroup-name: New file.
20028         * lib/unictype/joininggroup_name.c: New file.
20029         * lib/unictype/joininggroup_name.h: New file.
20030
20031         New module 'unictype/joiningtype-all'.
20032         * modules/unictype/joiningtype-all: New file.
20033
20034         Tests for module 'unictype/joiningtype-of'.
20035         * modules/unictype/joiningtype-of-tests: New file.
20036         * tests/unictype/test-joiningtype_of.c: New file.
20037         * tests/unictype/test-joiningtype_of.h: New file, automatically
20038         generated by gen-uni-tables.
20039
20040         New module 'unictype/joiningtype-of'.
20041         * modules/unictype/joiningtype-of: New file.
20042         * lib/unictype/joiningtype_of.c: New file.
20043         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20044         gen-uni-tables.
20045
20046         Tests for module 'unictype/joiningtype-byname'.
20047         * modules/unictype/joiningtype-byname-tests: New file.
20048         * tests/unictype/test-joiningtype_byname.c: New file.
20049
20050         New module 'unictype/joiningtype-byname'.
20051         * modules/unictype/joiningtype-byname: New file.
20052         * lib/unictype/joiningtype_byname.c: New file.
20053
20054         Tests for module 'unictype/joiningtype-name'.
20055         * modules/unictype/joiningtype-name-tests: New file.
20056         * tests/unictype/test-joiningtype_name.c: New file.
20057
20058         New module 'unictype/joiningtype-name'.
20059         * modules/unictype/joiningtype-name: New file.
20060         * lib/unictype/joiningtype_name.c: New file.
20061
20062         unictype: Add support for Arabic shaping properties.
20063         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20064         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20065         declarations.
20066         (UC_JOINING_GROUP_*): New enumeration values.
20067         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20068         declarations.
20069         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20070         (unicode_joining_type): New variable.
20071         (UC_JOINING_GROUP_*): New enumeration values.
20072         (unicode_joining_group): New variable.
20073         (fill_arabicshaping, joining_type_as_c_identifier,
20074         output_joining_type_test, output_joining_type,
20075         joining_group_as_c_identifier, output_joining_group_test,
20076         output_joining_group): New functions.
20077         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20078         fill_arabicshaping and output_joining_type_test, output_joining_type,
20079         output_joining_group_test, output_joining_group.
20080         Reported by Simon Josefsson.
20081
20082 2011-03-21  Jim Meyering  <meyering@redhat.com>
20083
20084         strftime: fix a bug in yesterday's change
20085         * lib/strftime.c (add): Accommodate width's initial value of -1.
20086         Otherwise, nstrftime would copy uninitialized data into
20087         the result buffer.
20088
20089 2011-03-21  Jim Meyering  <meyering@redhat.com>
20090
20091         tests: add strftime-tests module
20092         * tests/test-strftime.c: New file.
20093         * modules/strftime-tests: New module.
20094
20095 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20096
20097         strftime: don't assume a byte count fits in 'int'
20098         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20099         found this problem by static analysis, using gcc -Wstrict-overflow
20100         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20101         on an integer overflow having undefined behavior, but it turns out
20102         that the argument is a size, which might not fit in 'int' anyway,
20103
20104 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20105
20106         stdio: don't require ignore_value around fwrite
20107
20108         This patch works around libc bug 11959
20109         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20110         Without this patch, applications must often write
20111         ignore_value (fwrite (...)) even though the ignore_value is
20112         not helpful here.  It's common to write many objects, using
20113         fwrite/printf/etc., and then use ferror to detect output error.
20114
20115         I considered making this patch optional, but decided against it,
20116         because libc is obviously being inconsistent here: there is no
20117         reason libc should insist that user code must inspect fwrite
20118         return's value without also insisting that it inspect printf's,
20119         putchar's, etc.  If user code wants to have a strict style where
20120         all these functions' values are checked (so that ferror need not
20121         be checked), we could add support for that style in a new gnulib
20122         module, but in the meantime it's better to be consistent and to
20123         support common usage.
20124
20125         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20126         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20127         that we are compiling in checking mode, and if not C++, and
20128         if not already wrapping fwrite for some other reason.
20129         (fwrite): #define to rpl_fwrite if the latter is defined.
20130
20131 2011-03-20  Bruno Haible  <bruno@clisp.org>
20132
20133         verror: Fix compilation error introduced on 2011-02-13.
20134         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20135         instead of __attribute__.
20136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20137
20138 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20139             Bruno Haible  <bruno@clisp.org>
20140
20141         socklen: do not depend on sys_socket
20142         While trying to modify Emacs to use gnulib's socklen module,
20143         I discovered a circular dependency: socklen depends on sys_socket
20144         and vice versa.  Emacs can use socklen, but it does not need
20145         sys_socket because it has its own substitute for sys/socket.h.
20146         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20147         gl_TYPE_SOCKLEN_T.
20148         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20149         gl_PREREQ_SYS_H_SOCKET.
20150         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20151         gl_PREREQ_SYS_H_SOCKET.
20152         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20153         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20154         * modules/socklen (Depends-on): Do not depend on sys_socket.
20155         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20156
20157 2011-03-20  Jim Meyering  <meyering@redhat.com>
20158
20159         maint.mk: sort file names *after* new transformation
20160         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20161         prefix would have led to an unwarranted failure in GNU parted.
20162         Sort after that transformation.
20163
20164 2011-03-19  Jim Meyering  <meyering@redhat.com>
20165
20166         maint.mk: fix po-file syntax-check rule
20167         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20168         Patch by Bruno Haible.
20169
20170 2011-03-19  Bruno Haible  <bruno@clisp.org>
20171
20172         socklen: Update comment.
20173         * m4/socklen.m4: Update comment about platforms.
20174
20175 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20176             Bruno Haible  <bruno@clisp.org>
20177
20178         inet_ntop, inet_pton: Simplify.
20179         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20180         documented to provide socklen_t and we already depend on sys_socket.
20181         * modules/inet_pton (Depends-on): Likewise.
20182         * lib/arpa_inet.in.h: Adjust comment.
20183
20184 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20185             Bruno Haible  <bruno@clisp.org>
20186
20187         netdb: Simplify.
20188         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20189         documented to provide socklen_t and we already depend on sys_socket.
20190         * lib/netdb.in.h: Adjust comment.
20191
20192 2011-03-19  Bruno Haible  <bruno@clisp.org>
20193
20194         sys_socket, netdb: Document problem with socklen_t.
20195         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20196         platforms.
20197         * doc/posix-headers/netdb.texi: Likewise.
20198
20199 2011-03-18  Eric Blake  <eblake@redhat.com>
20200
20201         maint.mk: let po check work in VPATH build
20202         * top/maint.mk (po_file): Allow cfg.mk override.
20203         (sc_po_check): Allow VPATH use.
20204         Reported by Jiri Denemark.
20205
20206 2011-03-16  Jim Meyering  <meyering@redhat.com>
20207
20208         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20209         Before, you would have had to create one .x-sc_ file per rule in order
20210         to exempt offending files.  Now, you may instead use a Make variable --
20211         usually defined in cfg.mk -- whose name identifies the affected rule.
20212         * top/maint.mk (_sc_excl): Define.
20213         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20214         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20215
20216 2011-03-13  Bruno Haible  <bruno@clisp.org>
20217
20218         ignore-value tests: Avoid warnings.
20219         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20220         empty for gcc < 3.4.
20221
20222 2011-03-13  Bruno Haible  <bruno@clisp.org>
20223
20224         passfd: Fix link error on Solaris.
20225         * modules/passfd (Description): Correct.
20226         (Depends-on): Add socketlib.
20227         (Link): New section.
20228         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20229
20230 2011-03-13  Bruno Haible  <bruno@clisp.org>
20231
20232         passfd: Fix link error on AIX 5.2.
20233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20234
20235 2011-03-13  Bruno Haible  <bruno@clisp.org>
20236
20237         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20238         * lib/sys_socket.in.h: Include <stddef.h>.
20239         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20240         CMSG_FIRSTHDR. Remove unused variable.
20241
20242 2011-03-13  Bruno Haible  <bruno@clisp.org>
20243
20244         passfd: Fix compilation error on OpenBSD.
20245         * lib/passfd.c: Include <sys/uio.h>.
20246
20247 2011-03-13  Bruno Haible  <bruno@clisp.org>
20248
20249         passfd test: Fix warnings.
20250         * tests/test-passfd.c: Include <sys/wait.h>.
20251         (main): Fix typo.
20252
20253 2011-03-13  Bruno Haible  <bruno@clisp.org>
20254
20255         passfd module, part 4, tweaks.
20256         * tests/test-passfd.c: Reorder includes.
20257         (main): Fix perror and printf calls.
20258
20259 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20260
20261         passfd module, part 4.
20262         * modules/passfd-tests: New file.
20263         * tests/test-passfd.c: New file.
20264
20265 2011-03-13  Jim Meyering  <meyering@redhat.com>
20266
20267         Makefile: rely on GNU make; derive syntax-check rule names
20268         Rather than requiring that each sc_ rule be listed as a dependent
20269         of "check", use features of GNU make to derive the list.
20270         * Makefile (syntax-check-rules): Define.
20271         (check): Depend on the new variable, not the hard-coded list.
20272
20273 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20274             Bruno Haible  <bruno@clisp.org>
20275
20276         passfd module, part 3.
20277         * lib/passfd.h (recvfd): Add a flags argument.
20278         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20279         (recvfd): Add a flags argument.
20280         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20281         exists.
20282         * modules/passfd (Depends-on): Add cloexec.
20283         Suggested by Eric Blake.
20284
20285 2011-03-13  Bruno Haible  <bruno@clisp.org>
20286
20287         passfd module, part 2, tweaks.
20288         * modules/passfd (Files): Reorder.
20289         (Depends-on): Remove errno.
20290         (Include): Remove <sys/socket.h>, <sys/un.h>.
20291         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20292         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20293         specification header. Include <sys/socket.h> always. Don't include
20294         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20295         (sendfd): Clarify that it sets errno when it fails.
20296         (recvfd): Fix specification.
20297
20298 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20299
20300         passfd module, part 2.
20301         * modules/passfd: New file.
20302         * lib/passfd.h: New file.
20303         * lib/passfd.c: New file.
20304
20305 2011-03-12  Bruno Haible  <bruno@clisp.org>
20306
20307         wcswidth, mbswidth: Avoid integer overflow.
20308         * lib/wcswidth.c: Include <limits.h>.
20309         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20310         * lib/mbswidth.c: Include <limits.h>.
20311         (mbsnwidth): Avoid 'int' overflow.
20312         Reported by Jim Meyering.
20313
20314 2011-03-12  Bruno Haible  <bruno@clisp.org>
20315
20316         futimens, utimensat: Avoid endless recursion on Solaris 10.
20317         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20318         Solaris.
20319         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20320         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20321
20322 2011-03-11  Jim Meyering  <meyering@redhat.com>
20323
20324         maint.mk: relax a regexp to accommodate other formatting styles
20325         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20326         between "ngettext" and the following "(".
20327
20328 2011-03-11  Pádraig Brady <P@draigBrady.com>
20329
20330         maint.mk: suppress a false positive warning
20331         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20332         diagnostics are marked with ngettext.
20333
20334 2011-03-10  Eric Blake  <eblake@redhat.com>
20335
20336         wchar: add explicit dependencies, for Tru64
20337         * modules/mbmemcasecoll (Depends-on): Add wchar.
20338         * modules/mbtowc (Depends-on): Likewise.
20339         * modules/vasnprintf (Depends-on): Likewise.
20340         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20341         * modules/wctomb (Depends-on): Likewise.
20342         Reported by Peter O'Gorman.
20343
20344 2011-03-08  Bruno Haible  <bruno@clisp.org>
20345
20346         passfd module, part 1, tweaks.
20347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20348         Improve indentation. Improve AC_MSG_CHECKING messages.
20349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20350         gl_SOCKET_FAMILIES.
20351
20352 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20353
20354         passfd module, part 1.
20355         * m4/afunix.m4: New file.
20356         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20357         sockets.
20358
20359 2011-03-08  Bruno Haible  <bruno@clisp.org>
20360
20361         regex-quote: New API.
20362         * lib/regex-quote.h: Include <stdbool.h>.
20363         (struct regex_quote_spec): New type.
20364         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20365         New declarations.
20366         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20367         'const struct regex_quote_spec *' argument.
20368         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20369         (pcre_special): New constant.
20370         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20371         New functions.
20372         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20373         'const struct regex_quote_spec *' argument.
20374         * modules/regex-quote (Depends-on): Add stdbool.
20375         * tests/test-regex-quote.c (check): Update for new API. Add test for
20376         anchored results.
20377         * NEWS: Mention the API change.
20378         Reported by Reuben Thomas and Eric Blake.
20379
20380 2011-03-06  Bruno Haible  <bruno@clisp.org>
20381
20382         regex-quote: Fix creation of POSIX extended regular expressions.
20383         * lib/regex-quote.c (ere_special): Add grouping and alternation
20384         operators.
20385
20386 2011-03-05  Bruno Haible  <bruno@clisp.org>
20387
20388         doc: Improve doc regarding autopoint vs. gnulib.
20389         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20390         disable autopoint while running autoreconf.
20391         Suggested by Ralf Wildenhues.
20392
20393 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20394
20395         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20396         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20397
20398 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20399
20400         parse-duration: remove xalloc.h dependency
20401         * lib/parse-duration.c (parse_period): handle NULL return from
20402         strdup instead of calling xstrdup().
20403         * modules/parse-duration: remove "xalloc" dependency
20404
20405 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20406
20407         bootstrap: honor m4_base when running aclocal
20408         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20409
20410 2011-03-02  Jim Meyering  <meyering@redhat.com>
20411
20412         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20413         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20414         on request from Matt Booth.
20415
20416 2011-03-01  Eric Blake  <eblake@redhat.com>
20417
20418         test-link: work on Hurd
20419         * tests/test-link.h (test_link): Hurd rejects linking directories
20420         with EISDIR instead of the POSIX-mandated EPERM.
20421
20422 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         stdio: simplify by moving files to printf-posix, sigpipe
20425         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20426         since this symbol is needed only if printf is replaced.
20427         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20428         Require gl_ASM_SYMBOL_PREFIX.
20429         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20430         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20431         (Depends-on): Add 'raise'.
20432         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20433         * modules/stdio (Files): Remove lib/stdio-write.c,
20434         m4/asm-underscore.m4.
20435         (Depends-on): Remove 'raise'.
20436
20437         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20438         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20439         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20440         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20441
20442 2011-02-28  Bruno Haible  <bruno@clisp.org>
20443
20444         localcharset: Assume ANSI C behaviour of free().
20445         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20446         calling free().
20447         Suggested by Simon Josefsson <simon@josefsson.org>.
20448
20449 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20450             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20451             Bruno Haible  <bruno@clisp.org>  (tiny change)
20452
20453         On Cygwin, use /proc file system instead of win32 API.
20454         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20455         Win32 file names.
20456         (DllMain): Simplify by removing Cygwin specific code.
20457         (find_shared_library_fullname): Use Linux specific implementation also
20458         for Cygwin.
20459         (get_shared_library_fullname): Update accordingly.
20460         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20461         Win32 file names.
20462         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20463         Cygwin specific code.
20464
20465 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20466             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20467
20468         Fix OpenMP flag detection for various Fortran compilers.
20469         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20470         OpenMP-conditional compilation construct, to force compile
20471         failure with missing OpenMP flag.
20472         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20473
20474 2011-02-25  Eric Blake  <eblake@redhat.com>
20475
20476         strstr: expand test coverage
20477         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20478         compilation.
20479         * tests/test-memmem.c (main): Duplicate tests.
20480         * tests/test-strcasestr.c (main): Likewise.
20481         * tests/test-c-strcasestr.c (main): Likewise.
20482
20483 2011-02-25  Jim Meyering  <meyering@redhat.com>
20484
20485         maint.mk: detect missing-NL-at-EOF, too
20486         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20487         it also detects when a file lacks a newline at EOF.
20488         (require_exactly_one_NL_at_EOF_): Renamed from
20489         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20490         since people may well have .x-sc_... file names tied to the
20491         existing name.  Suggested by Eric Blake.
20492
20493 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20494
20495         dirname: move m4/dos.m4 functionality into lib/dosname.h
20496
20497         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20498         extracts symbols from it, puts them into config.h; but it's much
20499         easier to use the symbols directly.  filename.h already does this,
20500         but it disagrees with dos.m4 in some respects.  This patch
20501         introduces a different include file dosname.h that packages up
20502         dos.m4, and then later we can work on merging filename.h and
20503         dosname.h.  Applications that need only the easy-to-configure
20504         symbols should consider including dosname.h rather than dirname.h.
20505         * NEWS: Mention incompatible changes.
20506         * m4/dos.m4: Remove.
20507         * lib/dosname.h, modules/dosname: New files.
20508         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20509         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20510         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20511         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20512         Include dosname.h, not dirname.h.
20513         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20514         Include dosname.h, for definitions of symbols like ISSLASH
20515         that used to be in config.h.
20516         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20517         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20518         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20519         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20520         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20521         * modules/rmdir (Files): Likewise.
20522         * modules/stat (Files): Likewise.
20523         * modules/unlink (Files): Likewise.
20524         * modules/dirname-lgpl (Depends-on): Add dosname.
20525         * modules/lstat (Depends-on): Likewise.
20526         * modules/openat (Depends-on): Likewise.
20527         * modules/rmdir (Depends-on): Likewise.
20528         * modules/savewd (Depends-on): Likewise.
20529         * modules/stat (Depends-on): Likewise.
20530         * modules/unlink (Depends-on): Likewise.
20531         * modules/openat (Depends-on): Remove dirname-lgpl.
20532         * modules/savewd (Depends-on): Likewise.
20533         * tests/test-dirname.c: Do not use removed symbols like
20534         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20535         the remaining symbols, e.g., ISSLASH ('\\').
20536
20537 2011-02-25  Eric Blake  <eblake@redhat.com>
20538
20539         strstr: revert patches that introduced bug and pessimization
20540         * lib/str-two-way.h: Add another reference.
20541         (two_way_short_needle, two_way_long_needle): Revert changes from
20542         2011-02-24; they pessimize search speed.
20543         (critical_factorization): Partially revert changes from
20544         2010-06-22; they violate the requirement that the left half of the
20545         needle be smaller than the period of the needle.
20546
20547 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         filenamecat: remove unnecessary dependency on dirname-lgpl
20550         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20551         is no direct dependency, just an indirect one via filenamecat-lgpl.
20552
20553         remove: remove unnecessary use of m4/dos.m4
20554         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20555         * modules/remove (FILES): Remove m4/dos.m4.
20556
20557         * lib/openat-proc.c: Don't include dirname.h; not needed.
20558
20559         backupfile: remove unnecessary use of m4/dos.m4
20560         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20561         of its symbols are used by the backupfile code.  backupfile.c does
20562         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20563         for the rare case of programs that want all their backup file
20564         names to live within 8+3 limits, and dos.m4 doesn't address that.
20565         * modules/backupfile (Files): Remove m4/dos.m4.
20566
20567 2011-02-24  Jim Meyering  <meyering@redhat.com>
20568
20569         strstr: fix a bug whereby strstr would mistakenly return NULL
20570         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20571         in period calculation.
20572         (two_way_long_needle): Likewise.
20573         The original problem was reported by Mike Stump in
20574         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20575         Ralf Wildenhues provided the short needle and haystack.
20576         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20577         Add a more involved test to trigger the bug in two_way_long_needle.
20578
20579 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20580
20581         gnulib-tool: remove use of bold display in help screen
20582         * gnulib-tool (func_usage): Do not use bold display anymore in the
20583         help screen.  That was just meant to be a temporary emphasis for a
20584         backward-incompatible change.
20585
20586 2011-02-23  Bruno Haible  <bruno@clisp.org>
20587
20588         Fix misindentation of preprocessor directives.
20589         * lib/argp-namefrob.h: Reindent preprocessor directives.
20590         * lib/getopt_int.h (struct _getopt_data): Likewise.
20591         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20592         * lib/vasnprintf.c (decode_long_double): Likewise.
20593         * tests/test-argmatch.c: Insert blank lines, for clarity.
20594         * tests/test-exclude.c: Likewise.
20595
20596 2011-02-22  Bruno Haible  <bruno@clisp.org>
20597
20598         ioctl: Fix for MacOS X in 64-bit mode.
20599         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20600         value.
20601         Suggested by Eric Blake.
20602         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20603
20604 2011-02-22  Jim Meyering  <meyering@redhat.com>
20605
20606         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20607         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20608         in lib/.
20609
20610 2011-02-22  Eric Blake  <eblake@redhat.com>
20611
20612         maint: avoid any CDPATH issue
20613         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20614
20615         maint: adjust cpp indentation for my modules, as well
20616         * Makefile (sc_cpp_indent_check): Add my name.
20617         * lib/fbufmode.c: Filter through cppi.
20618         * lib/fpurge.c: Likewise.
20619         * lib/freadable.c: Likewise.
20620         * lib/freading.c: Likewise.
20621         * lib/fwritable.c: Likewise.
20622         * lib/fwriting.c: Likewise.
20623         * lib/sigaction.c: Likewise.
20624
20625 2011-02-22  Jim Meyering  <meyering@redhat.com>
20626
20627         maint: adjust cpp indentation to reflect nesting depth
20628         I.e., in a block of code that begins with an unnested "#if",
20629         put one space between the "#" in column 1 and following token.
20630         For example,
20631         -#include <sys/vfs.h>
20632         +# include <sys/vfs.h>
20633         Do this only in .c files that are part of a module I maintain.
20634         * lib/linkat.c: Filter through cppi.
20635         * lib/nanosleep.c: Likewise.
20636         * lib/openat.c: Likewise.
20637         * lib/openat-die.c: Likewise.
20638         * lib/dup3.c: Likewise.
20639         * lib/fchownat.c: Likewise.
20640         * lib/flock.c: Likewise.
20641         * lib/fsync.c: Likewise.
20642         * lib/fts.c: Likewise.
20643         * lib/getpass.c: Likewise.
20644         * lib/gettimeofday.c: Likewise.
20645         * lib/userspec.c: Likewise.
20646         * Makefile (sc_cpp_indent_check): New rule, to check this.
20647
20648 2011-02-22  Bruno Haible  <bruno@clisp.org>
20649
20650         New module 'wctomb'.
20651         * lib/stdlib.in.h (wctomb): New declaration.
20652         * lib/wctomb.c: New file.
20653         * lib/wctomb-impl.h: New file.
20654         * m4/wctomb.m4: New file.
20655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20656         REPLACE_WCTOMB.
20657         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20658         REPLACE_WCTOMB.
20659         * modules/wctomb: New file.
20660         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20661         * doc/posix-functions/wctomb.texi: Mention the new module.
20662         * modules/wctob (Depends-on): Add wctomb.
20663
20664 2011-02-22  Bruno Haible  <bruno@clisp.org>
20665
20666         New module 'mbtowc'.
20667         * lib/stdlib.in.h (mbtowc): New declaration.
20668         * lib/mbtowc.c: New file.
20669         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20670         * m4/mbtowc.m4: New file.
20671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20672         REPLACE_MBTOWC.
20673         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20674         REPLACE_MBTOWC.
20675         * modules/mbtowc: New file.
20676         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20677         * doc/posix-functions/mbtowc.texi: Mention the new module.
20678         * modules/btowc (Depends-on): Add mbtowc.
20679
20680 2011-02-22  Bruno Haible  <bruno@clisp.org>
20681
20682         wcrtomb: Add more tests for native Windows platforms.
20683         * tests/test-wcrtomb-w32-1.sh: New file.
20684         * tests/test-wcrtomb-w32-2.sh: New file.
20685         * tests/test-wcrtomb-w32-3.sh: New file.
20686         * tests/test-wcrtomb-w32-4.sh: New file.
20687         * tests/test-wcrtomb-w32-5.sh: New file.
20688         * tests/test-wcrtomb-w32.c: New file.
20689         * modules/wcrtomb-tests (Files): Add them.
20690         (Makefile.am): Arrange to run these tests.
20691         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20692         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20693
20694 2011-02-20  Bruno Haible  <bruno@clisp.org>
20695
20696         wcrtomb: Enhance test.
20697         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20698
20699 2011-02-20  Bruno Haible  <bruno@clisp.org>
20700
20701         mbrtowc: Tiny optimization.
20702         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20703
20704 2011-02-20  Jim Meyering  <meyering@redhat.com>
20705
20706         test-exclude.c: remove unmatched #endif
20707         * tests/test-exclude.c: Remove stray #endif, left over from
20708         the change of a week ago.
20709
20710 2011-02-19  Jim Meyering  <meyering@redhat.com>
20711
20712         git-version-gen: skip "-dirty" check when appropriate
20713         * build-aux/git-version-gen: Don't run any git commands when the
20714         version string comes from .tarball-version.  Prior to this, we
20715         would run git update-index --refresh even from a just-unpacked
20716         tarball directory, and that could affect a .git/ directory in a
20717         parent of the build directory.  Reported by Mike Frysinger.
20718
20719 2011-02-19  Bruno Haible  <bruno@clisp.org>
20720
20721         unictype/property-byname: Reduce the size of the 'data' segment.
20722         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20723
20724 2011-02-19  Bruno Haible  <bruno@clisp.org>
20725
20726         unictype/scripts: Reduce the size of the 'data' segment.
20727         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20728         '%pic'.
20729         * lib/unictype/scripts_byname.gperf: Regenerated.
20730
20731 2011-02-19  Bruno Haible  <bruno@clisp.org>
20732
20733         stdint: Update documentation.
20734         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20735
20736 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20737
20738         stdint: omit redundant check for wchar.h
20739         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20740         always tests whether wchar.h exists, so remove the now-redundant test.
20741
20742 2011-02-18  Bruno Haible  <bruno@clisp.org>
20743
20744         stdint: Cut dependency to module 'wchar'.
20745         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20746         include the necessary prerequisites.
20747         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20748         * modules/stdint (Depends-on): Remove wchar.
20749         (Makefile.am): Substitute HAVE_WCHAR_H.
20750         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20751
20752 2011-02-18  Eric Blake  <eblake@redhat.com>
20753
20754         longlong: skip, rather than fail, on cross-compilation
20755         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20756         when cross-compiling; regression from 2011-02-16.
20757
20758 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20759
20760         * NEWS: Mention 2011-02-08 change to stdlib.
20761
20762 2011-02-17  Bruno Haible  <bruno@clisp.org>
20763
20764         getloadavg: Add comments about platforms.
20765         * m4/getloadavg.m4: Add comment.
20766         * lib/getloadavg.c: Likewise.
20767
20768 2011-02-17  Bruno Haible  <bruno@clisp.org>
20769
20770         getloadavg: Fix link error on Solaris 2.6.
20771         * modules/getloadavg (Link): New section.
20772         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20773         linking test-getloadavg.
20774         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20775         getloadavg.
20776
20777 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20780         It was 'int', but this doesn't match the IRIX 6.5 manual.
20781         Suggested by Bruno Haible in
20782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20783
20784 2011-02-17  Bruno Haible  <bruno@clisp.org>
20785
20786         havelib: Fix comments.
20787         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20788         change.
20789
20790 2011-02-17  Bruno Haible  <bruno@clisp.org>
20791
20792         havelib: Update config.rpath.
20793         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20794
20795 2011-02-17  Bruno Haible  <bruno@clisp.org>
20796
20797         getloadavg test: Add some plausibility checks.
20798         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20799         is improbable.
20800
20801 2011-02-16  Eric Blake  <eblake@redhat.com>
20802
20803         maintainer-makefile: make syntax-check a no-op from tarballs
20804         * top/maint.mk (no-vc-detected): New rule.
20805         (local-checks-available): Use it to avoid hanging if someone tries
20806         'make syntax-check' from a tarball.  Also append to any non-syntax
20807         checks already defined in cfg.mk.
20808
20809 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20810
20811         longlong: tune, particularly for common case of c99
20812
20813         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20814         or running anything if c99, or if unsigned long long int does not
20815         work.  In either case, we know the answer without further tests.
20816         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20817         it at most once, and use its results for both long long int and
20818         unsigned long long int.  This is more likely to be efficient in
20819         the common case where the program wants to check for both long
20820         long int and unsigned long long int.
20821         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20822         since the answer is already known.
20823
20824 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20825
20826         getloadavg: set errno
20827         * lib/getloadavg.c: Set errno when returning -1.  If no other
20828         error number looks appropriate, set it to ENOSYS if the getloadavg
20829         looks like it can't possibly ever work, ENOTSUP otherwise.
20830         Suggested by Bruno Haible in
20831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20832
20833         getloadavg: trim unused parts and speed up 'configure'
20834         * NEWS: Document this.
20835         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20836         always compiled if getloadavg is absent.
20837         Move test code to ...
20838         * tests/test-getloadavg.c: New file, containing previous
20839         contents of test from lib/getloadavg.c.  It also contains
20840         suggestions by Bruno Haible in
20841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20842         * modules/getloadavg-tests: New file.
20843         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20844         Do tests in the same order as they're needed for getloadavg.c.
20845         Omit setgid-related tests that generate symbols KMEM_GROUP,
20846         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20847         Do only the tests that are needed to see whether the system has
20848         getloadavg, moving the other tests into ...
20849         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20850         NLIST_NAME_UNION; nobody should be using it.  Do not define
20851         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20852         relevant, as the user of this module shouldn't care how getloadavg
20853         is implemented.
20854
20855         getloadavg: omit unused var
20856         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20857
20858 2011-02-15  Jim Meyering  <meyering@redhat.com>
20859
20860         doc: update users.txt
20861         * users.txt: Update iwhd's URL.
20862
20863 2011-02-13  Bruno Haible  <bruno@clisp.org>
20864
20865         Consistent macro naming for macros that use GCC __attribute__.
20866         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20867         _ATTRIBUTE_NONNULL_.
20868         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20869         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20870         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20871         ATTRIBUTE_DEPRECATED.
20872         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20873         ATTRIBUTE_NORETURN.
20874         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20875         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20876         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20877         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20878         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20879         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20880         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20881         ATTRIBUTE_SENTINEL.
20882         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20883         ATTRIBUTE_RETURN_CHECK.
20884         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20885         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20886         ATTRIBUTE_NORETURN.
20887         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20888         Reported by Paul Eggert.
20889
20890 2011-02-13  Bruno Haible  <bruno@clisp.org>
20891
20892         Don't interfere with a program's definition of __attribute__.
20893         * lib/argp.h (__attribute__): Remove definition.
20894         (_GL_ATTRIBUTE_FORMAT): New macro.
20895         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20896         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20897         (_GL_ATTRIBUTE_FORMAT): New macro.
20898         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20899         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20900         GCC 3 or newer.
20901         * lib/error.h (__attribute__): Remove definition.
20902         (_GL_ATTRIBUTE_FORMAT): New macro.
20903         (error, error_at_line): Use it.
20904         * lib/hash.h (__attribute__): Remove definition.
20905         (ATTRIBUTE_WUR): Update definition. Define always.
20906         * lib/openat.h (__attribute__): Remove definition.
20907         (ATTRIBUTE_NORETURN): Update definition. Define always.
20908         * lib/sigpipe-die.h (__attribute__): Remove definition.
20909         (ATTRIBUTE_NORETURN): Update definition. Define always.
20910         * lib/vasnprintf.h (__attribute__): Remove definition.
20911         (_GL_ATTRIBUTE_FORMAT): New macro.
20912         (asnprintf, vasnprintf): Use it.
20913         * lib/xalloc.h (__attribute__): Remove definition.
20914         (ATTRIBUTE_NORETURN): Update definition. Define always.
20915         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20916         * lib/xmemdup0.h (__attribute__): Remove definition.
20917         (ATTRIBUTE_NORETURN): Update definition. Define always.
20918         * lib/xprintf.h (__attribute__): Remove definition.
20919         (_GL_ATTRIBUTE_FORMAT): New macro.
20920         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20921         * lib/xstrtol.h (__attribute__): Remove definition.
20922         (ATTRIBUTE_NORETURN): Update definition. Define always.
20923         * lib/xvasprintf.h (__attribute__): Remove definition.
20924         (_GL_ATTRIBUTE_FORMAT): New macro.
20925         (xasprintf, xvasprintf): Use it.
20926         * tests/test-argmatch.c (__attribute__): Remove definition.
20927         (ATTRIBUTE_NORETURN): Update definition. Define always.
20928         * tests/test-exclude.c (__attribute__): Remove definition.
20929         (ATTRIBUTE_NORETURN): Update definition. Define always.
20930         Reported by Paul Eggert.
20931
20932 2011-02-13  Bruno Haible  <bruno@clisp.org>
20933
20934         mbrtowc: Add more tests for native Windows platforms.
20935         * tests/test-mbrtowc-w32-1.sh: New file.
20936         * tests/test-mbrtowc-w32-2.sh: New file.
20937         * tests/test-mbrtowc-w32-3.sh: New file.
20938         * tests/test-mbrtowc-w32-4.sh: New file.
20939         * tests/test-mbrtowc-w32-5.sh: New file.
20940         * tests/test-mbrtowc-w32.c: New file.
20941         * modules/mbrtowc-tests (Files): Add them.
20942         (Makefile.am): Arrange to run these tests.
20943         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20944         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20945
20946 2011-02-13  Bruno Haible  <bruno@clisp.org>
20947
20948         mbrtowc: Work around native Windows bug.
20949         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20950         guess when no suitable locale for testing was found.
20951         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20952
20953 2011-02-13  Bruno Haible  <bruno@clisp.org>
20954
20955         mbsinit: Work around mingw bug.
20956         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20957         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20958         Windows.
20959         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20960
20961 2011-02-13  Bruno Haible  <bruno@clisp.org>
20962
20963         mbsinit: Don't crash for a NULL argument.
20964         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20965         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20966
20967 2011-02-13  Bruno Haible  <bruno@clisp.org>
20968
20969         Don't interfere with a program's definition of __attribute__.
20970         * lib/stdio.in.h (__attribute__): Remove definition.
20971         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20972         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20973         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20974         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20975         * lib/string.in.h (__attribute__): Remove definition.
20976         Reported by Paul Eggert.
20977
20978 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20979
20980         stdlib: don't get in the way of non-GCC __attribute__
20981         See thread starting at
20982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20983         Revert previous stdlib change, installing the following instead:
20984         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20985         to get in the way of a non-GCC compiler that supports __attribute__.
20986         (_GL_ATTRIBUTE_RETURN): New macro.
20987         (_Exit): Use it instead of __attribute__.
20988
20989 2011-02-12  Bruno Haible  <bruno@clisp.org>
20990
20991         quotearg test: Avoid test failure on mingw.
20992         * tests/test-quotearg.sh: Convert the locale identifier from native
20993         Windows syntax to Unix syntax.
20994
20995 2011-02-12  Bruno Haible  <bruno@clisp.org>
20996
20997         setlocale: Prefer gnulib's override over libintl's override.
20998         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20999         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21000         GNULIB_defined_setlocale is set.
21001
21002 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21003
21004         stdlib: support non-GCC __attribute__
21005
21006         Fix a serious and tricky problem encountered when attempting to
21007         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21008         5.5, but it crashed due to memory corruption on Solaris 10 with
21009         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21010         bits that are otherwise zero.  This tagging is optional inside
21011         Emacs but is preferred and is used when __attribute__ ((__aligned
21012         (8))) works, as it does with both recent-enough GCC and with Sun C
21013         5.11.  However, Sun C 5.11 is not GCC and does not #define
21014         __GNUC__ and __GNUC_MINOR__.
21015
21016         When I added the getloadavg module to Emacs, it brought in
21017         stdlib.in.h, which contained this fragment:
21018
21019            #ifndef __attribute__
21020            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21021            #  define __attribute__(Spec)   /* empty */
21022            # endif
21023            #endif
21024
21025         When files that include <stdlib.h> were compiled with Sun C 5.11,
21026         the above code disabled __attribute__ ((__aligned (8))), which
21027         caused variables to not be properly aligned, which eventually led
21028         to the pointer corruption mentioned above.  (This was a bit hard
21029         to diagnose, unfortunately.)
21030
21031         Several "#define __attribute__(X) /* empty */" code snippets need
21032         to be eradicated from Gnulib to work with non-GCC compilers that
21033         support __attribute__.  The Autoconf way to do this is to test for
21034         each kind of attribute that we want support for, and selectively
21035         enable that in source code.
21036
21037         Fix this problem just for stdlib.h, by adding a test for the
21038         __noreturn__ attribute, and change stdlib.in.h to use that test
21039         when needed.  This technique can be easily generalized to the
21040         other *.in.h files and attributes, and a similar technique can be
21041         used for *.h and *.c files.  This patch is enough to solve the
21042         problem for Emacs + getloadavg, and I thought I'd publish it for
21043         feedback before undertaking further, similar fixes in other
21044         modules.
21045
21046         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21047         because it's not needed for stdlib.h.  It merely substitutes the
21048         value directly into stdlib.h.  We may well need to #define it, or
21049         similar symbols, for other modules, but it's nice to also have an
21050         option to not #define it for applications like Emacs that do not
21051         need it.
21052
21053         * lib/stdlib.in.h (__attribute__): Do not #define.
21054         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21055         be defined only if the _Exit module is also used.
21056         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21058         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21059         platforms.
21060         * modules/_Exit (Files): Add m4/attribute.m4.
21061         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21062         * m4/attribute.m4: New file.
21063
21064 2011-02-12  Bruno Haible  <bruno@clisp.org>
21065
21066         wcsrtombs: Work around bug on native Windows.
21067         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21068         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21069         instead of len.
21070         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21071
21072 2011-02-12  Bruno Haible  <bruno@clisp.org>
21073
21074         mbsrtowcs: Work around bug on native Windows.
21075         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21076         against mingw bug.
21077         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21078
21079 2011-02-12  Bruno Haible  <bruno@clisp.org>
21080
21081         Avoid setlocale bugs in tests.
21082         * modules/btowc (Dependencies): Add setlocale.
21083         * modules/c-strcase (Dependencies): Likewise.
21084         * modules/mbmemcasecmp (Dependencies): Likewise.
21085         * modules/mbmemcasecoll (Dependencies): Likewise.
21086         * modules/mbrtowc (Dependencies): Likewise.
21087         * modules/mbscasecmp (Dependencies): Likewise.
21088         * modules/mbscasestr (Dependencies): Likewise.
21089         * modules/mbschr (Dependencies): Likewise.
21090         * modules/mbscspn (Dependencies): Likewise.
21091         * modules/mbsinit (Dependencies): Likewise.
21092         * modules/mbsncasecmp (Dependencies): Likewise.
21093         * modules/mbsnrtowcs (Dependencies): Likewise.
21094         * modules/mbspbrk (Dependencies): Likewise.
21095         * modules/mbspcasecmp (Dependencies): Likewise.
21096         * modules/mbsrchr (Dependencies): Likewise.
21097         * modules/mbsrtowcs (Dependencies): Likewise.
21098         * modules/mbsspn (Dependencies): Likewise.
21099         * modules/mbsstr (Dependencies): Likewise.
21100         * modules/nl_langinfo (Dependencies): Likewise.
21101         * modules/quotearg (Dependencies): Likewise.
21102         * modules/unicase/locale-language (Dependencies): Likewise.
21103         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21104         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21105         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21106         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21107         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21108         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21109         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21110         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21111         * modules/vasnprintf-posix (Dependencies): Likewise.
21112         * modules/wcrtomb (Dependencies): Likewise.
21113         * modules/wcsnrtombs (Dependencies): Likewise.
21114         * modules/wcsrtombs (Dependencies): Likewise.
21115
21116 2011-02-12  Bruno Haible  <bruno@clisp.org>
21117
21118         setlocale: Workaround native Windows bug.
21119         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21120         succeeds but sets LC_CTYPE to "C", report a failure.
21121         * tests/test-setlocale2.sh: New file.
21122         * tests/test-setlocale2.c: New file.
21123         * modules/setlocale-tests (Files): Add the new files.
21124         (Makefile.am): Enable test-setlocale2.sh test.
21125         * doc/posix-functions/setlocale.texi: Mention workaround.
21126
21127 2011-02-11  Bruno Haible  <bruno@clisp.org>
21128
21129         Tests for module 'setlocale'.
21130         * modules/setlocale-tests: New file.
21131         * tests/test-setlocale1.sh: New file.
21132         * tests/test-setlocale1.c: New file.
21133
21134         New module 'setlocale'.
21135         * lib/locale.in.h (setlocale): New declaration.
21136         * lib/setlocale.c: New file, based on
21137         gettext/gettext-runtime/intl/setlocale.c.
21138         * m4/setlocale.m4: New file.
21139         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21140         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21141         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21142         REPLACE_SETLOCALE.
21143         * modules/setlocale: New file.
21144         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21145         * doc/posix-functions/setlocale.texi: Mention the new module.
21146
21147 2011-02-11  Bruno Haible  <bruno@clisp.org>
21148
21149         Prepare for locale dependent tests on mingw.
21150         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21151         because it has the wrong locale encoding.
21152         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21153         French_France.1252 instead of "fr".
21154         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21155         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21156         because it has the wrong locale encoding.
21157         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21158         native Windows, try Turkish_Turkey.65001.
21159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21160         Chinese_China.54936.
21161
21162         Prepare for locale dependent tests on mingw.
21163         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21164         differently.
21165         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21166         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21167         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21168         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21169
21170 2011-02-11  Eric Blake  <eblake@redhat.com>
21171
21172         strptime: avoid compiler warnings
21173         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21174         compiler warnings about dead code.
21175         Reported by Daniel P. Berrange.
21176
21177 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21178
21179         doc: update users.txt
21180         * users.txt: Add rcs.
21181
21182 2011-02-10  John W. Eaton  <jwe@gnu.org>
21183
21184         doc: update users.txt
21185         * users.txt: Add octave.
21186
21187 2011-02-10  Jim Meyering  <meyering@redhat.com>
21188
21189         doc: update users.txt
21190         * users.txt: Add iwhd.
21191
21192 2011-02-09  Bruno Haible  <bruno@clisp.org>
21193
21194         gnulib-tool: Make copyright notice adjustment more robust.
21195         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21196         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21197         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21198         License".
21199         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21200
21201 2011-02-06  Bruno Haible  <bruno@clisp.org>
21202
21203         New module 'towctrans'.
21204         * modules/towctrans: New file.
21205         * lib/wctype.in.h (towctrans): New declaration.
21206         * lib/towctrans.c: New file.
21207         * lib/towctrans-impl.h: New file.
21208         * m4/towctrans.m4: New file.
21209         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21210         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21211         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21212         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21213         * doc/posix-functions/towctrans.texi: Mention the new module.
21214
21215 2011-02-06  Bruno Haible  <bruno@clisp.org>
21216
21217         New module 'wctrans'.
21218         * modules/wctrans: New file.
21219         * lib/wctype.in.h (wctrans): New declaration.
21220         * lib/wctrans.c: New file.
21221         * lib/wctrans-impl.h: New file.
21222         * m4/wctrans.m4: New file.
21223         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21224         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21225         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21226         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21227         * doc/posix-functions/wctrans.texi: Mention the new module.
21228
21229 2011-02-06  Bruno Haible  <bruno@clisp.org>
21230
21231         New module 'iswctype'.
21232         * modules/iswctype: New file.
21233         * lib/wctype.in.h (iswctype): New declaration.
21234         * lib/iswctype.c: New file.
21235         * lib/iswctype-impl.h: New file.
21236         * m4/iswctype.m4: New file.
21237         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21238         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21239         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21240         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21241         * doc/posix-functions/iswctype.texi: Mention the new module and the
21242         HP-UX 11.00 problem.
21243
21244 2011-02-06  Bruno Haible  <bruno@clisp.org>
21245
21246         New module 'wctype'.
21247         * modules/wctype: Change to represent the wctype() substitute.
21248         * lib/wctype.in.h (wctype): New declaration.
21249         * lib/wctype.c: New file.
21250         * lib/wctype-impl.h: New file.
21251         * m4/wctype.m4: New file.
21252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21254         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21255         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21256         * doc/posix-functions/wctype.texi: Mention the new module and the
21257         HP-UX 11.00 problem.
21258
21259 2011-02-06  Bruno Haible  <bruno@clisp.org>
21260
21261         wctype-h: Ensure wctype_t and wctrans_t are defined.
21262         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21263         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21264         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21265         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21266         HAVE_WCTRANS_T.
21267         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21268
21269 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21270
21271         flock: fix license typo
21272
21273         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21274         omitted.
21275
21276 2011-02-08  Bruno Haible  <bruno@clisp.org>
21277
21278         Split large sed scripts, for HP-UX sed.
21279         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21280         to avoid HP-UX limit of 99 commands, in the near future.
21281         * modules/stdlib (Makefile.am): Likewise.
21282         * modules/unistd (Makefile.am): Likewise.
21283         * modules/wchar (Makefile.am): Likewise.
21284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21285         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21286         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21287
21288 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21289             Bruno Haible  <bruno@clisp.org>
21290
21291         stdlib: improve random_r modularization
21292         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21293         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21294         you also need the random_r module to get this material right.
21295         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21296         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21297         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21298
21299 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21300
21301         stdlib: don't depend on stdint
21302         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21303         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21304         be independent of whether stdint.h is needed.
21305         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21306         here, instead of ...
21307         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21308         struct random_data should be using the random_r module, not just
21309         the stdlib module (which wouldn't make sense: what package needs
21310         just struct random_data without also needing random_r?).
21311         * modules/stdlib (Depends-on): Remove stdint.
21312
21313         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21314         See the thread rooted at
21315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21316         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21317         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21318         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21319         __VMS)); previously it was always included (via fcntl--.h).
21320         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21321         hand; this is good enough for load averages.  Also, do not use
21322         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21323         flags directly if available and don't bother otherwise.  (Packages
21324         that need the extra reliability should use the modules that define
21325         these flags on older platforms that lack them.)
21326         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21327         fcntl-safer.
21328
21329 2011-02-08  Jim Meyering  <meyering@redhat.com>
21330
21331         di-set.h, ino-map.h: add multiple-inclusion guard
21332         Technically, the guard is required only for ino-map.h, due to its
21333         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21334         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21335         * lib/ino-map.h: Likewise.
21336
21337 2011-02-06  Bruno Haible  <bruno@clisp.org>
21338
21339         iswblank: Ensure declaration on glibc systems.
21340         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21341         * modules/iswblank (Dependencies): Add 'extensions'.
21342         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21343
21344 2011-02-06  Bruno Haible  <bruno@clisp.org>
21345
21346         New module 'iswblank'.
21347         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21348         * modules/iswblank: New file.
21349         * modules/wctype-h (Files): Remove lib/iswblank.c.
21350         (Makefile.am): Substitute GNULIB_ISWBLANK.
21351         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21352         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21353         (gl_WCTYPE_H_DEFAULTS): New macro.
21354         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21355         * modules/iswblank-tests: New file.
21356         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21357         * tests/test-wctype-h.c (main): Remove iswblank tests.
21358         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21359         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21360         of 'wctype-h'.
21361         * NEWS: Mention the change.
21362         * modules/mbchar (Depends-on): Add iswblank.
21363
21364 2011-02-08  Bruno Haible  <bruno@clisp.org>
21365
21366         di-set tests: Refactor.
21367         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21368         unnecessary includes.
21369         (ASSERT): Remove macro.
21370         (main): Make C90 compliant by avoiding variable declaration after
21371         statement.
21372         * modules/di-set-tests (Files): Add tests/macros.h.
21373
21374 2011-02-08  Bruno Haible  <bruno@clisp.org>
21375
21376         ino-map tests: Refactor.
21377         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21378         unnecessary includes.
21379         (ASSERT): Remove macro.
21380         (main): Make C90 compliant by avoiding variable declaration after
21381         statement.
21382         * modules/ino-map-tests (Files): Add tests/macros.h.
21383
21384 2011-02-08  Jim Meyering  <meyering@redhat.com>
21385
21386         di-set: add "const" to a cast
21387         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21388         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21389
21390 2011-02-06  Bruno Haible  <bruno@clisp.org>
21391
21392         Rename module 'wctype' to 'wctype-h'.
21393         * modules/wctype-h: Renamed from modules/wctype.
21394         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21395         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21396         (Files, Depends-on, Makefile.am): Update.
21397         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21398         (Files, Makefile.am): Update.
21399         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21400         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21401         * doc/posix-headers/wctype.texi: Update.
21402         * doc/posix-functions/iswalnum.texi: Update.
21403         * doc/posix-functions/iswalpha.texi: Update.
21404         * doc/posix-functions/iswblank.texi: Update.
21405         * doc/posix-functions/iswcntrl.texi: Update.
21406         * doc/posix-functions/iswdigit.texi: Update.
21407         * doc/posix-functions/iswgraph.texi: Update.
21408         * doc/posix-functions/iswlower.texi: Update.
21409         * doc/posix-functions/iswprint.texi: Update.
21410         * doc/posix-functions/iswpunct.texi: Update.
21411         * doc/posix-functions/iswspace.texi: Update.
21412         * doc/posix-functions/iswupper.texi: Update.
21413         * doc/posix-functions/iswxdigit.texi: Update.
21414         * doc/posix-functions/towlower.texi: Update.
21415         * doc/posix-functions/towupper.texi: Update.
21416         * NEWS: Mention the change.
21417         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21418         * modules/mbchar (Dependencies): Likewise.
21419         * modules/mbswidth (Dependencies): Likewise.
21420         * modules/quotearg (Dependencies): Likewise.
21421         * modules/regex (Dependencies): Likewise.
21422         * modules/wcscasecmp (Dependencies): Likewise.
21423         * modules/wcsncasecmp (Dependencies): Likewise.
21424         * modules/wcwidth (Dependencies): Likewise.
21425
21426 2011-02-06  Bruno Haible  <bruno@clisp.org>
21427
21428         New module 'wcswidth'.
21429         * modules/wcswidth: New file.
21430         * lib/wchar.in.h (wcswidth): New declaration.
21431         * lib/wcswidth.c: New file.
21432         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21433         * m4/wcswidth.m4: New file.
21434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21436         REPLACE_WCSWIDTH.
21437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21438         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21439         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21440         * doc/posix-functions/wcswidth.texi: Mention the new module.
21441
21442 2011-02-06  Bruno Haible  <bruno@clisp.org>
21443
21444         New module 'wcstok'.
21445         * modules/wcstok: New file.
21446         * lib/wchar.in.h (wcstok): New declaration.
21447         * lib/wcstok.c: New file.
21448         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21449         * m4/wcstok.m4: New file.
21450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21453         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21454         * doc/posix-functions/wcstok.texi: Mention the new module.
21455
21456 2011-02-06  Bruno Haible  <bruno@clisp.org>
21457
21458         New module 'wcsstr'.
21459         * modules/wcsstr: New file.
21460         * lib/wchar.in.h (wcsstr): New declaration.
21461         * lib/wcsstr.c: New file.
21462         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21463         * m4/wcsstr.m4: New file.
21464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21467         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21468         * doc/posix-functions/wcsstr.texi: Mention the new module.
21469
21470 2011-02-06  Bruno Haible  <bruno@clisp.org>
21471
21472         New module 'wcspbrk'.
21473         * modules/wcspbrk: New file.
21474         * lib/wchar.in.h (wcspbrk): New declaration.
21475         * lib/wcspbrk.c: New file.
21476         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21477         * m4/wcspbrk.m4: New file.
21478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21481         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21482         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21483
21484 2011-02-06  Bruno Haible  <bruno@clisp.org>
21485
21486         New module 'wcsspn'.
21487         * modules/wcsspn: New file.
21488         * lib/wchar.in.h (wcsspn): New declaration.
21489         * lib/wcsspn.c: New file.
21490         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21491         * m4/wcsspn.m4: New file.
21492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21495         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21496         * doc/posix-functions/wcsspn.texi: Mention the new module.
21497
21498 2011-02-06  Bruno Haible  <bruno@clisp.org>
21499
21500         New module 'wcscspn'.
21501         * modules/wcscspn: New file.
21502         * lib/wchar.in.h (wcscspn): New declaration.
21503         * lib/wcscspn.c: New file.
21504         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21505         * m4/wcscspn.m4: New file.
21506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21509         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21510         * doc/posix-functions/wcscspn.texi: Mention the new module.
21511
21512 2011-02-06  Bruno Haible  <bruno@clisp.org>
21513
21514         New module 'wcsrchr'.
21515         * modules/wcsrchr: New file.
21516         * lib/wchar.in.h (wcsrchr): New declaration.
21517         * lib/wcsrchr.c: New file.
21518         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21519         * m4/wcsrchr.m4: New file.
21520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21523         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21524         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21525
21526 2011-02-06  Bruno Haible  <bruno@clisp.org>
21527
21528         New module 'wcschr'.
21529         * modules/wcschr: New file.
21530         * lib/wchar.in.h (wcschr): New declaration.
21531         * lib/wcschr.c: New file.
21532         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21533         * m4/wcschr.m4: New file.
21534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21537         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21538         * doc/posix-functions/wcschr.texi: Mention the new module.
21539
21540 2011-02-06  Bruno Haible  <bruno@clisp.org>
21541
21542         New module 'wcsdup'.
21543         * modules/wcsdup: New file.
21544         * lib/wchar.in.h (wcsdup): New declaration.
21545         * lib/wcsdup.c: New file.
21546         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21547         * m4/wcsdup.m4: New file.
21548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21551         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21552         * doc/posix-functions/wcsdup.texi: Mention the new module.
21553
21554 2011-02-06  Bruno Haible  <bruno@clisp.org>
21555
21556         New module 'wcsxfrm'.
21557         * modules/wcsxfrm: New file.
21558         * lib/wchar.in.h (wcsxfrm): New declaration.
21559         * lib/wcsxfrm.c: New file.
21560         * lib/wcsxfrm-impl.h: New file.
21561         * m4/wcsxfrm.m4: New file.
21562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21565         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21566         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21567
21568 2011-02-06  Bruno Haible  <bruno@clisp.org>
21569
21570         New module 'wcscoll'.
21571         * modules/wcscoll: New file.
21572         * lib/wchar.in.h (wcscoll): New declaration.
21573         * lib/wcscoll.c: New file.
21574         * lib/wcscoll-impl.h: New file.
21575         * m4/wcscoll.m4: New file.
21576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21579         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21580         * doc/posix-functions/wcscoll.texi: Mention the new module.
21581
21582 2011-02-06  Bruno Haible  <bruno@clisp.org>
21583
21584         New module 'wcsncasecmp'.
21585         * modules/wcsncasecmp: New file.
21586         * lib/wchar.in.h (wcsncasecmp): New declaration.
21587         * lib/wcsncasecmp.c: New file.
21588         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21589         * m4/wcsncasecmp.m4: New file.
21590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21593         HAVE_WCSNCASECMP.
21594         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21595         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21596
21597 2011-02-06  Bruno Haible  <bruno@clisp.org>
21598
21599         New module 'wcscasecmp'.
21600         * modules/wcscasecmp: New file.
21601         * lib/wchar.in.h (wcscasecmp): New declaration.
21602         * lib/wcscasecmp.c: New file.
21603         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21604         * m4/wcscasecmp.m4: New file.
21605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21608         HAVE_WCSCASECMP.
21609         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21610         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21611
21612 2011-02-05  Bruno Haible  <bruno@clisp.org>
21613
21614         New module 'wcsncmp'.
21615         * modules/wcsncmp: New file.
21616         * lib/wchar.in.h (wcsncmp): New declaration.
21617         * lib/wcsncmp.c: New file.
21618         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21619         * m4/wcsncmp.m4: New file.
21620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21623         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21624         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21625
21626 2011-02-05  Bruno Haible  <bruno@clisp.org>
21627
21628         New module 'wcscmp'.
21629         * modules/wcscmp: New file.
21630         * lib/wchar.in.h (wcscmp): New declaration.
21631         * lib/wcscmp.c: New file.
21632         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21633         * m4/wcscmp.m4: New file.
21634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21637         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21638         * doc/posix-functions/wcscmp.texi: Mention the new module.
21639
21640 2011-02-05  Bruno Haible  <bruno@clisp.org>
21641
21642         New module 'wcsncat'.
21643         * modules/wcsncat: New file.
21644         * lib/wchar.in.h (wcsncat): New declaration.
21645         * lib/wcsncat.c: New file.
21646         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21647         * m4/wcsncat.m4: New file.
21648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21651         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21652         * doc/posix-functions/wcsncat.texi: Mention the new module.
21653
21654 2011-02-05  Bruno Haible  <bruno@clisp.org>
21655
21656         New module 'wcscat'.
21657         * modules/wcscat: New file.
21658         * lib/wchar.in.h (wcscat): New declaration.
21659         * lib/wcscat.c: New file.
21660         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21661         * m4/wcscat.m4: New file.
21662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21665         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21666         * doc/posix-functions/wcscat.texi: Mention the new module.
21667
21668 2011-02-05  Bruno Haible  <bruno@clisp.org>
21669
21670         New module 'wcpncpy'.
21671         * modules/wcpncpy: New file.
21672         * lib/wchar.in.h (wcpncpy): New declaration.
21673         * lib/wcpncpy.c: New file.
21674         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21675         * m4/wcpncpy.m4: New file.
21676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21678         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21679         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21680         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21681
21682 2011-02-05  Bruno Haible  <bruno@clisp.org>
21683
21684         New module 'wcsncpy'.
21685         * modules/wcsncpy: New file.
21686         * lib/wchar.in.h (wcsncpy): New declaration.
21687         * lib/wcsncpy.c: New file.
21688         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21689         * m4/wcsncpy.m4: New file.
21690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21693         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21694         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21695
21696 2011-02-05  Bruno Haible  <bruno@clisp.org>
21697
21698         New module 'wcpcpy'.
21699         * modules/wcpcpy: New file.
21700         * lib/wchar.in.h (wcpcpy): New declaration.
21701         * lib/wcpcpy.c: New file.
21702         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21703         * m4/wcpcpy.m4: New file.
21704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21706         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21707         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21708         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21709
21710 2011-02-05  Bruno Haible  <bruno@clisp.org>
21711
21712         New module 'wcscpy'.
21713         * modules/wcscpy: New file.
21714         * lib/wchar.in.h (wcscpy): New declaration.
21715         * lib/wcscpy.c: New file.
21716         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21717         * m4/wcscpy.m4: New file.
21718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21721         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21722         * doc/posix-functions/wcscpy.texi: Mention the new module.
21723
21724 2011-02-05  Bruno Haible  <bruno@clisp.org>
21725
21726         New module 'wcsnlen'.
21727         * modules/wcsnlen: New file.
21728         * lib/wchar.in.h (wcsnlen): New declaration.
21729         * lib/wcsnlen.c: New file.
21730         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21731         * m4/wcsnlen.m4: New file.
21732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21735         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21736         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21737
21738 2011-02-05  Bruno Haible  <bruno@clisp.org>
21739
21740         New module 'wcslen'.
21741         * modules/wcslen: New file.
21742         * lib/wchar.in.h (wcslen): New declaration.
21743         * lib/wcslen.c: New file.
21744         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21745         * m4/wcslen.m4: New file.
21746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21749         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21750         * doc/posix-functions/wcslen.texi: Mention the new module.
21751
21752 2011-02-05  Bruno Haible  <bruno@clisp.org>
21753
21754         New module 'wmemset'.
21755         * modules/wmemset: New file.
21756         * lib/wchar.in.h (wmemset): New declaration.
21757         * lib/wmemset.c: New file.
21758         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21759         * m4/wmemset.m4: New file.
21760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21762         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21763         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21764         * doc/posix-functions/wmemset.texi: Mention the new module.
21765
21766 2011-02-05  Bruno Haible  <bruno@clisp.org>
21767
21768         New module 'wmemmove'.
21769         * modules/wmemmove: New file.
21770         * lib/wchar.in.h (wmemmove): New declaration.
21771         * lib/wmemmove.c: New file.
21772         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21773         * m4/wmemmove.m4: New file.
21774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21776         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21777         HAVE_WMEMMOVE.
21778         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21779         * doc/posix-functions/wmemmove.texi: Mention the new module.
21780
21781 2011-02-05  Bruno Haible  <bruno@clisp.org>
21782
21783         New module 'wmemcpy'.
21784         * modules/wmemcpy: New file.
21785         * lib/wchar.in.h (wmemcpy): New declaration.
21786         * lib/wmemcpy.c: New file.
21787         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21788         * m4/wmemcpy.m4: New file.
21789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21791         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21792         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21793         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21794
21795 2011-02-05  Bruno Haible  <bruno@clisp.org>
21796
21797         New module 'wmemcmp'.
21798         * modules/wmemcmp: New file.
21799         * lib/wchar.in.h (wmemcmp): New declaration.
21800         * lib/wmemcmp.c: New file.
21801         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21802         * m4/wmemcmp.m4: New file.
21803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21805         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21806         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21807         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21808
21809 2011-02-07  Jim Meyering  <meyering@redhat.com>
21810
21811         di-set, ino-map: new modules, from coreutils
21812         * lib/di-set.c: New file.
21813         * lib/di-set.h: Likewise.
21814         * lib/ino-map.c: Likewise.
21815         * lib/ino-map.h: Likewise.
21816         * modules/di-set: Likewise.
21817         * modules/di-set-tests: Likewise.
21818         * modules/ino-map: Likewise.
21819         * modules/ino-map-tests: Likewise.
21820         * tests/test-di-set.c: Likewise.
21821         * tests/test-ino-map.c: Likewise.
21822
21823 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21824
21825         getloadavg: merge minor changes from Emacs
21826
21827         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21828         (getloadavg): Use memset, not bzero.
21829
21830         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21831         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21832         clash (bug#86).
21833
21834 2010-11-14  Bruno Haible  <bruno@clisp.org>
21835
21836         Allow multiple gnulib generated replacements to coexist.
21837         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21838         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21839         * lib/langinfo.in.h (nl_item): Likewise.
21840         * lib/math.in.h (_NaN, NAN): Likewise.
21841         * lib/netdb.in.h (struct addrinfo): Likewise.
21842         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21843         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21844         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21845         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21846         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21847         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21848         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21849         pthread_mutexattr_init, pthread_mutexattr_settype,
21850         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21851         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21852         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21853         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21854         * lib/sched.in.h (struct sched_param): Likewise.
21855         * lib/se-selinux.in.h (security_class_t, security_context_t,
21856         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21857         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21858         lsetfilecon, fsetfilecon, security_check_context,
21859         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21860         Likewise.
21861         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21862         Likewise.
21863         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21864         _gl_function_taking_int_returning_void_t, union sigval,
21865         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21866         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21867         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21868         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21869         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21870         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21871         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21872         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21873         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21874         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21875         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21876         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21877         socklen_t, rpl_fd_isset): Likewise.
21878         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21879         * lib/sys_time.in.h (struct timeval): Likewise.
21880         * lib/sys_times.in.h (struct tms): Likewise.
21881         * lib/sys_utsname.in.h (struct utsname):
21882         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21883         * lib/unistd.in.h (getpagesize): Likewise.
21884         * lib/wchar.in.h (mbstate_t): Likewise.
21885         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21886         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21887         towlower, towupper): Likewise.
21888         Reported by Sam Steingold <sds@gnu.org>.
21889
21890 2011-02-05  Eric Blake  <eblake@redhat.com>
21891
21892         unsetenv: work around Haiku issues
21893         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21894         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21895
21896 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21897
21898         libposix: avoid calling error() within libposix
21899         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21900         is defined.
21901
21902 2011-02-05  Eric Blake  <eblake@redhat.com>
21903
21904         strerror_r-posix: port to cygwin
21905         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21906         implementation.
21907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21908         * tests/test-strerror_r.c (main): Fix test.
21909         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21910         issue.
21911
21912 2011-02-05  Bruno Haible  <bruno@clisp.org>
21913
21914         New module 'wmemchr'.
21915         * modules/wmemchr: New file.
21916         * lib/wchar.in.h (wmemchr): New declaration.
21917         * lib/wmemchr.c: New file.
21918         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21919         * m4/wmemchr.m4: New file.
21920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21922         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21923         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21924         * doc/posix-functions/wmemchr.texi: Mention the new module.
21925
21926 2011-02-04  Eric Blake  <eblake@redhat.com>
21927
21928         fdopendir: detect FreeBSD bug
21929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21930         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21931
21932 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21933
21934         stdbool: do not define HAVE_STDBOOL_H
21935         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21936         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21937         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21938         imported from the latest Autoconf git.  It was motivated by Emacs,
21939         which uses gnulib but does not need HAVE_STDBOOL_H.
21940
21941 2011-02-04  Bruno Haible  <bruno@clisp.org>
21942
21943         wcsnrtombs: Prepare for new module wwcsnrtombs.
21944         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21945         * lib/wcsnrtombs.c: Include it.
21946         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21947
21948         wcsrtombs: Prepare for new module wwcsrtombs.
21949         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21950         * lib/wcsrtombs.c: Include it.
21951         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21952
21953         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21954         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21955         * lib/mbsnrtowcs.c: Include it.
21956         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21957
21958         mbsrtowcs: Prepare for new module mbsrtowwcs.
21959         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21960         * lib/mbsrtowcs.c: Include it.
21961         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21962
21963 2011-02-04  Bruno Haible  <bruno@clisp.org>
21964
21965         vasnprintf: Reduce use of malloc for small format strings.
21966         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21967         (arguments): Add room for the first 7 arguments.
21968         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21969         (char_directives, u8_directives, u16_directives, u32_directives): Add
21970         room for the first 7 directives.
21971         * lib/printf-parse.c: Include <string.h>.
21972         (PRINTF_PARSE): Change memory handling code so that it uses the first
21973         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21974         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21975         Reported by Pádraig Brady <P@draigbrady.com>.
21976
21977 2011-01-31  Eric Blake  <eblake@redhat.com>
21978
21979         dup2: work around Haiku bug
21980         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21981         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21982         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21983         * tests/test-dup2.c (main): Enhance test.
21984
21985 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21986
21987         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21988         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21989         declared by eglibc 2.11.2.
21990         * lib/stdio.in.h: Likewise.
21991
21992 2011-01-31  Eric Blake  <eblake@redhat.com>
21993
21994         ignore-value: add missing test dependency
21995         * tests/test-ignore-value.c: Revert previous change; stdio.h
21996         provides off_t.
21997         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21998
21999 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22000
22001         mktime: clarify long_int width checking
22002         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22003         the top level, to make it clearer that the assumption about
22004         long_int width is being checked.  See
22005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22006
22007 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22008
22009         ignore-value: Fix self-test.
22010         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22011
22012 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22013
22014         TYPE_MAXIMUM: avoid theoretically undefined behavior
22015         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22016         negative number, which the C Standard says has undefined behavior.
22017         In practice this is not a problem, but might as well do it by the book.
22018         Reported by Rich Felker and Eric Blake; see
22019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22020         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22021         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22023         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22024         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22025         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22026
22027         mktime: #undef mktime before #defining it
22028         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22029
22030         mktime: systematically normalize tm_isdst comparisons
22031         * lib/mktime.c (isdst_differ): New function.
22032         (__mktime_internal): Use it systematically for all isdst comparisons.
22033         This completes the fix for libc BZ #6723, and removes the need for
22034         normalizing tm_isdst.  See
22035         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22036         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22037
22038         mktime: fix some integer overflow issues and sidestep the rest
22039
22040         This was prompted by a bug report by Benjamin Lindner for MinGW
22041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22042         His bug is due to signed integer overflow (0 - INT_MIN), and I
22043         I scanned through mktime.c looking for other integer overflow
22044         problems, fixing all the bugs I found.
22045
22046         Although the C Standard says the resulting code is still not safe
22047         in the presence of integer overflow, in practice it should be good
22048         enough for all real-world two's-complement implementations, except
22049         for debugging environments that deliberately trap on integer
22050         overflow (e.g., gcc -ftrapv).
22051
22052         * lib/mktime.c (WRAPV): New macro.
22053         (SHR): Also check that long_int and time_t shift right in the
22054         usual way, before using the fast-but-unportable method.
22055         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22056         used.  The code already assumed two's complement, so there's
22057         no need to test for alternatives.  All uses removed.
22058         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22059         the C standard.  Problem reported by Rich Felker in
22060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22061         (twos_complement_arithmetic): Also check long_int and time_t.
22062         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22063         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22064         (__mktime_internal): Avoid integer overflow with unary subtraction
22065         in two instances where -1 - X is an adequate replacement for -X,
22066         since the calculations are approximate.
22067
22068 2011-01-29  Eric Blake  <eblake@redhat.com>
22069
22070         mktime: avoid infinite loop
22071         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22072         type; behavior is still undefined but portable to all known targets.
22073         Reported by Rich Felker.
22074
22075 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22076
22077         rename, unlink, same-inode: Relicense.
22078         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22079         * modules/unlink (License): Likewise.
22080         * modules/same-inode (License): Likewise.
22081
22082 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         mktime: avoid problems on NetBSD 5 / i386
22085         * lib/mktime.c (long_int): New type.  This works around a problem
22086         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22087         but time_t is 64 bits, and where I expect the existing code is
22088         wrong in some cases.
22089         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22090         (ydhms_diff): Bring back the compile-time check for wide-enough
22091         year and yday.
22092
22093         mktime: fix misspelling in comment
22094         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22095         This merges all recent glibc changes of importance.
22096
22097 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22098
22099         move-if-change: cope with concurrent mv of identical file.
22100         * build-aux/move-if-change (CMPPROG): Accept environment
22101         variable as an override for `cmp'.
22102         (usage): Document CMPPROG.
22103         Adjust comparison to drop stdout.  Cope with failure of mv if
22104         the target file exists and is identical to the source, for
22105         parallel builds.
22106         Report from H.J. Lu against binutils in PR binutils/12283.
22107
22108 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22109
22110         * users.txt: Mention sharutils.
22111
22112 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22113
22114         * users.txt: Mention OATH Toolkit.
22115
22116 2011-01-27  Bruno Haible  <bruno@clisp.org>
22117
22118         Prepare for supporting FreeBSD 10.
22119         * build-aux/config.libpath: Remove handling of freebsd1*.
22120
22121 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22122
22123         Prepare for supporting FreeBSD 10.
22124         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22125         match FreeBSD 10.0.
22126
22127 2011-01-27  Bruno Haible  <bruno@clisp.org>
22128
22129         vma-iter, get-rusage-as: Add OpenBSD support.
22130         * modules/vma-iter (configure.ac): Test for mquery.
22131         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22132         * lib/vma-iter.c: Include <sys/mman.h>.
22133         (vma_iterate): Add an implementation based on mquery().
22134         * lib/resource-ext.h (get_rusage_as): Update comments.
22135         * lib/get-rusage-as.c: Likewise.
22136         * lib/get-rusage-data.c: Likewise.
22137
22138 2011-01-26  Karl Berry  <karl@gnu.org>
22139
22140         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22141         variables to make it easier to override the makeinfo program used.
22142
22143 2011-01-26  Eric Blake  <eblake@redhat.com>
22144
22145         fcntl: work around Haiku F_DUPFD bugs
22146         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22147         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22148         cloexec bit on duplication.
22149         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22150
22151 2011-01-26  Bruno Haible  <bruno@clisp.org>
22152
22153         Enable memory leak tests on AIX.
22154         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22155         * tests/test-fprintf-posix3.c (main): Likewise.
22156
22157 2011-01-26  Bruno Haible  <bruno@clisp.org>
22158
22159         Tests for module 'get-rusage-data'.
22160         * modules/get-rusage-data-tests: New file.
22161         * tests/test-get-rusage-data.c: New file.
22162
22163         New module 'get-rusage-data'.
22164         * lib/resource-ext.h (get_rusage_data): New declaration.
22165         * lib/get-rusage-data.c: New file.
22166         * modules/get-rusage-data: New file.
22167
22168 2011-01-25  Bruno Haible  <bruno@clisp.org>
22169
22170         get-rusage-as: Allow for easier testing.
22171         * lib/resource-ext.h (get_rusage_as): Add comment.
22172         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22173         (main): New function for interactive testing.
22174
22175 2011-01-25  Bruno Haible  <bruno@clisp.org>
22176
22177         vma-iter: Treat Haiku like BeOS.
22178         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22179         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22180
22181 2011-01-25  Eric Blake  <eblake@redhat.com>
22182
22183         c-stack: fix regression on cygwin when libsigsegv is present
22184         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22185
22186 2011-01-24  Bruno Haible  <bruno@clisp.org>
22187
22188         vma-iter: Avoid empty intervals.
22189         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22190         on an empty interval.
22191
22192 2011-01-24  Jim Meyering  <meyering@redhat.com>
22193
22194         u64: remove unnecessary #include
22195         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22196
22197 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22198
22199         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22200         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22201
22202 2011-01-23  Bruno Haible  <bruno@clisp.org>
22203
22204         New module 'vma-iter'.
22205         * lib/vma-iter.h: New file.
22206         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22207         * modules/vma-iter: New file.
22208         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22209         for get_rusage_as_via_iterator.
22210         (vma_iterate_callback): New function.
22211         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22212         * modules/get-rusage-as (Depends-on): Add vma-iter.
22213
22214 2011-01-23  Bruno Haible  <bruno@clisp.org>
22215
22216         uninorm: Tweak includes.
22217         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22218         Reported by Jim Meyering.
22219
22220 2011-01-23  Bruno Haible  <bruno@clisp.org>
22221
22222         get-rusage-as: Improve on NetBSD.
22223         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22224         /proc, like on FreeBSD.
22225
22226 2011-01-23  Jim Meyering  <meyering@redhat.com>
22227
22228         xreadlink.h: remove unnecessary #include
22229         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22230
22231         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22232         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22233
22234 2011-01-23  Bruno Haible  <bruno@clisp.org>
22235
22236         get-rusage-as: Fix bug.
22237         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22238         original limit when aborting the first loop.
22239
22240 2011-01-23  Bruno Haible  <bruno@clisp.org>
22241
22242         wctype: Ensure valid C syntax.
22243         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22244         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22245
22246 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22247
22248         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22250         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22251         as they are needed only for configure's test case.
22252         This removes two unnecessary symbols from config.h.
22253
22254         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22255         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22257         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22258         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22259         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22260         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22261         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22262         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22263         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22266         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22268         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22270         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22271         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22272
22273 2011-01-21  Eric Blake  <eblake@redhat.com>
22274
22275         maintainer-makefile: work with older git for submodule check
22276         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22277         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22278         Reported by Matthias Bolte.
22279
22280         bootstrap: minor portability fixes
22281         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22282         (usage): Omit leading capital and trailing . on help phrases, per
22283         GNU Coding Standards.
22284         (check_versions, top level): Prefix messages with script name.
22285
22286 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22287
22288         bootstrap: support --no-git option
22289         * build-aux/bootstrap: Add --no-git option, to be used when
22290         --gnulib-srcdir points to the exact desired checkout.
22291
22292 2011-01-21  Eric Blake  <eblake@redhat.com>
22293
22294         strerror_r-posix: work with glibc 2.13
22295         * lib/strerror_r.c (strerror_r): Fix return type.
22296
22297 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22298             Bruno Haible  <bruno@clisp.org>
22299
22300         uN_strstr: New unit tests.
22301         * modules/unistr/u8-strstr-tests: New file.
22302         * modules/unistr/u16-strstr-tests: New file.
22303         * modules/unistr/u32-strstr-tests: New file.
22304         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22305         * tests/unistr/test-u8-strstr.c: New file.
22306         * tests/unistr/test-u16-strstr.c: New file.
22307         * tests/unistr/test-u32-strstr.c: New file.
22308
22309 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22310             Bruno Haible  <bruno@clisp.org>
22311
22312         Make uN_strstr functions O(n) worst-case.
22313         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22314         16-bit and 32-bit unit cases, use the unibyte algorithm from
22315         lib/mbsstr.c.
22316         * lib/unistr/u8-strstr.c: Include <string.h>.
22317         (UNIT_IS_UINT8_T): New macro.
22318         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22319         (U_STRLEN, U_STRNLEN): New macros.
22320         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22321         (U_STRLEN, U_STRNLEN): New macros.
22322         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22323         (configure.ac): Update required libunistring version.
22324         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22325         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22326         malloca.
22327         (configure.ac): Update required libunistring version.
22328         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22329         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22330         malloca.
22331         (configure.ac): Update required libunistring version.
22332
22333 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22334             Bruno Haible  <bruno@clisp.org>
22335
22336         Prepare for faster uN_strstr functions.
22337         * lib/str-kmp.h: Support definable UNITs.
22338         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22339         needle_len argument.
22340         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22341         * lib/mbscasestr.c (mbscasestr): Likewise.
22342
22343 2011-01-21  Pádraig Brady <P@draigBrady.com>
22344
22345         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22346         * tests/test-malloca.c (main): Unset the environment variable
22347         to greatly speed up the test.
22348         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22349         * modules/malloca-tests: Depend on unsetenv.
22350
22351 2011-01-21  Pádraig Brady <P@draigBrady.com>
22352
22353         ignore-value: remove stdint dependency
22354         * lib/ignore-value.h: Remove <stdint.h>
22355         * modules/ignore-value: Remove stdint dependency.
22356
22357 2011-01-21  Jim Meyering  <meyering@redhat.com>
22358
22359         maint.mk: adjust variable name to be consistent with other gl_ vars
22360         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22361         to be lower case.
22362
22363 2011-01-20  Jim Meyering  <meyering@redhat.com>
22364
22365         maint.mk: make "check" depend on public-submodule-commit by default
22366         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22367
22368 2011-01-20  Bruno Haible  <bruno@clisp.org>
22369
22370         mbfile, mbiter: Complete change from 2008-12-21.
22371         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22372         * m4/mbiter.m4 (gl_MBITER): Likewise.
22373
22374 2011-01-20  Jim Meyering  <meyering@redhat.com>
22375
22376         init.sh: insert space between each function name and "()"
22377         * tests/init.sh: Make it a little easier to see that a function's
22378         name is "warn_", and not "warn" when looking at the first part of
22379         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22380
22381 2011-01-20  Jim Meyering  <meyering@redhat.com>
22382
22383         mountlist: clean up code formatting
22384         * lib/mountlist.c (read_file_system_list): Split a long line,
22385         correct bracing style, use NULL in place of "(struct statfs *)0",
22386         don't parenthesize return value, add spaces around "=" and after
22387         ";-in-for-stmt".
22388
22389 2011-01-14  Markus Duft <mduft@gentoo.org>
22390
22391         mountlist: add support for Interix
22392         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22393         Apply statvfs to all entries of /dev/fs.
22394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22395         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22396
22397 2011-01-20  Jim Meyering  <meyering@redhat.com>
22398
22399         maint.mk: improve the public-submodule-commit rule
22400         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22401         to suppress printing of its commands... unless V=1.
22402         Add git submodule's --quiet option to suppress printing of e.g.,
22403         "Entering gnulib" output.
22404         "cd" into $(srcdir) before running git submodule.
22405
22406 2011-01-20  Bruno Haible  <bruno@clisp.org>
22407
22408         include_next: Fix bug introduced on 2011-01-18.
22409         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22410         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22411         ac_cv_header_... variable if the second argument is not 'check'.
22412         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22413         gl_NEXT_HEADERS_INTERNAL.
22414
22415 2011-01-20  Bruno Haible  <bruno@clisp.org>
22416
22417         Allow the user to avoid the GNULIB_TEST_* macros.
22418         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22419         Suggested by Paul Eggert.
22420
22421 2011-01-14  Jim Meyering  <meyering@redhat.com>
22422
22423         bootstrap: avoid failure when there is no .gitmodules file
22424         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22425         has been assigned to, even when its value is the empty string.
22426         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22427         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22428         Reported by John W. Eaton <jwe@gnu.org>.
22429
22430 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         assume <ctype.h>, ..., <time.h> exist
22433         For years gnulib has been assuming the existence of the headers
22434         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22435         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22436         them, since they don't appear to be needed.
22437         * README (Portability guidelines): Document this.
22438         * lib/flock.c: Assume <fcntl.h> exists.
22439         * lib/regex_internal.h: Assume <locale.h> exists.
22440         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22442         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22443         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22444         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22445         * m4/regex.m4 (gl_REGEX): Likewise.
22446         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22447         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22448         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22449         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22450         * tests/test-argp.c: Likewise.
22451         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22452
22453         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22454         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22455         AA_APPLE_UNIVERSAL_BUILD.  See
22456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22457         * NEWS: Document this.
22458
22459 2011-01-19  Eric Blake  <eblake@redhat.com>
22460
22461         c-stack: assume stack overflow if SA_SIGINFO unsupported
22462         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22463         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22464         sigaction will work.
22465         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22466         behavior match Linux.
22467         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22468
22469         stdbool-tests: accommodate Haiku
22470         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22471
22472         binary-io: fix O_TEXT on Haiku
22473         * modules/binary-io (Depends-on): Add fcntl-h.
22474         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22475         than blindly undefining O_TEXT.
22476         Reported by Scott McCreary.
22477
22478 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22479
22480         include_next: do not check for standard headers like stddef.h
22481
22482         I found this problem when modifying Emacs to use gnulib.
22483         I noticed that it added HAVE_STDDEF_H to config.h, even though
22484         gnulib always assumes <stddef.h> exists as per README and this
22485         symbol is unnecessary.
22486         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22487         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22488         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22489         faster for headers like stddef.h that are known to exist.
22490         (gl_CHECK_NEXT_HEADERS): Use it.
22491         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22492         rather than gl_CHECK_NEXT_HEADERS.
22493         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22494         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22495
22496 2011-01-18  Eric Blake  <eblake@redhat.com>
22497
22498         ansi-c++-opt: skip C++ dependency style if C++ is unused
22499         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22500         tests when we know C++ compilation is not desired.
22501         Reported by Scott McCreary.
22502
22503 2011-01-18  Bruno Haible  <bruno@clisp.org>
22504
22505         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22506         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22507         (main): Perform test also when getrlimit and setrlimit don't exist or
22508         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22509         limiting the address space size using setrlimit, compare the address
22510         space size before and after the the test.
22511         * tests/test-dprintf-posix2.c: Likewise.
22512         * tests/test-fprintf-posix3.sh: Update skip messages.
22513         * tests/test-dprintf-posix2.sh: Likewise.
22514         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22515         * modules/dprintf-posix-tests (Depends-on): Likewise.
22516         Reported by Bruce Korb <bkorb@gnu.org> and
22517         Gary V. Vaughan <gary@gnu.org>.
22518
22519 2011-01-18  Bruno Haible  <bruno@clisp.org>
22520
22521         get-rusage-as: Improvement for Cygwin.
22522         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22523         areas that are merely reserved.
22524
22525 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22526
22527         strftime: remove dependencies on multibyte modules
22528
22529         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22530         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22531         only if __osf__ is defined, and I suspect OSF doesn't need these
22532         other modules.  If my guess is wrong, we'll need to come up with a
22533         variant of strftime that doesn't need the multibyte modules.
22534
22535         I discovered this problem when attempting modify Emacs to use the
22536         strftime module.  With the previous gnulib, this caused Emacs to
22537         need 31 new files, ranging from lib/config.charset to
22538         m4/wint_t.m4.  This was overkill and I expect would be offputting
22539         to the Emacs maintainers.  After this change, only 6 new files are
22540         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22541         stdbool.m4, and tm_gmtoff.m4.
22542
22543         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22544         Suggested by Bruno Haible in
22545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22546         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22547         and do not check for wchar.h.
22548         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22549         (Depends-on): Remove mbrlen, mbsinit, wchar.
22550
22551 2011-01-18  Bruno Haible  <bruno@clisp.org>
22552
22553         Tests for module 'get-rusage-as'.
22554         * modules/get-rusage-as-tests: New file.
22555         * tests/test-get-rusage-as.c: New file.
22556
22557         New module 'get-rusage-as'.
22558         * modules/get-rusage-as: New file.
22559         * lib/resource-ext.h: New file.
22560         * lib/get-rusage-as.c: New file.
22561
22562 2011-01-17  Eric Blake  <eblake@redhat.com>
22563
22564         sigaction: relax license from LGPLv3+ to LGPLv2+
22565         * modules/sigaction (License): Relax to LGPLv2+.
22566
22567 2011-01-14  Bruno Haible  <bruno@clisp.org>
22568
22569         filemode: Make function declarations usable in C++ mode.
22570         * lib/filemode.h: Enclose function declarations in extern "C" block.
22571         Reported by John W. Eaton <jwe@gnu.org>.
22572
22573 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22574
22575         save-cwd: no longer include "xgetcwd.h"
22576         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22577         This avoids a compilation failure in projects that use save-cwd
22578         without also using the xgetcwd module.
22579
22580 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22581
22582         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22583         This is so that a program like Emacs, which needs only dtoastr,
22584         does not have to bother with distributing and compiling ftoastr
22585         and ldtoastr.
22586         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22587         * modules/dtoastr, modules/ldtoastr: New files.
22588         * modules/ftoastr: Now works just for 'float'.
22589         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22590         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22591         dtoastr.c, ldtoastr.c.
22592
22593 2011-01-11  Jim Meyering  <meyering@redhat.com>
22594
22595         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22596         There is no need to work around the lack of the fchdir function,
22597         since gnulib can now provide a replacement when required.
22598         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22599         * modules/save-cwd (Depends-on): Add fchdir.
22600
22601 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22602
22603         openat, save-cwd: avoid xmalloc
22604
22605         This removes a direct (but undocumented) dependency of openat on
22606         xalloc, along with an indirect dependency via save-cwd.  It also
22607         removes a dependency of save-cwd on xgetcwd, and thereby
22608         indirectly on xalloc.  This change causes the openat substitute
22609         to fall back on save_cwd when memory is tight, and for save_cwd to
22610         fail instead of dying when memory is tight, but that's good enough.
22611         Problem and initial idea for fix reported by Bastien Roucaries in
22612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22613
22614         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22615         xalloc.h (for xmalloc).
22616         (openat_proc_name): Use malloc, not xmalloc.
22617         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22618         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22619
22620         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22621         This avoids heap allocation for file names whose lengths are in
22622         the range 512..1023, with the upper bound increasing to at most
22623         4031 depending on the platform's PATH_MAX.  (We do not want
22624         pathmax.h here as it might supply a non-constant PATH_MAX.)
22625         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22626         Perhaps they should be moved to malloca.h?
22627         (OPENAT_BUFFER_SIZE): Use them.
22628
22629 2011-01-10  Bruno Haible  <bruno@clisp.org>
22630
22631         doc: Update users.txt.
22632         * users.txt: Add recutils.
22633
22634 2011-01-09  Karl Berry  <karl@gnu.org>
22635
22636         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22637
22638         * doc/configmake.texi: New file.
22639         * doc/gnulib.texi: Include it.
22640         * modules/configmake: Move documentation from here.
22641
22642 2011-01-09  Bruno Haible  <bruno@clisp.org>
22643
22644         Update to Unicode 6.0.0.
22645         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22646         (get_lbp): Update for Unicode 6.0.0.
22647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22648         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22649         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22650         U+11001, U+11038..U+11046. Remove U+06DE.
22651         (uc_width): Fix bounds of planes.
22652         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22653         lib/uniwidth/width.c.
22654         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22655         trailing whitespace removed.
22656         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22657         without comments, but with the original copyright notice.
22658         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22659         * lib/unicase/ignorable.h: Likewise.
22660         * lib/unicase/tocasefold.h: Likewise.
22661         * lib/unicase/tolower.h: Likewise.
22662         * lib/unicase/totitle.h: Likewise.
22663         * lib/unicase/toupper.h: Likewise.
22664         * lib/unictype/bidi_of.h: Likewise.
22665         * lib/unictype/blocks.h: Likewise.
22666         * lib/unictype/categ_C.h: Likewise.
22667         * lib/unictype/categ_Cn.h: Likewise.
22668         * lib/unictype/categ_L.h: Likewise.
22669         * lib/unictype/categ_Ll.h: Likewise.
22670         * lib/unictype/categ_Lm.h: Likewise.
22671         * lib/unictype/categ_Lo.h: Likewise.
22672         * lib/unictype/categ_Lu.h: Likewise.
22673         * lib/unictype/categ_M.h: Likewise.
22674         * lib/unictype/categ_Mc.h: Likewise.
22675         * lib/unictype/categ_Me.h: Likewise.
22676         * lib/unictype/categ_Mn.h: Likewise.
22677         * lib/unictype/categ_N.h: Likewise.
22678         * lib/unictype/categ_Nd.h: Likewise.
22679         * lib/unictype/categ_No.h: Likewise.
22680         * lib/unictype/categ_P.h: Likewise.
22681         * lib/unictype/categ_Po.h: Likewise.
22682         * lib/unictype/categ_S.h: Likewise.
22683         * lib/unictype/categ_Sc.h: Likewise.
22684         * lib/unictype/categ_Sk.h: Likewise.
22685         * lib/unictype/categ_Sm.h: Likewise.
22686         * lib/unictype/categ_So.h: Likewise.
22687         * lib/unictype/categ_of.h: Likewise.
22688         * lib/unictype/combining.h: Likewise.
22689         * lib/unictype/ctype_alnum.h: Likewise.
22690         * lib/unictype/ctype_alpha.h: Likewise.
22691         * lib/unictype/ctype_graph.h: Likewise.
22692         * lib/unictype/ctype_lower.h: Likewise.
22693         * lib/unictype/ctype_print.h: Likewise.
22694         * lib/unictype/ctype_punct.h: Likewise.
22695         * lib/unictype/ctype_upper.h: Likewise.
22696         * lib/unictype/decdigit.h: Likewise.
22697         * lib/unictype/digit.h: Likewise.
22698         * lib/unictype/numeric.h: Likewise.
22699         * lib/unictype/pr_alphabetic.h: Likewise.
22700         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22701         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22702         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22703         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22704         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22705         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22706         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22707         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22708         * lib/unictype/pr_case_ignorable.h: Likewise.
22709         * lib/unictype/pr_cased.h: Likewise.
22710         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22711         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22712         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22713         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22714         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22715         * lib/unictype/pr_combining.h: Likewise.
22716         * lib/unictype/pr_composite.h: Likewise.
22717         * lib/unictype/pr_currency_symbol.h: Likewise.
22718         * lib/unictype/pr_decimal_digit.h: Likewise.
22719         * lib/unictype/pr_deprecated.h: Likewise.
22720         * lib/unictype/pr_format_control.h: Likewise.
22721         * lib/unictype/pr_grapheme_base.h: Likewise.
22722         * lib/unictype/pr_grapheme_extend.h: Likewise.
22723         * lib/unictype/pr_grapheme_link.h: Likewise.
22724         * lib/unictype/pr_id_continue.h: Likewise.
22725         * lib/unictype/pr_id_start.h: Likewise.
22726         * lib/unictype/pr_ideographic.h: Likewise.
22727         * lib/unictype/pr_lowercase.h: Likewise.
22728         * lib/unictype/pr_math.h: Likewise.
22729         * lib/unictype/pr_numeric.h: Likewise.
22730         * lib/unictype/pr_other_alphabetic.h: Likewise.
22731         * lib/unictype/pr_other_id_continue.h: Likewise.
22732         * lib/unictype/pr_other_math.h: Likewise.
22733         * lib/unictype/pr_punctuation.h: Likewise.
22734         * lib/unictype/pr_sentence_terminal.h: Likewise.
22735         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22736         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22737         * lib/unictype/pr_unified_ideograph.h: Likewise.
22738         * lib/unictype/pr_uppercase.h: Likewise.
22739         * lib/unictype/pr_xid_continue.h: Likewise.
22740         * lib/unictype/pr_xid_start.h: Likewise.
22741         * lib/unictype/scripts.h: Likewise.
22742         * lib/unictype/scripts_byname.gperf: Likewise.
22743         * lib/unictype/sy_java_ident.h: Likewise.
22744         * lib/unigbrk/gbrkprop.h: Likewise.
22745         * lib/unilbrk/lbrkprop1.h: Likewise.
22746         * lib/unilbrk/lbrkprop2.h: Likewise.
22747         * lib/uninorm/decomposition-table2.h: Likewise.
22748         * lib/uniwbrk/wbrkprop.h: Likewise.
22749         * tests/unicase/test-cased.c: Likewise.
22750         * tests/unicase/test-ignorable.c: Likewise.
22751         * tests/unicase/test-uc_tolower.c: Likewise.
22752         * tests/unicase/test-uc_totitle.c: Likewise.
22753         * tests/unicase/test-uc_toupper.c: Likewise.
22754         * tests/unictype/test-categ_C.c: Likewise.
22755         * tests/unictype/test-categ_Cn.c: Likewise.
22756         * tests/unictype/test-categ_L.c: Likewise.
22757         * tests/unictype/test-categ_Ll.c: Likewise.
22758         * tests/unictype/test-categ_Lm.c: Likewise.
22759         * tests/unictype/test-categ_Lo.c: Likewise.
22760         * tests/unictype/test-categ_Lu.c: Likewise.
22761         * tests/unictype/test-categ_M.c: Likewise.
22762         * tests/unictype/test-categ_Mc.c: Likewise.
22763         * tests/unictype/test-categ_Me.c: Likewise.
22764         * tests/unictype/test-categ_Mn.c: Likewise.
22765         * tests/unictype/test-categ_N.c: Likewise.
22766         * tests/unictype/test-categ_Nd.c: Likewise.
22767         * tests/unictype/test-categ_No.c: Likewise.
22768         * tests/unictype/test-categ_P.c: Likewise.
22769         * tests/unictype/test-categ_Po.c: Likewise.
22770         * tests/unictype/test-categ_S.c: Likewise.
22771         * tests/unictype/test-categ_Sc.c: Likewise.
22772         * tests/unictype/test-categ_Sk.c: Likewise.
22773         * tests/unictype/test-categ_Sm.c: Likewise.
22774         * tests/unictype/test-categ_So.c: Likewise.
22775         * tests/unictype/test-ctype_alnum.c: Likewise.
22776         * tests/unictype/test-ctype_alpha.c: Likewise.
22777         * tests/unictype/test-ctype_graph.c: Likewise.
22778         * tests/unictype/test-ctype_lower.c: Likewise.
22779         * tests/unictype/test-ctype_print.c: Likewise.
22780         * tests/unictype/test-ctype_punct.c: Likewise.
22781         * tests/unictype/test-ctype_upper.c: Likewise.
22782         * tests/unictype/test-decdigit.h: Likewise.
22783         * tests/unictype/test-digit.h: Likewise.
22784         * tests/unictype/test-numeric.h: Likewise.
22785         * tests/unictype/test-pr_alphabetic.c: Likewise.
22786         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22787         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22788         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22789         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22790         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22791         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22792         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22793         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22794         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22795         * tests/unictype/test-pr_cased.c: Likewise.
22796         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22797         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22798         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22799         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22800         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22801         * tests/unictype/test-pr_combining.c: Likewise.
22802         * tests/unictype/test-pr_composite.c: Likewise.
22803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22804         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22805         * tests/unictype/test-pr_deprecated.c: Likewise.
22806         * tests/unictype/test-pr_format_control.c: Likewise.
22807         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22808         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22809         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22810         * tests/unictype/test-pr_id_continue.c: Likewise.
22811         * tests/unictype/test-pr_id_start.c: Likewise.
22812         * tests/unictype/test-pr_ideographic.c: Likewise.
22813         * tests/unictype/test-pr_lowercase.c: Likewise.
22814         * tests/unictype/test-pr_math.c: Likewise.
22815         * tests/unictype/test-pr_numeric.c: Likewise.
22816         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22817         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22818         * tests/unictype/test-pr_other_math.c: Likewise.
22819         * tests/unictype/test-pr_punctuation.c: Likewise.
22820         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22821         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22822         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22823         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22824         * tests/unictype/test-pr_uppercase.c: Likewise.
22825         * tests/unictype/test-pr_xid_continue.c: Likewise.
22826         * tests/unictype/test-pr_xid_start.c: Likewise.
22827         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22828         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22829         changes.
22830         * lib/unictype/categ_Cc.h: Likewise.
22831         * lib/unictype/categ_Cf.h: Likewise.
22832         * lib/unictype/categ_Co.h: Likewise.
22833         * lib/unictype/categ_Cs.h: Likewise.
22834         * lib/unictype/categ_Lt.h: Likewise.
22835         * lib/unictype/categ_Nl.h: Likewise.
22836         * lib/unictype/categ_Pc.h: Likewise.
22837         * lib/unictype/categ_Pd.h: Likewise.
22838         * lib/unictype/categ_Pe.h: Likewise.
22839         * lib/unictype/categ_Pf.h: Likewise.
22840         * lib/unictype/categ_Pi.h: Likewise.
22841         * lib/unictype/categ_Ps.h: Likewise.
22842         * lib/unictype/categ_Z.h: Likewise.
22843         * lib/unictype/categ_Zl.h: Likewise.
22844         * lib/unictype/categ_Zp.h: Likewise.
22845         * lib/unictype/categ_Zs.h: Likewise.
22846         * lib/unictype/ctype_blank.h: Likewise.
22847         * lib/unictype/ctype_cntrl.h: Likewise.
22848         * lib/unictype/ctype_digit.h: Likewise.
22849         * lib/unictype/ctype_space.h: Likewise.
22850         * lib/unictype/ctype_xdigit.h: Likewise.
22851         * lib/unictype/mirror.h: Likewise.
22852         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22853         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22854         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22855         * lib/unictype/pr_bidi_control.h: Likewise.
22856         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22857         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22858         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22859         * lib/unictype/pr_bidi_pdf.h: Likewise.
22860         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22861         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22862         * lib/unictype/pr_dash.h: Likewise.
22863         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22864         * lib/unictype/pr_diacritic.h: Likewise.
22865         * lib/unictype/pr_extender.h: Likewise.
22866         * lib/unictype/pr_hex_digit.h: Likewise.
22867         * lib/unictype/pr_hyphen.h: Likewise.
22868         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22869         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22870         * lib/unictype/pr_ignorable_control.h: Likewise.
22871         * lib/unictype/pr_iso_control.h: Likewise.
22872         * lib/unictype/pr_join_control.h: Likewise.
22873         * lib/unictype/pr_left_of_pair.h: Likewise.
22874         * lib/unictype/pr_line_separator.h: Likewise.
22875         * lib/unictype/pr_logical_order_exception.h: Likewise.
22876         * lib/unictype/pr_non_break.h: Likewise.
22877         * lib/unictype/pr_not_a_character.h: Likewise.
22878         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22879         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22880         * lib/unictype/pr_other_id_start.h: Likewise.
22881         * lib/unictype/pr_other_lowercase.h: Likewise.
22882         * lib/unictype/pr_other_uppercase.h: Likewise.
22883         * lib/unictype/pr_paired_punctuation.h: Likewise.
22884         * lib/unictype/pr_paragraph_separator.h: Likewise.
22885         * lib/unictype/pr_pattern_syntax.h: Likewise.
22886         * lib/unictype/pr_pattern_white_space.h: Likewise.
22887         * lib/unictype/pr_private_use.h: Likewise.
22888         * lib/unictype/pr_quotation_mark.h: Likewise.
22889         * lib/unictype/pr_radical.h: Likewise.
22890         * lib/unictype/pr_soft_dotted.h: Likewise.
22891         * lib/unictype/pr_space.h: Likewise.
22892         * lib/unictype/pr_titlecase.h: Likewise.
22893         * lib/unictype/pr_variation_selector.h: Likewise.
22894         * lib/unictype/pr_white_space.h: Likewise.
22895         * lib/unictype/pr_zero_width.h: Likewise.
22896         * lib/unictype/sy_c_ident.h: Likewise.
22897         * lib/unictype/sy_c_whitespace.h: Likewise.
22898         * lib/unictype/sy_java_whitespace.h: Likewise.
22899         * lib/uninorm/composition-table.gperf: Likewise.
22900         * lib/uninorm/decomposition-table1.h: Likewise.
22901         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22902         LB8.
22903         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22904         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22905         * modules/unictype/*: Bump version number of expected libunistring
22906         version.
22907
22908 2011-01-09  Bruno Haible  <bruno@clisp.org>
22909
22910         Update to Unicode 5.2.0.
22911         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22912         trailing whitespace removed.
22913
22914 2011-01-09  Bruno Haible  <bruno@clisp.org>
22915
22916         New Unicode character properties, from Unicode 5.2.0.
22917         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22918         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22919         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22920         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22921         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22922         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22923         uc_is_property_cased, uc_is_property_case_ignorable,
22924         uc_is_property_changes_when_lowercased,
22925         uc_is_property_changes_when_uppercased,
22926         uc_is_property_changes_when_titlecased,
22927         uc_is_property_changes_when_casefolded,
22928         uc_is_property_changes_when_casemapped): New declarations.
22929         * lib/unictype/pr_byname.gperf: Add the new properties.
22930         * modules/unictype/property-byname (Depends-on): Depend on the new
22931         properties modules.
22932         * modules/unictype/property-all (Depends-on): Likewise.
22933         * MODULES.html.sh (Unicode string functions): Add
22934         unictype/property-case-ignorable, unictype/property-cased,
22935         unictype/property-changes-when-casefolded,
22936         unictype/property-changes-when-casemapped,
22937         unictype/property-changes-when-lowercased,
22938         unictype/property-changes-when-titlecased,
22939         unictype/property-changes-when-uppercased.
22940
22941         New module 'unictype/property-changes-when-casemapped'.
22942         * modules/unictype/property-changes-when-casemapped: New file.
22943         * lib/unictype/pr_changes_when_casemapped.c: New file.
22944         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22945         generated by gen-uni-tables.
22946         * modules/unictype/property-changes-when-casemapped-tests: New file.
22947         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22948         automatically generated by gen-uni-tables.
22949
22950         New module 'unictype/property-changes-when-casefolded'.
22951         * modules/unictype/property-changes-when-casefolded: New file.
22952         * lib/unictype/pr_changes_when_casefolded.c: New file.
22953         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22954         generated by gen-uni-tables.
22955         * modules/unictype/property-changes-when-casefolded-tests: New file.
22956         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22957         automatically generated by gen-uni-tables.
22958
22959         New module 'unictype/property-changes-when-titlecased'.
22960         * modules/unictype/property-changes-when-titlecased: New file.
22961         * lib/unictype/pr_changes_when_titlecased.c: New file.
22962         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22963         generated by gen-uni-tables.
22964         * modules/unictype/property-changes-when-titlecased-tests: New file.
22965         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22966         automatically generated by gen-uni-tables.
22967
22968         New module 'unictype/property-changes-when-uppercased'.
22969         * modules/unictype/property-changes-when-uppercased: New file.
22970         * lib/unictype/pr_changes_when_uppercased.c: New file.
22971         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22972         generated by gen-uni-tables.
22973         * modules/unictype/property-changes-when-uppercased-tests: New file.
22974         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22975         automatically generated by gen-uni-tables.
22976
22977         New module 'unictype/property-changes-when-lowercased'.
22978         * modules/unictype/property-changes-when-lowercased: New file.
22979         * lib/unictype/pr_changes_when_lowercased.c: New file.
22980         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22981         generated by gen-uni-tables.
22982         * modules/unictype/property-changes-when-lowercased-tests: New file.
22983         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22984         automatically generated by gen-uni-tables.
22985
22986         New module 'unictype/property-case-ignorable'.
22987         * modules/unictype/property-case-ignorable: New file.
22988         * lib/unictype/pr_case_ignorable.c: New file.
22989         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22990         by gen-uni-tables.
22991         * modules/unictype/property-case-ignorable-tests: New file.
22992         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22993         generated by gen-uni-tables.
22994
22995         New module 'unictype/property-cased'.
22996         * modules/unictype/property-cased: New file.
22997         * lib/unictype/pr_cased.c: New file.
22998         * lib/unictype/pr_cased.h: New file, automatically generated by
22999         gen-uni-tables.
23000         * modules/unictype/property-cased-tests: New file.
23001         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23002         gen-uni-tables.
23003
23004 2011-01-09  Bruno Haible  <bruno@clisp.org>
23005
23006         Update to Unicode 5.2.0.
23007         * lib/gen-uni-tables.c (output_predicate, output_category,
23008         output_combclass, output_bidi_category, output_decimal_digit_test,
23009         output_decimal_digit, output_digit_test, output_digit,
23010         output_numeric_test, output_numeric, output_mirror, output_scripts,
23011         output_scripts_byname, output_blocks, output_ident_category): Fix
23012         comment header.
23013         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23014         get_wbp.
23015         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23016         items.
23017         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23018         Changes_When_Lowercased, Changes_When_Uppercased,
23019         Changes_When_Titlecased, Changes_When_Casefolded,
23020         Changes_When_Casemapped.
23021         (is_property_alphabetic, is_property_default_ignorable_code_point):
23022         Update for Unicode 5.2.0.
23023         (is_property_cased, is_property_case_ignorable,
23024         is_property_changes_when_lowercased,
23025         is_property_changes_when_uppercased,
23026         is_property_changes_when_titlecased,
23027         is_property_changes_when_casefolded,
23028         is_property_changes_when_casemapped): New functions.
23029         (output_properties): Output also the properties cased, case_ignorable,
23030         changes_when_lowercased, changes_when_uppercased,
23031         changes_when_titlecased, changes_when_casefolded,
23032         changes_when_casemapped.
23033         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23034         Unicode TR#11 revision 17 -> 19.
23035         (LBP_CP): New enumeration value.
23036         (LBP_*): Adjust values accordingly.
23037         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23038         TR#14 revision 22 -> 24.
23039         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23040         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23041         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23042         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23043         is_WBP_MIDLETTER.
23044         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23045         the code1 and code2 of each composition rule.
23046         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23047         * lib/unicase/ignorable.h: Likewise.
23048         * lib/unicase/tocasefold.h: Likewise.
23049         * lib/unicase/tolower.h: Likewise.
23050         * lib/unicase/totitle.h: Likewise.
23051         * lib/unicase/toupper.h: Likewise.
23052         * lib/unictype/bidi_of.h: Likewise.
23053         * lib/unictype/blocks.h: Likewise.
23054         * lib/unictype/categ_C.h: Likewise.
23055         * lib/unictype/categ_Cf.h: Likewise.
23056         * lib/unictype/categ_Cn.h: Likewise.
23057         * lib/unictype/categ_L.h: Likewise.
23058         * lib/unictype/categ_Ll.h: Likewise.
23059         * lib/unictype/categ_Lm.h: Likewise.
23060         * lib/unictype/categ_Lo.h: Likewise.
23061         * lib/unictype/categ_Lu.h: Likewise.
23062         * lib/unictype/categ_M.h: Likewise.
23063         * lib/unictype/categ_Mc.h: Likewise.
23064         * lib/unictype/categ_Mn.h: Likewise.
23065         * lib/unictype/categ_N.h: Likewise.
23066         * lib/unictype/categ_Nd.h: Likewise.
23067         * lib/unictype/categ_Nl.h: Likewise.
23068         * lib/unictype/categ_No.h: Likewise.
23069         * lib/unictype/categ_P.h: Likewise.
23070         * lib/unictype/categ_Pd.h: Likewise.
23071         * lib/unictype/categ_Po.h: Likewise.
23072         * lib/unictype/categ_S.h: Likewise.
23073         * lib/unictype/categ_Sc.h: Likewise.
23074         * lib/unictype/categ_So.h: Likewise.
23075         * lib/unictype/categ_of.h: Likewise.
23076         * lib/unictype/combining.h: Likewise.
23077         * lib/unictype/ctype_alnum.h: Likewise.
23078         * lib/unictype/ctype_alpha.h: Likewise.
23079         * lib/unictype/ctype_graph.h: Likewise.
23080         * lib/unictype/ctype_lower.h: Likewise.
23081         * lib/unictype/ctype_print.h: Likewise.
23082         * lib/unictype/ctype_punct.h: Likewise.
23083         * lib/unictype/ctype_upper.h: Likewise.
23084         * lib/unictype/decdigit.h: Likewise.
23085         * lib/unictype/digit.h: Likewise.
23086         * lib/unictype/numeric.h: Likewise.
23087         * lib/unictype/pr_alphabetic.h: Likewise.
23088         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23089         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23090         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23091         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23092         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23093         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23094         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23095         * lib/unictype/pr_combining.h: Likewise.
23096         * lib/unictype/pr_composite.h: Likewise.
23097         * lib/unictype/pr_currency_symbol.h: Likewise.
23098         * lib/unictype/pr_dash.h: Likewise.
23099         * lib/unictype/pr_decimal_digit.h: Likewise.
23100         * lib/unictype/pr_deprecated.h: Likewise.
23101         * lib/unictype/pr_diacritic.h: Likewise.
23102         * lib/unictype/pr_extender.h: Likewise.
23103         * lib/unictype/pr_grapheme_base.h: Likewise.
23104         * lib/unictype/pr_grapheme_extend.h: Likewise.
23105         * lib/unictype/pr_grapheme_link.h: Likewise.
23106         * lib/unictype/pr_id_continue.h: Likewise.
23107         * lib/unictype/pr_id_start.h: Likewise.
23108         * lib/unictype/pr_ideographic.h: Likewise.
23109         * lib/unictype/pr_ignorable_control.h: Likewise.
23110         * lib/unictype/pr_logical_order_exception.h: Likewise.
23111         * lib/unictype/pr_lowercase.h: Likewise.
23112         * lib/unictype/pr_numeric.h: Likewise.
23113         * lib/unictype/pr_other_alphabetic.h: Likewise.
23114         * lib/unictype/pr_punctuation.h: Likewise.
23115         * lib/unictype/pr_sentence_terminal.h: Likewise.
23116         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23117         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23118         * lib/unictype/pr_unified_ideograph.h: Likewise.
23119         * lib/unictype/pr_uppercase.h: Likewise.
23120         * lib/unictype/pr_xid_continue.h: Likewise.
23121         * lib/unictype/pr_xid_start.h: Likewise.
23122         * lib/unictype/pr_zero_width.h: Likewise.
23123         * lib/unictype/scripts.h: Likewise.
23124         * lib/unictype/scripts_byname.gperf: Likewise.
23125         * lib/unictype/sy_java_ident.h: Likewise.
23126         * lib/unigbrk/gbrkprop.h: Likewise.
23127         * lib/unilbrk/lbrkprop1.h: Likewise.
23128         * lib/unilbrk/lbrkprop2.h: Likewise.
23129         * lib/unilbrk/lbrktables.h: Likewise.
23130         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23131         LBP_CP. Implement rule LB30.
23132         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23133         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23134         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23135         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23136         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23137         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23138         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23139         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23140         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23141         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23142         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23143         bits instead of 16 bits in the code1 and code2 of each composition
23144         rule.
23145         (uc_composition): Update for Unicode 5.2.0.
23146         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23147         * lib/uninorm/decomposition-table2.h: Likewise.
23148         * lib/uniwbrk/wbrkprop.h: Likewise.
23149         * tests/unicase/test-cased.c: Likewise.
23150         * tests/unicase/test-ignorable.c: Likewise.
23151         * tests/unicase/test-uc_tolower.c: Likewise.
23152         * tests/unicase/test-uc_totitle.c: Likewise.
23153         * tests/unicase/test-uc_toupper.c: Likewise.
23154         * tests/unictype/test-categ_C.c: Likewise.
23155         * tests/unictype/test-categ_Cf.c: Likewise.
23156         * tests/unictype/test-categ_Cn.c: Likewise.
23157         * tests/unictype/test-categ_L.c: Likewise.
23158         * tests/unictype/test-categ_Ll.c: Likewise.
23159         * tests/unictype/test-categ_Lm.c: Likewise.
23160         * tests/unictype/test-categ_Lo.c: Likewise.
23161         * tests/unictype/test-categ_Lu.c: Likewise.
23162         * tests/unictype/test-categ_M.c: Likewise.
23163         * tests/unictype/test-categ_Mc.c: Likewise.
23164         * tests/unictype/test-categ_Mn.c: Likewise.
23165         * tests/unictype/test-categ_N.c: Likewise.
23166         * tests/unictype/test-categ_Nd.c: Likewise.
23167         * tests/unictype/test-categ_Nl.c: Likewise.
23168         * tests/unictype/test-categ_No.c: Likewise.
23169         * tests/unictype/test-categ_P.c: Likewise.
23170         * tests/unictype/test-categ_Pd.c: Likewise.
23171         * tests/unictype/test-categ_Po.c: Likewise.
23172         * tests/unictype/test-categ_S.c: Likewise.
23173         * tests/unictype/test-categ_Sc.c: Likewise.
23174         * tests/unictype/test-categ_So.c: Likewise.
23175         * tests/unictype/test-ctype_alnum.c: Likewise.
23176         * tests/unictype/test-ctype_alpha.c: Likewise.
23177         * tests/unictype/test-ctype_graph.c: Likewise.
23178         * tests/unictype/test-ctype_lower.c: Likewise.
23179         * tests/unictype/test-ctype_print.c: Likewise.
23180         * tests/unictype/test-ctype_punct.c: Likewise.
23181         * tests/unictype/test-ctype_upper.c: Likewise.
23182         * tests/unictype/test-decdigit.h: Likewise.
23183         * tests/unictype/test-digit.h: Likewise.
23184         * tests/unictype/test-numeric.h: Likewise.
23185         * tests/unictype/test-pr_alphabetic.c: Likewise.
23186         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23187         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23188         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23189         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23190         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23192         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23193         * tests/unictype/test-pr_combining.c: Likewise.
23194         * tests/unictype/test-pr_composite.c: Likewise.
23195         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23196         * tests/unictype/test-pr_dash.c: Likewise.
23197         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23198         * tests/unictype/test-pr_deprecated.c: Likewise.
23199         * tests/unictype/test-pr_diacritic.c: Likewise.
23200         * tests/unictype/test-pr_extender.c: Likewise.
23201         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23202         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23203         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23204         * tests/unictype/test-pr_id_continue.c: Likewise.
23205         * tests/unictype/test-pr_id_start.c: Likewise.
23206         * tests/unictype/test-pr_ideographic.c: Likewise.
23207         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23208         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23209         * tests/unictype/test-pr_lowercase.c: Likewise.
23210         * tests/unictype/test-pr_numeric.c: Likewise.
23211         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23212         * tests/unictype/test-pr_punctuation.c: Likewise.
23213         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23214         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23215         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23216         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23217         * tests/unictype/test-pr_uppercase.c: Likewise.
23218         * tests/unictype/test-pr_xid_continue.c: Likewise.
23219         * tests/unictype/test-pr_xid_start.c: Likewise.
23220         * tests/unictype/test-pr_zero_width.c: Likewise.
23221         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23222         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23223         changed behaviour: line breaking is now disallowed between a letter
23224         or '=' and '('.
23225         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23226         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23227         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23228         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23229         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23230         lib/uniwidth/width.c.
23231         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23232         without comments, but with the original copyright notice.
23233         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23234         changes.
23235         * lib/unictype/categ_Cc.h: Likewise.
23236         * lib/unictype/categ_Co.h: Likewise.
23237         * lib/unictype/categ_Cs.h: Likewise.
23238         * lib/unictype/categ_Lt.h: Likewise.
23239         * lib/unictype/categ_Me.h: Likewise.
23240         * lib/unictype/categ_Pc.h: Likewise.
23241         * lib/unictype/categ_Pe.h: Likewise.
23242         * lib/unictype/categ_Pf.h: Likewise.
23243         * lib/unictype/categ_Pi.h: Likewise.
23244         * lib/unictype/categ_Ps.h: Likewise.
23245         * lib/unictype/categ_Sk.h: Likewise.
23246         * lib/unictype/categ_Sm.h: Likewise.
23247         * lib/unictype/categ_Z.h: Likewise.
23248         * lib/unictype/categ_Zl.h: Likewise.
23249         * lib/unictype/categ_Zp.h: Likewise.
23250         * lib/unictype/categ_Zs.h: Likewise.
23251         * lib/unictype/ctype_blank.h: Likewise.
23252         * lib/unictype/ctype_cntrl.h: Likewise.
23253         * lib/unictype/ctype_digit.h: Likewise.
23254         * lib/unictype/ctype_space.h: Likewise.
23255         * lib/unictype/ctype_xdigit.h: Likewise.
23256         * lib/unictype/mirror.h: Likewise.
23257         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23258         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23259         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23260         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23261         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23262         * lib/unictype/pr_bidi_control.h: Likewise.
23263         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23264         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23265         * lib/unictype/pr_bidi_pdf.h: Likewise.
23266         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23267         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23268         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23269         * lib/unictype/pr_format_control.h: Likewise.
23270         * lib/unictype/pr_hex_digit.h: Likewise.
23271         * lib/unictype/pr_hyphen.h: Likewise.
23272         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23273         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23274         * lib/unictype/pr_iso_control.h: Likewise.
23275         * lib/unictype/pr_join_control.h: Likewise.
23276         * lib/unictype/pr_left_of_pair.h: Likewise.
23277         * lib/unictype/pr_line_separator.h: Likewise.
23278         * lib/unictype/pr_math.h: Likewise.
23279         * lib/unictype/pr_non_break.h: Likewise.
23280         * lib/unictype/pr_not_a_character.h: Likewise.
23281         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23282         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23283         * lib/unictype/pr_other_id_continue.h: Likewise.
23284         * lib/unictype/pr_other_id_start.h: Likewise.
23285         * lib/unictype/pr_other_lowercase.h: Likewise.
23286         * lib/unictype/pr_other_math.h: Likewise.
23287         * lib/unictype/pr_other_uppercase.h: Likewise.
23288         * lib/unictype/pr_paired_punctuation.h: Likewise.
23289         * lib/unictype/pr_paragraph_separator.h: Likewise.
23290         * lib/unictype/pr_pattern_syntax.h: Likewise.
23291         * lib/unictype/pr_pattern_white_space.h: Likewise.
23292         * lib/unictype/pr_private_use.h: Likewise.
23293         * lib/unictype/pr_quotation_mark.h: Likewise.
23294         * lib/unictype/pr_radical.h: Likewise.
23295         * lib/unictype/pr_soft_dotted.h: Likewise.
23296         * lib/unictype/pr_space.h: Likewise.
23297         * lib/unictype/pr_titlecase.h: Likewise.
23298         * lib/unictype/pr_variation_selector.h: Likewise.
23299         * lib/unictype/pr_white_space.h: Likewise.
23300         * lib/unictype/sy_c_ident.h: Likewise.
23301         * lib/unictype/sy_c_whitespace.h: Likewise.
23302         * lib/unictype/sy_java_whitespace.h: Likewise.
23303         * modules/uni*/*: Bump version number of expected libunistring version.
23304         Reported by Simon Josefsson.
23305
23306 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23307
23308         useless-if-before-free: fix typo in --help and make the internal,
23309         automatic version date update process work once again.
23310         --help output contained a NUL character instead of the
23311         backslash-zero that was intended.  Also, the "must lie within
23312         the first 8 lines" line is on line 9, and hence not getting
23313         automatically updated.
23314         * build-aux/useless-if-before-free: Fix the former by adding a
23315         backslash, and the latter by condensing the three lines of what-it-does
23316         to a single line, leaving one line of slack for the future.
23317
23318 2011-01-09  Bruno Haible  <bruno@clisp.org>
23319
23320         uniwidth/width: Fix width of U+1D173..U+1D17A.
23321         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23322         symbolic_width, output_width_property_test): New functions.
23323         (main): Invoke output_nonspacing_property, output_width_property_test.
23324         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23325         U+1D173..U+1D17A.
23326         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23327         1.
23328         * modules/uniwidth/*: Bump version number of expected libunistring
23329         version.
23330         * modules/unilbrk/*: Likewise.
23331
23332 2011-01-08  Bruno Haible  <bruno@clisp.org>
23333
23334         uninorm tests: Preserve copyright of Unicode data file.
23335         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23336         Mention modifications.
23337
23338 2011-01-08  Bruno Haible  <bruno@clisp.org>
23339
23340         gen-uni-tables: Prepare for Unicode 5.2.0.
23341         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23342         (debug_output_lbp, output_lbp): Update.
23343
23344 2011-01-08  Bruno Haible  <bruno@clisp.org>
23345
23346         unilbrk: Clarify gen-uni-tables.c code.
23347         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23348         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23349         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23350
23351 2011-01-07  Bruno Haible  <bruno@clisp.org>
23352
23353         strtod: Restore errno when successfully parsing Infinity or NaN.
23354         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23355         restore the original errno.
23356
23357 2011-01-07  Bruno Haible  <bruno@clisp.org>
23358
23359         remove test: Avoid failure on HP-UX 11.
23360         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23361
23362 2011-01-07  Bruno Haible  <bruno@clisp.org>
23363
23364         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23365         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23366         error code.
23367
23368 2011-01-07  Pádraig Brady <P@draigBrady.com>
23369
23370         ignore-value: fixup comments, and add Eric Blake
23371         as an author since he rewrote the macros.
23372         * lib/ignore-value.h (ignore_value):  State that
23373         we now support aggregates.  Also specify exactly
23374         when the GCC warn_unused_result feature was added.
23375
23376 2011-01-06  Eric Blake  <eblake@redhat.com>
23377
23378         ignore-value: support aggregate types
23379         * lib/ignore-value.h (ignore_value): Provide separate gcc
23380         definition.
23381         * modules/ignore-value-tests: New test module.
23382         * tests/test-ignore-value.c: New test.
23383
23384         maint.mk: improve sc_prohibit_strcmp regex
23385         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23386         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23387         definition of STRNEQ.
23388
23389         signal: work around Haiku issue with SIGBUS
23390         * lib/siglist.h: Add comment.
23391         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23392         strsignal's favoring of SIGSEGV.
23393         * tests/test-signal.c (main): Avoid test failure.
23394         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23395         Reported by Scott McCreary.
23396
23397         maint.mk: add pre-release check to ensure submodule commits are public
23398         * top/maint.mk (public-submodule-commit): New rule.
23399         (submodule-checks): New variable.
23400         (alpha beta stable): Depend on the variable.
23401
23402 2011-01-05  Pádraig Brady <P@draigBrady.com>
23403         and Jim Meyering  <meyering@redhat.com>
23404
23405         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23406         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23407         (ATTRIBUTE_DEPRECATED): Define.
23408         (_ignore_case): New function.
23409         (ignore_value): New macro, to replace the old function.
23410         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23411         * modules/ignore-value (Depends-on): Add stdint.
23412
23413 2011-01-04  Eric Blake  <eblake@redhat.com>
23414
23415         doc: regenerate INSTALL
23416         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23417         @firstparagraphindent support, now that autoconf dropped it.
23418         (INSTALL_PRELUDE): Reinstate old macro.
23419         * doc/install.texi: Resync from autoconf.
23420         * doc/INSTALL: Reflect recent autoconf update.
23421         * doc/INSTALL.ISO: Likewise.
23422         * doc/INSTALL.UTF-8: Likewise.
23423         Reported by Karl Berry.
23424
23425 2011-01-04  Bruce Korb  <address@hidden>
23426
23427         git-version-gen: avoid a sub-shell
23428         * build-aux/git-version-gen: Redirect stderr in `...` via
23429         "exec 2>...", rather than via an added sub-shell.
23430
23431 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23432
23433         git-version-gen: use (...) rather than sh -c '...'
23434         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23435         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23436
23437 2011-01-03  Jim Meyering  <meyering@redhat.com>
23438
23439         git-version-gen: convert leading TABs to spaces
23440         * build-aux/git-version-gen: Expand leading TABs.
23441
23442         git-version-gen: handle failed "git rev-list"
23443         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23444         from git and proceeding as if it had succeeded but printed no SHA1
23445         checksums, suppress the diagnostic and handle the failure.
23446         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23447
23448         git-version-gen: include command name in one more diagnostic
23449         * build-aux/git-version-gen: When the required .tarball-version file
23450         was missing or unreadable, you might see the diagnostic from "cat",
23451         but no trace of the name of the invoking script.  Now, you still see
23452         the diagnostic from cat, but also get one from "git-version-gen: ".
23453         Inspired by a patch from Bruce Korb.
23454
23455         update-copyright: adjust test to match changed code
23456         * tests/test-update-copyright.sh: Change test's expected output
23457         to match new actual output.
23458
23459 2011-01-02  Bruno Haible  <bruno@clisp.org>
23460
23461         getlogin_r: Avoid test failure on HP-UX 11.
23462         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23463         ERANGE when the second argument is zero.
23464         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23465         portability problem.
23466
23467 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23468
23469         * build-aux/update-copyright: doc Simon's changes
23470
23471 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23472
23473         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23474         environment variable.
23475
23476 2011-01-02  Bruno Haible  <bruno@clisp.org>
23477
23478         unigbrk: Avoid gcc warnings.
23479         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23480         unused variable.
23481         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23482         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23483         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23484         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23485         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23486         Change type of first argument to 'const char *'.
23487         (main): Remove unused variable.
23488         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23489         type of first argument to 'const char *'.
23490         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23491         Likewise.
23492         (main): Change type of variable 's'.
23493         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23494         to 'int'.
23495
23496 2011-01-02  Bruno Haible  <bruno@clisp.org>
23497
23498         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23499         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23500         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23501         bug.
23502         * lib/pwrite.c: Undo 2010-12-31 patch.
23503         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23504
23505 2011-01-02  Bruno Haible  <bruno@clisp.org>
23506
23507         pread: Fix test whether it works.
23508         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23509
23510 2011-01-02  Bruno Haible  <bruno@clisp.org>
23511
23512         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23513         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23514         ends in "6". Don't require a specific month name. Try also the locale
23515         names found on HP-UX 11 and Solaris 7.
23516
23517 2011-01-02  Bruno Haible  <bruno@clisp.org>
23518
23519         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23520         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23521         C linkage.
23522         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23523
23524 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23525
23526         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23527         for consistency, since the "cluster" term is not used elsewhere.
23528         * lib/unigbrk.in.h: Update name.
23529         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23530         * lib/unigbrk/u16-grapheme-next.c: Update name.
23531         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23532         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23533         * lib/unigbrk/u32-grapheme-next.c: Update name.
23534         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23535         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23536         * lib/unigbrk/u8-grapheme-next.c: Update name.
23537         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23538         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23539         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23540         Suggested by Bruno Haible.
23541
23542 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23543
23544         Remove module 'u8-grapheme-len' as too redundant with
23545         'u8-grapheme-next'.
23546         * modules/unigbrk/u8-grapheme-len: Delete file.
23547         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23548         * lib/unigbrk.in.h: Remove prototype for deleted function.
23549         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23550         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23551
23552         Remove module 'u16-grapheme-len' as too redundant with
23553         'u16-grapheme-next'.
23554         * modules/unigbrk/u16-grapheme-len: Delete file.
23555         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23556         * lib/unigbrk.in.h: Remove prototype for deleted function.
23557         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23558         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23559
23560         Remove module 'u32-grapheme-len' as too redundant with
23561         'u32-grapheme-next'.
23562         * modules/unigbrk/u32-grapheme-len: Delete file.
23563         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23564         * lib/unigbrk.in.h: Remove prototype for deleted function.
23565         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23566         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23567
23568         Suggested by Bruno Haible.
23569
23570 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23571
23572         * unigbrk.in.h: Fix typo: "ben" => "been".
23573         Reported by Bruno Haible.
23574
23575 2011-01-01  Jim Meyering  <meyering@redhat.com>
23576
23577         maint: update almost all copyright ranges to include 2011
23578         Run the new "make update-copyright" rule.
23579
23580 2011-01-01  Jim Meyering  <meyering@redhat.com>
23581
23582         maint: update-copyright: exempt doc/INSTALL*
23583         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23584         since they are generated.  Suggested by Bruno Haible.
23585
23586 2011-01-01  Jim Meyering  <meyering@redhat.com>
23587
23588         maint: refine the update-copyright rule
23589         * Makefile (update-copyright): Also exclude any file that includes
23590         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23591         code that merely generates the comment.
23592
23593 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23594
23595         New module 'u8-grapheme-len'.
23596         * modules/unigbrk/u8-grapheme-len: New file.
23597         * modules/unigbrk/u8-grapheme-len-tests: New file.
23598         * lib/unigbrk.in.h: Add prototype for new function.
23599         * lib/unigbrk/u8-grapheme-len.c: New file.
23600         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23601
23602         New module 'u16-grapheme-len'.
23603         * modules/unigbrk/u16-grapheme-len: New file.
23604         * modules/unigbrk/u16-grapheme-len-tests: New file.
23605         * lib/unigbrk.in.h: Add prototype for new function.
23606         * lib/unigbrk/u16-grapheme-len.c: New file.
23607         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23608
23609         New module 'u32-grapheme-len'.
23610         * modules/unigbrk/u32-grapheme-len: New file.
23611         * modules/unigbrk/u32-grapheme-len-tests: New file.
23612         * lib/unigbrk.in.h: Add prototype for new function.
23613         * lib/unigbrk/u32-grapheme-len.c: New file.
23614         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23615
23616         New module 'u8-grapheme-next'.
23617         * modules/unigbrk/u8-grapheme-next: New file.
23618         * modules/unigbrk/u8-grapheme-next-tests: New file.
23619         * lib/unigbrk.in.h: Add prototype for new function.
23620         * lib/unigbrk/u8-grapheme-next.c: New file.
23621         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23622
23623         New module 'u16-grapheme-next'.
23624         * modules/unigbrk/u16-grapheme-next: New file.
23625         * modules/unigbrk/u16-grapheme-next-tests: New file.
23626         * lib/unigbrk.in.h: Add prototype for new function.
23627         * lib/unigbrk/u16-grapheme-next.c: New file.
23628         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23629
23630         New module 'u32-grapheme-next'.
23631         * modules/unigbrk/u32-grapheme-next: New file.
23632         * modules/unigbrk/u32-grapheme-next-tests: New file.
23633         * lib/unigbrk.in.h: Add prototype for new function.
23634         * lib/unigbrk/u32-grapheme-next.c: New file.
23635         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23636
23637         New module 'u8-grapheme-prev'.
23638         * modules/unigbrk/u8-grapheme-prev: New file.
23639         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23640         * lib/unigbrk.in.h: Add prototype for new function.
23641         * lib/unigbrk/u8-grapheme-prev.c: New file.
23642         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23643
23644         New module 'u16-grapheme-prev'.
23645         * modules/unigbrk/u16-grapheme-prev: New file.
23646         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23647         * lib/unigbrk.in.h: Add prototype for new function.
23648         * lib/unigbrk/u16-grapheme-prev.c: New file.
23649         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23650
23651         New module 'u32-grapheme-prev'.
23652         * modules/unigbrk/u32-grapheme-prev: New file.
23653         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23654         * lib/unigbrk.in.h: Add prototype for new function.
23655         * lib/unigbrk/u32-grapheme-prev.c: New file.
23656         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23657
23658         New module 'u8-grapheme-breaks'.
23659         * modules/unigbrk/u8-grapheme-breaks: New file.
23660         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23661         * lib/unigbrk.in.h: Add prototype for new function.
23662         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23663         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23664
23665         New module 'u16-grapheme-breaks'.
23666         * modules/unigbrk/u16-grapheme-breaks: New file.
23667         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23668         * lib/unigbrk.in.h: Add prototype for new function.
23669         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23670         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23671
23672         New module 'u32-grapheme-breaks'.
23673         * modules/unigbrk/u32-grapheme-breaks: New file.
23674         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23675         * lib/unigbrk.in.h: Add prototype for new function.
23676         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23677         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23678
23679         New module 'ulc-grapheme-breaks'.
23680         * modules/unigbrk/ulc-grapheme-breaks: New file.
23681         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23682         * m4/locale-ar.m4: New file.
23683         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23684         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23685         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23686
23687 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23688
23689         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23690         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23691         modified how this file was generated before I initially submitted
23692         the module, but failed to regenerate it.  This meant that several
23693         of the level2 entries were wrong.
23694         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23695         Remove the division-by-2 that is folded into the table now that
23696         gbrkprop.h has been regenerated properly.  Now -1 entries are
23697         handled correctly.
23698
23699         New module 'unigbrk/uc-gbrk-prop-tests'.
23700         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23701         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23702         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23703         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23704
23705 2011-01-01  Bruno Haible  <bruno@clisp.org>
23706
23707         Avoid use of hexadecimal escapes.
23708         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23709         instead of hexadecimal escapes.
23710
23711 2011-01-01  Jim Meyering  <meyering@redhat.com>
23712
23713         maint: new rule to update copyright year ranges
23714         * Makefile (update-copyright): New rule.
23715
23716         maint: indent with TABs in Makefile
23717         * Makefile: Expand leading sequences of spaces to TABs
23718
23719         version-etc: update the copyright year it reports
23720         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23721
23722 2010-12-31  Bruno Haible  <bruno@clisp.org>
23723
23724         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23725         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23726         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23727         zero.
23728
23729 2010-12-31  Bruno Haible  <bruno@clisp.org>
23730
23731         pwrite: Work around HP-UX 11.11 bug.
23732         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23733         works and set REPLACE_PWRITE if not.
23734         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23735         function.
23736         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23737
23738 2010-12-31  Bruno Haible  <bruno@clisp.org>
23739
23740         pread: Work around HP-UX 11 bugs.
23741         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23742         and set REPLACE_PREAD if not.
23743         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23744
23745 2010-12-31  Eric Blake  <eblake@redhat.com>
23746
23747         nl_langinfo: fix YESEXPR on Irix 6.5
23748         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23749         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23750         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23751         it.
23752
23753 2010-12-31  Bruno Haible  <bruno@clisp.org>
23754
23755         iconv: Document HP-UX 11 bug.
23756         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23757
23758 2010-12-31  Bruno Haible  <bruno@clisp.org>
23759
23760         ldexpl: Fix link error on HP-UX 11.
23761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23762         LDEXPL_LIBM, using $ISNANL_LIBM.
23763
23764 2010-12-31  Eric Blake  <eblake@redhat.com>
23765
23766         ftello: avoid compilation failure with SunStudio c89
23767         * lib/ftello.c (ftello): Use lseek, not llseek.
23768
23769         tests: avoid failing coreutils tests on cygwin
23770         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23771         (create_exe_shims_): Return 0 when skipping.
23772
23773 2010-12-31  Bruno Haible  <bruno@clisp.org>
23774
23775         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23776         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23777
23778 2010-12-31  Bruno Haible  <bruno@clisp.org>
23779
23780         waitpid: Fix link error in C++ mode.
23781         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23782
23783 2010-12-31  Bruno Haible  <bruno@clisp.org>
23784
23785         isnan: Use GCC built-ins when possible.
23786         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23787         __builtin_isnan.
23788         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23789         (isnan): Define using GCC built-ins for GCC >= 4.0.
23790
23791 2010-12-31  Bruno Haible  <bruno@clisp.org>
23792
23793         isnand: Fix mistake.
23794         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23795         __builtin_isnand.
23796
23797 2010-12-31  Bruno Haible  <bruno@clisp.org>
23798
23799         open: Avoid C++ error on HP-UX 11.
23800         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23801
23802 2010-12-31  Bruno Haible  <bruno@clisp.org>
23803
23804         time_r: Add missing declarations on HP-UX 11.
23805         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23806         instead of HAVE_LOCALTIME_R.
23807         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23808         HAVE_LOCALTIME_R always.
23809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23810         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23811         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23812         HAVE_LOCALTIME_R.
23813         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23814         * doc/posix-functions/localtime_r.texi: Likewise.
23815
23816 2010-12-29  Eric Blake  <eblake@redhat.com>
23817
23818         mountlist: tweak previous commit
23819         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23820         Reported by Paul Eggert.
23821
23822         mountlist: fix local drive detection on cygwin
23823         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23824         that works for cygwin.
23825
23826 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23827
23828         ftoastr, snprintf: ftoastr + snprintf module
23829         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23830         since the snprintf module now should be good enough here.
23831         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23832         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23833         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23834         GNULIB_SNPRINTF only for the test directory, and the latter
23835         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23836         seems to suffice by itself.
23837
23838 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23839
23840         alloca: one step towards thread-safety
23841         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23842         need for a static variable.  All callers changed.  This does not
23843         make the alloca replacement thread-safe, but it's one step.
23844
23845         tests: minor indenting change
23846         * tests/init.sh: Sync from coreutils housekeeping patch
23847         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23848         to keep lines within 80 columns.
23849
23850 2010-12-28  Jim Meyering  <meyering@redhat.com>
23851
23852         regex: don't infloop on persistent failing calloc
23853         * lib/regexec.c (build_trtable): Return failure indication upon
23854         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23855         In glibc, this was fixed for version 2.13:
23856         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23857
23858 2010-12-28  Bruno Haible  <bruno@clisp.org>
23859             Paul Eggert <eggert@cs.ucla.edu>
23860
23861         linkat: Make implementation robust against system behaviour variations.
23862         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23863         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23864         way, and to -2 if it needs a generic runtime test.
23865         * lib/linkat.c (solaris_optimized_link_immediate,
23866         solaris_optimized_link_follow): New functions.
23867         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23868         (check_same_link): Use it.
23869
23870 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23871
23872         New module 'unigbrk/base'.
23873         * modules/unigbrk/base: New file.
23874         * lib/unigbrk.in.h: New file.
23875
23876         New module 'unigbrk/uc-gbrk-prop'.
23877         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23878         * modules/unigbrk/uc-gbrk-prop: New file.
23879         * lib/unigbrk/gbrkprop.h: New file.
23880         * lib/unigbrk/uc-gbrk-prop.c: New file.
23881
23882         New module 'unigbrk/uc-is-grapheme-break'.
23883         * modules/unigbrk/uc-is-grapheme-break: New file.
23884         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23885         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23886         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23887         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23888         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23889
23890         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23891
23892 2010-12-27  Bruno Haible  <bruno@clisp.org>
23893
23894         linkat test: Avoid failure on Solaris 11 2010-11.
23895         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23896
23897 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23898
23899         utimens: work around glibc rounding bug on more platforms
23900         * lib/utimens.c (fdutimens): Work around rounding bug even if
23901         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23903
23904 2010-12-27  Bruno Haible  <bruno@clisp.org>
23905
23906         select tests: Improve comments.
23907         * tests/test-select.c (do_select): Add comments.
23908
23909 2010-12-27  Bruno Haible  <bruno@clisp.org>
23910
23911         select tests: Safer way of handling timeout.
23912         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23913         at every invocation.
23914
23915 2010-12-27  Bruno Haible  <bruno@clisp.org>
23916
23917         select tests: Use 'bool' where appropriate.
23918         * tests/test-select.c (connect_to_socket): Change argument type to
23919         'bool'.
23920
23921 2010-12-27  Bruno Haible  <bruno@clisp.org>
23922
23923         select tests: Use existing modules.
23924         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23925         (configure.ac): Don't test for unistd.h.
23926         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23927         declared in <unistd.h>.
23928
23929 2010-12-27  Bruno Haible  <bruno@clisp.org>
23930
23931         mbrtowc: Work around a Solaris 7 bug.
23932         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23933         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23934         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23935         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23936         MBRTOWC_NULL_ARG1_BUG.
23937         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23938         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23939         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23940         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23941
23942 2010-12-27  Jim Meyering  <meyering@redhat.com>
23943
23944         read-file.c: tweak syntax
23945         * lib/read-file.c (fread_file): Remove space after "*" in function
23946         definitions.
23947
23948 2010-12-27  Bruno Haible  <bruno@clisp.org>
23949
23950         times test: Avoid gcc warnings on OSF/1.
23951         * tests/test-times.c (main): Cast printf arguments from clock_t to
23952         'long int'.
23953
23954 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23955
23956         utimens: work around glibc rounding bug on older Linux kernels
23957         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23958         on Linux with a glibc whose utimes might not work, then work
23959         around a longstanding glibc bug involving rounding rather than
23960         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23962
23963 2010-12-26  Bruno Haible  <bruno@clisp.org>
23964
23965         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23966         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23967         _GL_CXXALIAS_SYS.
23968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23969
23970 2010-12-26  Bruno Haible  <bruno@clisp.org>
23971
23972         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23973         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23974         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23975         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23976         looking for the declaration.
23977         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23978         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23979         problem.
23980         * doc/posix-functions/inet_pton.texi: Likewise.
23981
23982 2010-12-26  Bruno Haible  <bruno@clisp.org>
23983
23984         arpa_inet: Use the common idioms with C++ support.
23985         * lib/arpa_inet.in.h: Include c++defs.h.
23986         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23987         support.
23988         * modules/arpa_inet (Depends-on): Add c++defs.
23989         (Makefile.am): Substitute the contents of c++defs.h.
23990         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23991         * modules/arpa_inet-c++-tests: New file.
23992         * tests/test-arpa_inet-c++.cc: New file.
23993
23994 2010-12-25  Bruno Haible  <bruno@clisp.org>
23995
23996         Fix more C++ link errors on Solaris 8.
23997         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23998         $(LIB_EACCESS).
23999         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24000         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24001         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24002         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24003         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24004
24005 2010-12-25  Bruno Haible  <bruno@clisp.org>
24006
24007         printf-posix: Fix link error when a non-GCC compiler is used.
24008         * lib/stdio.in.h (printf): When not using GCC, override printf
24009         correctly.
24010         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24011
24012 2010-12-25  Bruno Haible  <bruno@clisp.org>
24013
24014         strerror_r-posix: Update doc.
24015         * doc/posix-functions/strerror_r.texi: Update doc about the return
24016         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24017
24018 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24019
24020         utimens: simplify the logic of the previous change
24021         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24022         This should not affect whether the test succeeds or fails.
24023
24024         utimens: configure better on hosts with NFS clock skew
24025         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24026         uses the clock of the local host.  It might use the clock of the
24027         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24029
24030 2010-12-25  Bruno Haible  <bruno@clisp.org>
24031
24032         ptsname test: Avoid failure on Solaris.
24033         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24034         open a pseudo-terminal; don't use BSD-style ptys.
24035         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24036
24037 2010-12-25  Bruno Haible  <bruno@clisp.org>
24038
24039         ptsname: Avoid ERANGE failure on some systems.
24040         * lib/ptsname.c (buffer): Increase size.
24041
24042 2010-12-25  Bruno Haible  <bruno@clisp.org>
24043
24044         rename, renameat: Avoid test failures at NFS mounted locations.
24045         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24046         so that subsequent mkdir calls succeed.
24047
24048 2010-12-25  Bruno Haible  <bruno@clisp.org>
24049
24050         iswblank: Fix C++ link error on Solaris 8.
24051         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24052         _GL_FUNCDECL_SYS.
24053
24054 2010-12-25  Bruno Haible  <bruno@clisp.org>
24055
24056         unistd: Fix C++ link error on Solaris 8.
24057         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24058
24059 2010-12-25  Bruno Haible  <bruno@clisp.org>
24060
24061         readlink doc: Mention an old glibc bug.
24062         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24063
24064 2010-12-25  Bruno Haible  <bruno@clisp.org>
24065
24066         fcntl-h: Fix for use of C++ on glibc systems.
24067         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24068         also on glibc systems in C++ mode.
24069         Reported by Gary V. Vaughan <gary@gnu.org>.
24070
24071 2010-12-25  Bruno Haible  <bruno@clisp.org>
24072
24073         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24074         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24075
24076 2010-12-25  Bruno Haible  <bruno@clisp.org>
24077
24078         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24079         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24080         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24081         test whether truncl works according to ISO C 99 with IEC 60559.
24082         * m4/truncl-ieee.m4: New file.
24083         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24084         m4/signbit.m4.
24085         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24086
24087 2010-12-25  Bruno Haible  <bruno@clisp.org>
24088
24089         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24090         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24091         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24092         test whether ceill works according to ISO C 99 with IEC 60559.
24093         * m4/ceill-ieee.m4: New file.
24094         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24095         m4/signbit.m4.
24096         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24097
24098 2010-12-25  Bruno Haible  <bruno@clisp.org>
24099
24100         Ensure all prerequisites of <wchar.h> are included.
24101         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24102         before <wchar.h>.
24103         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24104         gl_MBRLEN_NUL_RETVAL): Likewise.
24105         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24106         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24107         AC_FUNC_MBRTOWC): Likewise.
24108         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24109         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24111         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24112         Likewise.
24113         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24114         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24115         (gl_WCHAR_H): Improve comments.
24116         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24117
24118 2010-12-25  Bruno Haible  <bruno@clisp.org>
24119
24120         strtok_r: Fix C syntax error in autoconf macro.
24121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24122         characters in test program.
24123
24124 2010-12-24  Bruno Haible  <bruno@clisp.org>
24125
24126         ceil, trunc, round: Fix gcc warnings.
24127         * lib/ceil.c (MIN): Undefine before redefining.
24128         * lib/trunc.c (MIN): Likewise.
24129         * lib/round.c (MIN): Likewise.
24130         Include <math.h> first.
24131
24132 2010-12-24  Bruno Haible  <bruno@clisp.org>
24133
24134         select tests: Avoid failures on OSF/1 5.1.
24135         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24136         failure of closing the last socket; it may fail with ECONNRESET.
24137
24138 2010-12-24  Eric Blake  <eblake@redhat.com>
24139
24140         stdint: avoid HP-UX 10.20 preprocessor bug
24141         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24142         than #if.
24143         * tests/test-floor2.c (main): Likewise.
24144         Reported by Peter O'Gorman.
24145
24146         pipe: make obsoletion transition easier
24147         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24148         * modules/pipe (Files): Include revived file.
24149         (Include): Drop reference, to mirror getdate's behavior.
24150
24151 2010-12-24  Bruno Haible  <bruno@clisp.org>
24152
24153         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24154         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24155         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24157
24158 2010-12-24  Bruno Haible  <bruno@clisp.org>
24159
24160         gethostname: Ensure declaration on NonStop Kernel.
24161         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24163
24164 2010-12-24  Bruno Haible  <bruno@clisp.org>
24165
24166         sys_select: Ensure all necessary types on NonStop Kernel.
24167         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24168         include <sys/time.h>.
24169         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24170         NonStop Kernel.
24171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24172
24173 2010-12-24  Bruno Haible  <bruno@clisp.org>
24174
24175         sys_select: Remove unneeded include.
24176         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24177         have <sys/select.h>.
24178
24179 2010-12-24  Bruno Haible  <bruno@clisp.org>
24180
24181         gethostname: Provide a fallback for HOST_NAME_MAX.
24182         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24183         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24184         instead.
24185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24186
24187 2010-12-24  Bruno Haible  <bruno@clisp.org>
24188
24189         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24190         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24191         (SA_RESTART): Likewise.
24192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24193
24194 2010-12-24  Bruno Haible  <bruno@clisp.org>
24195
24196         signal: Define NSIG.
24197         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24198         * tests/test-signal.c (nsig): New variable.
24199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24200
24201 2010-12-24  Bruno Haible  <bruno@clisp.org>
24202
24203         rename, renameat: Avoid test failures on OSF/1 5.1.
24204         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24205         alternative error codes.
24206         * tests/test-renameat.c (main): Likewise.
24207
24208 2010-12-24  Bruno Haible  <bruno@clisp.org>
24209
24210         *printf: Detect large precisions bug on Solaris 10/SPARC.
24211         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24212         by Paul Eggert.
24213         * tests/test-snprintf-posix.h (test_function): Add this test code here
24214         too.
24215         * tests/test-sprintf-posix.h (test_function): Likewise.
24216         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24217         * tests/test-vasprintf-posix.c (test_function): Likewise.
24218         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24219         around by gnulib.
24220         * doc/posix-functions/printf.texi: Likewise.
24221         * doc/posix-functions/snprintf.texi: Likewise.
24222         * doc/posix-functions/sprintf.texi: Likewise.
24223         * doc/posix-functions/vfprintf.texi: Likewise.
24224         * doc/posix-functions/vprintf.texi: Likewise.
24225         * doc/posix-functions/vsnprintf.texi: Likewise.
24226         * doc/posix-functions/vsprintf.texi: Likewise.
24227         * doc/posix-functions/dprintf.texi: Undo last commit.
24228         * doc/posix-functions/vdprintf.texi: Likewise.
24229
24230 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24231
24232         tests: port test-fdutimensat.c to Solaris 8
24233         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24234         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24235         On Solaris 8, it fails with errno == ENOSYS, because there is no
24236         futimens (so it can't use the fd), and there is no lutimens (so it
24237         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24238
24239         vsnprintf: make more consistent with snprintf; doc fixes
24240
24241         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24242         the byte count return problem was promoted from the snprintf-posix
24243         to the snprintf module.
24244         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24245         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24246         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24247         * tests/test-snprintf.c (main): Check the byte count returned.
24248         * tests/test-vsnprintf.c (main): Likewise.
24249
24250 2010-12-23  Eric Blake  <eblake@redhat.com>
24251
24252         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24253         * modules/sigpipe (License): Relax license.
24254
24255 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24256
24257         doc: document Solaris printf bug with large float precisions
24258         * doc/posix-functions/dprintf.texi (dprintf):
24259         * doc/posix-functions/fprintf.texi (fprintf):
24260         * doc/posix-functions/printf.texi (printf):
24261         * doc/posix-functions/snprintf.texi (snprintf):
24262         * doc/posix-functions/sprintf.texi (sprintf):
24263         * doc/posix-functions/vdprintf.texi (vdprintf):
24264         * doc/posix-functions/vfprintf.texi (vfprintf):
24265         * doc/posix-functions/vprintf.texi (vprintf):
24266         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24267         * doc/posix-functions/vsprintf.texi (vsprintf):
24268         Mention that these functions mishandle large floating point
24269         precisions on Solaris 10.  The same bug is also present in Solaris
24270         8, and I assume earlier.  This causes "cd gnulib-tests; make
24271         check" to fail on Solaris 8 (and I assume, later) when building
24272         the latest coreutils, in test-vasprintf-posix's call to
24273         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24274         the wide flavors (e.g., wprintf) so this patch just updates the
24275         documentation for the narrow ones.
24276
24277         test-posixtm.c: add two tests
24278         * tests/test-posixtm.c: Add two tests, to highlight the
24279         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24280         around this bug; this is merely to document it.
24281
24282 2010-12-22  Bruno Haible  <bruno@clisp.org>
24283
24284         getlogin_r: Work around portability problem on OSF/1.
24285         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24286         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24287         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24288         test for a truncated result.
24289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24290         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24291         * modules/getlogin_r (Depends-on): Add memchr.
24292         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24293
24294 2010-12-22  Bruno Haible  <bruno@clisp.org>
24295
24296         ptsname: Avoid test failure on OSF/1 5.1.
24297         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24298         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24299         (same_slave): New function.
24300         (main): Use it to compare ptsname's result with the expected file name.
24301
24302 2010-12-22  Bruno Haible  <bruno@clisp.org>
24303
24304         Port extended stdio modules to HP NonStop Kernel.
24305         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24306         macros.
24307         * lib/fbufmode.c: Update comments.
24308         * lib/fflush.c: Likewise.
24309         * lib/fpurge.c: Likewise.
24310         * lib/freadable.c: Likewise.
24311         * lib/freadahead.c: Likewise.
24312         * lib/freading.c: Likewise.
24313         * lib/freadptr.c: Likewise.
24314         * lib/freadseek.c: Likewise.
24315         * lib/fseeko.c: Likewise.
24316         * lib/fseterr.c: Likewise.
24317         * lib/fwritable.c: Likewise.
24318         * lib/fwriting.c: Likewise.
24319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24320
24321 2010-12-22  Bruno Haible  <bruno@clisp.org>
24322
24323         ttyname_r: Work around bug on OSF/1 5.1.
24324         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24326         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24327         present.
24328         * lib/ttyname_r.c (ttyname_r): Update comments.
24329
24330 2010-12-22  Bruno Haible  <bruno@clisp.org>
24331
24332         round: Implement result sign according to IEEE 754.
24333         * lib/round.c (MIN, MINUS_ZERO): New macros.
24334         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24335         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24336         * tests/test-round-ieee.c (main): Likewise.
24337         * tests/test-roundl-ieee.c (main): Likewise.
24338
24339         trunc: Implement result sign according to IEEE 754.
24340         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24341         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24342         * tests/test-trunc2.c: Include minus-zero.h.
24343         (MINUS_ZERO): New macro.
24344         (trunc_reference): Keep in sync with lib/trunc.c.
24345         * tests/test-truncf2.c: Include minus-zero.h.
24346         (MINUS_ZERO): New macro.
24347         (truncf_reference): Keep in sync with lib/trunc.c.
24348         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24349         * tests/test-trunc-ieee.c (main): Likewise.
24350         * tests/test-truncl-ieee.c (main): Likewise.
24351
24352         ceil: Implement result sign according to IEEE 754.
24353         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24354         (FUNC): Return -0.0 for -1 < x < 0.
24355         * tests/test-ceil2.c: Include minus-zero.h.
24356         (MINUS_ZERO): New macro.
24357         (ceil_reference): Keep in sync with lib/ceil.c.
24358         * tests/test-ceilf2.c: Include minus-zero.h.
24359         (MINUS_ZERO): New macro.
24360         (ceilf_reference): Keep in sync with lib/ceil.c.
24361         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24362         * tests/test-ceil-ieee.c (main): Likewise.
24363         * tests/test-ceill-ieee.c (main): Likewise.
24364
24365         floor: Implement result sign according to IEEE 754.
24366         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24367         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24368         * tests/test-floorf2.c (floorf_reference): Likewise.
24369         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24370         * tests/test-floor-ieee.c (main): Likewise.
24371         * tests/test-floorl-ieee.c (main): Likewise.
24372
24373 2010-12-22  Bruno Haible  <bruno@clisp.org>
24374
24375         getaddrinfo: Update doc.
24376         * doc/posix-functions/gai_strerror.texi: Return type is also different
24377         on AIX and HP-UX.
24378
24379 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         getaddrinfo, inet_ntop: Update doc for Solaris.
24382         * doc/posix-functions/gai_strerror.texi: Return type is also an
24383         issue on Solaris 9 and earlier.
24384         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24385         on Solaris 10 and earlier.
24386
24387 2010-12-21  Bruno Haible  <bruno@clisp.org>
24388
24389         New module 'roundl-ieee'.
24390         * modules/roundl-ieee: New file.
24391         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24392         test whether roundl works according to ISO C 99 with IEC 60559.
24393         * m4/roundl-ieee.m4: New file.
24394         * modules/roundl-ieee-tests: New file.
24395         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24396         * tests/test-roundl.c (main): Remove signbit tests.
24397         * modules/roundl-tests (Depends-on): Remove signbit.
24398         * doc/posix-functions/roundl.texi: Mention the new module.
24399
24400 2010-12-21  Bruno Haible  <bruno@clisp.org>
24401
24402         New module 'truncl-ieee'.
24403         * modules/truncl-ieee: New file.
24404         * modules/truncl-ieee-tests: New file.
24405         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24406         * tests/test-truncl.c (main): Remove signbit tests.
24407         * modules/truncl-tests (Depends-on): Remove signbit.
24408         * doc/posix-functions/truncl.texi: Mention the new module.
24409
24410 2010-12-21  Bruno Haible  <bruno@clisp.org>
24411
24412         New module 'ceill-ieee'.
24413         * modules/ceill-ieee: New file.
24414         * modules/ceill-ieee-tests: New file.
24415         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24416         * tests/test-ceill.c (main): Remove signbit tests.
24417         * modules/ceill-tests (Depends-on): Remove signbit.
24418         * doc/posix-functions/ceill.texi: Mention the new module.
24419
24420 2010-12-21  Bruno Haible  <bruno@clisp.org>
24421
24422         New module 'floorl-ieee'.
24423         * modules/floorl-ieee: New file.
24424         * modules/floorl-ieee-tests: New file.
24425         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24426         * tests/test-floorl.c (main): Remove signbit tests.
24427         * modules/floorl-tests (Depends-on): Remove signbit.
24428         * doc/posix-functions/floorl.texi: Mention the new module.
24429
24430 2010-12-21  Bruno Haible  <bruno@clisp.org>
24431
24432         New module 'round-ieee'.
24433         * modules/round-ieee: New file.
24434         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24435         whether round works according to ISO C 99 with IEC 60559.
24436         * m4/round-ieee.m4: New file.
24437         * modules/round-ieee-tests: New file.
24438         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24439         * tests/test-round1.c (main): Remove signbit tests.
24440         * modules/round-tests (Depends-on): Remove 'signbit'.
24441         * doc/posix-functions/round.texi: Mention the new module.
24442
24443 2010-12-21  Bruno Haible  <bruno@clisp.org>
24444
24445         New module 'trunc-ieee'.
24446         * modules/trunc-ieee: New file.
24447         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24448         whether trunc works according to ISO C 99 with IEC 60559.
24449         * m4/trunc-ieee.m4: New file.
24450         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24452         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24453         * modules/trunc-ieee-tests: New file.
24454         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24455         * tests/test-trunc1.c (main): Remove signbit tests.
24456         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24457         * doc/posix-functions/trunc.texi: Mention the new module.
24458
24459 2010-12-21  Bruno Haible  <bruno@clisp.org>
24460
24461         New module 'ceil-ieee'.
24462         * modules/ceil-ieee: New file.
24463         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24464         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24465         ISO C 99 with IEC 60559.
24466         * m4/ceil-ieee.m4: New file.
24467         * modules/ceil (Files): Add lib/ceil.c.
24468         (Depends-on): Add 'float'.
24469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24470         * lib/math.in.h (ceil): New declaration.
24471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24472         REPLACE_CEIL.
24473         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24474         * modules/ceil-ieee-tests: New file.
24475         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24476         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24477         * doc/posix-functions/ceil.texi: Mention the new module.
24478
24479 2010-12-21  Bruno Haible  <bruno@clisp.org>
24480
24481         New module 'floor-ieee'.
24482         * modules/floor-ieee: New file.
24483         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24484         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24485         ISO C 99 with IEC 60559.
24486         * m4/floor-ieee.m4: New file.
24487         * modules/floor (Files): Add lib/floor.c.
24488         (Depends-on): Add 'float'.
24489         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24490         * lib/math.in.h (floor): New declaration.
24491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24492         REPLACE_FLOOR.
24493         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24494         * modules/floor-ieee-tests: New file.
24495         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24496         * tests/test-math-c++.cc: Check the signature of 'floor'.
24497         * doc/posix-functions/floor.texi: Mention the new module.
24498
24499 2010-12-21  Bruno Haible  <bruno@clisp.org>
24500
24501         New module 'roundf-ieee'.
24502         * modules/roundf-ieee: New file.
24503         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24504         test whether roundf works according to ISO C 99 with IEC 60559.
24505         * m4/roundf-ieee.m4: New file.
24506         * modules/roundf-ieee-tests: New file.
24507         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24508         * tests/test-roundf1.c (main): Remove signbit tests.
24509         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24510         * doc/posix-functions/roundf.texi: Mention the new module.
24511
24512 2010-12-21  Bruno Haible  <bruno@clisp.org>
24513
24514         New module 'truncf-ieee'.
24515         * modules/truncf-ieee: New file.
24516         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24517         test whether truncf works according to ISO C 99 with IEC 60559.
24518         * m4/truncf-ieee.m4: New file.
24519         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24521         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24522         * modules/truncf-ieee-tests: New file.
24523         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24524         * tests/test-truncf1.c (main): Remove signbit tests.
24525         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24526         * doc/posix-functions/truncf.texi: Mention the new module.
24527
24528 2010-12-21  Bruno Haible  <bruno@clisp.org>
24529
24530         New module 'ceilf-ieee'.
24531         * modules/ceilf-ieee: New file.
24532         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24533         test whether ceilf works according to ISO C 99 with IEC 60559.
24534         * m4/ceilf-ieee.m4: New file.
24535         * modules/ceilf-ieee-tests: New file.
24536         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24537         * tests/test-ceilf1.c (main): Remove signbit tests.
24538         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24539         * doc/posix-functions/ceilf.texi: Mention the new module.
24540
24541 2010-12-21  Bruno Haible  <bruno@clisp.org>
24542
24543         New module 'floorf-ieee'.
24544         * modules/floorf-ieee: New file.
24545         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24546         test whether floorf works according to ISO C 99 with IEC 60559.
24547         * m4/floorf-ieee.m4: New file.
24548         * modules/floorf-ieee-tests: New file.
24549         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24550         * tests/test-floorf1.c (main): Remove signbit tests.
24551         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24552         * doc/posix-functions/floorf.texi: Mention the new module.
24553
24554 2010-12-21  Bruno Haible  <bruno@clisp.org>
24555
24556         Support for minus zero in autoconf macros.
24557         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24558         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24559         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24560         * tests/minus-zero.h: Update comments.
24561
24562 2010-12-21  Bruno Haible  <bruno@clisp.org>
24563
24564         Tests for module 'ceil'.
24565         * modules/ceil-tests: New file.
24566         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24567         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24568
24569 2010-12-21  Bruno Haible  <bruno@clisp.org>
24570
24571         Tests for module 'floor'.
24572         * modules/floor-tests: New file.
24573         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24574         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24575
24576 2010-12-21  Bruno Haible  <bruno@clisp.org>
24577
24578         math: Fix indentation.
24579         * lib/math.in.h (floorf): Fix indentation.
24580
24581 2010-12-21  Bruno Haible  <bruno@clisp.org>
24582
24583         Fix cross-compilation guesses on Solaris.
24584         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24585         not match "solaris2.10".
24586         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24587         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24588         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24589
24590 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24591
24592         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24593         This fixes a problem observed with the latest coreutils snapshot
24594         that caused a test to fail on Solaris 8.  src/csplit.c's call
24595         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24596         earlier, instead of returning the number of bytes that would have
24597         been generated; this causes csplit to incorrectly report memory
24598         exhaustion.
24599         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24600         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24601         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24602         comments to match.
24603         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24604         Fix typo in matching older versions of Solaris: "solaris2.10"
24605         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24606         only for guessing while cross-compiling.
24607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24608
24609 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24610
24611         ftoastr: fix comment again
24612         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24614         Also, simplify example a bit by using flags = 0.
24615
24616 2010-12-20  Bruno Haible  <bruno@clisp.org>
24617
24618         round*, trunc*: Update documentation regarding glibc.
24619         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24620         * doc/posix-functions/round.texi: Likewise.
24621         * doc/posix-functions/roundl.texi: Likewise.
24622         * doc/posix-functions/truncf.texi: Likewise.
24623         * doc/posix-functions/trunc.texi: Likewise.
24624         * doc/posix-functions/truncl.texi: Likewise.
24625
24626 2010-12-20  Bruno Haible  <bruno@clisp.org>
24627
24628         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24629         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24630         * doc/posix-functions/round.texi: Likewise.
24631         * doc/posix-functions/roundl.texi: Likewise.
24632
24633 2010-12-20  Bruno Haible  <bruno@clisp.org>
24634
24635         ttyname_r: Add missing declaration on HP-UX 11.
24636         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24637         HAVE_TTYNAME_R.
24638         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24639         declared. Set HAVE_TTYNAME_R always.
24640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24641         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24642         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24643         HAVE_TTYNAME_R.
24644         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24645
24646 2010-12-20  Bruno Haible  <bruno@clisp.org>
24647
24648         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24649         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24650         * doc/posix-functions/getlogin_r.texi: Likewise.
24651         * tests/test-getlogin.c: Include <errno.h>.
24652         (main): Avoid test failure on HP-UX 11.11.
24653         * tests/test-getlogin_r.c (main): Likewise.
24654
24655 2010-12-20  Bruno Haible  <bruno@clisp.org>
24656
24657         getlogin_r: Add missing declaration on HP-UX 11.
24658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24659         declared also when it exists as a function.
24660         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24661
24662 2010-12-20  Bruno Haible  <bruno@clisp.org>
24663
24664         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24665         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24666         through wcrtomb.
24667
24668 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24669
24670         ftoastr: fix comment
24671         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24673
24674 2010-12-19  Bruno Haible  <bruno@clisp.org>
24675
24676         isnan: Ensure it is a macro.
24677         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24678         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24679         Solaris.
24680
24681 2010-12-19  Bruno Haible  <bruno@clisp.org>
24682
24683         ldexpl test: Fix link error on OSF/1 5.1.
24684         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24685
24686 2010-12-19  Bruno Haible  <bruno@clisp.org>
24687
24688         wctype: Make it work in C++ mode on OSF/1 5.1.
24689         * lib/wctype.in.h (iswblank): Declare but not define here.
24690         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24691         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24692         * modules/wctype (Files): Add lib/iswblank.c.
24693
24694 2010-12-19  Bruno Haible  <bruno@clisp.org>
24695
24696         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24697         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24698         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24699
24700 2010-12-19  Bruno Haible  <bruno@clisp.org>
24701
24702         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24703         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24704         _POSIX_PII_SOCKET.
24705         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24706         * doc/posix-functions/recvfrom.texi: Likewise.
24707         * doc/posix-functions/send.texi: Likewise.
24708         * doc/posix-functions/sendto.texi: Likewise.
24709
24710 2010-12-19  Bruno Haible  <bruno@clisp.org>
24711
24712         tcgetsid: Add missing declaration on OSF/1 5.1.
24713         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24714         HAVE_TCGETSID.
24715         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24716         Don't set HAVE_TCGETSID.
24717         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24718         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24719         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24720         HAVE_TCGETSID.
24721         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24722
24723 2010-12-19  Bruno Haible  <bruno@clisp.org>
24724
24725         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24726         * lib/stdio.in.h: During the include_next statement, let recursive
24727         includes of this file include only the system header file.
24728
24729 2010-12-19  Bruno Haible  <bruno@clisp.org>
24730
24731         iconv_open: Fix regression from 2010-12-04.
24732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24733         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24734
24735 2010-12-19  Bruno Haible  <bruno@clisp.org>
24736
24737         stdbool test: Avoid a gcc warning.
24738         * tests/test-stdbool.c (main): Fail if e1 is false.
24739         Reported by Jim Meyering.
24740
24741 2010-12-19  Jim Meyering  <meyering@redhat.com>
24742
24743         setenv: restore to working order
24744         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24745         mistakenly removed.
24746         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24747         HAVE_SETENV.
24748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24749         HAVE_SETENV.
24750
24751 2010-12-19  Bruno Haible  <bruno@clisp.org>
24752
24753         Document some different function declarations on OSF/1 5.1.
24754         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24755         * doc/posix-functions/inet_ntop.texi: Likewise.
24756         * doc/posix-functions/gethostname.texi: Likewise.
24757         * lib/unistd.in.h (gethostname): Update comment.
24758
24759 2010-12-19  Bruno Haible  <bruno@clisp.org>
24760
24761         doc: Mention vasprintf-posix module.
24762         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24763         the 'vasprintf-posix' module.
24764         * doc/glibc-functions/vasprintf.texi: Likewise.
24765
24766 2010-12-19  Bruno Haible  <bruno@clisp.org>
24767
24768         unsetenv: Add missing declaration on OSF/1 5.1.
24769         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24771         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24773         not HAVE_UNSETENV.
24774         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24775         HAVE_UNSETENV.
24776         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24777
24778 2010-12-19  Bruno Haible  <bruno@clisp.org>
24779
24780         setenv: Add missing declaration on OSF/1 5.1.
24781         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24783         declared. Don't set HAVE_SETENV.
24784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24785         not HAVE_SETENV.
24786         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24787         HAVE_SETENV.
24788         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24789
24790 2010-12-19  Bruno Haible  <bruno@clisp.org>
24791
24792         nl_langinfo tests: Avoid gcc warning.
24793         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24794
24795 2010-12-19  Bruno Haible  <bruno@clisp.org>
24796
24797         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24798         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24799         _GL_CXXALIAS_SYS.
24800
24801 2010-12-19  Bruno Haible  <bruno@clisp.org>
24802
24803         stdbool: Relax test.
24804         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24805         address to 'bool' work in static initializer, for compilers other than
24806         GCC.
24807
24808 2010-12-19  Bruno Haible  <bruno@clisp.org>
24809
24810         ftello: Add missing declaration on OSF/1 5.1.
24811         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24812         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24814         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24815         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24816
24817 2010-12-19  Bruno Haible  <bruno@clisp.org>
24818
24819         fseeko: Add missing declaration on OSF/1 5.1.
24820         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24823         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24824         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24825
24826 2010-12-19  Bruno Haible  <bruno@clisp.org>
24827
24828         fchdir: Add missing declaration on OSF/1 5.1.
24829         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24832         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24833         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24834
24835 2010-12-19  Bruno Haible  <bruno@clisp.org>
24836
24837         relocatable-prog-wrapper: Separate from relocatable-prog.
24838         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24839         uninstall-relocwrapper rule here.
24840         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24841         Reported by Ian Beckwith <ianb@erislabs.net>.
24842
24843 2010-12-19  Bruno Haible  <bruno@clisp.org>
24844
24845         unistr/u8-mbsnlen: Add missing dependency.
24846         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24847         Reported by Ian Beckwith <ianb@erislabs.net>.
24848
24849 2010-12-19  Bruno Haible  <bruno@clisp.org>
24850
24851         iconv: Make it possible again to use this module without 'iconv-h'.
24852         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24853         if it is not defined.
24854         Reported by Ian Beckwith <ianb@erislabs.net>.
24855
24856 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         acl: port to Solaris 8 when copying from tmpfs to ufs
24859         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24860         error number.  Problem observed on Solaris 8 with latest
24861         coreutils, with "mv A B", where A is on a tmpfs file system and B
24862         is on a ufs file system.  This caused coreutils' mv/part-symlink
24863         test to fail.
24864
24865         tests: set fail=0 at start
24866         * tests/init.sh (setup_): Move fail=0 initialization here ...
24867         (mktempd_): ... from here, so that tests can rely on fail being
24868         set to 0 initially.  This fixes a problem in coreutils; see:
24869         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24870
24871 2010-12-18  Bruno Haible  <bruno@clisp.org>
24872
24873         memmem-simple: Stylistic changes.
24874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24875         Fix preprocessor directive indentation.
24876
24877 2010-12-15  Pádraig Brady <P@draigBrady.com>
24878
24879         memmem, memmem-simple: reorganize and expand empty needle check
24880         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24881         functional checks to memmem-simple so that one has a fully functional
24882         memmem by using just this module.
24883         Restrict the performance only check to the memmem module.
24884         Also expand the empty needle check to ensure the correct
24885         pointer is returned, not just a non NULL pointer.
24886         * doc/glibc-functions/memmem.texi: Rearrange the portability
24887         documentation to correlate with the rearranged checks.
24888         Clarify exactly how the memmem and memmem-simple modules
24889         relate to each other.
24890
24891 2010-12-15  Pádraig Brady <P@draigBrady.com>
24892             Bruno Haible  <bruno@clisp.org>
24893
24894         Improve cross-compilation guesses for uClibc.
24895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24896         that uClibc does not have the glibc bug.
24897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24898         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24899
24900 2010-12-14  Eric Blake  <eblake@redhat.com>
24901
24902         configmake: provide fallbacks for oldest supported autotools
24903         * m4/configmake.m4: New file.
24904         * modules/configmake (Files): Ship it.
24905         (configure.ac): Use it to guarantee fallbacks.
24906
24907 2010-12-13  Pádraig Brady <P@draigBrady.com>
24908
24909         read-file: Improve handling of large files
24910         * lib/read-file.c (fread_file): Minimize realloc()s
24911         for regular files, and better manage sizes around SIZE_MAX.
24912
24913 2010-12-13  Eric Blake  <eblake@redhat.com>
24914
24915         cloexec, fcntl: relax license
24916         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24917         consent from all contributors.
24918         * modules/fcntl (License): Likewise.
24919
24920 2010-12-10  Bruno Haible  <bruno@clisp.org>
24921
24922         Tests for module 'pipe-posix'.
24923         * modules/pipe-posix-tests: New file.
24924         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24925
24926 2010-12-10  Bruno Haible  <bruno@clisp.org>
24927
24928         pipe-posix: Make it work in C++ mode.
24929         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24930         (pipe): Use common idiom, not a macro definition.
24931         * lib/pipe.c: New file.
24932         * m4/pipe.m4: New file.
24933         * modules/pipe-posix (Description): Enhance.
24934         (Files): Add lib/pipe.c, m4/pipe.m4.
24935         (configure.ac): Invoke gl_FUNC_PIPE.
24936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24937         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24938         * tests/test-unistd-c++.cc: Check the signature of pipe.
24939
24940 2010-12-10  Bruno Haible  <bruno@clisp.org>
24941
24942         Rename module 'pipe' to 'spawn-pipe'.
24943         * modules/spawn-pipe: New file, renamed from modules/pipe.
24944         (Files, configure.ac, Makefile.am): Update.
24945         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24946         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24947         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24948         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24949         "spawn-pipe.h" instead of "pipe.h".
24950         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24951         to gl_SPAWN_PIPE.
24952         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24953         (Files, Makefile.am): Update.
24954         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24955         Update.
24956         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24957         Include "spawn-pipe.h" instead of "pipe.h".
24958         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24959         * lib/javacomp.c: Likewise.
24960         * lib/javaversion.c: Likewise.
24961         * lib/pipe-filter-gi.c: Likewise.
24962         * lib/pipe-filter-ii.c: Likewise.
24963         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24964         * modules/javacomp (Depends-on): Likewise.
24965         * modules/javaversion (Depends-on): Likewise.
24966         * modules/pipe-filter-gi (Depends-on): Likewise.
24967         * modules/pipe-filter-ii (Depends-on): Likewise.
24968         * MODULES.html.sh (Executing programs): Update.
24969         * NEWS: Mention the change.
24970
24971 2010-12-10  Eric Blake  <eblake@redhat.com>
24972
24973         pipe-posix: new module
24974         * modules/pipe-posix: New file.
24975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24976         (gl_UNISTD_H): Check for declaration.
24977         * modules/unistd (Makefile.am): Substitute it.
24978         * lib/unistd.in.h (pipe): Provide it for mingw.
24979         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24980         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24981
24982 2010-12-07  Bruno Haible  <bruno@clisp.org>
24983
24984         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24985         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24986         u8_strcmp_gnu.
24987         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24988
24989 2010-12-06  Bruno Haible  <bruno@clisp.org>
24990
24991         Update internal documentation.
24992         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24993
24994 2010-12-04  Bruno Haible  <bruno@clisp.org>
24995
24996         Put more information about failed tests into the test return codes.
24997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24998         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24999         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25000         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25001         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25002         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25003         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25004         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25005         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25008         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25009         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25010         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25012         returns a bit mask.
25013         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25014         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25015         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25016         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25017         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25021         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25023         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25024         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25025         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25027         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25028         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25029         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25030         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25031         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25032         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25034         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25035         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25036         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25037         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25038         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25039         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25040         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25041         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25042         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25043         gl_PRINTF_PRECISION): Likewise.
25044         * m4/regex.m4 (gl_REGEX): Likewise.
25045         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25046         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25047         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25048         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25051         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25052         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25054         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25056         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25057         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25058         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25059         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25060         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25061         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25064         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25065         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25066         enumerated value.
25067         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25068
25069 2010-12-04  Bruno Haible  <bruno@clisp.org>
25070
25071         Update for Solaris 11 2010-11.
25072         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25073         Express, released in November 2010.
25074
25075 2010-12-04  Bruno Haible  <bruno@clisp.org>
25076
25077         nproc: Relax license.
25078         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25079         and Paul Eggert.
25080         Requested by Ludovic Courtès <ludo@gnu.org>.
25081
25082 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25083
25084         utimecmp: fine-grained src to nearby coarse-grained dest
25085
25086         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25087         and the source is on a file system with higher-resolution time
25088         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25089         not work, and the time stamps are close together, the algorithm to
25090         determine the exact resolution from the read-back mtime was buggy:
25091         it had a "!=" where it should have had an "==".  This bug has been
25092         in the code ever since it was introduced to gnulib.
25093         Problem reported by Dan Jacobson in
25094         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25095
25096 2010-11-30  Bruno Haible  <bruno@clisp.org>
25097
25098         strerror_r-posix: Fix autoconf test.
25099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25100
25101 2010-11-28  Bruno Haible  <bruno@clisp.org>
25102             Paul Eggert  <eggert@cs.ucla.edu>
25103
25104         Tests for module 'getdomainname'.
25105         * modules/getdomainname-tests: New file.
25106         * tests/test-getdomainname.c: New file, based on
25107         tests/test-gethostname.c.
25108
25109 2010-11-28  Bruno Haible  <bruno@clisp.org>
25110             Paul Eggert  <eggert@cs.ucla.edu>
25111
25112         getdomainname: Use the system function when possible.
25113         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25114         (getdomainname): Replace if needed. Provide the declaration if it is
25115         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25116         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25117         (getdomainname): When the system has getdomainname, call the system
25118         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25119         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25120         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25121         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25122         the function if its second argument is of type 'int' or if it is found
25123         in libnsl.
25124         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25125         <sys/systeminfo.h> and sysinfo().
25126         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25128         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25129         HAVE_GETDOMAINNAME.
25130         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25131         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25132         * doc/glibc-functions/getdomainname.texi: Document the problems with
25133         the getdomainname declaration.
25134
25135 2010-11-28  Bruno Haible  <bruno@clisp.org>
25136
25137         sys_socket: Ensure ss_family field on AIX.
25138         * lib/sys_socket.in.h (ss_family): New macro definition.
25139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25140         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25141         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25142         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25143         * modules/sys_socket (Makefile.am): Substitute
25144         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25145         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25146
25147 2010-11-27  Bruno Haible  <bruno@clisp.org>
25148
25149         readline: Improve configure output.
25150         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25151         "checking for readline..." result understandable.
25152
25153 2010-11-27  Bruno Haible  <bruno@clisp.org>
25154
25155         *printf-posix: Detect a bug on Solaris 10/x86.
25156         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25157         for floating-point output.
25158         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25159         directive.
25160         * tests/test-snprintf-posix.h (test_function): Likewise.
25161         * tests/test-sprintf-posix.h (test_function): Likewise.
25162         * tests/test-vasprintf-posix.c (test_function): Likewise.
25163         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25164         * doc/posix-functions/printf.texi: Likewise.
25165         * doc/posix-functions/snprintf.texi: Likewise.
25166         * doc/posix-functions/sprintf.texi: Likewise.
25167         * doc/posix-functions/vfprintf.texi: Likewise.
25168         * doc/posix-functions/vprintf.texi: Likewise.
25169         * doc/posix-functions/vsnprintf.texi: Likewise.
25170         * doc/posix-functions/vsprintf.texi: Likewise.
25171         * doc/glibc-functions/obstack_printf.texi: Likewise.
25172         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25173
25174 2010-11-27  Bruno Haible  <bruno@clisp.org>
25175
25176         Fix link error when module libunistring-optional is in use.
25177         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25178         * modules/striconveha-tests (Makefile.am): Likewise.
25179
25180 2010-11-27  Bruno Haible  <bruno@clisp.org>
25181
25182         regex: Mention link dependencies.
25183         * modules/regex (Link): New section.
25184         * modules/rpmatch (Link): Likewise.
25185         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25186
25187 2010-11-27  Bruno Haible  <bruno@clisp.org>
25188
25189         ftoastr: Fix compilation error on Solaris.
25190         * lib/ftoastr.c: Include <config.h>.
25191
25192 2010-11-27  Bruno Haible  <bruno@clisp.org>
25193
25194         getloadavg: Update documentation.
25195         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25196
25197 2010-11-27  Bruno Haible  <bruno@clisp.org>
25198
25199         sys_socket: Fix test whether the functions are declared.
25200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25201         not <sys/select.h>.
25202
25203 2010-11-27  Bruno Haible  <bruno@clisp.org>
25204
25205         getpass: Make sure to get system declaration on some platforms.
25206         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25207         gl_USE_SYSTEM_EXTENSIONS.
25208         * modules/getpass (Depends-on): Add extensions.
25209
25210 2010-11-26  Bruno Haible  <bruno@clisp.org>
25211
25212         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25213         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25214         'iconv' module is present.
25215         (ICONV_CONST): New macro.
25216         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25217         ICONV_CONST.
25218         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25219         set ICONV_CONST.
25220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25221         here.
25222         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25223         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25224         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25225         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25226         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25227         present.
25228
25229 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25230
25231         ftoastr: comment fix
25232         * lib/ftoastr.c: "little" -> "little or no" in comment
25233
25234 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25235
25236         stdint: port to GCC 4.3 + OSX + Octave
25237         On this platform, stdint.h is buggy and defines int64_t to long
25238         long int.  The replacement defined it to long int, causing
25239         problems with C++ style name mangling.  Instead, trust the system
25240         definition if INT64_MAX is defined, and likewise for the unsigned
25241         variant.   Problem reported by Jarno Rajahalme in
25242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25243         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25244         and don't mess with int64_t and INT64_MAX in this case.
25245         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25246
25247 2010-11-24  Bruno Haible  <bruno@clisp.org>
25248
25249         doc: Corrections regarding MacOS X 10.4 and 10.5.
25250         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25251         MacOS X.
25252         Reported by Simon Josefsson.
25253
25254 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25255
25256         Uninstall ".bin" files installed by relocwrapper.
25257         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25258         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25259         unless it is already there.
25260
25261 2010-11-21  Bruno Haible  <bruno@clisp.org>
25262
25263         Update for NetBSD 5.0.
25264         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25265         NetBSD; the test fails on NetBSD 5.0.
25266         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25267         about NetBSD.
25268
25269 2010-11-21  Bruno Haible  <bruno@clisp.org>
25270
25271         Update for HP-UX 11.23 and HP-UX 11.31.
25272         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25273         HP-UX.
25274
25275 2010-11-21  Bruno Haible  <bruno@clisp.org>
25276
25277         Update for MacOS X 10.5.
25278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25279         MacOS X; the test fails on MacOS X 10.5.8.
25280         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25281         about MacOS X.
25282
25283 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25284
25285         bootstrap: add bootstrap_sync option.
25286         See discussion at
25287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25288         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25289         * build-aux/bootstrap: Accept --bootstrap-sync to update
25290         bootstrap if it is not identical to the local gnulib's
25291         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25292         enable this by default.  Accept --no-bootstrap-sync to disable
25293         it.
25294
25295 2010-11-20  Bruno Haible  <bruno@clisp.org>
25296
25297         Ensure that <features.h> is included before __GLIBC__ is tested.
25298         * lib/printf-parse.h: Include <features.h>.
25299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25300         Reported by Mike Frysinger <vapier@gentoo.org>.
25301
25302         Ensure that <features.h> is included before __GLIBC__ is tested.
25303         * lib/wchar.in.h: Include <features.h>.
25304         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25305         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25306         Reported by Mike Frysinger <vapier@gentoo.org>.
25307
25308         Ensure that <features.h> is included before __GLIBC__ is tested.
25309         * lib/arpa_inet.in.h: Include <features.h>.
25310         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25311         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25312         Reported by Mike Frysinger <vapier@gentoo.org>.
25313
25314         Ensure that <features.h> is included before __GLIBC__ is tested.
25315         * build-aux/link-warning.h: Include <features.h>.
25316         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25317         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25318         Reported by Mike Frysinger <vapier@gentoo.org>.
25319
25320         Ensure that <features.h> is included before __GLIBC__ is tested.
25321         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25322         Reported by Mike Frysinger <vapier@gentoo.org>.
25323
25324 2010-11-20  Bruno Haible  <bruno@clisp.org>
25325
25326         memmem: Fix autoconf test.
25327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25328
25329 2010-11-20  Bruno Haible  <bruno@clisp.org>
25330
25331         Port to uClibc.
25332         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25333         * lib/fcntl.in.h: Likewise.
25334         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25335         * lib/mbrtowc.c (mbrtowc): Likewise.
25336         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25337         * lib/strerror_r.c: Likewise.
25338         * lib/unistr/u8-strnlen.c: Likewise.
25339         * lib/vasnprintf.c (decimal_point_char): Likewise.
25340         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25341         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25343         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25344         * tests/test-sigaction.c (handler, main): Likewise.
25345         * lib/freading.h: Treat uClibc like a non-glibc platform.
25346         * lib/freading.c: Likewise.
25347         * lib/gettext.h: Likewise.
25348         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25349         Likewise.
25350         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25351         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25352         * lib/propername.c (proper_name_utf8): Likewise.
25353         * lib/spawn.in.h: Likewise.
25354         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25355         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25356         mem_cd_iconveh_internal): Likewise.
25357         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25358         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25359         strstr, strcasestr): Likewise.
25360         * lib/unicodeio.c (unicode_to_mb): Likewise.
25361         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25362         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25363         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25364         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25365         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25366         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25367         * lib/unistr/u8-stpncpy.c: Likewise.
25368         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25369         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25371         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25372         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25374         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25377         Likewise.
25378         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25379         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25383         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25384         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25385         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25386         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25387         * tests/test-striconveha.c (main): Likewise.
25388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25389         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25390         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25391         * doc/posix-functions/getline.texi: Likewise.
25392         Reported by Mike Frysinger <vapier@gentoo.org>.
25393
25394 2010-11-20  Bruno Haible  <bruno@clisp.org>
25395
25396         nproc: Fix condition.
25397         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25398         HAVE_PTHREAD_AFFINITY_NP.
25399
25400 2010-11-20  Bruno Haible  <bruno@clisp.org>
25401
25402         Fix a comment.
25403         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25404
25405 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25406
25407         ftoastr: don't assume snprintf
25408         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25409         Implement a subset of snprintf here, by using sprintf safely.
25410         * modules/ftoastr (Depends-on): Remove snprintf.
25411
25412 2010-11-19  Jim Meyering  <meyering@redhat.com>
25413
25414         test-rename.h: fix compilation failure
25415         * tests/test-rename.h (test_rename): Add omitted "}".
25416
25417 2010-11-17  Jim Meyering  <meyering@redhat.com>
25418
25419         maint.mk: add a URL discussing the no-@acronym policy
25420         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25421
25422 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25423
25424         ftoastr: depend on snprintf, improve comments
25425         * lib/ftoastr.c: Also mention Loitsch's draft.
25426         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25427         needed in the current implementation, but it might simplify
25428         speeding up the code later.
25429         * modules/ftoastr: Depend on snprintf; this improves portability.
25430         Suggested by Bruno Haible in the same email.
25431
25432         ftoastr: port to hosts lacking strtof and strtold
25433         Problem reported by Bruno Haible in
25434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25435         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25436         environment and strtold (and presumably strtof) are not available.
25437         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25438         (configure.ac): Require gl_C99_STRTOLD.
25439
25440 2010-11-18  Bruno Haible  <bruno@clisp.org>
25441
25442         c-strtold: Avoid link error on AIX 7.
25443         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25444         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25445         (gl_C_STRTOLD): Test whether strtold_l exists.
25446         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25447
25448 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25449
25450         intprops: new macro INT_BITS_STRLEN_BOUND
25451         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25452         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25453         not exposed.  Also, it uses a slightly tighter bound than before;
25454         though this makes no practical difference, we might as well be as
25455         tight as we easily can.
25456
25457         ftoastr: new module, for lossless conversion of floats to short strings
25458         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25459         * modules/ftoastr: New files.
25460
25461 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25462
25463         bootstrap: port to Solaris sed
25464         * build-aux/bootstrap (get_version): Port to Solaris sed.
25465         See Ralf Wildenhues's note in
25466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25467
25468 2010-11-14  Jim Meyering  <meyering@redhat.com>
25469
25470         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25471         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25472         and move definition closer to sole use.
25473
25474 2010-11-13  Jim Meyering  <meyering@redhat.com>
25475
25476         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25477         Now we require at least autoconf-2.59, which means the work-around
25478         is no longer needed.
25479         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25481         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25482         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25483         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25484
25485 2010-11-13  Bruno Haible  <bruno@clisp.org>
25486
25487         rename, renameat: Avoid test failures at NFS mounted locations.
25488         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25489         functions.
25490         (test_rename): Use assert_nonexistent.
25491         * tests/test-rename.c: Include <dirent.h>.
25492         * tests/test-renameat.c: Likewise.
25493         Reported by Gary V. Vaughan <gary@gnu.org>.
25494
25495         rename, renameat: Document Linux bug with NFS
25496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25497         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25498         * doc/posix-functions/renameat.texi: Likewise.
25499         Suggested by Eric Blake.
25500
25501 2010-11-13  Bruno Haible  <bruno@clisp.org>
25502
25503         rename test: Add comments.
25504         * tests/test-rename.h (test_rename): Add structure and comments.
25505
25506 2010-11-13  Eric Blake  <eblake@redhat.com>
25507
25508         maintainer-makefile: cover a few more files
25509         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25510         scripts generated within C files, for libvirt.
25511
25512 2010-11-13  Bruno Haible  <bruno@clisp.org>
25513
25514         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25515         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25516         character, return the number of bytes that belong together, not always
25517         1.
25518         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25519         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25520         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25521         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25522         number of bytes of an invalid character.
25523         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25524         (main): Invoke it.
25525         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25526         results.
25527         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25528         malformed byte sequences.
25529         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25530         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25531         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25532         Reported by Ben Pfaff and Paolo Bonzini.
25533
25534 2010-11-13  Bruno Haible  <bruno@clisp.org>
25535
25536         openat: Work around glibc bug with fchownat() and empty file names.
25537         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25538         (gl_FUNC_FCHOWNAT): Invoke it.
25539         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25540         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25541         Reported by Gary V. Vaughan <gary@gnu.org>.
25542
25543 2010-11-13  Bruno Haible  <bruno@clisp.org>
25544
25545         openat: Ensure autoconf macro ordering.
25546         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25547         gl_USE_SYSTEM_EXTENSIONS.
25548         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25549
25550 2010-11-13  Bruno Haible  <bruno@clisp.org>
25551
25552         Update comments.
25553         * lib/unistr/u8-check.c: Update file name in comments.
25554         * lib/unistr/u8-mblen.c: Likewise.
25555         * lib/unistr/u8-prev.c: Likewise.
25556         * lib/unistr/u8-strmblen.c: Likewise.
25557         * lib/unistr/u8-strmbtouc.c: Likewise.
25558
25559 2010-11-13  Jim Meyering  <meyering@redhat.com>
25560
25561         tests: avoid test failure on Solaris 10 due to lack of PATH export
25562         * tests/test-update-copyright.sh: Don't forget to export PATH.
25563
25564         init.sh: ensure that IFS is defined, just in case...
25565         * tests/init.sh (setup_): Ensure that IFS is defined,
25566         so that saving and restoring it works as expected.  This
25567         appears to be useful at least for an old version of dash
25568         from a long time ago (RH 6).  See here for details:
25569         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25570
25571         maint.mk: tighten "test a == b" check
25572         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25573         test to files that contain something like #!/bin/sh.
25574         Without this, coreutils would get two false positives in
25575         the comments of C source files.
25576
25577 2010-11-12  Eric Blake  <eblake@redhat.com>
25578
25579         bootstrap: fix typo in previous attempt
25580         * build-aux/bootstrap (buildreq): Correct the grouping.
25581         Reported by Paul Eggert.
25582
25583         maintainer-makefile: prohibit test x == x
25584         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25585         Based on a report by Matthias Bolte.
25586
25587         bootstrap: allow FreeBSD gzip
25588         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25589         which has no '.' and goes to stderr.
25590         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25591         Reported by Matthias Bolte.
25592
25593         maintainer-makefile: check for i18n setup
25594         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25595         will likely work.
25596
25597 2010-11-12  Bruno Haible  <bruno@clisp.org>
25598
25599         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25600         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25601         * lib/nanosleep.c (nanosleep): Likewise.
25602
25603 2010-11-11  Bruno Haible  <bruno@clisp.org>
25604
25605         fcntl-h: Fix for use of C++ on glibc systems.
25606         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25607         also on glibc systems in C++ mode.
25608         Reported by Gary V. Vaughan <gary@gnu.org>.
25609
25610 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25611
25612         mknod: avoid false failure with dash
25613         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25614
25615 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25616
25617         unlink: Fix "is it should" typo in diagnostic.
25618         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25620
25621 2010-11-11  Bruno Haible  <bruno@clisp.org>
25622
25623         Tests for module 'strerror_r-posix'.
25624         * modules/strerror_r-posix-tests: New file.
25625         * tests/test-strerror_r.c: New file.
25626         * tests/test-string-c++.cc: Check the signature of strerror_r.
25627
25628         New module 'strerror_r-posix'.
25629         * lib/string.in.h (strerror_r): New declaration.
25630         * lib/strerror_r.c: New file.
25631         * m4/strerror_r.m4: New file.
25632         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25633         of strerror_r.
25634         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25635         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25636         * modules/strerror_r-posix: New file.
25637         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25638         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25639         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25640         portability problems.
25641
25642 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25643
25644         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25645         line is also considered for output. Quoted function name in shell
25646         command, so temporary files for functions like MyClass::operator()
25647         are removed correctly without errors.
25648
25649 2010-11-09  Bruno Haible  <bruno@clisp.org>
25650
25651         * doc/posix-functions/strerror.texi: List more failing platforms.
25652
25653         * doc/posix-functions/strerror.texi: Add a comment.
25654
25655 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25656
25657         fdopendir: fix bug on MacOS X when low on file descriptors
25658
25659         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25660         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25661         All callers changed.
25662         (fdopendir): Invoke save_cwd at the top level, not after using
25663         multiple dup() calls to use up file descriptors.  Then retry
25664         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25665         less than the maximum number of open file descriptors, because
25666         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25667         on Mac OS X 10.6.4 for tar 1.24
25668         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25669         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25670         and for tar 1.25
25671         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25672
25673 2010-11-07  Bruno Haible  <bruno@clisp.org>
25674
25675         vasnprintf: Support I flag on glibc systems.
25676         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25677         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25678         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25679         snprintf function.
25680         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25681         glibc systems.
25682         * tests/test-vasnprintf-posix3.c: New file.
25683         * modules/vasnprintf-posix-tests (Files): Add it.
25684         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25685
25686 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25687
25688         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25689         * MODULES.html.sh: For compiler warnings, use name
25690         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25691
25692 2010-11-05  Eric Blake  <eblake@redhat.com>
25693
25694         ceil, floor: avoid spurious failure with icc
25695         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25696         [denormals-as-zero] when optimizing without -mieee-fp option.
25697         * tests/test-floorf2.c (floorf_reference): Likewise.
25698         * tests/test-ceilf1.c (dummy): New function.
25699         (main): Use it to outsmart icc's optimization.
25700         * tests/test-floorf1.c (dummy, main): Likewise.
25701
25702         tests: require working signbit
25703         * modules/ceilf-tests (Depends-on): Add signbit.
25704         * modules/ceill-tests (Depends-on): Likewise.
25705         * modules/floorf-tests (Depends-on): Likewise.
25706         * modules/floorl-tests (Depends-on): Likewise.
25707         * modules/round-tests (Depends-on): Likewise.
25708         * modules/roundf-tests (Depends-on): Likewise.
25709         * modules/roundl-tests (Depends-on): Likewise.
25710         * modules/trunc-tests (Depends-on): Likewise.
25711         * modules/truncf-tests (Depends-on): Likewise.
25712         * modules/truncl-tests (Depends-on): Likewise.
25713
25714         strtod: work around icc bug
25715         * lib/strtod.c (minus_zero): Define to working value.
25716         (strtod): Use it to avoid icc bug.
25717
25718         copysign: enhance tests
25719         * modules/copysign-tests (Files): Add minus-zero.h.
25720         * tests/test-copysign.c (main): Also test zeros.
25721
25722 2010-11-04  Eric Blake  <eblake@redhat.com>
25723
25724         ceil, floor, round, trunc: enhance tests of -0
25725         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25726         * tests/test-ceill.c (main): Likewise.
25727         * tests/test-floorf1.c (main): Likewise.
25728         * tests/test-floorl.c (main): Likewise.
25729         * tests/test-round1.c (main): Likewise.
25730         * tests/test-roundf1.c (main): Likewise.
25731         * tests/test-roundl.c (main): Likewise.
25732         * tests/test-trunc1.c (main): Likewise.
25733         * tests/test-truncf1.c (main): Likewise.
25734         * tests/test-truncl.c (main): Likewise.
25735
25736 2010-11-04  Eric Blake  <eblake@redhat.com>
25737
25738         frexp, tests: work around ICC bug with -zero
25739         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25740         works with more compilers.
25741         * tests/minus-zero.h: New file.
25742         * modules/ceilf-tests (Files): Include it.
25743         * modules/ceill-tests (Files): Likewise.
25744         * modules/floorf-tests (Files): Likewise.
25745         * modules/floorl-tests (Files): Likewise.
25746         * modules/frexp-nolibm-tests (Files): Likewise.
25747         * modules/frexp-tests (Files): Likewise.
25748         * modules/frexpl-nolibm-tests (Files): Likewise.
25749         * modules/frexpl-tests (Files): Likewise.
25750         * modules/isnan-tests (Files): Likewise.
25751         * modules/isnand-nolibm-tests (Files): Likewise.
25752         * modules/isnand-tests (Files): Likewise.
25753         * modules/isnanf-nolibm-tests (Files): Likewise.
25754         * modules/isnanf-tests (Files): Likewise.
25755         * modules/isnanl-nolibm-tests (Files): Likewise.
25756         * modules/isnanl-tests (Files): Likewise.
25757         * modules/round-tests (Files): Likewise.
25758         * modules/roundf-tests (Files): Likewise.
25759         * modules/roundl-tests (Files): Likewise.
25760         * modules/ldexpl-tests (Files): Likewise.
25761         * modules/signbit-tests (Files): Likewise.
25762         * modules/snprintf-posix-tests (Files): Likewise.
25763         * modules/sprintf-posix-tests (Files): Likewise.
25764         * modules/strtod-tests (Files): Likewise.
25765         * modules/trunc-tests (Files): Likewise.
25766         * modules/truncf-tests (Files): Likewise.
25767         * modules/truncl-tests (Files): Likewise.
25768         * modules/vsnprintf-posix-tests (Files): Likewise.
25769         * modules/vsprintf-posix-tests (Files): Likewise.
25770         * modules/vasnprintf-posix-tests (Files): Likewise.
25771         * modules/vasprintf-posix-tests (Files): Likewise.
25772         * tests/test-ceilf1.c (main): Use it.
25773         * tests/test-ceill.c (main): Likewise.
25774         * tests/test-floorf1.c (main): Likewise.
25775         * tests/test-floorl.c (main): Likewise.
25776         * tests/test-frexp.c (main): Likewise.
25777         * tests/test-frexpl.c (main): Likewise.
25778         * tests/test-isnan.c (main): Likewise.
25779         * tests/test-isnand.h (main): Likewise.
25780         * tests/test-isnanf.h (main): Likewise.
25781         * tests/test-isnanl.h (main): Likewise.
25782         * tests/test-ldexpl.c (main): Likewise.
25783         * tests/test-round.c (main): Likewise.
25784         * tests/test-roundf.c (main): Likewise.
25785         * tests/test-roundl.c (main): Likewise.
25786         * tests/test-signbit.c (test_signbitf, test_signbitd)
25787         (test_signbitl): Likewise.
25788         * tests/test-snprintf-posix.h (test_function): Likewise.
25789         * tests/test-sprintf-posix.h (test_function): Likewise.
25790         * tests/test-strtod.c (main): Likewise.
25791         * tests/test-trunc1.c (main): Likewise.
25792         * tests/test-truncf1.c (main): Likewise.
25793         * tests/test-truncl.c (main): Likewise.
25794
25795         isnanl: work around icc bug
25796         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25797
25798 2010-11-03  Eric Blake  <eblake@redhat.com>
25799
25800         tests: fix compiler warnings
25801         * tests/test-getopt.h (test_getopt): Fix condition.
25802         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25803         * tests/test-pipe2.c (main): Likewise.
25804         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25805
25806         utimens: fix broken m4 test
25807         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25808
25809 2010-10-28  Bruno Haible  <bruno@clisp.org>
25810
25811         posix_spawn*, getdtablesize: Relax license.
25812         * modules/posix_spawn (License): Change to LGPLv2+.
25813         * modules/posix_spawnp (License): Likewise.
25814         * modules/posix_spawn-internal (License): Likewise.
25815         * modules/posix_spawnattr_init (License): Likewise.
25816         * modules/posix_spawnattr_getflags (License): Likewise.
25817         * modules/posix_spawnattr_setflags (License): Likewise.
25818         * modules/posix_spawnattr_getpgroup (License): Likewise.
25819         * modules/posix_spawnattr_setpgroup (License): Likewise.
25820         * modules/posix_spawnattr_getschedparam (License): Likewise.
25821         * modules/posix_spawnattr_setschedparam (License): Likewise.
25822         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25823         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25824         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25825         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25826         * modules/posix_spawnattr_getsigmask (License): Likewise.
25827         * modules/posix_spawnattr_setsigmask (License): Likewise.
25828         * modules/posix_spawnattr_destroy (License): Likewise.
25829         * modules/posix_spawn_file_actions_init (License): Likewise.
25830         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25831         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25832         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25833         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25834         * modules/getdtablesize (License): Likewise.
25835         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25836
25837 2010-10-26  Bruno Haible  <bruno@clisp.org>
25838
25839         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25840         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25841         Cygwin and mingw.
25842         Suggested by Eric Blake.
25843
25844 2010-10-26  Bruno Haible  <bruno@clisp.org>
25845
25846         stdio: Work around compilation error due to renameat() on Solaris 10.
25847         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25848         * lib/renameat.c: Don't include <unistd.h> here.
25849         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25850         Reported by Paul Eggert and Eric Blake.
25851
25852 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25853
25854         renameat: port to Solaris 10, which declares renameat in unistd.h
25855
25856         * lib/renameat.c: Include unistd.h before stdio.h, because
25857         Solaris 10 declares renameat in unistd.h.  Problem encountered
25858         when building GNU tar 1.24 on Solaris 10.
25859
25860 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25861
25862         fdopendir: fix C89 compilation
25863         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25864         compilers.
25865
25866 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25867
25868         inttostr: simplify by removing unnecessary redundancy
25869         * lib/anytostr.c: Don't include verify.h.
25870         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25871         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25872         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25873         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25874         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25875         Likewise.
25876         * modules/inttostr (Depends-on): Remove 'verify'.
25877
25878 2010-10-23  Bruno Haible  <bruno@clisp.org>
25879
25880         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25881         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25882         Reported by Eric Blake.
25883
25884 2010-10-23  Bruno Haible  <bruno@clisp.org>
25885
25886         Tests: Fix LOCALE_JA on MirBSD 10.
25887         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25888         to an UTF-8 locale.
25889         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25891         Reported by Eric Blake.
25892
25893 2010-10-21  Bruno Haible  <bruno@clisp.org>
25894
25895         nl_langinfo test: Avoid test failure on NetBSD 5.
25896         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25897         Reported by Eric Blake.
25898
25899 2010-10-21  Eric Blake  <eblake@redhat.com>
25900
25901         c-stack: work around libsigsegv 2.8 bug
25902         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25903         overflow on at least PowerPC64.
25904
25905 2010-10-17  Bruno Haible  <bruno@clisp.org>
25906
25907         userspec: Drop redundant file.
25908         * modules/userspec (Files): Remove lib/inttostr.h.
25909
25910 2010-10-17  Bruno Haible  <bruno@clisp.org>
25911
25912         nl_langinfo tests: Silence some warnings.
25913         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25914         Reported by Jim Meyering.
25915
25916 2010-10-17  Bruno Haible  <bruno@clisp.org>
25917
25918         Make use of GCC's attribute __alloc_size__.
25919         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25920         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25921         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25922         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25923         __alloc_size__.
25924         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25925         Suggested by Jim Meyering.
25926
25927 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25928
25929         bootstrap: anchor .gitignore entries.
25930         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25931         with...
25932         (insert_vc_ignore): ... this new function, which prepends `/' to
25933         all .gitignore entries before passing them to
25934         insert_sorted_if_absent.
25935
25936 2010-10-16  Bruno Haible  <bruno@clisp.org>
25937
25938         nextafter: Fix configure check.
25939         * modules/nextafter (configure.ac): Correct expected prototype.
25940
25941 2010-10-16  Bruno Haible  <bruno@clisp.org>
25942
25943         termios: Update documentation.
25944         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25945
25946 2010-10-16  Bruno Haible  <bruno@clisp.org>
25947
25948         tests: Make them compile with TinyCC.
25949         * tests/test-strstr.c (main): Remove parentheses around array
25950         initializer.
25951
25952 2010-10-15  Eric Blake  <eblake@redhat.com>
25953
25954         ignore-value: make header idempotent
25955         * lib/ignore-value.h: Add double-inclusion guards.
25956         Reported by Stefan Berger.
25957
25958 2010-10-15  Jim Meyering  <meyering@redhat.com>
25959
25960         GNUmakefile: handle "stable" target, not "major"
25961         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25962         lists in maint.mk and announce-gen.  Without this, "make stable"
25963         would fail to ensure that $(VERSION) is up to date.
25964
25965 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25966
25967         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25968         & co.
25969
25970 2010-10-14  Bruno Haible  <bruno@clisp.org>
25971
25972         vasnprintf: Don't set errno to 0.
25973         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25974         block that sets it to 0.
25975         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25976
25977 2010-10-14  Bruno Haible  <bruno@clisp.org>
25978
25979         socketlib: Fix.
25980         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25981         gl_PREREQ_SYS_H_WINSOCK2.
25982         Reported by Ian Beckwith <ianb@erislabs.net>.
25983
25984 2010-10-13  Jim Meyering  <meyering@redhat.com>
25985
25986         test-select-stdin.c: avoid warn_unused_result warnings
25987         * tests/test-select-stdin.c: Include "macros.h".
25988         ASSERT that read and fflush succeed.
25989
25990 2010-10-13  Jim Meyering  <meyering@redhat.com>
25991
25992         git-version-gen: do require git-VC'd files in cwd
25993         * build-aux/git-version-gen: Reject a git version string
25994         if there are no commits associated with the current directory.
25995         This avoids an unlikely false-positive (unrelated dir whose parent
25996         repository also contains a tag matching v*), as pointed out
25997         by Giuseppe Scrivano in
25998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25999
26000 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26001
26002         argv-iter: omit nonconforming declaration
26003         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26004         enum arg_iter_err declaration, which doesn't conform to C99.
26005         Solaris 10 cc warns about this.
26006
26007 2010-10-13  Eric Blake  <eblake@redhat.com>
26008
26009         termios: fix compilation on mingw
26010         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26011         (gl_TERMIOS_H): Adjust it on mingw.
26012         * modules/termios (Makefile.am): Substitute new key.
26013         * lib/termios.in.h (includes): Make include_next conditional.
26014         * doc/posix-headers/termios.texi (termios.h): Update
26015         documentation.
26016         Reported by Daniel P. Berrange.
26017
26018 2010-10-13  Jim Meyering  <meyering@redhat.com>
26019
26020         git-version-gen: don't require that .git/ be in the current dir
26021         * build-aux/git-version-gen: Adjust this script so that it works
26022         when run from any working directory beneath the top-level .git/-
26023         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26025
26026         test-select: avoid warn_unused_result warnings
26027         * tests/test-select.c: Include "macros.h".
26028         ASSERT that each call to read, write, and pipe succeeds.
26029         While not technically required, also check each "close".
26030         * modules/select-tests (Files): Add tests/macros.h.
26031
26032         test-symlinkat: remove declaration of unused local
26033         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26034
26035         test-inttostr: avoid shadowing warnings
26036         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26037         and use malloc rather than the stack for the same reason as
26038         mentioned in the comment justifying the other allocation.
26039
26040 2010-10-11  Bruno Haible  <bruno@clisp.org>
26041
26042         stdlib: Allow multiple gnulib generated replacements to coexist.
26043         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26044         Reported by Sam Steingold <sds@gnu.org>.
26045
26046 2010-10-11  Jim Meyering  <meyering@redhat.com>
26047
26048         fix a documentation typo
26049         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26050
26051 2010-10-11  Eric Blake  <eblake@redhat.com>
26052
26053         futimens: work around Solaris 11 bug
26054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26055         * tests/test-futimens.h (test_futimens): Enhance, rather than
26056         weaken test.
26057         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26058
26059 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26060
26061         Indentation.
26062         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26063         higher-level operators more to the left.
26064
26065 2010-10-11  Jim Meyering  <meyering@redhat.com>
26066
26067         test-futimens: avoid unwarranted test failure on Solaris 5.11
26068         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26069         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26070         because it tries to dereference the NULL name argument.
26071
26072 2010-10-11  Bruno Haible  <bruno@clisp.org>
26073
26074         Indentation.
26075         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26076         indentation.
26077
26078 2010-10-11  Jim Meyering  <meyering@redhat.com>
26079
26080         spawn.in.h: make indentation consistent with parentheses
26081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26082         Make indentation consistent with parentheses.
26083
26084 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26085
26086         Fix mismatched parens in previous commit
26087         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26088         parens.
26089
26090 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26093
26094         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26095         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26096         * lib/malloca.c: Include "verify.h".
26097         (verify1): Remove, replacing with a verify call.
26098         * lib/relocwrapper.c (verify1): Likewise.
26099         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26100         Likewise.
26101         * modules/malloca (Depends-on): Add 'verify'.
26102         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26103         * modules/vasnprintf (Depends-on): Add 'verify'.
26104         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26105         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26106         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26107         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26108         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26109         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26110         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26111
26112         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26113
26114         Formerly the style was sometimes 2*X - 1, because the C standard
26115         was wrongly thought to disallow ?: in integral constant expressions.
26116         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26117         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26118         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26119         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26120         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26121         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26122         verify that time_t cannot be floating.
26123
26124 2010-10-08  Eric Blake  <eblake@redhat.com>
26125
26126         time: enforce recent POSIX ruling that time_t is integral
26127         * lib/time.in.h (__time_t_must_be_integral): Detect any
26128         problematic systems, allowing the rest of gnulib to assume POSIX.
26129
26130 2010-10-08  Jim Meyering  <meyering@redhat.com>
26131
26132         fdopendir: fix a bug on systems lacking openat and /proc support
26133         OpenBSD 4.7 is one such system.  The most noticeable effect was
26134         failure of any application making nontrivial use of fts: rm, du,
26135         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26136           ./rm: traversal failed: `a': Bad file descriptor
26137         Debugging that, you see that even though FD 6 was closed just
26138         prior to the opendir call in fd_clone_opendir, its resulting
26139         dir->dd_fd was 8, rather than the expected value of 6:
26140
26141         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26142         93                close (fd);
26143         (gdb) n
26144         94                dir = fd_clone_opendir (dupfd);
26145         (gdb) n
26146         95                saved_errno = errno;
26147         (gdb) p dir->dd_fd
26148         $11 = 8
26149
26150         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26151         The problem is that on OpenBSD, fd_clone_opendir has to resort
26152         to using the old-style save/restore CWD mechanism, due to its
26153         lack of openat/proc support, and *that* would steal the FD (6)
26154         that opendir was supposed to use.
26155
26156         The fix is to squirrel away the desired FD so that save_cwd uses a
26157         different one, and then free the dest FD right before calling opendir.
26158         That guarantees opendir will use the required file descriptor.
26159
26160         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26161
26162 2010-10-08  Bruno Haible  <bruno@clisp.org>
26163
26164         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26165         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26166
26167 2010-10-08  Bruno Haible  <bruno@clisp.org>
26168
26169         nanosleep: Make replacement POSIX compliant.
26170         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26171         is out of range.
26172         Reported by Jim Meyering.
26173
26174 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26175
26176         bootstrap: add hook for altering gnulib.mk, for Bison
26177         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26178         the Bison bootstrapping process can rewrite file names and variables
26179         in this file before later parts of 'bootstrap' use the file.
26180         Bison wants to include lib/gnulib.mk from the top-level makefile,
26181         so it needs the file names in this file to be relative to the top
26182         level, not relative to lib; plus it needs variable names to be
26183         rewritten.
26184         (slurp): Use the new function.
26185
26186         bootstrap: reformat for readability
26187         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26188
26189 2010-10-08  Eric Blake  <eblake@redhat.com>
26190
26191         docs: update cygwin progress
26192         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26193         1.7.7.
26194         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26195         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26196         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26197         * doc/posix-functions/carg.texi (carg): Likewise.
26198         * doc/posix-functions/cargf.texi (cargf): Likewise.
26199         * doc/posix-functions/casin.texi (casin): Likewise.
26200         * doc/posix-functions/casinf.texi (casinf): Likewise.
26201         * doc/posix-functions/casinh.texi (casinh): Likewise.
26202         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26203         * doc/posix-functions/catan.texi (catan): Likewise.
26204         * doc/posix-functions/catanf.texi (catanf): Likewise.
26205         * doc/posix-functions/catanh.texi (catanh): Likewise.
26206         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26207         * doc/posix-functions/ccos.texi (ccos): Likewise.
26208         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26209         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26210         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26211         * doc/posix-functions/cexp.texi (cexp): Likewise.
26212         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26213         * doc/posix-functions/cimag.texi (cimag): Likewise.
26214         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26215         * doc/posix-functions/clog.texi (clog): Likewise.
26216         * doc/posix-functions/clogf.texi (clogf): Likewise.
26217         * doc/posix-functions/conj.texi (conj): Likewise.
26218         * doc/posix-functions/conjf.texi (conjf): Likewise.
26219         * doc/posix-functions/cpow.texi (cpow): Likewise.
26220         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26221         * doc/posix-functions/cproj.texi (cproj): Likewise.
26222         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26223         * doc/posix-functions/creal.texi (creal): Likewise.
26224         * doc/posix-functions/crealf.texi (crealf): Likewise.
26225         * doc/posix-functions/csin.texi (csin): Likewise.
26226         * doc/posix-functions/csinf.texi (csinf): Likewise.
26227         * doc/posix-functions/csinh.texi (csinh): Likewise.
26228         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26229         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26230         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26231         * doc/posix-functions/ctan.texi (ctan): Likewise.
26232         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26233         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26234         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26235         * doc/posix-headers/complex.texi (complex.h): Likewise.
26236
26237 2010-10-07  Jim Meyering  <meyering@redhat.com>
26238
26239         parse-datetime: avoid compilation failure on OpenBSD 4.7
26240         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26241         This works around a compilation failure on OpenBSD 4.7:
26242         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26243
26244 2010-10-07  Eric Blake  <eblake@redhat.com>
26245
26246         docs: update cygwin progress
26247         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26248         1.7.6.
26249         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26250         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26251         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26252         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26253         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26254         Likewise.
26255         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26256         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26257         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26258         Likewise.
26259         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26260         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26261         Likewise.
26262         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26263         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26264         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26265         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26266         Likewise.
26267         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26268         Likewise.
26269         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26270
26271         docs: update parse-datetime history
26272         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26273         documentation of this function's history and alternatives.
26274
26275         cygwin: use more robust version check
26276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26277         exclude an eventual cygwin 1.9.1.
26278         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26280         (gl_FUNC_STRCASESTR): Likewise.
26281         Reported by Bruno Haible.
26282
26283 2010-10-06  Bruno Haible  <bruno@clisp.org>
26284
26285         string, sys_select: Avoid #including large headers unless necessary.
26286         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26287         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26288         OSF/1, BeOS, Haiku.
26289         Reported by Jim Meyering.
26290
26291 2010-10-05  Eric Blake  <eblake@redhat.com>
26292
26293         memmem, strstr, strcasestr: fix bug with long periodic needle
26294         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26295         periodic needle having false positive.
26296         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26297         and cygwin 1.7.7.
26298         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26300         (gl_FUNC_STRCASESTR): Likewise.
26301         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26302         * tests/test-memmem.c (main): Expose the bug.
26303         * tests/test-strcasestr.c (main): Likewise.
26304         * tests/test-strstr.c (main): Likewise.
26305         * tests/test-c-strcasestr.c (main): Likewise.
26306         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26307         * doc/posix-functions/strstr.texi (strstr): Likewise.
26308         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26309         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26310
26311 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26312
26313         parse-datetime: do some more renaming
26314         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26315         parse_datetime, not get_date.  Mention the renaming.
26316         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26317         in comments.
26318         * m4/bison.m4: Likewise.
26319
26320 2010-10-05  Eric Blake  <eblake@redhat.com>
26321
26322         parse-datetime: better name than get_date
26323         * NEWS: Reword the deprecation notice.
26324         * modules/get_date: Rename to modules/parse-datetime.
26325         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26326         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26327         * lib/get_date.y: Rename to lib/parse-datetime.y.
26328         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26329         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26330         * doc/getdate.texi: Provide fallback wrapper.
26331         * lib/getdate.h: Move guts, and wrap...
26332         * lib/parse-datetime.h: ...new file.
26333         * lib/parse-datetime.y (get_date): Rename...
26334         (parse_datetime): ...to this.
26335         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26336         (gl_PARSE_DATETIME): ...to this.
26337         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26338         documentation.
26339         * modules/getdate (Files): Provide fallback docs and header.
26340         (Notice, Depends-on): Update references.
26341         * tests/test-parse-datetime.c: Likewise.
26342         * DEPENDENCIES: Likewise.
26343         * MODULES.html.sh (Date and time <time.h>): Likewise.
26344         * doc/parse-datetime.texi (Date input formats)
26345         (Authors of parse_datetime): Likewise.
26346         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26347         (Include): Likewise.
26348         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26349         * gnulib-tool: Likewise.
26350         * m4/bison.m4 (gl_BISON): Likewise.
26351         Suggested by Bruno Haible.
26352
26353 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26354
26355         more ports to Solaris tr, which needs [] around ranges
26356         * gnulib-tool: Solaris tr needs [] around ranges.
26357         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26358         * tests/test-pipe-filter-gi1.c (main): Likewise.
26359         * tests/test-pipe-filter-ii1.c (main): Likewise.
26360
26361 2010-10-05  Eric Blake  <eblake@redhat.com>
26362
26363         bootstrap: fix Solaris regression
26364         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26365         around ranges.
26366         Reported by Pádraig Brady.
26367
26368         bootstrap: work with pkg-config
26369         * build-aux/bootstrap (check_versions): Also transliterate - in
26370         prerequisite name.
26371         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26372         prerequisites that were already found, to avoid confusion.
26373         Reported by Justin Clift.
26374
26375         faccessat: remove unused wrappers
26376         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26377         presence of these wrappers dragged in -lgen on Solaris.
26378         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26379
26380 2010-10-05  Jim Meyering  <meyering@redhat.com>
26381
26382         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26383         * Makefile (sc_pragma_columns): New syntax-check rule.
26384
26385 2010-10-04  Bruno Haible  <bruno@clisp.org>
26386
26387         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26388         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26389         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26390         Reported by Bruce Korb and Eric Blake.
26391
26392 2010-10-04  Bruno Haible  <bruno@clisp.org>
26393
26394         threadlib: Make option --with-libpth-prefix work.
26395         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26396         use $LIBPTH, not just -lpth.
26397
26398 2010-10-04  Bruno Haible  <bruno@clisp.org>
26399
26400         Avoid line length limitation from HP NonStop system header files.
26401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26402         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26403         * lib/ctype.in.h: Likewise.
26404         * lib/dirent.in.h: Likewise.
26405         * lib/errno.in.h: Likewise.
26406         * lib/fcntl.in.h: Likewise.
26407         * lib/float.in.h: Likewise.
26408         * lib/getopt.in.h: Likewise.
26409         * lib/iconv.in.h: Likewise.
26410         * lib/inttypes.in.h: Likewise.
26411         * lib/langinfo.in.h: Likewise.
26412         * lib/locale.in.h: Likewise.
26413         * lib/math.in.h: Likewise.
26414         * lib/netdb.in.h: Likewise.
26415         * lib/netinet_in.in.h: Likewise.
26416         * lib/poll.in.h: Likewise.
26417         * lib/pthread.in.h: Likewise.
26418         * lib/pty.in.h: Likewise.
26419         * lib/sched.in.h: Likewise.
26420         * lib/se-selinux.in.h: Likewise.
26421         * lib/search.in.h: Likewise.
26422         * lib/signal.in.h: Likewise.
26423         * lib/spawn.in.h: Likewise.
26424         * lib/stdarg.in.h: Likewise.
26425         * lib/stddef.in.h: Likewise.
26426         * lib/stdint.in.h: Likewise.
26427         * lib/stdio.in.h: Likewise.
26428         * lib/stdlib.in.h: Likewise.
26429         * lib/string.in.h: Likewise.
26430         * lib/strings.in.h: Likewise.
26431         * lib/sys_file.in.h: Likewise.
26432         * lib/sys_ioctl.in.h: Likewise.
26433         * lib/sys_select.in.h: Likewise.
26434         * lib/sys_socket.in.h: Likewise.
26435         * lib/sys_stat.in.h: Likewise.
26436         * lib/sys_time.in.h: Likewise.
26437         * lib/sys_times.in.h: Likewise.
26438         * lib/sys_utsname.in.h: Likewise.
26439         * lib/sys_wait.in.h: Likewise.
26440         * lib/sysexits.in.h: Likewise.
26441         * lib/termios.in.h: Likewise.
26442         * lib/time.in.h: Likewise.
26443         * lib/unistd.in.h: Likewise.
26444         * lib/wchar.in.h: Likewise.
26445         * lib/wctype.in.h: Likewise.
26446         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26447         * modules/ctype (Makefile.am): Likewise.
26448         * modules/dirent (Makefile.am): Likewise.
26449         * modules/errno (Makefile.am): Likewise.
26450         * modules/fcntl-h (Makefile.am): Likewise.
26451         * modules/float (Makefile.am): Likewise.
26452         * modules/getopt-posix (Makefile.am): Likewise.
26453         * modules/iconv-h (Makefile.am): Likewise.
26454         * modules/inttypes (Makefile.am): Likewise.
26455         * modules/langinfo (Makefile.am): Likewise.
26456         * modules/locale (Makefile.am): Likewise.
26457         * modules/math (Makefile.am): Likewise.
26458         * modules/netdb (Makefile.am): Likewise.
26459         * modules/netinet_in (Makefile.am): Likewise.
26460         * modules/poll-h (Makefile.am): Likewise.
26461         * modules/pthread (Makefile.am): Likewise.
26462         * modules/pty (Makefile.am): Likewise.
26463         * modules/sched (Makefile.am): Likewise.
26464         * modules/search (Makefile.am): Likewise.
26465         * modules/selinux-h (Makefile.am): Likewise.
26466         * modules/signal (Makefile.am): Likewise.
26467         * modules/spawn (Makefile.am): Likewise.
26468         * modules/stdarg (Makefile.am): Likewise.
26469         * modules/stddef (Makefile.am): Likewise.
26470         * modules/stdint (Makefile.am): Likewise.
26471         * modules/stdio (Makefile.am): Likewise.
26472         * modules/stdlib (Makefile.am): Likewise.
26473         * modules/string (Makefile.am): Likewise.
26474         * modules/strings (Makefile.am): Likewise.
26475         * modules/sys_file (Makefile.am): Likewise.
26476         * modules/sys_ioctl (Makefile.am): Likewise.
26477         * modules/sys_select (Makefile.am): Likewise.
26478         * modules/sys_socket (Makefile.am): Likewise.
26479         * modules/sys_stat (Makefile.am): Likewise.
26480         * modules/sys_time (Makefile.am): Likewise.
26481         * modules/sys_times (Makefile.am): Likewise.
26482         * modules/sys_utsname (Makefile.am): Likewise.
26483         * modules/sys_wait (Makefile.am): Likewise.
26484         * modules/sysexits (Makefile.am): Likewise.
26485         * modules/termios (Makefile.am): Likewise.
26486         * modules/time (Makefile.am): Likewise.
26487         * modules/unistd (Makefile.am): Likewise.
26488         * modules/wchar (Makefile.am): Likewise.
26489         * modules/wctype (Makefile.am): Likewise.
26490
26491 2010-10-04  Bruno Haible  <bruno@clisp.org>
26492
26493         read-file tests: Avoid a test failure on NonStop Kernel.
26494         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26495         a regular file.
26496         Reported by Joachim Schmitz <schmitz@hp.com>.
26497
26498 2010-10-03  Bruno Haible  <bruno@clisp.org>
26499
26500         gnulib-tool: Fixes for --create-testdir with --libtool.
26501         * gnulib-tool (func_get_automake_snippet): Don't augment
26502         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26503         an executable.
26504         (func_create_testdir): Handle module 'alloca' like func_import.
26505         Reported by Bruce Korb <bruce.korb@gmail.com>.
26506
26507 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26508
26509         Avoid some lines longer than 80 characters.
26510         * lib/stdint.in.h: Break long comment lines.
26511         * lib/math.in.h: Likewise.
26512         (_GL_NUM_UINT_WORDS): New macro, for readability.
26513         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26514         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26515         * lib/stdlib.in.h: Likewise.
26516         * lib/spawn.in.h: Likewise.
26517         * lib/sys_socket.in.h: Update an URL.
26518         * lib/sys_stat.in.h: Break long line.
26519
26520 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26521
26522         Improve pmccabe2html.
26523         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26524         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26525         when the sources change. Remove the line in the HTML about "Used
26526         ranges" (which implied that there might be other unused ranges),
26527         rename "Resume" to "Summary" (easier to understand for more users).
26528         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26529         styles, and some unnecessary blank lines.
26530
26531 2010-10-03  Bruno Haible  <bruno@clisp.org>
26532             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26533
26534         acl: Add support for ACLs on NonStop Kernel.
26535         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26536         Check whether the function aclsort() exists.
26537         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26538         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26539         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26540         (acl_nontrivial [HAVE_ACLSORT]: New function.
26541         (file_has_acl): Implement for NonStop Kernel.
26542         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26543         (qset_acl): Implement for NonStop Kernel.
26544         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26545         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26546         (main): Implement for NonStop Kernel.
26547         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26548         Kernel. Handle this flavor.
26549         * tests/test-set-mode-acl.sh: Likewise.
26550         * tests/test-copy-acl.sh: Likewise.
26551         * tests/test-copy-file.sh: Likewise.
26552
26553 2010-10-03  Bruno Haible  <bruno@clisp.org>
26554
26555         Info about ACLs on NonStop Kernel.
26556         * doc/acl-resources.txt: Add info about NonStop Kernel.
26557         References by Joachim Schmitz <schmitz@hp.com>.
26558
26559 2010-10-02  Bruno Haible  <bruno@clisp.org>
26560
26561         Define missing EDQUOT on NonStop Kernel.
26562         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26563         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26565         missing.
26566         * doc/posix-headers/errno.texi: Mention the NSK bug.
26567         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26568         Reported by Joachim Schmitz <schmitz@hp.com>.
26569
26570 2010-10-02  Bruno Haible  <bruno@clisp.org>
26571
26572         Update doc for POSIX:2008.
26573         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26574         Update URL of POSIX specification.
26575
26576 2010-10-02  Bruno Haible  <bruno@clisp.org>
26577
26578         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26579         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26580         from gnulib, not from Automake.
26581
26582 2010-10-02  Bruno Haible  <bruno@clisp.org>
26583
26584         New module 'system-posix'.
26585         * modules/system-posix: New file.
26586         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26587         module is present.
26588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26589         GNULIB_SYSTEM_POSIX.
26590         * modules/stdlib (Depends-on): Remove sys_wait.
26591         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26592         * doc/posix-functions/system.texi: Mention the new module.
26593         * doc/posix-headers/stdlib.texi: Likewise.
26594         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26595         define test_sys_wait_macros to a no-op.
26596         Reported by Sam Steingold <sds@gnu.org>.
26597
26598 2010-09-30  Bruno Haible  <bruno@clisp.org>
26599
26600         More renaming from 'getdate' to 'get_date'.
26601         * doc/get_date.texi: Renamed from doc/getdate.texi.
26602         * modules/get_date (Files): Update.
26603         * MODULES.html.sh (Date and time <time.h>): Update.
26604         * DEPENDENCIES: Update.
26605         * gnulib-tool: Update comment.
26606         * m4/bison.m4 (gl_BISON): Likewise.
26607         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26608
26609 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26610
26611         bootstrap: support ACLOCAL_FLAGS during aclocal
26612         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26613         can add additional -I dir for third-party .m4 files.
26614
26615 2010-09-30  Eric Blake  <eblake@redhat.com>
26616
26617         bootstrap: use glibtoolize on MacOS
26618         * build-aux/bootstrap (check_versions): Convert libtool into
26619         libtoolize.
26620         (tool search): Move libtool check earlier, and look for
26621         glibtoolize for MacOS.
26622         (gnulib_tool_options): Auto-add --libtool when appropriate.
26623         Reported by Justin Clift.
26624
26625         poll: fix typo that broke test on MacOS
26626         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26627         Reported by Justin Clift.
26628
26629         getdate: rename to get_date
26630         Note: getdate.h is not renamed, to minimize client impact.
26631         * modules/getdate: Mark obsolete.  Move old contents...
26632         * modules/get_date: ...to new module name.
26633         * modules/getdate-tests: Move...
26634         * modules/get_date-tests: ...here.
26635         * m4/getdate.m4: Move...
26636         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26637         * lib/getdate.y: Move...
26638         * lib/get_date.y: ...here.
26639         * tests/test-getdate.c: Move...
26640         * tests/test-get_date.c: ...here.
26641         * doc/posix-functions/getdate.texi (getdate): Update name.
26642         * NEWS: Mention the change.
26643
26644 2010-09-29  Bruno Haible  <bruno@clisp.org>
26645
26646         Separate the module 'waitpid' from the module 'sys_wait'.
26647         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26648         present.
26649         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26650         gl_MODULE_INDICATOR_FOR_TESTS.
26651         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26652         * modules/sys_wait (Depends-on): Remove waitpid.
26653         (Makefile.am): Substitute GNULIB_WAITPID.
26654         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26655         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26656         signature only if the 'waitpid' module is present.
26657         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26658         * NEWS: Mention the change.
26659         * modules/grantpt (Depends-on): Add waitpid.
26660         * modules/wait-process (Depends-on): Likewise.
26661
26662 2010-09-29  Bruno Haible  <bruno@clisp.org>
26663
26664         More tests for module 'sys_wait'.
26665         * modules/sys_wait-c++-tests: New file.
26666         * tests/test-sys_wait-c++.cc: New file.
26667         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26668         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26669
26670 2010-09-29  Bruno Haible  <bruno@clisp.org>
26671
26672         New module 'waitpid'.
26673         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26674         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26675         Don't include <process.h>.
26676         (waitpid): Declare only, using modern idiom.
26677         * m4/waitpid.m4: New file.
26678         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26679         * modules/waitpid: New file.
26680         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26681         (Makefile.am): Update.
26682         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26683
26684 2010-09-28  Bruno Haible  <bruno@clisp.org>
26685
26686         poll: Assume ANSI C.
26687         * lib/poll.c (poll): Use an ANSI C declaration.
26688
26689 2010-09-28  Bruno Haible  <bruno@clisp.org>
26690
26691         poll-h: Create poll.h on all platforms.
26692         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26693         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26694         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26695         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26696         (gl_REPLACE_POLL_H): Don't set POLL_H.
26697         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26698         * modules/poll-h (Depends-on): Add include_next.
26699         (Makefile.am): Create poll.h unconditionally. Substitute also
26700         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26701
26702 2010-09-28  Bruno Haible  <bruno@clisp.org>
26703
26704         Tests for module 'poll-h'.
26705         * modules/poll-h-c++-tests: New file.
26706         * tests/test-poll-h-c++.cc: New file.
26707
26708         Tests for module 'poll-h'.
26709         * modules/poll-h-tests: New file.
26710         * tests/test-poll-h.c: New file.
26711
26712 2010-09-28  Bruno Haible  <bruno@clisp.org>
26713
26714         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26715         * modules/poll-h (Depends-on): Add 'extensions'.
26716
26717 2010-09-28  Bruno Haible  <bruno@clisp.org>
26718
26719         New module 'poll-h'.
26720         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26721         (poll): Use modern idiom.
26722         * modules/poll-h: New file.
26723         * modules/poll (Files): Remove lib/poll.in.h.
26724         (Depends-on): Add poll-h.
26725         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26726         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26727         * m4/poll_h.m4: New file.
26728         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26729         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26730         and invoke gl_REPLACE_POLL_H.
26731         * lib/poll.c: Use common idiom.
26732         * tests/test-poll.c: Likewise.
26733         * doc/posix-headers/poll.texi: Mention the poll-h module.
26734         Suggested by Eric Blake.
26735
26736 2010-09-26  Bruno Haible  <bruno@clisp.org>
26737
26738         sys_wait: Implement WSTOPSIG.
26739         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26740         Reported by Simon Josefsson.
26741
26742 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26743
26744         stdlib, sys_wait: Avoid compilation error on mingw.
26745         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26746
26747 2010-09-26  Bruno Haible  <bruno@clisp.org>
26748
26749         stdlib tests: Avoid code duplication.
26750         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26751         * modules/sys_wait-tests (Files): Likewise.
26752         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26753         * tests/test-stdlib.c: Include test-sys_wait.h.
26754         (main): Invoke test_sys_wait_macros.
26755         * tests/test-sys_wait.c: Include test-sys_wait.h.
26756         (main): Invoke test_sys_wait_macros.
26757
26758 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26759
26760         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26761         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26762         sure Windows sockets are working before calling getaddrinfo.
26763         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26764         * doc/gnulib.texi (Windows sockets): Fix typo.
26765
26766 2010-09-25  Bruno Haible  <bruno@clisp.org>
26767
26768         Tests for module 'regex-quote'.
26769         * modules/regex-quote-tests: New file.
26770         * tests/test-regex-quote.c: New file.
26771
26772         New module 'regex-quote'.
26773         * lib/regex-quote.h: New file.
26774         * lib/regex-quote.c: New file.
26775         * modules/regex-quote: New file.
26776         Suggested by Reuben Thomas <rrt@sc3d.org>.
26777
26778 2010-09-24  Bruno Haible  <bruno@clisp.org>
26779
26780         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26781         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26782
26783 2010-09-23  Bruno Haible  <bruno@clisp.org>
26784
26785         setenv: Relax license.
26786         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26787         Blake.
26788         Requested by Eric Blake.
26789
26790 2010-09-22  Bruno Haible  <bruno@clisp.org>
26791
26792         termios: Relax license.
26793         * modules/termios (License): Change to LGPLv2+.
26794         Requested by Eric Blake.
26795
26796 2010-09-22  Bruno Haible  <bruno@clisp.org>
26797
26798         threadlib: Allow the package to change the default to 'no'.
26799         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26800         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26801         Reported by Paul Eggert.
26802
26803 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26804             Bruno Haible  <bruno@clisp.org>
26805
26806         Fix endless loop in mbmemcasecoll.
26807         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26808         byte.
26809         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26810
26811 2010-09-22  Bruno Haible  <bruno@clisp.org>
26812
26813         Tests for module 'memcoll'.
26814         * modules/memcoll-tests: New file.
26815         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26816
26817         memcoll, xmemcoll: Clarify size vs. length.
26818         * modules/memcoll.c (memcoll0): Clarify specification.
26819         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26820         passed to collate_error.
26821
26822 2010-09-22  Bruno Haible  <bruno@clisp.org>
26823
26824         Tests for module 'memcasecmp'.
26825         * modules/memcasecmp-tests: New file.
26826         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26827
26828 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26829
26830         * lib/pthread.in.h: Add split double-inclusion guard, and include
26831         system <pthread.h> if there is one.  Use @@-style as in other
26832         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26833         pthread.h doesn't.
26834         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26835         (pthread_mutexattr_settype, pthread_mutex_trylock):
26836         New static inline functions, if there's no system <pthread.h>.
26837         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26838         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26839         Approximate with mutexes if the system lacks spinlocks, as in
26840         MacOS.
26841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26842         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26843         @@-style.  Check for spinlocks separately.
26844         (gl_PTHREAD_DEFAULTS): New macro.
26845         * modules/pthread: Redo to use a more typical style for in.h files.
26846
26847 2010-09-21  Eric Blake  <eblake@redhat.com>
26848
26849         net_if: enhance tests
26850         * tests/test-net_if.c (main): Move signature checks earlier.
26851         Print failures to stderr.
26852         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26853         Document the bug that we do not yet fix.
26854
26855 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26856
26857         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26858         about gnulib, not GSS.
26859
26860 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26861
26862         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26863         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26864         for Emacs.
26865         * build-aux/pmccabe2html: Make Makefile.am example code more
26866         cut-and-paste friendly.
26867
26868 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26869
26870         * tests/test-net_if.c: New file.
26871         * modules/net_if-tests: New file.
26872
26873 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26874
26875         pthread: add pthread_spin_destroy
26876         * lib/pthread.in.h (pthread_spin_destroy): New function.
26877
26878 2010-09-19  Bruno Haible  <bruno@clisp.org>
26879
26880         gnulib-tool: Fix --help output.
26881         * gnulib-tool (func_usage): Fix help message.
26882         Reported by Reuben Thomas <rrt@sc3d.org>.
26883
26884 2010-09-18  Jim Meyering  <meyering@redhat.com>
26885
26886         maint.mk: avoid unexpanded \n in two diagnostics
26887         * top/maint.mk (sc_prohibit_always_true_header_tests):
26888         Don't use a literal \n in a halt=... assignment.  It would not be
26889         expanded, and the two \n bytes would appear in the diagnostic output
26890         rather than the desired newline.  Use halt=$$(printf ... instead.
26891         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26892
26893 2010-09-18  Bruno Haible  <bruno@clisp.org>
26894
26895         netinet_in: Doc tweak.
26896         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26897         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26898
26899 2010-09-18  Jim Meyering  <meyering@redhat.com>
26900
26901         init.sh: correct an outdated comment
26902         * tests/init.sh (create_exe_shims_):  s/function/alias/
26903
26904         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26905         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26906         a file named "*.exe" is removed between the glob expansion and the
26907         processing of that oddly named file.
26908
26909 2010-09-17  Eric Blake  <eblake@redhat.com>
26910
26911         mirbsd: add some more support
26912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26913         in BSD family.
26914         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26915         devices as OpenBSD.
26916         * m4/host-os.m4 (mirbsd): Add MirBSD.
26917
26918         tests: fix unportable assumption on sys/wait.h
26919         * tests/test-sys_wait.c (main): Relax test.
26920         * tests/test-stdlib.c (main): Likewise.
26921
26922         init.sh: accommodate directory with no .exes
26923         * tests/init.sh: Accomodate directory containing only scripts.
26924
26925         tests: avoid compiler warning
26926         * tests/test-stdlib.c (main): Use the variable.
26927
26928         fdutimens, fdutimensat: update signature, again
26929         * lib/utimens.h (gl_futimens): Delete, and move signature...
26930         (fdutimens): ...here.
26931         (fdutimensat): Rearrange signature.
26932         (lutimensat): Rename variable for clarity.
26933         * lib/fdutimensat.c (fdutimensat): Update signature.
26934         * lib/utimens.c (fdutimens): Likewise.
26935         (gl_futimens): Delete.
26936         (utimens, lutimens): Update callers.
26937         * lib/futimens.c (futimens): Likewise.
26938         * tests/test-fdutimensat.c: Likewise.
26939         * tests/test-utimens.c: Likewise.
26940         * tests/test-futimens.h: Update comment.
26941         * NEWS: Mention this.
26942         Suggested by Paul Eggert.
26943
26944 2010-09-17  Bruno Haible  <bruno@clisp.org>
26945
26946         Take over the maintenance of some older macros from Autoconf.
26947         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26948         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26949         GNU Autoconf.
26950         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26951         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26952
26953 2010-09-17  Eric Blake  <eblake@redhat.com>
26954
26955         fdutimensat: drop atflag validation
26956         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26957         with valid fd, to close a race scenario where futimens is
26958         unsupported and FILE was replaced by a symlink.
26959         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26960         accordingly.
26961         Suggested by Paul Eggert.
26962
26963 2010-09-16  Bruno Haible  <bruno@clisp.org>
26964
26965         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26966         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26967
26968 2010-09-16  Bruno Haible  <bruno@clisp.org>
26969
26970         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26971         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26972         login_tty exists.
26973         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26974
26975 2010-09-16  Bruno Haible  <bruno@clisp.org>
26976
26977         login_tty: Make the replacement code work on BSD systems.
26978         * lib/login_tty.c: Include <sys/ioctl.h>.
26979         (login_tty): Use ioctl TIOCSCTTY when available.
26980         * modules/login_tty (Depends-on): Add sys_ioctl.
26981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26982
26983 2010-09-16  Bruno Haible  <bruno@clisp.org>
26984
26985         login_tty: Stricter unit test.
26986         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26987         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26988         and tcgetsid() after login_tty.
26989         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26990
26991 2010-09-16  Bruno Haible  <bruno@clisp.org>
26992
26993         New module 'tcgetsid'.
26994         * lib/tcgetsid.c: New file.
26995         * m4/tcgetsid.m4: New file.
26996         * modules/tcgetsid: New file.
26997         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26998         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26999         GNULIB_TCGETSID, HAVE_TCGETSID.
27000         * lib/termios.in.h: Include <sys/types.h>.
27001         (tcgetsid): New declaration.
27002         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27003         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27004         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27005         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27006
27007 2010-09-16  Bruno Haible  <bruno@clisp.org>
27008
27009         Tests for module 'termios'.
27010         * modules/termios-c++-tests: New file.
27011         * modules/termios-tests: New file.
27012         * tests/test-termios-c++.cc: New file.
27013         * tests/test-termios.c: New file.
27014
27015         New module 'termios'.
27016         * modules/termios: New file.
27017         * lib/termios.in.h: New file.
27018         * m4/termios_h.m4: New file.
27019         * doc/posix-headers/termios.texi: Mention the new module.
27020
27021 2010-09-16  Eric Blake  <eblake@redhat.com>
27022
27023         fdutimensat: add an atflag parameter
27024         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27025         * lib/utimens.h (fdutimensat): Update prototype.
27026         * tests/test-fdutimensat.c: Adjust test to match.
27027         * NEWS: Document the change.
27028         Suggested by Paul Eggert.
27029
27030 2010-09-16  Bruno Haible  <bruno@clisp.org>
27031
27032         Fix typos in comments.
27033         * lib/striconveh.h: Fix typo in comment.
27034         * lib/login_tty.c (login_tty): Likewise.
27035
27036 2010-09-15  Bruno Haible  <bruno@clisp.org>
27037
27038         stdlib: clarify MirBSD WEXITSTATUS bug
27039         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27040         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27041
27042 2010-09-15  Eric Blake  <eblake@redhat.com>
27043
27044         stdlib: work around MirBSD WEXITSTATUS bug
27045         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27046         * modules/stdlib (Depends-on): Add sys_wait.
27047         * tests/test-sys_wait.c (main): Enhance test.
27048         * tests/test-stdlib.c (main): Likewise.
27049         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27050
27051         docs: mention MacOS issue with WEXITSTATUS(constant)
27052         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27053         issue.
27054         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27055
27056         strnlen: add tests
27057         * modules/strnlen-tests: New file.
27058         * tests/test-strnlen.c: Likewise.
27059
27060 2010-09-14  Bruno Haible  <bruno@clisp.org>
27061
27062         unistr/base: Avoid link errors when module 'libunistring' is also used.
27063         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27064         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27065         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27066         Declare also when HAVE_LIBUNISTRING is set.
27067         Reported by Pádraig Brady <P@draigbrady.com>.
27068
27069 2010-09-14  Eric Blake  <eblake@redhat.com>
27070
27071         test-rawmemchr: make more robust
27072         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27073         (Depends-on, configure.ac): Add needed prerequisites to use it.
27074         * modules/memchr-tests (Files, Depends-on, configure.ac):
27075         Likewise, to avoid implicit reliance on memchr module prereqs.
27076         * tests/test-memchr.c (main): Ensure proper masking.
27077         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27078         reads.
27079
27080         memchr: detect glibc Alpha bug
27081         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27082         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27083         Alpha.
27084         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27085         * tests/test-memchr.c (main): Enhance test.
27086         Reported by Nelson H. F. Beebe.
27087
27088 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27089
27090         fts, getcwd, glob: audit for dirfd returning -1
27091         * lib/fts.c (opendir): Remove #define; no longer used.
27092         (opendirat): New arg PDIR_FD.  All callers changed.
27093         (fts_build, _opendir2): Use new opendirat to avoid the need for
27094         dirfd, or for checking whether dirfd returns a negative value.
27095         Don't use opendir; always use openat followed by fdopendir.
27096         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27097         it.
27098         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27099         returns -1 here.
27100         * modules/fts (Depends-on): Remove dirfd.
27101         * modules/getcwd (Depends-on): Likewise.
27102
27103 2010-09-13  Eric Blake  <eblake@redhat.com>
27104
27105         float: fix broken MirBSD header
27106         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27107         * doc/posix-headers/float.texi (float.h): Document it.
27108
27109 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27110
27111         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27112         * lib/fts.c (opendirat): New arg extra_flags.
27113         (__opendir2): Use it to avoid following symlinks when opening
27114         a directory, if symlinks are not supposed to be followed.  See
27115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27116
27117         fdopendir: preserve argument fd before returning
27118         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27119         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27120         (fdopendir): Use them, arranging for FD to be open to the same
27121         directory that it was when it started.  (It might be temporarily
27122         closed while fdopendir is running, so this not thread- or
27123         signal-safe.)  Be careful to do the right thing even when file
27124         descriptors are scarce and dup fails with errno == EMFILE.  See
27125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27126
27127 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27128
27129         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27130         * NEWS: Document change.
27131         * m4/regex.m4: Disable test for regoff_t size.
27132
27133 2010-09-13  Jim Meyering  <meyering@redhat.com>
27134
27135         fts: don't operate on an invalid file descriptor after failed dup
27136         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27137         negative file descriptor.
27138
27139 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27140
27141         savedir: add streamsavedir, deprecate fdsavedir
27142         * NEWS: Mention deprecation of fdsavedir.
27143         * lib/savedir.c (streamsavedir): New extern function, whose name
27144         ends in "savedir" to be consistent with the others.  This differs
27145         from savedirstream in that it doesn't close its argument.  The
27146         next version of GNU tar will use this instead of fdsavedir, to
27147         avoid some race conditions and conserve file descriptors.
27148         (savedirstream): Reimplement as a wrapper around streamsavedir.
27149         (fdsavedir): Add a comment deprecating this function.  As far as
27150         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27151         * lib/savedir.h (streamsavedir): New decl.
27152         (fdsavedir): Add a comment deprecating this.
27153
27154 2010-09-10  Bruno Haible  <bruno@clisp.org>
27155
27156         langinfo: Fix last commit.
27157         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27158         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27160
27161 2010-09-10  Bruno Haible  <bruno@clisp.org>
27162
27163         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27164         * lib/progreloc.c (O_EXEC): Define fallback.
27165
27166 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27167
27168         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27169         * NEWS: Document recent changes to fcntl-h.
27170         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27171         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27172         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27173         Similarly for O_SEARCH; this last was already true, but not documented.
27174         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27175         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27176         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27177         Likewise.
27178         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27179         is zero, not whether it is defined.
27180         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27181         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27182         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27183
27184 2010-09-10  Bruno Haible  <bruno@clisp.org>
27185
27186         langinfo, nl_langinfo: Fix for IRIX 5.3.
27187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27188         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27189         HAVE_LANGINFO_YESEXPR.
27190         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27191         HAVE_LANGINFO_YESEXPR.
27192         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27193         HAVE_LANGINFO_T_FMT_AMPM is 0.
27194         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27195         HAVE_LANGINFO_YESEXPR is 0.
27196         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27197         NOEXPR.
27198         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27199         * doc/posix-functions/nl_langinfo.texi: Likewise.
27200         Reported by Eric Blake.
27201
27202 2010-09-10  Bruno Haible  <bruno@clisp.org>
27203
27204         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27205         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27206         on FreeBSD 8.0 and OpenBSD 4.6.
27207         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27208         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27209         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27210         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27211         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27212         ac_includes_default.
27213         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27214
27215 2010-09-09  Eric Blake  <eblake@redhat.com>
27216
27217         strsignal: work around NetBSD bug
27218         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27219         * lib/string.in.h (includes): Likewise.
27220         * doc/posix-functions/strsignal.texi (strsignal): Document the
27221         bug.
27222         Reported by Nelson H. F. Beebe.
27223
27224         gnulib-tool: work with NetBSD /bin/sh
27225         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27226         (func_get_description, func_get_comment, func_get_status)
27227         (func_get_notice, func_get_applicability, func_get_filelist)
27228         (func_get_dependencies, func_get_autoconf_early_snippet)
27229         (func_get_autoconf_snippet, func_get_automake_snippet)
27230         (func_get_include_directive, func_get_link_directive)
27231         (func_get_license, func_get_maintainer, func_import): Avoid
27232         shell syntax errors from parsing syntax extensions.
27233
27234 2010-09-09  Bruno Haible  <bruno@clisp.org>
27235
27236         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27237         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27238         a reliable way to determine whether the 'alias' command works.
27239
27240 2010-09-08  Jim Meyering  <meyering@redhat.com>
27241
27242         init.sh: penalize a set-x-impaired shell; don't disqualify it
27243         * tests/init.sh: Too many shells corrupt application stderr when
27244         you set -x, so we can't afford to disqualify them, since at least
27245         on Irix-6.5, that would disqualify all bourne shells.
27246         Instead, use a two-pass approach.
27247         On the first pass, try to find a shell that meets the stricter
27248         condition that set -x does not corrupt stderr.
27249         If no shell meets the stricter condition, retest each candidate
27250         shell, but without that extra condition.  Finally, when
27251         VERBOSE=yes is requested and set -x might cause trouble, simply
27252         issue a warning and refrain from enabling debug output.
27253
27254 2010-09-08  Eric Blake  <eblake@redhat.com>
27255
27256         unsetenv: fix OpenBSD bug
27257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27258         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27259         documentation.
27260         Reported by Jim Meyering.
27261
27262         strtod: work around IRIX 6.5 bug
27263         * lib/strtod.c (strtod): Reparse number on shorter string if
27264         exponent parse was invalid.
27265         * tests/test-strtod.c (main): Add check for "0x1p 2".
27266         Reported by Tom G. Christensen.
27267
27268         getopt: optimize previous patch
27269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27270         empty variable.  Speed up awk script.
27271         Reported by Paolo Bonzini.
27272
27273 2010-09-08  Jim Meyering  <meyering@redhat.com>
27274
27275         test.sh: disqualify shells for which set -x corrupts stderr
27276         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27277         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27278         appear in stderr output.  For example, this command:
27279             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27280         prints "P=1" on those two systems:
27281
27282 2010-09-08  Bruno Haible  <bruno@clisp.org>
27283
27284         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27285         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27286         commands, because some shells ignore redirections when there is an
27287         error in the command lookup.
27288         Reported by Eric Blake.
27289
27290 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27291
27292         * lib/regex.h: Fix a mention of `regex_compile' (should be
27293         `re_compile_pattern').
27294         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27295         (re_set_registers): Correct name of parameter in comment.
27296
27297         * doc/regex.texi: Add documentation for missing syntax flags.
27298         Remove commented-out documentation of defunct syntax option
27299         RE_NO_EMPTY_ALTS.
27300         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27301         Add documentation of re_set_registers.
27302         Document trick to re-use a pattern buffer by setting fastmap manually.
27303         Update documentation of struct re_pattern_buffer per public members.
27304         Uncomment documentation of equivalence class operators and
27305         collating symbol operators, since they are now implemented,
27306         Explain leftmost-longest matching in relation to alternatives.
27307         Tidy documentation of substring matching.
27308         Remove POSIX documentation, which is done better in
27309         glibc, and refer the reader there. Keep BSD API documentation, as
27310         that is not readily available elsewhere.
27311
27312 2010-09-07  Eric Blake  <eblake@redhat.com>
27313
27314         getopt: handle POSIXLY_CORRECT set but not exported
27315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27316         export state of POSIXLY_CORRECT, due to bash set -o posix.
27317         Reported by Dustin J. Mitchell.
27318
27319 2010-09-05  Bruno Haible  <bruno@clisp.org>
27320
27321         gnulib-tool: Highlight the changed options.
27322         * gnulib-tool (func_usage): Display the --import, --add-import,
27323         --remove-import explanations in bold font.
27324
27325 2010-09-06  Karl Berry  <karl@gnu.org>
27326
27327         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27328
27329 2010-09-05  Bruno Haible  <bruno@clisp.org>
27330
27331         uniwidth/width: Update comment.
27332         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27333         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27334
27335 2010-09-05  Bruno Haible  <bruno@clisp.org>
27336
27337         isinf, isnan: Relax license.
27338         * modules/isinf (License): Change from GPL to LGPL, with consent from
27339         Ben Pfaff.
27340         * modules/isnan (License): Likewise.
27341         Requested by Ludovic Courtès.
27342
27343 2010-09-04  Bruno Haible  <bruno@clisp.org>
27344
27345         gnulib-tool: Help migration from --import to --add-import or --update.
27346         * gnulib-tool: Emit a verbose error message when --import is used
27347         without any module name.
27348
27349 2010-09-04  Bruno Haible  <bruno@clisp.org>
27350
27351         Update doc about gnulib-tool.
27352         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27353         'gnulib-tool --update' in more detail.
27354         Reported by Eric Blake.
27355
27356 2010-09-04  Bruno Haible  <bruno@clisp.org>
27357
27358         gnulib-tool: Change --import. New options --add/remove-import.
27359         * gnulib-tool: New options --add-import, --remove-import.
27360         (func_usage): Document them.
27361         (have_associative): Define always.
27362         (func_import): In import mode, don't merge the specified settings with
27363         the cached settings. Implement remove-import mode.
27364         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27365         Explain when to use them versus --import.
27366         (Simple update): Use --add-import instead of --import.
27367         * NEWS: Mention the change.
27368
27369 2010-09-04  Bruno Haible  <bruno@clisp.org>
27370
27371         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27372         separate gnulib.mk.
27373
27374 2010-09-04  Bruno Haible  <bruno@clisp.org>
27375
27376         gnulib-tool: Don't talk about CVS any more.
27377         * gnulib-tool (func_usage, func_import): Write "version control"
27378         instead of CVS.
27379
27380 2010-09-04  Jim Meyering  <meyering@redhat.com>
27381
27382         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27383         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27384         false positives (whose names may be ill-chosen) when searching
27385         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27386         would cause a false-positive.
27387
27388         avoid coreutils "make distcheck" failure
27389         Coreutils tests with an absolute build directory name that contains
27390         a space.  Not quoting this directory name caused a failure.
27391         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27392         * tests/test-vc-list-files-cvs.sh: Likewise.
27393
27394 2010-09-04  Bruno Haible  <bruno@clisp.org>
27395
27396         gnulib-tool: Avoid error when run in a package without Makefile.am.
27397         * gnulib-tool: When collecting the m4dirs in a package that does not
27398         have a Makefile.am, eliminate those directories that contain no
27399         gnulib-cache.m4. Fix expression that counts these directories.
27400
27401 2010-09-04  Bruno Haible  <bruno@clisp.org>
27402
27403         update-copyright test: Improve output when perl is missing or too old.
27404         * tests/test-update-copyright.sh: Move test of Perl version down after
27405         the test whether Perl exists. Provide an explanation relating Perl's
27406         error message to Automake's SKIP: message.
27407
27408 2010-09-04  Bruno Haible  <bruno@clisp.org>
27409
27410         Don't augment PATH in TESTS_ENVIRONMENT.
27411         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27412         set abs_aux_dir instead of augmenting PATH.
27413         * modules/vc-list-files-tests (Makefile.am): Likewise.
27414         * tests/test-update-copyright.sh: Augment PATH here.
27415         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27416         path_prepend_.
27417         * tests/test-vc-list-files-git.sh: Likewise.
27418
27419 2010-09-04  Jim Meyering  <meyering@redhat.com>
27420
27421         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27422         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27423
27424 2010-09-04  Bruno Haible  <bruno@clisp.org>
27425
27426         strdup: Fix compilation error in C++ mode.
27427         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27428         the macro.
27429
27430 2010-09-04  Bruno Haible  <bruno@clisp.org>
27431
27432         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27433         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27434         macro into a function.
27435         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27436
27437 2010-09-04  Bruno Haible  <bruno@clisp.org>
27438
27439         Set PATH_SEPARATOR the same way autoconf does.
27440         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27441         the value of PATH_SEPARATOR the same way autoconf-generated configure
27442         scripts do.
27443         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27444         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27445
27446 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27447
27448         Set PATH_SEPARATOR the same way autoconf does.
27449         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27450         the same way autoconf-generated configure scripts do.
27451         * posix-modules: Likewise.
27452
27453 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27454
27455         hash: fix safe_hasher const typo
27456         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27457         const; otherwise, there is a type error later.
27458
27459 2010-09-02  Jim Meyering  <meyering@redhat.com>
27460
27461         test-update-copyright.sh: require perl 5.8.0
27462         * tests/test-update-copyright.sh: Require 5.8.0,
27463         which Tom G. Christensen has confirmed is adequate,
27464         while 5.6.1 is not.
27465
27466 2010-09-02  Eric Blake  <eblake@redhat.com>
27467
27468         tests: init.sh improvements for re-exec'ing with zsh
27469         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27470         -vx through shell re-exec.
27471         Reported by Tom G. Christensen.
27472
27473         wctype: fix typo in previous commit
27474         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27475         Reported by Ludovic Courtès.
27476
27477 2010-09-02  Jim Meyering  <meyering@redhat.com>
27478
27479         test-update-copyright.sh: skip test if Perl is too old
27480         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27481         Reported by Tom G. Christensen.
27482
27483 2010-09-02  Bruno Haible  <bruno@clisp.org>
27484
27485         wctype: Avoid compilation error on IRIX 6.5.30.
27486         * lib/wctype.in.h (iswblank): Declare with a replacement if
27487         REPLACE_ISWBLANK is set.
27488         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27489         declared. Set REPLACE_ISWBLANK.
27490         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27491         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27492         * doc/posix-headers/wctype.texi: Likewise.
27493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27494
27495 2010-09-01  Bruno Haible  <bruno@clisp.org>
27496
27497         New module 'socketlib'.
27498         * modules/socketlib: New file.
27499         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27500         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27501         * modules/sockets (Depends-on): Add socketlib.
27502         Suggested by Sam Steingold <sds@gnu.org>.
27503
27504 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27505
27506         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27507
27508         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27509         when one needs search access to a directory but not read access.
27510         On systems where it is available, it works in some cases where
27511         O_RDONLY does not, namely on directories that are searchable but
27512         not readable, and which need only to be searchable.  If O_SEARCH
27513         is not available, fall back to the traditional method of using
27514         O_RDONLY.
27515
27516         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27517         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27518         when opening a directory that needs only to be searchable.
27519         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27520         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27521         * lib/openat-proc.c (openat_proc_name): Likewise.
27522         * lib/openat.c (openat_needs_fchdir): Likewise.
27523         * lib/save-cwd.c (save_cwd): Likewise.
27524         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27525
27526 2010-08-28  Bruno Haible  <bruno@clisp.org>
27527
27528         New module 'host-cpu-c-abi'.
27529         * modules/host-cpu-c-abi: New file.
27530         * m4/host-cpu-c-abi.m4: New file, based on part of
27531         clisp/src/m4/general.m4.
27532         Requested by Sam Steingold <sds@gnu.org>.
27533
27534 2010-08-31  Eric Blake  <eblake@redhat.com>
27535         and Jim Meyering  <meyering@redhat.com>
27536
27537         hash: factor, and guard against misbehaving hasher function
27538         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27539         of table->hasher's return value.  Also protect against a hash value
27540         so large that adding it to table->bucket results in a NULL pointer.
27541         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27542         Use it in place of open-coded check-and-abort.
27543
27544 2010-08-30  Bruno Haible  <bruno@clisp.org>
27545
27546         hash: silence spurious clang warning
27547         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27548         Reported by Eric Blake.
27549
27550 2010-08-30  Eric Blake  <eblake@redhat.com>
27551
27552         strstr, memmem, strcasestr: avoid leaked shell message
27553         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27554         FreeBSD.
27555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27557
27558         tests: silence clang warning
27559         * tests/test-malloca.c (do_allocation): Avoid dead store.
27560
27561 2010-08-29  Bruno Haible  <bruno@clisp.org>
27562
27563         gettext: Fix recent mistake.
27564         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27565
27566 2010-08-29  Bruno Haible  <bruno@clisp.org>
27567
27568         selinux-h: Offer a --without-selinux option.
27569         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27570         --without-selinux was specified, skip all tests and define
27571         HAVE_SELINUX_SELINUX_H to 0.
27572         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27573         set LIB_SELINUX to empty.
27574         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27575         gl_LIBSELINUX. If --without-selinux was specified, replace
27576         selinux/context.h.
27577         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27578
27579 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27580             Bruno Haible  <bruno@clisp.org>
27581
27582         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27583         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27584         of HAVE_REALLOC.
27585         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27586         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27587         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27588         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27589
27590 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27591             Bruno Haible  <bruno@clisp.org>
27592
27593         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27594         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27595         HAVE_CALLOC.
27596         * lib/xmalloc.c: Update accordingly.
27597         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27598         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27599         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27600
27601 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27602             Bruno Haible  <bruno@clisp.org>
27603
27604         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27605         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27606         HAVE_MALLOC.
27607         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27608         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27609         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27610
27611 2010-08-29  Bruno Haible  <bruno@clisp.org>
27612
27613         Update modules list.
27614         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27615         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27616         (String handling <string.h>): Add astrxfrm.
27617         (File system functions): Add readlinkat.
27618
27619 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27620
27621         Tests for module 'realloc-gnu'.
27622         * modules/realloc-gnu-tests: New file.
27623         * tests/test-realloc-gnu.c: New file.
27624
27625         Tests for module 'calloc-gnu'.
27626         * modules/calloc-gnu-tests: New file.
27627         * tests/test-calloc-gnu.c: New file.
27628
27629         Tests for module 'malloc-gnu'.
27630         * modules/malloc-gnu-tests: New file.
27631         * tests/test-malloc-gnu.c: New file.
27632
27633 2010-08-28  Bruno Haible  <bruno@clisp.org>
27634
27635         Rename module 'realloc' -> 'realloc-gnu'.
27636         * modules/realloc-gnu: New file, copied from modules/realloc.
27637         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27638         obsolete.
27639         * modules/mgetgroups (Depends-on): Update.
27640         * doc/posix-functions/realloc.texi: Update.
27641         * NEWS: Mention the change.
27642
27643         Rename module 'calloc' -> 'calloc-gnu'.
27644         * modules/calloc-gnu: New file, copied from modules/calloc.
27645         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27646         obsolete.
27647         * doc/posix-functions/calloc.texi: Update.
27648         * NEWS: Mention the change.
27649
27650         Rename module 'malloc' -> 'malloc-gnu'.
27651         * modules/malloc-gnu: New file, copied from modules/malloc.
27652         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27653         obsolete.
27654         * modules/argp (Depends-on): Update.
27655         * modules/regex (Depends-on): Update.
27656         * doc/posix-functions/malloc.texi: Update.
27657         * NEWS: Mention the change.
27658
27659 2010-08-28  Eric Blake  <eblake@redhat.com>
27660
27661         pread, pwrite: add missing dependency
27662         * modules/pread (Depends-on): Add extensions.
27663         * modules/pwrite (Depends-on): Likewise.
27664
27665 2010-08-28  Bruno Haible  <bruno@clisp.org>
27666
27667         unistr/u*-strchr: Fix tests dependencies.
27668         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27669         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27670         Reported by Ian Beckwith <ianb@erislabs.net>.
27671
27672 2010-08-28  Bruno Haible  <bruno@clisp.org>
27673
27674         read-file: Don't occupy too much unused memory.
27675         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27676
27677 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27678             Eric Blake  <eblake@redhat.com>
27679             Bruno Haible  <bruno@clisp.org>
27680
27681         read-file: Avoid memory reallocations with regular files.
27682         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27683         (fread_file): With regular files, use the remaining length as the
27684         initial buffer size.  Check against overflow.
27685         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27686         sys_stat.
27687
27688 2010-08-28  Bruno Haible  <bruno@clisp.org>
27689
27690         ftello: Relax license.
27691         * modules/ftello (License): Relax to LGPLv2+.
27692         Reported by Eric Blake.
27693
27694 2010-08-28  Bruno Haible  <bruno@clisp.org>
27695
27696         Avoid relocwrapper link errors due to gnulib replacement functions.
27697         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27698         function.
27699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27700
27701 2010-08-28  Bruno Haible  <bruno@clisp.org>
27702
27703         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27704         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27705         defined.
27706         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27707         Suggested by Eric Blake.
27708
27709 2010-08-28  Bruno Haible  <bruno@clisp.org>
27710
27711         sys_socket, netdb: Ensure socklen_t gets defined.
27712         * modules/sys_socket (Depends-on): Add socklen.
27713         * modules/netdb (Depends-on): Likewise.
27714         * modules/getaddrinfo (Depends-on): Remove socklen.
27715         * modules/getsockopt (Depends-on): Likewise.
27716         * modules/setsockopt (Depends-on): Likewise.
27717         * tests/test-sys_socket.c: Check that socklen_t is defined.
27718         * tests/test-netdb.c: Likewise.
27719         * m4/socklen.m4: Update comments.
27720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27721
27722 2010-08-27  Eric Blake  <eblake@redhat.com>
27723
27724         login_tty: add missing dependency
27725         * modules/login_tty (Depends-on): Add pty.
27726
27727 2010-08-26  Eric Blake  <eblake@redhat.com>
27728
27729         lib-symbol-versions: fix m4 quoting
27730         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27731         format for AC_LINK_IFELSE.
27732
27733         glob: fix compile test
27734         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27735
27736         btowc: fix missing file
27737         * modules/btowc (Files): Also ship locale-fr.m4.
27738
27739         lseek: fix link test
27740         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27741         AC_LINK_IFELSE.
27742
27743         include_next: silence autoconf 2.68 warning
27744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27745         AC_COMPILE_IFELSE as special.
27746         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27747         autoconf < 2.68.
27748
27749         acl: fix compilation test
27750         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27751         AC_COMPILE_IFELSE.
27752
27753 2010-08-26  Bruno Haible  <bruno@clisp.org>
27754
27755         Modernize AC_TRY_RUN invocations.
27756         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27757         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27758         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27759         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27760         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27761         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27762         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27764         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27765         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27767         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27768         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27770         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27771         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27772         gl_MBRLEN_NUL_RETVAL): Likewise.
27773         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27774         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27775         Likewise.
27776         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27777         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27778         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27779         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27780         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27781         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27782         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27783         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27784         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27785         Likewise.
27786         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27787         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27789         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27790         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27791         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27792         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27793         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27794         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27796
27797 2010-08-26  Bruno Haible  <bruno@clisp.org>
27798
27799         Modernize AC_TRY_LINK invocations.
27800         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27801         AC_TRY_LINK.
27802         * m4/argp.m4 (gl_ARGP): Likewise.
27803         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27804         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27805         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27807         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27808         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27809         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27810         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27811         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27812         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27813         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27814         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27816         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27817         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27818         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27819         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27820         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27821         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27822         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27823         Likewise.
27824         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27825         Likewise.
27826         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27827         Likewise.
27828         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27830         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27831         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27832         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27833         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27834         * m4/servent.m4 (gl_SERVENT): Likewise.
27835         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27836         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27837         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27838         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27839         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27840         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27841         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27842         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27843         * modules/tsearch-tests (configure.ac): Likewise.
27844
27845 2010-08-26  Bruno Haible  <bruno@clisp.org>
27846
27847         Modernize AC_TRY_COMPILE invocations.
27848         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27849         AC_TRY_COMPILE.
27850         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27851         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27852         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27853         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27855         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27856         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27857         * m4/lock.m4 (gl_LOCK): Likewise.
27858         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27859         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27860         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27862         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27863         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27864         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27865         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27866         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27867         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27868         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27869         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27870         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27871         extraneous semicolon.
27872
27873 2010-08-26  Jim Meyering  <meyering@redhat.com>
27874
27875         stat-time: relax license LGPL
27876         * modules/stat-time (License): Change from GPL to LGPL,
27877         with consent from all contributors, for use in libguile.
27878         Requested by Ludovic Courtès.
27879
27880 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27881
27882         poll: return immediately on POLLHUP.
27883         * lib/poll.c (poll): Always set timeout before wait_timeout is
27884         computed.
27885
27886 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27887
27888         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27889         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27890         rmdir ("dir/.//"), unlinkat.
27891
27892 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27893
27894         stdbool: avoid spurious failure with modern xlc
27895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27896
27897 2010-08-24  Bruno Haible  <bruno@clisp.org>
27898
27899         getloadavg: simplify code
27900         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27901         gl_have_func. Update comments.
27902
27903 2010-08-24  Eric Blake  <eblake@redhat.com>
27904
27905         getloadavg: don't define SVR4 on cygwin
27906         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27907         only define SVR4 when -lkvm is required.
27908         Reported by Yaakov Selkowitz.
27909
27910 2010-08-24  Bruno Haible  <bruno@clisp.org>
27911
27912         priv-set: fix comment
27913         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27914
27915 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27916
27917         priv-set: fix comments
27918         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27919         to match code, as suggested by David Bartley in:
27920         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27921
27922 2010-08-23  Eric Blake  <eblake@redhat.com>
27923
27924         stdbool: avoid rejecting clang
27925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27926         * tests/test-stdbool.c: Enable more tests if using the system
27927         <stdbool.h> instead of the gnulib replacement.
27928         (main): Move xlc bug test to a runtime test for all compilers.
27929         Reported by Anders Kaseorg.
27930
27931         argz: fix shell quoting issue
27932         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27933         Reported by Charles Wilson.
27934
27935 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27936             Erik Faye-Lund <kusmabite@gmail.com>
27937
27938         poll, select: handle ERROR_BROKEN_PIPE.
27939         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27940         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27941         * lib/select.c (win32_compute_revents): Do not mark a pipe
27942         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27943
27944 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27945
27946         fts: allow compilation with C++
27947         * lib/fts_.h: Specify extern "C" linkage with C++.
27948
27949 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27950
27951         Fix gnulib-tool sed script de-commentation for AIX sed.
27952         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27953         sed.
27954
27955 2010-08-17  Eric Blake  <eblake@redhat.com>
27956
27957         test-stddef: test for (some) offsetof bugs
27958         * tests/test-stddef.c: Enhance test to ensure correct type of
27959         offsetof.
27960         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27961         that we are not fixing at this time.
27962
27963 2010-08-15  Bruno Haible  <bruno@clisp.org>
27964
27965         stpncpy: Allow stpncpy to be defined as a macro.
27966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27967         if it's already correctly declared.
27968         * lib/string.in.h (stpncpy): Undefine before redefining.
27969         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27970
27971 2010-08-14  Bruno Haible  <bruno@clisp.org>
27972
27973         Rename module 'memxfrm' to 'amemxfrm'.
27974         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27975         (amemxfrm): Renamed from memxfrm.
27976         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27977         (amemxfrm): Renamed from memxfrm.
27978         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27979         * NEWS: Mention the change.
27980         * MODULES.html.sh (String handling <string.h>): Update.
27981         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27982         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27983         * lib/unicase/u16-casexfrm.c: Likewise.
27984         * lib/unicase/u32-casexfrm.c: Likewise.
27985         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27986         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27987         * lib/uninorm/u16-normxfrm.c: Likewise.
27988         * lib/uninorm/u32-normxfrm.c: Likewise.
27989         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27990         memxfrm.
27991         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27992         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27993         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27994         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27995         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27996         Suggested by Paul Eggert.
27997
27998 2010-08-14  Bruno Haible  <bruno@clisp.org>
27999
28000         Tests for module 'astrxfrm'.
28001         * modules/astrxfrm-tests: New file.
28002         * tests/test-astrxfrm.c: New file.
28003
28004         New module 'astrxfrm'.
28005         * lib/astrxfrm.h: New file.
28006         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28007         * modules/astrxfrm: New file.
28008
28009 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28010
28011         regex: Tweak doc.
28012         * doc/regex.texi (Overview): Don't mention regex.c.
28013         (GNU Regular Expression Compiling): Likewise.
28014         (Match-end-of-line Operator): Mention 'not_eol'.
28015
28016 2010-08-14  Brian Gough  <bjg@gnu.org>
28017             Bruno Haible  <bruno@clisp.org>
28018
28019         git-merge-changelog: add doc relating to use with bzr and hg.
28020         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28021
28022 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28023
28024         pthread: fix pthread.h creation for srcdir != builddir
28025         * modules/pthread (Makefile.am): Fix the rule to work also in a
28026         non-srcdir build.
28027
28028 2010-08-13  Karl Berry  <karl@gnu.org>
28029
28030         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28031         * doc/posix-*/*: force line break before @url of POSIX
28032         specifications.
28033         Suggested by Werner Lemberg.
28034
28035 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28036
28037         strtod: fix const diagnostic
28038         * lib/strtod.c (strtod): Don't assign const char * to char *,
28039         as this elicits a warning from GCC when warnings are enabled.
28040
28041 2010-08-10  Pádraig Brady <P@draigbrady.com>
28042         and Eric Blake  <eblake@redhat.com>
28043
28044         copy-acl: ignore ENOTSUP on HP-UX
28045         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28046         so that it is available for HP-UX.
28047         * lib/copy-acl.c (qcopy_acl): Use it.
28048         Reported by Patrick M. Callahan.
28049
28050 2010-08-10  Eric Blake  <eblake@redhat.com>
28051
28052         open, chown: relax license
28053         * modules/open (License): Change to LGPLv2+, with consent by all
28054         authors, for use in augeas.
28055         * modules/chown (License): Likewise.
28056         * modules/lchown (Likewise): Likewise.
28057         Requested by Adam Stokes.
28058
28059 2010-08-09  Karl Berry  <karl@gnu.org>
28060
28061         * build-aux/ar-lib: new file, import from Automake.
28062         * config/srclist.txt: autocheck for updates.
28063
28064 2010-08-09  Eric Blake  <eblake@redhat.com>
28065
28066         readlinkat: adjust client modules
28067         * modules/areadlinkat (Depends-on): Use readlinkat, not
28068         symlinkat.
28069         * modules/areadlinkat-with-size (Depends-on): Likewise.
28070
28071         mknod: be more vocal about danger of running tests as root
28072         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28073         root, since that is just asking for problems.
28074         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28075
28076         readlinkat: split into its own module
28077         * modules/symlinkat: Split readlinkat...
28078         * modules/readlinkat: ...into separate module.
28079         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28080         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28081         * lib/symlinkat.c (readlinkat): Move...
28082         * lib/readlinkat.c: ...into new file.
28083         * modules/symlinkat-tests: Split readlinkat test...
28084         * modules/readlinkat-tests: ...into separate module.
28085         * tests/test-symlinkat.c: Split...
28086         * tests/test-readlinkat.c: ...into new file.
28087         * NEWS: Document the split.
28088         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28089         * lib/unistd.in.h (readlinkat): Likewise.
28090         Suggested by Bruno Haible.
28091
28092 2010-08-08  Bruno Haible  <bruno@clisp.org>
28093
28094         memxfrm: Speed up.
28095         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28096         that usually only one call to strxfrm is necessary for each string
28097         part.
28098         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28099
28100 2010-08-07  Karl Berry  <karl@gnu.org>
28101
28102         * doc/posix-headers/limits.texi,
28103         * doc/posix-functions/malloc.texi,
28104         * doc/posix-functions/strsignal.texi: missing @item.
28105         * doc/ld-version-script.texi: spurious leading i.
28106         * doc/regex.texi (Interval Operators): no commas inside @var.
28107
28108 2010-08-01  Bruno Haible  <bruno@clisp.org>
28109
28110         Integrate the regex documentation.
28111         * doc/gnulib.texi: Define 'cn' index.
28112         (Regular expressions): New a chapter that includes regex.texi and
28113         regexprops-generic.texi.
28114         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28115         syntax.
28116
28117         Whitespace cleanup.
28118         * doc/regex.texi: Remove trailing spaces.
28119
28120         Add regex documentation.
28121         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28122         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28123         Written by Kathy A. Hargreaves and Karl Berry.
28124
28125 2010-08-01  Bruno Haible  <bruno@clisp.org>
28126
28127         link: Update documentation.
28128         * doc/posix-functions/link.texi: Update regarding Solaris.
28129
28130 2010-07-31  Bruno Haible  <bruno@clisp.org>
28131
28132         Update modules list.
28133         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28134         (String handling <string.h>): Add memcmp2, memxfrm.
28135         (Container data structures): Add xlist, xsublist, xoset.
28136         (Core language properties): Add alignof, unused-parameter.
28137         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28138         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28139         (Unibyte characters <ctype.h>): New section.
28140         (String handling <string.h>): New section.
28141         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28142         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28143         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28144         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28145         tan, tanh, tanl, y0, y1, yn.
28146         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28147         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28148         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28149         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28150         unlockpt, vdprintf, vdprintf-posix.
28151         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28152         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28153         xconcat-filename.
28154         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28155         getdtablesize, pipe2, pipe2-safer.
28156         (Security): New section.
28157         (Networking functions): Add accept4.
28158         (Signal handling): Add sigpipe.
28159         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28160         mbmemcasecoll.
28161         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28162         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28163         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28164         pipe-filter-ii.
28165         (Misc): Add argp-version-etc, login_tty, parse-duration.
28166
28167 2010-07-31  Bruno Haible  <bruno@clisp.org>
28168
28169         Improve doc in MODULES.html.
28170         * modules/linkat (Description): Add the word "function".
28171         * modules/mkfifo (Description): Likewise.
28172         * modules/mknod (Description): Likewise.
28173         * modules/remove (Description): Likewise.
28174         * modules/renameat (Description): Likewise.
28175         * modules/stat (Description): Likewise.
28176         * modules/symlink (Description): Likewise.
28177         * modules/unlink (Description): Likewise.
28178
28179 2010-07-31  Bruno Haible  <bruno@clisp.org>
28180
28181         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28183         option --enable/disable-c++ instead of --enable/disable-cxx.
28184         * NEWS: Mention the change.
28185
28186 2010-07-31  Bruno Haible  <bruno@clisp.org>
28187
28188         readlink, areadlink: Relax test a bit.
28189         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28190         alternative to ENOTDIR.
28191         * tests/test-areadlink.h (test_areadlink): Likewise.
28192         Reported by Rainer Tammer.
28193
28194 2010-07-31  Bruno Haible  <bruno@clisp.org>
28195
28196         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28197         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28198         character, perform the search using U_STRCHR.
28199         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28200         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28201         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28202         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28203         Suggested by Paolo Bonzini.
28204
28205 2010-07-31  Bruno Haible  <bruno@clisp.org>
28206
28207         unistr/u*-strstr: Fix dependencies.
28208         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28209         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28210         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28211
28212 2010-07-31  Bruno Haible  <bruno@clisp.org>
28213
28214         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28215         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28216         the beginning of the loop.
28217         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28218         cases in 'switch' statement.
28219
28220         unistr/u8-strchr: Fix several bugs.
28221         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28222         the string. When not found, return NULL, not a pointer near the end.
28223
28224         More tests for unistr/u8-strchr.
28225         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28226         that the function does not read past the first occurrence of the byte
28227         being searched.
28228         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28229         * tests/unistr/test-u16-strchr.c (main): New function.
28230         * tests/unistr/test-u32-strchr.c (main): New function.
28231
28232 2010-07-31  Bruno Haible  <bruno@clisp.org>
28233
28234         posix-modules: Ignore backup files of documentation files.
28235         * posix-modules: grep only through files named *.texi.
28236
28237 2010-07-31  Bruno Haible  <bruno@clisp.org>
28238
28239         symlinkat: Fix documentation.
28240         * doc/posix-functions/readlinkat.texi: Fix module name.
28241
28242 2010-07-31  Bruno Haible  <bruno@clisp.org>
28243
28244         fchownat: Replace also when chown has the trailing slash bug.
28245         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28246         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28247         introduced on 2010-04-10.
28248         Reported by Rainer Tammer.
28249
28250 2010-07-31  Bruno Haible  <bruno@clisp.org>
28251
28252         linkat: Work around AIX 7.1 bug.
28253         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28254         whether linkat handles trailing slash correctly. If not, replace linkat
28255         and define LINKAT_TRAILING_SLASH_BUG.
28256         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28257         check whether (fd1,file1) points to a directory if file1 or file2 ends
28258         in a slash. Code taken from lib/link.c.
28259         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28260         Reported by Rainer Tammer.
28261
28262 2010-07-31  Bruno Haible  <bruno@clisp.org>
28263
28264         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28265         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28266         This disables an xlc optimization that was causing wrong test results.
28267         Reported by Rainer Tammer.
28268
28269 2010-07-31  Bruno Haible  <bruno@clisp.org>
28270
28271         iconv: Work around AIX 6.1..7.1 bug.
28272         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28273         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28274         cross-compiling, guess no on all versions of AIX.
28275         Reported by Rainer Tammer.
28276
28277 2010-07-31  Bruno Haible  <bruno@clisp.org>
28278
28279         readlink: Relax test a bit.
28280         * tests/test-readlink.h (test_readlink): Allow different errno value
28281         when readlink is called with a file name that ends in / and refers to
28282         a file.
28283         Suggested by Eric Blake.
28284         Reported by Rainer Tammer.
28285
28286 2010-07-31  Bruno Haible  <bruno@clisp.org>
28287
28288         copysign: Does not require -lm on glibc systems.
28289         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28290         gl_COMMON_DOUBLE_MATHFUNC.
28291         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28292
28293 2010-07-31  Bruno Haible  <bruno@clisp.org>
28294
28295         duplocale: Work around AIX 7.1 bug.
28296         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28297         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28298         * lib/duplocale.c (rpl_duplocale): Update comment.
28299         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28300         Reported by Rainer Tammer.
28301
28302 2010-07-30  Bruno Haible  <bruno@clisp.org>
28303
28304         dirfd: Avoid link error on AIX 7.1.
28305         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28306         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28307         exist, set REPLACE_DIRFD.
28308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28309         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28310         * doc/posix-functions/dirfd.texi: Update.
28311         Reported by Rainer Tammer.
28312
28313 2010-07-30  Eric Blake  <eblake@redhat.com>
28314
28315         strtod: next round of AIX fixes
28316         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28317         exponent.
28318         * tests/test-strtod.c (main): Enhance tests.
28319         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28320         Reported by Rainer Tammer.
28321
28322         futimens: fix configure check
28323         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28324         Reported by Bruno Haible.
28325
28326 2010-07-30  Bruno Haible  <bruno@clisp.org>
28327
28328         getline: Update regarding AIX.
28329         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28330         Reported by Rainer Tammer.
28331
28332 2010-07-30  Bruno Haible  <bruno@clisp.org>
28333
28334         wcwidth: Drop replacement on AIX 7.
28335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28336         AIX 7.
28337         Reported by Rainer Tammer.
28338
28339 2010-07-30  Bruno Haible  <bruno@clisp.org>
28340
28341         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28343         a 'char *'.
28344         Reported by Rainer Tammer.
28345
28346 2010-07-30  Bruno Haible  <bruno@clisp.org>
28347
28348         unlink: Update regarding AIX.
28349         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28350         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28351         Reported by Rainer Tammer.
28352
28353 2010-07-30  Bruno Haible  <bruno@clisp.org>
28354
28355         symlink: Update regarding AIX.
28356         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28357         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28358         Reported by Rainer Tammer.
28359
28360 2010-07-30  Bruno Haible  <bruno@clisp.org>
28361
28362         strndup: Update regarding AIX.
28363         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28364         AIX 7.
28365         Reported by Rainer Tammer.
28366
28367 2010-07-30  Bruno Haible  <bruno@clisp.org>
28368
28369         stat: Update regarding AIX.
28370         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28371         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28372         Reported by Rainer Tammer.
28373
28374 2010-07-30  Bruno Haible  <bruno@clisp.org>
28375
28376         truncl: Fix autoconf test.
28377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28378         whether truncl works.
28379         Reported by Rainer Tammer.
28380
28381 2010-07-30  Bruno Haible  <bruno@clisp.org>
28382
28383         round: Update regarding AIX.
28384         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28385         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28386         Reported by Rainer Tammer.
28387
28388 2010-07-30  Bruno Haible  <bruno@clisp.org>
28389
28390         rename: Update regarding AIX.
28391         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28392         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28393         Reported by Rainer Tammer.
28394
28395 2010-07-30  Bruno Haible  <bruno@clisp.org>
28396
28397         printf.m4: Update regarding AIX.
28398         * m4/printf.m4: Update comments regarding AIX.
28399         Reported by Rainer Tammer.
28400
28401 2010-07-30  Bruno Haible  <bruno@clisp.org>
28402
28403         iconv: Update regarding AIX.
28404         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28405         AIX 7.
28406         Reported by Rainer Tammer.
28407
28408 2010-07-30  Bruno Haible  <bruno@clisp.org>
28409
28410         getopt: Update regarding AIX.
28411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28412         no on AIX.
28413         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28414         Reported by Rainer Tammer.
28415
28416 2010-07-30  Bruno Haible  <bruno@clisp.org>
28417
28418         ldexpl; Update regarding AIX.
28419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28420         on AIX 7.
28421         Reported by Rainer Tammer.
28422
28423 2010-07-30  Bruno Haible  <bruno@clisp.org>
28424
28425         frexpl: Update regarding AIX.
28426         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28427         on AIX 7.
28428         Reported by Rainer Tammer.
28429
28430 2010-07-30  Bruno Haible  <bruno@clisp.org>
28431
28432         open, fopen: Update regarding AIX.
28433         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28434         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28435         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28436         * doc/posix-functions/fopen.texi: Likewise.
28437         Reported by Rainer Tammer.
28438
28439 2010-07-30  Bruno Haible  <bruno@clisp.org>
28440
28441         chown: Update doc regarding AIX.
28442         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28443         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28444         Reported by Rainer Tammer.
28445
28446 2010-07-30  Eric Blake  <eblake@redhat.com>
28447
28448         strtod: fix bug in replacement function on AIX
28449         * lib/strtod.c (strtod): Special case broken "0x" parse in
28450         underlying strtod.
28451         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28452         * doc/posix-functions/strtod.texi (strtod): Likewise.
28453         Reported by Rainer Tammer.
28454
28455 2010-07-30  Bruno Haible  <bruno@clisp.org>
28456
28457         mbrlen: Fix cross-compilation guess for AIX.
28458         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28459         guess. Leftover from 2008-12-22.
28460
28461 2010-07-30  Bruno Haible  <bruno@clisp.org>
28462
28463         mbrtowc: Fix cross-compilation guess for AIX.
28464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28465         guess. Leftover from 2008-12-21.
28466
28467 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28468
28469         init.sh: work around trap limitation of some shells
28470         * tests/init.sh (setup_): Move exit trap outside of shell function.
28471
28472 2010-07-29  Eric Blake  <eblake@redhat.com>
28473
28474         strtod: aid debugging
28475         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28476         understanding why strtod is rejected.
28477
28478 2010-07-28  Bruno Haible  <bruno@clisp.org>
28479
28480         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28481         * lib/unistr/u8-chr.c: Include <string.h>.
28482         * tests/unistr/test-u8-chr.c: Likewise.
28483         * tests/unistr/test-u16-chr.c: Likewise.
28484         * tests/unistr/test-u32-chr.c: Likewise.
28485         * tests/unistr/test-u8-strchr.c: Likewise.
28486         * tests/unistr/test-u16-strchr.c: Likewise.
28487         * tests/unistr/test-u32-strchr.c: Likewise.
28488         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28489         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28490         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28491         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28492
28493 2010-07-28  Bruno Haible  <bruno@clisp.org>
28494
28495         Use spaces for indentation, not tabs.
28496         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28497
28498 2010-07-27  Bruno Haible  <bruno@clisp.org>
28499
28500         mbspcasecmp: Fix function specification.
28501         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28502         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28503         Reported by Eric Blake <eblake@redhat.com>.
28504
28505 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28506
28507         timespec: use cast and not conditional, as truncation isn't possible
28508         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28509         instead of a conditional.  Comment about the situation in more detail.
28510         This undoes most of the 2009-10-29 patch.
28511
28512 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28513
28514         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28515         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28516         * lib/unistr/u8-strchr.c: Likewise.
28517         * modules/unistr/u8-chr: Depend on memchr.
28518
28519         unistr/u*-strchr: add tests
28520         * modules/unistr/u8-strchr-tests: New file.
28521         * modules/unistr/u16-strchr-tests: New file.
28522         * modules/unistr/u32-strchr-tests: New file.
28523         * tests/unistr/test-strchr.h: New file.
28524         * tests/unistr/test-u8-strchr.c: New file.
28525         * tests/unistr/test-u16-strchr.c: New file.
28526         * tests/unistr/test-u32-strchr.c: New file.
28527
28528         unistr/u*-chr: test multibyte sequences more
28529         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28530         test vector.
28531         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28532         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28533         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28534
28535         unistr/u*-chr: test multibyte sequences
28536         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28537
28538         unistr/u*-chr: prepare for multibyte tests
28539         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28540         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28541         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28542         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28543         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28544         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28545
28546 2010-07-18  Bruno Haible  <bruno@clisp.org>
28547
28548         unistr/u8-strchr: Optimize non-ASCII argument case.
28549         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28550         because the first byte often matches anyway.
28551         Reported by Pádraig Brady <P@draigbrady.com>.
28552
28553 2010-07-15  Karl Berry  <karl@gnu.org>
28554
28555         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28556
28557 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28558
28559         getcwd: on Solaris, work better if ancestors are inaccessible
28560         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28561         buffer and size, try again with a large buffer.  This works better
28562         on Solaris, since its getcwd succeeds even if the path to the root
28563         is inaccessible, and this is helpful in common cases such as .zfs
28564         hidden directories.  Problem reported by J Chapman Flack in
28565         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28566         Use system getcwd if it's declared, not merely if it's partly
28567         working; use the partly-working test only to avoid needless effort
28568         if the system getcwd fails.
28569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28570         comment that was already obsolete and is now even more obsolete.
28571         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28572         now might call strdup.
28573
28574 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28575
28576         pthread: Add enough so that coreutils/src/sort.c compiles.
28577         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28578         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28579         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28580         Include <sys/types.h>, in case it defines pthread_t.
28581         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28582         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28583         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28584         (pthread_rwlockattr_t, pthread_spinlock_t):
28585         New typedefs, if HAVE_PTHREAD_T is not defined.
28586         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28587         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28588         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28589         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28590         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28591         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28592         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28593         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28594         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28595         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28596         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28597         New macros.
28598         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28599         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28600         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28601         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28602         (pthread_spin_unlock): New dummy functions.
28603         (pthread_create): Return EAGAIN; don't set errno.
28604         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28605         require AC_C_INLINE.
28606         * modules/pthread (Depends-on): Add sched, time.
28607         (pthread.h): Use AM_V_GEN.
28608
28609 2010-07-13  Bruno Haible  <bruno@clisp.org>
28610
28611         striconveh: Don't malloc memory if the result buffer is sufficient.
28612         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28613         buffer if its size is sufficient.
28614         Reported by Ludovic Courtès <ludo@gnu.org>.
28615
28616 2010-07-13  Bruno Haible  <bruno@clisp.org>
28617
28618         strtod: Add safety check.
28619         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28620
28621 2010-07-12  Bruno Haible  <bruno@clisp.org>
28622
28623         Unify tests that set gl_cv_func_ldexpl_no_libm.
28624         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28625         gl_FUNC_LDEXPL.
28626         (gl_FUNC_LDEXPL): Invoke it.
28627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28628
28629 2010-07-12  Bruno Haible  <bruno@clisp.org>
28630
28631         Unify tests that set gl_cv_func_ldexp_no_libm.
28632         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28633         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28634         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28635         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28636         * modules/strtod (Files): Add m4/ldexp.m4.
28637
28638 2010-07-12  Bruno Haible  <bruno@clisp.org>
28639
28640         Unify tests that set gl_cv_func_frexpl_no_libm.
28641         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28642         gl_FUNC_FREXPL_NO_LIBM.
28643         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28645
28646 2010-07-12  Bruno Haible  <bruno@clisp.org>
28647
28648         Unify tests that set gl_cv_func_frexp_no_libm.
28649         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28650         gl_FUNC_FREXP_NO_LIBM.
28651         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28652         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28653
28654 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28655
28656         memcoll: clarify sizes versus lengths, document better, and tweak perf
28657         * lib/memcoll.c (strcoll_loop, memcoll0):
28658         Improve quality of descriptive comments.  Name variables
28659         consistently as to whether they are lengths (which do not include
28660         terminating null) versus sizes (which do).
28661         * lib/xmemcoll.c (xmemcoll0): Likewise.
28662         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28663         returned when s1size == 0; this is easier to compile and saves
28664         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28665
28666 2010-07-12  Bruno Haible  <bruno@clisp.org>
28667
28668         Tests for module '_Exit'.
28669         * modules/_Exit-tests: New file.
28670         * tests/test-_Exit.sh: New file.
28671         * tests/test-_Exit.c: New file.
28672
28673         New module '_Exit'.
28674         * lib/stdlib.in.h (__attribute__): New macro.
28675         (_Exit): New declaration.
28676         * lib/_Exit.c: New file.
28677         * m4/_Exit.m4: New file.
28678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28679         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28680         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28681         * modules/_Exit: New file.
28682         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28683         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28684
28685 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28686
28687         strtod: make it more-accurate typically, and don't require libm
28688         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28689         Include limits.h.  Don't include string.h.
28690         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28691         (locale_isspace): New function, so that no casts are needed to
28692         check whether *s is a space.
28693         (ldexp): Provide an unused dummy if not available.
28694         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28695         (strtod): Use them.  This implementation prefers to use the
28696         underlying strtod if available, falling back on our own code
28697         only to fix known bugs.  This is more likely to produce an
28698         accurate result.  Also, it avoids the use of libm functions.
28699         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28700         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28701         was absent, but it caused a test failure with coreutils.
28702         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28703         with libm.
28704         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28705         * modules/strtod-tests (Makefile.am): Likewise.
28706
28707 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28708             Bruno Haible  <bruno@clisp.org>
28709
28710         unistr/u8-strchr: Optimize ASCII argument case.
28711         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28712
28713 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28714
28715         (x)memcoll: minor tweaks
28716         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28717         is after the type that it qualifies.
28718         (memcoll0): Likewise.
28719         * lib/memcoll.h (memcoll0): Likewise.
28720         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28721         * lib/xmemcoll.h (xmemcoll0): Likewise.
28722         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28723         differs from memcoll in that the NUL byte is part of the argument.
28724         Omit the abort-checks, as performance is a real issue here.  Plus,
28725         the checks were wrong anyway (an off-by-one error).  Omit local
28726         variable 'diff', as it's a bit clearer that way.
28727         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28728         no longer needed.
28729
28730 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28731
28732         (x)memcoll: speedup when input is known to be NUL delimited
28733         * lib/memcoll.c: Include stdlib.
28734         (memcoll0): New function.
28735         (strcoll_loop): New function, refactored for use in both memcoll
28736         and memcoll0.
28737         * lib/memcoll.h (memcoll0): Add prototype.
28738         * lib/xmemcoll.c (xmemcoll0): New function.
28739         (collate_error): New function, refactored for use in both xmemcoll
28740         and xmemcoll0.
28741         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28742         * m4/memcoll.m4: add inline invocation.
28743
28744 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28745
28746         * build-aux/bootstrap: Remove any local translations
28747         from the translation project synchronization directory,
28748         so that local only translations are not distributed.
28749
28750 2010-07-04  Bruno Haible  <bruno@clisp.org>
28751
28752         fsusage: Clarify which code applies to which platforms.
28753         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28754         platform.
28755         * lib/fsusage.c (get_fs_usage): Likewise.
28756
28757 2010-07-04  Bruno Haible  <bruno@clisp.org>
28758
28759         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28760         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28761         Reported by Martin Lambers <marlam@marlam.de>.
28762
28763 2010-07-04  Jim Meyering  <meyering@redhat.com>
28764
28765         hash: once again explicitly disallow insertion of NULL
28766         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28767         inserting a NULL pointer cannot work with these functions.
28768         Add a comment with details.
28769         This reverts part of the 2010-07-01 commit, 5bef1a35
28770         "hash: extend module to deal with non-pointer keys".
28771
28772 2010-07-01  Bruno Haible  <bruno@clisp.org>
28773
28774         stdbool: Update doc.
28775         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28776         Info from Christian Weisgerber <naddy@mips.inka.de>.
28777
28778 2010-07-01  Jim Meyering  <meyering@redhat.com>
28779
28780         hash: extend module to deal with non-pointer keys
28781         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28782         but that allows insertion of non-pointer entries.
28783         Do not disallow an ENTRY value of NULL.
28784         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28785         * lib/hash.h (hash_insert0): Declare.
28786
28787 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28788
28789         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28790         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28791         not present (i.e. with autoconf 2.59 and when using gettextize, not
28792         gnulib), require AC_GNU_SOURCE instead.
28793
28794 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28795
28796         idpriv-drop: Fix tests.
28797         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28798         not to the test-idpriv-droptemp program.
28799
28800 2010-06-29  Bruno Haible  <bruno@clisp.org>
28801
28802         string: Fix syntax error with g++ 2.96.
28803         * lib/string.in.h (__pure__): Remove definition.
28804         (_GL_ATTRIBUTE_PURE): New macro.
28805         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28806         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28807         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28808
28809 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28810
28811         unitypes: Fix bug introduced on 2010-05-18.
28812         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28813
28814 2010-06-22  Eric Blake  <eblake@redhat.com>
28815
28816         memmem: slight optimization
28817         * lib/str-two-way.h (critical_factorization): Update comments.
28818         Reduce work during factorization phase.
28819         Reported by Carlos Bueno <carlos@bueno.org>.
28820
28821 2010-06-21  Bruno Haible  <bruno@clisp.org>
28822
28823         Fix HAVE_CALLOC_POSIX misnomer.
28824         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28825         !HAVE_CALLOC_POSIX.
28826         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28827         HAVE_CALLOC_POSIX.
28828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28829         instead of HAVE_CALLOC_POSIX.
28830         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28831         HAVE_CALLOC_POSIX.
28832
28833         Use modern idiom for calloc() replacement.
28834         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28835         AC_FUNC_CALLOC.
28836         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28837         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28838         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28839         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28840         (gl_REPLACE_CALLOC): New macro.
28841
28842 2010-06-21  Bruno Haible  <bruno@clisp.org>
28843
28844         Fix HAVE_REALLOC_POSIX misnomer.
28845         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28846         !HAVE_REALLOC_POSIX.
28847         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28848         HAVE_REALLOC_POSIX.
28849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28850         instead of HAVE_REALLOC_POSIX.
28851         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28852         HAVE_REALLOC_POSIX.
28853
28854         Use modern idiom for realloc() replacement.
28855         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28856         AC_FUNC_REALLOC.
28857         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28858         Autoconf's AC_FUNC_REALLOC.
28859         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28860         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28861         (gl_REPLACE_REALLOC): New macro.
28862         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28863
28864 2010-06-21  Bruno Haible  <bruno@clisp.org>
28865
28866         Fix HAVE_MALLOC_POSIX misnomer.
28867         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28868         !HAVE_MALLOC_POSIX.
28869         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28870         HAVE_MALLOC_POSIX.
28871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28872         instead of HAVE_MALLOC_POSIX.
28873         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28874         HAVE_MALLOC_POSIX.
28875
28876         Use modern idiom for malloc() replacement.
28877         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28878         AC_FUNC_MALLOC.
28879         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28880         Autoconf's AC_FUNC_MALLOC.
28881         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28882         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28883         (gl_REPLACE_MALLOC): New macro.
28884         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28885
28886 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28887
28888         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28889         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28890         This macro takes 3 arguments, not 4.
28891
28892 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28893
28894         ipv6: fix detection under mingw
28895         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28896         in6_addr.
28897
28898 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28899
28900         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28901         that strtod() works when cross-compiling to a glibc version known
28902         to work.
28903
28904 2010-06-15  Bruno Haible  <bruno@clisp.org>
28905
28906         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28907
28908 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28909
28910         select: Correct timeout.
28911         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28912
28913 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28914
28915         git-version-gen: init shell var to avoid env var influence
28916         * build-aux/git-version-gen (v): Init shell var to empty.
28917
28918 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28919
28920         priv-set: Don't assume that priv.h exists merely because getppriv does.
28921         See Jan Andersen's bug report about AIX 5L in
28922         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28923         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28924         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28925         * lib/priv-set.h: Likewise.
28926         * tests/test-priv-set.c: Likewise.
28927
28928 2010-06-13  Bruno Haible  <bruno@clisp.org>
28929
28930         relocatable: Make it easier to test whether to install wrappers.
28931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28932         RELOCATABLE_VIA_WRAPPER.
28933
28934 2010-06-13  Bruno Haible  <bruno@clisp.org>
28935
28936         gnulib-tool: Display specified modules and dependencies differently.
28937         * gnulib-tool (func_show_module_list): New function.
28938         (func_import, func_create_testdir): Invoke it.
28939         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28940
28941 2010-06-13  Bruno Haible  <bruno@clisp.org>
28942
28943         gnulib-tool: Align code of func_import and func_create_testdir.
28944         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28945         specified_modules.
28946
28947 2010-06-12  Jim Meyering  <meyering@redhat.com>
28948
28949         test-inttostr: avoid spurious failure on Solaris 9
28950         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28951         to accept "%ju".  Reported by Bruno Haible.
28952
28953 2010-06-11  Jim Meyering  <meyering@redhat.com>
28954
28955         test-sys_socket: mark variables as used more readably
28956         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28957         as "used" explicitly via (void) statement casts.  This is more
28958         readable than using them in an artificial return expression.
28959         Suggestion from Bruno Haible.
28960
28961 2010-06-11  Bruno Haible  <bruno@clisp.org>
28962
28963         Avoid some more warnings from "gcc -Wwrite-strings".
28964         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28965         to 'const char *'.
28966         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28967         * tests/test-c-strcasestr.c (main): Likewise.
28968         * tests/test-mbscasestr1.c (main): Likewise.
28969         * tests/test-mbscasestr2.c (main): Likewise.
28970         * tests/test-memmem.c (main): Likewise.
28971         * tests/test-strstr.c (main): Likewise.
28972         * tests/test-strcasestr.c (main): Likewise.
28973
28974 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28975
28976         init.sh: change framework_failure_ to fail with status 99, not 1
28977         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28978         automake's parallel-tests rule that this is an unexpected failure,
28979         even if the test is listed in XFAIL_TESTS.
28980
28981 2010-06-11  Jim Meyering  <meyering@redhat.com>
28982
28983         test-inttostr: avoid warnings about 4-6KB literal strings
28984         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28985         Include "macros.h", for its definition of ASSERT.
28986         (CK): s/assert/ASSERT/
28987         * modules/inttostr-tests (Files): Add macros.h.
28988
28989         init.sh: don't use $ME_ or skip_ before they are defined
28990         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28991         their first uses.  Also hoist their companions: warn_, fail_,
28992         framework_failure_, $stderr_fileno.  Prompted by a patch from
28993         Stefano Lattarini.
28994
28995         test-sys_socket: avoid set-but-not-used warnings from gcc
28996         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28997         avoid warning about set-but-not-used variables.
28998
28999         test-xvasprintf: avoid 'const' discard warnings
29000         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29001         "const" when assigning from literal strings.
29002         (test_xasprintf): Add "void" in function argument list to placate
29003         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29004
29005         tests: avoid compilation warnings in argmatch and exclude tests...
29006         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29007         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29008         Since it always exits, declare with the "noreturn" attribute.
29009         * tests/test-argmatch.c: Likewise.
29010
29011         tests: avoid 'const' discard warnings in mbsstr tests
29012         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29013         * tests/test-mbsstr2.c (main): Likewise.
29014
29015         test-verify: avoid warning from gcc's -Wmissing-declarations
29016         * tests/test-verify.c (function): Declare to be static.
29017
29018         test-inttostr.c: include <string.h> for use of strcmp
29019         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29020
29021         test-linkat: avoid failed assertion on "other" architectures
29022         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29023         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29024         sparc: https://bugs.launchpad.net/bugs/591968
29025
29026 2010-06-11  Jim Meyering  <meyering@redhat.com>
29027
29028         printf.m4: avoid autoconf's "Expanded Before Required" warning
29029         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29030         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29031         autoconf warning.
29032
29033 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29034
29035         Replacement header templates are now named with ".in", not "_".
29036         * doc/gnulib-intro.texi: Correct.
29037
29038 2010-06-10  Jim Meyering  <meyering@redhat.com>
29039
29040         inttostr-tests: depend on snprintf, not snprintf-posix
29041         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29042         snprintf-posix, to avoid this aclocal failure:
29043           missing file gnulib-tests/vasnprintf.c
29044           configure.ac:45: error: expected source file, required through \
29045           AC_LIBSOURCES, not found
29046
29047 2010-06-10  Jim Meyering  <meyering@redhat.com>
29048
29049         inttostr: add a new function, inttostr, and tests
29050         The namesake function was not available.  The existence of the
29051         template file, inttostr.c makes its addition nontrivial.
29052         * lib/anytostr.c: Rename from inttostr.c.
29053         (anytostr): Rename from inttostr.
29054         * lib/inttostr.c: New file.
29055         * modules/inttostr (Files): Add anytostr.c.
29056         (Makefile.am): Set lib_SOURCES instead of ...
29057         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29058         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29059         * lib/offtostr.c: Likewise.
29060         * lib/uinttostr.c: Likewise.
29061         * lib/umaxtostr.c: Likewise.
29062         * modules/inttostr-tests: New file.
29063         * tests/test-inttostr.c: New file.  Test these functions.
29064
29065 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29066             Bruno Haible  <bruno@clisp.org>
29067
29068         Add "Extending Gnulib" chapter to manual.
29069         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29070         chapter.
29071         (Extending Gnulib): New chapter.
29072         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29073         chapter.
29074
29075 2010-06-09  Bruno Haible  <bruno@clisp.org>
29076
29077         Avoid relocwrapper link errors due to gnulib replacement functions.
29078         * lib/areadlink.c: Use the system's malloc, realloc functions.
29079         (areadlink): Set errno to ENOMEM explicitly.
29080         * modules/areadlink (Depends-on): Remove malloc-posix.
29081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29082
29083 2010-06-09  Bruno Haible  <bruno@clisp.org>
29084
29085         Avoid relocwrapper link errors due to gnulib replacement functions.
29086         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29087         * lib/malloca.c: Likewise.
29088         * lib/relocatable.c: Likewise.
29089         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29090         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29091         * lib/setenv.c: Use the system's malloc, realloc functions.
29092         * lib/strerror.c: Use the system's sprintf function.
29093         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29094
29095 2010-06-04  Bruno Haible  <bruno@clisp.org>
29096
29097         Prefer documented low-level autoconf macro names.
29098         * m4/lib-link.m4: Use m4_translit instead of translit.
29099         * m4/environ.m4: Likewise.
29100         * m4/mathfunc.m4: Likewise.
29101         * m4/onceonly.m4: Likewise.
29102         * m4/stdint.m4: Likewise.
29103         Suggested by Eric Blake.
29104
29105 2010-06-04  Martin Lambers  <marlam@marlam.de>
29106             Bruno Haible  <bruno@clisp.org>
29107
29108         havelib: Allow library names with '+' characters.
29109         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29110         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29111
29112 2010-06-09  Bruno Haible  <bruno@clisp.org>
29113
29114         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29115         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29116         realloc failed.
29117
29118 2010-06-08  Peter Simons  <simons@cryp.to>
29119
29120         maint.mk: make the news-check rule more configurable
29121         * top/maint.mk (news-check-lines-spec): New variable.
29122         (news-check): Use "sed -n 1,10p" in place of "head".
29123
29124 2010-06-07  Jim Meyering  <meyering@redhat.com>
29125
29126         do-release-commit-and-tag: fix typo in --help
29127         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29128
29129         regex: avoid new dead-code warning with gcc-4.6.0
29130         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29131         if-block containing a while-loop.  It's been unused for at least
29132         5 years.
29133
29134 2010-06-05  Bruno Haible  <bruno@clisp.org>
29135
29136         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29137         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29138
29139 2010-06-04  Bruno Haible  <bruno@clisp.org>
29140
29141         Update to GNU gettext 0.18.1.
29142         * modules/gettext (configure.ac): Require gettext infrastructure from
29143         version 0.18.1.
29144
29145 2010-06-03  Bruno Haible  <bruno@clisp.org>
29146
29147         Don't use AC_LIBOBJ with file names in subdirectories.
29148         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29149         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29150         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29151         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29152         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29153         gl_LIBUNISTRING_LIBSOURCE.
29154         (Makefile.am): Augment lib_SOURCES here, conditionally.
29155         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29156
29157 2010-06-03  Bruno Haible  <bruno@clisp.org>
29158
29159         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29160         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29161         expansion does not end with a newline.
29162         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29163         unnecessary newline.
29164
29165 2010-06-03  Bruno Haible  <bruno@clisp.org>
29166
29167         Reduce dependencies.
29168         * tests/test-quotearg.h: New file, extracted from
29169         tests/test-quotearg.c.
29170         * tests/test-quotearg-simple.c: New file, extracted from
29171         tests/test-quotearg.c.
29172         * tests/test-quotearg.c: Don't include <ctype.h>.
29173         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29174         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29175         use_quote_double_quotes, use_quotearg_colon): Moved to
29176         tests/test-quotearg.h.
29177         (results_g, flag_results, custom_quotes, custom_results): Moved
29178         to tests/test-quotearg-simple.c.
29179         (main): Moved the part that does not depend on gettext to
29180         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29181         performed.
29182         * modules/quotearg-simple: New file.
29183         * modules/quotearg-simple-tests: New file.
29184         * modules/quotearg (Depends-on): Add quotearg-simple.
29185         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29186         (Files): Add tests/test-quotearg.h.
29187         Reported by Paolo Bonzini.
29188
29189 2010-06-03  Bruno Haible  <bruno@clisp.org>
29190
29191         Reduce dependencies.
29192         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29193
29194 2010-06-03  Bruno Haible  <bruno@clisp.org>
29195
29196         time: Undefine more broken macros.
29197         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29198         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29199         Reported by Eric Blake.
29200
29201 2010-06-03  Bruno Haible  <bruno@clisp.org>
29202
29203         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29204         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29205         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29206         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29207         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29208         Reported by Ludovic Courtès <ludo@gnu.org>.
29209
29210 2010-06-02  Eric Blake  <eblake@redhat.com>
29211
29212         time: work with mingw + pthreads-win32 library
29213         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29214         if timespec is defined only in pthread.h.
29215         * modules/time (Makefile.am): Substitute it.
29216         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29217         <pthread.h>, when needed.
29218         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29219         from the library.
29220
29221 2010-05-31  Bruno Haible  <bruno@clisp.org>
29222
29223         Avoid expanding two macros in the wrong order.
29224         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29225         gl_LIBUNISTRING if it is defined.
29226         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29227         autoconf >= 2.64.
29228         Reported by Ludovic Courtès <ludo@gnu.org>.
29229
29230 2010-05-27  Jim Meyering  <meyering@redhat.com>
29231
29232         maint.mk: also prohibit "#undef" of always-defined symbols
29233         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29234         Allow more than one space before the symbol name.
29235         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29236         the regexp uses alternation.
29237
29238 2010-05-26  Eric Blake  <eblake@redhat.com>
29239
29240         maint.mk: avoid echo -e
29241         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29242         Convert all uses of echo -* to printf.
29243         Reported by Matthias Bolte.
29244
29245 2010-05-25  Bruno Haible  <bruno@clisp.org>
29246
29247         Update to GNU gettext 0.18, part 2.
29248         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29249         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29250
29251 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29252
29253         Add missing include in test-pwrite.c.
29254         * tests/test-pwrite.c: Include string.h, for strcmp.
29255
29256 2010-05-24  Bruno Haible  <bruno@clisp.org>
29257
29258         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29259
29260 2010-05-24  Bruno Haible  <bruno@clisp.org>
29261
29262         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29263         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29264         iconveh_error argument.
29265         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29266         U_STRCONV_TO_LOCALE.
29267         * lib/unistr/u16-strcoll.c: Likewise.
29268         * lib/unistr/u32-strcoll.c: Likewise.
29269         * modules/unistr/u8-strcoll (Depends-on): Add
29270         uniconv/u8-strconv-to-enc, localcharset. Remove
29271         uniconv/u8-strconv-to-locale.
29272         (configure.ac): Bump version number.
29273         * modules/unistr/u16-strcoll (Depends-on): Add
29274         uniconv/u16-strconv-to-enc, localcharset. Remove
29275         uniconv/u16-strconv-to-locale.
29276         (configure.ac): Bump version number.
29277         * modules/unistr/u32-strcoll (Depends-on): Add
29278         uniconv/u32-strconv-to-enc, localcharset. Remove
29279         uniconv/u32-strconv-to-locale.
29280         (configure.ac): Bump version number.
29281
29282 2010-05-24  Bruno Haible  <bruno@clisp.org>
29283
29284         Avoid a test failure on NetBSD 5.0.
29285         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29286         an iconv() bug.
29287
29288 2010-05-24  Bruno Haible  <bruno@clisp.org>
29289
29290         Adjust #include directive style.
29291         * modules/regex (Includes): Recommend to write <regex.h>.
29292
29293 2010-05-24  Bruno Haible  <bruno@clisp.org>
29294
29295         regex: Don't require alloca.
29296         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29297         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29298         only inside if (0).
29299
29300 2010-05-23  Jim Meyering  <meyering@redhat.com>
29301
29302         test-renameat.c: include <sys/stat.h>
29303         * tests/test-renameat.c: Include <sys/stat.h>; required for
29304         definition of S_IS* macros.
29305
29306 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29307
29308         Update maintainer documentation for 'relocatable-prog' module.
29309         * doc/relocatable-maint.texi: Update.
29310         Comments by Bruno Haible.
29311
29312 2010-05-23  Bruno Haible  <bruno@clisp.org>
29313
29314         git-merge-changelog: Enable --split-merged-entry by default.
29315         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29316         (usage): Don't mention this option any more.
29317         Reported by Ralf Wildenhues.
29318
29319 2010-05-23  Jim Meyering  <meyering@redhat.com>
29320
29321         test-pwrite: do not leave behind a test file named "out"
29322         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29323         The trivial-looking use of init.sh is really necessary.
29324         It ensures that the temporary file, "out", is created in
29325         a temporary directory, and removed upon termination.
29326         * tests/test-pwrite.sh: Re-add file.
29327         * modules/pwrite-tests: Reference it.
29328
29329 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29330
29331         Fix output redirection buglet in init.sh.
29332         * tests/init.sh: Fix redirection of stderr.
29333
29334 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29335
29336         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29337
29338 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29339
29340         * modules/valgrind-tests: New file.
29341         * m4/valgrind-tests.m4: New file.
29342         * doc/valgrind-tests.texi: New file.
29343         * doc/gnulib.texi (Running self-tests under valgrind): New
29344         section.
29345
29346 2010-05-19  Bruno Haible  <bruno@clisp.org>
29347
29348         Clean up dead code in recent commit.
29349         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29350         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29351         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29352         Suggested by Paolo Bonzini.
29353
29354 2010-05-19  Bruno Haible  <bruno@clisp.org>
29355
29356         Avoid valgrind error reports from libunistring.
29357         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29358         * modules/libunistring (Files): Add it.
29359         * modules/libunistring-optional (Files): Likewise.
29360
29361 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29362             Bruno Haible  <bruno@clisp.org>
29363
29364         New module 'libunistring-optional'.
29365         * modules/libunistring-optional: New file.
29366         * m4/libunistring-base.m4: New file.
29367         * m4/libunistring-optional.m4: New file.
29368         * lib/unicase.in.h: Renamed from lib/unicase.h.
29369         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29370         * lib/unictype.in.h: Renamed from lib/unictype.h.
29371         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29372         * lib/uniname.in.h: Renamed from lib/uniname.h.
29373         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29374         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29375         * lib/unistr.in.h: Renamed from lib/unistr.h.
29376         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29377         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29378         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29379         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29380         gl_LIBUNISTRING. If the library was found, determine the installed
29381         version and set LIBUNISTRING_VERSION.
29382         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29383         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29384         handle a configuration option --with-included-libunistring.
29385         * modules/libunistring (Files): Add m4/absolute-header.m4.
29386         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29387         Add m4/libunistring-base.m4.
29388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29389         (Makefile.am): Build unicase.h from unicase.in.h.
29390         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29391         Add m4/libunistring-base.m4.
29392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29393         (Makefile.am): Build uniconv.h from uniconv.in.h.
29394         * modules/unictype/base (Files): Use unictype.in.h instead of
29395         unictype.h. Add m4/libunistring-base.m4.
29396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29397         (Makefile.am): Build unictype.h from unictype.in.h.
29398         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29399         Add m4/libunistring-base.m4.
29400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29401         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29402         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29403         Add m4/libunistring-base.m4.
29404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29405         (Makefile.am): Build uniname.h from uniname.in.h.
29406         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29407         Add m4/libunistring-base.m4.
29408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29409         (Makefile.am): Build uninorm.h from uninorm.in.h.
29410         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29411         unistdio.h. Add m4/libunistring-base.m4.
29412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29413         (Makefile.am): Build unistdio.h from unistdio.in.h.
29414         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29415         Add m4/libunistring-base.m4.
29416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29417         (Makefile.am): Build unistr.h from unistr.in.h.
29418         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29419         Add m4/libunistring-base.m4.
29420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29421         (Makefile.am): Build unitypes.h from unitypes.in.h.
29422         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29423         Add m4/libunistring-base.m4.
29424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29425         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29426         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29427         uniwidth.h. Add m4/libunistring-base.m4.
29428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29429         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29430         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29431         instead of augmenting lib_SOURCES.
29432         * modules/unicase/empty-suffix-context: Likewise.
29433         * modules/unicase/locale-language: Likewise.
29434         * modules/unicase/tolower: Likewise.
29435         * modules/unicase/totitle: Likewise.
29436         * modules/unicase/toupper: Likewise.
29437         * modules/unicase/u8-casecmp: Likewise.
29438         * modules/unicase/u8-casecoll: Likewise.
29439         * modules/unicase/u8-casefold: Likewise.
29440         * modules/unicase/u8-casexfrm: Likewise.
29441         * modules/unicase/u8-ct-casefold: Likewise.
29442         * modules/unicase/u8-ct-tolower: Likewise.
29443         * modules/unicase/u8-ct-totitle: Likewise.
29444         * modules/unicase/u8-ct-toupper: Likewise.
29445         * modules/unicase/u8-is-cased: Likewise.
29446         * modules/unicase/u8-is-casefolded: Likewise.
29447         * modules/unicase/u8-is-lowercase: Likewise.
29448         * modules/unicase/u8-is-titlecase: Likewise.
29449         * modules/unicase/u8-is-uppercase: Likewise.
29450         * modules/unicase/u8-prefix-context: Likewise.
29451         * modules/unicase/u8-suffix-context: Likewise.
29452         * modules/unicase/u8-tolower: Likewise.
29453         * modules/unicase/u8-totitle: Likewise.
29454         * modules/unicase/u8-toupper: Likewise.
29455         * modules/unicase/u16-casecmp: Likewise.
29456         * modules/unicase/u16-casecoll: Likewise.
29457         * modules/unicase/u16-casefold: Likewise.
29458         * modules/unicase/u16-casexfrm: Likewise.
29459         * modules/unicase/u16-ct-casefold: Likewise.
29460         * modules/unicase/u16-ct-tolower: Likewise.
29461         * modules/unicase/u16-ct-totitle: Likewise.
29462         * modules/unicase/u16-ct-toupper: Likewise.
29463         * modules/unicase/u16-is-cased: Likewise.
29464         * modules/unicase/u16-is-casefolded: Likewise.
29465         * modules/unicase/u16-is-lowercase: Likewise.
29466         * modules/unicase/u16-is-titlecase: Likewise.
29467         * modules/unicase/u16-is-uppercase: Likewise.
29468         * modules/unicase/u16-prefix-context: Likewise.
29469         * modules/unicase/u16-suffix-context: Likewise.
29470         * modules/unicase/u16-tolower: Likewise.
29471         * modules/unicase/u16-totitle: Likewise.
29472         * modules/unicase/u16-toupper: Likewise.
29473         * modules/unicase/u32-casecmp: Likewise.
29474         * modules/unicase/u32-casecoll: Likewise.
29475         * modules/unicase/u32-casefold: Likewise.
29476         * modules/unicase/u32-casexfrm: Likewise.
29477         * modules/unicase/u32-ct-casefold: Likewise.
29478         * modules/unicase/u32-ct-tolower: Likewise.
29479         * modules/unicase/u32-ct-totitle: Likewise.
29480         * modules/unicase/u32-ct-toupper: Likewise.
29481         * modules/unicase/u32-is-cased: Likewise.
29482         * modules/unicase/u32-is-casefolded: Likewise.
29483         * modules/unicase/u32-is-lowercase: Likewise.
29484         * modules/unicase/u32-is-titlecase: Likewise.
29485         * modules/unicase/u32-is-uppercase: Likewise.
29486         * modules/unicase/u32-prefix-context: Likewise.
29487         * modules/unicase/u32-suffix-context: Likewise.
29488         * modules/unicase/u32-tolower: Likewise.
29489         * modules/unicase/u32-totitle: Likewise.
29490         * modules/unicase/u32-toupper: Likewise.
29491         * modules/unicase/ulc-casecmp: Likewise.
29492         * modules/unicase/ulc-casecoll: Likewise.
29493         * modules/unicase/ulc-casexfrm: Likewise.
29494         * modules/uniconv/u8-conv-from-enc: Likewise.
29495         * modules/uniconv/u8-conv-to-enc: Likewise.
29496         * modules/uniconv/u8-strconv-from-enc: Likewise.
29497         * modules/uniconv/u8-strconv-from-locale: Likewise.
29498         * modules/uniconv/u8-strconv-to-enc: Likewise.
29499         * modules/uniconv/u8-strconv-to-locale: Likewise.
29500         * modules/uniconv/u16-conv-from-enc: Likewise.
29501         * modules/uniconv/u16-conv-to-enc: Likewise.
29502         * modules/uniconv/u16-strconv-from-enc: Likewise.
29503         * modules/uniconv/u16-strconv-from-locale: Likewise.
29504         * modules/uniconv/u16-strconv-to-enc: Likewise.
29505         * modules/uniconv/u16-strconv-to-locale: Likewise.
29506         * modules/uniconv/u32-conv-from-enc: Likewise.
29507         * modules/uniconv/u32-conv-to-enc: Likewise.
29508         * modules/uniconv/u32-strconv-from-enc: Likewise.
29509         * modules/uniconv/u32-strconv-from-locale: Likewise.
29510         * modules/uniconv/u32-strconv-to-enc: Likewise.
29511         * modules/uniconv/u32-strconv-to-locale: Likewise.
29512         * modules/unictype/bidicategory-byname: Likewise.
29513         * modules/unictype/bidicategory-name: Likewise.
29514         * modules/unictype/bidicategory-of: Likewise.
29515         * modules/unictype/bidicategory-test: Likewise.
29516         * modules/unictype/block-list: Likewise.
29517         * modules/unictype/block-test: Likewise.
29518         * modules/unictype/category-C: Likewise.
29519         * modules/unictype/category-Cc: Likewise.
29520         * modules/unictype/category-Cf: Likewise.
29521         * modules/unictype/category-Cn: Likewise.
29522         * modules/unictype/category-Co: Likewise.
29523         * modules/unictype/category-Cs: Likewise.
29524         * modules/unictype/category-L: Likewise.
29525         * modules/unictype/category-Ll: Likewise.
29526         * modules/unictype/category-Lm: Likewise.
29527         * modules/unictype/category-Lo: Likewise.
29528         * modules/unictype/category-Lt: Likewise.
29529         * modules/unictype/category-Lu: Likewise.
29530         * modules/unictype/category-M: Likewise.
29531         * modules/unictype/category-Mc: Likewise.
29532         * modules/unictype/category-Me: Likewise.
29533         * modules/unictype/category-Mn: Likewise.
29534         * modules/unictype/category-N: Likewise.
29535         * modules/unictype/category-Nd: Likewise.
29536         * modules/unictype/category-Nl: Likewise.
29537         * modules/unictype/category-No: Likewise.
29538         * modules/unictype/category-P: Likewise.
29539         * modules/unictype/category-Pc: Likewise.
29540         * modules/unictype/category-Pd: Likewise.
29541         * modules/unictype/category-Pe: Likewise.
29542         * modules/unictype/category-Pf: Likewise.
29543         * modules/unictype/category-Pi: Likewise.
29544         * modules/unictype/category-Po: Likewise.
29545         * modules/unictype/category-Ps: Likewise.
29546         * modules/unictype/category-S: Likewise.
29547         * modules/unictype/category-Sc: Likewise.
29548         * modules/unictype/category-Sk: Likewise.
29549         * modules/unictype/category-Sm: Likewise.
29550         * modules/unictype/category-So: Likewise.
29551         * modules/unictype/category-Z: Likewise.
29552         * modules/unictype/category-Zl: Likewise.
29553         * modules/unictype/category-Zp: Likewise.
29554         * modules/unictype/category-Zs: Likewise.
29555         * modules/unictype/category-and: Likewise.
29556         * modules/unictype/category-and-not: Likewise.
29557         * modules/unictype/category-byname: Likewise.
29558         * modules/unictype/category-name: Likewise.
29559         * modules/unictype/category-none: Likewise.
29560         * modules/unictype/category-of: Likewise.
29561         * modules/unictype/category-or: Likewise.
29562         * modules/unictype/category-test: Likewise.
29563         * modules/unictype/combining-class: Likewise.
29564         * modules/unictype/ctype-alnum: Likewise.
29565         * modules/unictype/ctype-alpha: Likewise.
29566         * modules/unictype/ctype-blank: Likewise.
29567         * modules/unictype/ctype-cntrl: Likewise.
29568         * modules/unictype/ctype-digit: Likewise.
29569         * modules/unictype/ctype-graph: Likewise.
29570         * modules/unictype/ctype-lower: Likewise.
29571         * modules/unictype/ctype-print: Likewise.
29572         * modules/unictype/ctype-punct: Likewise.
29573         * modules/unictype/ctype-space: Likewise.
29574         * modules/unictype/ctype-upper: Likewise.
29575         * modules/unictype/ctype-xdigit: Likewise.
29576         * modules/unictype/decimal-digit: Likewise.
29577         * modules/unictype/digit: Likewise.
29578         * modules/unictype/mirror: Likewise.
29579         * modules/unictype/numeric: Likewise.
29580         * modules/unictype/property-alphabetic: Likewise.
29581         * modules/unictype/property-ascii-hex-digit: Likewise.
29582         * modules/unictype/property-bidi-arabic-digit: Likewise.
29583         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29584         * modules/unictype/property-bidi-block-separator: Likewise.
29585         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29586         * modules/unictype/property-bidi-common-separator: Likewise.
29587         * modules/unictype/property-bidi-control: Likewise.
29588         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29589         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29590         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29591         * modules/unictype/property-bidi-european-digit: Likewise.
29592         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29593         * modules/unictype/property-bidi-left-to-right: Likewise.
29594         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29595         * modules/unictype/property-bidi-other-neutral: Likewise.
29596         * modules/unictype/property-bidi-pdf: Likewise.
29597         * modules/unictype/property-bidi-segment-separator: Likewise.
29598         * modules/unictype/property-bidi-whitespace: Likewise.
29599         * modules/unictype/property-byname: Likewise.
29600         * modules/unictype/property-combining: Likewise.
29601         * modules/unictype/property-composite: Likewise.
29602         * modules/unictype/property-currency-symbol: Likewise.
29603         * modules/unictype/property-dash: Likewise.
29604         * modules/unictype/property-decimal-digit: Likewise.
29605         * modules/unictype/property-default-ignorable-code-point: Likewise.
29606         * modules/unictype/property-deprecated: Likewise.
29607         * modules/unictype/property-diacritic: Likewise.
29608         * modules/unictype/property-extender: Likewise.
29609         * modules/unictype/property-format-control: Likewise.
29610         * modules/unictype/property-grapheme-base: Likewise.
29611         * modules/unictype/property-grapheme-extend: Likewise.
29612         * modules/unictype/property-grapheme-link: Likewise.
29613         * modules/unictype/property-hex-digit: Likewise.
29614         * modules/unictype/property-hyphen: Likewise.
29615         * modules/unictype/property-id-continue: Likewise.
29616         * modules/unictype/property-id-start: Likewise.
29617         * modules/unictype/property-ideographic: Likewise.
29618         * modules/unictype/property-ids-binary-operator: Likewise.
29619         * modules/unictype/property-ids-trinary-operator: Likewise.
29620         * modules/unictype/property-ignorable-control: Likewise.
29621         * modules/unictype/property-iso-control: Likewise.
29622         * modules/unictype/property-join-control: Likewise.
29623         * modules/unictype/property-left-of-pair: Likewise.
29624         * modules/unictype/property-line-separator: Likewise.
29625         * modules/unictype/property-logical-order-exception: Likewise.
29626         * modules/unictype/property-lowercase: Likewise.
29627         * modules/unictype/property-math: Likewise.
29628         * modules/unictype/property-non-break: Likewise.
29629         * modules/unictype/property-not-a-character: Likewise.
29630         * modules/unictype/property-numeric: Likewise.
29631         * modules/unictype/property-other-alphabetic: Likewise.
29632         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29633         * modules/unictype/property-other-grapheme-extend: Likewise.
29634         * modules/unictype/property-other-id-continue: Likewise.
29635         * modules/unictype/property-other-id-start: Likewise.
29636         * modules/unictype/property-other-lowercase: Likewise.
29637         * modules/unictype/property-other-math: Likewise.
29638         * modules/unictype/property-other-uppercase: Likewise.
29639         * modules/unictype/property-paired-punctuation: Likewise.
29640         * modules/unictype/property-paragraph-separator: Likewise.
29641         * modules/unictype/property-pattern-syntax: Likewise.
29642         * modules/unictype/property-pattern-white-space: Likewise.
29643         * modules/unictype/property-private-use: Likewise.
29644         * modules/unictype/property-punctuation: Likewise.
29645         * modules/unictype/property-quotation-mark: Likewise.
29646         * modules/unictype/property-radical: Likewise.
29647         * modules/unictype/property-sentence-terminal: Likewise.
29648         * modules/unictype/property-soft-dotted: Likewise.
29649         * modules/unictype/property-space: Likewise.
29650         * modules/unictype/property-terminal-punctuation: Likewise.
29651         * modules/unictype/property-test: Likewise.
29652         * modules/unictype/property-titlecase: Likewise.
29653         * modules/unictype/property-unassigned-code-value: Likewise.
29654         * modules/unictype/property-unified-ideograph: Likewise.
29655         * modules/unictype/property-uppercase: Likewise.
29656         * modules/unictype/property-variation-selector: Likewise.
29657         * modules/unictype/property-white-space: Likewise.
29658         * modules/unictype/property-xid-continue: Likewise.
29659         * modules/unictype/property-xid-start: Likewise.
29660         * modules/unictype/property-zero-width: Likewise.
29661         * modules/unictype/scripts: Likewise.
29662         * modules/unictype/syntax-c-ident: Likewise.
29663         * modules/unictype/syntax-c-whitespace: Likewise.
29664         * modules/unictype/syntax-java-ident: Likewise.
29665         * modules/unictype/syntax-java-whitespace: Likewise.
29666         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29667         * modules/unilbrk/u8-width-linebreaks: Likewise.
29668         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29669         * modules/unilbrk/u16-width-linebreaks: Likewise.
29670         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29671         * modules/unilbrk/u32-width-linebreaks: Likewise.
29672         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29673         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29674         * modules/uniname/uniname: Likewise.
29675         * modules/uninorm/canonical-decomposition: Likewise.
29676         * modules/uninorm/composition: Likewise.
29677         * modules/uninorm/decomposing-form: Likewise.
29678         * modules/uninorm/decomposition: Likewise.
29679         * modules/uninorm/filter: Likewise.
29680         * modules/uninorm/nfc: Likewise.
29681         * modules/uninorm/nfd: Likewise.
29682         * modules/uninorm/nfkc: Likewise.
29683         * modules/uninorm/nfkd: Likewise.
29684         * modules/uninorm/u8-normalize: Likewise.
29685         * modules/uninorm/u8-normcmp: Likewise.
29686         * modules/uninorm/u8-normcoll: Likewise.
29687         * modules/uninorm/u8-normxfrm: Likewise.
29688         * modules/uninorm/u16-normalize: Likewise.
29689         * modules/uninorm/u16-normcmp: Likewise.
29690         * modules/uninorm/u16-normcoll: Likewise.
29691         * modules/uninorm/u16-normxfrm: Likewise.
29692         * modules/uninorm/u32-normalize: Likewise.
29693         * modules/uninorm/u32-normcmp: Likewise.
29694         * modules/uninorm/u32-normcoll: Likewise.
29695         * modules/uninorm/u32-normxfrm: Likewise.
29696         * modules/unistdio/u8-asnprintf: Likewise.
29697         * modules/unistdio/u8-asprintf: Likewise.
29698         * modules/unistdio/u8-snprintf: Likewise.
29699         * modules/unistdio/u8-sprintf: Likewise.
29700         * modules/unistdio/u8-u8-asnprintf: Likewise.
29701         * modules/unistdio/u8-u8-asprintf: Likewise.
29702         * modules/unistdio/u8-u8-snprintf: Likewise.
29703         * modules/unistdio/u8-u8-sprintf: Likewise.
29704         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29705         * modules/unistdio/u8-u8-vasprintf: Likewise.
29706         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29707         * modules/unistdio/u8-u8-vsprintf: Likewise.
29708         * modules/unistdio/u8-vasnprintf: Likewise.
29709         * modules/unistdio/u8-vasprintf: Likewise.
29710         * modules/unistdio/u8-vsnprintf: Likewise.
29711         * modules/unistdio/u8-vsprintf: Likewise.
29712         * modules/unistdio/u16-asnprintf: Likewise.
29713         * modules/unistdio/u16-asprintf: Likewise.
29714         * modules/unistdio/u16-snprintf: Likewise.
29715         * modules/unistdio/u16-sprintf: Likewise.
29716         * modules/unistdio/u16-u16-asnprintf: Likewise.
29717         * modules/unistdio/u16-u16-asprintf: Likewise.
29718         * modules/unistdio/u16-u16-snprintf: Likewise.
29719         * modules/unistdio/u16-u16-sprintf: Likewise.
29720         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29721         * modules/unistdio/u16-u16-vasprintf: Likewise.
29722         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29723         * modules/unistdio/u16-u16-vsprintf: Likewise.
29724         * modules/unistdio/u16-vasnprintf: Likewise.
29725         * modules/unistdio/u16-vasprintf: Likewise.
29726         * modules/unistdio/u16-vsnprintf: Likewise.
29727         * modules/unistdio/u16-vsprintf: Likewise.
29728         * modules/unistdio/u32-asnprintf: Likewise.
29729         * modules/unistdio/u32-asprintf: Likewise.
29730         * modules/unistdio/u32-snprintf: Likewise.
29731         * modules/unistdio/u32-sprintf: Likewise.
29732         * modules/unistdio/u32-u32-asnprintf: Likewise.
29733         * modules/unistdio/u32-u32-asprintf: Likewise.
29734         * modules/unistdio/u32-u32-snprintf: Likewise.
29735         * modules/unistdio/u32-u32-sprintf: Likewise.
29736         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29737         * modules/unistdio/u32-u32-vasprintf: Likewise.
29738         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29739         * modules/unistdio/u32-u32-vsprintf: Likewise.
29740         * modules/unistdio/u32-vasnprintf: Likewise.
29741         * modules/unistdio/u32-vasprintf: Likewise.
29742         * modules/unistdio/u32-vsnprintf: Likewise.
29743         * modules/unistdio/u32-vsprintf: Likewise.
29744         * modules/unistdio/ulc-asnprintf: Likewise.
29745         * modules/unistdio/ulc-asprintf: Likewise.
29746         * modules/unistdio/ulc-fprintf: Likewise.
29747         * modules/unistdio/ulc-snprintf: Likewise.
29748         * modules/unistdio/ulc-sprintf: Likewise.
29749         * modules/unistdio/ulc-vasnprintf: Likewise.
29750         * modules/unistdio/ulc-vasprintf: Likewise.
29751         * modules/unistdio/ulc-vfprintf: Likewise.
29752         * modules/unistdio/ulc-vsnprintf: Likewise.
29753         * modules/unistdio/ulc-vsprintf: Likewise.
29754         * modules/unistr/u8-check: Likewise.
29755         * modules/unistr/u8-chr: Likewise.
29756         * modules/unistr/u8-cmp: Likewise.
29757         * modules/unistr/u8-cmp2: Likewise.
29758         * modules/unistr/u8-cpy: Likewise.
29759         * modules/unistr/u8-cpy-alloc: Likewise.
29760         * modules/unistr/u8-endswith: Likewise.
29761         * modules/unistr/u8-mblen: Likewise.
29762         * modules/unistr/u8-mbsnlen: Likewise.
29763         * modules/unistr/u8-mbtouc: Likewise.
29764         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29765         * modules/unistr/u8-mbtoucr: Likewise.
29766         * modules/unistr/u8-move: Likewise.
29767         * modules/unistr/u8-next: Likewise.
29768         * modules/unistr/u8-prev: Likewise.
29769         * modules/unistr/u8-set: Likewise.
29770         * modules/unistr/u8-startswith: Likewise.
29771         * modules/unistr/u8-stpcpy: Likewise.
29772         * modules/unistr/u8-stpncpy: Likewise.
29773         * modules/unistr/u8-strcat: Likewise.
29774         * modules/unistr/u8-strchr: Likewise.
29775         * modules/unistr/u8-strcmp: Likewise.
29776         * modules/unistr/u8-strcoll: Likewise.
29777         * modules/unistr/u8-strcpy: Likewise.
29778         * modules/unistr/u8-strcspn: Likewise.
29779         * modules/unistr/u8-strdup: Likewise.
29780         * modules/unistr/u8-strlen: Likewise.
29781         * modules/unistr/u8-strmblen: Likewise.
29782         * modules/unistr/u8-strmbtouc: Likewise.
29783         * modules/unistr/u8-strncat: Likewise.
29784         * modules/unistr/u8-strncmp: Likewise.
29785         * modules/unistr/u8-strncpy: Likewise.
29786         * modules/unistr/u8-strnlen: Likewise.
29787         * modules/unistr/u8-strpbrk: Likewise.
29788         * modules/unistr/u8-strrchr: Likewise.
29789         * modules/unistr/u8-strspn: Likewise.
29790         * modules/unistr/u8-strstr: Likewise.
29791         * modules/unistr/u8-strtok: Likewise.
29792         * modules/unistr/u8-to-u16: Likewise.
29793         * modules/unistr/u8-to-u32: Likewise.
29794         * modules/unistr/u8-uctomb: Likewise.
29795         * modules/unistr/u16-check: Likewise.
29796         * modules/unistr/u16-chr: Likewise.
29797         * modules/unistr/u16-cmp: Likewise.
29798         * modules/unistr/u16-cmp2: Likewise.
29799         * modules/unistr/u16-cpy: Likewise.
29800         * modules/unistr/u16-cpy-alloc: Likewise.
29801         * modules/unistr/u16-endswith: Likewise.
29802         * modules/unistr/u16-mblen: Likewise.
29803         * modules/unistr/u16-mbsnlen: Likewise.
29804         * modules/unistr/u16-mbtouc: Likewise.
29805         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29806         * modules/unistr/u16-mbtoucr: Likewise.
29807         * modules/unistr/u16-move: Likewise.
29808         * modules/unistr/u16-next: Likewise.
29809         * modules/unistr/u16-prev: Likewise.
29810         * modules/unistr/u16-set: Likewise.
29811         * modules/unistr/u16-startswith: Likewise.
29812         * modules/unistr/u16-stpcpy: Likewise.
29813         * modules/unistr/u16-stpncpy: Likewise.
29814         * modules/unistr/u16-strcat: Likewise.
29815         * modules/unistr/u16-strchr: Likewise.
29816         * modules/unistr/u16-strcmp: Likewise.
29817         * modules/unistr/u16-strcoll: Likewise.
29818         * modules/unistr/u16-strcpy: Likewise.
29819         * modules/unistr/u16-strcspn: Likewise.
29820         * modules/unistr/u16-strdup: Likewise.
29821         * modules/unistr/u16-strlen: Likewise.
29822         * modules/unistr/u16-strmblen: Likewise.
29823         * modules/unistr/u16-strmbtouc: Likewise.
29824         * modules/unistr/u16-strncat: Likewise.
29825         * modules/unistr/u16-strncmp: Likewise.
29826         * modules/unistr/u16-strncpy: Likewise.
29827         * modules/unistr/u16-strnlen: Likewise.
29828         * modules/unistr/u16-strpbrk: Likewise.
29829         * modules/unistr/u16-strrchr: Likewise.
29830         * modules/unistr/u16-strspn: Likewise.
29831         * modules/unistr/u16-strstr: Likewise.
29832         * modules/unistr/u16-strtok: Likewise.
29833         * modules/unistr/u16-to-u32: Likewise.
29834         * modules/unistr/u16-to-u8: Likewise.
29835         * modules/unistr/u16-uctomb: Likewise.
29836         * modules/unistr/u32-check: Likewise.
29837         * modules/unistr/u32-chr: Likewise.
29838         * modules/unistr/u32-cmp: Likewise.
29839         * modules/unistr/u32-cmp2: Likewise.
29840         * modules/unistr/u32-cpy: Likewise.
29841         * modules/unistr/u32-cpy-alloc: Likewise.
29842         * modules/unistr/u32-endswith: Likewise.
29843         * modules/unistr/u32-mblen: Likewise.
29844         * modules/unistr/u32-mbsnlen: Likewise.
29845         * modules/unistr/u32-mbtouc: Likewise.
29846         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29847         * modules/unistr/u32-mbtoucr: Likewise.
29848         * modules/unistr/u32-move: Likewise.
29849         * modules/unistr/u32-next: Likewise.
29850         * modules/unistr/u32-prev: Likewise.
29851         * modules/unistr/u32-set: Likewise.
29852         * modules/unistr/u32-startswith: Likewise.
29853         * modules/unistr/u32-stpcpy: Likewise.
29854         * modules/unistr/u32-stpncpy: Likewise.
29855         * modules/unistr/u32-strcat: Likewise.
29856         * modules/unistr/u32-strchr: Likewise.
29857         * modules/unistr/u32-strcmp: Likewise.
29858         * modules/unistr/u32-strcoll: Likewise.
29859         * modules/unistr/u32-strcpy: Likewise.
29860         * modules/unistr/u32-strcspn: Likewise.
29861         * modules/unistr/u32-strdup: Likewise.
29862         * modules/unistr/u32-strlen: Likewise.
29863         * modules/unistr/u32-strmblen: Likewise.
29864         * modules/unistr/u32-strmbtouc: Likewise.
29865         * modules/unistr/u32-strncat: Likewise.
29866         * modules/unistr/u32-strncmp: Likewise.
29867         * modules/unistr/u32-strncpy: Likewise.
29868         * modules/unistr/u32-strnlen: Likewise.
29869         * modules/unistr/u32-strpbrk: Likewise.
29870         * modules/unistr/u32-strrchr: Likewise.
29871         * modules/unistr/u32-strspn: Likewise.
29872         * modules/unistr/u32-strstr: Likewise.
29873         * modules/unistr/u32-strtok: Likewise.
29874         * modules/unistr/u32-to-u16: Likewise.
29875         * modules/unistr/u32-to-u8: Likewise.
29876         * modules/unistr/u32-uctomb: Likewise.
29877         * modules/uniwbrk/u8-wordbreaks: Likewise.
29878         * modules/uniwbrk/u16-wordbreaks: Likewise.
29879         * modules/uniwbrk/u32-wordbreaks: Likewise.
29880         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29881         * modules/uniwbrk/wordbreak-property: Likewise.
29882         * modules/uniwidth/u8-strwidth: Likewise.
29883         * modules/uniwidth/u8-width: Likewise.
29884         * modules/uniwidth/u16-strwidth: Likewise.
29885         * modules/uniwidth/u16-width: Likewise.
29886         * modules/uniwidth/u32-strwidth: Likewise.
29887         * modules/uniwidth/u32-width: Likewise.
29888         * modules/uniwidth/width: Likewise.
29889         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29890         with $(LIBUNISTRING).
29891         * modules/unicase/ignorable-tests: Likewise.
29892         * modules/unicase/locale-language-tests: Likewise.
29893         * modules/unicase/tolower-tests: Likewise.
29894         * modules/unicase/totitle-tests: Likewise.
29895         * modules/unicase/toupper-tests: Likewise.
29896         * modules/unicase/u8-casecmp-tests: Likewise.
29897         * modules/unicase/u8-casecoll-tests: Likewise.
29898         * modules/unicase/u8-casefold-tests: Likewise.
29899         * modules/unicase/u8-is-cased-tests: Likewise.
29900         * modules/unicase/u8-is-casefolded-tests: Likewise.
29901         * modules/unicase/u8-is-lowercase-tests: Likewise.
29902         * modules/unicase/u8-is-titlecase-tests: Likewise.
29903         * modules/unicase/u8-is-uppercase-tests: Likewise.
29904         * modules/unicase/u8-tolower-tests: Likewise.
29905         * modules/unicase/u8-totitle-tests: Likewise.
29906         * modules/unicase/u8-toupper-tests: Likewise.
29907         * modules/unicase/u16-casecmp-tests: Likewise.
29908         * modules/unicase/u16-casecoll-tests: Likewise.
29909         * modules/unicase/u16-casefold-tests: Likewise.
29910         * modules/unicase/u16-is-cased-tests: Likewise.
29911         * modules/unicase/u16-is-casefolded-tests: Likewise.
29912         * modules/unicase/u16-is-lowercase-tests: Likewise.
29913         * modules/unicase/u16-is-titlecase-tests: Likewise.
29914         * modules/unicase/u16-is-uppercase-tests: Likewise.
29915         * modules/unicase/u16-tolower-tests: Likewise.
29916         * modules/unicase/u16-totitle-tests: Likewise.
29917         * modules/unicase/u16-toupper-tests: Likewise.
29918         * modules/unicase/u32-casecmp-tests: Likewise.
29919         * modules/unicase/u32-casecoll-tests: Likewise.
29920         * modules/unicase/u32-casefold-tests: Likewise.
29921         * modules/unicase/u32-is-cased-tests: Likewise.
29922         * modules/unicase/u32-is-casefolded-tests: Likewise.
29923         * modules/unicase/u32-is-lowercase-tests: Likewise.
29924         * modules/unicase/u32-is-titlecase-tests: Likewise.
29925         * modules/unicase/u32-is-uppercase-tests: Likewise.
29926         * modules/unicase/u32-tolower-tests: Likewise.
29927         * modules/unicase/u32-totitle-tests: Likewise.
29928         * modules/unicase/u32-toupper-tests: Likewise.
29929         * modules/unicase/ulc-casecmp-tests: Likewise.
29930         * modules/unicase/ulc-casecoll-tests: Likewise.
29931         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29932         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29933         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29934         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29935         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29936         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29937         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29938         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29939         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29940         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29941         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29942         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29943         * modules/unictype/bidicategory-byname-tests: Likewise.
29944         * modules/unictype/bidicategory-name-tests: Likewise.
29945         * modules/unictype/bidicategory-of-tests: Likewise.
29946         * modules/unictype/bidicategory-test-tests: Likewise.
29947         * modules/unictype/block-list-tests: Likewise.
29948         * modules/unictype/block-of-tests: Likewise.
29949         * modules/unictype/block-test-tests: Likewise.
29950         * modules/unictype/category-C-tests: Likewise.
29951         * modules/unictype/category-Cc-tests: Likewise.
29952         * modules/unictype/category-Cf-tests: Likewise.
29953         * modules/unictype/category-Cn-tests: Likewise.
29954         * modules/unictype/category-Co-tests: Likewise.
29955         * modules/unictype/category-Cs-tests: Likewise.
29956         * modules/unictype/category-L-tests: Likewise.
29957         * modules/unictype/category-Ll-tests: Likewise.
29958         * modules/unictype/category-Lm-tests: Likewise.
29959         * modules/unictype/category-Lo-tests: Likewise.
29960         * modules/unictype/category-Lt-tests: Likewise.
29961         * modules/unictype/category-Lu-tests: Likewise.
29962         * modules/unictype/category-M-tests: Likewise.
29963         * modules/unictype/category-Mc-tests: Likewise.
29964         * modules/unictype/category-Me-tests: Likewise.
29965         * modules/unictype/category-Mn-tests: Likewise.
29966         * modules/unictype/category-N-tests: Likewise.
29967         * modules/unictype/category-Nd-tests: Likewise.
29968         * modules/unictype/category-Nl-tests: Likewise.
29969         * modules/unictype/category-No-tests: Likewise.
29970         * modules/unictype/category-P-tests: Likewise.
29971         * modules/unictype/category-Pc-tests: Likewise.
29972         * modules/unictype/category-Pd-tests: Likewise.
29973         * modules/unictype/category-Pe-tests: Likewise.
29974         * modules/unictype/category-Pf-tests: Likewise.
29975         * modules/unictype/category-Pi-tests: Likewise.
29976         * modules/unictype/category-Po-tests: Likewise.
29977         * modules/unictype/category-Ps-tests: Likewise.
29978         * modules/unictype/category-S-tests: Likewise.
29979         * modules/unictype/category-Sc-tests: Likewise.
29980         * modules/unictype/category-Sk-tests: Likewise.
29981         * modules/unictype/category-Sm-tests: Likewise.
29982         * modules/unictype/category-So-tests: Likewise.
29983         * modules/unictype/category-Z-tests: Likewise.
29984         * modules/unictype/category-Zl-tests: Likewise.
29985         * modules/unictype/category-Zp-tests: Likewise.
29986         * modules/unictype/category-Zs-tests: Likewise.
29987         * modules/unictype/category-and-not-tests: Likewise.
29988         * modules/unictype/category-and-tests: Likewise.
29989         * modules/unictype/category-byname-tests: Likewise.
29990         * modules/unictype/category-name-tests: Likewise.
29991         * modules/unictype/category-none-tests: Likewise.
29992         * modules/unictype/category-of-tests: Likewise.
29993         * modules/unictype/category-or-tests: Likewise.
29994         * modules/unictype/category-test-withtable-tests: Likewise.
29995         * modules/unictype/combining-class-tests: Likewise.
29996         * modules/unictype/ctype-alnum-tests: Likewise.
29997         * modules/unictype/ctype-alpha-tests: Likewise.
29998         * modules/unictype/ctype-blank-tests: Likewise.
29999         * modules/unictype/ctype-cntrl-tests: Likewise.
30000         * modules/unictype/ctype-digit-tests: Likewise.
30001         * modules/unictype/ctype-graph-tests: Likewise.
30002         * modules/unictype/ctype-lower-tests: Likewise.
30003         * modules/unictype/ctype-print-tests: Likewise.
30004         * modules/unictype/ctype-punct-tests: Likewise.
30005         * modules/unictype/ctype-space-tests: Likewise.
30006         * modules/unictype/ctype-upper-tests: Likewise.
30007         * modules/unictype/ctype-xdigit-tests: Likewise.
30008         * modules/unictype/decimal-digit-tests: Likewise.
30009         * modules/unictype/digit-tests: Likewise.
30010         * modules/unictype/mirror-tests: Likewise.
30011         * modules/unictype/numeric-tests: Likewise.
30012         * modules/unictype/property-alphabetic-tests: Likewise.
30013         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30014         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30015         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30016         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30017         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30018         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30019         * modules/unictype/property-bidi-control-tests: Likewise.
30020         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30021         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30022         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30023         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30024         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30025         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30026         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30027         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30028         * modules/unictype/property-bidi-pdf-tests: Likewise.
30029         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30030         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30031         * modules/unictype/property-byname-tests: Likewise.
30032         * modules/unictype/property-combining-tests: Likewise.
30033         * modules/unictype/property-composite-tests: Likewise.
30034         * modules/unictype/property-currency-symbol-tests: Likewise.
30035         * modules/unictype/property-dash-tests: Likewise.
30036         * modules/unictype/property-decimal-digit-tests: Likewise.
30037         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30038         * modules/unictype/property-deprecated-tests: Likewise.
30039         * modules/unictype/property-diacritic-tests: Likewise.
30040         * modules/unictype/property-extender-tests: Likewise.
30041         * modules/unictype/property-format-control-tests: Likewise.
30042         * modules/unictype/property-grapheme-base-tests: Likewise.
30043         * modules/unictype/property-grapheme-extend-tests: Likewise.
30044         * modules/unictype/property-grapheme-link-tests: Likewise.
30045         * modules/unictype/property-hex-digit-tests: Likewise.
30046         * modules/unictype/property-hyphen-tests: Likewise.
30047         * modules/unictype/property-id-continue-tests: Likewise.
30048         * modules/unictype/property-id-start-tests: Likewise.
30049         * modules/unictype/property-ideographic-tests: Likewise.
30050         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30051         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30052         * modules/unictype/property-ignorable-control-tests: Likewise.
30053         * modules/unictype/property-iso-control-tests: Likewise.
30054         * modules/unictype/property-join-control-tests: Likewise.
30055         * modules/unictype/property-left-of-pair-tests: Likewise.
30056         * modules/unictype/property-line-separator-tests: Likewise.
30057         * modules/unictype/property-logical-order-exception-tests: Likewise.
30058         * modules/unictype/property-lowercase-tests: Likewise.
30059         * modules/unictype/property-math-tests: Likewise.
30060         * modules/unictype/property-non-break-tests: Likewise.
30061         * modules/unictype/property-not-a-character-tests: Likewise.
30062         * modules/unictype/property-numeric-tests: Likewise.
30063         * modules/unictype/property-other-alphabetic-tests: Likewise.
30064         * modules/unictype/property-other-default-ignorable-code-point-tests:
30065         Likewise.
30066         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30067         * modules/unictype/property-other-id-continue-tests: Likewise.
30068         * modules/unictype/property-other-id-start-tests: Likewise.
30069         * modules/unictype/property-other-lowercase-tests: Likewise.
30070         * modules/unictype/property-other-math-tests: Likewise.
30071         * modules/unictype/property-other-uppercase-tests: Likewise.
30072         * modules/unictype/property-paired-punctuation-tests: Likewise.
30073         * modules/unictype/property-paragraph-separator-tests: Likewise.
30074         * modules/unictype/property-pattern-syntax-tests: Likewise.
30075         * modules/unictype/property-pattern-white-space-tests: Likewise.
30076         * modules/unictype/property-private-use-tests: Likewise.
30077         * modules/unictype/property-punctuation-tests: Likewise.
30078         * modules/unictype/property-quotation-mark-tests: Likewise.
30079         * modules/unictype/property-radical-tests: Likewise.
30080         * modules/unictype/property-sentence-terminal-tests: Likewise.
30081         * modules/unictype/property-soft-dotted-tests: Likewise.
30082         * modules/unictype/property-space-tests: Likewise.
30083         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30084         * modules/unictype/property-test-tests: Likewise.
30085         * modules/unictype/property-titlecase-tests: Likewise.
30086         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30087         * modules/unictype/property-unified-ideograph-tests: Likewise.
30088         * modules/unictype/property-uppercase-tests: Likewise.
30089         * modules/unictype/property-variation-selector-tests: Likewise.
30090         * modules/unictype/property-white-space-tests: Likewise.
30091         * modules/unictype/property-xid-continue-tests: Likewise.
30092         * modules/unictype/property-xid-start-tests: Likewise.
30093         * modules/unictype/property-zero-width-tests: Likewise.
30094         * modules/unictype/scripts-tests: Likewise.
30095         * modules/unictype/syntax-c-ident-tests: Likewise.
30096         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30097         * modules/unictype/syntax-java-ident-tests: Likewise.
30098         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30099         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30100         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30101         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30102         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30103         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30104         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30105         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30106         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30107         * modules/uniname/uniname-tests: Likewise.
30108         * modules/uninorm/canonical-decomposition-tests: Likewise.
30109         * modules/uninorm/compat-decomposition-tests: Likewise.
30110         * modules/uninorm/composition-tests: Likewise.
30111         * modules/uninorm/decomposing-form-tests: Likewise.
30112         * modules/uninorm/decomposition-tests: Likewise.
30113         * modules/uninorm/filter-tests: Likewise.
30114         * modules/uninorm/nfc-tests: Likewise.
30115         * modules/uninorm/nfd-tests: Likewise.
30116         * modules/uninorm/nfkc-tests: Likewise.
30117         * modules/uninorm/nfkd-tests: Likewise.
30118         * modules/uninorm/u8-normcmp-tests: Likewise.
30119         * modules/uninorm/u8-normcoll-tests: Likewise.
30120         * modules/uninorm/u16-normcmp-tests: Likewise.
30121         * modules/uninorm/u16-normcoll-tests: Likewise.
30122         * modules/uninorm/u32-normcmp-tests: Likewise.
30123         * modules/uninorm/u32-normcoll-tests: Likewise.
30124         * modules/unistdio/u8-asnprintf-tests: Likewise.
30125         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30126         * modules/unistdio/u8-vasprintf-tests: Likewise.
30127         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30128         * modules/unistdio/u8-vsprintf-tests: Likewise.
30129         * modules/unistdio/u16-asnprintf-tests: Likewise.
30130         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30131         * modules/unistdio/u16-vasprintf-tests: Likewise.
30132         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30133         * modules/unistdio/u16-vsprintf-tests: Likewise.
30134         * modules/unistdio/u32-asnprintf-tests: Likewise.
30135         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30136         * modules/unistdio/u32-vasprintf-tests: Likewise.
30137         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30138         * modules/unistdio/u32-vsprintf-tests: Likewise.
30139         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30140         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30141         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30142         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30143         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30144         * modules/unistr/u8-check-tests: Likewise.
30145         * modules/unistr/u8-chr-tests: Likewise.
30146         * modules/unistr/u8-cmp-tests: Likewise.
30147         * modules/unistr/u8-cmp2-tests: Likewise.
30148         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30149         * modules/unistr/u8-cpy-tests: Likewise.
30150         * modules/unistr/u8-mblen-tests: Likewise.
30151         * modules/unistr/u8-mbsnlen-tests: Likewise.
30152         * modules/unistr/u8-mbtouc-tests: Likewise.
30153         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30154         * modules/unistr/u8-mbtoucr-tests: Likewise.
30155         * modules/unistr/u8-move-tests: Likewise.
30156         * modules/unistr/u8-next-tests: Likewise.
30157         * modules/unistr/u8-prev-tests: Likewise.
30158         * modules/unistr/u8-set-tests: Likewise.
30159         * modules/unistr/u8-stpcpy-tests: Likewise.
30160         * modules/unistr/u8-stpncpy-tests: Likewise.
30161         * modules/unistr/u8-strcat-tests: Likewise.
30162         * modules/unistr/u8-strcmp-tests: Likewise.
30163         * modules/unistr/u8-strcoll-tests: Likewise.
30164         * modules/unistr/u8-strcpy-tests: Likewise.
30165         * modules/unistr/u8-strdup-tests: Likewise.
30166         * modules/unistr/u8-strlen-tests: Likewise.
30167         * modules/unistr/u8-strmblen-tests: Likewise.
30168         * modules/unistr/u8-strmbtouc-tests: Likewise.
30169         * modules/unistr/u8-strncat-tests: Likewise.
30170         * modules/unistr/u8-strncmp-tests: Likewise.
30171         * modules/unistr/u8-strncpy-tests: Likewise.
30172         * modules/unistr/u8-strnlen-tests: Likewise.
30173         * modules/unistr/u8-to-u16-tests: Likewise.
30174         * modules/unistr/u8-to-u32-tests: Likewise.
30175         * modules/unistr/u8-uctomb-tests: Likewise.
30176         * modules/unistr/u16-check-tests: Likewise.
30177         * modules/unistr/u16-chr-tests: Likewise.
30178         * modules/unistr/u16-cmp-tests: Likewise.
30179         * modules/unistr/u16-cmp2-tests: Likewise.
30180         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30181         * modules/unistr/u16-cpy-tests: Likewise.
30182         * modules/unistr/u16-mblen-tests: Likewise.
30183         * modules/unistr/u16-mbsnlen-tests: Likewise.
30184         * modules/unistr/u16-mbtouc-tests: Likewise.
30185         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30186         * modules/unistr/u16-mbtoucr-tests: Likewise.
30187         * modules/unistr/u16-move-tests: Likewise.
30188         * modules/unistr/u16-next-tests: Likewise.
30189         * modules/unistr/u16-prev-tests: Likewise.
30190         * modules/unistr/u16-set-tests: Likewise.
30191         * modules/unistr/u16-stpcpy-tests: Likewise.
30192         * modules/unistr/u16-stpncpy-tests: Likewise.
30193         * modules/unistr/u16-strcat-tests: Likewise.
30194         * modules/unistr/u16-strcmp-tests: Likewise.
30195         * modules/unistr/u16-strcoll-tests: Likewise.
30196         * modules/unistr/u16-strcpy-tests: Likewise.
30197         * modules/unistr/u16-strdup-tests: Likewise.
30198         * modules/unistr/u16-strlen-tests: Likewise.
30199         * modules/unistr/u16-strmblen-tests: Likewise.
30200         * modules/unistr/u16-strmbtouc-tests: Likewise.
30201         * modules/unistr/u16-strncat-tests: Likewise.
30202         * modules/unistr/u16-strncmp-tests: Likewise.
30203         * modules/unistr/u16-strncpy-tests: Likewise.
30204         * modules/unistr/u16-strnlen-tests: Likewise.
30205         * modules/unistr/u16-to-u32-tests: Likewise.
30206         * modules/unistr/u16-to-u8-tests: Likewise.
30207         * modules/unistr/u16-uctomb-tests: Likewise.
30208         * modules/unistr/u32-check-tests: Likewise.
30209         * modules/unistr/u32-chr-tests: Likewise.
30210         * modules/unistr/u32-cmp-tests: Likewise.
30211         * modules/unistr/u32-cmp2-tests: Likewise.
30212         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30213         * modules/unistr/u32-cpy-tests: Likewise.
30214         * modules/unistr/u32-mblen-tests: Likewise.
30215         * modules/unistr/u32-mbsnlen-tests: Likewise.
30216         * modules/unistr/u32-mbtouc-tests: Likewise.
30217         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30218         * modules/unistr/u32-mbtoucr-tests: Likewise.
30219         * modules/unistr/u32-move-tests: Likewise.
30220         * modules/unistr/u32-next-tests: Likewise.
30221         * modules/unistr/u32-prev-tests: Likewise.
30222         * modules/unistr/u32-set-tests: Likewise.
30223         * modules/unistr/u32-stpcpy-tests: Likewise.
30224         * modules/unistr/u32-stpncpy-tests: Likewise.
30225         * modules/unistr/u32-strcat-tests: Likewise.
30226         * modules/unistr/u32-strcmp-tests: Likewise.
30227         * modules/unistr/u32-strcoll-tests: Likewise.
30228         * modules/unistr/u32-strcpy-tests: Likewise.
30229         * modules/unistr/u32-strdup-tests: Likewise.
30230         * modules/unistr/u32-strlen-tests: Likewise.
30231         * modules/unistr/u32-strmblen-tests: Likewise.
30232         * modules/unistr/u32-strmbtouc-tests: Likewise.
30233         * modules/unistr/u32-strncat-tests: Likewise.
30234         * modules/unistr/u32-strncmp-tests: Likewise.
30235         * modules/unistr/u32-strncpy-tests: Likewise.
30236         * modules/unistr/u32-strnlen-tests: Likewise.
30237         * modules/unistr/u32-to-u16-tests: Likewise.
30238         * modules/unistr/u32-to-u8-tests: Likewise.
30239         * modules/unistr/u32-uctomb-tests: Likewise.
30240         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30241         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30242         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30243         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30244         * modules/uniwidth/u8-strwidth-tests: Likewise.
30245         * modules/uniwidth/u8-width-tests: Likewise.
30246         * modules/uniwidth/u16-strwidth-tests: Likewise.
30247         * modules/uniwidth/u16-width-tests: Likewise.
30248         * modules/uniwidth/u32-strwidth-tests: Likewise.
30249         * modules/uniwidth/u32-width-tests: Likewise.
30250         * modules/uniwidth/width-tests: Likewise.
30251
30252 2010-05-18  Richard Jones  <rjones@redhat.com>
30253
30254         doc: users.txt: list hivex
30255         * users.txt: Add hivex.
30256
30257 2010-05-18  Richard Jones  <rjones@redhat.com>
30258
30259         doc: users.txt: list febootstrap
30260         * users.txt: Add febootstrap.
30261
30262 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30263
30264         bootstrap: fix an error when gnulib is not used as a git submodule
30265         * build-aux/bootstrap (gnulib_path): If its length is zero then
30266         assign "gnulib" to it.
30267         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30268
30269 2010-05-16  Bruno Haible  <bruno@clisp.org>
30270
30271         Avoid autoconf warnings about AM_ICONV.
30272         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30273         2.64.
30274
30275 2010-05-16  Bruno Haible  <bruno@clisp.org>
30276
30277         absolute-header: Make the macro usable in more situations.
30278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30279         from gl_ABSOLUTE_HEADER.
30280         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30281
30282 2010-05-16  James Youngman  <jay@gnu.org>
30283
30284         doc: update users.txt
30285         * users.txt: Add CSSC.
30286
30287 2010-05-16  Jim Meyering  <meyering@redhat.com>
30288
30289         init.sh: fix an error in the previous change; add more comments
30290         * tests/init.sh: Compare exit code in loop against 9, not 2.
30291         Patch by Bruno Haible.
30292         Make the two tests more similar by adding an empty "then" clause.
30293         Add comments.
30294
30295         init.sh: avoid unnecessary shell re-exec
30296         * tests/init.sh: Improve the re-exec-required check to first test the
30297         current shell.  If it passes the test, do not search for a shell that
30298         does pass, and do not re-exec.  This test is particularly contorted to
30299         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30300         of $(...) evokes a syntax error and causes immediate shell exit with
30301         status 2.  Bruno Haible reported that the re-exec made it impossible
30302         to single-step through any init.sh-using script.
30303
30304 2010-05-16  Bruno Haible  <bruno@clisp.org>
30305
30306         Fix collision between gnulib's and libintl's printf replacements.
30307         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30308         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30309         (printf): When using GNU C, map the __printf__ function to rpl_printf
30310         via __asm__. When not using GNU C, define rpl_printf instead of
30311         __printf__.
30312         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30313         commit.
30314         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30315         commit.
30316         * m4/asm-underscore.m4: New file.
30317         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30318         * modules/stdio (Files): Add m4/asm-underscore.m4.
30319         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30320         Reported by Ben Pfaff.
30321
30322 2010-05-16  Bruno Haible  <bruno@clisp.org>
30323
30324         verify: Avoid skipping the test on openSUSE 11.0.
30325         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30326
30327 2010-05-13  Bruno Haible  <bruno@clisp.org>
30328
30329         Avoid useless warnings from G++.
30330         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30331         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30333
30334 2010-05-11  Jim Meyering  <meyering@redhat.com>
30335
30336         maint.mk: tweak preceding change
30337         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30338         regexps tighter by anchoring at EOL, and make the new group "shy"
30339         for slightly decreased overhead.
30340
30341 2010-05-11  Eric Blake  <eblake@redhat.com>
30342
30343         maint.mk: gnulib doesn't guarantee NSIG
30344         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30345
30346 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30347
30348         test-pwrite.c: Remove unused variable declaration.
30349         * tests/test-pwrite.c (main): Remove read_buf declaration.
30350
30351         Remove useless test-pwrite.sh file.
30352         * tests/test-pwrite.sh: Delete file.
30353         * modules/pwrite-tests: Remove references.
30354         Reported by Bruno Haible.
30355
30356 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30357
30358         init.sh: fix a typo
30359         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30360
30361 2010-05-10  Jim Meyering  <meyering@redhat.com>
30362
30363         maint.mk: avoid using a temporary file in the always-defined-macros check
30364         * top/maint.mk (.re-defmac): Remove rule.
30365         (gl_trap_): Remove definition.
30366         (sc_prohibit_always-defined_macros): Rewrite not to create and
30367         depend on a temporary file.  Instead, depend on GNU grep's ability
30368         to read a list of regular expressions from stdin when given "-f -".
30369
30370 2010-05-09  Bruno Haible  <bruno@clisp.org>
30371
30372         Update to GNU gettext 0.18, part 1.
30373         * m4/gettext.m4: Update to GNU gettext 0.18.
30374         * m4/intl.m4: Likewise.
30375         * m4/po.m4: Likewise.
30376         * modules/gettext (Files): Add m4/fcntl-o.m4.
30377         (configure.ac): Require gettext infrastructure from version 0.18.
30378
30379 2010-05-09  Jim Meyering  <meyering@redhat.com>
30380
30381         init.sh: enable MALLOC_PERTURB_
30382         * tests/init.sh: Enable glibc's malloc-perturbing option.
30383
30384         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30385         With my recent change in init.sh from the two-line form:
30386             -#   : ${srcdir=.}
30387             -#   . "$srcdir/init.sh"; path_prepend_ .
30388             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30389         I noticed that using the one-line form would cause this test
30390         to fail with a false-positive, or to stop working altogether,
30391         depending on whether help-version changed or all the tests did.
30392         * top/maint.mk (_hv_regex): Remove this definition.
30393         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30394         (_hv_regex_strong): Use a stronger regex to check for conformance.
30395         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30396         Give a separate diagnostic for lack of conforming use.
30397
30398         maint.mk: prohibit definition of symbols defined by gnulib
30399         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30400         definition of symbols defined by gnulib.
30401
30402 2010-05-09  Bruno Haible  <bruno@clisp.org>
30403
30404         acl: Avoid test failure on Cygwin-hosted mingw.
30405         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30406
30407 2010-05-09  Bruno Haible  <bruno@clisp.org>
30408
30409         error: Use system's fcntl function.
30410         * lib/error.c (fcntl): Undefine.
30411
30412 2010-05-09  Jim Meyering  <meyering@redhat.com>
30413
30414         verify: adjust formatting to be more consistent
30415         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30416         argument-list '('s, and after one comma.
30417
30418 2010-05-09  Bruno Haible  <bruno@clisp.org>
30419
30420         error: More reliable output on mingw.
30421         * lib/error.c: Include <windows.h>.
30422         (is_open): New function.
30423         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30424         defined.
30425
30426 2010-05-09  Bruno Haible  <bruno@clisp.org>
30427
30428         vasnprintf: Fix syntax errors in libintl build on mingw.
30429         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30430         pad_ourselves and prec_ourselves after use.
30431
30432 2010-05-08  Bruno Haible  <bruno@clisp.org>
30433
30434         * lib/config.charset: Update comments for Cygwin 1.7.
30435         * lib/localcharset.c: Likewise.
30436
30437 2010-05-07  Jim Meyering  <meyering@redhat.com>
30438
30439         init.sh: improve comments
30440         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30441         . "${srcdir=.}/init.sh"; path_prepend_ .
30442         Add a note about path_prepend_ and the alternative of using
30443         TESTS_ENVIRONMENT.
30444
30445 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30446
30447         exclude: Unescape hashed patterns in wildcard mode.
30448         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30449         to the hash list.
30450         * tests/test-exclude8.sh: New test case.
30451         * modules/exclude-tests: Add new test.
30452
30453 2010-05-05  Eric Blake  <eblake@redhat.com>
30454
30455         verify: automate tests
30456         * modules/verify-tests: New module.
30457         * tests/test-verify.sh: New file.
30458         * tests/test-verify.c: Guard each negative test with a unique id.
30459         Also avoid warning about unused left hand of comma expressions.
30460
30461 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30462
30463         Further improvements to verify.h, suggested by Eric Blake.
30464         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30465         the GL_* versions, to avoid collision with OpenGL.
30466         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30467         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30468         than testing merely whether it's defined.
30469
30470         Modify verify.h to pacify gcc -Wredundant_decls.
30471         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30472         These use the prefix "GL_" since they're likely to be useful elsewhere.
30473         We may need to break them out into a different .h file.
30474         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30475         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30476         of verify_function__.
30477
30478 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30479
30480         Tests for module pwrite.
30481         * modules/pwrite-tests: New file.
30482         * tests/test-pwrite.sh: New file.
30483         * tests/test-pwrite.c: New file.
30484
30485         New module pwrite.
30486         * lib/unistd.in.h (pwrite): New declaration.
30487         * lib/pwrite.c: New file, from glibc with modifications.
30488         * m4/pwrite.m4: New file.
30489         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30490         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30491         REPLACE_PWRITE.
30492         * modules/pwrite: New file.
30493         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30494         REPLACE_PWRITE.
30495         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30496         * doc/posix-functions/pwrite.texi: Mention the new module.
30497
30498 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30499
30500         pread: Update documentation.
30501         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30502
30503 2010-05-04  Eric Blake  <eblake@redhat.com>
30504
30505         docs: update cygwin progress
30506         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30507         this bug.
30508         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30509         Added in cygwin 1.7.2.
30510         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30511         Likewise.
30512         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30513         Likewise.
30514         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30515         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30516         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30517         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30518         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30519         Mention nproc module.
30520         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30521         bug in cygwin 1.7.5 addition.
30522         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30523         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30524         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30525         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30526         1.7.5.
30527         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30528         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30529         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30530         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30531         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30532         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30533         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30534         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30535         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30536         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30537         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30538         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30539         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30540         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30541         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30542         Likewise.
30543         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30544         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30545         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30546         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30547         Likewise.
30548         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30549         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30550         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30551         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30552         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30553         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30554         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30555         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30556         Likewise.
30557         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30558         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30559         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30560         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30561         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30562         Likewise.
30563         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30564         Likewise.
30565         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30566         Likewise.
30567         * doc/glibc-functions/xdrrec_endofrecord.texi
30568         (xdrrec_endofrecord): Likewise.
30569         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30570         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30571         Likewise.
30572         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30573         Likewise.
30574
30575 2010-05-04  Jim Meyering  <meyering@redhat.com>
30576
30577         gendocs.sh: make its "-s FILE" option more useful
30578         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30579         $PACKAGE to reflect the probably-different basename of "FILE".
30580
30581 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30582
30583         bootstrap: don't ignore download_po_files failure
30584         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30585         failure.
30586
30587 2010-05-03  Jim Meyering  <meyering@redhat.com>
30588
30589         maint.mk: allow to pass options to gendocs.sh
30590         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30591         (gendocs_options_): New overridable variable.
30592
30593         gnu-web-doc-update: don't ignore configure or build failure
30594         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30595
30596         announce-gen: backslash-escape '@'s in --help output
30597         * build-aux/announce-gen: Fix syntax errors.
30598
30599         maint.mk, announce-gen: allow project-specific announcement mail headers
30600         * top/maint.mk (translation_project_): Define default.
30601         (announcement_Cc_, announcement_mail_headers_): Likewise.
30602         (announcement): Invoke announce-gen with new --mail-headers option.
30603         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30604
30605         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30606         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30607         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30608         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30609         line in the "err2" output file when running "make check" in verbose
30610         mode (i.e., with set -x enabled).
30611
30612 2010-05-03  Bruno Haible  <bruno@clisp.org>
30613
30614         wctob: Fix for weird platforms.
30615         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30616         argument value.
30617
30618 2010-05-03  Jim Meyering  <meyering@redhat.com>
30619
30620         maint.mk: prohibit unwarranted use of <strings.h>
30621         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30622         strings.h in a file that does not also use strcasecmp, strncasecmp,
30623         ffs or ffsll.
30624
30625         maint.mk: remove obsolete comments
30626         * top/maint.mk: Remove stale, commented-out rules.
30627
30628 2010-05-02  Bruno Haible  <bruno@clisp.org>
30629
30630         wcwidth: Declare also when it's aliased.
30631         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30632         macro.
30633
30634 2010-05-02  Bruno Haible  <bruno@clisp.org>
30635
30636         Fix regression from 2010-04-25.
30637         * gnulib-tool (func_modules_transitive_closure): Check the status of
30638         all modules, not only of the tests that are of the form foo-tests where
30639         foo is a module.
30640
30641 2010-05-02  Bruno Haible  <bruno@clisp.org>
30642
30643         wctob: Work around nasty Cygwin 1.7.2 bug.
30644         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30645         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30646
30647 2010-05-01  Bruno Haible  <bruno@clisp.org>
30648
30649         fpurge: Sharper test.
30650         * tests/test-fpurge.c (main): Add one more ftell check.
30651         * modules/fpurge-tests (Depends-on): Add ftell.
30652         Suggested by Eric Blake.
30653
30654 2010-05-01  Bruno Haible  <bruno@clisp.org>
30655
30656         ftello: Another test.
30657         * tests/test-ftello3.c: New file.
30658         * modules/ftello-tests (Files): Add it.
30659         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30660         MOSTLYCLEANFILES.
30661
30662         ftell: Another test.
30663         * tests/test-ftell3.c: New file.
30664         * modules/ftell-tests (Files): Add it.
30665         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30666         MOSTLYCLEANFILES.
30667
30668 2010-05-01  Bruno Haible  <bruno@clisp.org>
30669
30670         ftell, ftello: Work around Solaris bug.
30671         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30672         * lib/ftello.c: Include stdio-impl.h.
30673         (ftello): On Solaris, when _IOWRT is set, compute the result without
30674         looking at _IOREAD.
30675         * modules/ftello (Files): Add lib/stdio-impl.h.
30676         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30677         * doc/posix-functions/ftello.texi: Likewise.
30678         Reported by Eric Blake.
30679
30680 2010-05-01  Bruno Haible  <bruno@clisp.org>
30681
30682         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30683         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30684         the _IOWRT flag is also set.
30685
30686 2010-05-01  Bruno Haible  <bruno@clisp.org>
30687
30688         Fix doc about a HP-UX stdio bug.
30689         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30690         * doc/posix-functions/ftello.texi: Likewise.
30691
30692 2010-05-01  Bruno Haible  <bruno@clisp.org>
30693
30694         lseek test: Fix failure on Solaris.
30695         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30696         output.
30697
30698 2010-04-30  Jim Meyering  <meyering@redhat.com>
30699
30700         bootstrap: don't ignore failure to generate po*/Makevars
30701         * build-aux/bootstrap (with_gettext): Don't ignore failure
30702         to create po/Makevars or runtime-po/Makevars.
30703
30704 2010-04-29  Eric Blake  <eblake@redhat.com>
30705
30706         headers: relax license to LGPLv2+
30707         * modules/fcntl-h (License): Relax license.
30708         * modules/getopt-posix (License): Likewise.
30709         * modules/locale (License): Likewise.
30710         * modules/math (License): Likewise.
30711         * modules/pty (License): Likewise.
30712         * modules/sched (License): Likewise.
30713         * modules/search (License): Likewise.
30714         * modules/spawn (License): Likewise.
30715         * modules/stdarg (License): Likewise.
30716         * modules/sysexits (License): Likewise.
30717
30718 2010-04-29  Jim Meyering  <meyering@redhat.com>
30719
30720         inttypes: relax license to LGPLv2+
30721         * modules/inttypes (License): Relax license.
30722
30723 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30724
30725         * top/maint.mk (indent): Run twice to produce idempotent results.
30726
30727 2010-04-28  Bruno Haible  <bruno@clisp.org>
30728
30729         getdate: Generate getdate.c in the source directory.
30730         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30731         MOSTLYCLEANFILES.
30732         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30733
30734 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30735
30736         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30737         is not declared as a const *; avoid warnings in that case.
30738
30739 2010-04-28  Eric Blake  <eblake@redhat.com>
30740
30741         canonicalize-lgpl: avoid compiler warning
30742         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30743         declaration' / 'extraneous semicolon' warning with some compilers.
30744         Reported by Andreas Gruenbacher.
30745
30746 2010-04-28  Jim Meyering  <meyering@redhat.com>
30747
30748         init.sh: ensure a more reliable exit status when exiting via trap
30749         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30750         Inspired by patches from Dmitry V. Levin.
30751         Also trap on signal 3 (SIGQUIT).
30752
30753 2010-04-27  Bruno Haible  <bruno@clisp.org>
30754
30755         Update doc about utimes().
30756         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30757         'utimens' module.
30758         Reported by Andreas Gruenbacher <agruen@suse.de>.
30759
30760 2010-04-27  Eric Blake  <eblake@redhat.com>
30761
30762         full-read, full-write: relax license
30763         * modules/full-read (License): Drop to LGPLv2+.
30764         * modules/full-write (License): Likewise.
30765         * modules/safe-read (License): Likewise.
30766         * modules/safe-write (License): Likewise.
30767
30768         pthread: mention library for linking
30769         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30770
30771 2010-04-27  Jim Meyering  <meyering@redhat.com>
30772
30773         maint.mk: fix a bug introduced in last change
30774         * top/maint.mk (gl_assured_headers_): Now that all names are on
30775         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30776         is not anchored to end of word, it should be adequate.
30777
30778         maint.mk: avoid side-effect in latest syntax-check
30779         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30780         to run commands via $(shell...), and hence to incur cost only when
30781         the new rule is actually run.
30782
30783         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30784         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30785         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30786         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30787         (gl_assured_headers_, az_, AZ_): Define.
30788         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30789
30790 2010-04-26  Jim Meyering  <jim@meyering.net>
30791             Bruno Haible  <bruno@clisp.org>
30792
30793         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30794         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30795         Prompted by an exchange with Gilles Espinasse.
30796
30797 2010-04-26  Jim Meyering  <meyering@redhat.com>
30798
30799         git-version-gen: aesthetic tweak
30800         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30801         so that the command remains on a single line.
30802
30803 2010-04-26  Eric Blake  <eblake@redhat.com>
30804
30805         git-version-gen: allow use on EBCDIC hosts
30806         * build-aux/git-version-gen (dirty): Use literal rather than tying
30807         ourselves to ascii.
30808         Reported by Steve Goetze.
30809
30810 2010-04-25  Bruno Haible  <bruno@clisp.org>
30811
30812         netdb: Add support for GNULIB_POSIXCHECK.
30813         * lib/netdb.in.h: Include warn-on-use.h.
30814         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30815         functions are used when GNULIB_POSIXCHECK is defined and the
30816         getaddrinfo module is not in use.
30817         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30818         freeaddrinfo, gai_strerror, getnameinfo are declared.
30819         * modules/netdb (Depends-on): Add warn-on-use.
30820         (Makefile.am): Include warn-on-use.h in netdb.h.
30821
30822 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30823
30824         build: avoid "make check" failure without .git/ directory
30825         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30826         there is no .git/ directory.
30827
30828 2010-04-25  Bruno Haible  <bruno@clisp.org>
30829
30830         ptsname: Fix misuse of ttyname_r.
30831         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30832         of errno.
30833
30834 2010-04-25  Bruno Haible  <bruno@clisp.org>
30835
30836         ttyname_r: Make it work on Solaris 10.
30837         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30838         if the system function has the POSIX declaration. Test whether the
30839         function fails if the buffer is less than 128 bytes large.
30840         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30841         system's ttyname_r function. Provide a reasonably large buffer.
30842         * modules/ttyname_r (Depends-on): Add extensions.
30843         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30844
30845 2010-04-25  Bruno Haible  <bruno@clisp.org>
30846
30847         Use the 'extensions' module for some more functions on Solaris.
30848         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30849         module.
30850         * doc/posix-functions/ctime_r.texi: Likewise.
30851         * doc/posix-functions/getgrgid_r.texi: Likewise.
30852         * doc/posix-functions/getgrnam_r.texi: Likewise.
30853         * doc/posix-functions/getpwnam_r.texi: Likewise.
30854         * doc/posix-functions/getpwuid_r.texi: Likewise.
30855         * doc/posix-functions/readdir_r.texi: Likewise.
30856         * doc/posix-functions/sigwait.texi: Likewise.
30857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30858         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30859
30860 2010-04-25  Bruno Haible  <bruno@clisp.org>
30861
30862         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30863         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30864         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30865         * lib/ttyname_r.c: Include <limits.h>.
30866         (ttyname_r): Define using the system's ttyname_r function, if it exists
30867         and not on Solaris.
30868         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30869         set.
30870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30871         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30872         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30873         Reported by Simon Josefsson.
30874
30875 2010-04-25  Bruno Haible  <bruno@clisp.org>
30876
30877         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30878         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30879         * doc/posix-functions/ctime_r.texi: Likewise.
30880         * doc/posix-functions/getgrgid_r.texi: Likewise.
30881         * doc/posix-functions/getgrnam_r.texi: Likewise.
30882         * doc/posix-functions/getlogin_r.texi: Likewise.
30883         * doc/posix-functions/getpwnam_r.texi: Likewise.
30884         * doc/posix-functions/getpwuid_r.texi: Likewise.
30885         * doc/posix-functions/readdir_r.texi: Likewise.
30886         * doc/posix-functions/sigwait.texi: Likewise.
30887         * doc/posix-functions/ttyname_r.texi: Likewise.
30888         Reported by Simon Josefsson.
30889
30890 2010-04-25  Bruno Haible  <bruno@clisp.org>
30891
30892         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30893         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30894         also to --create-testdir.
30895         (func_acceptable): Don't consider the status of *-tests modules here.
30896         (func_modules_transitive_closure): Consider it here, before including a
30897         test module.
30898         (func_import, func_create_testdir): Set inc_all_direct_tests,
30899         inc_all_indirect_tests.
30900         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30901         --create-testdir and --create-megatestdir.
30902
30903 2010-04-25  Bruno Haible  <bruno@clisp.org>
30904
30905         gnulib-tool: Add --without-*-tests options.
30906         * gnulib-tool (func_usage): Document the --without-*-tests options.
30907         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30908         excl_unportable_tests): New variables.
30909         Fail if they are specified with --import or --update.
30910         (func_acceptable): Respect the excl_*_tests variables.
30911         (func_import): Set the excl_*_tests variables to empty.
30912
30913 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30914             Bruno Haible  <bruno@clisp.org>
30915
30916         Work around a MacOS X 10.4 bug with openpty.
30917         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30918         * tests/test-openpty.c (main): Close the master side explicitly.
30919
30920 2010-04-25  Bruno Haible  <bruno@clisp.org>
30921
30922         strnlen: Fix a C++ test error on MacOS X and Solaris.
30923         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30924         the function is not declared.
30925         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30926         Simon Josefsson.
30927
30928 2010-04-24  Bruno Haible  <bruno@clisp.org>
30929
30930         Avoid a gcc warning.
30931         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30932         of correct type for %08lx directive.
30933         Reported by Eric Blake.
30934
30935 2010-04-24  Bruno Haible  <bruno@clisp.org>
30936
30937         vasnprintf: Correct errno value in case of out-of-memory.
30938         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30939         or sprintf. Use the errno value from SNPRINTF or sprintf.
30940         Reported by Ian Beckwith <ianb@erislabs.net>.
30941
30942 2010-04-24  Bruno Haible  <bruno@clisp.org>
30943
30944         ansi-c++-opt: Find correct compiler when cross-compiling.
30945         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30946         AC_CHECK_PROGS.
30947         Reported by Simon Josefsson.
30948
30949 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30950
30951         vc-list-files: Add support for subversion
30952         * build-aux/vc-list-files: Use "svn list" to generate the list of
30953         files controlled by subversion.
30954
30955 2010-04-23  Jim Meyering  <meyering@redhat.com>
30956
30957         vc-list-files tests: convert to use init.sh
30958         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30959         path_prepend_.
30960         Use Exit, not exit.
30961         Use skip_ rather than open coding it.
30962         Remove trap set-up and compare definitions.
30963         * tests/test-vc-list-files-git.sh: Likewise.
30964         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30965
30966 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30967
30968         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30969         backup files.
30970
30971 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30972
30973         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30974
30975 2010-04-20  Eric Blake  <eblake@redhat.com>
30976
30977         tests: be robust to ignored SIGPIPE
30978         * tests/test-select-in.sh: Consume all output.
30979         * tests/test-lseek.sh: Check correct exit status, while avoiding
30980         EPIPE.
30981
30982 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30983             Bruno Haible  <bruno@clisp.org>
30984
30985         visibility: Don't use -fvisibility if it leads to a warning.
30986         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30987         yes, don't pretend that visibility works if it leads to a warning.
30988         Reported by Mike Gran <spk121@yahoo.com>.
30989
30990 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30991
30992         * build-aux/bootstrap: Use "git -h" for testing for supported options
30993         instead of "git --help".  The short-form option only shows a summary,
30994         and doesn't layout the full man page.  Grep for the full option name
30995         in the summary, too.
30996
30997 2010-04-19  Bruno Haible  <bruno@clisp.org>
30998
30999         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31000         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31001         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31002         mention of RELOCATABLE_STRIP.
31003         Reported by Sylvain Beucler <beuc@beuc.net>.
31004
31005 2010-04-19  Bruno Haible  <bruno@clisp.org>
31006
31007         * lib/diffseq.h: Fix typo in comment.
31008         Reported by Eric Blake.
31009
31010 2010-04-19  Bruno Haible  <bruno@clisp.org>
31011
31012         ioctl: Move autoconf macro to a .m4 file.
31013         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31014         * modules/ioctl (Files): Add it.
31015         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31016         Reported by Ian Beckwith <ianb@erislabs.net>.
31017
31018 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31019             Bruno Haible  <bruno@clisp.org>
31020
31021         diffseq: Accommodate use-case with abstract arrays.
31022         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31023         is not defined.
31024         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31025         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31026
31027 2010-04-18  Bruno Haible  <bruno@clisp.org>
31028
31029         * doc/posix-headers/stdbool.texi: More precise wording.
31030
31031 2010-04-17  Jim Meyering  <meyering@redhat.com>
31032
31033         maint.mk: use gnu-style indentation in an embedded perl script
31034         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31035         Rename variable: s/two/last_two_bytes/
31036
31037 2010-04-16  Eric Blake  <eblake@redhat.com>
31038
31039         test-stdbool: skip test that fails with Solaris CC
31040         * tests/test-stdbool.c (f): Skip test that causes compilation
31041         error under buggy C++ compiler.
31042         * lib/stdbool.in.h: Document the limitation.
31043         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31044
31045         setenv: allow compilation with C++
31046         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31047         register keyword.
31048
31049         stdint: allow test to pass with C++
31050         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31051
31052         getopt: allow compilation with C++
31053         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31054         struct.
31055         * lib/getopt.c (_getopt_internal_r): Use correct type.
31056         Reported by Dagobert Michelson, via Joel E. Denny.
31057
31058 2010-04-16  Bruno Haible  <bruno@clisp.org>
31059
31060         Override netdb.h always.
31061         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31063         Reported by Ludovic Courtès <ludo@gnu.org>.
31064
31065 2010-04-15  Bruno Haible  <bruno@clisp.org>
31066
31067         openpty: Fix mistake from 2010-03-21.
31068         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31069         Reported by Simon Josefsson.
31070
31071 2010-04-15  Eric Blake  <eblake@redhat.com>
31072
31073         test-forkpty: fix expected signature
31074         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31075         Reported by Simon Josefsson.
31076
31077 2010-04-15  Jim Meyering  <meyering@redhat.com>
31078
31079         maint.mk: texinfo_suffix_re_: correct the default regexp
31080         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31081
31082         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31083         make it configurable via texinfo_suffix_re_.
31084
31085 2010-04-14  Eric Blake  <eblake@redhat.com>
31086
31087         strtok_r: relax license to LGPLv2+
31088         * modules/strtok_r (License): Relax license.
31089         Reported by Matthias Bolte.
31090
31091 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31092
31093         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31094         version 1.4.4 by default instead of requiring the libgcrypt
31095         version used during build.  This makes it possible to use the
31096         application with older but still binary compatible libgcrypt
31097         versions.
31098
31099 2010-04-13  Eric Blake  <eblake@redhat.com>
31100
31101         getopt-gnu: match recent glibc fixes and posix ruling
31102         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31103         '+' handling, when requesting extensions.
31104         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31105         'W;' handling.
31106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31107         * doc/posix-functions/getopt.texi (getopt): Document this.
31108         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31109         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31110         Likewise.
31111
31112         getopt: merge bug fixes from glibc
31113         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31114         diagnostics.  Honor '+:' correctly.  Reject ';'.
31115
31116         getopt-posix: detect MacOS bug
31117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31118         optind when missing a required argument.
31119         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31120         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31122         Likewise.
31123
31124         getopt-posix: avoid spurious failure on Solaris
31125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31126         an indicator that setting optind=1 is sufficient for reset.
31127
31128         getopt-posix: avoid spurious failure on FreeBSD
31129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31130         in POSIX mode, since the m4 test uses it.
31131
31132         gnulib-tool: silence warning on BSD sh
31133         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31134
31135 2010-04-13  Jim Meyering  <meyering@redhat.com>
31136
31137         doc: users.txt: GNU patch now uses gnulib
31138         * users.txt: Add patch.
31139
31140 2010-04-12  Jim Meyering  <meyering@redhat.com>
31141
31142         maint.mk: generate more concise timing data for syntax-check rules
31143         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31144         " done" from each line that reports a syntax-check test duration.
31145
31146 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31147
31148         git-version-gen: use "git update-index..." rather than "git status"
31149         * build-aux/git-version-gen: Use git update-index --refresh, not
31150         "git status".  With some versions of git, "git status" would fail
31151         to update the index and result in an unwarranted "-dirty" suffix.
31152
31153 2010-04-11  Jim Meyering  <meyering@redhat.com>
31154
31155         openat: correct formatting (no semantic change)
31156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31157         Suggested by Bruno Haible.
31158
31159 2010-04-11  Bruno Haible  <bruno@clisp.org>
31160
31161         Stricter declaration checking in testdirs.
31162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31163         If for_tests is true, augment AM_CPPFLAGS to define
31164         GNULIB_STRICT_CHECKING.
31165         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31166         GNULIB_STRICT_CHECKING is defined, verify that the function is
31167         declared.
31168
31169 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31170             Bruno Haible  <bruno@clisp.org>
31171
31172         libunistring: Improve configure output.
31173         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31174         Don't say "consider installing GNU libunistring" when checking again
31175         with libiconv.
31176
31177 2010-04-11  Bruno Haible  <bruno@clisp.org>
31178
31179         libunistring: Correct value of $LTLIBUNISTRING.
31180         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31181         correct the value of $LTLIBUNISTRING.
31182
31183 2010-04-11  Bruno Haible  <bruno@clisp.org>
31184
31185         havelib: Add static libraries to LIBS in the right order.
31186         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31187         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31188
31189 2010-04-11  Bruno Haible  <bruno@clisp.org>
31190
31191         libunistring: Detect libunistring also when it depends on libiconv.
31192         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31193         the second AC_LIB_HAVE_LINKFLAGS invocation.
31194
31195 2010-04-11  James Youngman  <jay@gnu.org>
31196
31197         close-stream: declare local scalars to be "const"
31198         * lib/close-stream.c (close_stream): Make boolean variables const
31199         to document the fact that we set but do not change them.
31200
31201 2010-04-11  Bruno Haible  <bruno@clisp.org>
31202
31203         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31204
31205 2010-04-11  Jim Meyering  <meyering@redhat.com>
31206
31207         maint.mk: don't include dist-check.mk
31208         * top/maint.mk: Remove bogus include directive.
31209
31210         maint.mk: improve empty-line-at-EOF check
31211         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31212         solution, rather than tail+Perl-based one.  The latter would read
31213         a few kilobytes from the end of each file, and did not handle empty
31214         files properly.
31215
31216         maint.mk: print the elapsed time for each syntax-check rule
31217         * top/maint.mk (sc_m_rules_): Save start time in a file.
31218         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31219         (local-check): Interpose the .z rules
31220
31221 2010-04-11  Jim Meyering  <meyering@redhat.com>
31222
31223         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31224         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31225         empty file with one that ends in an empty line.
31226
31227 2010-04-10  Bruno Haible  <bruno@clisp.org>
31228
31229         mkdir: Make it work on mingw64.
31230         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31231         * lib/mkdir.c: Update comment.
31232         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31233
31234 2010-04-10  Bruno Haible  <bruno@clisp.org>
31235
31236         Don't override improved macro from newer autoconf.
31237         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31238         autoconf >= 2.62.
31239         Reported by Joel E. Denny <jdenny@clemson.edu>.
31240
31241 2010-04-10  Jim Meyering  <meyering@redhat.com>
31242
31243         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31244         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31245
31246         maint.mk: correct a diagnostic
31247         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31248         in diagnostic; now use $prohibit.
31249
31250 2010-04-10  Bruno Haible  <address@hidden>
31251
31252         fchownat: Fix a C++ test error on Solaris 8.
31253         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31254         the function does not exist.
31255
31256 2010-04-10  Bruno Haible  <bruno@clisp.org>
31257
31258         vasnprintf: Add more tests.
31259         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31260         (test_function): Test converting an invalid wide string.
31261
31262         vasnprintf: Correct handling of unconvertible wide string arguments.
31263         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31264         VASNPRINTF.
31265         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31266         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31267         smaller than the expected maximum need for the directive. Set errno to
31268         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31269         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31271         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31272         * modules/vasnprintf (Files): Add m4/printf.m4.
31273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31274
31275 2010-04-10  Bruno Haible  <bruno@clisp.org>
31276
31277         vasnprintf: Fix crash in %ls directive.
31278         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31279         string is passed as argument to %ls, with no precision and no width.
31280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31281
31282 2010-04-10  Bruno Haible  <bruno@clisp.org>
31283
31284         vasnprintf: Fix multiple test failures on mingw.
31285         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31286         _snprintf, or snwprintf, not _snwprintf.
31287
31288 2010-04-10  Bruno Haible  <bruno@clisp.org>
31289
31290         write: Fix a C++ test error on mingw.
31291         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31292
31293 2010-04-10  Bruno Haible  <bruno@clisp.org>
31294
31295         vasnprintf test: Reduce code duplication.
31296         * tests/test-vasnprintf.c (test_function): New function, extracted from
31297         test_vasnprintf.
31298         (test_vasnprintf, test_asnprintf): Invoke it.
31299
31300 2010-04-10  Bruno Haible  <bruno@clisp.org>
31301
31302         strnlen: Fix warning in C++ mode on MacOS X.
31303         * lib/string.in.h (strnlen): Use the modern idiom.
31304         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31305         defining strnlen as a macro already in <config.h>.
31306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31307         REPLACE_STRNLEN.
31308         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31309         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31310
31311 2010-04-08  James Youngman  <jay@gnu.org>
31312
31313         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31314         the example.
31315
31316 2010-04-09  Jim Meyering  <meyering@redhat.com>
31317
31318         maint.mk: print better diagnostic when there is no $(_hv_file)
31319         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31320         announce that when $(_hv_file) (aka help-version) does not exist.
31321
31322         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31323         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31324         not try to interpret its random input bytes.  Jarno Rajahalme reported
31325         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31326         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31327         (mktempd_): Likewise, just in case.
31328
31329         ftruncate: add two years to projected module removal date: 2012
31330         * m4/ftruncate.m4: Adjust comments.
31331
31332         ftruncate: mark module as obsolete; even MinGW provides it, now
31333         * modules/ftruncate (Status): Obsolete.
31334         (Notice): Say that.
31335         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31337
31338 2010-04-08  Bruno Haible  <bruno@clisp.org>
31339
31340         Fix side effects from tests-related modules.
31341         * modules/dprintf-posix (Comment): New section.
31342         * modules/fprintf-posix (Comment): Likewise.
31343         * modules/obstack-printf-posix (Comment): Likewise.
31344         * modules/printf-posix (Comment): Likewise.
31345         * modules/snprintf-posix (Comment): Likewise.
31346         * modules/sprintf-posix (Comment): Likewise.
31347         * modules/vasnprintf-posix (Comment): Likewise.
31348         * modules/vasprintf-posix (Comment): Likewise.
31349         * modules/vdprintf-posix (Comment): Likewise.
31350         * modules/vfprintf-posix (Comment): Likewise.
31351         * modules/vprintf-posix (Comment): Likewise.
31352         * modules/vsnprintf-posix (Comment): Likewise.
31353         * modules/vsprintf-posix (Comment): Likewise.
31354         * modules/xprintf-posix (Comment): Likewise.
31355         * modules/xvasprintf-posix (Comment): Likewise.
31356         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31357         * modules/floorf-tests (Depends-on): Likewise.
31358         * modules/round-tests (Depends-on): Likewise.
31359         * modules/roundf-tests (Depends-on): Likewise.
31360         * modules/trunc-tests (Depends-on): Likewise.
31361         * modules/truncf-tests (Depends-on): Likewise.
31362         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31363         'fprintf-posix' module is not present.
31364         * tests/test-floorf2.c (check): Likewise.
31365         * tests/test-trunc2.c (check): Likewise.
31366         * tests/test-truncf2.c (check): Likewise.
31367         * tests/test-round2.c (equal): Likewise.
31368         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31369
31370 2010-04-07  Karl Berry  <karl@gnu.org>
31371
31372         * config/srclist.txt,
31373         * config/srclistvars.sh,
31374         * config/srclist-update: doc fixes.
31375
31376 2010-04-07  Jim Meyering  <meyering@redhat.com>
31377
31378         maint.mk: add a PATH crosschecking syntax-check rule
31379         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31380         Useful if you use a test like the one in help-version (coreutils,
31381         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31382         printed by prog --version.
31383
31384 2010-04-06  Bruno Haible  <bruno@clisp.org>
31385
31386         Fix link error on mingw.
31387         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31388         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31389
31390 2010-04-06  Bruno Haible  <bruno@clisp.org>
31391
31392         Assume rmdir exists.
31393         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31394
31395 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31396
31397         doc: update users.txt
31398         * users.txt: Add gcal.
31399
31400 2010-04-06  Jim Meyering  <meyering@redhat.com>
31401
31402         init.sh: simply unset TMPDIR rather than risking env -i
31403         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31404         although it probably works fine on all Unix-based systems, some
31405         systems (Cygwin?) cannot tolerate a totally cleared environment.
31406         Suggestion from Eric Blake.
31407
31408 2010-04-06  Jim Meyering  <meyering@redhat.com>
31409
31410         init.sh: portability fix: use env's POSIX-specified -i option not -u
31411         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31412         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31413
31414 2010-04-05  Bruno Haible  <bruno@clisp.org>
31415
31416         btowc: Work around Cygwin 1.7.2 bug.
31417         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31418         does not map NUL to 0.
31419         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31420
31421 2010-04-05  Bruno Haible  <bruno@clisp.org>
31422
31423         Make the multithread modules work on Cygwin 1.7.2.
31424         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31425         imported symbols can be declared weak, so that it returns "no" on
31426         Cygwin 1.7.2.
31427
31428 2010-04-05  Bruno Haible  <bruno@clisp.org>
31429
31430         Use the module 'strncat'.
31431         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31432
31433         Tests for module 'strncat'.
31434         * modules/strncat-tests: New file.
31435         * tests/test-strncat.c: New file.
31436
31437         New module 'strncat'.
31438         * lib/string.in.h (strncat): New declaration.
31439         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31440         * m4/strncat.m4: New file, based on m4/memchr.m4.
31441         * modules/strncat: New file.
31442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31443         is declared.
31444         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31445         REPLACE_STRNCAT.
31446         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31447         REPLACE_STRNCAT.
31448         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31449         module.
31450         * tests/test-string-c++.cc: Check signature of strncat.
31451
31452 2010-04-05  Jim Meyering  <meyering@redhat.com>
31453
31454         xstrtoumax-tests: convert to use init.sh
31455         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31456         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31457         Use Exit, not exit.
31458         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31459
31460         xstrtoimax-tests: convert to use init.sh
31461         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31462         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31463         Use Exit, not exit.
31464         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31465
31466 2010-04-05  Bruno Haible  <bruno@clisp.org>
31467
31468         sys_socket: Avoid #define replacements in C++ mode.
31469         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31470         warning to the function if possible, rather than #defining the symbol
31471         to a dysfunctional alias.
31472
31473 2010-04-05  Bruno Haible  <bruno@clisp.org>
31474
31475         fseeko: Fix C++ test error on mingw.
31476         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31477         gl_FUNC_FSEEKO.
31478         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31479         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31480         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31481         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31482
31483 2010-04-05  Bruno Haible  <bruno@clisp.org>
31484
31485         duplocale: Improve test output.
31486         * tests/test-duplocale.c (main): Print reason for skipped test.
31487
31488 2010-04-05  Bruno Haible  <bruno@clisp.org>
31489
31490         Assume rmdir exists.
31491         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31492         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31493
31494 2010-04-05  Bruno Haible  <bruno@clisp.org>
31495
31496         Fix link error on Solaris 8 with cc.
31497         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31498
31499 2010-04-05  Bruno Haible  <bruno@clisp.org>
31500
31501         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31502         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31503
31504 2010-04-05  Bruno Haible  <bruno@clisp.org>
31505
31506         vasprintf: Update documentation.
31507         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31508
31509 2010-04-05  Bruno Haible  <bruno@clisp.org>
31510
31511         ptsname: Improve test.
31512         * tests/test-ptsname.c (main): Also try the various master names of BSD
31513         systems.
31514
31515 2010-04-05  Bruno Haible  <bruno@clisp.org>
31516
31517         memchr: Avoid a possible C++ test error.
31518         * lib/string.in.h (memchr): Provide declaration if function is missing.
31519         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31520         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31522         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31523
31524 2010-04-05  Bruno Haible  <bruno@clisp.org>
31525
31526         strtok_r: Improve idiom.
31527         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31528         AC_LIBOBJ is used.
31529
31530 2010-04-05  Bruno Haible  <bruno@clisp.org>
31531
31532         strdup: Improve idiom.
31533         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31534         AC_LIBOBJ is used.
31535         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31536         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31537         when AC_LIBOBJ is used.
31538
31539 2010-04-05  Bruno Haible  <bruno@clisp.org>
31540
31541         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31543         don't set REPLACE_MBSINIT to 1.
31544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31545         don't set REPLACE_MBRTOWC to 1.
31546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31547         exist, don't set REPLACE_MBSRTOWCS to 1.
31548         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31549         exist, don't set REPLACE_MBSNRTOWCS to 1.
31550         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31551         don't set REPLACE_WCRTOMB to 1.
31552         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31553         exist, don't set REPLACE_WCSRTOMBS to 1.
31554         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31555         exist, don't set REPLACE_WCSNRTOMBS to 1.
31556
31557 2010-04-05  Bruno Haible  <bruno@clisp.org>
31558
31559         ldexpl: Improve idiom.
31560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31561         make sure to set HAVE_DECL_LDEXPL to 0.
31562
31563 2010-04-05  Jim Meyering  <meyering@redhat.com>
31564
31565         xstrtol-tests: convert to use init.sh
31566         * modules/xstrtol-tests (Files): Add tests/init.sh.
31567         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31568         Use Exit, not exit.
31569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31570
31571         atexit-tests: convert to use init.sh
31572         * modules/atexit-tests (Files): Add tests/init.sh.
31573         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31574         Use Exit, not exit.
31575         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31576
31577         init.sh: fix typo
31578         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31579
31580         init.sh: make it easier for a test script to write to the tty, ...
31581         when using automake's parallel-tests mode.
31582         * tests/init.sh (stderr_fileno_): Define overridable variable.
31583         (warn_): New function, to use it.
31584         (fail_, skip_, framework_failure_): Use warn_.
31585
31586 2010-04-04  Bruno Haible  <bruno@clisp.org>
31587
31588         btowc: Avoid warning.
31589         * lib/btowc.c: Include <stdlib.h>.
31590         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31591
31592 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31593             Bruno Haible  <bruno@clisp.org>
31594
31595         wchar: Port to NetBSD 1.5.
31596         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31597         * lib/wctype.in.h (WEOF): Likewise.
31598
31599 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31600             Bruno Haible  <bruno@clisp.org>
31601
31602         Port extended stdio to NetBSD 1.5.
31603         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31604         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31605         older.
31606
31607 2010-04-04  Bruno Haible  <bruno@clisp.org>
31608
31609         string: Remove unused substitution.
31610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31611         HAVE_DECL_STRERROR.
31612         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31613
31614 2010-04-04  Bruno Haible  <bruno@clisp.org>
31615
31616         strtod: Avoid a possible C++ test error.
31617         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31618         set REPLACE_STRTOD.
31619
31620 2010-04-04  Bruno Haible  <bruno@clisp.org>
31621
31622         strerror: Update documentation.
31623         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31624
31625 2010-04-04  Bruno Haible  <bruno@clisp.org>
31626
31627         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31628         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31629         _GL_CXXALIAS_SYS_CAST.
31630
31631 2010-04-04  Bruno Haible  <bruno@clisp.org>
31632
31633         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31634         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31635         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31636         REPLACE_FREXPL to 1.
31637         * doc/posix-functions/frexpl.texi: Update documentation.
31638
31639 2010-04-04  Bruno Haible  <bruno@clisp.org>
31640
31641         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31642         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31643
31644 2010-04-04  Bruno Haible  <bruno@clisp.org>
31645
31646         Implement nanosleep for native Windows.
31647         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31648
31649 2010-04-04  Bruno Haible  <bruno@clisp.org>
31650
31651         math: Fix some C++ test errors on Solaris 8.
31652         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31653
31654 2010-04-04  Bruno Haible  <bruno@clisp.org>
31655
31656         math: Fix some C++ test errors on Cygwin.
31657         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31658         truncl): Provide declaration if the system does not have it.
31659         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31660         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31661         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31662         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31663         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31664         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31665         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31666         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31667         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31668         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31669         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31670         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31671         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31672         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31673         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31674         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31676         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31677         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31678         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31679         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31680         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31681
31682 2010-04-04  Bruno Haible  <bruno@clisp.org>
31683
31684         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31685         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31686         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31687         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31688         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31689         * m4/isinf.m4 (gl_ISINF): Likewise.
31690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31691
31692 2010-04-04  Bruno Haible  <bruno@clisp.org>
31693
31694         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31695         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31696
31697 2010-04-04  Bruno Haible  <bruno@clisp.org>
31698
31699         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31700         * modules/tmpfile (configure.ac): Update.
31701
31702         tmpfile: Fix C++ test error on mingw.
31703         * lib/stdio.in.h (tmpfile): New declaration.
31704         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31705         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31706         * modules/tmpfile (Depends-on): Add stdio.
31707         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31708         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31709         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31710         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31711         REPLACE_TMPFILE.
31712         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31713
31714 2010-04-04  Bruno Haible  <bruno@clisp.org>
31715
31716         ioctl: Fix C++ test error on mingw.
31717         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31718         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31719         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31720
31721 2010-04-03  Bruno Haible  <bruno@clisp.org>
31722
31723         wcwidth: Fix C++ test error on mingw.
31724         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31726         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31727
31728 2010-04-03  Bruno Haible  <bruno@clisp.org>
31729
31730         nanosleep: Fix C++ test error on mingw.
31731         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31732         * lib/time.in.h (nanosleep): Use modern idiom.
31733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31734         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31735         REPLACE_NANOSLEEP to 1.
31736         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31737         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31738
31739 2010-04-03  Bruno Haible  <bruno@clisp.org>
31740
31741         strptime: Fix C++ test error on mingw.
31742         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31743         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31744         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31745         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31747         not REPLACE_STRPTIME.
31748         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31749         REPLACE_STRPTIME.
31750
31751 2010-04-03  Bruno Haible  <bruno@clisp.org>
31752
31753         timegm: Fix C++ test error on mingw.
31754         * lib/time.in.h (timegm): Use modern idiom.
31755         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31756         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31758         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31759
31760 2010-04-03  Bruno Haible  <bruno@clisp.org>
31761
31762         timegm: Assume declaration if function exists.
31763         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31764         if it exists. Don't clobber ac_cv_func_timegm.
31765
31766 2010-04-03  Bruno Haible  <bruno@clisp.org>
31767
31768         time_r: Fix C++ test error on mingw.
31769         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31770         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31771         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31773         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31774
31775 2010-04-03  Bruno Haible  <bruno@clisp.org>
31776
31777         time_r: Minor updates.
31778         * modules/time_r (Description): Mention the provided functions.
31779         * lib/time_r.c: Don't include <string.h>.
31780         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31781         * doc/posix-functions/localtime_r.texi: Likewise.
31782
31783 2010-04-03  Bruno Haible  <bruno@clisp.org>
31784
31785         time: Fix regression introduced on 2010-03-08.
31786         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31787         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31788
31789 2010-04-03  Jim Meyering  <meyering@redhat.com>
31790
31791         maint.mk: don't silently disable project-specific syntax-check rules
31792         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31793         that they need to convert their project-specific syntax-check rules
31794         to use the new _sc_search_regexp.
31795
31796 2010-04-03  Bruno Haible  <bruno@clisp.org>
31797
31798         fchdir: Fix regression introduced on 2010-03-08.
31799         * lib/unistd.in.h (fchdir): Fix declaration.
31800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31802         REPLACE_FCHDIR.
31803         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31804         REPLACE_FCHDIR.
31805
31806 2010-04-03  Bruno Haible  <bruno@clisp.org>
31807
31808         getpagesize: Fix C++ test error on mingw.
31809         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31810         system does not declare the function.
31811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31812         declared.
31813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31814         HAVE_DECL_GETPAGESIZE.
31815         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31816
31817 2010-04-03  Bruno Haible  <bruno@clisp.org>
31818
31819         stdio: Make C++ tests work on mingw.
31820         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31821         does not declare the function.
31822
31823 2010-04-03  Bruno Haible  <bruno@clisp.org>
31824
31825         ftello: Fix C++ test error on mingw.
31826         * lib/stdio.in.h (ftello): Use modern idiom.
31827         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31828         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31829         is missing and that it needs to be replaced.
31830         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31832         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31833
31834 2010-04-03  Bruno Haible  <bruno@clisp.org>
31835
31836         fseeko: Fix C++ test error on mingw.
31837         * lib/stdio.in.h (fseeko): Use modern idiom.
31838         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31839         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31840         is missing and that it needs to be replaced.
31841         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31843         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31844
31845 2010-04-03  Bruno Haible  <bruno@clisp.org>
31846
31847         mkstemp: Fix C++ test error on mingw.
31848         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31850         function is missing and that it needs to be replaced.
31851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31852         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31853
31854 2010-04-03  Bruno Haible  <bruno@clisp.org>
31855
31856         stpncpy: Fix C++ test error on mingw.
31857         * lib/string.in.h (stpncpy): Use modern idiom.
31858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31859         function is missing and that it needs to be replaced.
31860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31861         REPLACE_STPNCPY.
31862         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31863
31864 2010-04-03  Bruno Haible  <bruno@clisp.org>
31865
31866         sys_stat: Fix C++ test error on mingw.
31867         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31868         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31869
31870 2010-04-03  Bruno Haible  <bruno@clisp.org>
31871
31872         pty: Update doc.
31873         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31874
31875 2010-04-03  Bruno Haible  <bruno@clisp.org>
31876
31877         unistd: Fix C++ test error on mingw.
31878         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31879
31880 2010-04-03  Bruno Haible  <bruno@clisp.org>
31881
31882         Update doc regarding mingw.
31883         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31884         * doc/glibc-functions/login_tty.texi: Likewise.
31885         * doc/glibc-functions/forkpty.texi: Likewise.
31886
31887 2010-04-03  Bruno Haible  <bruno@clisp.org>
31888
31889         stdlib: Avoid compilation failure of c-strtold on mingw.
31890         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31891
31892 2010-04-03  Bruno Haible  <bruno@clisp.org>
31893
31894         locale: Make C++ tests work on Cygwin and mingw.
31895         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31896         cannot provide the function.
31897         Reported by Simon Josefsson.
31898
31899 2010-04-03  Bruno Haible  <bruno@clisp.org>
31900
31901         localename: Port to MacOS X 10.6.
31902         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31903         memory layout of the locales in MacOS X 10.6 as well.
31904         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31905
31906 2010-04-02  Bruno Haible  <bruno@clisp.org>
31907
31908         gnulib-tool: Ensure that long-running tests are executed last.
31909         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31910         running tests after the one for the other tests.
31911
31912 2010-04-02  Bruno Haible  <bruno@clisp.org>
31913
31914         gnulib-tool: Ensure the tests in the main directory are executed first.
31915         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31916         start with the current directory.
31917
31918 2010-04-02  Bruno Haible  <bruno@clisp.org>
31919
31920         Tests for module 'havelib', moved here from GNU gettext.
31921         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31922         modifications.
31923         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31924         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31925         with modifications.
31926         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31927         modifications.
31928         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31929         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31930         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31931         with modifications.
31932         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31933         with modifications.
31934         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31935         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31936         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31937         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31938         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31939         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31940         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31941         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31942         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31943         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31944         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31945         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31946         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31947         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31948         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31949         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31950         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31951         with modifications.
31952         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31953         with modifications.
31954         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31955         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31956         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31957         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31958         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31959         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31960         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31961         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31962         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31963         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31964         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31965         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31966         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31967         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31968         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31969         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31970         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31971         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31972         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31973         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31974         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31975         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31976         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31977         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31978         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31979         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31980         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31981         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31982         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31983         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31984         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31985         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31986         * tests/havelib/rpathx/rpathx.c: New file, from
31987         gettext/autoconf-lib-link.
31988         * tests/havelib/rpathx/Makefile.am: New file, from
31989         gettext/autoconf-lib-link.
31990         * tests/havelib/rpathx/configure.ac: New file, from
31991         gettext/autoconf-lib-link with modifications.
31992         * tests/havelib/rpathy/rpathy.c: New file, from
31993         gettext/autoconf-lib-link.
31994         * tests/havelib/rpathy/Makefile.am: New file, from
31995         gettext/autoconf-lib-link.
31996         * tests/havelib/rpathy/configure.ac: New file, from
31997         gettext/autoconf-lib-link with modifications.
31998         * tests/havelib/rpathz/rpathz.c: New file, from
31999         gettext/autoconf-lib-link.
32000         * tests/havelib/rpathz/Makefile.am: New file, from
32001         gettext/autoconf-lib-link.
32002         * tests/havelib/rpathz/configure.ac: New file, from
32003         gettext/autoconf-lib-link with modifications.
32004         * tests/havelib/rpathlx/usex.c: New file, from
32005         gettext/autoconf-lib-link.
32006         * tests/havelib/rpathlx/Makefile.am: New file, from
32007         gettext/autoconf-lib-link.
32008         * tests/havelib/rpathlx/configure.ac: New file, from
32009         gettext/autoconf-lib-link with modifications.
32010         * tests/havelib/rpathly/usey.c: New file, from
32011         gettext/autoconf-lib-link.
32012         * tests/havelib/rpathly/Makefile.am: New file, from
32013         gettext/autoconf-lib-link.
32014         * tests/havelib/rpathly/configure.ac: New file, from
32015         gettext/autoconf-lib-link with modifications.
32016         * tests/havelib/rpathlz/usez.c: New file, from
32017         gettext/autoconf-lib-link.
32018         * tests/havelib/rpathlz/Makefile.am: New file, from
32019         gettext/autoconf-lib-link.
32020         * tests/havelib/rpathlz/configure.ac: New file, from
32021         gettext/autoconf-lib-link with modifications.
32022         * tests/havelib/rpathlyx/usey.c: New file, from
32023         gettext/autoconf-lib-link.
32024         * tests/havelib/rpathlyx/Makefile.am: New file, from
32025         gettext/autoconf-lib-link.
32026         * tests/havelib/rpathlyx/configure.ac: New file, from
32027         gettext/autoconf-lib-link with modifications.
32028         * tests/havelib/rpathlzyx/usez.c: New file, from
32029         gettext/autoconf-lib-link.
32030         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32031         gettext/autoconf-lib-link.
32032         * tests/havelib/rpathlzyx/configure.ac: New file, from
32033         gettext/autoconf-lib-link with modifications.
32034         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32035         with modifications.
32036
32037 2010-04-02  Bruno Haible  <bruno@clisp.org>
32038
32039         gnulib-tool: Create distributed built sources also for the tests.
32040         * gnulib-tool (func_create_testdir): Also generate distributed built
32041         sources in the tests directory.
32042
32043 2010-04-02  Bruno Haible  <bruno@clisp.org>
32044
32045         gnulib-tool: Obey user's environment variables.
32046         * gnulib-tool (func_create_testdir): When creating built sources,
32047         respect the environment variables for autoconf, automake, etc. given by
32048         the user.
32049
32050 2010-04-02  Bruno Haible  <bruno@clisp.org>
32051
32052         gnulib-tool: Provide the value of --m4-base to modules.
32053         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32054         of gl_m4_base.
32055
32056 2010-04-02  Eric Blake  <eblake@redhat.com>
32057
32058         maint.mk: fix some fallout
32059         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32060         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32061
32062 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32063
32064         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32065         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32066         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32067         (sc_cast_of_x_alloc_return_value): Likewise.
32068         (sc_cast_of_alloca_return_value): Likewise.
32069         (sc_space_tab): Likewise.
32070         (sc_prohibit_atoi_atof): Likewise.
32071         (sc_prohibit_magic_number_exit): Likewise.
32072         (sc_error_exit_success): Likewise.
32073         (sc_file_system): Likewise.
32074         (sc_prohibit_have_config_h): Likewise.
32075         (sc_require_config_h): Likewise.
32076         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32077         (sc_obsolete_symbols): Likewise.
32078         (sc_changelog): Likewise.
32079         (sc_program_name): Likewise.
32080         (sc_the_the): Likewise.
32081         (sc_trailing_blank): Likewise.
32082         (sc_two_space_separator_in_usage): Likewise.
32083         (sc_useless_cpp_parens): Likewise.
32084         (sc_GPL_version): Likewise.
32085         (sc_GFDL_version): Likewise.
32086         (sc_texinfo_acronym): Likewise.
32087         (sc_prohibit_cvs_keyword): Likewise.
32088         (sc_prohibit_stat_st_blocks): Likewise.
32089         (sc_prohibit_S_IS_definition): Likewise.
32090         (sc_redundant_const): Likewise.
32091         (sc_makefile_TAB_only_indentation): Likewise.
32092         (sc_m4_quote_check): Likewise.
32093         (sc_makefile_path_separator_check): Likewise.
32094         (sc_copyright_check): Likewise.
32095         (sc_Wundef_boolean): Likewise.
32096         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32097
32098         maint.mk: match 0 or more whitespace-before-function-call '('
32099         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32100         that have zero or two-and-more spaces between the function name
32101         and the open parenthesis.
32102         (sc_error_message_warn_fatal): Likewise.
32103         (sc_error_message_uppercase): Likewise.
32104         (sc_error_message_period): Likewise.
32105
32106 2010-03-31  Eric Blake  <eblake@redhat.com>
32107
32108         maint.mk: check for [ as well as test
32109         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32110         Based on a libvirt report by Matthias Bolte.
32111
32112         gnumakefile: don't squelch _version output
32113         * top/GNUmakefile (_version): Create one-shot dependency rather
32114         than using $(shell) when version must be regenerated.
32115         (_autoreconf): Run verbosely, by default.
32116
32117         sys_time: avoid compiler warnings
32118         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32119         unconditional, fixing regression from 2010-03-29.
32120         Reported by Simon Josefsson.
32121
32122 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32123
32124         maint.mk: s/_header_without_use/_sc_header_without_use/
32125         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32126         (sc_prohibit_assert_without_use): Use the new name.
32127         (sc_prohibit_close_stream_without_use): Likewise.
32128         (sc_prohibit_getopt_without_use): Likewise.
32129         (sc_prohibit_quotearg_without_use): Likewise.
32130         (sc_prohibit_quote_without_use): Likewise.
32131         (sc_prohibit_long_options_without_use): Likewise.
32132         (sc_prohibit_inttostr_without_use): Likewise.
32133         (sc_prohibit_ignore_value_without_use): Likewise.
32134         (sc_prohibit_error_without_use): Likewise.
32135         (sc_prohibit_xalloc_without_use): Likewise.
32136         (sc_prohibit_hash_without_use): Likewise.
32137         (sc_prohibit_hash_pjw_without_use): Likewise.
32138         (sc_prohibit_safe_read_without_use): Likewise.
32139         (sc_prohibit_argmatch_without_use): Likewise.
32140         (sc_prohibit_canonicalize_without_use): Likewise.
32141         (sc_prohibit_root_dev_ino_without_use): Likewise.
32142         (sc_prohibit_openat_without_use): Likewise.
32143         (sc_prohibit_c_ctype_without_use): Likewise.
32144         (sc_prohibit_signal_without_use): Likewise.
32145         (sc_prohibit_intprops_without_use): Likewise.
32146
32147 2010-03-30  Eric Blake  <eblake@redhat.com>
32148
32149         maint: improve module indicators
32150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32151         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32152         columns, and avoid extra macro expansion.
32153
32154         fdopendir: work around FreeBSD bug
32155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32157         * modules/dirent (Makefile.am): Substitute it.
32158         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32159         declaration.
32160         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32161         fix.
32162         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32163
32164 2010-03-29  Bruno Haible  <bruno@clisp.org>
32165
32166         Emit #pragma system_header after the inclusion guard, not before.
32167         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32168         guard that spans the entire file, not before. This enables an
32169         optimization in GCC's preprocessor.
32170         * lib/ctype.in.h: Likewise.
32171         * lib/dirent.in.h: Likewise.
32172         * lib/errno.in.h: Likewise.
32173         * lib/float.in.h: Likewise.
32174         * lib/getopt.in.h: Likewise.
32175         * lib/iconv.in.h: Likewise.
32176         * lib/langinfo.in.h: Likewise.
32177         * lib/locale.in.h: Likewise.
32178         * lib/math.in.h: Likewise.
32179         * lib/netdb.in.h: Likewise.
32180         * lib/netinet_in.in.h: Likewise.
32181         * lib/pty.in.h: Likewise.
32182         * lib/sched.in.h: Likewise.
32183         * lib/se-selinux.in.h: Likewise.
32184         * lib/search.in.h: Likewise.
32185         * lib/spawn.in.h: Likewise.
32186         * lib/stdarg.in.h: Likewise.
32187         * lib/stdint.in.h: Likewise.
32188         * lib/string.in.h: Likewise.
32189         * lib/strings.in.h: Likewise.
32190         * lib/sys_file.in.h: Likewise.
32191         * lib/sys_ioctl.in.h: Likewise.
32192         * lib/sys_time.in.h: Likewise.
32193         * lib/sys_times.in.h: Likewise.
32194         * lib/sys_utsname.in.h: Likewise.
32195         * lib/sys_wait.in.h: Likewise.
32196         * lib/sysexits.in.h: Likewise.
32197         * lib/wctype.in.h: Likewise.
32198
32199 2010-03-28  James Youngman  <jay@gnu.org>
32200
32201         save-cwd: don't leak a file descriptor when the caller execs.
32202         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32203         saved file descriptor.
32204         * modules/save-cwd (Depends-on): Depend on cloexec.
32205
32206 2010-03-29  Bruno Haible  <bruno@clisp.org>
32207
32208         Remove vestiges of fts-lgpl module.
32209         * lib/fts_.h: Assume GNULIB_FTS is 1.
32210         * lib/fts.c: Likewise.
32211         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32212
32213 2010-03-28  Bruno Haible  <bruno@clisp.org>
32214
32215         Fix definition of tests witness macro.
32216         * gnulib-tool (func_import): Fix definition of witness macro.
32217
32218 2010-03-28  Bruno Haible  <bruno@clisp.org>
32219
32220         Fix ioctl's protoype on glibc systems.
32221         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32222         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32223         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32224         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32225         signature. If not, arrange to replace the ioctl function.
32226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32227         REPLACE_IOCTL.
32228         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32229         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32230         Reported by Ludovic Courtès <ludo@gnu.org>.
32231
32232 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32233
32234         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32235         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32236         made it so grep -r --include=GLOB* ... did not work.
32237
32238 2010-03-26  Jim Meyering  <meyering@redhat.com>
32239             Eric Blake  <eblake@redhat.com>
32240
32241         maint.mk: prohibit use of test's -o and -a operators
32242         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32243
32244 2010-03-28  Bruno Haible  <bruno@clisp.org>
32245
32246         Remove unused GNULIB_XYZ macro definitions.
32247         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32248         invocation.
32249
32250 2010-03-28  Bruno Haible  <bruno@clisp.org>
32251
32252         Mark privileged tests modules.
32253         * modules/idpriv-drop-tests (Status): New section.
32254         * modules/idpriv-droptemp-tests (Status): New section.
32255
32256 2010-03-28  Bruno Haible  <bruno@clisp.org>
32257
32258         Split C++ tests into separate tests modules.
32259         * modules/dirent-c++-tests: New file, extracted from
32260         modules/dirent-tests.
32261         * modules/dirent-tests: Depend on it.
32262         * modules/fcntl-h-c++-tests: New file, extracted from
32263         modules/fcntl-h-tests.
32264         * modules/fcntl-h-tests: Depend on it.
32265         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32266         * modules/glob-tests: Depend on it.
32267         * modules/iconv-h-c++-tests: New file, extracted from
32268         modules/iconv-h-tests.
32269         * modules/iconv-h-tests: Depend on it.
32270         * modules/langinfo-c++-tests: New file, extracted from
32271         modules/langinfo-tests.
32272         * modules/langinfo-tests: Depend on it.
32273         * modules/locale-c++-tests: New file, extracted from
32274         modules/locale-tests.
32275         * modules/locale-tests: Depend on it.
32276         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32277         * modules/math-tests: Depend on it.
32278         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32279         * modules/pty-tests: Depend on it.
32280         * modules/search-c++-tests: New file, extracted from
32281         modules/search-tests.
32282         * modules/search-tests: Depend on it.
32283         * modules/signal-c++-tests: New file, extracted from
32284         modules/signal-tests.
32285         * modules/signal-tests: Depend on it.
32286         * modules/spawn-c++-tests: New file, extracted from
32287         modules/spawn-tests.
32288         * modules/spawn-tests: Depend on it.
32289         * modules/stdio-c++-tests: New file, extracted from
32290         modules/stdio-tests.
32291         * modules/stdio-tests: Depend on it.
32292         * modules/stdlib-c++-tests: New file, extracted from
32293         modules/stdlib-tests.
32294         * modules/stdlib-tests: Depend on it.
32295         * modules/string-c++-tests: New file, extracted from
32296         modules/string-tests.
32297         * modules/string-tests: Depend on it.
32298         * modules/sys_ioctl-c++-tests: New file, extracted from
32299         modules/sys_ioctl-tests.
32300         * modules/sys_ioctl-tests: Depend on it.
32301         * modules/sys_select-c++-tests: New file, extracted from
32302         modules/sys_select-tests.
32303         * modules/sys_select-tests: Depend on it.
32304         * modules/sys_socket-c++-tests: New file, extracted from
32305         modules/sys_socket-tests.
32306         * modules/sys_socket-tests: Depend on it.
32307         * modules/sys_stat-c++-tests: New file, extracted from
32308         modules/sys_stat-tests.
32309         * modules/sys_stat-tests: Depend on it.
32310         * modules/sys_time-c++-tests: New file, extracted from
32311         modules/sys_time-tests.
32312         * modules/sys_time-tests: Depend on it.
32313         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32314         * modules/time-tests: Depend on it.
32315         * modules/unistd-c++-tests: New file, extracted from
32316         modules/unistd-tests.
32317         * modules/unistd-tests: Depend on it.
32318         * modules/wchar-c++-tests: New file, extracted from
32319         modules/wchar-tests.
32320         * modules/wchar-tests: Depend on it.
32321         * modules/wctype-c++-tests: New file, extracted from
32322         modules/wctype-tests.
32323         * modules/wctype-tests: Depend on it.
32324         Reported by Simon Josefsson.
32325
32326 2010-03-28  Bruno Haible  <bruno@clisp.org>
32327
32328         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32329         * gnulib-tool (func_exists_module): New function, extracted from
32330         func_verify_module.
32331         (func_verify_module): Use it.
32332         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32333         'foo' only if 'foo' exists.
32334         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32335         module.
32336
32337 2010-03-28  Bruno Haible  <bruno@clisp.org>
32338
32339         gnulib-tool: Add support for special categories of tests.
32340         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32341         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32342         (func_usage): Document them.
32343         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32344         inc_unportable_tests, inc_all_tests): New variables.
32345         (func_acceptable): Consider these variables.
32346         (func_modules_transitive_closure): Make it work when the 'Status' field
32347         consists of multiple words.
32348         (func_import): Store and restore the values of inc_cxx_tests,
32349         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32350         inc_all_tests in gnulib-comp.m4.
32351         (func_create_testdir): Set inc_all_tests to true.
32352         * doc/gnulib.texi (Extra tests modules): New section.
32353         Suggested by Jim Meyering.
32354
32355 2010-03-28  Bruno Haible  <bruno@clisp.org>
32356
32357         ansi-c++-opt: Allow turning off the C++ build by default.
32358         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32359         gl_CXX_CHOICE_DEFAULT_NO is defined.
32360         Requested by Eric Blake.
32361
32362 2010-03-28  Bruno Haible  <bruno@clisp.org>
32363
32364         unistd: Avoid #define replacements in C++ mode.
32365         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32366         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32367         setsockopt, shutdown, select): In C++, attach a warning to the function
32368         if possible, rather than #defining the symbol to a dysfunctional alias.
32369         Reported by John W. Eaton <jwe@gnu.org>.
32370
32371 2010-03-28  Bruno Haible  <bruno@clisp.org>
32372
32373         Fix link errors on mingw.
32374         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32375         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32376         $(LIBSOCKET).
32377         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32378         $(LIBSOCKET).
32379
32380 2010-03-28  Bruno Haible  <bruno@clisp.org>
32381             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32382
32383         lib-ignore: Determine different options for different compilers.
32384         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32385         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32386         Add comments.
32387         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32388         * NEWS: Mention the change.
32389
32390 2010-03-27  Bruno Haible  <bruno@clisp.org>
32391
32392         Remove unused GNULIB_XYZ macro definitions.
32393         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32394         * modules/fseek (configure.ac): Likewise.
32395         * modules/ioctl (configure.ac): Likewise.
32396         * modules/open (configure.ac): Likewise.
32397         * modules/stdlib-safer (configure.ac): Likewise.
32398
32399 2010-03-27  Bruno Haible  <bruno@clisp.org>
32400
32401         Add a remark about certain modules.
32402         * modules/malloc (Comment): New section.
32403         * modules/realloc (Comment): Likewise.
32404         * modules/sigpipe (Comment): Likewise.
32405
32406 2010-03-27  Bruno Haible  <bruno@clisp.org>
32407
32408         Resolve conflict between the two kinds of module indicators.
32409         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32410         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32411         * modules/canonicalize (configure.ac): Invoke
32412         gl_MODULE_INDICATOR_FOR_TESTS.
32413         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32414         GNULIB_XYZ.
32415         * tests/test-dirent-c++.cc: Likewise.
32416         * tests/test-dirent-safer.c: Likewise.
32417         * tests/test-dup2.c: Likewise.
32418         * tests/test-fchdir.c: Likewise.
32419         * tests/test-fcntl-h-c++.cc: Likewise.
32420         * tests/test-getopt.c: Likewise.
32421         * tests/test-getopt.h: Likewise.
32422         * tests/test-langinfo-c++.cc: Likewise.
32423         * tests/test-locale-c++.cc: Likewise.
32424         * tests/test-math-c++.cc: Likewise.
32425         * tests/test-pty-c++.cc: Likewise.
32426         * tests/test-search-c++.cc: Likewise.
32427         * tests/test-signal-c++.cc: Likewise.
32428         * tests/test-spawn-c++.cc: Likewise.
32429         * tests/test-stdio-c++.cc: Likewise.
32430         * tests/test-stdlib-c++.cc: Likewise.
32431         * tests/test-string-c++.cc: Likewise.
32432         * tests/test-sys_ioctl-c++.cc: Likewise.
32433         * tests/test-sys_select-c++.cc: Likewise.
32434         * tests/test-sys_socket-c++.cc: Likewise.
32435         * tests/test-sys_stat-c++.cc: Likewise.
32436         * tests/test-sys_time-c++.cc: Likewise.
32437         * tests/test-time-c++.cc: Likewise.
32438         * tests/test-unistd-c++.cc: Likewise.
32439         * tests/test-wchar-c++.cc: Likewise.
32440         * tests/uninorm/test-u8-nfc.c: Likewise.
32441         * tests/uninorm/test-u8-nfd.c: Likewise.
32442         * tests/uninorm/test-u8-nfkc.c: Likewise.
32443         * tests/uninorm/test-u8-nfkd.c: Likewise.
32444         * tests/uninorm/test-u16-nfc.c: Likewise.
32445         * tests/uninorm/test-u16-nfd.c: Likewise.
32446         * tests/uninorm/test-u16-nfkc.c: Likewise.
32447         * tests/uninorm/test-u16-nfkd.c: Likewise.
32448         * tests/uninorm/test-u32-nfc.c: Likewise.
32449         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32450         * tests/uninorm/test-u32-nfd.c: Likewise.
32451         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32452         * tests/uninorm/test-u32-nfkc.c: Likewise.
32453         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32454         * tests/uninorm/test-u32-nfkd.c: Likewise.
32455         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32456         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32457
32458 2010-03-27  Bruno Haible  <bruno@clisp.org>
32459
32460         Distinguish two kinds of module indicators.
32461         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32462         gl_MODULE_INDICATOR.
32463         (gl_MODULE_INDICATOR): New macro.
32464         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32465         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32466         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32467         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32468         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32469         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32470         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32471         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32472         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32473         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32474         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32475         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32480         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32481         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32483         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32484         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32485         * modules/cloexec (configure.ac): Likewise.
32486         * modules/getopt-gnu (configure.ac): Likewise.
32487         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32488         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32489         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32490         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32491
32492 2010-03-27  Bruno Haible  <bruno@clisp.org>
32493
32494         New module description field 'Comment'.
32495         * gnulib-tool: New option --extract-comment.
32496         (func_usage): Document it.
32497         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32498         (func_get_comment): New function.
32499         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32500
32501 2010-03-27  Bruno Haible  <bruno@clisp.org>
32502
32503         Addendum to 2010-02-07 commit.
32504         * gnulib-tool (func_usage): Document --extract-applicability option.
32505
32506 2010-03-27  Bruno Haible  <bruno@clisp.org>
32507
32508         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32509         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32510         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32511         rather than link errors.
32512
32513 2010-03-27  Bruno Haible  <bruno@clisp.org>
32514
32515         Avoid side effects from tests-related modules on the compilation of lib.
32516         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32517         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32518         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32519         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32520         macro.
32521         (func_import): Define a witness macro. Assign it a value that depends
32522         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32523         tests-related modules.
32524         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32525         Reported by Jim Meyering.
32526
32527 2010-03-27  Bruno Haible  <bruno@clisp.org>
32528
32529         Factorize common .m4 code.
32530         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32531         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32532         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32533         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32534         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32535         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32536         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32537         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32538         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32539         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32540         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32541         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32542         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32543         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32544         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32545         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32546         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32549         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32550         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32551         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32552         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32553         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32554         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32555         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32556         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32558         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32559         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32560         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32561         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32562
32563 2010-03-27  Bruno Haible  <bruno@clisp.org>
32564
32565         Fix a compilation error on Cygwin with g++ >= 4.3.
32566         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32567         if it is undefined or if we alias it to chmod.
32568         (lstat): Don't warn about the use of this function if it is undefined
32569         or if we alias it to stat.
32570         Reported by Simon Josefsson.
32571
32572 2010-03-27  Bruno Haible  <bruno@clisp.org>
32573
32574         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32575         * modules/getlogin (configure.ac): Update.
32576
32577         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32578         * modules/getlogin_r (configure.ac): Update.
32579
32580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32582         * modules/inet_ntop (configure.ac): Update.
32583
32584         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32585         * modules/inet_pton (configure.ac): Update.
32586
32587         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32588         * modules/mbslen (configure.ac): Update.
32589
32590         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32591         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32592         * modules/forkpty (configure.ac): Update.
32593         * modules/openpty (configure.ac): Update.
32594
32595 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32596
32597         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32598         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32599
32600 2010-03-25  Eric Blake  <eblake@redhat.com>
32601
32602         maint: use pragma consistently across replacement headers
32603         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32604         * lib/dirent.in.h (system_header): Likewise.
32605         * lib/errno.in.h (system_header): Likewise.
32606         * lib/float.in.h (system_header): Likewise.
32607         * lib/getopt.in.h (system_header): Likewise.
32608         * lib/iconv.in.h (system_header): Likewise.
32609         * lib/inttypes.in.h (system_header): Likewise.
32610         * lib/langinfo.in.h (system_header): Likewise.
32611         * lib/locale.in.h (system_header): Likewise.
32612         * lib/math.in.h (system_header): Likewise.
32613         * lib/netdb.in.h (system_header): Likewise.
32614         * lib/netinet_in.in.h (system_header): Likewise.
32615         * lib/pty.in.h (system_header): Likewise.
32616         * lib/sched.in.h (system_header): Likewise.
32617         * lib/se-selinux.in.h (system_header): Likewise.
32618         * lib/search.in.h (system_header): Likewise.
32619         * lib/spawn.in.h (system_header): Likewise.
32620         * lib/stdarg.in.h (system_header): Likewise.
32621         * lib/stdint.in.h (system_header): Likewise.
32622         * lib/string.in.h (system_header): Likewise.
32623         * lib/strings.in.h (system_header): Likewise.
32624         * lib/sys_file.in.h (system_header): Likewise.
32625         * lib/sys_ioctl.in.h (system_header): Likewise.
32626         * lib/sys_socket.in.h (system_header): Likewise.
32627         * lib/sys_times.in.h (system_header): Likewise.
32628         * lib/sys_utsname.in.h (system_header): Likewise.
32629         * lib/sys_wait.in.h (system_header): Likewise.
32630         * lib/sysexits.in.h (system_header): Likewise.
32631         * lib/unistd.in.h (system_header): Likewise.
32632         * lib/wctype.in.h (system_header): Likewise.
32633
32634         arpa/inet: fix mingw compilation warning
32635         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32636         Reported by Matthew Bolte.
32637
32638 2010-03-25  Bruno Haible  <bruno@clisp.org>
32639
32640         Avoid collision between gnulib wrapper and libintl wrapper.
32641         * lib/printf.c (printf): Don't define if a printf wrapper is already
32642         defined in intl/printf.c.
32643         Reported by Michel Boaventura <michel@michelboaventura.com>.
32644
32645 2010-03-25  Bruno Haible  <bruno@clisp.org>
32646
32647         Use ANSI C.
32648         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32649
32650 2010-03-25  Bruno Haible  <bruno@clisp.org>
32651
32652         Minor formatting changes.
32653         * lib/acosl.c: Insert space before function argument list.
32654         * lib/argz.c: Likewise.
32655         * lib/asinl.c: Likewise.
32656         * lib/expl.c: Likewise.
32657         * lib/gen-uni-tables.c: Likewise.
32658         * lib/gettext.h: Likewise.
32659         * lib/glthread/lock.h: Likewise.
32660         * lib/tanl.c: Likewise.
32661         * lib/uniname/uniname.c: Likewise.
32662         * tests/test-idpriv-drop.c: Likewise.
32663         * tests/test-idpriv-droptemp.c: Likewise.
32664         * tests/test-lock.c: Likewise.
32665         * tests/test-tls.c: Likewise.
32666         * lib/argp-help.c: Insert space before function-like macro argument
32667         list.
32668         * lib/memcmp.c: Likewise.
32669         * tests/test-base64.c: Likewise.
32670         * lib/localename.c: Insert space before sizeof's argument list.
32671         * lib/safe-alloc.h: Likewise.
32672         * lib/file-set.h: Insert space before macro argument list.
32673         * tests/test-argp.c: Likewise.
32674         * lib/argp-namefrob.h: Insert space before function parameter list.
32675         * lib/getaddrinfo.c: Likewise.
32676         * lib/netdb.in.h: Likewise.
32677         * lib/parse-duration.h: Likewise.
32678         * lib/parse-duration.c: Likewise.
32679         * lib/poll.c: Likewise.
32680         * lib/select.c: Likewise.
32681         * lib/trim.h: Likewise.
32682         * tests/test-usleep.c: Likewise.
32683         * lib/ldexpl.c: Insert space before function parameter list and before
32684         function argument list.
32685         * lib/logl.c: Likewise.
32686         * lib/sqrtl.c: Likewise.
32687         * lib/trim.c: Likewise.
32688         * lib/cosl.c: Use GNU style indentation. Insert space before function
32689         argument list.
32690         * lib/sinl.c: Likewise.
32691         * lib/tsearch.c: Insert space after 'for'.
32692         Reported by Jim Meyering.
32693
32694 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32695
32696         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32697         config header before grepping, as it's not present before
32698         autoreconf/configure are run.  Reported by Simon Josefsson.
32699
32700 2010-03-23  Bruno Haible  <bruno@clisp.org>
32701
32702         pt_chown: Make it work with automake < 1.11.
32703         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32704         Reported by Simon Josefsson.
32705
32706 2010-03-23  Bruno Haible  <bruno@clisp.org>
32707
32708         pt_chown: Don't depend on GPLed modules.
32709         * lib/pt_chown.c: Don't include idpriv.h.
32710         (main): Don't drop privileges.
32711         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32712         Reported by Simon Josefsson.
32713
32714 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32715
32716         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32717         suggestions from karl@freefriends.org (Karl Berry).
32718
32719 2010-03-22  Eric Blake  <eblake@redhat.com>
32720
32721         gethostname: further tweaks
32722         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32723         are overriding gethostname.
32724         Suggested by Bruno Haible.
32725
32726 2010-03-21  Bruno Haible  <bruno@clisp.org>
32727
32728         Fix comments.
32729         * lib/forkpty.c (rpl_forkpty): Fix comment.
32730         * lib/openpty.c (rpl_openpty): Likewise.
32731         Reported by Eric Blake.
32732
32733 2010-03-22  Eric Blake  <eblake@redhat.com>
32734
32735         gethostname: fix build on mingw
32736         * lib/unistd.in.h (includes): Work around fact that mingw
32737         <winsock2.h> re-includes <unistd.h>, by avoiding any
32738         redeclarations if we are being included by <winsock2.h>.
32739         Reported by Matthias Bolte.
32740
32741 2010-03-21  Bruno Haible  <bruno@clisp.org>
32742
32743         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32744         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32745         modifications.
32746         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32747         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32748         provide the replacement.
32749         * modules/forkpty (Depends-on): Add openpty, login_tty.
32750         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32751         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32752         * doc/glibc-functions/forkpty.texi: More supported platforms.
32753         * config/srclist.txt: Add forkpty.c (commented).
32754
32755 2010-03-21  Bruno Haible  <bruno@clisp.org>
32756
32757         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32758         (Makefile.am): Verify that PTY_LIB is defined.
32759
32760         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32761
32762 2010-03-21  Bruno Haible  <bruno@clisp.org>
32763
32764         Tests for module 'login_tty'.
32765         * modules/login_tty-tests: New file.
32766         * tests/test-login_tty.c: New file.
32767
32768         New module 'login_tty'.
32769         * lib/login_tty.c: New file.
32770         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32771         * modules/login_tty: New file.
32772         * doc/glibc-functions/login_tty.texi: Mention the new module.
32773
32774 2010-03-21  Bruno Haible  <bruno@clisp.org>
32775
32776         login_tty: Documentation.
32777         * doc/glibc-functions/login_tty.texi: New file.
32778         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32779
32780 2010-03-21  Bruno Haible  <bruno@clisp.org>
32781
32782         pty: Consistent macro naming.
32783         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32784         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32785         * modules/pty (configure.ac): Update.
32786
32787 2010-03-21  Bruno Haible  <bruno@clisp.org>
32788
32789         Tests for openpty: Make stricter.
32790         * tests/test-openpty.c (main): Add test of canonical processing and
32791         erase.
32792         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32793
32794         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32795         * lib/openpty.c (openpty): New replacement function.
32796         * lib/pty.in.h: Include <termios.h>.
32797         (openpty): Update declaration. Add comments.
32798         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32799         is not declared, arrange to provide the replacement. Check for _getpty
32800         and posix_openpt.
32801         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32802         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32803         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32804         * modules/pty-tests (test_pty_c___LDADD): New variable.
32805         * doc/glibc-functions/openpty.texi: More supported platforms.
32806
32807 2010-03-21  Bruno Haible  <bruno@clisp.org>
32808
32809         setenv: Tweaks.
32810         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32811         the test program.
32812         * doc/posix-functions/setenv.texi: Update platforms list.
32813
32814 2010-03-21  Bruno Haible  <bruno@clisp.org>
32815
32816         New module 'unlockpt'.
32817         * lib/unlockpt.c: New file, from glibc with modifications.
32818         * m4/unlockpt.m4: New file.
32819         * modules/unlockpt: New file.
32820         * lib/stdlib.in.h (unlockpt): New declaration.
32821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32823         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32824         HAVE_UNLOCKPT.
32825         * doc/posix-functions/unlockpt.texi: Mention the new module.
32826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32827         * config/srclist.txt: Add unlockpt.c (commented).
32828
32829 2010-03-21  Jim Meyering  <meyering@redhat.com>
32830
32831         maint.mk: prohibit inclusion of "intprops.h" without use
32832         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32833
32834 2010-03-21  Bruno Haible  <bruno@clisp.org>
32835
32836         New module 'grantpt'.
32837         * lib/grantpt.c: New file, from glibc with modifications.
32838         * m4/grantpt.m4: New file.
32839         * modules/grantpt: New file.
32840         * lib/stdlib.in.h (grantpt): New declaration.
32841         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32842         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32843         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32844         HAVE_GRANTPT.
32845         * doc/posix-functions/grantpt.texi: Mention the new module.
32846         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32847         * config/srclist.txt: Add grantpt.c (commented).
32848
32849 2010-03-21  Bruno Haible  <bruno@clisp.org>
32850
32851         New module 'pt_chown'.
32852         * lib/pt_chown.c: New file, from glibc with modifications.
32853         * lib/pty-private.h: New file, from glibc with modifications.
32854         * modules/pt_chown: New file.
32855         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32856
32857 2010-03-21  Bruno Haible  <bruno@clisp.org>
32858
32859         Tests for module 'ptsname'.
32860         * modules/ptsname-tests: New file.
32861         * tests/test-ptsname.c: New file.
32862
32863         New module 'ptsname'.
32864         * lib/ptsname.c: New file, from glibc with modifications.
32865         * m4/ptsname.m4: New file.
32866         * modules/ptsname: New file.
32867         * lib/stdlib.in.h (ptsname): New declaration.
32868         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32869         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32870         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32871         HAVE_PTSNAME.
32872         * doc/posix-functions/ptsname.texi: Mention the new module.
32873         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32874         * config/srclist.txt: Add ptsname.c (commented).
32875
32876 2010-03-21  Bruno Haible  <bruno@clisp.org>
32877
32878         Tests for module 'ttyname_r'.
32879         * modules/ttyname_r-tests: New file.
32880         * tests/test-ttyname_r.c: New file.
32881
32882         New module 'ttyname_r'.
32883         * lib/ttyname_r.c: New file.
32884         * m4/ttyname_r.m4: New file.
32885         * modules/ttyname_r: New file.
32886         * lib/unistd.in.h (ttyname_r): New declaration.
32887         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32888         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32889         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32890         HAVE_TTYNAME_R.
32891         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32892         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32893
32894 2010-03-20  Bruno Haible  <bruno@clisp.org>
32895
32896         signal: Undefine macro definitions in C++ mode.
32897         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32898         sigfillset): Undefine macro definitions from the system header in C++
32899         mode.
32900         Reported by John W. Eaton <jwe@gnu.org>.
32901
32902 2010-03-20  Bruno Haible  <bruno@clisp.org>
32903
32904         Ensure no #include statements inside extern "C" { ... }.
32905         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32906         contain #include statements.
32907         * lib/time.in.h: Likewise.
32908
32909 2010-03-20  Bruno Haible  <bruno@clisp.org>
32910
32911         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32912         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32913         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32914         Reported by John W. Eaton <jwe@gnu.org>.
32915
32916 2010-03-20  Bruno Haible  <bruno@clisp.org>
32917
32918         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32919         Reported by Jim Meyering.
32920
32921 2010-03-20  Bruno Haible  <bruno@clisp.org>
32922
32923         pipe: Set errno upon failure.
32924         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32925         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32926         errno value in error message.
32927
32928 2010-03-20  Bruno Haible  <bruno@clisp.org>
32929             Jim Meyering  <meyering@redhat.com>
32930
32931         lchown: Avoid "unused variable" warning.
32932         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32933
32934 2010-03-20  Bruno Haible  <bruno@clisp.org>
32935
32936         Work around unlink() bug on MacOS X 10.5.6.
32937         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32938         attempting to unlink a parent directory.
32939         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32940         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32941         activate for the replacement function.
32942         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32943
32944 2010-03-20  Bruno Haible  <bruno@clisp.org>
32945
32946         Fix link errors on Solaris 8.
32947         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32948         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32949
32950 2010-03-19  Jim Meyering  <meyering@redhat.com>
32951
32952         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32953         The _LIBC implementation of build_range_exp correctly honors the
32954         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32955         However, the non-_LIBC implementation would ignore that syntax-bit
32956         flag and return REG_ERANGE unconditionally.
32957         This change makes it honor that flag.
32958         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32959         Make two pointer parameters "const".
32960         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32961         (parse_bracket_exp): Update caller.
32962
32963         regex.m4: correct the reversed range endpoint ([b-a]) test
32964         * m4/regex.m4: When requiring that [b-a] evoke failure,
32965         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32966         test pass once again for x86-based systems.
32967
32968 2010-03-19  Bruno Haible  <bruno@clisp.org>
32969
32970         scandir: Fix link error on Solaris 8.
32971         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32972         macros.
32973
32974 2010-03-19  Bruno Haible  <bruno@clisp.org>
32975
32976         getusershell: Fix documentation.
32977         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32978         module.
32979         * doc/glibc-functions/setusershell.texi: Likewise.
32980
32981         getusershell: Provide declaration, missing on Solaris 9.
32982         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32983         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32984         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32985         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32987         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32988         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32989         HAVE_GETUSERSHELL.
32990         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32991
32992 2010-03-19  Bruno Haible  <bruno@clisp.org>
32993
32994         wctype: Provide iswblank function.
32995         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32996         exists and is fine.
32997         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32998         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32999         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33000         * doc/posix-functions/iswblank.texi: Update.
33001
33002 2010-03-19  Bruno Haible  <bruno@clisp.org>
33003
33004         Tests of module 'pty' in C++ mode.
33005         * modules/pty-tests: New file.
33006         * tests/test-pty-c++.cc: New file.
33007         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33008
33009 2010-03-19  Eric Blake  <eblake@redhat.com>
33010
33011         logb: fix documentation
33012         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33013         1.5 declaration bug.
33014
33015         forkpty, openpty: prefer glibc's const-safe prototype
33016         * lib/forkpty.c (rpl_forkpty): New file.
33017         * lib/openpty.c (rpl_openpty): Likewise.
33018         * modules/forkpty (Files): Distribute it.
33019         * modules/openpty (Files): Likewise.
33020         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33021         check...
33022         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33023         replacement for for non-const BSD signature.
33024         * modules/pty (Makefile.am): Substitute witnesses.
33025         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33026         * tests/test-forkpty.c: Update signature check.
33027         * tests/test-openpty.c: Likewise.
33028         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33029         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33030
33031         forkpty, openpty: split functions into new modules
33032         * modules/pty (Makefile.am): Substitute new witnesses.
33033         (Libraries): Move library detection...
33034         * modules/forkpty: ...into new module.
33035         * modules/openpty: Another new module.
33036         * modules/pty-tests: Rename and split...
33037         * modules/forkpty-tests: ...to this...
33038         * modules/openpty-tests: ...and this.
33039         * tests/test-pty.c: Rename and split...
33040         * tests/test-forkpty.c: ...to this...
33041         * tests/test-openpty.c: ...and this.
33042         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33043         (gl_PTY): Split library searching...
33044         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33045         (gl_FORKPTY, gl_OPENPTY): New macros.
33046         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33047         * NEWS: Mention the split.
33048         * MODULES.html.sh (Misc): Document the modules.
33049         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33050         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33051
33052         pty: improve replacement header
33053         * lib/pty.in.h: New file.
33054         * modules/pty (Files): Ship it.
33055         (Makefile.am): Always build replacement.
33056         * m4/pty.m4: Rename...
33057         * m4/pty_h.m4: ...to this.
33058         (gl_PTY): Modernize setting of witness macros; update check of
33059         forkpty to take proper advantage of cache.
33060         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33061
33062         getopt: avoid compiler warning
33063         * lib/getopt.c (attribute_hidden): Remove unused macro.
33064
33065 2010-03-18  Bruno Haible  <bruno@clisp.org>
33066
33067         Fix link errors on Solaris 8.
33068         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33069         * modules/search-tests (test_search_c___LDADD): Likewise.
33070         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33071         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33072         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33073         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33074         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33075         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33076         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33077
33078 2010-03-18  Bruno Haible  <bruno@clisp.org>
33079
33080         Fix bug introduced on 2010-03-14.
33081         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33082         (gl_SPAWN_H): Require it.
33083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33084         Reported by Simon Josefsson.
33085
33086 2010-03-18  Bruno Haible  <bruno@clisp.org>
33087
33088         Fix typo introduced on 2009-12-31.
33089         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33090         posix_spawn_file_actions_adddup2.
33091
33092 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33093         and Eric Blake  <eblake@redhat.com>
33094
33095         test-vc-list-files-git: make more robust
33096         * tests/test-vc-list-files-git.sh: Unset problematic environment
33097         variables.  Chain commands together.
33098
33099 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33100
33101         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33102         `AC_CHECK_DECL' invocation.
33103
33104 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33105
33106         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33107         appears before executable statements. Suggested by Petr Sumbera
33108         <Petr.Sumbera@Sun.COM>.
33109
33110 2010-03-14  Bruno Haible  <bruno@clisp.org>
33111
33112         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33113         portability problems. Instead use a simpler test.
33114         (main): Check that invalid arguments are rejected only on Linux.
33115
33116 2010-03-14  Bruno Haible  <bruno@clisp.org>
33117
33118         Fix bug introduced on 2009-12-31.
33119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33120         gl_PREREQ_SYS_H_WINSOCK2 always.
33121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33122         SYS_SOCKET_H variable.
33123         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33124         Update comments.
33125         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33126         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33127         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33128         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33129         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33130
33131 2010-03-14  Bruno Haible  <bruno@clisp.org>
33132
33133         Fix values returned by sinl, cosl.
33134         * lib/trigl.h: Add specification comments.
33135         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33136         that combines the values from the precomputed table with the values of
33137         the Chebyshev polynomials.
33138
33139 2010-03-14  Bruno Haible  <bruno@clisp.org>
33140
33141         Fix compilation error when modules 'posix_spawn[p]' are not used.
33142         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33144
33145 2010-03-14  Bruno Haible  <bruno@clisp.org>
33146
33147         Fix compilation error on mingw when module 'time_r' is not used.
33148         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33149         is 1.
33150         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33151         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33152         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33154
33155 2010-03-14  Bruno Haible  <bruno@clisp.org>
33156
33157         Fix compilation error with Sun C.
33158         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33159         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33160         instead of GCC specific ULONG_LONG_MAX.
33161         * lib/xstrtoll.c: Likewise.
33162         * lib/xstrtoull.c: Likewise.
33163
33164 2010-03-13  Bruno Haible  <bruno@clisp.org>
33165
33166         Allow the user to disable C++ code and tests.
33167         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33168         (gl_PROG_ANSI_CXX): Require it.
33169
33170 2010-03-13  Bruno Haible  <bruno@clisp.org>
33171
33172         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33173         cases.
33174
33175 2010-03-13  Bruno Haible  <bruno@clisp.org>
33176
33177         Test that gnulib does not break the standard C++ headers.
33178         * tests/test-locale-c++2.cc: New file.
33179         * modules/locale-tests (Files): Add it.
33180         (Makefile.am): Compile it for test-locale-c++.
33181         * tests/test-math-c++2.cc: New file.
33182         * modules/math-tests (Files): Add it.
33183         (Makefile.am): Compile it for test-math-c++.
33184         * tests/test-signal-c++2.cc: New file.
33185         * modules/signal-tests (Files): Add it.
33186         (Makefile.am): Compile it for test-signal-c++.
33187         * tests/test-stdio-c++2.cc: New file.
33188         * modules/stdio-tests (Files): Add it.
33189         (Makefile.am): Compile it for test-stdio-c++.
33190         * tests/test-stdlib-c++2.cc: New file.
33191         * modules/stdlib-tests (Files): Add it.
33192         (Makefile.am): Compile it for test-stdlib-c++.
33193         * tests/test-string-c++2.cc: New file.
33194         * modules/string-tests (Files): Add it.
33195         (Makefile.am): Compile it for test-string-c++.
33196         * tests/test-time-c++2.cc: New file.
33197         * modules/time-tests (Files): Add it.
33198         (Makefile.am): Compile it for test-time-c++.
33199         Reported by John W. Eaton <jwe@gnu.org>.
33200
33201 2010-03-13  Bruno Haible  <bruno@clisp.org>
33202
33203         * gnulib-tool (func_usage): Clarify which options are available for
33204         --create-testdir and --create-megatestdir.
33205
33206 2010-03-13  Bruno Haible  <bruno@clisp.org>
33207
33208         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33209         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33210         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33211         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33212         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33213         when appropriate.
33214         Reported by Jim Meyering.
33215
33216 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33217
33218         * gnulib-tool (func_import): Explain origin of code.
33219
33220 2010-03-12  Bruno Haible  <bruno@clisp.org>
33221
33222         Fix problem with automake's definition of CXXLINK.
33223         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33224         Reported by Simon Josefsson and Ludovic Courtès.
33225
33226 2010-03-12  Bruno Haible  <bruno@clisp.org>
33227
33228         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33229         stable releases.
33230
33231 2010-03-11  Bruno Haible  <bruno@clisp.org>
33232
33233         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33234         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33235         whether the system provides one variant or multiple variants of the
33236         function.
33237         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33238         C++ compilers.
33239         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33240         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33241         Reported by Jim Meyering.
33242
33243 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33244
33245         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33246
33247 2010-03-08  Bruno Haible  <bruno@clisp.org>
33248
33249         gnulib-tool: Add support for --libtool in --create-testdir.
33250         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33251         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33252
33253 2010-03-08  Eric Blake  <eblake@redhat.com>
33254
33255         gnulib-tool.texi: mention possibility of git submodule
33256         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33257         submodules.
33258         * doc/.gitignore: Ignore another generated file.
33259
33260 2010-03-08  Karl Berry  <karl@gnu.org>
33261
33262         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33263         of committing gnulib files while skipping others.
33264
33265 2010-03-07  Bruno Haible  <bruno@clisp.org>
33266
33267         Tests of module 'wctype' in C++ mode.
33268         * tests/test-wctype-c++.cc: New file.
33269         * modules/wctype-tests (Files): Add it and tests/signature.h.
33270         (Depends-on): Add ansi-c++-opt.
33271         (Makefile.am): Arrange to compile and run test-wctype-c++.
33272
33273         Tests of module 'wchar' in C++ mode.
33274         * tests/test-wchar-c++.cc: New file.
33275         * modules/wchar-tests (Files): Add it and tests/signature.h.
33276         (Depends-on): Add ansi-c++-opt.
33277         (Makefile.am): Arrange to compile and run test-wchar-c++.
33278         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33279         gl_MODULE_INDICATOR.
33280
33281         Tests of module 'unistd' in C++ mode.
33282         * tests/test-unistd-c++.cc: New file.
33283         * modules/unistd-tests (Files): Add it and tests/signature.h.
33284         (Depends-on): Add ansi-c++-opt.
33285         (Makefile.am): Arrange to compile and run test-unistd-c++.
33286         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33287         gl_MODULE_INDICATOR.
33288
33289         Tests of module 'time' in C++ mode.
33290         * tests/test-time-c++.cc: New file.
33291         * modules/time-tests (Files): Add it and tests/signature.h.
33292         (Depends-on): Add ansi-c++-opt.
33293         (Makefile.am): Arrange to compile and run test-time-c++.
33294         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33295
33296         Tests of module 'sys_time' in C++ mode.
33297         * tests/test-sys_time-c++.cc: New file.
33298         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33299         (Depends-on): Add ansi-c++-opt.
33300         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33301         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33302         gl_MODULE_INDICATOR.
33303
33304         Tests of module 'sys_stat' in C++ mode.
33305         * tests/test-sys_stat-c++.cc: New file.
33306         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33307         (Depends-on): Add ansi-c++-opt.
33308         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33309         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33310         gl_MODULE_INDICATOR.
33311
33312         Tests of module 'sys_socket' in C++ mode.
33313         * tests/test-sys_socket-c++.cc: New file.
33314         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33315         (Depends-on): Add ansi-c++-opt.
33316         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33317         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33318         gl_MODULE_INDICATOR.
33319
33320         Tests of module 'sys_select' in C++ mode.
33321         * tests/test-sys_select-c++.cc: New file.
33322         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33323         (Depends-on): Add ansi-c++-opt.
33324         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33325         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33326         gl_MODULE_INDICATOR.
33327
33328         Tests of module 'sys_ioctl' in C++ mode.
33329         * tests/test-sys_ioctl-c++.cc: New file.
33330         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33331         (Depends-on): Add ansi-c++-opt.
33332         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33334         gl_MODULE_INDICATOR.
33335
33336         Tests of module 'string' in C++ mode.
33337         * tests/test-string-c++.cc: New file.
33338         * modules/string-tests (Files): Add it and tests/signature.h.
33339         (Depends-on): Add ansi-c++-opt.
33340         (Makefile.am): Arrange to compile and run test-string-c++.
33341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33342         gl_MODULE_INDICATOR.
33343
33344         Tests of module 'stdlib' in C++ mode.
33345         * tests/test-stdlib-c++.cc: New file.
33346         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33347         (Depends-on): Add ansi-c++-opt.
33348         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33349         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33350         gl_MODULE_INDICATOR.
33351
33352         Tests of module 'stdio' in C++ mode.
33353         * tests/test-stdio-c++.cc: New file.
33354         * modules/stdio-tests (Files): Add it and tests/signature.h.
33355         (Depends-on): Add ansi-c++-opt.
33356         (Makefile.am): Arrange to compile and run test-stdio-c++.
33357         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33358         gl_MODULE_INDICATOR.
33359
33360         Tests of module 'spawn' in C++ mode.
33361         * tests/test-spawn-c++.cc: New file.
33362         * modules/spawn-tests (Files): Add it and tests/signature.h.
33363         (Depends-on): Add ansi-c++-opt.
33364         (Makefile.am): Arrange to compile and run test-spawn-c++.
33365         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33366         gl_MODULE_INDICATOR.
33367
33368         Tests of module 'signal' in C++ mode.
33369         * tests/test-signal-c++.cc: New file.
33370         * modules/signal-tests (Files): Add it and tests/signature.h.
33371         (Depends-on): Add ansi-c++-opt.
33372         (Makefile.am): Arrange to compile and run test-signal-c++.
33373         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33374         gl_MODULE_INDICATOR.
33375
33376         Tests of module 'search' in C++ mode.
33377         * tests/test-search-c++.cc: New file.
33378         * modules/search-tests (Files): Add it and tests/signature.h.
33379         (Depends-on): Add ansi-c++-opt.
33380         (Makefile.am): Arrange to compile and run test-search-c++.
33381         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33382         gl_MODULE_INDICATOR.
33383
33384         Tests of module 'math' in C++ mode.
33385         * tests/test-math-c++.cc: New file.
33386         * modules/math-tests (Files): Add it and tests/signature.h.
33387         (Depends-on): Add ansi-c++-opt.
33388         (Makefile.am): Arrange to compile and run test-math-c++.
33389         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33390
33391         Tests of module 'locale' in C++ mode.
33392         * tests/test-locale-c++.cc: New file.
33393         * modules/locale-tests (Files): Add it and tests/signature.h.
33394         (Depends-on): Add ansi-c++-opt.
33395         (Makefile.am): Arrange to compile and run test-locale-c++.
33396         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33397         gl_MODULE_INDICATOR.
33398
33399         Tests of module 'langinfo' in C++ mode.
33400         * tests/test-langinfo-c++.cc: New file.
33401         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33402         (Depends-on): Add ansi-c++-opt.
33403         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33404         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33405         gl_MODULE_INDICATOR.
33406
33407         Tests of module 'iconv-h' in C++ mode.
33408         * tests/test-iconv-h-c++.cc: New file.
33409         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33410         (Depends-on): Add ansi-c++-opt.
33411         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33412
33413         Tests of module 'glob' in C++ mode.
33414         * tests/test-glob-c++.cc: New file.
33415         * modules/glob-tests (Files): Add it.
33416         (Depends-on): Add ansi-c++-opt.
33417         (Makefile.am): Arrange to compile and run test-glob-c++.
33418
33419         Tests of module 'fcntl-h' in C++ mode.
33420         * tests/test-fcntl-h-c++.cc: New file.
33421         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33422         (Depends-on): Add ansi-c++-opt.
33423         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33424         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33425         gl_MODULE_INDICATOR.
33426
33427         Tests of module 'dirent' in C++ mode.
33428         * tests/test-dirent-c++.cc: New file.
33429         * modules/dirent-tests (Files): Add it and tests/signature.h.
33430         (Depends-on): Add ansi-c++-opt.
33431         (Makefile.am): Arrange to compile and run test-dirent-c++.
33432         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33433         gl_MODULE_INDICATOR.
33434
33435         New module 'ansi-c++-opt'.
33436         * modules/ansi-c++-opt: New file.
33437         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33438
33439         Document C++ namespace mode.
33440         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33441
33442         wctype: Avoid #define replacements in C++ mode.
33443         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33444         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33445         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33446         In C++, define a namespaced alias symbol.
33447         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33448         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33449         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33450         rule.
33451
33452         wchar: Avoid #define replacements in C++ mode.
33453         * lib/wchar.in.h: Include c++defs.h.
33454         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33455         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33456         symbol.
33457         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33458         * modules/wchar (Depends-on): Add c++defs.
33459         (Makefile.am): Update wchar.h rule.
33460
33461         unistd: Avoid #define replacements in C++ mode.
33462         * lib/unistd.in.h: Include c++defs.h.
33463         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33464         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33465         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33466         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33467         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33468         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33469         symbol.
33470         (environ): Update.
33471         * modules/unistd (Depends-on): Add c++defs.
33472         (Makefile.am): Update unistd.h rule.
33473
33474         time: Avoid #define replacements in C++ mode.
33475         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33476         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33477         define a namespaced alias symbol.
33478         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33479         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33480         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33481         * modules/time (Depends-on): Add c++defs, warn-on-use.
33482         (Makefile.am): Update time.h rule.
33483         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33484         * modules/nanosleep (configure.ac): Likewise.
33485         * modules/strptime (configure.ac): Likewise.
33486         * modules/timegm (configure.ac): Likewise.
33487
33488         sys_time: Avoid #define replacements in C++ mode.
33489         * lib/sys_time.in.h: Include c++defs.h.
33490         (gettimeofday): In C++, define a namespaced alias symbol.
33491         * modules/sys_time (Depends-on): Add c++defs.
33492         (Makefile.am): Update sys/time.h rule.
33493
33494         sys_stat: Avoid #define replacements in C++ mode.
33495         * lib/sys_stat.in.h: Include c++defs.h.
33496         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33497         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33498         namespaced alias symbol.
33499         In C++, define a namespaced alias symbol.
33500         * modules/sys_stat (Depends-on): Add c++defs.
33501         (Makefile.am): Update sys/stat.h rule.
33502
33503         sys_socket: Avoid #define replacements in C++ mode.
33504         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33505         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33506         definitions also when the system has a <sys/socket.h>.
33507         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33508         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33509         In C++, define a namespaced alias symbol.
33510         * modules/sys_socket (Depends-on): Add c++defs.
33511         (Makefile.am): Update sys/socket.h rule.
33512
33513         sys_select: Avoid #define replacements in C++ mode.
33514         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33515         definitions also when the system has a <sys/select.h>.
33516         (select): In C++, define a namespaced alias symbol.
33517         * modules/sys_select (Depends-on): Add c++defs.
33518         (Makefile.am): Update sys/select.h rule.
33519
33520         sys_ioctl: Avoid #define replacements in C++ mode.
33521         * lib/sys_ioctl.in.h: Include c++defs.h.
33522         (ioctl): In C++, define a namespaced alias symbol.
33523         * modules/sys_ioctl (Depends-on): Add c++defs.
33524         (Makefile.am): Update sys/ioctl.h rule.
33525
33526         string: Avoid #define replacements in C++ mode.
33527         * lib/string.in.h: Include c++defs.h.
33528         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33529         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33530         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33531         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33532         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33533         * modules/string (Depends-on): Add c++defs.
33534         (Makefile.am): Update string.h rule.
33535
33536         stdlib: Avoid #define replacements in C++ mode.
33537         * lib/stdlib.in.h: Include c++defs.h.
33538         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33539         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33540         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33541         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33542         symbol.
33543         * modules/stdlib (Depends-on): Add c++defs.
33544         (Makefile.am): Update stdlib.h rule.
33545
33546         stdio: Avoid #define replacements in C++ mode.
33547         * lib/stdio.in.h: Include c++defs.h.
33548         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33549         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33550         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33551         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33552         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33553         namespaced alias symbol.
33554         * modules/stdio (Depends-on): Add c++defs.
33555         (Makefile.am): Update stdio.h rule.
33556
33557         spawn: Avoid #define replacements in C++ mode.
33558         * lib/spawn.in.h: Include c++defs.h.
33559         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33560         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33561         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33562         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33563         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33564         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33565         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33566         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33567         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33568         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33569         In C++, define a namespaced alias symbol.
33570         * modules/spawn (Depends-on): Add c++defs.
33571         (Makefile.am): Update spawn.h rule.
33572
33573         signal: Avoid #define replacements in C++ mode.
33574         * lib/signal.in.h: Include c++defs.h.
33575         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33576         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33577         namespaced alias symbol.
33578         * modules/signal (Depends-on): Add c++defs.
33579         (Makefile.am): Update signal.h rule.
33580
33581         search: Avoid #define replacements in C++ mode.
33582         * lib/search.in.h: Include c++defs.h.
33583         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33584         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33585         symbol.
33586         * modules/search (Depends-on): Add c++defs.
33587         (Makefile.am): Update search.h rule.
33588
33589         math: Avoid #define replacements in C++ mode.
33590         * lib/math.in.h: Include c++defs.h.
33591         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33592         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33593         trunc, truncl): In C++, define a namespaced alias symbol.
33594         * modules/math (Depends-on): Add c++defs.
33595         (Makefile.am): Update math.h rule.
33596
33597         locale: Avoid #define replacements in C++ mode.
33598         * lib/locale.in.h: Include c++defs.h.
33599         (duplocale): In C++, define a namespaced alias symbol.
33600         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33602         * modules/locale (Depends-on): Add c++defs.
33603         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33604
33605         langinfo: Avoid #define replacements in C++ mode.
33606         * lib/langinfo.in.h: Include c++defs.h.
33607         (nl_langinfo): In C++, define a namespaced alias symbol.
33608         * modules/langinfo (Depends-on): Add c++defs.
33609         (Makefile.am): Update langinfo.h rule.
33610
33611         iconv-h: Avoid #define replacements in C++ mode.
33612         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33613         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33614         symbol.
33615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33616         whenever iconv is present.
33617         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33618         (Makefile.am): Update iconv.h rule.
33619
33620         glob: Avoid #define replacements in C++ mode.
33621         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33622         (_gl_glob_errfunc_fn): New type.
33623         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33624         symbol.
33625         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33626         (Makefile.am): Update glob.h rule.
33627
33628         fcntl-h: Avoid #define replacements in C++ mode.
33629         * lib/fcntl.in.h: Include c++defs.h.
33630         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33631         * modules/fcntl-h (Depends-on): Add c++defs.
33632         (Makefile.am): Update fcntl.h rule.
33633
33634         dirent: Avoid #define replacements in C++ mode.
33635         * lib/dirent.in.h: Include c++defs.h.
33636         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33637         namespaced alias symbol.
33638         (dirfd): Update declaration.
33639         * modules/dirent (Depends-on): Add c++defs.
33640         (Makefile.am): Update dirent.h rule.
33641
33642         ctype: Make it usable in C++ code.
33643         * lib/ctype.in.h: Include c++defs.h.
33644         (isblank): Declare as extern "C".
33645         * modules/ctype (Depends-on): Add c++defs.
33646         (Makefile.am): Update ctype.h rule.
33647
33648         New module 'c++defs'.
33649         * modules/c++defs: New file.
33650         * build-aux/c++defs.h: New file.
33651         Reported by John W. Eaton <jwe@gnu.org>.
33652
33653 2010-03-07  Bruno Haible  <bruno@clisp.org>
33654
33655         logb: Provide missing declaration for Cygwin.
33656         * lib/math.in.h (logb): New declaration.
33657         * m4/logb.m4: New file.
33658         * modules/logb (Files): Add m4/logb.m4.
33659         (Depends-on): Add math.
33660         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33661         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33663         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33664         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33665
33666 2010-03-07  Bruno Haible  <bruno@clisp.org>
33667
33668         Fix test-cond link error.
33669         * tests/test-cond.c: Include <stdio.h>.
33670
33671 2010-03-07  Bruno Haible  <bruno@clisp.org>
33672
33673         Fix test-dirent-safer link error.
33674         * modules/dirent-safer-tests (Makefile.am): Define
33675         test_dirent_safer_LDADD.
33676
33677 2010-03-07  Bruno Haible  <bruno@clisp.org>
33678
33679         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33680         among default module list.
33681
33682 2010-03-07  Bruno Haible  <bruno@clisp.org>
33683
33684         Fix link error on platforms with GNU libiconv.
33685         * modules/unistr/u8-strcoll-tests (Makefile): Define
33686         test_u8_strcoll_LDADD.
33687         * modules/unistr/u16-strcoll-tests (Makefile): Define
33688         test_u16_strcoll_LDADD.
33689         * modules/unistr/u32-strcoll-tests (Makefile): Define
33690         test_u32_strcoll_LDADD.
33691
33692 2010-03-07  Bruno Haible  <bruno@clisp.org>
33693
33694         Use POSIX declarations for socket functions.
33695         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33696         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33697         rpl_sendto): Change declaration to match POSIX.
33698         * lib/connect.c (rpl_connect): Likewise.
33699         * lib/accept.c (rpl_accept): Likewise.
33700         * lib/bind.c (rpl_bind): Likewise.
33701         * lib/getpeername.c (rpl_getpeername): Likewise.
33702         * lib/getsockname.c (rpl_getsockname): Likewise.
33703         * lib/recv.c (rpl_recv): Likewise.
33704         * lib/send.c (rpl_send): Likewise.
33705         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33706         * lib/sendto.c (rpl_sendto): Likewise.
33707
33708 2010-03-06  Bruno Haible  <bruno@clisp.org>
33709
33710         Clarify access, euidaccess, faccessat.
33711         * doc/posix-functions/faccessat.texi: Mention security problem under
33712         "Other problems", not "Portability problems".
33713         * doc/posix-functions/access.texi: Likewise. Mention a related security
33714         problem.
33715         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33716         * lib/euidaccess.c: Add comments about platforms.
33717         * lib/unistd.in.h (access, euidaccess): Add warnings.
33718
33719 2010-03-07  Bruno Haible  <bruno@clisp.org>
33720
33721         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33722         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33723         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33724         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33725         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33726         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33727         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33728         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33729         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33730         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33731         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33732         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33733         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33734         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33735         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33736         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33737         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33738         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33739         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33740         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33741         Likewise.
33742         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33743         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33744         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33745         Likewise.
33746         * tests/test-spawn.c (main): Make it work when
33747         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33748
33749 2010-03-07  Bruno Haible  <bruno@clisp.org>
33750
33751         Fix incorrect Makefile.am generation in German locale.
33752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33753         Execute sed command with character range in C locale.
33754
33755 2010-03-06  Bruno Haible  <bruno@clisp.org>
33756
33757         Tests for module 'iconv-h'.
33758         * modules/iconv-h-tests: New file.
33759         * tests/test-iconv-h.c: New file.
33760
33761         New module 'iconv-h'.
33762         * modules/iconv-h: New file.
33763         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33764         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33765         (configure.ac): Remove gl_ICONV_H.
33766         (Makefile.am): Remove rule for iconv.h.
33767
33768 2010-03-06  Bruno Haible  <bruno@clisp.org>
33769
33770         More consistent naming of *.m4 files.
33771         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33772         * modules/wctype (Files): Update.
33773
33774         More consistent naming of *.m4 files.
33775         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33776         * modules/wchar (Files): Update.
33777
33778 2010-03-06  Jim Meyering  <meyering@redhat.com>
33779
33780         euidaccess: relax license to LGPLv2+
33781         * modules/euidaccess (License): Relax to LGPLv2+.
33782
33783 2010-03-06  Bruno Haible  <bruno@clisp.org>
33784
33785         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33786         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33787         (Makefile.am): Augment lib_SOURCES instead.
33788
33789 2010-03-04  Jim Meyering  <meyering@redhat.com>
33790
33791         utime: remove obsolete module
33792         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33793         unnecessary for years, and has been marked as obsolete for 10 months.
33794         * modules/utime: Remove file.
33795         * lib/utime.c: Remove file.
33796         * m4/utime.m4: Remove file.
33797         * m4/utimes-null.m4: Remove file.
33798         * doc/posix-functions/utime.texi (utime): Remove reference to
33799         the module.  Move the sole "fixed by gnulib" item into the
33800         "problems not fixed by Gnulib" list.
33801         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33802
33803 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33804
33805         * modules/exit (License): Relax license to LGPLv2+.
33806         (Status): Mark as obsolete.
33807         * NEWS: Mention deprecated 'exit' module.
33808         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33809         of now obsolete 'exit'.
33810
33811 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33812
33813         fts-lgpl: remove unused module
33814         * modules/fts-lgpl: Remove.
33815         * MODULES.html.sh (func_all_modules): Adjust.
33816         * check-module (find_included_lib_files): Adjust.
33817         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33818
33819 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33820
33821         copy-acl: enhance Solaris ACL error handling
33822         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33823         * lib/set-mode-acl.c (qset_acl): Likewise.
33824
33825 2010-03-02  Bruno Haible  <bruno@clisp.org>
33826
33827         spawn: Don't override the system defined values on FreeBSD 8.
33828         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33829         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33830         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33831         if HAVE_POSIX_SPAWN is 1.
33832         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33833
33834 2010-03-01  Bruno Haible  <bruno@clisp.org>
33835
33836         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33837         regarding Automake.
33838
33839 2010-02-25  Bruno Haible  <bruno@clisp.org>
33840
33841         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33842         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33843         setting, not afterwards.
33844         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33845
33846 2010-02-24  Eric Blake  <eblake@redhat.com>
33847
33848         bootstrap, git-version-gen: use timestamp
33849         * build-aux/git-version-gen (scriptversion): Force UTC.
33850         * build-aux/bootstrap (scriptversion): New variable.
33851
33852         bootstrap: allow older git
33853         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33854         older than 1.6.4.  Requested by the libvirt project.
33855
33856 2010-02-23  Eric Blake  <eblake@redhat.com>
33857
33858         warn-on-use: work with old autoconf
33859         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33860         AS_VAR semantics of autoconf 2.60.
33861         Reported by Bruno Haible.
33862
33863         bootstrap: improve some comments
33864         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33865         clarification comments.
33866
33867         gettimeofday: provide correct function
33868         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33869         when replacement is declared, otherwise provide gettimeofday.
33870         Reported by Michael Goffioul.
33871
33872 2010-02-23  Jim Meyering  <meyering@redhat.com>
33873
33874         lib-ignore: relax license to "unlimited", not LGPLv2+
33875         * modules/lib-ignore (License): Relax to "unlimited".
33876
33877 2010-02-23  Jim Meyering  <meyering@redhat.com>
33878
33879         lib-ignore: relax license to LGPLv2+
33880         * modules/lib-ignore (License): Relax to LGPLv2+.
33881
33882 2010-02-22  Eric Blake  <eblake@redhat.com>
33883
33884         lseek: avoid bash 3.2 broken pipe bug
33885         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33886         warning from bash 3.2.
33887         Reported by Ben Pfaff, with analysis from Bruno Haible.
33888
33889         bootstrap: support non-FSF copyright holder
33890         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33891         bootstrap.conf override of COPYRIGHT_HOLDER.
33892         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33893
33894         bootstrap: interoperate with gettext 0.14.1
33895         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33896
33897         bootstrap: allow for alternate submodule location
33898         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33899         hardcoding submodule location.
33900         (gnulib_mk): Allow direct use of Makefile.am.
33901
33902         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33903         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33904         rather than reconfiguring where the submodule points.
33905
33906         gettimeofday: restore support for platforms that lack function
33907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33908         replacement if function is missing.
33909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33910         * modules/sys_time (Makefile.am): Substitute it.
33911         * lib/sys_time.in.h (gettimeofday): Check it.
33912         Reported by Michael Goffioul.
33913
33914 2010-02-21  Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/stdio.in.h (obstack_printf): Fix typo.
33917
33918 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33919
33920         vc-list-files: use bzr ls's -R option
33921         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33922         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33923
33924 2010-02-21  Jim Meyering  <meyering@redhat.com>
33925
33926         init.sh: fix EXEEXT shims to work also for names like test-prog
33927         * tests/init.sh: Re-exec a better shell, when needed.
33928         If the current shell lacks support for posix $(...), an init.sh-using
33929         test will now try to find a shell that supports that.  If EXEEXT is
33930         nonempty, we also require support for hyphen-in-alias-name and shell
33931         substitutions like ${var#glob}.  Failure to find such a shell results
33932         in a skipped test.
33933
33934 2010-02-21  Bruno Haible  <bruno@clisp.org>
33935
33936         Really work around around "broken pipe" error message from bash 3.2.
33937         * gnulib-tool (func_reset_sigpipe): Remove function.
33938         (echo): In bash 3.2, define to a function that uses printf.
33939         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33940
33941 2010-02-20  Bruno Haible  <bruno@clisp.org>
33942
33943         Restore support for automake 1.9.6 with autoconf 2.61.
33944         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33945         Reported by James Youngman <jay@gnu.org>.
33946
33947 2010-02-20  Bruno Haible  <bruno@clisp.org>
33948
33949         Improve *printf warning condition.
33950         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33951         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33952         and the function is overridden due to SIGPIPE emulation.
33953
33954 2010-02-20  Bruno Haible  <bruno@clisp.org>
33955
33956         * lib/stdio.in.h: Tweak comments.
33957
33958 2010-02-19  Bruno Haible  <bruno@clisp.org>
33959
33960         Make it easier to find modules. New gnulib-tool option '--find'.
33961         * gnulib-tool: New option --find.
33962         (func_usage): Document it.
33963         (func_sanitize_modulelist): New function, extracted from
33964         func_all_modules.
33965         (func_all_modules): Invoke it.
33966         * doc/gnulib-tool.texi (Which modules?): New node.
33967
33968 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33969
33970         * lib/sys_select.in.h: Provide select replacement even if
33971         sys/select.h exists on a system, for Interix.
33972
33973 2010-02-18  Jim Meyering  <meyering@redhat.com>
33974
33975         init.sh: don't use $(...) just yet
33976         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33977         to accommodate e.g., Solaris' /bin/sh.
33978
33979 2010-02-17  Bruno Haible  <bruno@clisp.org>
33980
33981         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33982         Reported by Ludovic Courtès <ludo@gnu.org>.
33983
33984 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33985
33986         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33987         linking with -lintl.
33988
33989 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33990
33991         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33992         if not provided by the system's netdb.h.  Reported by
33993         ludo@gnu.org (Ludovic Courtès).
33994
33995 2010-02-15  Jim Meyering  <meyering@redhat.com>
33996
33997         init.sh: improve portability and efficiency
33998         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33999         "dummy" in a for loop.
34000         Use '!', not '^' to select the complement of a character set used
34001         in a "case" statement.
34002         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34003         Suggestions from Eric Blake.
34004
34005         init.sh: automatically accommodate programs with the .exe suffix
34006         Automatically arrange for an invocation of "prog" to execute the
34007         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34008         may use the simpler "prog", yet still work when built on a system
34009         that requires specifying the added suffix.
34010         Do this by constructing a function named "prog" that invokes
34011         "prog.exe" for each .exe file in selected directories.
34012         * tests/init.sh (find_exe_basenames_): New function.
34013         (create_exe_shim_functions_): New function.
34014         (path_prepend_): Use it.
34015
34016         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34017         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34018         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34019
34020 2010-02-14  Jim Meyering  <meyering@redhat.com>
34021
34022         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34023         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34024         (sc_prohibit_hash_pjw_without_use): New rule.
34025
34026         maint.mk: allow the default upload destination dir to be overridden
34027         * top/maint.mk (upload_dest_dir_): Define with a default that
34028         preserves the status quo.
34029         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34030         Reported by Peter Simons.
34031
34032         maint.mk: prohibit inclusion of "hash.h" without_use
34033         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34034
34035 2010-02-10  Jim Meyering  <meyering@redhat.com>
34036
34037         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34038         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34039
34040 2010-02-09  Eric Blake  <ebb9@byu.net>
34041         and Bruno Haible  <bruno@clisp.org>
34042
34043         obstack-printf-posix: ensure declaration
34044         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34045         extracted from gl_FUNC_OBSTACK_PRINTF.
34046         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34047         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34048         Likewise.
34049         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34050         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34051         0.
34052
34053 2010-02-08  Bruno Haible  <bruno@clisp.org>
34054
34055         gnulib-tool: Fix typo in 2010-02-07 commit.
34056         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34057         Reported by Eric Blake.
34058
34059 2010-02-07  Bruno Haible  <bruno@clisp.org>
34060
34061         gnulib-tool: Fix up caching patches.
34062         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34063         option --no-cache. Use associative arrays when supported by the shell.
34064         (sed_comments): New variable.
34065         (modcache): Renamed from do_cache.
34066         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34067         abbreviate unnecessarily.
34068         (have_associative): New variable.
34069         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34070         way also for ksh and zsh.
34071         (func_init_sed_convert_to_cache_statements): New function, extracted
34072         from func_cache_lookup_module. Add support for associative arrays.
34073         Don't set the c_MODULE_cached variable here. Ignore all lines before
34074         the first field header. Remove only the final newline, not all trailing
34075         newlines. Support empty fields correctly. Limit the use of 'eval' to
34076         assignments.
34077         (func_get_description, func_get_status, func_get_notice,
34078         func_get_applicability, func_get_filelist, func_get_dependencies,
34079         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34080         func_get_automake_snippet, func_get_include_directive,
34081         func_get_link_directive, func_get_license, func_get_maintainer):
34082         Update documentation. List the unoptimized code first. Add support for
34083         associative arrays. Limit the use of 'eval' to assignments.
34084         (func_get_applicability): Undo stylistic pessimisations.
34085         (func_get_automake_snippet, func_get_include_directive): Reduce code
34086         duplication.
34087         (func_modules_transitive_closure, func_modules_add_dummy,
34088         func_modules_notice, func_modules_to_filelist, func_add_file,
34089         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34090         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34091         func_create_testdir, func_create_megatestdir): Update documentation.
34092
34093 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34094
34095         * gnulib-tool (func_cache_lookup_module): Store the module name
34096         belonging to the cache variable; error out if two different
34097         module names map to the same cache variable name.
34098
34099 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34100
34101         gnulib-tool: Make caching optional.
34102         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34103         Update matching short versions of --no-changelog.
34104         (func_usage): Update.
34105         (sed_extract_cache_prog): Renamed from ...
34106         (sed_extract_prog): ... this; revert to old extraction script.
34107         (func_get_description, func_get_status)
34108         (func_get_notice, func_get_applicability, func_get_filelist)
34109         (func_get_dependencies, func_get_autoconf_early_snippet)
34110         (func_get_autoconf_snippet, func_get_automake_snippet)
34111         (func_get_include_directive, func_get_link_directive)
34112         (func_get_license, func_get_maintainer): If $do_cache is false,
34113         use old, non-caching extraction scripts.
34114         Suggestion by Bruno Haible.
34115
34116 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34117
34118         gnulib-tool: cache module metainformation.
34119         * gnulib-tool (sed_extract_prog): Match newline before each
34120         header, and rewrite header to a shell variable suffix.
34121         (func_cache_var, func_cache_lookup_module): New functions,
34122         to turn a module name into a cache variable prefix, and to
34123         look up and cache module metainformation.
34124         (func_get_description, func_get_status)
34125         (func_get_notice, func_get_applicability, func_get_filelist)
34126         (func_get_dependencies, func_get_autoconf_early_snippet)
34127         (func_get_autoconf_snippet, func_get_automake_snippet)
34128         (func_get_include_directive, func_get_link_directive)
34129         (func_get_license, func_get_maintainer): Use
34130         func_cache_lookup_module.
34131
34132 2010-02-07  Bruno Haible  <bruno@clisp.org>
34133
34134         fnctl: Fix missing dependency.
34135         * modules/fcntl (Depends-on): Add getdtablesize.
34136         Reported by John W. Eaton <jwe@gnu.org>.
34137
34138 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34139
34140         Argp: fix recognition of short alias options.
34141
34142         * lib/argp-parse.c (convert_options): Fix improper use of
34143         `|' between character values.
34144         * tests/test-argp.c (group1_option): New alias option
34145         --read (-r).
34146         (group1_parser): Special handling for 'r'.
34147         (test15): New test case.
34148         (test_fun): Add test15.
34149         * tests/test-argp-2.sh: Update expected --help and --usage
34150         outputs.
34151
34152 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34153
34154         * tests/test-argp.c: Fix indentation.
34155
34156 2010-02-04  Eric Blake  <ebb9@byu.net>
34157
34158         gettimeofday: expose type of second argument
34159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34160         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34161         * tests/test-gettimeofday.c: Use it to silence warning.
34162         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34163         the issue.
34164
34165 2010-02-03  Jim Meyering  <meyering@redhat.com>
34166
34167         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34168         * lib/regcomp.c (TYPE_SIGNED): Define.
34169         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34170
34171         regcomp.c: avoid a new -Wshadow warning
34172         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34173
34174 2010-02-01  Jim Meyering  <meyering@redhat.com>
34175
34176         removing useless parentheses in cpp #define directives
34177         For motivation, see commit c0221df4, "define STREQ(a,b)
34178         consistently, removing useless parentheses"
34179         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34180         * lib/mountlist.c (MNT_IGNORE): Likewise.
34181         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34182
34183 2010-02-01  Eric Blake  <ebb9@byu.net>
34184
34185         sys_time: use link-warning
34186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34187         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34188         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34189         * modules/sys_time (Depends-on): Add warn-on-use.
34190         (Makefile.am): Always build replacement.
34191         (configure.ac): Update substitutions.
34192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34193         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34194         bother with SYS_TIME_H.
34195         * modules/gettimeofday (configure.ac): Declare indicator.
34196         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34197         in use.
34198
34199         closein-tests: silence compiler warning
34200         * tests/test-closein.c (main): Ignore fread result.
34201         * modules/closein-tests (Depends-on): Add ignore-value.
34202
34203         tests: silence warning about system return
34204         * tests/test-areadlink-with-size.c (main): Ignore system result.
34205         * tests/test-areadlink.c (main): Likewise.
34206         * tests/test-areadlinkat-with-size.c (main): Likewise.
34207         * tests/test-areadlinkat.c (main): Likewise.
34208         * tests/test-canonicalize-lgpl.c (main): Likewise.
34209         * tests/test-canonicalize.c (main): Likewise.
34210         * tests/test-chown.c (main): Likewise.
34211         * tests/test-fchownat.c (main): Likewise.
34212         * tests/test-fdutimensat.c (main): Likewise.
34213         * tests/test-fstatat.c (main): Likewise.
34214         * tests/test-futimens.c (main): Likewise.
34215         * tests/test-lchown.c (main): Likewise.
34216         * tests/test-link.c (main): Likewise.
34217         * tests/test-linkat.c (main): Likewise.
34218         * tests/test-lstat.c (main): Likewise.
34219         * tests/test-mkdir.c (main): Likewise.
34220         * tests/test-mkdirat.c (main): Likewise.
34221         * tests/test-mkfifo.c (main): Likewise.
34222         * tests/test-mkfifoat.c (main): Likewise.
34223         * tests/test-mknod.c (main): Likewise.
34224         * tests/test-readlink.c (main): Likewise.
34225         * tests/test-remove.c (main): Likewise.
34226         * tests/test-rename.c (main): Likewise.
34227         * tests/test-renameat.c (main): Likewise.
34228         * tests/test-rmdir.c (main): Likewise.
34229         * tests/test-symlink.c (main): Likewise.
34230         * tests/test-symlinkat.c (main): Likewise.
34231         * tests/test-unlink.c (main): Likewise.
34232         * tests/test-unlinkat.c (main): Likewise.
34233         * tests/test-utimens.c (main): Likewise.
34234         * tests/test-utimensat.c (main): Likewise.
34235         * modules/areadlink-tests (Depends-on): Add ignore-value.
34236         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34237         * modules/areadlinkat-tests (Depends-on): Likewise.
34238         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34239         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34240         * modules/canonicalize-tests (Depends-on): Likewise.
34241         * modules/chown-tests (Depends-on): Likewise.
34242         * modules/fdutimensat-tests (Depends-on): Likewise.
34243         * modules/futimens-tests (Depends-on): Likewise.
34244         * modules/lchown-tests (Depends-on): Likewise.
34245         * modules/link-tests (Depends-on): Likewise.
34246         * modules/linkat-tests (Depends-on): Likewise.
34247         * modules/lstat-tests (Depends-on): Likewise.
34248         * modules/mkdir-tests (Depends-on): Likewise.
34249         * modules/mkfifo-tests (Depends-on): Likewise.
34250         * modules/mkfifoat-tests (Depends-on): Likewise.
34251         * modules/mknod-tests (Depends-on): Likewise.
34252         * modules/openat-tests (Depends-on): Likewise.
34253         * modules/readlink-tests (Depends-on): Likewise.
34254         * modules/remove-tests (Depends-on): Likewise.
34255         * modules/rename-tests (Depends-on): Likewise.
34256         * modules/renameat-tests (Depends-on): Likewise.
34257         * modules/rmdir-tests (Depends-on): Likewise.
34258         * modules/symlink-tests (Depends-on): Likewise.
34259         * modules/symlinkat-tests (Depends-on): Likewise.
34260         * modules/unlink-tests (Depends-on): Likewise.
34261         * modules/utimens-tests (Depends-on): Likewise.
34262         * modules/utimensat-tests (Depends-on): Likewise.
34263
34264 2010-01-31  Bruno Haible  <bruno@clisp.org>
34265
34266         Perform the same test for many <math.h> functions.
34267         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34268         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34269         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34270         of gl_MATHFUNC.
34271         * modules/acos (configure.ac): Likewise.
34272         * modules/asin (configure.ac): Likewise.
34273         * modules/atan (configure.ac): Likewise.
34274         * modules/atan2 (configure.ac): Likewise.
34275         * modules/cbrt (configure.ac): Likewise.
34276         * modules/copysign (configure.ac): Likewise.
34277         * modules/cos (configure.ac): Likewise.
34278         * modules/cosh (configure.ac): Likewise.
34279         * modules/erf (configure.ac): Likewise.
34280         * modules/erfc (configure.ac): Likewise.
34281         * modules/exp (configure.ac): Likewise.
34282         * modules/fmod (configure.ac): Likewise.
34283         * modules/hypot (configure.ac): Likewise.
34284         * modules/j0 (configure.ac): Likewise.
34285         * modules/j1 (configure.ac): Likewise.
34286         * modules/jn (configure.ac): Likewise.
34287         * modules/lgamma (configure.ac): Likewise.
34288         * modules/log (configure.ac): Likewise.
34289         * modules/log10 (configure.ac): Likewise.
34290         * modules/log1p (configure.ac): Likewise.
34291         * modules/pow (configure.ac): Likewise.
34292         * modules/remainder (configure.ac): Likewise.
34293         * modules/sin (configure.ac): Likewise.
34294         * modules/sinh (configure.ac): Likewise.
34295         * modules/tan (configure.ac): Likewise.
34296         * modules/tanh (configure.ac): Likewise.
34297         * modules/y0 (configure.ac): Likewise.
34298         * modules/y1 (configure.ac): Likewise.
34299         * modules/yn (configure.ac): Likewise.
34300         Suggested by Paolo Bonzini.
34301
34302 2010-01-31  Bruno Haible  <bruno@clisp.org>
34303
34304         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34305
34306 2010-01-31  Bruno Haible  <bruno@clisp.org>
34307
34308         Work around getdelim() bug on FreeBSD 8.0.
34309         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34310         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34311         not work.
34312         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34313         is 1.
34314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34315         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34316         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34317         a non-zero size.
34318         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34319
34320 2010-01-31  Bruno Haible  <bruno@clisp.org>
34321
34322         Work around getline() bug on FreeBSD 8.0.
34323         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34324         and a non-zero size.
34325         * tests/test-getline.c (main): Likewise.
34326         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34327         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34328
34329 2010-01-28  Eric Blake  <ebb9@byu.net>
34330
34331         regex: fix build failure
34332         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34333         platforms.
34334
34335 2010-01-28  Jim Meyering  <meyering@redhat.com>
34336
34337         regex: do not ignore memory allocation failure
34338         * lib/regex_internal.c (create_cd_newstate): Detect
34339         re_node_set_init_copy failure.   Extracted from glibc commit
34340         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34341
34342         regex: sync more white-space changes from libc
34343         * lib/regex_internal.c: White-space only changes.
34344         * lib/regexec.c: Likewise.
34345
34346         regex: add many uses of __attribute_warn_unused_result__
34347         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34348         * lib/regexec.c: Likewise.
34349         Extracted from a messy glibc commit.
34350
34351         regcomp.c: spelling and merge-artifact from glibc
34352         * lib/regcomp.c: Merge remainder of glibc's
34353         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34354
34355         regcomp.c: sync white-space changes from glibc
34356         * lib/regcomp.c: Merge to accommodate white space
34357         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34358
34359         regcomp.c: do not ignore internal return values
34360         * lib/regcomp.c: Do not ignore internal return values.
34361         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34362         but without its white-space changes and spelling fixes.
34363
34364         regex_internal.h: define __attribute_warn_unused_result__
34365         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34366
34367         maint: add a syntax-check rule to check for vulnerable Makefile.in
34368         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34369
34370 2010-01-27  Jim Meyering  <meyering@redhat.com>
34371
34372         ncftpput-ftp: clean up spaces
34373         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34374         Remove trailing blanks.
34375
34376 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34377
34378         * build-aux/git-version-gen: Fix copyright statement.
34379         * build-aux/gnupload: Likewise.
34380         * tests/test-arcfour.c: Likewise.
34381         * tests/test-arctwo.c: Likewise.
34382         * tests/test-count-one-bits.c: Likewise.
34383         * tests/test-crc.c: Likewise.
34384         * tests/test-des.c: Likewise.
34385         * tests/test-gc-arcfour.c: Likewise.
34386         * tests/test-gc-arctwo.c: Likewise.
34387         * tests/test-gc-des.c: Likewise.
34388         * tests/test-gc-hmac-md5.c: Likewise.
34389         * tests/test-gc-hmac-sha1.c: Likewise.
34390         * tests/test-gc-md2.c: Likewise.
34391         * tests/test-gc-md4.c: Likewise.
34392         * tests/test-gc-md5.c: Likewise.
34393         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34394         * tests/test-gc-rijndael.c: Likewise.
34395         * tests/test-gc-sha1.c: Likewise.
34396         * tests/test-gc.c: Likewise.
34397         * tests/test-gethostname.c: Likewise.
34398         * tests/test-gettimeofday.c: Likewise.
34399         * tests/test-hash.c: Likewise.
34400         * tests/test-hmac-md5.c: Likewise.
34401         * tests/test-hmac-sha1.c: Likewise.
34402         * tests/test-md2.c: Likewise.
34403         * tests/test-md4.c: Likewise.
34404         * tests/test-md5.c: Likewise.
34405         * tests/test-memchr.c: Likewise.
34406         * tests/test-memchr2.c: Likewise.
34407         * tests/test-memcmp.c: Likewise.
34408         * tests/test-memmem.c: Likewise.
34409         * tests/test-memrchr.c: Likewise.
34410         * tests/test-rawmemchr.c: Likewise.
34411         * tests/test-read-file.c: Likewise.
34412         * tests/test-rijndael.c: Likewise.
34413         * tests/test-sockets.c: Likewise.
34414         * tests/test-strchrnul.c: Likewise.
34415         * tests/test-strstr.c: Likewise.
34416         * tests/test-strtod.c: Likewise.
34417         * build-aux/ncftpput-ftp: Likewise.
34418
34419 2010-01-26  Eric Blake  <ebb9@byu.net>
34420
34421         ignore-value: update recommended header name
34422         * modules/ignore-value (Include): Only use <> for headers that
34423         exist in glibc.
34424
34425 2010-01-26  Jim Meyering  <meyering@redhat.com>
34426
34427         test-userspec.c: avoid compiler warnings
34428         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34429         and "initialization discards qualifiers..." warnings.
34430         Put the first "uid" in its own scope, and make char* members "const".
34431
34432 2010-01-25  Bruno Haible  <bruno@clisp.org>
34433
34434         gnulib-tool: Make warning diagnostics consistent.
34435         * gnulib-tool (func_warning): New function.
34436         Use it everywhere where gnulib-tool produces output to stderr and it is
34437         not a fatal error.
34438
34439 2010-01-25  Bruno Haible  <bruno@clisp.org>
34440
34441         Fix test dependencies.
34442         * modules/xstrtol-tests (Depends-on): Add inttypes.
34443         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34444
34445 2010-01-25 Pádraig Brady <P@draigBrady.com>
34446
34447         syntax-check: detect incorrect boolean macro values in config.h
34448         * modules/maintainer-makefile (configure.ac): Parameterize the location
34449         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34450         The logic is from Eric Blake and the location indicated by Jim Meyering.
34451         Note the more natural CONFIG_HEADER name is prohibited by automake
34452         for backwards compatibility reasons.
34453         * top/maint.mk (sc_Wundef_boolean): New rule.
34454
34455 2010-01-25  Jim Meyering  <meyering@redhat.com>
34456
34457         bootstrap: detect MacOS 10.6's shasum, too
34458         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34459         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34460
34461 2010-01-23  Jim Meyering  <meyering@redhat.com>
34462
34463         xstrtoll: new module
34464         * modules/xstrtoll: New file.
34465         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34466         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34467         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34468         ./configure fails if you use this module and lack "long long".
34469         * modules/xstrtoll-tests: New module.
34470         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34471         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34472         new init.sh-based test framework.
34473
34474 2010-01-24  Bruno Haible  <bruno@clisp.org>
34475
34476         Tests for module 'yn'.
34477         * modules/yn-tests: New file.
34478         * tests/test-yn.c: New file.
34479
34480         Tests for module 'y1'.
34481         * modules/y1-tests: New file.
34482         * tests/test-y1.c: New file.
34483
34484         Tests for module 'y0'.
34485         * modules/y0-tests: New file.
34486         * tests/test-y0.c: New file.
34487
34488         Tests for module 'tanh'.
34489         * modules/tanh-tests: New file.
34490         * tests/test-tanh.c: New file.
34491
34492         Tests for module 'tan'.
34493         * modules/tan-tests: New file.
34494         * tests/test-tan.c: New file.
34495
34496         Tests for module 'sqrt'.
34497         * modules/sqrt-tests: New file.
34498         * tests/test-sqrt.c: New file.
34499
34500         Tests for module 'sinh'.
34501         * modules/sinh-tests: New file.
34502         * tests/test-sinh.c: New file.
34503
34504         Tests for module 'sin'.
34505         * modules/sin-tests: New file.
34506         * tests/test-sin.c: New file.
34507
34508         Tests for module 'rint'.
34509         * modules/rint-tests: New file.
34510         * tests/test-rint.c: New file.
34511
34512         Tests for module 'remainder'.
34513         * modules/remainder-tests: New file.
34514         * tests/test-remainder.c: New file.
34515
34516         Tests for module 'pow'.
34517         * modules/pow-tests: New file.
34518         * tests/test-pow.c: New file.
34519
34520         Tests for module 'nextafter'.
34521         * modules/nextafter-tests: New file.
34522         * tests/test-nextafter.c: New file.
34523
34524         Tests for module 'modf'.
34525         * modules/modf-tests: New file.
34526         * tests/test-modf.c: New file.
34527
34528         Tests for module 'logb'.
34529         * modules/logb-tests: New file.
34530         * tests/test-logb.c: New file.
34531
34532         Tests for module 'log1p'.
34533         * modules/log1p-tests: New file.
34534         * tests/test-log1p.c: New file.
34535
34536         Tests for module 'log10'.
34537         * modules/log10-tests: New file.
34538         * tests/test-log10.c: New file.
34539
34540         Tests for module 'log'.
34541         * modules/log-tests: New file.
34542         * tests/test-log.c: New file.
34543
34544         Tests for module 'lgamma'.
34545         * modules/lgamma-tests: New file.
34546         * tests/test-lgamma.c: New file.
34547
34548         Tests for module 'ldexp'.
34549         * modules/ldexp-tests: New file.
34550         * tests/test-ldexp.c: New file.
34551
34552         Tests for module 'jn'.
34553         * modules/jn-tests: New file.
34554         * tests/test-jn.c: New file.
34555
34556         Tests for module 'j1'.
34557         * modules/j1-tests: New file.
34558         * tests/test-j1.c: New file.
34559
34560         Tests for module 'j0'.
34561         * modules/j0-tests: New file.
34562         * tests/test-j0.c: New file.
34563
34564         Tests for module 'hypot'.
34565         * modules/hypot-tests: New file.
34566         * tests/test-hypot.c: New file.
34567
34568         Tests for module 'fmod'.
34569         * modules/fmod-tests: New file.
34570         * tests/test-fmod.c: New file.
34571
34572         Tests for module 'fabs'.
34573         * modules/fabs-tests: New file.
34574         * tests/test-fabs.c: New file.
34575
34576         Tests for module 'exp'.
34577         * modules/exp-tests: New file.
34578         * tests/test-exp.c: New file.
34579
34580         Tests for module 'erfc'.
34581         * modules/erfc-tests: New file.
34582         * tests/test-erfc.c: New file.
34583
34584         Tests for module 'erf'.
34585         * modules/erf-tests: New file.
34586         * tests/test-erf.c: New file.
34587
34588         Tests for module 'cosh'.
34589         * modules/cosh-tests: New file.
34590         * tests/test-cosh.c: New file.
34591
34592         Tests for module 'cos'.
34593         * modules/cos-tests: New file.
34594         * tests/test-cos.c: New file.
34595
34596         Tests for module 'copysign'.
34597         * modules/copysign-tests: New file.
34598         * tests/test-copysign.c: New file.
34599
34600         Tests for module 'cbrt'.
34601         * modules/cbrt-tests: New file.
34602         * tests/test-cbrt.c: New file.
34603
34604         Tests for module 'atan2'.
34605         * modules/atan2-tests: New file.
34606         * tests/test-atan2.c: New file.
34607
34608         Tests for module 'atan'.
34609         * modules/atan-tests: New file.
34610         * tests/test-atan.c: New file.
34611
34612         Tests for module 'asin'.
34613         * modules/asin-tests: New file.
34614         * tests/test-asin.c: New file.
34615
34616         Tests for module 'acos'.
34617         * modules/acos-tests: New file.
34618         * tests/test-acos.c: New file.
34619
34620 2010-01-24  Bruno Haible  <bruno@clisp.org>
34621
34622         Fix tests for common <math.h> functions.
34623         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34624         code snippet that references the function pointer, rather than merely
34625         calling the function. Substitute the FUNC_LIBM variable.
34626         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34627         * modules/acos (configure.ac): Likewise.
34628         * modules/asin (configure.ac): Likewise.
34629         * modules/atan (configure.ac): Likewise.
34630         * modules/atan2 (configure.ac): Likewise.
34631         * modules/cbrt (configure.ac): Likewise.
34632         * modules/copysign (configure.ac): Likewise.
34633         * modules/cos (configure.ac): Likewise.
34634         * modules/cosh (configure.ac): Likewise.
34635         * modules/erf (configure.ac): Likewise.
34636         * modules/erfc (configure.ac): Likewise.
34637         * modules/exp (configure.ac): Likewise.
34638         * modules/fabs (configure.ac): Likewise.
34639         * modules/fmod (configure.ac): Likewise.
34640         * modules/hypot (configure.ac): Likewise.
34641         * modules/j0 (configure.ac): Likewise.
34642         * modules/j1 (configure.ac): Likewise.
34643         * modules/jn (configure.ac): Likewise.
34644         * modules/ldexp (configure.ac): Likewise.
34645         * modules/lgamma (configure.ac): Likewise.
34646         * modules/log (configure.ac): Likewise.
34647         * modules/log10 (configure.ac): Likewise.
34648         * modules/log1p (configure.ac): Likewise.
34649         * modules/logb (configure.ac): Likewise.
34650         * modules/modf (configure.ac): Likewise.
34651         * modules/nextafter (configure.ac): Likewise.
34652         * modules/pow (configure.ac): Likewise.
34653         * modules/remainder (configure.ac): Likewise.
34654         * modules/rint (configure.ac): Likewise.
34655         * modules/sin (configure.ac): Likewise.
34656         * modules/sinh (configure.ac): Likewise.
34657         * modules/tan (configure.ac): Likewise.
34658         * modules/tanh (configure.ac): Likewise.
34659         * modules/y0 (configure.ac): Likewise.
34660         * modules/y1 (configure.ac): Likewise.
34661         * modules/yn (configure.ac): Likewise.
34662
34663 2010-01-24  Bruno Haible  <bruno@clisp.org>
34664
34665         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34666         * tests/test-acosl.c (x): New variable.
34667         (main): Store argument in x and fetch it from x.
34668         * tests/test-asinl.c (x): New variable.
34669         (main): Store argument in x and fetch it from x.
34670         * tests/test-atanl.c (x): New variable.
34671         (main): Store argument in x and fetch it from x.
34672         * tests/test-cosl.c (x): New variable.
34673         (main): Store argument in x and fetch it from x.
34674         * tests/test-expl.c (x): New variable.
34675         (main): Store argument in x and fetch it from x.
34676         * tests/test-logl.c (x): New variable.
34677         (main): Store argument in x and fetch it from x.
34678         * tests/test-sinl.c (x): New variable.
34679         (main): Store argument in x and fetch it from x.
34680         * tests/test-sqrtl.c (x): New variable.
34681         (main): Store argument in x and fetch it from x.
34682         * tests/test-tanl.c (x): New variable.
34683         (main): Store argument in x and fetch it from x.
34684
34685 2010-01-24  Bruno Haible  <bruno@clisp.org>
34686
34687         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34688         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34689         assignments to the initial TESTS_ENVIRONMENT.
34690         * doc/gnulib.texi (Unit test modules): Document it.
34691         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34692         TESTS_ENVIRONMENT.
34693         * modules/btowc-tests (Makefile.am): Likewise.
34694         * modules/c-stack-tests (Makefile.am): Likewise.
34695         * modules/c-strcase-tests (Makefile.am): Likewise.
34696         * modules/copy-file-tests (Makefile.am): Likewise.
34697         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34698         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34699         * modules/mbrtowc-tests (Makefile.am): Likewise.
34700         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34701         * modules/mbscasestr-tests (Makefile.am): Likewise.
34702         * modules/mbschr-tests (Makefile.am): Likewise.
34703         * modules/mbscspn-tests (Makefile.am): Likewise.
34704         * modules/mbsinit-tests (Makefile.am): Likewise.
34705         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34706         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34707         * modules/mbspbrk-tests (Makefile.am): Likewise.
34708         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34709         * modules/mbsrchr-tests (Makefile.am): Likewise.
34710         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34711         * modules/mbsspn-tests (Makefile.am): Likewise.
34712         * modules/mbsstr-tests (Makefile.am): Likewise.
34713         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34714         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34715         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34716         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34717         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34718         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34719         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34720         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34721         * modules/wcrtomb-tests (Makefile.am): Likewise.
34722         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34723         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34724         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34725         assignments from TESTS_ENVIRONMENT.
34726         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34727         augmentation.
34728         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34729         * modules/atexit-tests (Makefile.am): Likewise.
34730         * modules/binary-io-tests (Makefile.am): Likewise.
34731         * modules/closein-tests (Makefile.am): Likewise.
34732         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34733         * modules/exclude-tests (Makefile.am): Likewise.
34734         * modules/fflush-tests (Makefile.am): Likewise.
34735         * modules/fpending-tests (Makefile.am): Likewise.
34736         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34737         * modules/freadahead-tests (Makefile.am): Likewise.
34738         * modules/freadptr-tests (Makefile.am): Likewise.
34739         * modules/freadseek-tests (Makefile.am): Likewise.
34740         * modules/fseek-tests (Makefile.am): Likewise.
34741         * modules/fseeko-tests (Makefile.am): Likewise.
34742         * modules/ftell-tests (Makefile.am): Likewise.
34743         * modules/ftello-tests (Makefile.am): Likewise.
34744         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34745         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34746         * modules/lseek-tests (Makefile.am): Likewise.
34747         * modules/parse-duration-tests (Makefile.am): Likewise.
34748         * modules/perror-tests (Makefile.am): Likewise.
34749         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34750         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34751         * modules/pipe-tests (Makefile.am): Likewise.
34752         * modules/pread-tests (Makefile.am): Likewise.
34753         * modules/printf-posix-tests (Makefile.am): Likewise.
34754         * modules/select-tests (Makefile.am): Likewise.
34755         * modules/sigpipe-tests (Makefile.am): Likewise.
34756         * modules/tsearch-tests (Makefile.am): Likewise.
34757         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34758         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34759         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34760         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34761         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34762         * modules/version-etc-tests (Makefile.am): Likewise.
34763         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34764         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34765         * modules/xalloc-die-tests (Makefile.am): Likewise.
34766         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34767         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34768         * modules/xstrtol-tests (Makefile.am): Likewise.
34769         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34770         * modules/yesno-tests (Makefile.am): Likewise.
34771         Suggested by Jim Meyering.
34772
34773 2010-01-24  Bruno Haible  <bruno@clisp.org>
34774
34775         More documentation.
34776         * doc/gnulib.texi (Writing modules): New chapter.
34777         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34778         the new chapter.
34779
34780 2010-01-24  Jim Meyering  <meyering@redhat.com>
34781
34782         maint.mk: do not prepend "./" after filtering
34783         * top/maint.mk (_prepend_srcdir_prefix): New variable
34784         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34785         "./" when $(srcdir) is ".".
34786
34787         define STREQ(a,b) consistently, removing useless parentheses
34788         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34789         since the only risk is that "a" or "b" contains an unparenthesized
34790         comma, but if either did that, STREQ would have 3 or more arguments.
34791         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34792         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34793         * lib/hash-triple.c (STREQ): Likewise.
34794         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34795         * lib/getugroups.c (STREQ): Likewise.
34796
34797 2010-01-23  Jim Meyering  <meyering@redhat.com>
34798
34799         maint.mk: fix syntax-check in a non-srcdir build directory
34800         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34801         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34802
34803 2010-01-22  Jim Meyering  <meyering@redhat.com>
34804
34805         userspec: add unit tests
34806         * tests/test-userspec.c: New file.
34807         * modules/userspec-tests: Likewise.
34808
34809 2010-01-21  Jim Meyering  <meyering@redhat.com>
34810
34811         maint.mk: handle source file names containing "." robustly
34812         * top/maint.mk (_dot_escaped_srcdir): Define.
34813         (VC_LIST): Use it in LHS of sed substitution.
34814
34815 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34816
34817         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34818         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34819         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34820         from a non-srcdir build.
34821
34822 2010-01-20  Eric Blake  <ebb9@byu.net>
34823
34824         warn-on-use: use instead of link-warning
34825         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34826         * modules/unistd (Depends-on, Makefile.am): Likewise.
34827         * modules/arpa_inet (Depends-on): Replace link-warning with
34828         warn-on-use.
34829         (Makefile.am): Update rules accordingly.
34830         * modules/ctype (Depends-on, Makefile.am): Likewise.
34831         * modules/dirent (Depends-on, Makefile.am): Likewise.
34832         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34833         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34834         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34835         * modules/locale (Depends-on, Makefile.am): Likewise.
34836         * modules/math (Depends-on, Makefile.am): Likewise.
34837         * modules/search (Depends-on, Makefile.am): Likewise.
34838         * modules/signal (Depends-on, Makefile.am): Likewise.
34839         * modules/spawn (Depends-on, Makefile.am): Likewise.
34840         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34841         * modules/string (Depends-on, Makefile.am): Likewise.
34842         * modules/strings (Depends-on, Makefile.am): Likewise.
34843         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34844         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34845         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34846         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34847         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34848         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34849         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34850         * modules/wchar (Depends-on, Makefile.am): Likewise.
34851         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34852         should be poisoned.
34853         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34854         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34855         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34857         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34858         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34859         * m4/math_h.m4 (gl_MATH_H): Likewise.
34860         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34861         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34862         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34863         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34864         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34865         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34866         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34867         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34874         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34875         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34876         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34877         GL_LINK_WARNING.
34878         * lib/ctype.in.h: Likewise.
34879         * lib/dirent.in.h: Likewise.
34880         * lib/fcntl.in.h: Likewise.
34881         * lib/inttypes.in.h: Likewise.
34882         * lib/langinfo.in.h: Likewise.
34883         * lib/locale.in.h: Likewise.
34884         * lib/math.in.h: Likewise.
34885         * lib/search.in.h: Likewise.
34886         * lib/signal.in.h: Likewise.
34887         * lib/spawn.in.h: Likewise.
34888         * lib/stdio.in.h: Likewise.
34889         * lib/stdlib.in.h: Likewise.
34890         * lib/string.in.h: Likewise.
34891         * lib/strings.in.h: Likewise.
34892         * lib/sys_file.in.h: Likewise.
34893         * lib/sys_ioctl.in.h: Likewise.
34894         * lib/sys_select.in.h: Likewise.
34895         * lib/sys_socket.in.h: Likewise.
34896         * lib/sys_stat.in.h: Likewise.
34897         * lib/sys_times.in.h: Likewise.
34898         * lib/sys_utsname.in.h: Likewise.
34899         * lib/unistd.in.h: Likewise.
34900         * lib/wchar.in.h: Likewise.
34901
34902 2010-01-20  Bruno Haible  <bruno@clisp.org>
34903
34904         Avoid duplicate -lm.
34905         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34906         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34907         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34909         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34910         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34911         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34912         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34913         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34914         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34915         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34916         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34917         Reported by Paolo Bonzini.
34918
34919 2010-01-19  Bruno Haible  <bruno@clisp.org>
34920
34921         langinfo, nl_langinfo: Relicense under LGPLv2+.
34922         * modules/langinfo (License): Change to LGPLv2+.
34923         * modules/nl_langinfo (License): Likewise.
34924         Patch by David Lutterkort <lutter@redhat.com>.
34925
34926 2010-01-19  Bruno Haible  <bruno@clisp.org>
34927
34928         Avoid compilation error with cc on OSF/1 5.1.
34929         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34930         statement, not before.
34931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34932
34933 2010-01-18  Bruno Haible  <bruno@clisp.org>
34934
34935         Avoid a link error due to the __printf__ symbol.
34936         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34937         and 2.6.x.
34938         (__format__, __printf__): Remove definitions.
34939         * lib/argp-fmtstream.h: Likewise.
34940         * lib/argp.h: Likewise.
34941         * lib/error.h: Likewise.
34942         * lib/vasnprintf.h: Likewise.
34943         * lib/xprintf.h: Likewise.
34944         * lib/xvasprintf.h: Likewise.
34945         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34946
34947 2010-01-18  Bruno Haible  <bruno@clisp.org>
34948
34949         Tests for module 'tanl'.
34950         * modules/tanl-tests: New file.
34951         * tests/test-tanl.c: New file.
34952
34953         Tests for module 'sqrtl'.
34954         * modules/sqrtl-tests: New file.
34955         * tests/test-sqrtl.c: New file.
34956
34957         Tests for module 'sinl'.
34958         * modules/sinl-tests: New file.
34959         * tests/test-sinl.c: New file.
34960
34961         Tests for module 'logl'.
34962         * modules/logl-tests: New file.
34963         * tests/test-logl.c: New file.
34964
34965         Tests for module 'expl'.
34966         * modules/expl-tests: New file.
34967         * tests/test-expl.c: New file.
34968
34969         Tests for module 'cosl'.
34970         * modules/cosl-tests: New file.
34971         * tests/test-cosl.c: New file.
34972
34973         Tests for module 'atanl'.
34974         * modules/atanl-tests: New file.
34975         * tests/test-atanl.c: New file.
34976
34977         Tests for module 'asinl'.
34978         * modules/asinl-tests: New file.
34979         * tests/test-asinl.c: New file.
34980
34981         Tests for module 'acosl'.
34982         * modules/acosl-tests: New file.
34983         * tests/test-acosl.c: New file.
34984
34985         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34986         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34987         tanl): Use the standard gnulib idiom.
34988         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34989         * lib/sinl.c: Likewise.
34990         * lib/tanl.c: Don't include trigl.c.
34991         (kernel_tanl): Make static.
34992         * lib/sincosl.c: Include trigl.h first.
34993         * lib/trigl.c: Likewise.
34994         * m4/acosl.m4: New file.
34995         * m4/asinl.m4: New file.
34996         * m4/atanl.m4: New file.
34997         * m4/cosl.m4: New file.
34998         * m4/expl.m4: New file.
34999         * m4/logl.m4: New file.
35000         * m4/sinl.m4: New file.
35001         * m4/sqrtl.m4: New file.
35002         * m4/tanl.m4: New file.
35003         * m4/mathl.m4: Remove file.
35004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35005         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35006         Don't initialize GNULIB_MATHL.
35007         * modules/acosl: New file.
35008         * modules/asinl: New file.
35009         * modules/atanl: New file.
35010         * modules/cosl: New file.
35011         * modules/expl: New file.
35012         * modules/logl: New file.
35013         * modules/sinl: New file.
35014         * modules/sqrtl: New file.
35015         * modules/tanl: New file.
35016         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35017         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35018         substitute GNULIB_MATHL.
35019         * modules/mathl: Rewritten.
35020         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35021         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35022         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35023         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35024         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35025         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35026         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35027         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35028         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35029
35030 2010-01-18  Bruno Haible  <bruno@clisp.org>
35031
35032         sqrt: Make gl_FUNC_SQRT requirable.
35033         * m4/sqrt.m4: New file.
35034         * modules/sqrt (Files): Add it.
35035         (configure.ac): Invoke gl_FUNC_SQRT.
35036
35037 2010-01-18  Bruno Haible  <bruno@clisp.org>
35038
35039         New modules for common <math.h> functions.
35040         * m4/mathfunc.m4: New file.
35041         * modules/acos: New file.
35042         * modules/asin: New file.
35043         * modules/atan: New file.
35044         * modules/atan2: New file.
35045         * modules/cbrt: New file.
35046         * modules/copysign: New file.
35047         * modules/cos: New file.
35048         * modules/cosh: New file.
35049         * modules/erf: New file.
35050         * modules/erfc: New file.
35051         * modules/exp: New file.
35052         * modules/fabs: New file.
35053         * modules/fmod: New file.
35054         * modules/hypot: New file.
35055         * modules/j0: New file.
35056         * modules/j1: New file.
35057         * modules/jn: New file.
35058         * modules/ldexp: New file.
35059         * modules/lgamma: New file.
35060         * modules/log: New file.
35061         * modules/log10: New file.
35062         * modules/log1p: New file.
35063         * modules/logb: New file.
35064         * modules/modf: New file.
35065         * modules/nextafter: New file.
35066         * modules/pow: New file.
35067         * modules/remainder: New file.
35068         * modules/rint: New file.
35069         * modules/sin: New file.
35070         * modules/sinh: New file.
35071         * modules/sqrt: New file.
35072         * modules/tan: New file.
35073         * modules/tanh: New file.
35074         * modules/y0: New file.
35075         * modules/y1: New file.
35076         * modules/yn: New file.
35077         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35078         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35079         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35080         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35081         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35082         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35083         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35084         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35085         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35086         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35087         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35088         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35089         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35090         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35091         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35092         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35093         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35094         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35095         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35096         * doc/posix-functions/log.texi: Mention the 'log' module.
35097         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35098         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35099         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35100         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35101         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35102         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35103         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35104         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35105         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35106         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35107         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35108         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35109         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35110         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35111         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35112         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35113
35114 2010-01-18  Jim Meyering  <meyering@redhat.com>
35115
35116         ignore-value: relax license to LGPLv2+
35117         * modules/ignore-value (License): Relax to LGPLv2+.
35118
35119         getdate: don't leak when TZ contains two or more '"'s
35120         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35121         double quote in TZ after the first one.
35122
35123         readtokens: do not leak internal token_lengths buffer
35124         * lib/readtokens.c (readtokens): Free the local, lengths,
35125         when the supplied "token_lengths" parameter is NULL.
35126
35127 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35128
35129         Fix a couple of missing LIBTHREAD link failures on AIX.
35130         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35131         $(LIBTHREAD).
35132         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35133
35134         Link test-poll against INET_PTON_LIB.
35135         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35136         for inet_pton on Solaris 10.
35137
35138 2010-01-17  Bruno Haible  <bruno@clisp.org>
35139
35140         unistdio/*-sprintf: Fix typo in module description.
35141         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35142         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35143         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35144         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35145         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35146         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35147         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35149
35150 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35151
35152         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35153         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35154         variables in shell case patterns, for AIX and HP-UX ksh.
35155
35156         Split large sed scripts, for HP-UX sed.
35157         * modules/stdio: Split sed scripts around 50 sed commands,
35158         to avoid HP-UX limit of 99 commands, in the near future.
35159         * modules/string: Likewise.
35160         * modules/unistd: Likewise.
35161
35162         gnulib-tool: avoid writing in the current directory.
35163         * gnulib-tool (func_emit_lib_Makefile_am)
35164         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35165         not in the current directory, so concurrent gnulib-tool
35166         instances do not interfere.
35167
35168 2010-01-16  Jim Meyering  <meyering@redhat.com>
35169
35170         doc: update users.txt
35171         * users.txt: Add grep.
35172         (diffutils, gzip): Update URLs.
35173
35174 2010-01-12  Bruno Haible  <bruno@clisp.org>
35175
35176         posix_spawn: Avoid test failure on Cygwin.
35177         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35178         characters.
35179         Reported by Simon Josefsson.
35180
35181 2010-01-12  Bruno Haible  <bruno@clisp.org>
35182
35183         * tests/test-cond.c (main): When skipping the test, show the reason.
35184
35185 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35186
35187         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35188
35189 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35190
35191         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35192         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35193
35194 2010-01-12  Eric Blake  <ebb9@byu.net>
35195
35196         build: guarantee AS_VAR_IF
35197         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35198         (gl_AS_VAR_IF): Move...
35199         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35200         Reported by Simon Josefsson.
35201
35202 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35203
35204         * lib/stdio.in.h: Fix typo.
35205
35206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35207
35208         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35209         libgpg-error.
35210
35211 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35212
35213         * tests/test-xalloc-die.sh: Use $EXEEXT.
35214
35215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35216             Bruno Haible  <bruno@clisp.org>
35217
35218         getlogin, getlogin_r: Avoid test failure.
35219         * tests/test-getlogin.c: Include <stdio.h>.
35220         (main): Skip the test when the function fails because stdin is not a
35221         tty.
35222         * tests/test-getlogin_r.c: Include <stdio.h>.
35223         (main): Skip the test when the function fails because stdin is not a
35224         tty.
35225
35226 2010-01-11  Eric Blake  <ebb9@byu.net>
35227
35228         tests: avoid more large file warnings
35229         * tests/test-fflush.c: Avoid warning about ftell use.
35230         * tests/test-fseek.c: Avoid warning about fseek use.
35231
35232 2010-01-10  Bruno Haible  <bruno@clisp.org>
35233
35234         nproc: Work better on Linux when /proc and /sys are not mounted.
35235         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35236         as lower bound when, on glibc/Linux systems,
35237         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35238         Suggested by Pádraig Brady <P@draigbrady.com>.
35239         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35240
35241         nproc: Refactor.
35242         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35243         extracted from num_processors.
35244         (num_processors): Call it.
35245
35246 2010-01-11  Jim Meyering  <meyering@redhat.com>
35247
35248         utimecmp: avoid new warning from upcoming gcc-4.5.0
35249         * lib/utimecmp.c (BILLION): Define using #define rather than an
35250         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35251
35252 2010-01-11  Eric Blake  <ebb9@byu.net>
35253
35254         math: add portability warnings for classification macros
35255         * modules/math (Depends-on): Add warn-on-use.
35256         (Makefile.am): Provide new substitutions.
35257         * m4/math_h.m4 (gl_MATH_H): Require inline.
35258         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35259         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35260         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35261         implement warnings.
35262
35263         unistd: warn on use of environ without module
35264         * modules/unistd (Depends-on): Add warn-on-use.
35265         (Makefile.am): Provide new substitutions.
35266         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35267         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35268
35269         stdio: warn on suspicious uses
35270         * modules/stdio (Depends-on): Add warn-on-use.
35271         (Makefile.am): Provide new substitutions.
35272         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35273         fseeko.
35274         * lib/stdio.in.h (gets): Always warn on use.
35275         (fseek, ftell): Adjust when warnings are issued, and honor
35276         _GL_NO_LARGE_FILES as a way to silence the warning.
35277         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35278         any warning about large file offsets.
35279         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35280         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35281         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35282         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35283         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35284         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35285         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35286         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35287
35288         warn-on-use: new module
35289         * modules/warn-on-use: New file.
35290         * build-aux/warn-on-use.h: Likewise.
35291         * m4/warn-on-use.m4: Likewise.
35292         * MODULES.html.sh (Support for building): Mention it.
35293
35294 2010-01-10  Bruno Haible  <bruno@clisp.org>
35295
35296         Tests for module 'unistr/u32-strdup'.
35297         * modules/unistr/u32-strdup-tests: New file.
35298         * tests/unistr/test-u32-strdup.c: New file.
35299
35300         Tests for module 'unistr/u16-strdup'.
35301         * modules/unistr/u16-strdup-tests: New file.
35302         * tests/unistr/test-u16-strdup.c: New file.
35303
35304         Tests for module 'unistr/u8-strdup'.
35305         * modules/unistr/u8-strdup-tests: New file.
35306         * tests/unistr/test-u8-strdup.c: New file.
35307         * tests/unistr/test-strdup.h: New file.
35308
35309         Tests for module 'unistr/u32-strncmp'.
35310         * modules/unistr/u32-strncmp-tests: New file.
35311         * tests/unistr/test-u32-strncmp.c: New file.
35312
35313         Tests for module 'unistr/u16-strncmp'.
35314         * modules/unistr/u16-strncmp-tests: New file.
35315         * tests/unistr/test-u16-strncmp.c: New file.
35316
35317         Tests for module 'unistr/u8-strncmp'.
35318         * modules/unistr/u8-strncmp-tests: New file.
35319         * tests/unistr/test-u8-strncmp.c: New file.
35320         * tests/unistr/test-strncmp.h: New file.
35321
35322         Tests for module 'unistr/u32-strcoll'.
35323         * modules/unistr/u32-strcoll-tests: New file.
35324         * tests/unistr/test-u32-strcoll.c: New file.
35325
35326         Tests for module 'unistr/u16-strcoll'.
35327         * modules/unistr/u16-strcoll-tests: New file.
35328         * tests/unistr/test-u16-strcoll.c: New file.
35329
35330         Tests for module 'unistr/u8-strcoll'.
35331         * modules/unistr/u8-strcoll-tests: New file.
35332         * tests/unistr/test-u8-strcoll.c: New file.
35333
35334         Tests for module 'unistr/u32-strcmp'.
35335         * modules/unistr/u32-strcmp-tests: New file.
35336         * tests/unistr/test-u32-strcmp.c: New file.
35337         * tests/unistr/test-u32-strcmp.h: New file.
35338
35339         Tests for module 'unistr/u16-strcmp'.
35340         * modules/unistr/u16-strcmp-tests: New file.
35341         * tests/unistr/test-u16-strcmp.c: New file.
35342         * tests/unistr/test-u16-strcmp.h: New file.
35343
35344         Tests for module 'unistr/u8-strcmp'.
35345         * modules/unistr/u8-strcmp-tests: New file.
35346         * tests/unistr/test-u8-strcmp.c: New file.
35347         * tests/unistr/test-u8-strcmp.h: New file.
35348         * tests/unistr/test-strcmp.h: New file.
35349
35350         Tests for module 'unistr/u32-strncat'.
35351         * modules/unistr/u32-strncat-tests: New file.
35352         * tests/unistr/test-u32-strncat.c: New file.
35353
35354         Tests for module 'unistr/u16-strncat'.
35355         * modules/unistr/u16-strncat-tests: New file.
35356         * tests/unistr/test-u16-strncat.c: New file.
35357
35358         Tests for module 'unistr/u8-strncat'.
35359         * modules/unistr/u8-strncat-tests: New file.
35360         * tests/unistr/test-u8-strncat.c: New file.
35361         * tests/unistr/test-strncat.h: New file.
35362
35363         Tests for module 'unistr/u32-strcat'.
35364         * modules/unistr/u32-strcat-tests: New file.
35365         * tests/unistr/test-u32-strcat.c: New file.
35366
35367         Tests for module 'unistr/u16-strcat'.
35368         * modules/unistr/u16-strcat-tests: New file.
35369         * tests/unistr/test-u16-strcat.c: New file.
35370
35371         Tests for module 'unistr/u8-strcat'.
35372         * modules/unistr/u8-strcat-tests: New file.
35373         * tests/unistr/test-u8-strcat.c: New file.
35374         * tests/unistr/test-strcat.h: New file.
35375
35376         Tests for module 'unistr/u32-stpncpy'.
35377         * modules/unistr/u32-stpncpy-tests: New file.
35378         * tests/unistr/test-u32-stpncpy.c: New file.
35379
35380         Tests for module 'unistr/u16-stpncpy'.
35381         * modules/unistr/u16-stpncpy-tests: New file.
35382         * tests/unistr/test-u16-stpncpy.c: New file.
35383
35384         Tests for module 'unistr/u8-stpncpy'.
35385         * modules/unistr/u8-stpncpy-tests: New file.
35386         * tests/unistr/test-u8-stpncpy.c: New file.
35387         * tests/unistr/test-stpncpy.h: New file.
35388
35389         Tests for module 'unistr/u32-strncpy'.
35390         * modules/unistr/u32-strncpy-tests: New file.
35391         * tests/unistr/test-u32-strncpy.c: New file.
35392
35393         Tests for module 'unistr/u16-strncpy'.
35394         * modules/unistr/u16-strncpy-tests: New file.
35395         * tests/unistr/test-u16-strncpy.c: New file.
35396
35397         Tests for module 'unistr/u8-strncpy'.
35398         * modules/unistr/u8-strncpy-tests: New file.
35399         * tests/unistr/test-u8-strncpy.c: New file.
35400         * tests/unistr/test-strncpy.h: New file.
35401
35402         Tests for module 'unistr/u32-stpcpy'.
35403         * modules/unistr/u32-stpcpy-tests: New file.
35404         * tests/unistr/test-u32-stpcpy.c: New file.
35405
35406         Tests for module 'unistr/u16-stpcpy'.
35407         * modules/unistr/u16-stpcpy-tests: New file.
35408         * tests/unistr/test-u16-stpcpy.c: New file.
35409
35410         Tests for module 'unistr/u8-stpcpy'.
35411         * modules/unistr/u8-stpcpy-tests: New file.
35412         * tests/unistr/test-u8-stpcpy.c: New file.
35413         * tests/unistr/test-stpcpy.h: New file.
35414
35415         Tests for module 'unistr/u32-strcpy'.
35416         * modules/unistr/u32-strcpy-tests: New file.
35417         * tests/unistr/test-u32-strcpy.c: New file.
35418
35419         Tests for module 'unistr/u16-strcpy'.
35420         * modules/unistr/u16-strcpy-tests: New file.
35421         * tests/unistr/test-u16-strcpy.c: New file.
35422
35423         Tests for module 'unistr/u8-strcpy'.
35424         * modules/unistr/u8-strcpy-tests: New file.
35425         * tests/unistr/test-u8-strcpy.c: New file.
35426         * tests/unistr/test-strcpy.h: New file.
35427
35428         Tests for module 'unistr/u32-strnlen'.
35429         * modules/unistr/u32-strnlen-tests: New file.
35430         * tests/unistr/test-u32-strnlen.c: New file.
35431
35432         Tests for module 'unistr/u16-strnlen'.
35433         * modules/unistr/u16-strnlen-tests: New file.
35434         * tests/unistr/test-u16-strnlen.c: New file.
35435
35436         Tests for module 'unistr/u8-strnlen'.
35437         * modules/unistr/u8-strnlen-tests: New file.
35438         * tests/unistr/test-u8-strnlen.c: New file.
35439         * tests/unistr/test-strnlen.h: New file.
35440
35441         Tests for module 'unistr/u32-strlen'.
35442         * modules/unistr/u32-strlen-tests: New file.
35443         * tests/unistr/test-u32-strlen.c: New file.
35444
35445         Tests for module 'unistr/u16-strlen'.
35446         * modules/unistr/u16-strlen-tests: New file.
35447         * tests/unistr/test-u16-strlen.c: New file.
35448
35449         Tests for module 'unistr/u8-strlen'.
35450         * modules/unistr/u8-strlen-tests: New file.
35451         * tests/unistr/test-u8-strlen.c: New file.
35452
35453         Tests for module 'unistr/u32-prev'.
35454         * modules/unistr/u32-prev-tests: New file.
35455         * tests/unistr/test-u32-prev.c: New file.
35456
35457         Tests for module 'unistr/u16-prev'.
35458         * modules/unistr/u16-prev-tests: New file.
35459         * tests/unistr/test-u16-prev.c: New file.
35460
35461         Tests for module 'unistr/u8-prev'.
35462         * modules/unistr/u8-prev-tests: New file.
35463         * tests/unistr/test-u8-prev.c: New file.
35464
35465         Tests for module 'unistr/u32-next'.
35466         * modules/unistr/u32-next-tests: New file.
35467         * tests/unistr/test-u32-next.c: New file.
35468
35469         Tests for module 'unistr/u16-next'.
35470         * modules/unistr/u16-next-tests: New file.
35471         * tests/unistr/test-u16-next.c: New file.
35472
35473         Tests for module 'unistr/u8-next'.
35474         * modules/unistr/u8-next-tests: New file.
35475         * tests/unistr/test-u8-next.c: New file.
35476
35477         Tests for module 'unistr/u32-strmbtouc'.
35478         * modules/unistr/u32-strmbtouc-tests: New file.
35479         * tests/unistr/test-u32-strmbtouc.c: New file.
35480
35481         Tests for module 'unistr/u16-strmbtouc'.
35482         * modules/unistr/u16-strmbtouc-tests: New file.
35483         * tests/unistr/test-u16-strmbtouc.c: New file.
35484
35485         Tests for module 'unistr/u8-strmbtouc'.
35486         * modules/unistr/u8-strmbtouc-tests: New file.
35487         * tests/unistr/test-u8-strmbtouc.c: New file.
35488
35489         Tests for module 'unistr/u32-strmblen'.
35490         * modules/unistr/u32-strmblen-tests: New file.
35491         * tests/unistr/test-u32-strmblen.c: New file.
35492
35493         Tests for module 'unistr/u16-strmblen'.
35494         * modules/unistr/u16-strmblen-tests: New file.
35495         * tests/unistr/test-u16-strmblen.c: New file.
35496
35497         Tests for module 'unistr/u8-strmblen'.
35498         * modules/unistr/u8-strmblen-tests: New file.
35499         * tests/unistr/test-u8-strmblen.c: New file.
35500
35501         Tests for module 'unistr/u32-cpy-alloc'.
35502         * modules/unistr/u32-cpy-alloc-tests: New file.
35503         * tests/unistr/test-u32-cpy-alloc.c: New file.
35504
35505         Tests for module 'unistr/u16-cpy-alloc'.
35506         * modules/unistr/u16-cpy-alloc-tests: New file.
35507         * tests/unistr/test-u16-cpy-alloc.c: New file.
35508
35509         Tests for module 'unistr/u8-cpy-alloc'.
35510         * modules/unistr/u8-cpy-alloc-tests: New file.
35511         * tests/unistr/test-u8-cpy-alloc.c: New file.
35512         * tests/unistr/test-cpy-alloc.h: New file.
35513
35514         Tests for module 'unistr/u32-mbsnlen'.
35515         * modules/unistr/u32-mbsnlen-tests: New file.
35516         * tests/unistr/test-u32-mbsnlen.c: New file.
35517
35518         Tests for module 'unistr/u16-mbsnlen'.
35519         * modules/unistr/u16-mbsnlen-tests: New file.
35520         * tests/unistr/test-u16-mbsnlen.c: New file.
35521
35522         Tests for module 'unistr/u8-mbsnlen'.
35523         * modules/unistr/u8-mbsnlen-tests: New file.
35524         * tests/unistr/test-u8-mbsnlen.c: New file.
35525
35526         Tests for module 'unistr/u32-chr'.
35527         * modules/unistr/u32-chr-tests: New file.
35528         * tests/unistr/test-u32-chr.c: New file.
35529
35530         Tests for module 'unistr/u16-chr'.
35531         * modules/unistr/u16-chr-tests: New file.
35532         * tests/unistr/test-u16-chr.c: New file.
35533
35534         Tests for module 'unistr/u8-chr'.
35535         * modules/unistr/u8-chr-tests: New file.
35536         * tests/unistr/test-u8-chr.c: New file.
35537         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35538
35539         Tests for module 'unistr/u32-cmp2'.
35540         * modules/unistr/u32-cmp2-tests: New file.
35541         * tests/unistr/test-u32-cmp2.c: New file.
35542
35543         Tests for module 'unistr/u16-cmp2'.
35544         * modules/unistr/u16-cmp2-tests: New file.
35545         * tests/unistr/test-u16-cmp2.c: New file.
35546
35547         Tests for module 'unistr/u8-cmp2'.
35548         * modules/unistr/u8-cmp2-tests: New file.
35549         * tests/unistr/test-u8-cmp2.c: New file.
35550         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35551
35552         Tests for module 'unistr/u32-cmp'.
35553         * modules/unistr/u32-cmp-tests: New file.
35554         * tests/unistr/test-u32-cmp.c: New file.
35555
35556         Tests for module 'unistr/u16-cmp'.
35557         * modules/unistr/u16-cmp-tests: New file.
35558         * tests/unistr/test-u16-cmp.c: New file.
35559
35560         Tests for module 'unistr/u8-cmp'.
35561         * modules/unistr/u8-cmp-tests: New file.
35562         * tests/unistr/test-u8-cmp.c: New file.
35563         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35564
35565         Tests for module 'unistr/u32-set'.
35566         * modules/unistr/u32-set-tests: New file.
35567         * tests/unistr/test-u32-set.c: New file.
35568
35569         Tests for module 'unistr/u16-set'.
35570         * modules/unistr/u16-set-tests: New file.
35571         * tests/unistr/test-u16-set.c: New file.
35572
35573         Tests for module 'unistr/u8-set'.
35574         * modules/unistr/u8-set-tests: New file.
35575         * tests/unistr/test-u8-set.c: New file.
35576         * tests/unistr/test-set.h: New file.
35577
35578         Tests for module 'unistr/u32-move'.
35579         * modules/unistr/u32-move-tests: New file.
35580         * tests/unistr/test-u32-move.c: New file.
35581
35582         Tests for module 'unistr/u16-move'.
35583         * modules/unistr/u16-move-tests: New file.
35584         * tests/unistr/test-u16-move.c: New file.
35585
35586         Tests for module 'unistr/u8-move'.
35587         * modules/unistr/u8-move-tests: New file.
35588         * tests/unistr/test-u8-move.c: New file.
35589         * tests/unistr/test-move.h: New file.
35590
35591         Tests for module 'unistr/u32-cpy'.
35592         * modules/unistr/u32-cpy-tests: New file.
35593         * tests/unistr/test-u32-cpy.c: New file.
35594
35595         Tests for module 'unistr/u16-cpy'.
35596         * modules/unistr/u16-cpy-tests: New file.
35597         * tests/unistr/test-u16-cpy.c: New file.
35598
35599         Tests for module 'unistr/u8-cpy'.
35600         * modules/unistr/u8-cpy-tests: New file.
35601         * tests/unistr/test-u8-cpy.c: New file.
35602         * tests/unistr/test-cpy.h: New file.
35603
35604 2010-01-09  Bruno Haible  <bruno@clisp.org>
35605
35606         Tests for module 'unistr/u32-uctomb'.
35607         * modules/unistr/u32-uctomb-tests: New file.
35608         * tests/unistr/test-u32-uctomb.c: New file.
35609
35610         Tests for module 'unistr/u16-uctomb'.
35611         * modules/unistr/u16-uctomb-tests: New file.
35612         * tests/unistr/test-u16-uctomb.c: New file.
35613
35614         Tests for module 'unistr/u8-uctomb'.
35615         * modules/unistr/u8-uctomb-tests: New file.
35616         * tests/unistr/test-u8-uctomb.c: New file.
35617
35618         Tests for module 'unistr/u32-mbtoucr'.
35619         * modules/unistr/u32-mbtoucr-tests: New file.
35620         * tests/unistr/test-u32-mbtoucr.c: New file.
35621
35622         Tests for module 'unistr/u16-mbtoucr'.
35623         * modules/unistr/u16-mbtoucr-tests: New file.
35624         * tests/unistr/test-u16-mbtoucr.c: New file.
35625
35626         Tests for module 'unistr/u8-mbtoucr'.
35627         * modules/unistr/u8-mbtoucr-tests: New file.
35628         * tests/unistr/test-u8-mbtoucr.c: New file.
35629
35630         Tests for module 'unistr/u32-mbtouc'.
35631         * modules/unistr/u32-mbtouc-tests: New file.
35632         * tests/unistr/test-u32-mbtouc.c: New file.
35633
35634         Tests for module 'unistr/u16-mbtouc'.
35635         * modules/unistr/u16-mbtouc-tests: New file.
35636         * tests/unistr/test-u16-mbtouc.c: New file.
35637
35638         Tests for module 'unistr/u8-mbtouc'.
35639         * modules/unistr/u8-mbtouc-tests: New file.
35640         * tests/unistr/test-u8-mbtouc.c: New file.
35641
35642         Tests for module 'unistr/u32-mbtouc-unsafe'.
35643         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35644         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35645         * tests/unistr/test-u32-mbtouc.h: New file.
35646
35647         Tests for module 'unistr/u16-mbtouc-unsafe'.
35648         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35649         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35650         * tests/unistr/test-u16-mbtouc.h: New file.
35651
35652         Tests for module 'unistr/u8-mbtouc-unsafe'.
35653         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35654         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35655         * tests/unistr/test-u8-mbtouc.h: New file.
35656
35657         Tests for module 'unistr/u32-mblen'.
35658         * modules/unistr/u32-mblen-tests: New file.
35659         * tests/unistr/test-u32-mblen.c: New file.
35660
35661         Tests for module 'unistr/u16-mblen'.
35662         * modules/unistr/u16-mblen-tests: New file.
35663         * tests/unistr/test-u16-mblen.c: New file.
35664
35665         Tests for module 'unistr/u8-mblen'.
35666         * modules/unistr/u8-mblen-tests: New file.
35667         * tests/unistr/test-u8-mblen.c: New file.
35668
35669         Tests for module 'unistr/u32-to-u16'.
35670         * modules/unistr/u32-to-u16-tests: New file.
35671         * tests/unistr/test-u32-to-u16.c: New file.
35672
35673         Tests for module 'unistr/u32-to-u8'.
35674         * modules/unistr/u32-to-u8-tests: New file.
35675         * tests/unistr/test-u32-to-u8.c: New file.
35676
35677         Tests for module 'unistr/u16-to-u32'.
35678         * modules/unistr/u16-to-u32-tests: New file.
35679         * tests/unistr/test-u16-to-u32.c: New file.
35680
35681         Tests for module 'unistr/u16-to-u8'.
35682         * modules/unistr/u16-to-u8-tests: New file.
35683         * tests/unistr/test-u16-to-u8.c: New file.
35684
35685         Tests for module 'unistr/u8-to-u32'.
35686         * modules/unistr/u8-to-u32-tests: New file.
35687         * tests/unistr/test-u8-to-u32.c: New file.
35688
35689         Tests for module 'unistr/u8-to-u16'.
35690         * modules/unistr/u8-to-u16-tests: New file.
35691         * tests/unistr/test-u8-to-u16.c: New file.
35692
35693         Tests for module 'unistr/u32-check'.
35694         * modules/unistr/u32-check-tests: New file.
35695         * tests/unistr/test-u32-check.c: New file.
35696
35697         Tests for module 'unistr/u16-check'.
35698         * modules/unistr/u16-check-tests: New file.
35699         * tests/unistr/test-u16-check.c: New file.
35700
35701         Tests for module 'unistr/u8-check'.
35702         * modules/unistr/u8-check-tests: New file.
35703         * tests/unistr/test-u8-check.c: New file.
35704
35705         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35706         (category_equals): New function.
35707         (main): Add more tests.
35708         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35709
35710         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35711
35712 2010-01-10  Bruno Haible  <bruno@clisp.org>
35713
35714         unistr/u*-strcoll: Try harder to distinguish different strings.
35715         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35716         compare s1 and s2 to see if they are different.
35717
35718 2010-01-10  Bruno Haible  <bruno@clisp.org>
35719
35720         unistr/u*-stpncpy: Fix the return value.
35721         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35722         description of the return value consistent with stpncpy in glibc.
35723         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35724         written non-NUL unit.
35725
35726 2010-01-10  Bruno Haible  <bruno@clisp.org>
35727
35728         unistr/u*-next: Add missing dependencies.
35729         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35730         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35731         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35732
35733 2010-01-10  Bruno Haible  <bruno@clisp.org>
35734
35735         unistr/u8-mbsnlen: Fix return value for incomplete character.
35736         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35737         u8_mblen.
35738         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35739         Remove unistr/u8-mblen.
35740         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35741         u16_mblen.
35742         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35743         Remove unistr/u16-mblen.
35744
35745 2010-01-10  Bruno Haible  <bruno@clisp.org>
35746
35747         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35748         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35749         Reported by Brian Gough <bjg@gnu.org> and
35750         Chris Clayton <chris2553@googlemail.com> via
35751         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35752
35753 2010-01-09  Bruno Haible  <bruno@clisp.org>
35754
35755         unistr/u16-to-u32: Reject invalid input.
35756         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35757         u16_mbtouc.
35758         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35759         Remove unistr/u16-mbtouc.
35760
35761         unistr/u16-to-u8: Reject invalid input.
35762         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35763         u16_mbtouc.
35764         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35765         Remove unistr/u16-mbtouc.
35766
35767         unistr/u8-to-u32: Reject invalid input.
35768         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35769         u8_mbtouc.
35770         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35771         Remove unistr/u8-mbtouc.
35772
35773         unistr/u8-to-u16: Reject invalid input.
35774         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35775         u8_mbtouc.
35776         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35777         Remove unistr/u8-mbtouc.
35778
35779 2010-01-09  Bruno Haible  <bruno@clisp.org>
35780
35781         Tests for module 'getlogin'.
35782         * modules/getlogin-tests: New file.
35783         * tests/test-getlogin.c: New file.
35784
35785         New module 'getlogin'.
35786         * lib/unistd.in.h (getlogin): New declaration.
35787         * lib/getlogin.c: New file.
35788         * m4/getlogin.m4: New file.
35789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35790         HAVE_GETLOGIN.
35791         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35792         HAVE_GETLOGIN.
35793         * modules/getlogin: New file.
35794         * doc/posix-functions/getlogin.texi: Mention the new module.
35795         Reported by John W. Eaton <jwe@gnu.org>.
35796
35797 2010-01-09  Bruno Haible  <bruno@clisp.org>
35798
35799         getlogin_r: Support for native Windows.
35800         * lib/getlogin_r.c: Include <windows.h>
35801         (getlogin_r): Implement for native Windows.
35802         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35803         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35804         via John W. Eaton <jwe@gnu.org>.
35805
35806 2010-01-09  Bruno Haible  <bruno@clisp.org>
35807
35808         getlogin_r: Small fixes.
35809         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35810         succeeds.
35811         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35812         before testing whether getlogin_r is declared. No need to set
35813         HAVE_DECL_GETLOGIN_R to 1.
35814         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35815
35816 2010-01-09  Bruno Haible  <bruno@clisp.org>
35817
35818         * lib/unistd.in.h (getlogin_r): Add comment.
35819
35820 2010-01-09  Bruno Haible  <bruno@clisp.org>
35821
35822         Tests for module 'getlogin_r'.
35823         * modules/getlogin_r-tests: New file.
35824         * tests/test-getlogin_r.c: New file.
35825
35826 2010-01-09  Jim Meyering  <meyering@redhat.com>
35827
35828         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35829         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35830         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35831
35832 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35833
35834         * lib/dup2.c (rpl_dup2): Improve comment.
35835
35836 2010-01-08  Eric Blake  <ebb9@byu.net>
35837
35838         maint.mk: allow packages to add makefile @@ exceptions
35839         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35840         (sc_makefile_check): Rename...
35841         (sc_makefile_at_at_check): ...to this, and use hook.
35842
35843         dup2: work around mingw bug
35844         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35845         Reported by Simon Josefsson.
35846
35847 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35848
35849         glob: Fix C++ compilation.
35850         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35851         C++.
35852
35853 2010-01-07  Bruno Haible  <bruno@clisp.org>
35854
35855         Fix indentation of wctype.in.h, broken since 2007-01-06.
35856         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35857
35858 2010-01-07  Bruno Haible  <bruno@clisp.org>
35859
35860         mbslen: Avoid collision with system function.
35861         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35862         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35863         * m4/mbslen.m4: New file.
35864         * modules/mbslen (Files): Add it.
35865         (configure.ac): Invoke gl_MBSLEN.
35866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35867         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35868         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35869         via Ian Beckwith <ianb@erislabs.net>.
35870
35871 2010-01-07  Bruno Haible  <bruno@clisp.org>
35872
35873         dirent: Document the last fix.
35874         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35875
35876 2010-01-07  Bruno Haible  <bruno@clisp.org>
35877
35878         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35879         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35880         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35881         va_list are defined.
35882         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35883         Reported by Eric Blake.
35884
35885 2010-01-07  Bruno Haible  <bruno@clisp.org>
35886
35887         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35888         * modules/xlist (Depends-on): Add 'list',
35889         * modules/xoset (Depends-on): Add 'oset'.
35890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35891
35892 2010-01-07  Bruno Haible  <bruno@clisp.org>
35893
35894         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35895         * doc/posix-functions/strncasecmp.texi: Likewise.
35896
35897 2010-01-07  Bruno Haible  <bruno@clisp.org>
35898
35899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35900
35901 2010-01-07  John W. Eaton  <jwe@octave.org>
35902
35903         wctype: allow C++ use
35904         * lib/wctype.in.h: Add extern "C" block for C++.
35905
35906 2010-01-06  Eric Blake  <ebb9@byu.net>
35907
35908         maint.mk: detect incorrect GFDL usage
35909         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35910
35911 2010-01-06  Jim Meyering  <meyering@redhat.com>
35912         and Eric Blake  <ebb9@byu.net>
35913
35914         maint.mk: ignore multi-line copyright in NEWS
35915         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35916
35917 2010-01-06  Eric Blake  <ebb9@byu.net>
35918
35919         select: add missing dependency
35920         * modules/select-tests (Depends-on): Move sockets dependency...
35921         * modules/select (Depends-on): ...here.
35922         Reported by Ian Beckwith.
35923
35924         doc: regenerate INSTALL
35925         * doc/INSTALL: Reflect recent autoconf update.
35926         * doc/INSTALL.ISO: Likewise.
35927         * doc/INSTALL.UTF-8: Likewise.
35928
35929         pread: fix compilation on glibc
35930         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35931         Reported by Ralf Wildenhues.
35932
35933         dirent: fix test failure
35934         * lib/dirent.in.h (includes): Guarantee ino_t.
35935         Reported by Ralf Wildenhues.
35936
35937 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35938
35939         linkat, renameat: avoid bad free
35940         * lib/at-func2.c (at_func2): Fix typo.
35941         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35942
35943 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35944
35945         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35946         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35947         to avoid failure of symlink test later.
35948
35949 2010-01-06  Eric Blake  <ebb9@byu.net>
35950
35951         stdio, unistd: guarantee ssize_t
35952         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35953         2008 are exposed when needed.
35954         * lib/stdio.in.h (includes): Likewise.
35955         Reported by Ralf Wildenhues.
35956
35957 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35958
35959         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35960         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35961         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35962
35963 2010-01-06  Jim Meyering  <meyering@redhat.com>
35964
35965         readtokens: this module *does* require xalloc.h
35966         It uses only functions that were omitted by the old syntax-check rule.
35967         * lib/readtokens.c: Include "xalloc.h" once again.
35968         * modules/readtokens (Depends-on): Add xalloc.
35969         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35970
35971 2010-01-05  Eric Blake  <ebb9@byu.net>
35972
35973         maint: support 'make announcement' from a VPATH build
35974         * top/maint.mk (announcement): Look for correct NEWS file.
35975
35976 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35977
35978         utimens (fdutimens): ignore a negative FD, per contract
35979         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35980         when we have a valid file descriptor.  Otherwise, using a brand
35981         new glibc (with just-patched futimens that now fails with EBADF)
35982         would cause this function to fail with ENOSYS.
35983         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35984         See also http://bugzilla.redhat.com/552320.
35985
35986 2010-01-05  Eric Blake  <ebb9@byu.net>
35987
35988         strcase: document what it provides
35989         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35990         gnulib module.
35991         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35992         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35993
35994 2010-01-05  Jim Meyering  <meyering@redhat.com>
35995
35996         maint: remove useless inclusions of "xalloc.h"
35997         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35998         * lib/readtokens.c: Likewise.
35999         * lib/same.c: Likewise.
36000         * modules/getloadavg (Depends-on): Remove xalloc.
36001         * modules/readtokens: Likewise.
36002         * modules/same: Likewise.
36003
36004         maint.mk: include 4 more function names in alloca.h-checking regexp
36005         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36006         regexp.  Before, we would give a false-positive (saying alloca.h
36007         is included unnecessarily) when the only uses involved omitted symbols.
36008
36009         xalloc.h: use consistent formatting
36010         * lib/xalloc.h: Move declarations to start in the first column.
36011
36012 2010-01-05  Eric Blake  <ebb9@byu.net>
36013
36014         mkdir: avoid xalloc
36015         * lib/mkdir.c (includes): Drop unused header.
36016         Reported by John W. Eaton.
36017
36018 2010-01-04  Jim Meyering  <meyering@redhat.com>
36019
36020         nl_langinfo: avoid configure-time syntax error
36021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36022         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36023         the empty string.  Don't let that provoke a shell syntax error.
36024
36025         regcomp, regexec, fnmatch: avoid array bounds read error
36026         * lib/regcomp.c (build_equiv_class): From glibc:
36027         Use only the low 24 bits of a findidx return value as an index
36028         into the weights array.  Patch by Ulrich Drepper:
36029         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36030         * lib/regexec.c (check_node_accept_bytes): Likewise.
36031         * lib/fnmatch_loop.c (FCT): Likewise.
36032
36033         regcomp: skip collseq lookup when there are no rules
36034         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36035         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36036
36037         regcomp: recognize ill-formed { } expressions
36038         * lib/regcomp.c (parse_dup_op): From glibc:
36039         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36040
36041         regcomp: fix typo in comment
36042         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36043         s/satisfy/satisfies/.
36044
36045         regcomp: sync from glibc: remove dead store
36046         * lib/regcomp.c (duplicate_node_closure): Remove useless
36047         search_duplicated_node call and dead store.
36048
36049         regcomp: sync from glibc; always use nl_langinfo
36050         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36051         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36052         * modules/regex (Depends-on): Add nl_langinfo.
36053
36054 2010-01-04  Eric Blake  <ebb9@byu.net>
36055
36056         fdopendir: fix configure test
36057         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36058
36059 2010-01-01  Bruno Haible  <bruno@clisp.org>
36060
36061         wchar: Remove unused configure check.
36062         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36063
36064 2010-01-01  Eric Blake  <ebb9@byu.net>
36065
36066         headers: make check of system header explicit
36067         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36068         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36069         ourselves.
36070         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36072         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36073         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36074         internals.
36075         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36076         missing.
36077         Suggested by Bruno Haible.
36078
36079 2010-01-01  Jim Meyering  <meyering@redhat.com>
36080
36081         ChangeLog: tweak to eliminate unnecessary copyright line
36082         * ChangeLog: Remove a copyright line that was mistakenly updated
36083         by today's update-copyright run.  Reported by Eric Blake.
36084
36085         test-update-copyright: don't let envvar setting cause test failure
36086         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36087
36088 2010-01-01  Bruno Haible  <bruno@clisp.org>
36089
36090         localename: Avoid gcc warning.
36091         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36092         function if it is not used.
36093
36094 2010-01-01  Jim Meyering  <meyering@redhat.com>
36095
36096         update nearly all FSF copyright year lists to include 2010
36097         Use the same procedure as for 2009, outlined in
36098         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36099
36100         version-etc: set COPYRIGHT_YEAR to 2010
36101         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36102
36103 2009-12-31  Eric Blake  <ebb9@byu.net>
36104
36105         doc: correct availability of cygwin 1.5.x getopt
36106         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36107         variables.
36108         * doc/posix-functions/opterr.texi (opterr): Likewise.
36109         * doc/posix-functions/optind.texi (optind): Likewise.
36110         * doc/posix-functions/optopt.texi (optopt): Likewise.
36111         * doc/posix-functions/tzname.texi (tzname): Likewise.
36112
36113         openat: update maintainer
36114         * modules/openat (Maintainer): Add myself.
36115
36116         utimens: avoid shadowing warning
36117         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36118         buffers into one, to avoid shadowing, as well as avoiding a
36119         redundant stat.
36120         Reported by Jim Meyering.
36121
36122         test-dup2: avoid compiler warning
36123         * tests/test-dup2.c (is_inheritable): Only define if used.
36124
36125 2010-01-01  Bruno Haible  <bruno@clisp.org>
36126
36127         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36128         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36129         defined, use wctomb instead of wcrtomb.
36130
36131 2010-01-01  Bruno Haible  <bruno@clisp.org>
36132
36133         iconv: Reject native Solaris iconv.
36134         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36135         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36136
36137 2009-12-31  Bruno Haible  <bruno@clisp.org>
36138
36139         * tests/test-signal.c (main): Remove test of 'SIG'.
36140
36141 2009-12-31  Bruno Haible  <bruno@clisp.org>
36142
36143         spawn: Fix incomplete fix.
36144         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36145         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36146         warnings for GNULIB_POSIXCHECK again.
36147         Reported by Eric Blake.
36148
36149 2009-12-31  Bruno Haible  <bruno@clisp.org>
36150
36151         Avoid namespace pollution on glibc systems.
36152         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36153         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36154         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36155         glibc systems.
36156
36157 2009-12-31  Bruno Haible  <bruno@clisp.org>
36158
36159         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36160         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36161         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36162         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36163         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36164         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36165         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36166
36167 2009-12-31  Bruno Haible  <bruno@clisp.org>
36168
36169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36170         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36171         afterwards.
36172
36173 2009-12-31  Bruno Haible  <bruno@clisp.org>
36174
36175         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36176         SYS_UTSNAME_H.
36177
36178 2009-12-31  Bruno Haible  <bruno@clisp.org>
36179
36180         spawn: Fix misapplied patch.
36181         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36182         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36183         warnings for GNULIB_POSIXCHECK.
36184
36185 2009-12-31  Bruno Haible  <bruno@clisp.org>
36186
36187         times: Update after sys_times changed.
36188         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36189         * modules/times (Files): Add it.
36190         (configure.ac): Invoke gl_FUNC_TIMES.
36191
36192 2009-12-31  Bruno Haible  <bruno@clisp.org>
36193
36194         Use AC_C_INLINE where necessary.
36195         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36198         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36199         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36200         * m4/mbiter.m4 (gl_MBITER): Likewise.
36201         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36202         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36203         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36204         * modules/u64 (configure.ac): Likewise.
36205
36206 2009-12-31  Bruno Haible  <bruno@clisp.org>
36207
36208         Use AC_C_INLINE instead of module 'inline' where possible.
36209         * modules/inline (Description): Clarify purpose.
36210         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36211         * modules/count-one-bits (Depends-on): Remove inline.
36212         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36213         * modules/openat (Depends-on): Remove inline.
36214         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36215         instead of depending on module 'inline'.
36216         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36217         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36218         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36219         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36220         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36221         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36222         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36223         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36224         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36225         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36226         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36227         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36228         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36229         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36230         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36231         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36232         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36233         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36234         Likewise.
36235         * modules/unictype/property-ascii-hex-digit (Depends-on,
36236         configure.ac): Likewise.
36237         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36238         configure.ac): Likewise.
36239         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36240         configure.ac): Likewise.
36241         * modules/unictype/property-bidi-block-separator (Depends-on,
36242         configure.ac): Likewise.
36243         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36244         configure.ac): Likewise.
36245         * modules/unictype/property-bidi-common-separator (Depends-on,
36246         configure.ac): Likewise.
36247         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36248         Likewise.
36249         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36250         configure.ac): Likewise.
36251         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36252         configure.ac): Likewise.
36253         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36254         configure.ac): Likewise.
36255         * modules/unictype/property-bidi-european-digit (Depends-on,
36256         configure.ac): Likewise.
36257         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36258         configure.ac): Likewise.
36259         * modules/unictype/property-bidi-left-to-right (Depends-on,
36260         configure.ac): Likewise.
36261         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36262         configure.ac): Likewise.
36263         * modules/unictype/property-bidi-other-neutral (Depends-on,
36264         configure.ac): Likewise.
36265         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36266         Likewise.
36267         * modules/unictype/property-bidi-segment-separator (Depends-on,
36268         configure.ac): Likewise.
36269         * modules/unictype/property-bidi-whitespace (Depends-on,
36270         configure.ac): Likewise.
36271         * modules/unictype/property-combining (Depends-on, configure.ac):
36272         Likewise.
36273         * modules/unictype/property-composite (Depends-on, configure.ac):
36274         Likewise.
36275         * modules/unictype/property-currency-symbol (Depends-on,
36276         configure.ac): Likewise.
36277         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36278         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36279         Likewise.
36280         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36281         configure.ac): Likewise.
36282         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36283         Likewise.
36284         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36285         Likewise.
36286         * modules/unictype/property-extender (Depends-on, configure.ac):
36287         Likewise.
36288         * modules/unictype/property-format-control (Depends-on, configure.ac):
36289         Likewise.
36290         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36291         Likewise.
36292         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36293         Likewise.
36294         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36295         Likewise.
36296         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36297         Likewise.
36298         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36299         Likewise.
36300         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36301         Likewise.
36302         * modules/unictype/property-id-start (Depends-on, configure.ac):
36303         Likewise.
36304         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36305         Likewise.
36306         * modules/unictype/property-ids-binary-operator (Depends-on,
36307         configure.ac): Likewise.
36308         * modules/unictype/property-ids-trinary-operator (Depends-on,
36309         configure.ac): Likewise.
36310         * modules/unictype/property-ignorable-control (Depends-on,
36311         configure.ac): Likewise.
36312         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36313         Likewise.
36314         * modules/unictype/property-join-control (Depends-on, configure.ac):
36315         Likewise.
36316         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36317         Likewise.
36318         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36319         Likewise.
36320         * modules/unictype/property-logical-order-exception (Depends-on,
36321         configure.ac): Likewise.
36322         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36323         Likewise.
36324         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36325         * modules/unictype/property-non-break (Depends-on, configure.ac):
36326         Likewise.
36327         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36328         Likewise.
36329         * modules/unictype/property-numeric (Depends-on, configure.ac):
36330         Likewise.
36331         * modules/unictype/property-other-alphabetic (Depends-on,
36332         configure.ac): Likewise.
36333         * modules/unictype/property-other-default-ignorable-code-point
36334         (Depends-on, configure.ac): Likewise.
36335         * modules/unictype/property-other-grapheme-extend (Depends-on,
36336         configure.ac): Likewise.
36337         * modules/unictype/property-other-id-continue (Depends-on,
36338         configure.ac): Likewise.
36339         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36340         Likewise.
36341         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36342         Likewise.
36343         * modules/unictype/property-other-math (Depends-on, configure.ac):
36344         Likewise.
36345         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36346         Likewise.
36347         * modules/unictype/property-paired-punctuation (Depends-on,
36348         configure.ac): Likewise.
36349         * modules/unictype/property-paragraph-separator (Depends-on,
36350         configure.ac): Likewise.
36351         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36352         Likewise.
36353         * modules/unictype/property-pattern-white-space (Depends-on,
36354         configure.ac): Likewise.
36355         * modules/unictype/property-private-use (Depends-on, configure.ac):
36356         Likewise.
36357         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36358         Likewise.
36359         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36360         Likewise.
36361         * modules/unictype/property-radical (Depends-on, configure.ac):
36362         Likewise.
36363         * modules/unictype/property-sentence-terminal (Depends-on,
36364         configure.ac): Likewise.
36365         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36366         Likewise.
36367         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36368         * modules/unictype/property-terminal-punctuation (Depends-on,
36369         configure.ac): Likewise.
36370         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36371         Likewise.
36372         * modules/unictype/property-unassigned-code-value (Depends-on,
36373         configure.ac): Likewise.
36374         * modules/unictype/property-unified-ideograph (Depends-on,
36375         configure.ac): Likewise.
36376         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36377         Likewise.
36378         * modules/unictype/property-variation-selector (Depends-on,
36379         configure.ac): Likewise.
36380         * modules/unictype/property-white-space (Depends-on, configure.ac):
36381         Likewise.
36382         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36383         Likewise.
36384         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36385         Likewise.
36386         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36387         Likewise.
36388         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36389         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36390         Likewise.
36391
36392 2009-12-31  Bruno Haible  <bruno@clisp.org>
36393
36394         Remove unnecessary AC_C_INLINE invocation.
36395         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36396         since 2009-08-21.
36397
36398 2009-12-31  Jim Meyering  <meyering@redhat.com>
36399
36400         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36401         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36402         With this change, we can all remove the gpg_key_ID = ... definition
36403         from our respective cfg.mk files.
36404
36405         maint.mk: create announcement template in ~/, not in /tmp
36406         * top/maint.mk (emit_upload_commands): Adjust.
36407         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36408         Remove temporary file, .ci-msg.
36409
36410 2009-12-31  Eric Blake  <ebb9@byu.net>
36411
36412         link-warning: always build headers with link warnings
36413         * modules/arpa_inet (Makefile.am): Always build replacement
36414         header.
36415         * modules/ctype (Makefile.am): Likewise.
36416         * modules/dirent (Makefile.am): Likewise.
36417         * modules/inttypes (Makefile.am): Likewise.
36418         * modules/langinfo (Makefile.am): Likewise.
36419         * modules/locale (Makefile.am): Likewise.
36420         * modules/spawn (Makefile.am): Likewise.
36421         * modules/sys_file (Makefile.am): Likewise.
36422         * modules/sys_ioctl (Makefile.am): Likewise.
36423         * modules/sys_select (Makefile.am): Likewise.
36424         * modules/sys_socket (Makefile.am): Likewise.
36425         * modules/sys_times (Makefile.am): Likewise.
36426         * modules/sys_utsname (Makefile.am): Likewise.
36427         * modules/sys_wait (Makefile.am): Likewise.
36428         * modules/wchar (Makefile.am): Likewise.
36429         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36430         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36431         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36432         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36433         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36434         Likewise.
36435         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36436         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36437         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36438         Likewise.
36439         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36440         Likewise.
36441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36442         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36443         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36445         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36447         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36448         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36449         (gl_WCHAR_H_DEFAULTS): Likewise.
36450
36451 2009-12-31  Eric Blake  <ebb9@byu.net>
36452
36453         signal, spawn: use link warnings
36454         * lib/signal.in.h (sigset_t): Make unconditional.
36455         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36456         (sigpending, sigprocmask, sigaction): Add link warnings.
36457         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36458         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36459         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36460         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36461         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36462         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36463         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36464         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36465         (posix_spawn_file_actions_destroy)
36466         (posix_spawn_file_actions_addopen)
36467         (posix_spawn_file_actions_addclose)
36468         (posix_spawn_file_actions_adddup2): Likewise.
36469         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36470         * tests/test-signal.c (main): Enhance test.
36471
36472         spawn: improve wrapper support
36473         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36474         (gl_SPAWN_H_DEFAULTS): New defaults.
36475         * modules/spawn (Makefile.am): Substitute them.
36476         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36477         Only declare if missing or broken.
36478
36479         sys_times, sys_utsname: use include_next
36480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36481         header.
36482         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36483         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36484         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36485         * modules/sys_times (Depends-on): Add include_next.
36486         (Makefile.am): Substitute additional values.
36487         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36488         * lib/sys_times.in.h (includes): Include native header, if
36489         available.
36490         * lib/sys_utsname.in.h (includes): Likewise.
36491         * tests/test-sys_times.c (main): Enhance test.
36492
36493         fdutimensat: revert prior patch
36494         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36495         utimens.h.
36496         Reported by Bruno Haible.
36497
36498 2009-12-30  Eric Blake  <ebb9@byu.net>
36499
36500         sys_wait: drop link-warning dependency
36501         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36502         link-warning efforts.
36503         * lib/sys_wait.in.h: Likewise.
36504
36505         fdutimensat: remove bogus dependency
36506         * modules/fdutimensat (Depends-on): Drop inline.
36507
36508         unistd: fix typo
36509         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36510
36511 2009-12-30  Bruno Haible  <bruno@clisp.org>
36512
36513         Fix compilation error with Solaris cc.
36514         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36515         * lib/unicase/u16-is-invariant.c: Likewise.
36516         * lib/unicase/u32-is-invariant.c: Likewise.
36517         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36518
36519 2009-12-30  Bruno Haible  <bruno@clisp.org>
36520
36521         Fix test crash.
36522         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36523         locales.
36524         Reported by Simon Josefsson <simon@josefsson.org>.
36525
36526 2009-12-30  Bruno Haible  <bruno@clisp.org>
36527
36528         Fix compilation error on most platforms.
36529         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36530         Reported by Simon Josefsson <simon@josefsson.org>
36531         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36532
36533 2009-12-30  Eric Blake  <ebb9@byu.net>
36534
36535         futimens, utimensat: work around ntfs-3g bug
36536         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36537         a ctime bug is present, and expand workaround to cover ntfs-3g.
36538         * lib/utimens.c (fdutimens, lutimens): Likewise.
36539         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36540         (validate_timespec): Adjust return value.
36541         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36542         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36543         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36544
36545 2009-12-29  Eric Blake  <ebb9@byu.net>
36546
36547         link-warning: make usage consistent
36548         * modules/ctype (Depends-on): Add link-warning.
36549         (Makefile.am): Update rules accordingly.
36550         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36551         * modules/locale (Depends-on, Makefile.am): Likewise.
36552         * modules/sys_file (Makefile.am): Likewise.
36553         * modules/getopt-posix (Makefile.am): Delete unused link warning
36554         efforts.
36555         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36556         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36557         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36558         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36559
36560         stdio: remove unused variables
36561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36562         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36563         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36564
36565         tests: test more substitute headers
36566         * modules/ctype-tests: New file.
36567         * modules/dirent-tests: Likewise.
36568         * modules/spawn-tests: Likewise.
36569         * modules/sys_file-tests: Likewise.
36570         * modules/sys_ioctl-tests: Likewise.
36571         * modules/sys_wait-tests: Likewise.
36572         * tests/test-ctype.c: Likewise.
36573         * tests/test-dirent.c: Likewise.
36574         * tests/test-spawn.c: Likewise.
36575         * tests/test-sys_file.c: Likewise.
36576         * tests/test-sys_ioctl.c: Likewise.
36577         * tests/test-sys_wait.c: Likewise.
36578         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36579         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36580         whether or not flock is in use.
36581
36582         tests: remove License section from module
36583         * modules/arpa_inet-tests: Remove unneeded section.
36584         * modules/byteswap-tests: Likewise.
36585         * modules/ceilf-tests: Likewise.
36586         * modules/ceill-tests: Likewise.
36587         * modules/crypto/des-tests: Likewise.
36588         * modules/crypto/gc-arcfour-tests: Likewise.
36589         * modules/crypto/gc-arctwo-tests: Likewise.
36590         * modules/crypto/gc-des-tests: Likewise.
36591         * modules/crypto/gc-hmac-md5-tests: Likewise.
36592         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36593         * modules/crypto/gc-md2-tests: Likewise.
36594         * modules/crypto/gc-md4-tests: Likewise.
36595         * modules/crypto/gc-md5-tests: Likewise.
36596         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36597         * modules/crypto/gc-rijndael-tests: Likewise.
36598         * modules/crypto/gc-sha1-tests: Likewise.
36599         * modules/crypto/gc-tests: Likewise.
36600         * modules/crypto/md2-tests: Likewise.
36601         * modules/crypto/md4-tests: Likewise.
36602         * modules/fcntl-h-tests: Likewise.
36603         * modules/floorf-tests: Likewise.
36604         * modules/floorl-tests: Likewise.
36605         * modules/frexp-nolibm-tests: Likewise.
36606         * modules/frexp-tests: Likewise.
36607         * modules/frexpl-nolibm-tests: Likewise.
36608         * modules/frexpl-tests: Likewise.
36609         * modules/getaddrinfo-tests: Likewise.
36610         * modules/inttypes-tests: Likewise.
36611         * modules/isfinite-tests: Likewise.
36612         * modules/isinf-tests: Likewise.
36613         * modules/ldexpl-tests: Likewise.
36614         * modules/locale-tests: Likewise.
36615         * modules/math-tests: Likewise.
36616         * modules/netdb-tests: Likewise.
36617         * modules/netinet_in-tests: Likewise.
36618         * modules/printf-frexp-tests: Likewise.
36619         * modules/printf-frexpl-tests: Likewise.
36620         * modules/priv-set-tests: Likewise.
36621         * modules/random_r-tests: Likewise.
36622         * modules/round-tests: Likewise.
36623         * modules/roundf-tests: Likewise.
36624         * modules/roundl-tests: Likewise.
36625         * modules/search-tests: Likewise.
36626         * modules/select-tests: Likewise.
36627         * modules/signal-tests: Likewise.
36628         * modules/stdbool-tests: Likewise.
36629         * modules/stddef-tests: Likewise.
36630         * modules/stdint-tests: Likewise.
36631         * modules/stdio-tests: Likewise.
36632         * modules/stdlib-tests: Likewise.
36633         * modules/string-tests: Likewise.
36634         * modules/strings-tests: Likewise.
36635         * modules/sys_select-tests: Likewise.
36636         * modules/sys_socket-tests: Likewise.
36637         * modules/sys_stat-tests: Likewise.
36638         * modules/sys_time-tests: Likewise.
36639         * modules/sys_utsname-tests: Likewise.
36640         * modules/sysexits-tests: Likewise.
36641         * modules/time-tests: Likewise.
36642         * modules/trunc-tests: Likewise.
36643         * modules/truncf-tests: Likewise.
36644         * modules/truncl-tests: Likewise.
36645         * modules/tsearch-tests: Likewise.
36646         * modules/unistd-tests: Likewise.
36647         * modules/wchar-tests: Likewise.
36648         * modules/wctype-tests: Likewise.
36649
36650         tests: fix license on several tests
36651         * tests/test-des.c: Update to GPLv3+.
36652         * tests/test-flock.c: Likewise.
36653         * tests/test-fsync.c: Likewise.
36654         * tests/test-futimens.h: Likewise.
36655         * tests/test-gc-arcfour.c: Likewise.
36656         * tests/test-gc-arctwo.c: Likewise.
36657         * tests/test-gc-des.c: Likewise.
36658         * tests/test-gc-hmac-md5.c: Likewise.
36659         * tests/test-gc-hmac-sha1.c: Likewise.
36660         * tests/test-gc-md2.c: Likewise.
36661         * tests/test-gc-md4.c: Likewise.
36662         * tests/test-gc-md5.c: Likewise.
36663         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36664         * tests/test-gc-rijndael.c: Likewise.
36665         * tests/test-gc-sha1.c: Likewise.
36666         * tests/test-gc.c: Likewise.
36667         * tests/test-getcwd.c: Likewise.
36668         * tests/test-link.c: Likewise.
36669         * tests/test-link.h: Likewise.
36670         * tests/test-lutimens.h: Likewise.
36671         * tests/test-md2.c: Likewise.
36672         * tests/test-md4.c: Likewise.
36673         * tests/test-mkdir.h: Likewise.
36674         * tests/test-rename.c: Likewise.
36675         * tests/test-rename.h: Likewise.
36676         * tests/test-safe-alloc.c: Likewise.
36677         * tests/test-utimens-common.h: Likewise.
36678         * tests/test-utimens.h: Likewise.
36679
36680         maint: sync license texts
36681         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36682         * doc/gpl-3.0.texi: Revert copyright year update.
36683         * doc/lgpl-3.0.texi: Likewise.
36684
36685 2009-12-29  Jim Meyering  <meyering@redhat.com>
36686
36687         update nearly all FSF copyright year lists to include 2009
36688         The files named by the following are exempted:
36689             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36690               test -f "$dst" && { echo "$dst"; continue; }
36691               test -d "$dst" || continue
36692               echo "$dst"/$(basename "$src")
36693             done > exempt
36694             git ls-files tests/unictype >> exempt
36695         In the remaining files, convert to all-interval notation if
36696         - there is already at least one year interval like 2000-2003
36697         - the file is maintained by me
36698         - the file is in lib/uni*/, where that style already prevails
36699         Otherwise, use update-copyright's default.
36700
36701 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36702         and Eric Blake  <ebb9@byu.net>
36703
36704         tests: don't require debug system() to pass
36705         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36706         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36707         * tests/test-unlink.h (test_unlink_func): Likewise.
36708         * tests/test-fstatat.c (main): ...into callers.
36709         * tests/test-lstat.c (main): Likewise.
36710         * tests/test-rmdir.c (main): Likewise.
36711         * tests/test-unlink.c (main): Likewise.
36712         * tests/test-unlinkat.c (main): Likewise.
36713         * tests/test-areadlink-with-size.c (main): Don't require a
36714         debug-only system call to pass, aiding cross-testing to mingw.
36715         * tests/test-areadlink.c (main): Likewise.
36716         * tests/test-areadlinkat-with-size.c (main): Likewise.
36717         * tests/test-areadlinkat.c (main): Likewise.
36718         * tests/test-canonicalize-lgpl.c (main): Likewise.
36719         * tests/test-canonicalize.c (main): Likewise.
36720         * tests/test-chown.c (main): Likewise.
36721         * tests/test-fchownat.c (main): Likewise.
36722         * tests/test-lchown.c (main): Likewise.
36723         * tests/test-fdutimensat.c (main): Likewise.
36724         * tests/test-futimens.c (main): Likewise.
36725         * tests/test-link.c (main): Likewise.
36726         * tests/test-linkat.c (main): Likewise.
36727         * tests/test-mkdir.c (main): Likewise.
36728         * tests/test-mkdirat.c (main): Likewise.
36729         * tests/test-mkfifo.c (main): Likewise.
36730         * tests/test-mkfifoat.c (main): Likewise.
36731         * tests/test-mknod.c (main): Likewise.
36732         * tests/test-readlink.c (main): Likewise.
36733         * tests/test-remove.c (main): Likewise.
36734         * tests/test-rename.c (main): Likewise.
36735         * tests/test-renameat.c (main): Likewise.
36736         * tests/test-symlink.c (main): Likewise.
36737         * tests/test-symlinkat.c (main): Likewise.
36738         * tests/test-utimens.c (main): Likewise.
36739         * tests/test-utimensat.c (main): Likewise.
36740
36741 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36742
36743         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36744         on $(UNUSED_PARAMETER_H) to avoid build failure.
36745
36746 2009-12-28  Jim Meyering  <meyering@redhat.com>
36747
36748         update-copyright: you may specify a max. line length other than 72
36749         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36750
36751         maint: use consistent FSF copyright line syntax
36752         * lib/posixtm.c: Add missing comma in FSF copyright line.
36753         * lib/posixtm.h: Likewise.
36754         * lib/getugroups.c: Add missing ", Inc.".
36755
36756         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36757         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36758         FSF copyright line.  Remove trailing blanks.
36759
36760 2009-12-28  Eric Blake  <ebb9@byu.net>
36761
36762         test-dup2: reduce dependencies
36763         * modules/cloexec (Configure.ac): Set witness.
36764         * modules/dup2-tests (Depends-on): Drop cloexec.
36765         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36766         not present.
36767         Suggested by Bruno Haible.
36768
36769 2009-12-26  Bruno Haible  <bruno@clisp.org>
36770
36771         Remove an unneeded dependency.
36772         * modules/fseterr (Depends-on): Remove dup2.
36773
36774 2009-12-26  Eric Blake  <ebb9@byu.net>
36775
36776         tests: use macros.h in more places
36777         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36778         (ASSERT_STREAM): Provide default of stderr.
36779         * tests/test-dirent-safer.c: Include macros.h, using alternate
36780         stream for assertions.
36781         * tests/test-dup-safer.c: Likewise.
36782         * tests/test-freopen-safer.c: Likewise.
36783         * tests/test-getopt.c: Likewise.
36784         * tests/test-openat-safer.c: Likewise.
36785         * tests/test-pipe.c: Likewise.
36786         * tests/test-popen-safer.c: Likewise.
36787         * modules/dirent-safer-tests (Files): Include macros.h.
36788         * modules/unistd-safer-tests (Files): Likewise.
36789         * modules/freopen-safer-tests (Files): Likewise.
36790         * modules/getopt-posix-tests (Files): Likewise.
36791         * modules/openat-safer-tests (Files): Likewise.
36792         * modules/pipe-tests (Files): Likewise.
36793
36794 2009-12-26  Bruno Haible  <bruno@clisp.org>
36795
36796         javacomp: Portability fix.
36797         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36798         that it also works on Solaris.
36799
36800 2009-12-26  Bruno Haible  <bruno@clisp.org>
36801
36802         localename: Fix storage allocation of gl_locale_name_thread's result.
36803         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36804         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36805         all platforms that have 'uselocale'.
36806         (gl_locale_name_thread_unsafe): New function, extracted from
36807         gl_locale_name_thread.
36808         (gl_locale_name_thread): Call struniq on all platforms that have
36809         'uselocale'.
36810         * tests/test-localename.c (test_locale_name_thread): Check that the
36811         resulting strings are permanently allocated.
36812         * modules/localename-tests (Depends-on): Add strdup.
36813
36814 2009-12-26  Bruno Haible  <bruno@clisp.org>
36815
36816         * tests/test-localename.c (categories): Fill in the strings.
36817
36818 2009-12-26  Jim Meyering  <meyering@redhat.com>
36819
36820         isdir: complete the removal of m4/isdir.m4
36821         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36822
36823         isdir: clean up, since at least grep still uses it
36824         * lib/isdir.c: Include "isdir.h".
36825         (S_ISDIR): Remove now-unneeded definition.
36826         * modules/isdir (Files): Add lib/isdir.h.
36827         * lib/isdir.h: New file, with declaration.
36828         * m4/isdir.m4: Remove file -- unneeded.
36829
36830 2009-12-25  Bruno Haible  <bruno@clisp.org>
36831
36832         selinux-h: Make generated .h files standalone.
36833         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36834         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36835         * lib/se-selinux.in.h: Likewise.
36836         * modules/selinux-h (Depends-on): Add unused-parameter.
36837         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36838         selinux/selinux.h and selinux/context.h.
36839         Suggested by Eric Blake.
36840
36841 2009-12-25  Bruno Haible  <bruno@clisp.org>
36842
36843         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36844         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36845         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36846         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36847         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36848
36849 2009-12-24  Bruno Haible  <bruno@clisp.org>
36850
36851         openat: Fix warning.
36852         * lib/openat-proc.c: Include <unistd.h>.
36853
36854 2009-12-24  Bruno Haible  <bruno@clisp.org>
36855
36856         New module 'unused-parameter'.
36857         * build-aux/unused-parameter.h: New file, extracted from earlier
36858         gnulib-common.m4.
36859         * modules/unused-parameter: New file.
36860         * lib/unistr.h: Include unused-parameter.h.
36861         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36862         _GL_UNUSED.
36863         * modules/unistr/base (Depends-on): Add unused-parameter.
36864
36865 2009-12-24  Bruno Haible  <bruno@clisp.org>
36866
36867         Add missing dependencies to 'extensions' module.
36868         * m4/extensions.m4: Add comment.
36869         * modules/accept4 (Depends-on): Add extensions.
36870         * modules/dup3 (Depends-on): Likewise.
36871         * modules/fcntl (Depends-on): Likewise.
36872         * modules/futimens (Depends-on): Likewise.
36873         * modules/mknod (Depends-on): Likewise.
36874         * modules/pipe2 (Depends-on): Likewise.
36875         * modules/stat-time (Depends-on): Likewise.
36876         * modules/strcasestr-simple (Depends-on): Likewise.
36877         * modules/strsignal (Depends-on): Likewise.
36878         * modules/utimensat (Depends-on): Likewise.
36879         * modules/localcharset (Depends-on): Likewise. Needed because of
36880         gl_FCNTL_O_FLAGS.
36881         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36882         AC_TYPE_MBSTATE_T.
36883         * modules/wcsnrtombs (Depends-on): Likewise.
36884         * modules/wcsrtombs (Depends-on): Likewise.
36885
36886 2009-12-24  Bruno Haible  <bruno@clisp.org>
36887
36888         binary-io: Avoid gcc warning due to SET_BINARY.
36889         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36890         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36891
36892 2009-12-24  Bruno Haible  <bruno@clisp.org>
36893
36894         Avoid future namespace pollution on glibc systems.
36895         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36896         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36897         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36898         glibc systems.
36899
36900 2009-12-24  Bruno Haible  <bruno@clisp.org>
36901
36902         Refactor common macros used in tests.
36903         * tests/macros.h: New file.
36904         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36905         and/or <stdlib.h>, if appropriate.
36906         (ASSERT, SIZEOF): Remove macros.
36907         * tests/test-areadlink-with-size.c: Likewise.
36908         * tests/test-areadlinkat.c: Likewise.
36909         * tests/test-areadlinkat-with-size.c: Likewise.
36910         * tests/test-argmatch.c: Likewise.
36911         * tests/test-argv-iter.c: Likewise.
36912         * tests/test-array-mergesort.c: Likewise.
36913         * tests/test-array_list.c: Likewise.
36914         * tests/test-array_oset.c: Likewise.
36915         * tests/test-avltree_list.c: Likewise.
36916         * tests/test-avltree_oset.c: Likewise.
36917         * tests/test-avltreehash_list.c: Likewise.
36918         * tests/test-base64.c: Likewise.
36919         * tests/test-binary-io.c: Likewise.
36920         * tests/test-bitrotate.c: Likewise.
36921         * tests/test-btowc.c: Likewise.
36922         * tests/test-byteswap.c: Likewise.
36923         * tests/test-c-ctype.c: Likewise.
36924         * tests/test-c-stack.c: Likewise.
36925         * tests/test-c-strcasecmp.c: Likewise.
36926         * tests/test-c-strcasestr.c: Likewise.
36927         * tests/test-c-strncasecmp.c: Likewise.
36928         * tests/test-c-strstr.c: Likewise.
36929         * tests/test-canonicalize-lgpl.c: Likewise.
36930         * tests/test-canonicalize.c: Likewise.
36931         * tests/test-carray_list.c: Likewise.
36932         * tests/test-ceilf1.c: Likewise.
36933         * tests/test-ceilf2.c: Likewise.
36934         * tests/test-ceill.c: Likewise.
36935         * tests/test-chown.c: Likewise.
36936         * tests/test-cloexec.c: Likewise.
36937         * tests/test-copy-acl.c: Likewise.
36938         * tests/test-copy-file.c: Likewise.
36939         * tests/test-count-one-bits.c: Likewise.
36940         * tests/test-dprintf-posix.c: Likewise.
36941         * tests/test-dup2.c: Likewise.
36942         * tests/test-dup3.c: Likewise.
36943         * tests/test-duplocale.c: Likewise.
36944         * tests/test-fbufmode.c: Likewise.
36945         * tests/test-fchdir.c: Likewise.
36946         * tests/test-fchownat.c: Likewise.
36947         * tests/test-fcntl-safer.c: Likewise.
36948         * tests/test-fcntl.c: Likewise.
36949         * tests/test-fdopendir.c: Likewise.
36950         * tests/test-fdutimensat.c: Likewise.
36951         * tests/test-fflush2.c: Likewise.
36952         * tests/test-file-has-acl.c: Likewise.
36953         * tests/test-filevercmp.c: Likewise.
36954         * tests/test-flock.c: Likewise.
36955         * tests/test-floorf1.c: Likewise.
36956         * tests/test-floorf2.c: Likewise.
36957         * tests/test-floorl.c: Likewise.
36958         * tests/test-fnmatch.c: Likewise.
36959         * tests/test-fopen.h: Likewise.
36960         * tests/test-fpending.c: Likewise.
36961         * tests/test-fprintf-posix.c: Likewise.
36962         * tests/test-fpurge.c: Likewise.
36963         * tests/test-freadable.c: Likewise.
36964         * tests/test-freadahead.c: Likewise.
36965         * tests/test-freading.c: Likewise.
36966         * tests/test-freadptr.c: Likewise.
36967         * tests/test-freadptr2.c: Likewise.
36968         * tests/test-freadseek.c: Likewise.
36969         * tests/test-freopen.c: Likewise.
36970         * tests/test-frexp.c: Likewise.
36971         * tests/test-frexpl.c: Likewise.
36972         * tests/test-fseek.c: Likewise.
36973         * tests/test-fseeko.c: Likewise.
36974         * tests/test-fstatat.c: Likewise.
36975         * tests/test-fstrcmp.c: Likewise.
36976         * tests/test-fsync.c: Likewise.
36977         * tests/test-ftell.c: Likewise.
36978         * tests/test-ftello.c: Likewise.
36979         * tests/test-func.c: Likewise.
36980         * tests/test-futimens.c: Likewise.
36981         * tests/test-fwritable.c: Likewise.
36982         * tests/test-fwriting.c: Likewise.
36983         * tests/test-getcwd.c: Likewise.
36984         * tests/test-getdate.c: Likewise.
36985         * tests/test-getdelim.c: Likewise.
36986         * tests/test-getdtablesize.c: Likewise.
36987         * tests/test-getgroups.c: Likewise.
36988         * tests/test-getline.c: Likewise.
36989         * tests/test-getndelim2.c: Likewise.
36990         * tests/test-glob.c: Likewise.
36991         * tests/test-hash.c: Likewise.
36992         * tests/test-i-ring.c: Likewise.
36993         * tests/test-iconv-utf.c: Likewise.
36994         * tests/test-iconv.c: Likewise.
36995         * tests/test-idpriv-drop.c: Likewise.
36996         * tests/test-idpriv-droptemp.c: Likewise.
36997         * tests/test-inet_ntop.c: Likewise.
36998         * tests/test-inet_pton.c: Likewise.
36999         * tests/test-isblank.c: Likewise.
37000         * tests/test-isfinite.c: Likewise.
37001         * tests/test-isinf.c: Likewise.
37002         * tests/test-isnan.c: Likewise.
37003         * tests/test-isnand.h: Likewise.
37004         * tests/test-isnanf.h: Likewise.
37005         * tests/test-isnanl.h: Likewise.
37006         * tests/test-lchown.c: Likewise.
37007         * tests/test-ldexpl.c: Likewise.
37008         * tests/test-link.c: Likewise.
37009         * tests/test-linkat.c: Likewise.
37010         * tests/test-linked_list.c: Likewise.
37011         * tests/test-linkedhash_list.c: Likewise.
37012         * tests/test-localename.c: Likewise.
37013         * tests/test-lseek.c: Likewise.
37014         * tests/test-lstat.c: Likewise.
37015         * tests/test-mbmemcasecmp.c: Likewise.
37016         * tests/test-mbmemcasecoll.c: Likewise.
37017         * tests/test-mbrtowc.c: Likewise.
37018         * tests/test-mbscasecmp.c: Likewise.
37019         * tests/test-mbscasestr1.c: Likewise.
37020         * tests/test-mbscasestr2.c: Likewise.
37021         * tests/test-mbscasestr3.c: Likewise.
37022         * tests/test-mbscasestr4.c: Likewise.
37023         * tests/test-mbschr.c: Likewise.
37024         * tests/test-mbscspn.c: Likewise.
37025         * tests/test-mbsinit.c: Likewise.
37026         * tests/test-mbsncasecmp.c: Likewise.
37027         * tests/test-mbsnrtowcs.c: Likewise.
37028         * tests/test-mbspbrk.c: Likewise.
37029         * tests/test-mbspcasecmp.c: Likewise.
37030         * tests/test-mbsrchr.c: Likewise.
37031         * tests/test-mbsrtowcs.c: Likewise.
37032         * tests/test-mbsspn.c: Likewise.
37033         * tests/test-mbsstr1.c: Likewise.
37034         * tests/test-mbsstr2.c: Likewise.
37035         * tests/test-mbsstr3.c: Likewise.
37036         * tests/test-memchr.c: Likewise.
37037         * tests/test-memchr2.c: Likewise.
37038         * tests/test-memcmp.c: Likewise.
37039         * tests/test-memmem.c: Likewise.
37040         * tests/test-memrchr.c: Likewise.
37041         * tests/test-mkdir.c: Likewise.
37042         * tests/test-mkdirat.c: Likewise.
37043         * tests/test-mkfifo.c: Likewise.
37044         * tests/test-mkfifoat.c: Likewise.
37045         * tests/test-mknod.c: Likewise.
37046         * tests/test-nanosleep.c: Likewise.
37047         * tests/test-nl_langinfo.c: Likewise.
37048         * tests/test-obstack-printf.c: Likewise.
37049         * tests/test-open.c: Likewise.
37050         * tests/test-openat.c: Likewise.
37051         * tests/test-pipe-filter-gi1.c: Likewise.
37052         * tests/test-pipe-filter-gi2-main.c: Likewise.
37053         * tests/test-pipe-filter-ii1.c: Likewise.
37054         * tests/test-pipe-filter-ii2-main.c: Likewise.
37055         * tests/test-pipe2.c: Likewise.
37056         * tests/test-popen.h: Likewise.
37057         * tests/test-posixtm.c: Likewise.
37058         * tests/test-pread.c: Likewise.
37059         * tests/test-printf-frexp.c: Likewise.
37060         * tests/test-printf-frexpl.c: Likewise.
37061         * tests/test-printf-posix.c: Likewise.
37062         * tests/test-priv-set.c: Likewise.
37063         * tests/test-quotearg.c: Likewise.
37064         * tests/test-random_r.c: Likewise.
37065         * tests/test-rawmemchr.c: Likewise.
37066         * tests/test-rbtree_list.c: Likewise.
37067         * tests/test-rbtree_oset.c: Likewise.
37068         * tests/test-rbtreehash_list.c: Likewise.
37069         * tests/test-readlink.c: Likewise.
37070         * tests/test-remove.c: Likewise.
37071         * tests/test-rename.c: Likewise.
37072         * tests/test-renameat.c: Likewise.
37073         * tests/test-rmdir.c: Likewise.
37074         * tests/test-round1.c: Likewise.
37075         * tests/test-roundf1.c: Likewise.
37076         * tests/test-roundl.c: Likewise.
37077         * tests/test-safe-alloc.c: Likewise.
37078         * tests/test-sameacls.c: Likewise.
37079         * tests/test-set-mode-acl.c: Likewise.
37080         * tests/test-setenv.c: Likewise.
37081         * tests/test-sigaction.c: Likewise.
37082         * tests/test-signbit.c: Likewise.
37083         * tests/test-sleep.c: Likewise.
37084         * tests/test-snprintf-posix.c: Likewise.
37085         * tests/test-snprintf.c: Likewise.
37086         * tests/test-sprintf-posix.c: Likewise.
37087         * tests/test-stat-time.c: Likewise.
37088         * tests/test-stat.c: Likewise.
37089         * tests/test-strcasestr.c: Likewise.
37090         * tests/test-strchrnul.c: Likewise.
37091         * tests/test-strerror.c: Likewise.
37092         * tests/test-striconv.c: Likewise.
37093         * tests/test-striconveh.c: Likewise.
37094         * tests/test-striconveha.c: Likewise.
37095         * tests/test-strsignal.c: Likewise.
37096         * tests/test-strstr.c: Likewise.
37097         * tests/test-strtod.c: Likewise.
37098         * tests/test-strverscmp.c: Likewise.
37099         * tests/test-symlink.c: Likewise.
37100         * tests/test-symlinkat.c: Likewise.
37101         * tests/test-trunc1.c: Likewise.
37102         * tests/test-trunc2.c: Likewise.
37103         * tests/test-truncf1.c: Likewise.
37104         * tests/test-truncf2.c: Likewise.
37105         * tests/test-truncl.c: Likewise.
37106         * tests/test-uname.c: Likewise.
37107         * tests/test-unlink.c: Likewise.
37108         * tests/test-unlinkat.c: Likewise.
37109         * tests/test-unsetenv.c: Likewise.
37110         * tests/test-usleep.c: Likewise.
37111         * tests/test-utimens.c: Likewise.
37112         * tests/test-utimensat.c: Likewise.
37113         * tests/test-vasnprintf-posix.c: Likewise.
37114         * tests/test-vasnprintf-posix2.c: Likewise.
37115         * tests/test-vasnprintf.c: Likewise.
37116         * tests/test-vasprintf-posix.c: Likewise.
37117         * tests/test-vasprintf.c: Likewise.
37118         * tests/test-vdprintf-posix.c: Likewise.
37119         * tests/test-vfprintf-posix.c: Likewise.
37120         * tests/test-vprintf-posix.c: Likewise.
37121         * tests/test-vsnprintf-posix.c: Likewise.
37122         * tests/test-vsnprintf.c: Likewise.
37123         * tests/test-vsprintf-posix.c: Likewise.
37124         * tests/test-wcrtomb.c: Likewise.
37125         * tests/test-wcsnrtombs.c: Likewise.
37126         * tests/test-wcsrtombs.c: Likewise.
37127         * tests/test-wctype.c: Likewise.
37128         * tests/test-wcwidth.c: Likewise.
37129         * tests/test-xfprintf-posix.c: Likewise.
37130         * tests/test-xmemdup0.c: Likewise.
37131         * tests/test-xprintf-posix.c: Likewise.
37132         * tests/test-xvasprintf.c: Likewise.
37133         * tests/unicase/test-locale-language.c: Likewise.
37134         * tests/unicase/test-mapping-part1.h: Likewise.
37135         * tests/unicase/test-predicate-part1.h: Likewise.
37136         * tests/unicase/test-u8-casecmp.c: Likewise.
37137         * tests/unicase/test-u8-casecoll.c: Likewise.
37138         * tests/unicase/test-u8-casefold.c: Likewise.
37139         * tests/unicase/test-u8-is-cased.c: Likewise.
37140         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37141         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37142         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37143         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37144         * tests/unicase/test-u8-tolower.c: Likewise.
37145         * tests/unicase/test-u8-totitle.c: Likewise.
37146         * tests/unicase/test-u8-toupper.c: Likewise.
37147         * tests/unicase/test-u16-casecmp.c: Likewise.
37148         * tests/unicase/test-u16-casecoll.c: Likewise.
37149         * tests/unicase/test-u16-casefold.c: Likewise.
37150         * tests/unicase/test-u16-is-cased.c: Likewise.
37151         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37152         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37153         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37154         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37155         * tests/unicase/test-u16-tolower.c: Likewise.
37156         * tests/unicase/test-u16-totitle.c: Likewise.
37157         * tests/unicase/test-u16-toupper.c: Likewise.
37158         * tests/unicase/test-u32-casecmp.c: Likewise.
37159         * tests/unicase/test-u32-casecoll.c: Likewise.
37160         * tests/unicase/test-u32-casefold.c: Likewise.
37161         * tests/unicase/test-u32-is-cased.c: Likewise.
37162         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37163         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37164         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37165         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37166         * tests/unicase/test-u32-tolower.c: Likewise.
37167         * tests/unicase/test-u32-totitle.c: Likewise.
37168         * tests/unicase/test-u32-toupper.c: Likewise.
37169         * tests/unicase/test-ulc-casecmp.c: Likewise.
37170         * tests/unicase/test-ulc-casecoll.c: Likewise.
37171         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37172         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37173         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37174         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37175         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37176         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37177         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37178         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37179         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37180         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37181         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37182         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37183         * tests/unictype/test-bidi_byname.c: Likewise.
37184         * tests/unictype/test-bidi_name.c: Likewise.
37185         * tests/unictype/test-bidi_of.c: Likewise.
37186         * tests/unictype/test-bidi_test.c: Likewise.
37187         * tests/unictype/test-block_list.c: Likewise.
37188         * tests/unictype/test-block_of.c: Likewise.
37189         * tests/unictype/test-block_test.c: Likewise.
37190         * tests/unictype/test-categ_and.c: Likewise.
37191         * tests/unictype/test-categ_and_not.c: Likewise.
37192         * tests/unictype/test-categ_byname.c: Likewise.
37193         * tests/unictype/test-categ_name.c: Likewise.
37194         * tests/unictype/test-categ_none.c: Likewise.
37195         * tests/unictype/test-categ_of.c: Likewise.
37196         * tests/unictype/test-categ_or.c: Likewise.
37197         * tests/unictype/test-categ_test_withtable.c: Likewise.
37198         * tests/unictype/test-combining.c: Likewise.
37199         * tests/unictype/test-decdigit.c: Likewise.
37200         * tests/unictype/test-digit.c: Likewise.
37201         * tests/unictype/test-mirror.c: Likewise.
37202         * tests/unictype/test-numeric.c: Likewise.
37203         * tests/unictype/test-pr_byname.c: Likewise.
37204         * tests/unictype/test-pr_test.c: Likewise.
37205         * tests/unictype/test-predicate-part1.h: Likewise.
37206         * tests/unictype/test-scripts.c: Likewise.
37207         * tests/unictype/test-sy_c_ident.c: Likewise.
37208         * tests/unictype/test-sy_java_ident.c: Likewise.
37209         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37210         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37211         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37212         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37213         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37214         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37215         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37216         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37217         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37218         * tests/uninorm/test-compat-decomposition.c: Likewise.
37219         * tests/uninorm/test-composition.c: Likewise.
37220         * tests/uninorm/test-decomposing-form.c: Likewise.
37221         * tests/uninorm/test-decomposition.c: Likewise.
37222         * tests/uninorm/test-u8-nfc.c: Likewise.
37223         * tests/uninorm/test-u8-nfd.c: Likewise.
37224         * tests/uninorm/test-u8-nfkc.c: Likewise.
37225         * tests/uninorm/test-u8-nfkd.c: Likewise.
37226         * tests/uninorm/test-u8-normcmp.c: Likewise.
37227         * tests/uninorm/test-u8-normcoll.c: Likewise.
37228         * tests/uninorm/test-u16-nfc.c: Likewise.
37229         * tests/uninorm/test-u16-nfd.c: Likewise.
37230         * tests/uninorm/test-u16-nfkc.c: Likewise.
37231         * tests/uninorm/test-u16-nfkd.c: Likewise.
37232         * tests/uninorm/test-u16-normcmp.c: Likewise.
37233         * tests/uninorm/test-u16-normcoll.c: Likewise.
37234         * tests/uninorm/test-u32-nfc.c: Likewise.
37235         * tests/uninorm/test-u32-nfd.c: Likewise.
37236         * tests/uninorm/test-u32-nfkc.c: Likewise.
37237         * tests/uninorm/test-u32-nfkd.c: Likewise.
37238         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37239         * tests/uninorm/test-u32-normcmp.c: Likewise.
37240         * tests/uninorm/test-u32-normcoll.c: Likewise.
37241         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37242         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37243         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37244         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37245         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37246         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37247         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37248         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37249         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37250         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37251         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37252         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37253         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37254         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37255         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37256         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37257         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37258         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37259         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37260         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37261         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37262         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37263         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37264         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37265         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37266         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37267         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37268         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37269         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37270         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37271         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37272         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37273         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37274         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37275         * tests/uniwidth/test-u8-width.c: Likewise.
37276         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37277         * tests/uniwidth/test-u16-width.c: Likewise.
37278         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37279         * tests/uniwidth/test-u32-width.c: Likewise.
37280         * tests/uniwidth/test-uc_width.c: Likewise.
37281         * tests/uniwidth/test-uc_width2.c: Likewise.
37282         * modules/acl-tests (Files): Add tests/macros.h.
37283         * modules/areadlink-tests (Files): Likewise.
37284         * modules/areadlink-with-size-tests (Files): Likewise.
37285         * modules/areadlinkat-tests (Files): Likewise.
37286         * modules/areadlinkat-with-size-tests (Files): Likewise.
37287         * modules/argmatch-tests (Files): Likewise.
37288         * modules/argv-iter-tests (Files): Likewise.
37289         * modules/array-list-tests (Files): Likewise.
37290         * modules/array-mergesort-tests (Files): Likewise.
37291         * modules/array-oset-tests (Files): Likewise.
37292         * modules/avltree-list-tests (Files): Likewise.
37293         * modules/avltree-oset-tests (Files): Likewise.
37294         * modules/avltreehash-list-tests (Files): Likewise.
37295         * modules/base64-tests (Files): Likewise.
37296         * modules/binary-io-tests (Files): Likewise.
37297         * modules/bitrotate-tests (Files): Likewise.
37298         * modules/btowc-tests (Files): Likewise.
37299         * modules/byteswap-tests (Files): Likewise.
37300         * modules/c-ctype-tests (Files): Likewise.
37301         * modules/c-stack-tests (Files): Likewise.
37302         * modules/c-strcase-tests (Files): Likewise.
37303         * modules/c-strcasestr-tests (Files): Likewise.
37304         * modules/c-strstr-tests (Files): Likewise.
37305         * modules/canonicalize-lgpl-tests (Files): Likewise.
37306         * modules/canonicalize-tests (Files): Likewise.
37307         * modules/carray-list-tests (Files): Likewise.
37308         * modules/ceilf-tests (Files): Likewise.
37309         * modules/ceill-tests (Files): Likewise.
37310         * modules/chown-tests (Files): Likewise.
37311         * modules/cloexec-tests (Files): Likewise.
37312         * modules/copy-file-tests (Files): Likewise.
37313         * modules/count-one-bits-tests (Files): Likewise.
37314         * modules/dprintf-posix-tests (Files): Likewise.
37315         * modules/dup2-tests (Files): Likewise.
37316         * modules/dup3-tests (Files): Likewise.
37317         * modules/duplocale-tests (Files): Likewise.
37318         * modules/fbufmode-tests (Files): Likewise.
37319         * modules/fchdir-tests (Files): Likewise.
37320         * modules/fcntl-safer-tests (Files): Likewise.
37321         * modules/fcntl-tests (Files): Likewise.
37322         * modules/fdopendir-tests (Files): Likewise.
37323         * modules/fdutimensat-tests (Files): Likewise.
37324         * modules/fflush-tests (Files): Likewise.
37325         * modules/filevercmp-tests (Files): Likewise.
37326         * modules/flock-tests (Files): Likewise.
37327         * modules/floorf-tests (Files): Likewise.
37328         * modules/floorl-tests (Files): Likewise.
37329         * modules/fnmatch-tests (Files): Likewise.
37330         * modules/fopen-safer-tests (Files): Likewise.
37331         * modules/fopen-tests (Files): Likewise.
37332         * modules/fpending-tests (Files): Likewise.
37333         * modules/fprintf-posix-tests (Files): Likewise.
37334         * modules/fpurge-tests (Files): Likewise.
37335         * modules/freadable-tests (Files): Likewise.
37336         * modules/freadahead-tests (Files): Likewise.
37337         * modules/freading-tests (Files): Likewise.
37338         * modules/freadptr-tests (Files): Likewise.
37339         * modules/freadseek-tests (Files): Likewise.
37340         * modules/freopen-tests (Files): Likewise.
37341         * modules/frexp-nolibm-tests (Files): Likewise.
37342         * modules/frexp-tests (Files): Likewise.
37343         * modules/frexpl-nolibm-tests (Files): Likewise.
37344         * modules/frexpl-tests (Files): Likewise.
37345         * modules/fseek-tests (Files): Likewise.
37346         * modules/fseeko-tests (Files): Likewise.
37347         * modules/fstrcmp-tests (Files): Likewise.
37348         * modules/fsync-tests (Files): Likewise.
37349         * modules/ftell-tests (Files): Likewise.
37350         * modules/ftello-tests (Files): Likewise.
37351         * modules/func-tests (Files): Likewise.
37352         * modules/futimens-tests (Files): Likewise.
37353         * modules/fwritable-tests (Files): Likewise.
37354         * modules/fwriting-tests (Files): Likewise.
37355         * modules/getcwd-tests (Files): Likewise.
37356         * modules/getdate-tests (Files): Likewise.
37357         * modules/getdelim-tests (Files): Likewise.
37358         * modules/getdtablesize-tests (Files): Likewise.
37359         * modules/getgroups-tests (Files): Likewise.
37360         * modules/getline-tests (Files): Likewise.
37361         * modules/getndelim2-tests (Files): Likewise.
37362         * modules/glob-tests (Files): Likewise.
37363         * modules/hash-tests (Files): Likewise.
37364         * modules/i-ring-tests (Files): Likewise.
37365         * modules/iconv-tests (Files): Likewise.
37366         * modules/iconv_open-utf-tests (Files): Likewise.
37367         * modules/idpriv-drop-tests (Files): Likewise.
37368         * modules/idpriv-droptemp-tests (Files): Likewise.
37369         * modules/inet_ntop-tests (Files): Likewise.
37370         * modules/inet_pton-tests (Files): Likewise.
37371         * modules/isblank-tests (Files): Likewise.
37372         * modules/isfinite-tests (Files): Likewise.
37373         * modules/isinf-tests (Files): Likewise.
37374         * modules/isnan-tests (Files): Likewise.
37375         * modules/isnand-nolibm-tests (Files): Likewise.
37376         * modules/isnand-tests (Files): Likewise.
37377         * modules/isnanf-nolibm-tests (Files): Likewise.
37378         * modules/isnanf-tests (Files): Likewise.
37379         * modules/isnanl-nolibm-tests (Files): Likewise.
37380         * modules/isnanl-tests (Files): Likewise.
37381         * modules/lchown-tests (Files): Likewise.
37382         * modules/ldexpl-tests (Files): Likewise.
37383         * modules/link-tests (Files): Likewise.
37384         * modules/linkat-tests (Files): Likewise.
37385         * modules/linked-list-tests (Files): Likewise.
37386         * modules/linkedhash-list-tests (Files): Likewise.
37387         * modules/localename-tests (Files): Likewise.
37388         * modules/lseek-tests (Files): Likewise.
37389         * modules/lstat-tests (Files): Likewise.
37390         * modules/mbmemcasecmp-tests (Files): Likewise.
37391         * modules/mbmemcasecoll-tests (Files): Likewise.
37392         * modules/mbrtowc-tests (Files): Likewise.
37393         * modules/mbscasecmp-tests (Files): Likewise.
37394         * modules/mbscasestr-tests (Files): Likewise.
37395         * modules/mbschr-tests (Files): Likewise.
37396         * modules/mbscspn-tests (Files): Likewise.
37397         * modules/mbsinit-tests (Files): Likewise.
37398         * modules/mbsncasecmp-tests (Files): Likewise.
37399         * modules/mbsnrtowcs-tests (Files): Likewise.
37400         * modules/mbspbrk-tests (Files): Likewise.
37401         * modules/mbspcasecmp-tests (Files): Likewise.
37402         * modules/mbsrchr-tests (Files): Likewise.
37403         * modules/mbsrtowcs-tests (Files): Likewise.
37404         * modules/mbsspn-tests (Files): Likewise.
37405         * modules/mbsstr-tests (Files): Likewise.
37406         * modules/memchr-tests (Files): Likewise.
37407         * modules/memchr2-tests (Files): Likewise.
37408         * modules/memcmp-tests (Files): Likewise.
37409         * modules/memmem-tests (Files): Likewise.
37410         * modules/memrchr-tests (Files): Likewise.
37411         * modules/mkdir-tests (Files): Likewise.
37412         * modules/mkfifo-tests (Files): Likewise.
37413         * modules/mkfifoat-tests (Files): Likewise.
37414         * modules/mknod-tests (Files): Likewise.
37415         * modules/nanosleep-tests (Files): Likewise.
37416         * modules/nl_langinfo-tests (Files): Likewise.
37417         * modules/obstack-printf-tests (Files): Likewise.
37418         * modules/open-tests (Files): Likewise.
37419         * modules/openat-tests (Files): Likewise.
37420         * modules/pipe-filter-gi-tests (Files): Likewise.
37421         * modules/pipe-filter-ii-tests (Files): Likewise.
37422         * modules/pipe2-tests (Files): Likewise.
37423         * modules/popen-safer-tests (Files): Likewise.
37424         * modules/popen-tests (Files): Likewise.
37425         * modules/posixtm-tests (Files): Likewise.
37426         * modules/pread-tests (Files): Likewise.
37427         * modules/printf-frexp-tests (Files): Likewise.
37428         * modules/printf-frexpl-tests (Files): Likewise.
37429         * modules/printf-posix-tests (Files): Likewise.
37430         * modules/priv-set-tests (Files): Likewise.
37431         * modules/quotearg-tests (Files): Likewise.
37432         * modules/random_r-tests (Files): Likewise.
37433         * modules/rawmemchr-tests (Files): Likewise.
37434         * modules/rbtree-list-tests (Files): Likewise.
37435         * modules/rbtree-oset-tests (Files): Likewise.
37436         * modules/rbtreehash-list-tests (Files): Likewise.
37437         * modules/readlink-tests (Files): Likewise.
37438         * modules/remove-tests (Files): Likewise.
37439         * modules/rename-tests (Files): Likewise.
37440         * modules/renameat-tests (Files): Likewise.
37441         * modules/rmdir-tests (Files): Likewise.
37442         * modules/round-tests (Files): Likewise.
37443         * modules/roundf-tests (Files): Likewise.
37444         * modules/roundl-tests (Files): Likewise.
37445         * modules/safe-alloc-tests (Files): Likewise.
37446         * modules/setenv-tests (Files): Likewise.
37447         * modules/sigaction-tests (Files): Likewise.
37448         * modules/signbit-tests (Files): Likewise.
37449         * modules/sleep-tests (Files): Likewise.
37450         * modules/snprintf-posix-tests (Files): Likewise.
37451         * modules/snprintf-tests (Files): Likewise.
37452         * modules/sprintf-posix-tests (Files): Likewise.
37453         * modules/stat-tests (Files): Likewise.
37454         * modules/stat-time-tests (Files): Likewise.
37455         * modules/strcasestr-tests (Files): Likewise.
37456         * modules/strchrnul-tests (Files): Likewise.
37457         * modules/strerror-tests (Files): Likewise.
37458         * modules/striconv-tests (Files): Likewise.
37459         * modules/striconveh-tests (Files): Likewise.
37460         * modules/striconveha-tests (Files): Likewise.
37461         * modules/strsignal-tests (Files): Likewise.
37462         * modules/strstr-tests (Files): Likewise.
37463         * modules/strtod-tests (Files): Likewise.
37464         * modules/strverscmp-tests (Files): Likewise.
37465         * modules/symlink-tests (Files): Likewise.
37466         * modules/symlinkat-tests (Files): Likewise.
37467         * modules/trunc-tests (Files): Likewise.
37468         * modules/truncf-tests (Files): Likewise.
37469         * modules/truncl-tests (Files): Likewise.
37470         * modules/uname-tests (Files): Likewise.
37471         * modules/unicase/cased-tests (Files): Likewise.
37472         * modules/unicase/ignorable-tests (Files): Likewise.
37473         * modules/unicase/locale-language-tests (Files): Likewise.
37474         * modules/unicase/tolower-tests (Files): Likewise.
37475         * modules/unicase/totitle-tests (Files): Likewise.
37476         * modules/unicase/toupper-tests (Files): Likewise.
37477         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37478         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37479         * modules/unicase/u8-casefold-tests (Files): Likewise.
37480         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37481         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37482         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37483         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37484         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37485         * modules/unicase/u8-tolower-tests (Files): Likewise.
37486         * modules/unicase/u8-totitle-tests (Files): Likewise.
37487         * modules/unicase/u8-toupper-tests (Files): Likewise.
37488         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37489         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37490         * modules/unicase/u16-casefold-tests (Files): Likewise.
37491         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37492         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37493         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37494         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37495         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37496         * modules/unicase/u16-tolower-tests (Files): Likewise.
37497         * modules/unicase/u16-totitle-tests (Files): Likewise.
37498         * modules/unicase/u16-toupper-tests (Files): Likewise.
37499         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37500         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37501         * modules/unicase/u32-casefold-tests (Files): Likewise.
37502         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37503         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37504         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37505         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37506         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37507         * modules/unicase/u32-tolower-tests (Files): Likewise.
37508         * modules/unicase/u32-totitle-tests (Files): Likewise.
37509         * modules/unicase/u32-toupper-tests (Files): Likewise.
37510         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37511         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37512         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37513         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37514         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37515         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37516         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37517         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37518         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37519         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37520         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37521         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37522         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37523         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37524         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37525         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37526         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37527         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37528         * modules/unictype/block-list-tests (Files): Likewise.
37529         * modules/unictype/block-of-tests (Files): Likewise.
37530         * modules/unictype/block-test-tests (Files): Likewise.
37531         * modules/unictype/category-C-tests (Files): Likewise.
37532         * modules/unictype/category-Cc-tests (Files): Likewise.
37533         * modules/unictype/category-Cf-tests (Files): Likewise.
37534         * modules/unictype/category-Cn-tests (Files): Likewise.
37535         * modules/unictype/category-Co-tests (Files): Likewise.
37536         * modules/unictype/category-Cs-tests (Files): Likewise.
37537         * modules/unictype/category-L-tests (Files): Likewise.
37538         * modules/unictype/category-Ll-tests (Files): Likewise.
37539         * modules/unictype/category-Lm-tests (Files): Likewise.
37540         * modules/unictype/category-Lo-tests (Files): Likewise.
37541         * modules/unictype/category-Lt-tests (Files): Likewise.
37542         * modules/unictype/category-Lu-tests (Files): Likewise.
37543         * modules/unictype/category-M-tests (Files): Likewise.
37544         * modules/unictype/category-Mc-tests (Files): Likewise.
37545         * modules/unictype/category-Me-tests (Files): Likewise.
37546         * modules/unictype/category-Mn-tests (Files): Likewise.
37547         * modules/unictype/category-N-tests (Files): Likewise.
37548         * modules/unictype/category-Nd-tests (Files): Likewise.
37549         * modules/unictype/category-Nl-tests (Files): Likewise.
37550         * modules/unictype/category-No-tests (Files): Likewise.
37551         * modules/unictype/category-P-tests (Files): Likewise.
37552         * modules/unictype/category-Pc-tests (Files): Likewise.
37553         * modules/unictype/category-Pd-tests (Files): Likewise.
37554         * modules/unictype/category-Pe-tests (Files): Likewise.
37555         * modules/unictype/category-Pf-tests (Files): Likewise.
37556         * modules/unictype/category-Pi-tests (Files): Likewise.
37557         * modules/unictype/category-Po-tests (Files): Likewise.
37558         * modules/unictype/category-Ps-tests (Files): Likewise.
37559         * modules/unictype/category-S-tests (Files): Likewise.
37560         * modules/unictype/category-Sc-tests (Files): Likewise.
37561         * modules/unictype/category-Sk-tests (Files): Likewise.
37562         * modules/unictype/category-Sm-tests (Files): Likewise.
37563         * modules/unictype/category-So-tests (Files): Likewise.
37564         * modules/unictype/category-Z-tests (Files): Likewise.
37565         * modules/unictype/category-Zl-tests (Files): Likewise.
37566         * modules/unictype/category-Zp-tests (Files): Likewise.
37567         * modules/unictype/category-Zs-tests (Files): Likewise.
37568         * modules/unictype/category-and-not-tests (Files): Likewise.
37569         * modules/unictype/category-and-tests (Files): Likewise.
37570         * modules/unictype/category-byname-tests (Files): Likewise.
37571         * modules/unictype/category-name-tests (Files): Likewise.
37572         * modules/unictype/category-none-tests (Files): Likewise.
37573         * modules/unictype/category-of-tests (Files): Likewise.
37574         * modules/unictype/category-or-tests (Files): Likewise.
37575         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37576         * modules/unictype/combining-class-tests (Files): Likewise.
37577         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37578         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37579         * modules/unictype/ctype-blank-tests (Files): Likewise.
37580         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37581         * modules/unictype/ctype-digit-tests (Files): Likewise.
37582         * modules/unictype/ctype-graph-tests (Files): Likewise.
37583         * modules/unictype/ctype-lower-tests (Files): Likewise.
37584         * modules/unictype/ctype-print-tests (Files): Likewise.
37585         * modules/unictype/ctype-punct-tests (Files): Likewise.
37586         * modules/unictype/ctype-space-tests (Files): Likewise.
37587         * modules/unictype/ctype-upper-tests (Files): Likewise.
37588         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37589         * modules/unictype/decimal-digit-tests (Files): Likewise.
37590         * modules/unictype/digit-tests (Files): Likewise.
37591         * modules/unictype/mirror-tests (Files): Likewise.
37592         * modules/unictype/numeric-tests (Files): Likewise.
37593         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37594         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37595         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37596         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37597         Likewise.
37598         * modules/unictype/property-bidi-block-separator-tests (Files):
37599         Likewise.
37600         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37601         Likewise.
37602         * modules/unictype/property-bidi-common-separator-tests (Files):
37603         Likewise.
37604         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37605         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37606         Likewise.
37607         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37608         Likewise.
37609         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37610         Likewise.
37611         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37612         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37613         Likewise.
37614         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37615         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37616         Likewise.
37617         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37618         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37619         * modules/unictype/property-bidi-segment-separator-tests (Files):
37620         Likewise.
37621         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37622         * modules/unictype/property-byname-tests (Files): Likewise.
37623         * modules/unictype/property-combining-tests (Files): Likewise.
37624         * modules/unictype/property-composite-tests (Files): Likewise.
37625         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37626         * modules/unictype/property-dash-tests (Files): Likewise.
37627         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37628         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37629         Likewise.
37630         * modules/unictype/property-deprecated-tests (Files): Likewise.
37631         * modules/unictype/property-diacritic-tests (Files): Likewise.
37632         * modules/unictype/property-extender-tests (Files): Likewise.
37633         * modules/unictype/property-format-control-tests (Files): Likewise.
37634         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37635         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37636         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37637         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37638         * modules/unictype/property-hyphen-tests (Files): Likewise.
37639         * modules/unictype/property-id-continue-tests (Files): Likewise.
37640         * modules/unictype/property-id-start-tests (Files): Likewise.
37641         * modules/unictype/property-ideographic-tests (Files): Likewise.
37642         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37643         * modules/unictype/property-ids-trinary-operator-tests (Files):
37644         Likewise.
37645         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37646         * modules/unictype/property-iso-control-tests (Files): Likewise.
37647         * modules/unictype/property-join-control-tests (Files): Likewise.
37648         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37649         * modules/unictype/property-line-separator-tests (Files): Likewise.
37650         * modules/unictype/property-logical-order-exception-tests (Files):
37651         Likewise.
37652         * modules/unictype/property-lowercase-tests (Files): Likewise.
37653         * modules/unictype/property-math-tests (Files): Likewise.
37654         * modules/unictype/property-non-break-tests (Files): Likewise.
37655         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37656         * modules/unictype/property-numeric-tests (Files): Likewise.
37657         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37658         * modules/unictype/property-other-default-ignorable-code-point-tests
37659         (Files): Likewise.
37660         * modules/unictype/property-other-grapheme-extend-tests (Files):
37661         Likewise.
37662         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37663         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37664         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37665         * modules/unictype/property-other-math-tests (Files): Likewise.
37666         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37667         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37668         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37669         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37670         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37671         * modules/unictype/property-private-use-tests (Files): Likewise.
37672         * modules/unictype/property-punctuation-tests (Files): Likewise.
37673         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37674         * modules/unictype/property-radical-tests (Files): Likewise.
37675         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37676         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37677         * modules/unictype/property-space-tests (Files): Likewise.
37678         * modules/unictype/property-terminal-punctuation-tests (Files):
37679         Likewise.
37680         * modules/unictype/property-test-tests (Files): Likewise.
37681         * modules/unictype/property-titlecase-tests (Files): Likewise.
37682         * modules/unictype/property-unassigned-code-value-tests (Files):
37683         Likewise.
37684         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37685         * modules/unictype/property-uppercase-tests (Files): Likewise.
37686         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37687         * modules/unictype/property-white-space-tests (Files): Likewise.
37688         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37689         * modules/unictype/property-xid-start-tests (Files): Likewise.
37690         * modules/unictype/property-zero-width-tests (Files): Likewise.
37691         * modules/unictype/scripts-tests (Files): Likewise.
37692         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37693         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37694         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37695         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37696         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37697         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37698         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37699         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37700         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37701         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37702         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37703         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37704         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37705         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37706         * modules/uninorm/composition-tests (Files): Likewise.
37707         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37708         * modules/uninorm/decomposition-tests (Files): Likewise.
37709         * modules/uninorm/filter-tests (Files): Likewise.
37710         * modules/uninorm/nfc-tests (Files): Likewise.
37711         * modules/uninorm/nfd-tests (Files): Likewise.
37712         * modules/uninorm/nfkc-tests (Files): Likewise.
37713         * modules/uninorm/nfkd-tests (Files): Likewise.
37714         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37715         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37716         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37717         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37718         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37719         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37720         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37721         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37722         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37723         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37724         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37725         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37726         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37727         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37728         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37729         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37730         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37731         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37732         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37733         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37734         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37735         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37736         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37737         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37738         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37739         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37740         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37741         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37742         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37743         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37744         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37745         * modules/uniwidth/u8-width-tests (Files): Likewise.
37746         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37747         * modules/uniwidth/u16-width-tests (Files): Likewise.
37748         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37749         * modules/uniwidth/u32-width-tests (Files): Likewise.
37750         * modules/uniwidth/width-tests (Files): Likewise.
37751         * modules/unlink-tests (Files): Likewise.
37752         * modules/unsetenv-tests (Files): Likewise.
37753         * modules/usleep-tests (Files): Likewise.
37754         * modules/utimens-tests (Files): Likewise.
37755         * modules/utimensat-tests (Files): Likewise.
37756         * modules/vasnprintf-posix-tests (Files): Likewise.
37757         * modules/vasnprintf-tests (Files): Likewise.
37758         * modules/vasprintf-posix-tests (Files): Likewise.
37759         * modules/vasprintf-tests (Files): Likewise.
37760         * modules/vdprintf-posix-tests (Files): Likewise.
37761         * modules/vfprintf-posix-tests (Files): Likewise.
37762         * modules/vprintf-posix-tests (Files): Likewise.
37763         * modules/vsnprintf-posix-tests (Files): Likewise.
37764         * modules/vsnprintf-tests (Files): Likewise.
37765         * modules/vsprintf-posix-tests (Files): Likewise.
37766         * modules/wcrtomb-tests (Files): Likewise.
37767         * modules/wcsnrtombs-tests (Files): Likewise.
37768         * modules/wcsrtombs-tests (Files): Likewise.
37769         * modules/wctype-tests (Files): Likewise.
37770         * modules/wcwidth-tests (Files): Likewise.
37771         * modules/xmemdup0-tests (Files): Likewise.
37772         * modules/xprintf-posix-tests (Files): Likewise.
37773         * modules/xvasprintf-tests (Files): Likewise.
37774
37775 2009-12-24  Eric Blake  <ebb9@byu.net>
37776
37777         test-nanosleep: fix typo
37778         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37779         patch.
37780         Reported by Bruno Haible.
37781
37782 2009-12-24  Bruno Haible  <bruno@clisp.org>
37783
37784         Reduce namespace pollution on glibc systems.
37785         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37786         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37787         systems.
37788         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37789         <getopt.h> on glibc systems.
37790         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37791         systems.
37792         * lib/fcntl.c: Include <unistd.h> here instead.
37793
37794 2009-12-24  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37797
37798 2009-12-24  Eric Blake  <ebb9@byu.net>
37799
37800         tests: add signature checks
37801         * tests/signature.h (SIGNATURE_CHECK): New file.
37802         * modules/atexit-tests (Files): Use it.
37803         * modules/btowc-tests (Files): Likewise.
37804         * modules/canonicalize-lgpl-tests (Files): Likewise.
37805         * modules/ceilf-tests (Files): Likewise.
37806         * modules/ceill-tests (Files): Likewise.
37807         * modules/chown-tests (Files): Likewise.
37808         * modules/dprintf-posix-tests (Files): Likewise.
37809         * modules/dup2-tests (Files): Likewise.
37810         * modules/dup3-tests (Files): Likewise.
37811         * modules/duplocale-tests (Files): Likewise.
37812         * modules/fchdir-tests (Files): Likewise.
37813         * modules/fcntl-tests (Files): Likewise.
37814         * modules/fdopendir-tests (Files): Likewise.
37815         * modules/fflush-tests (Files): Likewise.
37816         * modules/flock-tests (Files): Likewise.
37817         * modules/floorf-tests (Files): Likewise.
37818         * modules/floorl-tests (Files): Likewise.
37819         * modules/fnmatch-tests (Files): Likewise.
37820         * modules/fopen-tests (Files): Likewise.
37821         * modules/fprintf-posix-tests (Files): Likewise.
37822         * modules/freopen-tests (Files): Likewise.
37823         * modules/frexp-nolibm-tests (Files): Likewise.
37824         * modules/frexp-tests (Files): Likewise.
37825         * modules/frexpl-nolibm-tests (Files): Likewise.
37826         * modules/frexpl-tests (Files): Likewise.
37827         * modules/fseek-tests (Files): Likewise.
37828         * modules/fseeko-tests (Files): Likewise.
37829         * modules/fsync-tests (Files): Likewise.
37830         * modules/ftell-tests (Files): Likewise.
37831         * modules/ftello-tests (Files): Likewise.
37832         * modules/futimens-tests (Files): Likewise.
37833         * modules/getaddrinfo-tests (Files): Likewise.
37834         * modules/getcwd-tests (Files): Likewise.
37835         * modules/getdelim-tests (Files): Likewise.
37836         * modules/getdtablesize-tests (Files): Likewise.
37837         * modules/getgroups-tests (Files): Likewise.
37838         * modules/gethostname-tests (Files): Likewise.
37839         * modules/getline-tests (Files): Likewise.
37840         * modules/getopt-posix-tests (Files): Likewise.
37841         * modules/gettimeofday-tests (Files): Likewise.
37842         * modules/glob-tests (Files): Likewise.
37843         * modules/iconv-tests (Files): Likewise.
37844         * modules/inet_ntop-tests (Files): Likewise.
37845         * modules/inet_pton-tests (Files): Likewise.
37846         * modules/isblank-tests (Files): Likewise.
37847         * modules/lchown-tests (Files): Likewise.
37848         * modules/ldexpl-tests (Files): Likewise.
37849         * modules/link-tests (Files): Likewise.
37850         * modules/linkat-tests (Files): Likewise.
37851         * modules/lseek-tests (Files): Likewise.
37852         * modules/lstat-tests (Files): Likewise.
37853         * modules/mbrtowc-tests (Files): Likewise.
37854         * modules/mbsinit-tests (Files): Likewise.
37855         * modules/mbsnrtowcs-tests (Files): Likewise.
37856         * modules/mbsrtowcs-tests (Files): Likewise.
37857         * modules/memchr-tests (Files): Likewise.
37858         * modules/memcmp-tests (Files): Likewise.
37859         * modules/memmem-tests (Files): Likewise.
37860         * modules/memrchr-tests (Files): Likewise.
37861         * modules/mkdir-tests (Files): Likewise.
37862         * modules/mkfifo-tests (Files): Likewise.
37863         * modules/mkfifoat-tests (Files): Likewise.
37864         * modules/mknod-tests (Files): Likewise.
37865         * modules/nanosleep-tests (Files): Likewise.
37866         * modules/nl_langinfo-tests (Files): Likewise.
37867         * modules/obstack-printf-tests (Files): Likewise.
37868         * modules/open-tests (Files): Likewise.
37869         * modules/openat-tests (Files): Likewise.
37870         * modules/perror-tests (Files): Likewise.
37871         * modules/pipe2-tests (Files): Likewise.
37872         * modules/poll-tests (Files): Likewise.
37873         * modules/popen-tests (Files): Likewise.
37874         * modules/posix_spawn-tests (Files): Likewise.
37875         * modules/posix_spawnp-tests (Files): Likewise.
37876         * modules/pread-tests (Files): Likewise.
37877         * modules/printf-posix-tests (Files): Likewise.
37878         * modules/pty-tests (Files): Likewise.
37879         * modules/random_r-tests (Files): Likewise.
37880         * modules/rawmemchr-tests (Files): Likewise.
37881         * modules/readlink-tests (Files): Likewise.
37882         * modules/remove-tests (Files): Likewise.
37883         * modules/rename-tests (Files): Likewise.
37884         * modules/renameat-tests (Files): Likewise.
37885         * modules/rmdir-tests (Files): Likewise.
37886         * modules/round-tests (Files): Likewise.
37887         * modules/roundf-tests (Files): Likewise.
37888         * modules/roundl-tests (Files): Likewise.
37889         * modules/select-tests (Files): Likewise.
37890         * modules/setenv-tests (Files): Likewise.
37891         * modules/sigaction-tests (Files): Likewise.
37892         * modules/sleep-tests (Files): Likewise.
37893         * modules/snprintf-posix-tests (Files): Likewise.
37894         * modules/snprintf-tests (Files): Likewise.
37895         * modules/sprintf-posix-tests (Files): Likewise.
37896         * modules/stat-tests (Files): Likewise.
37897         * modules/strcasestr-tests (Files): Likewise.
37898         * modules/strchrnul-tests (Files): Likewise.
37899         * modules/strerror-tests (Files): Likewise.
37900         * modules/strsignal-tests (Files): Likewise.
37901         * modules/strstr-tests (Files): Likewise.
37902         * modules/strtod-tests (Files): Likewise.
37903         * modules/strverscmp-tests (Files): Likewise.
37904         * modules/symlink-tests (Files): Likewise.
37905         * modules/symlinkat-tests (Files): Likewise.
37906         * modules/times-tests (Files): Likewise.
37907         * modules/trunc-tests (Files): Likewise.
37908         * modules/truncf-tests (Files): Likewise.
37909         * modules/truncl-tests (Files): Likewise.
37910         * modules/tsearch-tests (Files): Likewise.
37911         * modules/uname-tests (Files): Likewise.
37912         * modules/unlink-tests (Files): Likewise.
37913         * modules/unsetenv-tests (Files): Likewise.
37914         * modules/usleep-tests (Files): Likewise.
37915         * modules/utimensat-tests (Files): Likewise.
37916         * modules/vasprintf-tests (Files): Likewise.
37917         * modules/vdprintf-posix-tests (Files): Likewise.
37918         * modules/vfprintf-posix-tests (Files): Likewise.
37919         * modules/vprintf-posix-tests (Files): Likewise.
37920         * modules/vsnprintf-posix-tests (Files): Likewise.
37921         * modules/vsnprintf-tests (Files): Likewise.
37922         * modules/vsprintf-posix-tests (Files): Likewise.
37923         * modules/wcrtomb-tests (Files): Likewise.
37924         * modules/wcsnrtombs-tests (Files): Likewise.
37925         * modules/wcsrtombs-tests (Files): Likewise.
37926         * modules/wcwidth-tests (Files): Likewise.
37927         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37928         * tests/test-isinf.c (isinf): Likewise.
37929         * tests/test-isnan.c (isnan): Likewise.
37930         * tests/test-signbit.c (signbit): Likewise.
37931         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37932         declaration, either as macro or with correct signature.
37933         (select): Ensure function under test is declared with correct
37934         signature in correct header.
37935         * tests/test-atexit.c (atexit): Likewise.
37936         * tests/test-btowc.c (btowc): Likewise.
37937         * tests/test-canonicalize-lgpl.c (realpath)
37938         (canonicalize_file_name): Likewise.
37939         * tests/test-ceilf1.c (ceilf): Likewise.
37940         * tests/test-ceill.c (ceill): Likewise.
37941         * tests/test-chown.c (chown): Likewise.
37942         * tests/test-dprintf-posix.c (dprintf): Likewise.
37943         * tests/test-dup2.c (dup2): Likewise.
37944         * tests/test-dup3.c (dup3): Likewise.
37945         * tests/test-duplocale.c (duplocale): Likewise.
37946         * tests/test-fchdir.c (fchdir): Likewise.
37947         * tests/test-fchownat.c (fchownat): Likewise.
37948         * tests/test-fcntl.c (fcntl): Likewise.
37949         * tests/test-fdopendir.c (fdopendir): Likewise.
37950         * tests/test-fflush.c (fflush): Likewise.
37951         * tests/test-flock.c (flock): Likewise.
37952         * tests/test-floorf1.c (floorf): Likewise.
37953         * tests/test-floorl.c (floorl): Likewise.
37954         * tests/test-fnmatch.c (fnmatch): Likewise.
37955         * tests/test-fopen.c (fopen): Likewise.
37956         * tests/test-fprintf-posix.c (fprintf): Likewise.
37957         * tests/test-freopen.c (freopen): Likewise.
37958         * tests/test-frexp.c (frexp): Likewise.
37959         * tests/test-frexpl.c (frexpl): Likewise.
37960         * tests/test-fseek.c (fseek): Likewise.
37961         * tests/test-fseeko.c (fseeko): Likewise.
37962         * tests/test-fstatat.c (fstatat): Likewise.
37963         * tests/test-fsync.c (fsync): Likewise.
37964         * tests/test-ftell.c (ftell): Likewise.
37965         * tests/test-ftello.c (ftello): Likewise.
37966         * tests/test-futimens.c (futimens): Likewise.
37967         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37968         (gai_strerror): Likewise.
37969         * tests/test-getcwd.c (getcwd): Likewise.
37970         * tests/test-getdelim.c (getdelim): Likewise.
37971         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37972         * tests/test-getgroups.c (getgroups): Likewise.
37973         * tests/test-gethostname.c (gethostname): Likewise.
37974         * tests/test-getline.c (getline): Likewise.
37975         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37976         Likewise.
37977         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37978         * tests/test-glob.c (glob, globfree): Likewise.
37979         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37980         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37981         * tests/test-inet_pton.c (inet_pton): Likewise.
37982         * tests/test-isblank.c (isblank): Likewise.
37983         * tests/test-lchown.c (lchown): Likewise.
37984         * tests/test-ldexpl.c (ldexpl): Likewise.
37985         * tests/test-link.c (link): Likewise.
37986         * tests/test-linkat.c (linkat): Likewise.
37987         * tests/test-lseek.c (lseek): Likewise.
37988         * tests/test-lstat.c (lstat): Likewise.
37989         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37990         * tests/test-mbsinit.c (mbsinit): Likewise.
37991         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37992         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37993         * tests/test-memchr.c (memchr): Likewise.
37994         * tests/test-memcmp.c (memcmp): Likewise.
37995         * tests/test-memmem.c (memmem): Likewise.
37996         * tests/test-memrchr.c (memrchr): Likewise.
37997         * tests/test-mkdir.c (mkdir): Likewise.
37998         * tests/test-mkdirat.c (mkdirat): Likewise.
37999         * tests/test-mkfifo.c (mkfifo): Likewise.
38000         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38001         * tests/test-mknod.c (mknod): Likewise.
38002         * tests/test-nanosleep.c (nanosleep): Likewise.
38003         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38004         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38005         Likewise.
38006         * tests/test-open.c (open): Likewise.
38007         * tests/test-openat.c (openat): Likewise.
38008         * tests/test-perror.c (perror): Likewise.
38009         * tests/test-pipe2.c (pipe2): Likewise.
38010         * tests/test-poll.c (poll): Likewise.
38011         * tests/test-popen.c (popen, pclose): Likewise.
38012         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38013         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38014         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38015         (posix_spawn_file_actions_destroy)
38016         (posix_spawn_file_actions_addclose)
38017         (posix_spawn_file_actions_addopen)
38018         (posix_spawn_file_actions_adddup2): Likewise.
38019         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38020         * tests/test-pread.c (pread): Likewise.
38021         * tests/test-printf-posix.c (printf): Likewise.
38022         * tests/test-pty.c (openpty, forkpty): Likewise.
38023         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38024         (random_r): Likewise.
38025         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38026         * tests/test-readlink.c (readlink): Likewise.
38027         * tests/test-remove.c (remove): Likewise.
38028         * tests/test-rename.c (rename): Likewise.
38029         * tests/test-renameat.c (renameat): Likewise.
38030         * tests/test-rmdir.c (rmdir): Likewise.
38031         * tests/test-round1.c (round): Likewise.
38032         * tests/test-roundf1.c (roundf): Likewise.
38033         * tests/test-roundl.c (roundl): Likewise.
38034         * tests/test-setenv.c (setenv): Likewise.
38035         * tests/test-sigaction.c (sigaction): Likewise.
38036         * tests/test-sleep.c (sleep): Likewise.
38037         * tests/test-snprintf.c (snprintf): Likewise.
38038         * tests/test-sprintf-posix.c (sprintf): Likewise.
38039         * tests/test-stat.c (stat): Likewise.
38040         * tests/test-stpncpy.c (stpncpy): Likewise.
38041         * tests/test-strcasestr.c (strcasestr): Likewise.
38042         * tests/test-strchrnul.c (strchrnul): Likewise.
38043         * tests/test-strerror.c (strerror): Likewise.
38044         * tests/test-strsignal.c (strsignal): Likewise.
38045         * tests/test-strstr.c (strstr): Likewise.
38046         * tests/test-strtod.c (strtod): Likewise.
38047         * tests/test-strverscmp.c (strverscmp): Likewise.
38048         * tests/test-symlink.c (symlink): Likewise.
38049         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38050         * tests/test-times.c (times): Likewise.
38051         * tests/test-trunc1.c (trunc): Likewise.
38052         * tests/test-truncf1.c (truncf): Likewise.
38053         * tests/test-truncl.c (truncl): Likewise.
38054         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38055         Likewise.
38056         * tests/test-uname.c (uname): Likewise.
38057         * tests/test-unlink.c (unlink): Likewise.
38058         * tests/test-unlinkat.c (unlinkat): Likewise.
38059         * tests/test-unsetenv.c (unsetenv): Likewise.
38060         * tests/test-usleep.c (usleep): Likewise.
38061         * tests/test-utimensat.c (utimensat): Likewise.
38062         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38063         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38064         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38065         * tests/test-vprintf-posix.c (vprintf): Likewise.
38066         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38067         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38068         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38069         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38070         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38071         * tests/test-wcwidth.c (wcwidth): Likewise.
38072
38073         build: pull in conditional headers during GNULIB_POSIXCHECK
38074         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38075         definitions from any conditionally-included headers.
38076         * lib/stdlib.in.h (includes): Likewise.
38077         * lib/unistd.in.h (includes): Likewise.
38078
38079 2009-12-24  Bruno Haible  <bruno@clisp.org>
38080
38081         * tests/test-argv-iter.c: Include header file being tested immediately
38082         after config.h.
38083         * tests/test-base64.c: Likewise.
38084         * tests/test-flock.c: Likewise.
38085         * tests/test-fsync.c: Likewise.
38086         * tests/test-getdate.c: Likewise.
38087         * tests/test-getndelim2.c: Likewise.
38088         * tests/test-isfinite.c: Likewise.
38089         * tests/test-isinf.c: Likewise.
38090         * tests/test-strerror.c: Likewise.
38091         * tests/test-strsignal.c: Likewise.
38092
38093 2009-12-23  Eric Blake  <ebb9@byu.net>
38094
38095         unistd: work around cygwin bug
38096         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38097         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38098         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38099
38100 2009-12-23  Bruno Haible  <bruno@clisp.org>
38101
38102         localename: More tests.
38103         * tests/test-localename.c (SIZEOF): New macro.
38104         (categories): New variable.
38105         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38106         test_locale_name_default): Add test w.r.t. thread locale.
38107         (test_locale_name_thread): New function.
38108         (main): Invoke it.
38109
38110         localename: Make aware of thread locale.
38111         * lib/localename.h (gl_locale_name_thread): New declaration.
38112         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38113         behaviour with respect to thread locale.
38114         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38115         <langinfo.h>, glthread/lock.h.
38116         (SIZE_BITS): New macro.
38117         (string_hash): New function.
38118         (struct hash_node): New type.
38119         (HASH_TABLE_SIZE): New macro.
38120         (struniq_hash_table, struniq_lock): New variables.
38121         (struniq): New function.
38122         (gl_locale_name_thread): New function.
38123         (gl_locale_name): Invoke it.
38124         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38125         * modules/localename (Depends-on): Add lock.
38126         Reported by Mike Gran <spk121@yahoo.com>.
38127
38128 2009-12-23  Eric Blake  <ebb9@byu.net>
38129
38130         va-args: new module
38131         * modules/va-args: New file.
38132         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38133         * MODULES.html.sh (Core language properties): Mention it.
38134
38135         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38136         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38137         named alias for __attribute__((__unused__)).
38138         * lib/chown.c: Update client.
38139         * lib/fchmodat.c: Likewise.
38140         * lib/fts.c: Likewise.
38141         * lib/getdate.y: Likewise.
38142         * lib/getgroups.c: Likewise.
38143         * lib/getopt.c: Likewise.
38144         * lib/getugroups.c: Likewise.
38145         * lib/mkdir.c: Likewise.
38146         * lib/mkfifo.c: Likewise.
38147         * lib/mkfifoat.c: Likewise.
38148         * lib/mknod.c: Likewise.
38149         * lib/mknodat.c: Likewise.
38150         * lib/readlink.c: Likewise.
38151         * lib/se-context.in.h: Likewise.
38152         * lib/se-selinux.in.h: Likewise.
38153         * lib/sockets.c: Likewise.
38154         * lib/symlink.c: Likewise.
38155         * lib/symlinkat.c: Likewise.
38156         * lib/unicodeio.c: Likewise.
38157         * lib/unistr.h: Likewise.
38158         * tests/test-areadlink.c: Likewise.
38159         * tests/test-areadlinkat.c: Likewise.
38160         * tests/test-filenamecat.c: Likewise.
38161         * tests/test-fseeko.c: Likewise.
38162         * tests/test-ftello.c: Likewise.
38163         * tests/test-getdate.c: Likewise.
38164         * tests/test-getgroups.c: Likewise.
38165         * tests/test-gethostname.c: Likewise.
38166         * tests/test-quotearg.c: Likewise.
38167         * tests/test-version-etc.c: Likewise.
38168         * tests/test-xalloc-die.c: Likewise.
38169         * tests/test-xfprintf-posix.c: Likewise.
38170         * tests/test-xprintf-posix.c: Likewise.
38171         * tests/test-xvasprintf.c: Likewise.
38172
38173         tests: avoid compiler warnings
38174         * tests/test-fcntl.c (main): Delete unused parameters.
38175         * tests/test-freopen-safer.c (main): Likewise.
38176         * tests/test-xalloc-die.c (main): Mark unused parameters.
38177         * tests/test-fseeko.c (main): Likewise.
38178         * tests/test-ftello.c (main): Likewise.
38179         * tests/test-nanosleep.c (main): Avoid declaration warning.
38180         * tests/test-sleep.c (main): Likewise.
38181         * tests/test-unsetenv.c (main): Silence warning about string
38182         literal.
38183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38184
38185 2009-12-23  Bruno Haible  <bruno@clisp.org>
38186
38187         * tests/test-localename.c (test_locale_name): New function, extracted
38188         from main. Also test mixed situations.
38189         (test_locale_name_posix, test_locale_name_environ,
38190         test_locale_name_default): New functions.
38191         (main): Invoke them all.
38192         * modules/localename-tests (configure.ac): Test for newlocale.
38193
38194 2009-12-23  Bruno Haible  <bruno@clisp.org>
38195
38196         unistd: Ensure getcwd gets declared before being overridden.
38197         * lib/unistd.in.h: Conditionally include <io.h>.
38198
38199 2009-12-22  Bruno Haible  <bruno@clisp.org>
38200
38201         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38202         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38203         (gl_WCHAR_H): Invoke it.
38204         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38205         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38206         Reported by Karl Berry <karl@freefriends.org>.
38207
38208 2009-12-22  Eric Blake  <ebb9@byu.net>
38209
38210         math, unistd: avoid redundant includes
38211         * lib/math.in.h (isnan): No need to re-include <math.h>.
38212         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38213
38214         getsubopt: work around cygwin bug
38215         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38216         avoid conflicting with system getsubopt.
38217         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38218         bug.
38219
38220         getopt: synchronize from glibc
38221         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38222         parameter order.  Adjust all callers.
38223         (_getopt_internal_r, main): Adjust quoting in error messages.
38224         Drop considerations for outdated POSIX 1003.2 error message.
38225         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38226         callers.
38227         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38228
38229         test-getopt: test stderr behavior
38230         * modules/getopt-posix-tests (Depends-on): Add dup2.
38231         * tests/test-getopt.c (ASSERT): Avoid stderr.
38232         (main): Move stderr to a temporary file.
38233         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38234         Instead, add parameter to inform caller if output occurred.
38235         (test_getopt): Adjust all existing tests to expect silence, and
38236         add new tests of leading ":".
38237         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38238         glibc shortcomings with leading "-:" or "+:" in optstring.
38239         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38240         Likewise.
38241         * doc/posix-functions/getopt.texi (getopt): Likewise.
38242
38243         test-getopt: enhance test
38244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38245         supports optind=0.
38246         * tests/test-getopt.c (OPTIND_MIN): Move...
38247         * tests/test-getopt.h (OPTIND_MIN): ...here.
38248         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38249         Require that optind=0 works, since modern BSD supports it in
38250         addition to optreset, and since coreutils expects it.
38251         (test_getopt_long_only): New test.
38252         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38253         glibc shortcomings with 'W;', and enforcement of optind=0.
38254         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38255         Likewise.
38256
38257 2009-12-21  Bruno Haible  <bruno@clisp.org>
38258
38259         localename: Improvements for MacOS X and Cygwin.
38260         * lib/localename.h (gl_locale_name_environ): New declaration.
38261         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38262         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38263         (gl_locale_name_posix): Invoke it.
38264         (gl_locale_name_default): Add comments. Use Windows native API also on
38265         Cygwin.
38266
38267 2009-12-21  Bruno Haible  <bruno@clisp.org>
38268
38269         Update list of Win32 locale ids.
38270         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38271         (LANG_SAMI): Renamed from LANG_SAAMI.
38272         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38273         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38274         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38275         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38276         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38277         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38278         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38279         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38280         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38281         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38282         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38283         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38284         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38285         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38286         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38287         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38288         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38289         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38290         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38291         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38292         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38293         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38294         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38295         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38296         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38297         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38298         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38299         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38300         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38301         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38302         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38303         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38304         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38305         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38306         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38307         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38308         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38309         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38310         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38311         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38312         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38313         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38314         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38315         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38316         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38317         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38318         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38319         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38320         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38321         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38322         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38323         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38324         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38325         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38326         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38327         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38328         Add more languages and countries for Sami, Sorbian. Add more countries
38329         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38330         for Pashto. Change country for Syriac, Tswana.
38331
38332 2009-12-21  Eric Blake  <ebb9@byu.net>
38333
38334         test-utimens: avoid spurious failure
38335         * tests/test-chown.h (nap): Factor...
38336         * tests/nap.h: ...into new file.
38337         * tests/test-lchown.h (nap): Avoid duplication.
38338         * tests/test-utimens-common.h (nap): Use shared implementation,
38339         necessary on file systems with 1-second resolution.
38340         * modules/chown-tests (Files): Include new file.
38341         * modules/fdutimensat-tests (Files): Likewise.
38342         * modules/futimens-tests (Files): Likewise.
38343         * modules/lchown-tests (Files): Likewise.
38344         * modules/openat-tests (Files): Likewise.
38345         * modules/utimens-tests (Files): Likewise.
38346         * modules/utimensat-tests (Files): Likewise.
38347
38348 2009-12-19  Eric Blake  <ebb9@byu.net>
38349
38350         futimens, utimensat: work around Linux bug
38351         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38352         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38353         * lib/utimensat.c (rpl_utimensat): Work around it.
38354         * lib/futimens.c (rpl_futimens): Adjust comment.
38355
38356         utimens: work around Linux ctime bug
38357         * lib/utimens.c (detect_ctime_bug): New helper function.
38358         (update_timespec): Differentiate between workaround needed for
38359         this bug vs. what is needed for systems that lack utimensat.
38360         (fdutimens, lutimens): Work around bug.
38361
38362         utimens: check for ctime update
38363         * tests/test-utimens-common.h (check_ctime): Define.
38364         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38365         * tests/test-futimens.h (test_futimens): Likewise.
38366         * tests/test-lutimens.h (test_lutimens): Likewise.
38367         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38368         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38369
38370 2009-12-19  Bruno Haible  <bruno@clisp.org>
38371
38372         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38373         * tests/test-dprintf-posix2.sh: New file.
38374         * tests/test-dprintf-posix2.c: New file.
38375         * modules/dprintf-posix-tests (Files): Add them.
38376         (configure.ac): Check for getrlimit and setrlimit.
38377         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38378
38379 2009-12-19  Bruno Haible  <bruno@clisp.org>
38380
38381         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38382         * tests/test-fprintf-posix3.sh: New file.
38383         * tests/test-fprintf-posix3.c: New file.
38384         * modules/fprintf-posix-tests (Files): Add them.
38385         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38386
38387 2009-12-19  Eric Blake  <ebb9@byu.net>
38388
38389         dirfd: fix prototype
38390         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38391         * lib/dirfd.c (dirfd): Likewise.
38392
38393         canonicalize: reduce memory usage
38394         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38395         allocation to size.
38396         Reported by Solar Designer <solar@openwall.com>.
38397
38398 2009-12-19  Bruno Haible  <bruno@clisp.org>
38399
38400         New module attribute 'Applicability'.
38401         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38402         * gnulib-tool: New option --extract-applicability.
38403         (func_usage): Document it.
38404         (sed_extract_prog): Recognize it.
38405         (func_get_applicability): New function.
38406         (func_import): Generalize handling of 'link-warning' module.
38407         * modules/link-warning (Applicability): New section.
38408         * modules/arg-nonnull (Applicability): New section.
38409         Repoted by Simon Josefsson <simon@josefsson.org>.
38410
38411 2009-12-19  Bruno Haible  <bruno@clisp.org>
38412
38413         fflush: tweak
38414         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38415         * lib/fseeko.c (rpl_fseeko): Likewise.
38416
38417 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38418
38419         * lib/gl_list.h: Fix typo in comment.
38420
38421 2009-12-16  Eric Blake  <ebb9@byu.net>
38422
38423         fcntl: use to simplify other modules
38424         * modules/cloexec (Depends-on): Add fcntl.
38425         * modules/fchdir (Depends-on): Likewise.
38426         * modules/fd-safer-flag (Depends-on): Likewise.
38427         * modules/unistd-safer (Depends-on): Likewise.
38428         * modules/dup3 (configure.ac): Set module indicator.
38429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38430         missing.
38431         * lib/fchdir.c (_gl_register_dup): Fix comment.
38432         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38433         * lib/dup-safer.c (dup_safer): Likewise.
38434         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38435         * lib/dup3.c (dup3): Likewise.
38436         * tests/test-fchdir.c (main): Enhance test.
38437         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38438
38439         fcntl: port portions of fcntl to mingw
38440         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38441         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38442         replacement for mingw.
38443         * modules/fcntl (Description): Update.
38444         (Depends-on): Add dup2.
38445         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38446         * modules/fcntl-h (Makefile.am): Substitute it.
38447         * lib/fcntl.in.h (fcntl): Update declaration.
38448         (F_DUPFD, F_GETFD): New macros, when needed.
38449         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38450         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38451         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38452         we now guarantee.
38453
38454         fcntl: work around cygwin bug in F_DUPFD
38455         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38456         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38457         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38458         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38459         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38460
38461         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38462         * modules/fcntl (Files): List new files.
38463         (configure.ac): Run a test.
38464         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38465         * lib/fcntl.c (rpl_fcntl): Likewise.
38466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38467         (gl_FCNTL_H): Always replace fcntl.h.
38468         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38469         * lib/fcntl.in.h (fcntl): Declare replacement.
38470         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38471         needed, plus a witness.
38472         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38473         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38474         * tests/test-fcntl.c: New file.
38475         * modules/fcntl-tests: Likewise.
38476
38477         binary-io: avoid potential compilation warning
38478         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38479         directives.
38480
38481         fflush: avoid compilation error on NetBSD
38482         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38483         between off_t and fpos_t, since the latter is sometimes a struct.
38484         * lib/fseeko.c (rpl_fseeko): Likewise.
38485         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38486
38487 2009-12-15  Eric Blake  <ebb9@byu.net>
38488
38489         fcntl-h, stdio, sys_ioctl: fix declarations
38490         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38491         function must not take arguments.
38492         * lib/sys_ioctl.in.h (ioctl): Likewise.
38493         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38494         (open): Add a link warning.
38495
38496 2009-12-15  Jim Meyering  <meyering@redhat.com>
38497
38498         areadlink, areadlink-with-size: relax license to LGPLv2+
38499         * modules/areadlink (License): Relax to LGPLv2+.
38500         * modules/areadlink-with-size (License): Likewise.
38501
38502 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38503             Bruno Haible  <bruno@clisp.org>
38504
38505         *printf: Fix memory leak.
38506         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38507         * lib/vfprintf.c (vfprintf): Likewise.
38508         * lib/dprintf.c (dprintf): Likewise.
38509         * lib/vdprintf.c (vdprintf): Likewise.
38510
38511 2009-12-14  Eric Blake  <ebb9@byu.net>
38512
38513         accept4: adjust module dependencies
38514         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38515
38516         utimens: one more try at avoiding compiler warning
38517         * lib/utimens.c (lutimens): Lower scope of result.
38518
38519 2009-12-13  Bruno Haible  <bruno@clisp.org>
38520
38521         Move the malloc checking from module 'list' to new module 'xlist'.
38522         * modules/xlist: New file.
38523         * lib/gl_xlist.h: New file.
38524         * lib/gl_xlist.c: New file.
38525         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38526         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38527         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38528         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38529         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38530         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38531         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38532         gl_sortedlist_nx_add): New declarations.
38533         (struct gl_list_implementation): Rename and change methods accordingly.
38534         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38535         (gl_list_nx_create): Renamed from gl_list_create.
38536         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38537         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38538         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38539         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38540         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38541         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38542         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38543         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38544         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38545         gl_list_create_empty.
38546         (gl_list_nx_create): Renamed from gl_list_create.
38547         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38548         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38549         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38550         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38551         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38552         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38553         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38554         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38555         * lib/gl_array_list.c: Don't include xalloc.h.
38556         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38557         NULL upon out-of-memory.
38558         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38559         out-of-memory.
38560         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38561         Change return type to 'int'.
38562         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38563         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38564         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38565         upon out-of-memory.
38566         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38567         upon out-of-memory.
38568         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38569         upon out-of-memory.
38570         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38571         upon out-of-memory.
38572         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38573         out-of-memory.
38574         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38575         Update.
38576         (gl_array_list_implementation): Update.
38577         * lib/gl_carray_list.c: Don't include xalloc.h.
38578         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38579         Return NULL upon out-of-memory.
38580         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38581         out-of-memory.
38582         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38583         Change return type to 'int'.
38584         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38585         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38586         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38587         upon out-of-memory.
38588         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38589         upon out-of-memory.
38590         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38591         out-of-memory.
38592         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38593         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38594         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38595         Update.
38596         (gl_carray_list_implementation): Update.
38597         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38598         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38599         gl_linked_create_empty. Return NULL upon out-of-memory.
38600         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38601         out-of-memory.
38602         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38603         Change return type to 'int'. Return -1 upon out-of-memory.
38604         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38605         out-of-memory.
38606         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38607         upon out-of-memory.
38608         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38609         upon out-of-memory.
38610         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38611         NULL upon out-of-memory.
38612         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38613         upon out-of-memory.
38614         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38615         out-of-memory.
38616         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38617         Update.
38618         * lib/gl_linked_list.c: Don't include xalloc.h.
38619         (gl_linked_list_implementation): Update.
38620         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38621         (add_to_bucket): Change return type to 'int'.
38622         (gl_linkedhash_list_implementation): Update.
38623         * lib/gl_anytree_list1.h (free_subtree): New function.
38624         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38625         gl_tree_create_empty. Return NULL upon out-of-memory.
38626         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38627         Change return type to 'int'. Return -1 upon out-of-memory.
38628         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38629         out-of-memory.
38630         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38631         (gl_tree_remove_node): New function, moved here from
38632         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38633         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38634         Update.
38635         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38636         malloc, not xmalloc. Return NULL upon out-of-memory.
38637         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38638         out-of-memory.
38639         (gl_tree_remove_node_from_tree): New function, extracted from
38640         gl_tree_remove_node.
38641         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38642         upon out-of-memory.
38643         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38644         out-of-memory.
38645         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38646         upon out-of-memory.
38647         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38648         upon out-of-memory.
38649         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38650         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38651         not xmalloc. Return NULL upon out-of-memory.
38652         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38653         out-of-memory.
38654         (gl_tree_remove_node_from_tree): New function, extracted from
38655         gl_tree_remove_node.
38656         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38657         upon out-of-memory.
38658         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38659         out-of-memory.
38660         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38661         upon out-of-memory.
38662         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38663         upon out-of-memory.
38664         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38665         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38666         gl_anytree_list1.h before gl_anyavltree_list2.h.
38667         (gl_avltree_list_implementation): Update.
38668         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38669         gl_anytree_list1.h before gl_anyavltree_list2.h.
38670         (gl_rbtree_list_implementation): Update.
38671         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38672         Change return type to 'int'. Return -1 upon out-of-memory. Use
38673         __builtin_expect.
38674         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38675         (gl_avltreehash_list_implementation): Update.
38676         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38677         (gl_rbtreehash_list_implementation): Update.
38678         * modules/array-list (Depends-on): Remove xalloc.
38679         * modules/carray-list (Depends-on): Likewise.
38680         * modules/linked-list (Depends-on): Likewise.
38681         * modules/linkedhash-list (Depends-on): Likewise.
38682         * modules/avltree-list (Depends-on): Likewise.
38683         * modules/rbtree-list (Depends-on): Likewise.
38684         * modules/avltreehash-list (Depends-on): Likewise.
38685         * modules/rbtreehash-list (Depends-on): Likewise.
38686
38687         * modules/xsublist: New file.
38688         * lib/gl_xsublist.h: New file.
38689         * lib/gl_xsublist.c: New file.
38690         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38691         (gl_sublist_nx_create): New declaration.
38692         * lib/gl_sublist.c: Don't include xalloc.h.
38693         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38694         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38695         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38696         Change return type to 'int'. Return -1 upon out-of-memory.
38697         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38698         upon out-of-memory.
38699         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38700         NULL upon out-of-memory.
38701         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38702         upon out-of-memory.
38703         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38704         NULL upon out-of-memory.
38705         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38706         NULL upon out-of-memory.
38707         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38708         upon out-of-memory.
38709         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38710         (gl_sublist_list_implementation): Update.
38711         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38712         upon out-of-memory.
38713         * modules/sublist (Depends-on): Remove xalloc.
38714
38715         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38716         * tests/test-carray_list.c: Likewise.
38717         * tests/test-linked_list.c: Likewise.
38718         * tests/test-linkedhash_list.c: Likewise.
38719         * tests/test-avltree_list.c: Likewise.
38720         * tests/test-rbtree_list.c: Likewise.
38721         * tests/test-avltreehash_list.c: Likewise.
38722         * tests/test-rbtreehash_list.c: Likewise.
38723         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38724         * modules/carray-list-tests (Makefile.am): Likewise.
38725         * modules/linked-list-tests (Makefile.am): Likewise.
38726         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38727         * modules/avltree-list-tests (Makefile.am): Likewise.
38728         * modules/rbtree-list-tests (Makefile.am): Likewise.
38729         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38730         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38731
38732         * NEWS: Mention the changes.
38733
38734         * lib/clean-temp.c: Include gl_xlist.h.
38735         * modules/clean-temp (Depends-on): Add xlist.
38736
38737         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38738         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38739
38740         * tests/test-array_oset.c: Include gl_xlist.h.
38741         * modules/array-oset-tests (Depends-on): Add xlist.
38742
38743         Reported by José E. Marchesi <jemarch@gnu.org>.
38744
38745 2009-12-13  Bruno Haible  <bruno@clisp.org>
38746
38747         Move the malloc checking from module 'oset' to new module 'xoset'.
38748         * modules/xoset: New file.
38749         * lib/gl_xoset.h: New file.
38750         * lib/gl_xoset.c: New file.
38751         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38752         declarations.
38753         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38754         (struct gl_oset_implementation): Rename and change methods accordingly.
38755         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38756         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38757         'int'. Mark as __warn_unused_result__.
38758         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38759         gl_oset_create_empty.
38760         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38761         'int'.
38762         * lib/gl_array_oset.c: Don't include xalloc.h.
38763         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38764         malloc, not xmalloc.
38765         (grow): Change return type to 'int'. Don't call xalloc_die.
38766         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38767         to 'int'.
38768         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38769         'int'.
38770         (gl_array_oset_implementation): Update.
38771         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38772         gl_tree_create_empty.
38773         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38774         'int'.
38775         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38776         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38777         xmalloc.
38778         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38779         not xmalloc.
38780         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38781         xmalloc.
38782         (gl_avltree_oset_implementation): Update.
38783         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38785         xmalloc.
38786         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38787         not xmalloc.
38788         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38789         xmalloc.
38790         (gl_rbtree_oset_implementation): Update.
38791         * modules/array-oset (Depends-on): Remove xalloc.
38792         * modules/avltree-oset (Depends-on): Likewise.
38793         * modules/rbtree-oset (Depends-on): Likewise.
38794         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38795         * tests/test-avltree_oset.c: Likewise.
38796         * tests/test-rbtree_oset.c: Likewise.
38797         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38798         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38799         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38800         * NEWS: Mention the change.
38801
38802 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38803
38804         maint.mk: allow a project to override release-prep commands
38805         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38806         commands into a new rule.
38807         (release-prep): New rule.
38808         (release-prep-hook): New overridable variable.
38809
38810 2009-12-13  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38813
38814 2009-12-13  Jim Meyering  <meyering@redhat.com>
38815
38816         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38817         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38818
38819 2009-12-12  Bruno Haible  <bruno@clisp.org>
38820
38821         duplocale: Tweak.
38822         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38823
38824 2009-12-12  Karl Berry  <karl@gnu.org>
38825
38826         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38827
38828 2009-12-12  Bruno Haible  <bruno@clisp.org>
38829
38830         * m4/po.m4: Undo incorrect untabification.
38831
38832 2009-12-12  Bruno Haible  <bruno@clisp.org>
38833
38834         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38835         * modules/c-strtod (Depends-on): Add locale.
38836         * modules/c-strtold (Depends-on): Likewise.
38837
38838 2009-12-12  Bruno Haible  <bruno@clisp.org>
38839
38840         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38841
38842 2009-12-11  Eric Blake  <ebb9@byu.net>
38843
38844         setenv: relax requirement in light of POSIX ruling
38845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38846         not NULL.
38847         * tests/test-setenv.c (main): Relax test.
38848         * tests/test-unsetenv.c (main): Likewise.
38849         * doc/posix-functions/setenv.texi (setenv): Document this.
38850         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38851
38852 2009-12-11  Bruno Haible  <bruno@clisp.org>
38853
38854         New module 'fd-safer-flag'.
38855         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38856         * lib/dup-safer.c (dup_safer_flag): Remove function.
38857         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38858         * lib/fd-safer.c (fd_safer_flag): Remove function.
38859         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38860         * modules/cloexec (configure.ac): Drop indicator macro.
38861         * modules/fd-safer-flag: New file.
38862         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38863         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38864         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38865
38866 2009-12-11  Bruno Haible  <bruno@clisp.org>
38867
38868         Tests for module 'nl_langinfo'.
38869         * modules/nl_langinfo-tests: New file.
38870         * tests/test-nl_langinfo.sh: New file.
38871         * tests/test-nl_langinfo.c: New file.
38872
38873         New module 'nl_langinfo'.
38874         * lib/nl_langinfo.c: New file.
38875         * m4/nl_langinfo.m4: New file.
38876         * modules/nl_langinfo: New file.
38877         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38878
38879 2009-12-11  Bruno Haible  <bruno@clisp.org>
38880
38881         Tests for module 'langinfo'.
38882         * modules/langinfo-tests: New file.
38883         * tests/test-langinfo.c: New file.
38884
38885         New module 'langinfo'.
38886         * lib/langinfo.in.h: New file.
38887         * m4/langinfo_h.m4: New file.
38888         * modules/langinfo: New file.
38889         * doc/posix-headers/langinfo.texi: Mention the new module.
38890
38891 2009-12-11  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/config.charset: Untabify.
38894
38895 2009-12-11  Bruno Haible  <bruno@clisp.org>
38896
38897         * modules/unistd-safer (configure.ac): Drop indicator macro.
38898
38899 2009-12-11  Bruno Haible  <bruno@clisp.org>
38900
38901         Move pipe2-safer code to its own file.
38902         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38903         * lib/pipe-safer.c (pipe2_safer): Remove function.
38904         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38905         (Makefile.am): Add it to lib_SOURCES.
38906
38907 2009-12-10  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38910
38911 2009-12-10  Bruno Haible  <bruno@clisp.org>
38912
38913         Declare which arguments expect non-NULL values, for GCC and clang.
38914         * build-aux/arg-nonnull.h: New file.
38915         * modules/arg-nonnull: New file.
38916         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38917         (inet_ntop, inet_pton): Use it.
38918         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38919         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38920         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38921         (open, openat): Use it.
38922         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38923         (fnmatch): Use it.
38924         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38925         (getopt, getopt_long, getopt_long_only): Use it.
38926         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38927         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38928         Use it.
38929         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38930         (iconv_open): Use it.
38931         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38932         (strtoimax, strtoumax): Use it.
38933         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38934         (duplocale): Use it.
38935         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38936         (frexp, frexpl): Use it.
38937         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38938         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38939         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38940         (tsearch, tfind, tdelete, twalk): Use it.
38941         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38942         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38943         sigpending): Use it.
38944         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38945         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38946         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38947         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38948         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38949         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38950         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38951         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38952         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38953         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38954         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38955         Use it.
38956         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38957         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38958         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38959         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38960         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38961         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38962         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38963         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38964         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38965         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38966         strtoull, unsetenv): Use it.
38967         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38968         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38969         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38970         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38971         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38972         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38973         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38974         (strcasecmp, strncasecmp): Use it.
38975         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38976         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38977         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38978         rpl_setsockopt): Use it.
38979         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38980         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38981         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38982         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38983         (gettimeofday): Use it.
38984         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38985         (times): Use it.
38986         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38987         (uname): Use it.
38988         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38989         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38990         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38991         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38992         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38993         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38994         unlinkat, write): Use it.
38995         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38996         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38997         * lib/argv-iter.h: Include arg-nonnull.h.
38998         (_ATTRIBUTE_NONNULL_): Remove macro.
38999         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39000         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39001         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39002         optimization.
39003         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39004         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39005         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39006         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39007         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39008         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39009         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39010         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39011         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39012         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39013         * modules/dirent (Depends-on): Add arg-nonnull.
39014         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39015         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39016         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39017         * modules/fnmatch (Depends-on): Add arg-nonnull.
39018         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39019         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39020         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39021         * modules/glob (Depends-on): Add arg-nonnull.
39022         (Makefile.am): Insert arg-nonnull.h into glob.h.
39023         * modules/iconv_open (Depends-on): Add arg-nonnull.
39024         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39025         * modules/inttypes (Depends-on): Add arg-nonnull.
39026         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39027         * modules/locale (Depends-on): Add arg-nonnull.
39028         (Makefile.am): Insert arg-nonnull.h into locale.h.
39029         * modules/math (Depends-on): Add arg-nonnull.
39030         (Makefile.am): Insert arg-nonnull.h into math.h.
39031         * modules/netdb (Depends-on): Add arg-nonnull.
39032         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39033         * modules/search (Depends-on): Add arg-nonnull.
39034         (Makefile.am): Insert arg-nonnull.h into search.h.
39035         * modules/signal (Depends-on): Add arg-nonnull.
39036         (Makefile.am): Insert arg-nonnull.h into signal.h.
39037         * modules/spawn (Depends-on): Add arg-nonnull.
39038         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39039         * modules/stdio (Depends-on): Add arg-nonnull.
39040         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39041         * modules/stdlib (Depends-on): Add arg-nonnull.
39042         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39043         * modules/string (Depends-on): Add arg-nonnull.
39044         (Makefile.am): Insert arg-nonnull.h into string.h.
39045         * modules/strings (Depends-on): Add arg-nonnull.
39046         (Makefile.am): Insert arg-nonnull.h into strings.h.
39047         * modules/sys_socket (Depends-on): Add arg-nonnull.
39048         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39049         * modules/sys_stat (Depends-on): Add arg-nonnull.
39050         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39051         * modules/sys_time (Depends-on): Add arg-nonnull.
39052         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39053         * modules/sys_times (Depends-on): Add arg-nonnull.
39054         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39055         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39056         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39057         * modules/time (Depends-on): Add arg-nonnull.
39058         (Makefile.am): Insert arg-nonnull.h into time.h.
39059         * modules/unistd (Depends-on): Add arg-nonnull.
39060         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39061         * modules/wchar (Depends-on): Add arg-nonnull.
39062         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39063         * modules/argv-iter (Depends-on): Add arg-nonnull.
39064         * tests/test-canonicalize.c (null_ptr): New function.
39065         (main): Use it.
39066         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39067         (main): Use it.
39068         * tests/test-memmem.c (null_ptr): New function.
39069         (main): Use it.
39070         Reported by Jim Meyering.
39071
39072 2009-12-10  Bruno Haible  <bruno@clisp.org>
39073
39074         Use spaces for indentation, not tabs.
39075         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39076         * m4/*.m4: Untabify.
39077         * build-aux/*.h: Untabify.
39078         * tests/**/*.[hc]: Untabify.
39079         * README: New section "Indent with spaces, not TABs", based on
39080         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39081         * NEWS: Mention the change.
39082
39083 2009-12-10  Bruno Haible  <bruno@clisp.org>
39084
39085         pty test: Fix link error.
39086         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39087         test_pty_LDADD.
39088
39089 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39090
39091         * modules/pty: New file.
39092         * modules/pty-tests: New file.
39093         * m4/pty.m4: New file.
39094         * tests/test-pty.c: New file.
39095         * doc/glibc-headers/pty.texi: Modified.
39096         * doc/glibc-functions/forkpty.texi: Modified.
39097         * doc/glibc-functions/openpty.texi: Modified.
39098
39099 2009-12-10  Bruno Haible  <bruno@clisp.org>
39100
39101         Avoid syntax error in C++ mode.
39102         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39103
39104 2009-12-10  Bruno Haible  <bruno@clisp.org>
39105
39106         Use sed with option -e.
39107         * gnulib-tool (func_version, func_emit_copyright_notice,
39108         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39109         option -e to sed.
39110         * modules/link-warning (Makefile.am): Likewise.
39111
39112 2009-12-10  Jim Meyering  <meyering@redhat.com>
39113
39114         mgetgroups: do not write bytes beyond end of malloc'd buffer
39115         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39116         username, we call getgroups with a one-element-shorter buffer,
39117         but still told it the length was original, max_n_groups.
39118
39119 2009-12-09  Eric Blake  <ebb9@byu.net>
39120
39121         cloexec: relax license
39122         * modules/cloexec (Maintainer): Add myself.
39123         (License): Use LGPL, not GPL.
39124
39125         link-warning: optimize generation
39126         * modules/link-warning (Makefile.am): Reduce process usage.
39127
39128 2009-12-09  Bruno Haible  <bruno@clisp.org>
39129
39130         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39131         workaround was added on 2009-11-17.
39132
39133 2009-12-09  Jim Meyering  <meyering@redhat.com>
39134             Bruno Haible  <bruno@clisp.org>
39135
39136         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39137         * modules/link-warning (Makefile.am): Make the comment-removing sed
39138         command more robust in the face of bootstrap-prepended comment lines.
39139
39140 2009-12-09  Bruno Haible  <bruno@clisp.org>
39141
39142         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39143         most one group.
39144
39145 2009-12-09  Simon Josefsson <simon@josefsson.org>
39146             Bruno Haible  <bruno@clisp.org>
39147
39148         * build-aux/link-warning.h: Add copyright notice.
39149         * modules/link-warning (Makefile.am): Generate link-warning.h from
39150         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39151         * NEWS: Mention change in link-warning module.
39152         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39153         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39154         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39155         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39156         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39157         * modules/math (Makefile.am): Add dependency to math.h.
39158         * modules/search (Makefile.am): Add dependency to search.h.
39159         * modules/signal (Makefile.am): Add dependency to signal.h.
39160         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39161         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39162         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39163         * modules/string (Makefile.am): Add dependency to string.h.
39164         * modules/strings (Makefile.am): Add dependency to strings.h.
39165         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39166         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39167         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39168         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39169         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39170         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39171         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39172         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39173         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39174
39175 2009-12-09  Bruno Haible  <bruno@clisp.org>
39176
39177         fchdir: Optimize away rpl_fstat when possible.
39178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39179         REPLACE_OPEN_DIRECTORY.
39180         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39181
39182 2009-12-09  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/fchdir.c: Update comment.
39185
39186 2009-12-09  Bruno Haible  <bruno@clisp.org>
39187
39188         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39189
39190 2009-12-08  Eric Blake  <ebb9@byu.net>
39191
39192         fchdir: avoid memory leak on re-registration.
39193         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39194
39195 2009-12-08  Jim Meyering  <meyering@redhat.com>
39196
39197         init.sh: avoid Solaris 10 /bin/sh portability problem
39198         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39199         sourced script:
39200           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39201           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39202           bar
39203         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39204         and two tests used that idiom.
39205         * tests/init.sh: Update suggested usage comments.
39206         (path_prepend_): New function, to be used in place
39207         of the --src-path=DIR option.
39208         (setup_): Move PATH-prepending code into path_prepend_.
39209         * tests/test-pread.sh: Adapt to new usage.
39210         * tests/test-xalloc-die.sh: Likewise.
39211
39212 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39213
39214         * doc/gnulib.texi (Glibc pty.h): Add.
39215         * doc/glibc-functions/forkpty.texi: Add.
39216         * doc/glibc-functions/openpty.texi: Add.
39217         Suggested by Bruno Haible.
39218
39219 2009-12-08  Eric Blake  <ebb9@byu.net>
39220
39221         fchdir: fix logic bugs
39222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39223         * tests/test-fchdir.c (main): Enhance test.
39224         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39225         is in use.
39226
39227         dup2: fix logic bugs
39228         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39229         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39230         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39231         exists.
39232         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39233
39234 2009-12-07  Eric Blake  <ebb9@byu.net>
39235
39236         unlink: fix m4 detection
39237         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39238
39239         unistd-safer: add unit test
39240         * modules/unistd-safer-tests: New file.
39241         * tests/test-dup-safer.c: Likewise.
39242         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39243         * tests/test-dup2.c (setmode): Likewise.
39244         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39245
39246         cloexec: preserve text vs. binary across dup_cloexec
39247         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39248         mode.
39249         * modules/dup2-tests (Depends-on): Add binary-io.
39250         * modules/cloexec-tests (Depends-on): Likewise.
39251         * tests/test-dup2.c (setmode, is_mode): New helpers.
39252         (main): Add tests that translation mode is preserved.
39253         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39254         Reported by Bruno Haible.
39255
39256         mgetgroups: reduce duplicate listings
39257         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39258         resulting array.
39259         * tests/test-chown.h (test_chown): Simplify client.
39260         * tests/test-lchown.h (test_lchown): Likewise.
39261
39262 2009-12-06  Bruno Haible  <bruno@clisp.org>
39263
39264         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39265         value.
39266
39267 2009-12-06  Bruno Haible  <bruno@clisp.org>
39268
39269         * lib/progname.c: Include stdio.h, stdlib.h.
39270         (set_program_name): Reject a NULL argument.
39271
39272 2009-12-05  Eric Blake  <ebb9@byu.net>
39273
39274         pipe2-safer: new module
39275         * modules/pipe2-safer: New file.
39276         * lib/unistd-safer.h (pipe2_safer): New prototype.
39277         * lib/unistd--.h (pipe2): New wrapper.
39278         * lib/pipe-safer.c (pipe2_safer): New function.
39279         * modules/pipe (Depends-on): Add pipe2-safer.
39280         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39281
39282         stdlib-safer: preserve cloexec flag for mkostemp[s]
39283         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39284         fd_safer_flag.
39285
39286         unistd-safer: allow preservation of cloexec status via flag
39287         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39288         prototypes.
39289         * lib/dup-safer.c (dup_safer_flag): New function.
39290         * lib/fd-safer.c (fd_safer_flag): Likewise.
39291         * modules/cloexec (configure.ac): Set witness.
39292
39293         test-dup2: enhance test
39294         * modules/dup2-tests (Depends-on): Add cloexec.
39295         * tests/test-dup2.c (main): Enhance test.
39296
39297         cloexec: add dup_cloexec
39298         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39299         header and comments.
39300         * lib/cloexec.c (set_cloexec_flag): Add comments.
39301         (dup_cloexec): New function, with mingw implementation borrowed
39302         from...
39303         * lib/w32spawn.h (dup_noinherit): ...here.
39304         * modules/execute (Depends-on): Add cloexec.
39305         * modules/pipe (Depends-on): Likewise.
39306         * modules/cloexec (Depends-on): Add dup2.
39307         * modules/cloexec-tests (Files): New file.
39308         * tests/test-cloexec.c: Likewise.
39309
39310         test-xalloc-die: fix test for mingw
39311         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39312         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39313         directory and .exe suffix off argv[0] output.
39314
39315         test-fseeko: fix test for mingw
39316         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39317         than undefining fseek, so test will pass on mingw.
39318
39319 2009-12-05  Bruno Haible  <bruno@clisp.org>
39320
39321         * lib/progname.h (set_program_name): Clarify specification.
39322         * lib/progname.c (set_program_name): Likewise.
39323         Reported by Jim Meyering.
39324
39325 2009-12-05  Jim Meyering  <meyering@redhat.com>
39326
39327         maint.mk: backslash-escape parens in default regexp
39328         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39329         backslash-escape the literal parentheses.
39330
39331         maint.mk: news-date-check: use grep -E
39332         * top/maint.mk (today): Define a Make variable, not a...
39333         (news-date-check): ...shell variable.
39334         (news-date-regexp): Use the Make variable.
39335         Use grep's -E option.  Change the failing diagnostic to mention
39336         the variable, $(news-date-regexp).
39337
39338 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39339
39340         maintainer-makefile: allow customization of NEWS entry format
39341         * top/maint.mk (news-date-regexp): New overridable variable.
39342         (news-date-check): Use it.
39343
39344 2009-12-04  Eric Blake  <ebb9@byu.net>
39345
39346         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39347         * lib/mgetgroups.h (xgetgroups): New prototype.
39348         * lib/mgetgroups.c (xgetgroups): New wrapper.
39349         (mgetgroups): Handle ENOSYS.
39350         * modules/mgetgroups (Depends-on): Add realloc.
39351         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39352
39353         mgetgroups: avoid argument promotion issues with -1
39354         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39355         for invalid gid_t.
39356         * tests/test-chown.h (getegid, test_chown): Likewise.
39357         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39358
39359 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39360
39361         exclude: Fix header file problems.
39362         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39363
39364 2009-12-01  Jim Meyering  <meyering@redhat.com>
39365
39366         fts: fts_open: do not let an empty string cause immediate failure
39367         This is required in support of GNU rm, for which the command
39368         "rm A '' B" must process and remove both A and B, in spite of
39369         the empty string argument.
39370         * lib/fts.c (fts_open): Do not let the presence of an empty string
39371         cause fts_open to fail immediately.  Most fts-using tools must be
39372         able to process all arguments, in order, and can be expected to
39373         diagnose such arguments themselves.
39374
39375 2009-11-30  Eric Blake  <ebb9@byu.net>
39376
39377         utimens: fix compilation error
39378         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39379         Declare variable at right scope.
39380
39381 2009-11-29  Jim Meyering  <meyering@redhat.com>
39382
39383         bootstrap: handle perl-5.11's changed --version output
39384         * build-aux/bootstrap (get_version): Handle perl separately,
39385         since perl-5.11's --version output is different.
39386
39387 2009-11-28  Jim Meyering  <meyering@redhat.com>
39388
39389         userspec: depend on the inttostr module, too
39390         * modules/userspec (Depends-on): Add inttostr.
39391
39392         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39393         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39394         number of MAXUID when it evaluates to (uid_t) -1.
39395         Likewise for group ID.  Reported by Matt McCutchen in
39396         <http://savannah.gnu.org/bugs/?28113>
39397
39398         userspec: reformat to use spaces, not TABs
39399         * lib/userspec.c: Expand TABs to spaces.
39400         Add Emacs' "indent-tabs-mode: nil" hint.
39401
39402 2009-11-27  Eric Blake  <ebb9@byu.net>
39403
39404         getopt-gnu: flush out another BSD bug
39405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39406         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39407         flush out BSD bug.
39408         * tests/test-getopt.h (test_getopt): End lists with NULL.
39409         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39410         (test_getopt_long_posix): Enhance test.
39411         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39412         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39413         getopt-gnu.
39414         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39415         Likewise.
39416
39417 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39418
39419         * modules/idpriv-droptemp-tests (Notice): Fix text.
39420
39421 2009-11-27  Jim Meyering  <meyering@redhat.com>
39422
39423         test-xalloc-die: avoid spurious failure due to libtool argv difference
39424         In a libtool-enabled project, this test would fail due to a difference
39425         in the emitted program name, e.g.,
39426         -test-xalloc-die: memory exhausted
39427         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39428         Use program to avoid that.
39429         * modules/xalloc-die-tests (Depends-on): Add progname.
39430         * tests/test-xalloc-die.c: Include progname.h".
39431         (program_name): Remove decl.
39432         (main): Call set_program_name.
39433         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39434
39435 2009-11-26  Richard Jones  <rjones@redhat.com>
39436
39437         w32sock: leave win32 error in place.
39438         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39439
39440 2009-11-26  Eric Blake  <ebb9@byu.net>
39441
39442         init.sh: suggest to use skip_ and fail_ functions in comments
39443         * tests/init.sh: Add a sentence.
39444
39445 2009-11-25  Bruno Haible  <bruno@clisp.org>
39446
39447         init.sh: add documentation in comments
39448         * tests/init.sh: Add some developer and user documentation.
39449
39450 2009-11-26  Jim Meyering  <meyering@redhat.com>
39451
39452         init.sh: accommodate even those who specify bogus srcdir manually
39453         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39454         configure-time tests to be sanitized, so that there is no need to
39455         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39456         (with no double quotes) suffices.  However, since tests may be
39457         invoked manually, and since you may explicitly set srcdir to the
39458         name of a directory containing spaces, do quote its uses here.
39459         * tests/test-pread.sh: Likewise.
39460         Suggested by Bruno Haible.
39461
39462         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39463         * tests/test-pread.sh: Write no data into the pipe, because
39464         test-pread actually reads none.  This avoids a diagnostic,
39465         "bash: echo: write error: Broken pipe", that arises in the unusual
39466         event something is ignoring SIGPIPE, and might be interpreted
39467         as some sort of failure.  Reported by Bruno Haible.
39468
39469 2009-11-25  Jim Meyering  <meyering@redhat.com>
39470
39471         test-pread: cover failure with ESPIPE and EINVAL
39472         * tests/test-pread.c (main): Test for failure, too.
39473         * tests/test-pread.sh: Invoke with stdin on a pipe.
39474         Suggested by Eric Blake.
39475
39476         pread: improvement and fix
39477         * modules/pread (Depends-on): Depend on lseek, for portability to
39478         e.g., mingw.  Suggested by Eric Blake.
39479         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39480
39481         unistd.in.h: correct declaration of pread
39482         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39483         Reported by Richard W.M. Jones.
39484
39485         test-pread.sh: distribute the test script
39486         * modules/pread-tests (Files): Include test-pread.sh.
39487
39488         test-pread.sh: clean up
39489         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39490         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39491         That is unnecessary, since it's always ".".
39492         Suggestion from Eric Blake.
39493
39494         test-pread.sh: make executable
39495         * tests/test-pread.sh: Set executable bit.
39496         Reported by Eric Blake.
39497
39498         correct typo in test-pread.sh
39499         * tests/test-pread.sh: Add #! line.
39500
39501         test pread
39502         * tests/test-pread.c: New file.
39503         * tests/test-pread.sh: Likewise.
39504         * modules/pread-tests: Likewise.
39505
39506         pread: new module
39507         * modules/pread: New file.
39508         * lib/unistd.in.h (pread): Define/declare.
39509         * lib/pread.c (pread): New file.
39510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39511         * modules/unistd (Makefile.am): Substitute witnesses.
39512         * doc/posix-functions/pread.texi (pread): Update.
39513         * MODULES.html.sh: Add pread.
39514
39515 2009-11-25  Jim Meyering  <meyering@redhat.com>
39516
39517         tests/init.sh: new file to be used via most *.sh tests
39518         * tests/init.sh: New file.
39519
39520 2009-11-25  Eric Blake  <ebb9@byu.net>
39521
39522         utimens: work around older Linux failure with symlinks
39523         * lib/utimens.c (lutimensat_works_really): New variable.
39524         (fdutimens, lutimens): Use it to manage kernels that support
39525         nanosecond times on files, but not on symlinks.
39526         Reported by Ondřej Vašík.
39527
39528         utimes: fix configure grammar
39529         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39530
39531 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39532
39533         regex: Fix fastmap for multibyte character ranges.
39534         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39535         characters when a multibyte character range is included.
39536
39537 2009-11-22  Andy Wingo  <wingo@pobox.com>
39538
39539         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39540         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39541
39542 2009-11-24  Bruno Haible  <bruno@clisp.org>
39543
39544         doc: Most *_l functions exist in MacOS X 10.5.
39545         * doc/posix-functions/duplocale.texi: Update platforms list.
39546         * doc/posix-functions/freelocale.texi: Likewise.
39547         * doc/posix-functions/newlocale.texi: Likewise.
39548         * doc/posix-functions/uselocale.texi: Likewise.
39549         * doc/posix-functions/isalnum_l.texi: Likewise.
39550         * doc/posix-functions/isalpha_l.texi: Likewise.
39551         * doc/posix-functions/isblank_l.texi: Likewise.
39552         * doc/posix-functions/iscntrl_l.texi: Likewise.
39553         * doc/posix-functions/isdigit_l.texi: Likewise.
39554         * doc/posix-functions/isgraph_l.texi: Likewise.
39555         * doc/posix-functions/islower_l.texi: Likewise.
39556         * doc/posix-functions/isprint_l.texi: Likewise.
39557         * doc/posix-functions/ispunct_l.texi: Likewise.
39558         * doc/posix-functions/isspace_l.texi: Likewise.
39559         * doc/posix-functions/isupper_l.texi: Likewise.
39560         * doc/posix-functions/iswalnum_l.texi: Likewise.
39561         * doc/posix-functions/iswalpha_l.texi: Likewise.
39562         * doc/posix-functions/iswblank_l.texi: Likewise.
39563         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39564         * doc/posix-functions/iswctype_l.texi: Likewise.
39565         * doc/posix-functions/iswdigit_l.texi: Likewise.
39566         * doc/posix-functions/iswgraph_l.texi: Likewise.
39567         * doc/posix-functions/iswlower_l.texi: Likewise.
39568         * doc/posix-functions/iswprint_l.texi: Likewise.
39569         * doc/posix-functions/iswpunct_l.texi: Likewise.
39570         * doc/posix-functions/iswspace_l.texi: Likewise.
39571         * doc/posix-functions/iswupper_l.texi: Likewise.
39572         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39573         * doc/posix-functions/isxdigit_l.texi: Likewise.
39574         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39575         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39576         * doc/posix-functions/strcoll_l.texi: Likewise.
39577         * doc/posix-functions/strfmon_l.texi: Likewise.
39578         * doc/posix-functions/strftime_l.texi: Likewise.
39579         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39580         * doc/posix-functions/strxfrm_l.texi: Likewise.
39581         * doc/posix-functions/tolower_l.texi: Likewise.
39582         * doc/posix-functions/toupper_l.texi: Likewise.
39583         * doc/posix-functions/towctrans_l.texi: Likewise.
39584         * doc/posix-functions/towlower_l.texi: Likewise.
39585         * doc/posix-functions/towupper_l.texi: Likewise.
39586         * doc/posix-functions/wcscoll_l.texi: Likewise.
39587         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39588         * doc/posix-functions/wctrans_l.texi: Likewise.
39589         * doc/posix-functions/wctype_l.texi: Likewise.
39590         * doc/glibc-functions/strptime_l.texi: Likewise.
39591         * doc/glibc-functions/strtod_l.texi: Likewise.
39592         * doc/glibc-functions/strtof_l.texi: Likewise.
39593         * doc/glibc-functions/strtol_l.texi: Likewise.
39594         * doc/glibc-functions/strtold_l.texi: Likewise.
39595         * doc/glibc-functions/strtoll_l.texi: Likewise.
39596         * doc/glibc-functions/strtoul_l.texi: Likewise.
39597         * doc/glibc-functions/strtoull_l.texi: Likewise.
39598         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39599         * doc/glibc-functions/wcstod_l.texi: Likewise.
39600         * doc/glibc-functions/wcstof_l.texi: Likewise.
39601         * doc/glibc-functions/wcstol_l.texi: Likewise.
39602         * doc/glibc-functions/wcstold_l.texi: Likewise.
39603         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39604         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39605         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39606
39607 2009-11-24  Bruno Haible  <bruno@clisp.org>
39608
39609         duplocale: Fix logic bug.
39610         * lib/duplocale.c: Don't include <langinfo.h>.
39611         (_NL_LOCALE_NAME): Remove macro.
39612         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39613         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39614
39615 2009-11-23  Jim Meyering  <meyering@redhat.com>
39616
39617         test-update-copyright: don't hard-code /usr/bin/perl
39618         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39619         perl to print the current year.  Gilles Espinasse reported that
39620         the replaced use of perl was hard-coded as /usr/bin/perl.
39621
39622 2009-11-23  Bruno Haible  <bruno@clisp.org>
39623
39624         duplocale: Add support for glibc 2.3.x.
39625         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39626
39627 2009-11-22  Bruno Haible  <bruno@clisp.org>
39628
39629         vasnprintf: Tiny optimization.
39630         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39631         MacOS X.
39632
39633 2009-11-22  Bruno Haible  <bruno@clisp.org>
39634
39635         Tests for module 'duplocale'.
39636         * modules/duplocale-tests: New file.
39637         * tests/test-duplocale.c: New file.
39638
39639         New module 'duplocale'.
39640         * m4/duplocale.m4: New file.
39641         * lib/locale.in.h (duplocale): New declaration.
39642         * lib/duplocale.c: New file.
39643         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39644         gl_LOCALE_H_DEFAULTS): New macros.
39645         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39646         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39647         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39648         REPLACE_DUPLOCALE.
39649         * modules/duplocale: New file.
39650         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39651
39652 2009-11-22  Bruno Haible  <bruno@clisp.org>
39653
39654         * modules/locale-tests (configure.ac): Test for newlocale function.
39655         * tests/test-locale.c: When the system has extended locale functions,
39656         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39657
39658         locale: Make locale_t available when possible.
39659         * lib/locale.in.h: Include <xlocale.h> when it exists.
39660         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39661         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39662         * modules/locale (Depends-on): Add extensions.
39663         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39664         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39665
39666 2009-11-22  Bruno Haible  <bruno@clisp.org>
39667
39668         Add comments.
39669         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39670         invocation.
39671         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39672         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39673         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39674
39675 2009-11-22  Bruno Haible  <bruno@clisp.org>
39676
39677         error: account for the possibility of freopen (stdout).
39678         * lib/error.c: Include <unistd.h>.
39679         (flush_stdout): New function, extracted from error and error_at_line.
39680         Determine stdout's fd dynamically.
39681         (error, error_at_line): Invoke flush_stdout.
39682         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39683         * modules/error (Depends-on): Add unistd.
39684
39685 2009-11-22  Bruno Haible  <bruno@clisp.org>
39686
39687         diffseq: Add comment.
39688         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39689
39690 2009-11-22  Jim Meyering  <meyering@redhat.com>
39691
39692         c-stack: avoid defining an unused static function
39693         * lib/c-stack.c (find_stack_direction): Do not define this function
39694         when it will not be used.
39695
39696         diffseq: avoid spurious gcc warnings
39697         * lib/diffseq.h (IF_LINT2): Define.
39698         (compareseq): Use it to initialize two members of "part".
39699         This avoids two used-uninitialized warnings.
39700
39701 2009-11-21  Jim Meyering  <meyering@redhat.com>
39702
39703         c-stack: avoid "ignoring return value of `write'" warning
39704         * lib/c-stack.c: Include "ignore-value.h".
39705         (die): Explicitly ignore each write return value.
39706         * modules/c-stack (Depends-on): Add ignore-value.
39707
39708 2009-11-21  Bruno Haible  <bruno@clisp.org>
39709
39710         diffseq: reduce scope of variable 'best'.
39711         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39712         variable, earlier used for two different purposes.
39713
39714 2009-11-21  Jim Meyering  <meyering@redhat.com>
39715
39716         diffseq: remove useless assignment to "best"
39717         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39718         assignment.  At that point "best" is already guaranteed to be zero.
39719
39720 2009-11-20  Eric Blake  <ebb9@byu.net>
39721
39722         build: mention ftp redirector in release announcements
39723         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39724         values that used to come from cfg.mk; mention FTP redirect URL.
39725         * build-aux/announce-gen: Mention the mirror list.
39726         Suggested by Karl Berry.
39727
39728         nanosleep: improve port to mingw
39729         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39731         LIB_NANOSLEEP, but only when needed.
39732         * modules/select (Link): Document LIBSOCKET.
39733         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39734         enough.
39735
39736         nanosleep: work around cygwin bug
39737         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39738         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39739         bug.
39740         (getnow): Delete, not needed.
39741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39742         LIB_CLOCK_GETTIME.
39743         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39744         clock-time, gettime.
39745         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39746         bug.
39747         * modules/nanosleep-tests: New test.
39748         * tests/test-nanosleep.c: New file.
39749
39750         sleep: work around cygwin bug
39751         * lib/sleep.c (rpl_sleep): Work around the bug.
39752         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39753         (gl_PREREQ_SLEEP): Delete unused macro.
39754         * modules/sleep (Depends-on): Add verify.
39755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39756         * modules/unistd (Makefile.am): Substitute witness.
39757         * lib/unistd.in.h (sleep): Update prototype.
39758         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39759         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39760         * modules/sleep-tests (Depends-on): Check for alarm.
39761
39762 2009-11-20  Jim Meyering  <meyering@redhat.com>
39763
39764         maint.mk: improve sc_prohibit_magic_number_exit
39765         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39766         so it does not match uses like System.exit(1).
39767         Add comments showing how to correct all offenders.
39768
39769 2009-11-19  Eric Blake  <ebb9@byu.net>
39770
39771         xalloc-die-tests: add missing library
39772         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39773
39774         test-xvasprintf: silence compiler warnings
39775         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39776         empty string from gcc.
39777
39778 2009-11-19  Jim Meyering  <meyering@redhat.com>
39779
39780         xfreopen: new module, from coreutils
39781         * modules/xfreopen: New module.
39782         * lib/xfreopen.c: New file.
39783         * lib/xfreopen.h: New file.
39784         * MODULES.html.sh (File stream based Input/Output"): Add it.
39785
39786 2009-11-19  Eric Blake  <ebb9@byu.net>
39787
39788         manywarnings: depend on warnings
39789         * modules/manywarnings (Depends-on): Add warnings.
39790
39791         build: avoid compiler warnings
39792         * lib/select.c (rpl_select): Delete unused variable.
39793         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39794
39795 2009-11-18  Eric Blake  <ebb9@byu.net>
39796
39797         tests: avoid false negative with --with-packager
39798         * tests/test-version-etc.sh: Discard packager information.
39799         * tests/test-argp-version-etc-1.sh: Likewise.
39800         Reported by Mike Frysinger.
39801
39802         utimens: fix regression on Solaris
39803         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39804         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39805         can only change fd timestamps via futimesat.  Instead, use an
39806         additional witness macro to avoid BSD bug.
39807         Reported by Jim Meyering.
39808
39809 2009-11-17  Eric Blake  <ebb9@byu.net>
39810
39811         usleep: use it to simplify tests
39812         * modules/stat-time-tests (Depends-on): Add usleep.
39813         (configure.ac): Drop usleep check.
39814         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39815         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39816         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39817         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39818         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39819         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39820         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39821         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39822         Likewise.
39823         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39824         * tests/test-lchown.h (nap): Likewise.
39825         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39826         * tests/test-stat-time.c (nap): Likewise.
39827         * tests/test-utimens-common.h (nap): Update comments.
39828
39829         usleep: new module
39830         * modules/usleep: New file.
39831         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39832         * lib/usleep.c (usleep): Likewise.
39833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39834         * modules/unistd (Makefile.am): Substitute witnesses.
39835         * lib/unistd.in.h (usleep): Add declaration.
39836         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39837         * MODULES.html.sh (Date and time): Likewise.
39838         * modules/usleep-tests (Depends-on): New test.
39839         * tests/test-usleep.c: New file.
39840
39841         chown: work around OpenBSD bug
39842         * lib/chown.c (rpl_chown): Work around the bug.
39843         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39844         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39846         * modules/chown (Depends-on): Add stdbool.
39847         * modules/lchown (Depends-on): Likewise.
39848         * doc/posix-functions/chown.texi (chown): Document the bug.
39849         * doc/posix-functions/lchown.texi (lchown): Likewise.
39850         * tests/test-lchown.h (test_chown): Relax test.
39851
39852         mkstemp: avoid conflict with C++ keyword template
39853         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39854         * lib/mkostemp.c (mkostemp): Likewise.
39855         * lib/mkostemps.c (mkostemps): Likewise.
39856         * lib/mkstemp.c (mkstemp): Likewise.
39857         * lib/mkstemps.c (mkstemps): Likewise.
39858
39859         xalloc-die-tests: optimize
39860         * tests/test-xalloc-die.sh: Reduce number of processes.
39861
39862 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39863
39864         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39865         patch from ludo@gnu.org (Ludovic Courtès).
39866
39867 2009-11-17  Jim Meyering  <meyering@redhat.com>
39868
39869         version-etc: use proper license string
39870         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39871         * modules/version-etc-fsf: Likewise.
39872
39873 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39874
39875         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39876         printed to stdout.  Deal with EOL differences.
39877
39878 2009-11-17  Eric Blake  <ebb9@byu.net>
39879
39880         unsetenv: work around Solaris bug
39881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39882         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39883         Reported by Jim Meyering.
39884
39885         vasnprintf: avoid compiler warnings
39886         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39887         variables.
39888         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39889
39890 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39891
39892         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39893         settings since xalloc-die is no longer the self test,
39894         xalloc-die.sh is.
39895
39896 2009-11-17  Jim Meyering  <meyering@redhat.com>
39897
39898         test-xalloc-die.sh: make the code agree with the commit log
39899         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39900         at the end, just in case you happen to have a test-xalloc-die
39901         program in some other PATH directory.
39902
39903         test-xalloc-die.sh: fix a portability bug
39904         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39905         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39906         Otherwise, argv[0] (as often seen in diagnostics) would be too
39907         system-dependent, sometimes with, and sometimes without the leading "./".
39908
39909         version-etc-fsf: relax license to LGPLv3+
39910         * modules/version-etc-fsf (License): Relax license.
39911
39912 2009-11-16  Eric Blake  <ebb9@byu.net>
39913
39914         xalloc-die-tests: avoid printing null pointer
39915         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39916         shell script.
39917         * tests/test-xalloc-die.c (program_name): Declare.
39918         * tests/test-xalloc-die.sh (tmpfiles): New file.
39919
39920         setenv, unsetenv: work around various bugs
39921         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39922         (setenv) [HAVE_SETENV]: Work around bugs.
39923         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39925         for bugs.
39926         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39927         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39929         * modules/stdlib (Makefile.am): Update substitutions.
39930         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39931         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39932         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39933         * modules/setenv-tests: New test.
39934         * modules/unsetenv-tests: Likewise.
39935         * tests/test-setenv.c: New file.
39936         * tests/test-unsetenv.c: Likewise.
39937
39938 2009-11-16  Jim Meyering  <meyering@redhat.com>
39939
39940         version-etc: relax license to LGPLv3+
39941         * modules/version-etc (License): Relax license.
39942
39943         better AC_REQUIRE expanded-before-required-warning avoidance
39944         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39945         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39946         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39947         which is no longer needed.
39948
39949 2009-11-16  Eric Blake  <ebb9@byu.net>
39950
39951         test-freading: clean up temporary file
39952         * tests/test-freading.c (main): Remove file on success, and use
39953         ASSERT more liberally.
39954         Reported by Jim Meyering.
39955
39956 2009-11-16  Jim Meyering  <meyering@redhat.com>
39957
39958         avoid new AC_REQUIRE expanded-before-required warnings
39959         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39960         merely using it.
39961         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39962         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39963
39964 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39965
39966         * tests/test-xalloc-die.c: New file.
39967         * modules/xalloc-die-tests: New file.
39968         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39969         XFAIL_TESTS so it can be appended by modules.
39970
39971 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39972
39973         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39974         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39975
39976 2009-11-14  Eric Blake  <ebb9@byu.net>
39977
39978         fnmatch: avoid compiler warning
39979         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39980         to silence compiler warning about mismatch signedness in ?:.
39981         Reported by Robert Millan.
39982
39983         intprops: add double-inclusion guard
39984         * lib/intprops.h: Allow idempotent includes.
39985         Suggested by Bruce Korb.
39986
39987         openat: detect Solaris fchownat bug
39988         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39989         penalizing glibc chownat when only lchownat is broken.
39990         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39991         trailing slash bugs.
39992         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39993         * modules/openat-tests (Files): Include more files.
39994         (Depends-on): Add mgetgroups, sleep, stat-time.
39995         (configure.ac): Add additional checks.
39996         (Makefile.am): Build new test.
39997         * tests/test-fchownat.c: New file.
39998
39999         lchown: detect Solaris and FreeBSD bug
40000         * lib/lchown.c (rpl_lchown): Work around bug.
40001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40003         * modules/unistd (Makefile.am): Populate it.
40004         * lib/unistd.in.h (lchown): Update declaration.
40005         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40006         * modules/lchown-tests: New file.
40007         * tests/test-lchown.h (test_lchown): Likewise.
40008         * tests/test-lchown.c (main): Likewise.
40009
40010         chown: detect Solaris and FreeBSD bug
40011         * lib/chown.c (rpl_chown): Work around bug.
40012         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40013         (gl_PREREQ_CHOWN): Delete.
40014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40015         * modules/unistd (Makefile.am): Populate it.
40016         * lib/unistd.in.h (chown): Update declaration.
40017         * lib/lchown.c (chown): Update client.
40018         * modules/lchown (Depends-on): Add lstat.
40019         * doc/posix-functions/chown.texi (chown): Document the bug.
40020         * doc/posix-functions/getgroups.texi (getgroups): Document
40021         getgroups pitfall.
40022         * modules/chown-tests: New file.
40023         * tests/test-chown.h (test_chown): Likewise.
40024         * tests/test-chown.c (main): Likewise.
40025
40026 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40027
40028         gnulib-tool: correctly detect absence of m4 directories
40029         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40030
40031 2009-11-14  Jim Meyering  <meyering@redhat.com>
40032
40033         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40034         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40035
40036 2009-11-14  John W. Eaton  <jwe@gnu.org>
40037
40038         strftime.h: wrap function declaration in extern "C" block
40039         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40040
40041 2009-11-13  Eric Blake  <ebb9@byu.net>
40042
40043         getgroups: avoid compiler warning
40044         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40045
40046         getgroups: work around FreeBSD bug
40047         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40048         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40049         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40050         * tests/test-getgroups.c (main): Fix buffer overrun.
40051
40052         getgroups: avoid compilation failure
40053         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40054         * modules/getgroups (Depends-on): Add stdint.
40055
40056 2009-11-13  Jim Meyering  <meyering@redhat.com>
40057
40058         test-getgroups: avoid compilation failure
40059         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40060
40061 2009-11-13  Eric Blake  <ebb9@byu.net>
40062
40063         mgetgroups: new module, taken from coreutils
40064         * modules/mgetgroups: New file.
40065         * lib/mgetgroups.h: Likewise.
40066         * lib/mgetgroups.c (mgetgroups): Likewise.
40067         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40068         * MODULES.html.sh (Users and groups): Mention it.
40069
40070         getgroups: don't expose GETGROUPS_T to user
40071         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40072         an element at a time if GETGROUPS_T is wrong size.
40073         * lib/getugroups.h (getugroups): Change signature.
40074         * lib/unistd.in.h (getgroups): Likewise.
40075         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40076         signature needs fixing.
40077         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40078         AC_TYPE_GETGROUPS.
40079         * modules/group-member (Depends-on): Add getgroups.
40080         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40081         (group_member): Rely on getgroups replacement.
40082         * lib/getugroups.c (getugroups): Use gid_t.
40083         * tests/test-getgroups.c (main): Likewise.
40084         * NEWS: Mention the signature change.
40085         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40086         problem with signature.
40087         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40088         GETGROUPS_T is still useful for setgroups.
40089
40090         getgroups, getugroups: provide stubs for mingw
40091         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40092         * lib/getugroups.c (getugroups): Likewise.
40093         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40094         function.  Modernize replacement scheme.
40095         (gl_PREREQ_GETGROUPS): Delete.
40096         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40097         * modules/getgroups (configure.ac): Declare witness.
40098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40099         * modules/unistd (Depends-on): Substitute witness.
40100         * lib/unistd.in.h (getgroups): Declare replacement.
40101
40102         getgroups: avoid calling exit
40103         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40104         drop xalloc.
40105         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40106         dependencies.
40107         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40108         exiting, in the rare case of malloc failure.
40109
40110         getgroups: fix logic error
40111         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40112         has more than 20 groups.
40113         * modules/getgroups-tests: New test.
40114         * tests/test-getgroups.c: New file.
40115
40116 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40117
40118         * tests/test-base64.c: Improve.
40119
40120 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40121
40122         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40123         Blake <ebb9@byu.net>.
40124
40125 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40126
40127         * tests/test-xvasprintf.c: Add %s%s related checks.
40128
40129 2009-11-12  Eric Blake  <ebb9@byu.net>
40130
40131         version-etc: match standards.texi style
40132         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40133         and use <> only for URLs.
40134
40135 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40136
40137         fts: do not fail on a submount during traversal
40138         * lib/fts.c (fts_build): Read the stat info again after opening
40139         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40140         Original report at http://bugzilla.redhat.com/501848.
40141
40142 2009-11-12  Jim Meyering  <meyering@redhat.com>
40143
40144         bootstrap: sync from coreutils
40145         * build-aux/bootstrap (bootstrap_epilogue): New function.
40146         Use git_modules_config in one more place.  This make bootstrap's
40147         --gnulib-srcdir option more useful for testing.
40148
40149         bootstrap: generalize autoheader check
40150         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40151         AC_CONFIG_HEADERS.
40152
40153 2009-11-11  Eric Blake  <ebb9@byu.net>
40154
40155         mkfifoat: use new modules for Solaris and BSD bugs
40156         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40157         * lib/mkfifoat.c (mknodat): Split...
40158         * lib/mknodat.c (mknodat): ...into new file.
40159         * modules/mkfifoat (Files): Ship new file.
40160         (Depends-on): Add mkfifo, mknod.
40161         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40162         (Depends-on): Add symlink.
40163         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40164         redundant with test_mkfifo.h.
40165         (do_mkfifoat, do_mknodat): New helpers.
40166
40167         mknod: new module
40168         * modules/mknod: New file.
40169         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40170         * lib/mknod.c (mknod): Likewise.
40171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40172         defaults.
40173         * modules/sys_stat (Makefile.am): Substitute them.
40174         * lib/sys_stat.in.h (mknod): Declare replacement.
40175         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40176         Document it.
40177         * doc/posix-functions/mknod.texi (mknod): Likewise.
40178         * modules/mknod-tests: New test.
40179         * tests/test-mknod.c: Likewise.
40180
40181         mkfifo: new module
40182         * modules/mkfifo: New file.
40183         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40184         * lib/mkfifo.c (mkfifo): Likewise.
40185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40186         defaults.
40187         * modules/sys_stat (Makefile.am): Substitute them.
40188         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40189         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40190         Document it.
40191         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40192         * modules/mkfifo-tests: New test.
40193         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40194         from test-mkfifoat.c.
40195         * tests/test-mkfifo.c: New file.
40196
40197         readlink: detect FreeBSD bug
40198         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40199         slash on symlink.
40200         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40201         * tests/test-readlink.h (test_readlink): Enhance test.
40202
40203         symlink: detect FreeBSD bug
40204         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40205         slash on symlink.
40206         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40207         * tests/test-symlink.h (test_symlink): Enhance test.
40208
40209 2009-11-10  Eric Blake  <ebb9@byu.net>
40210
40211         link: detect FreeBSD bug
40212         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40213         symlink.
40214         * doc/posix-functions/link.texi (link): Document the bug.
40215         * tests/test-link.h (test_link): Enhance test.
40216         * tests/test-linkat.c (main): Update caller.
40217
40218         unlink, remove: detect FreeBSD bug
40219         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40220         slash on symlink.
40221         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40222         * doc/posix-functions/remove.texi (remove): Likewise.
40223         * tests/test-unlink.h (test_unlink): Enhance test.
40224         * tests/test-remove.c (main): Likewise.
40225
40226 2009-11-09  Eric Blake  <ebb9@byu.net>
40227
40228         rename: detect FreeBSD bug
40229         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40230         slash on symlink.
40231         * modules/renameat-tests (Depends-on): Add filenamecat.
40232         * tests/test-rename.h (test_rename): Allow one more errno.
40233         * tests/test-renameat.c (main): Likewise.
40234         * doc/posix-functions/rename.texi (rename): Document the bug.
40235
40236         open: detect FreeBSD bug
40237         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40238         symlink.
40239         * doc/posix-functions/open.texi (open): Document the bug.
40240         * doc/posix-functions/utimes.texi (utimes): Likewise.
40241         * tests/test-open.h (test_open): Add parameters, and test symlink
40242         handling.
40243         * tests/test-open.c (main): Adjust caller.
40244         * tests/test-fcntl-safer.c (main): Likewise.
40245         * modules/open-tests (Depends-on): Add stdbool, symlink.
40246         * modules/fcntl-safer-tests (Depends-on): Likewise.
40247         * tests/test-openat.c (main): Add test-open tests.
40248
40249         stat: detect FreeBSD bug
40250         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40251         symlink.
40252         * doc/posix-functions/stat.texi (stat): Document the bug.
40253         * tests/test-stat.h (test_stat_func): Add argument.
40254         * tests/test-stat.c (main): Adjust caller.
40255         * tests/test-fstatat.c (main): Likewise.
40256         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40257         Reported by Jim Meyering.
40258
40259 2009-11-09  James Youngman  <jay@gnu.org>
40260
40261         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40262         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40263
40264 2009-11-08  Jim Meyering  <meyering@redhat.com>
40265
40266         utimens: remove invalid futimesat call
40267         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40268         It used the file descriptor of the target file as the DIR_FD
40269         parameter and NULL as the file name.  That caused failure with
40270         errno == EFAULT on FreeBSD-8.0-rc2
40271
40272 2009-11-07  Eric Blake  <ebb9@byu.net>
40273
40274         fflush, freadseek: use fseeko, not fseek
40275         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40276         (clear_ungetc_buffer): Avoid potential problems on large files.
40277         * lib/freadseek.c (freadseek): Likewise.
40278         * modules/freadseek (Depends-on): Add fseeko.
40279         * modules/fseek (configure.ac): Set a witness.
40280         * tests/test-fflush.c (main): Use fseeko.
40281         * tests/test-fpurge.c (fseek): Disable link warning.
40282         * tests/test-freadable.c (fseek): Likewise.
40283         * tests/test-freading.c (fseek): Likewise.
40284         * tests/test-fseeko.c (fseek): Likewise.
40285         * tests/test-ftell.c (fseek): Likewise.
40286         * tests/test-ftello.c (fseek): Likewise.
40287         * tests/test-fwritable.c (fseek): Likewise.
40288         * tests/test-fwriting.c (fseek): Likewise.
40289
40290 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40291
40292         * modules/memchr (Depends-on): Drop getpagesize dependency.
40293
40294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40295
40296         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40297         Reported by Ludovic Courtès.
40298         * build-aux/pmccabe2html: Improve example usage.
40299         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40300
40301 2009-11-06  Jim Meyering  <meyering@redhat.com>
40302
40303         do-release-commit-and-tag: New module.
40304         Automate the release-commit and tag process.
40305         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40306         * modules/do-release-commit-and-tag: New file.
40307         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40308
40309 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40310
40311         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40312         because test-select.c uses inet_pton.
40313
40314 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40315
40316         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40317         GETADDRINFO_LIB.  Bump serial number.
40318         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40319         Suggested by Eric Blake <ebb9@byu.net>.
40320
40321 2009-11-05  Eric Blake  <ebb9@byu.net>
40322
40323         strtod: detect darwin bug
40324         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40325         Reported by Leo Davis.
40326
40327         freopen-safer: new module
40328         * modules/freopen-safer: New module.
40329         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40330         * lib/freopen-safer.c (freopen_safer): New file.
40331         * lib/stdio-safer.h (freopen_safer): New declaration.
40332         * lib/stdio--.h (freopen): New override.
40333         * MODULES.html.sh (File stream based Input/Output): Mention it.
40334         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40335         freopen-safer module.
40336         * doc/posix-functions/stderr.texi (stderr): Likewise.
40337         * doc/posix-functions/stdin.texi (stdin): Likewise.
40338         * doc/posix-functions/stdout.texi (stdout): Likewise.
40339         * modules/freopen-safer-tests: New test.
40340         * tests/test-reopen-safer.c: New file.
40341
40342 2009-11-05  Jim Meyering  <meyering@redhat.com>
40343
40344         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40345         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40346
40347 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40348
40349         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40350
40351 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40352
40353         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40354
40355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40356
40357         Fix link error.
40358         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40359         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40360
40361 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40362
40363         * tests/test-func.c: Also test value of __func__.
40364
40365 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40366
40367         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40368         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40369
40370 2009-11-05  Bruno Haible  <bruno@clisp.org>
40371
40372         Fix link error.
40373         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40374         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40375         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40376
40377 2009-11-05  Bruno Haible  <bruno@clisp.org>
40378
40379         Tests for module 'inet_pton'.
40380         * modules/inet_pton-tests: New file.
40381         * tests/test-inet_pton.c: New file.
40382
40383 2009-11-05  Bruno Haible  <bruno@clisp.org>
40384
40385         Tests for module 'inet_ntop'.
40386         * modules/inet_ntop-tests: New file.
40387         * tests/test-inet_ntop.c: New file.
40388
40389 2009-11-04  Eric Blake  <ebb9@byu.net>
40390
40391         stdlib-safer: wrap all mkstemp variants
40392         * modules/mkostemp (configure.ac): Set witness.
40393         * modules/mkostemps (configure.ac): Likewise.
40394         * modules/mkstemps (configure.ac): Likewise.
40395         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40396         (mkstemps_safer): Wrap more functions.
40397         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40398         wrapping.
40399         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40400         (mkstemps_safer): Implement the wrappers.
40401
40402         mkstemps, mkostemps: new modules
40403         * modules/mkostemps: New module.
40404         * modules/mkstemps: Likewise.
40405         * lib/mkostemps.c (mkostemps): New file.
40406         * lib/mkstemps.c (mkstemps): Likewise.
40407         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40408         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40410         * modules/stdlib (Makefile.am): Substitute them.
40411         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40412         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40413         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40414         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40415         * MODULES.html.sh (File system functions): Mention them.
40416
40417         tempname: resync from glibc
40418         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40419         same values for __GT_FILE as glibc.  Abort even when assertions
40420         are disabled.
40421         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40422         match its value otherwise.  Allow idempotent inclusion.
40423         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40424         * lib/mkostemp.c (mkostemp): Likewise.
40425         * lib/mkstemp.c (mkstemp): Likewise.
40426         * lib/tmpfile.c (tmpfile): Likewise.
40427         * NEWS: Document this.
40428
40429         utimens: fix use of futimens on older Linux
40430         * lib/utimens.c (fdutimens): Use updated, rather than original,
40431         timespec to avoid bug in older Linux kernel.
40432         Reported by Simon Josefsson.
40433
40434 2009-11-04  Bruno Haible  <bruno@clisp.org>
40435
40436         Make num_processors more flexible and consistent.
40437         * lib/nproc.h (enum nproc_query): New type.
40438         (num_processors): Add a 'query' argument.
40439         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40440         (num_processors): Add a 'query' argument. Test the value of the
40441         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40442         mingw, count the number of CPUs available for the current process.
40443         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40444         Check for sched_getaffinity and sched_getaffinity_np.
40445         * modules/nproc (Depends-on): Add c-ctype, extensions.
40446         * NEWS: Mention the change.
40447
40448 2009-11-03  Bruno Haible  <bruno@clisp.org>
40449
40450         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40451
40452 2009-11-03  Jim Meyering  <meyering@redhat.com>
40453
40454         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40455         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40456         if it is defined.
40457
40458 2009-11-02  Eric Blake  <ebb9@byu.net>
40459
40460         mktime, timegm: share common declaration
40461         * lib/mktime-internal.h: New file.
40462         * lib/mktime.c: Use it rather than open-coding a declaration.
40463         * lib/timegm.c: Likewise.
40464         * modules/mktime (Files): Ship it.
40465         * modules/timegm (Files): Likewise.
40466         Suggested by Bruno Haible.
40467
40468         test-update-copyright: update test to match script changes
40469         * tests/test-update-copyright.sh: Avoid hard-coding perl
40470         location.  Don't update *.bak created by earlier runs.
40471
40472 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40473             Simon Josefsson  <simon@josefsson.org>
40474             Bruno Haible  <bruno@clisp.org>
40475
40476         Fix link error on Solaris 8.
40477         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40478         also in libnsl. Define also INET_PTON_LIB.
40479         * modules/inet_pton (Link): New section.
40480
40481 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40482             Bruno Haible  <bruno@clisp.org>
40483
40484         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40485         * modules/inet_ntop (Link): New section.
40486         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40487
40488 2009-11-02  Eric Blake  <ebb9@byu.net>
40489
40490         maint: avoid compiler warnings in m4 macros
40491         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40492         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40493
40494 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40495
40496         * m4/pmccabe2html.m4: Remove file.
40497         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40498         function.  Change maintainer.
40499         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40500         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40501         Courtès).
40502
40503 2009-10-31  Eric Blake  <ebb9@byu.net>
40504
40505         fseeko: fix m4 regression
40506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40507         regression from 2009-10-27.
40508         Reported by Ralf Wildenhues.
40509
40510 2009-10-31  Jim Meyering  <meyering@redhat.com>
40511
40512         inttostr: aesthetics and improved (compile-time) safety
40513         Define inttype_is_signed rather than inttype_is_unsigned,
40514         since the sole use is via "#if inttype_is_signed".
40515         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40516         inttype_is_unsigned.
40517         * lib/offtostr.c (inttype_is_signed): Likewise.
40518         * lib/uinttostr.c (inttype_is_signed): Likewise.
40519         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40520         * lib/inttostr.c (inttostr): Use verify to cross-check the
40521         inttype_is_signed value and the signedness of the actual type.
40522         * modules/inttostr (Depends-on): Add verify.
40523
40524 2009-10-30  Eric Blake  <ebb9@byu.net>
40525
40526         build: avoid compiler warnings
40527         * lib/fchmodat.c (lchmod): Mark unused variables.
40528         * lib/getopt.c (_getopt_initialize): Likewise.
40529         * lib/mktime.c (__mktime_internal): Provide prototype.
40530         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40531         older gcc that do not understand #pragma GCC diagnostic.
40532         * lib/uinttostr.c (inttype_is_unsigned): Define.
40533         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40534
40535 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40536
40537         stat: fix compilation on AIX
40538         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40539         only see struct stat64.
40540
40541 2009-10-30  Eric Blake  <ebb9@byu.net>
40542
40543         exclude: make more robust
40544         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40545         rather than masking a coding bug.
40546         Suggested by Bruno Haible.
40547
40548 2009-10-30  Jim Meyering  <meyering@redhat.com>
40549
40550         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40551         Rather than putting #!/usr/bin/perl on the first line,
40552         start with a variant of what's recommended by "man perlrun" that
40553         invokes the first "perl" program from your shell's search path.
40554         * build-aux/gitlog-to-changelog: Replace #!... as above.
40555         Add a "Local Variables" perl mode setting.
40556         Prompted by a patch from Ludovic Courtès.
40557         Improved by Eric Blake.
40558         * build-aux/useless-if-before-free: Likewise.
40559         * build-aux/announce-gen: Likewise.
40560         * build-aux/update-copyright: Likewise.
40561
40562 2009-10-29  Eric Blake  <ebb9@byu.net>
40563
40564         filenamecat-lgpl: adjust clients
40565         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40566         filenamecat.
40567         * modules/renameat (Depends-on): Likewise.
40568
40569         filenamecat: split into filenamecat-lgpl
40570         * modules/filenamecat-lgpl: New module.
40571         * modules/filenamecat (Files): Move library-safe files into
40572         filenamecat-lgpl.
40573         (Depends-on): Add filenamecat-lgpl.
40574         (configure.ac): Declare witness.
40575         * lib/filenamecat.h (file_name_concat): Only declare when using
40576         GPL module.
40577         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40578         Move...
40579         * lib/filenamecat-lgpl.c: ...into new file.
40580         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40581         (gl_FILE_NAME_CONCAT): Use it.
40582         * MODULES.html.sh (File system functions): Mention new module.
40583
40584         argp: avoid memory leak
40585         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40586         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40587         base_name, since the latter malloc()s and can call exit().
40588         Leak introduced 2006-07-03.
40589
40590         dirname-lgpl: adjust clients that don't need full dirname
40591         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40592         * modules/filenamecat (Depends-on): Likewise.
40593         * modules/linkat (Depends-on): Likewise.
40594         * modules/mkancesdirs (Depends-on): Likewise.
40595         * modules/mkdir (Depends-on): Likewise.
40596         * modules/openat (Depends-on): Likewise.
40597         * modules/savewd (Depends-on): Likewise.
40598         * modules/rename (Depends-on): Likewise.
40599         (License): Relax license.
40600         * modules/mkdir-tests (Depends-on): Drop progname.
40601         (Makefile.am): Delete unneeded LDADD.
40602         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40603
40604         dirname: split into dirname-lgpl
40605         * modules/dirname-lgpl: New module.
40606         * modules/dirname (Files): Move library-safe files into
40607         dirname-lgpl.
40608         (Depends-on): Add dirname-lgpl.
40609         (configure.ac): Declare witness.
40610         * modules/double-slash-root (License): Relax license.
40611         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40612         module.
40613         * lib/dirname.c (dir_len, mdir_name): Move...
40614         * lib/dirname-lgpl.c: ...into new file.
40615         * lib/basename.c (last_component, base_len): Move...
40616         * lib/basename-lgpl.c: ...into new file.
40617         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40618         (gl_DIRNAME): Use it.
40619         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40620         Mention new module.
40621         * modules/dirname-tests (Depends-on): Add progname.
40622         * tests/test-dirname.c (program_name): Delete.
40623
40624         mkdir: make safe for libraries
40625         * modules/mkdir (Depends-on): Drop xalloc.
40626         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40627         exit.
40628
40629         tests: avoid some compiler warnings
40630         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40631         literals.
40632         * tests/test-memchr.c (main): Avoid type mismatch.
40633         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40634         * tests/test-base64.c (main): Likewise.
40635         * tests/test-getdelim.c (main): Likewise.
40636         * tests/test-gethostname.c (main): Likewise.
40637         * tests/test-getline.c (main): Likewise.
40638         * tests/test-netinet_in.c (main): Likewise.
40639         * tests/test-select.c (open_server_socket, main): Likewise.
40640         * tests/test-select-stdin.c (main): Likewise.
40641         * tests/test-sockets.c (main): Likewise.
40642         * tests/test-strsignal.c (main): Likewise.
40643         * tests/test-sys_select.c (main): Likewise.
40644         * tests/test-sys_socket.c (main): Likewise.
40645         * tests/test-u64.c (main): Likewise.
40646         * tests/test-xfprintf-posix.c (main): Likewise.
40647         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40648
40649         sockets: avoid compiler warning
40650         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40651
40652         maint: detect usage(1) and other suspicious exits
40653         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40654
40655 2009-10-29  Jim Meyering  <meyering@redhat.com>
40656
40657         timespec: long-to-int truncation could make timespec_cmp malfunction
40658         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40659         a multiple of 2^32 nanoseconds as no difference.
40660
40661 2009-10-28  Jim Meyering  <meyering@redhat.com>
40662
40663         fprintftime: wrap macro code argument in "do {...} while(0)"
40664         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40665         cpy macro must be a statement that can be followed by a semicolon.
40666         Now that the else clause contains a comment and is hence longer
40667         than one line, I require curly braces.  That in turn requires
40668         that we wrap this code block in the standard do...while(0).
40669
40670         fprintftime: remove stray semicolon from previous change
40671         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40672
40673         fprintftime: avoid a warning about ignored fwrite return value
40674         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40675         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40676         that is unsafe.
40677         * modules/fprintftime (Depends-on): Add ignore-value.
40678
40679         exclude: avoid an unwarranted warning
40680         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40681
40682 2009-10-27  Eric Blake  <ebb9@byu.net>
40683
40684         fseek: avoid compilation failure when fflush is replaced
40685         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40686         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40687         module is in use.
40688         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40689         module is not in use; since REPLACE_FSEEK worked otherwise.
40690         (GNULIB_FTELLO): Likewise for ftell.
40691         Reported by Ian Beckwith and others.
40692
40693 2009-10-27  Bruno Haible  <bruno@clisp.org>
40694
40695         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40696         Reported by Jim Meyering.
40697
40698 2009-10-27  Jim Meyering  <jim@meyering.net>
40699             Bruno Haible  <bruno@clisp.org>
40700
40701         Avoid warning despite dropping the return value of fwrite.
40702         * lib/unicodeio.c: Include ignore-value.h.
40703         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40704         * modules/unicodeio (Depends-on): Add ignore-value.
40705
40706 2009-10-26  Eric Blake  <ebb9@byu.net>
40707
40708         areadlinkat: fix fallback path
40709         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40710         pointer and zero.
40711
40712 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40713
40714         Use a better IO block size for modern systems
40715         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40716         * lib/md2.c: Likewise.
40717         * lib/md4.c: Likewise.
40718         * lib/md5.c: Likewise.
40719         * lib/sha1.c: Likewise.
40720         * lib/sha256.c: Likewise.
40721         * lib/sha512.c: Likewise.
40722
40723 2009-10-22  Eric Blake  <ebb9@byu.net>
40724
40725         tests: avoid several compiler warnings
40726         * tests/test-getcwd.c (main): Avoid buffer underflow.
40727         * tests/test-getdate.c (main): String literals are not safe with
40728         putenv, so use setenv.  Declare unused argument.
40729         * modules/getdate-tests (Depends-on): Add setenv.
40730         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40731         problems with string literals in char *.
40732         * tests/test-hash.c (main): Avoid shadowing declaration.
40733         (insert_new): Treat string literals as char const *.
40734         * tests/test-getopt.h (test_getopt): Likewise.
40735         (getopt_loop): Alter types to minimize casting elsewhere.
40736         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40737         (test_getopt_long_posix): Likewise.
40738         (do_getopt_long): Add wrapper to minimize casting.
40739         * tests/test-atexit.c (clear_temp_file): Use void.
40740         * tests/test-areadlink-with-size.c (main): Declare unused
40741         arguments.
40742         * tests/test-areadlink.c (main): Likewise.
40743         * tests/test-areadlinkat-with-size.c (main): Likewise.
40744         * tests/test-areadlinkat.c (main): Likewise.
40745         * tests/test-canonicalize-lgpl.c (main): Likewise.
40746         * tests/test-canonicalize.c (main): Likewise.
40747         * tests/test-dirent-safer.c (main): Likewise.
40748         * tests/test-dirname.c (main): Likewise.
40749         * tests/test-dup2.c (main): Likewise.
40750         * tests/test-fchdir.c (main): Likewise.
40751         * tests/test-fcntl-h.c (main): Likewise.
40752         * tests/test-fcntl-safer.c (main): Likewise.
40753         * tests/test-fdopendir.c (main): Likewise.
40754         * tests/test-fdutimensat.c (main): Likewise.
40755         * tests/test-fflush.c (main): Likewise.
40756         * tests/test-filenamecat.c (main): Likewise.
40757         * tests/test-filevercmp.c (main): Likewise.
40758         * tests/test-fopen-safer.c (main): Likewise.
40759         * tests/test-fopen.c (main): Likewise.
40760         * tests/test-fpending.c (main): Likewise.
40761         * tests/test-fpurge.c (main): Likewise.
40762         * tests/test-freading.c (main): Likewise.
40763         * tests/test-fstatat.c (main): Likewise.
40764         * tests/test-fsync.c (main): Likewise.
40765         * tests/test-futimens.c (main): Likewise.
40766         * tests/test-getndelim2.c (main): Likewise.
40767         * tests/test-gettimeofday.c (main): Likewise.
40768         * tests/test-getopt.c (main): Likewise.
40769         * tests/test-i-ring.c (main): Likewise.
40770         * tests/test-inttypes.c (main): Likewise.
40771         * tests/test-link.c (main): Likewise.
40772         * tests/test-lstat.c (main): Likewise.
40773         * tests/test-math.c (main): Likewise.
40774         * tests/test-md5.c (main): Likewise.
40775         * tests/test-memchr2.c (main): Likewise.
40776         * tests/test-memrchr.c (main): Likewise.
40777         * tests/test-mkdir.c (main): Likewise.
40778         * tests/test-mkdirat.c (main): Likewise.
40779         * tests/test-mkfifoat.c (main): Likewise.
40780         * tests/test-open.c (main): Likewise.
40781         * tests/test-openat-safer.c (main): Likewise.
40782         * tests/test-openat.c (main): Likewise.
40783         * tests/test-quotearg.c (main): Likewise.
40784         * tests/test-rawmemchr.c (main): Likewise.
40785         * tests/test-readlink.c (main): Likewise.
40786         * tests/test-remove.c (main): Likewise.
40787         * tests/test-rename.c (main): Likewise.
40788         * tests/test-renameat.c (main): Likewise.
40789         * tests/test-rmdir.c (main): Likewise.
40790         * tests/test-sha1.c (main): Likewise.
40791         * tests/test-signal.c (main): Likewise.
40792         * tests/test-sigaction.c (main): Likewise.
40793         * tests/test-stat.c (main): Likewise.
40794         * tests/test-stat-time.c (main): Likewise.
40795         * tests/test-stddef.c (main): Likewise.
40796         * tests/test-stdint.c (main): Likewise.
40797         * tests/test-stdio.c (main): Likewise.
40798         * tests/test-stdlib.c (main): Likewise.
40799         * tests/test-strchrnul.c (main): Likewise.
40800         * tests/test-strerror.c (main): Likewise.
40801         * tests/test-string.c (main): Likewise.
40802         * tests/test-strtod.c (main): Likewise.
40803         * tests/test-strverscmp.c (main): Likewise.
40804         * tests/test-symlink.c (main): Likewise.
40805         * tests/test-symlinkat.c (main): Likewise.
40806         * tests/test-sys_stat.c (main): Likewise.
40807         * tests/test-sys_time.c (main): Likewise.
40808         * tests/test-time.c (main): Likewise.
40809         * tests/test-unistd.c (main): Likewise.
40810         * tests/test-unlink.c (main): Likewise.
40811         * tests/test-unlinkat.c (main): Likewise.
40812         * tests/test-utimens.c (main): Likewise.
40813         * tests/test-utimensat.c (main): Likewise.
40814         * tests/test-version-etc.c (main): Likewise.
40815         * tests/test-wchar.c (main): Likewise.
40816         * tests/test-wctype.c (main): Likewise.
40817         * tests/test-xprintf-posix.c (main): Likewise.
40818         * tests/test-posixtm.c (main): Likewise.
40819         (STREQ): Delete unused macro.
40820         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40821         shadowed variables.
40822         * tests/test-memchr.c (main): Likewise.
40823
40824 2009-10-21  Eric Blake  <ebb9@byu.net>
40825
40826         areadlinkat: avoid failure on older glibc
40827         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40828         rather than mis-comparing 0 against FUNC_RESULT of char*.
40829
40830 2009-10-21  Bruno Haible  <bruno@clisp.org>
40831
40832         * modules/stpncpy (License): Relicense under LGPLv2+.
40833         Reported by David Lutterkort <lutter@redhat.com>.
40834
40835 2009-10-20  Eric Blake  <ebb9@byu.net>
40836
40837         utimensat: work around Solaris 9 bug
40838         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40839         has trailing slash bugs.
40840         * tests/test-lutimens.h (test_lutimens): Enhance test.
40841         * tests/test-utimens.h (test_utimens): Likewise.
40842         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40843         * doc/posix-functions/utimes.texi (utimes): Likewise.
40844         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40845         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40846         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40847         * doc/posix-functions/futimens.texi (futimens): Likewise.
40848
40849         fdutimensat: new module
40850         * modules/fdutimensat: New file.
40851         * lib/fdutimensat.c (fdutimensat): Likewise.
40852         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40853         * MODULES.html.sh (File system functions): Mention module.
40854         * modules/fdutimensat-tests: New test.
40855         * tests/test-fdutimensat.c: Likewise.
40856
40857         doc: regenerate INSTALL
40858         * doc/INSTALL: Reflect recent autoconf update.
40859         * doc/INSTALL.ISO: Likewise.
40860         * doc/INSTALL.UTF-8: Likewise.
40861
40862 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40863
40864         acl: warn if ACL support is not detected
40865         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40866
40867 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40868
40869         * lib/nproc.h: Add extern "C" block for C++.
40870
40871 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40872             Bruno Haible  <bruno@clisp.org>
40873
40874         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40875         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40876         * doc/posix-functions/isalpha.texi: Likewise.
40877         * doc/posix-functions/isblank.texi: Likewise.
40878         * doc/posix-functions/iscntrl.texi: Likewise.
40879         * doc/posix-functions/isdigit.texi: Likewise.
40880         * doc/posix-functions/isgraph.texi: Likewise.
40881         * doc/posix-functions/islower.texi: Likewise.
40882         * doc/posix-functions/isprint.texi: Likewise.
40883         * doc/posix-functions/ispunct.texi: Likewise.
40884         * doc/posix-functions/isspace.texi: Likewise.
40885         * doc/posix-functions/isupper.texi: Likewise.
40886         * doc/posix-functions/isxdigit.texi: Likewise.
40887
40888 2009-10-18  Bruno Haible  <bruno@clisp.org>
40889
40890         Tests for module 'isblank'.
40891         * modules/isblank-tests: New file.
40892         * tests/test-isblank.c: New file.
40893
40894         New module 'isblank'.
40895         * lib/isblank.c: New file.
40896         * m4/isblank.m4: New file.
40897         * modules/isblank: New file.
40898         * doc/posix-functions/isblank.texi: Mention the new module.
40899
40900 2009-10-18  Bruno Haible  <bruno@clisp.org>
40901
40902         New module 'ctype'.
40903         * lib/ctype.in.h: New file.
40904         * m4/ctype.m4: New file.
40905         * modules/ctype: New file.
40906         * doc/posix-headers/ctype.texi: Mention the new module.
40907
40908 2009-10-18  Jim Meyering  <meyering@redhat.com>
40909
40910         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40911         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40912         right after its initialization, rather than farther down.
40913         Keeping these in close proximity makes it easier to ensure
40914         that each such variable is initialized.  E.g.,
40915
40916             LIB_CLOCK_GETTIME=
40917             AC_SUBST([LIB_CLOCK_GETTIME])
40918
40919         This change also increments these serial numbers.
40920         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40921         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40923
40924 2009-10-18  Bruno Haible  <bruno@clisp.org>
40925
40926         Don't let environment variables perturb build.
40927         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40928         (gl_PREREQ_GETHRXTIME): ... not here.
40929
40930 2009-10-18  Bruno Haible  <bruno@clisp.org>
40931
40932         Avoid symlink attack in localcharset module.
40933         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40934         (O_NOFOLLOW): Define fallback.
40935         (get_charset_aliases): Don't open the file if it is a symbolic link.
40936         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40937         gl_FCNTL_H.
40938         (gl_FCNTL_H): Require it.
40939         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40940         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40941         Reported by Fergal Glynn <fglynn@veracode.com>.
40942
40943 2009-10-18  Bruno Haible  <bruno@clisp.org>
40944
40945         Implement nproc for mingw.
40946         * lib/nproc.c: Include <windows.h>
40947         (num_processors): On native Windows platforms, try GetSystemInfo.
40948
40949 2009-10-18  Bruno Haible  <bruno@clisp.org>
40950
40951         Implement nproc for IRIX.
40952         * lib/nproc.c: Include <sys/sysmp.h>.
40953         (num_processors): On IRIX systems, try sysmp.
40954         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40955
40956 2009-10-18  Bruno Haible  <bruno@clisp.org>
40957
40958         Implement nproc for HP-UX.
40959         * lib/nproc.c: Include <sys/pstat.h>
40960         (num_processors): On HP-UX systems, try pstat_getdynamic.
40961         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40962         pstat_getdynamic.
40963
40964 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40965             Bruno Haible  <bruno@clisp.org>
40966
40967         Implement nproc for NetBSD, OpenBSD.
40968         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40969         (ARRAY_SIZE): New macro.
40970         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40971         * m4/nproc.m4: New file.
40972         * modules/nproc (Files): Add m4/nproc.m4.
40973         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40974         (Makefile.am): Instead, augment lib_SOURCES.
40975
40976 2009-10-18  Bruno Haible  <bruno@clisp.org>
40977
40978         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40979         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40980         sys/param.h.
40981
40982 2009-10-16  Eric Blake  <ebb9@byu.net>
40983
40984         utimensat: new module
40985         * modules/utimensat: New file.
40986         * lib/utimensat.c (utimensat): Likewise.
40987         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40988         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40989         so we can work around Linux bugs.
40990         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40991         * modules/sys_stat (Makefile.am): Substitute them.
40992         * lib/sys_stat.in.h (utimensat): Declare it.
40993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40994         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40995         * modules/utimensat-tests: New test.
40996         * tests/test-utimensat.c: Likewise.
40997
40998         utimens: let lutimens work on non-symlinks
40999         * lib/utimens.c (lutimens): Fall back to utimens rather than
41000         failing with ENOSYS, when file is not a symlink.
41001         (utimens): Reduce redirection.
41002         * tests/test-lutimens.h (test_lutimens): Update test to cover
41003         non-symlinks.
41004         * tests/test-utimens.h (test_utimens): Update test to cover
41005         symlinks.
41006         * tests/test-utimens.c (main): Update caller.
41007
41008         utimens: cache whether utimensat syscall works
41009         * lib/utimens.c (utimensat_works_really): New cache variable.
41010         (fdutimens, lutimens): Use it to avoid failing syscall.
41011
41012         test-stat-time, test-utimens: improve portability
41013         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41014         ext4 on alpha, and for cygwin.
41015         * tests/test-utimens-common.h: New file.
41016         (nap): Factor delays into single function.
41017         * tests/test-lutimens.h (test_lutimens): Use new header.
41018         * tests/test-futimens.h (test_futimens): Likewise.
41019         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41020         timestamps to occur from same machine, as was done previously for
41021         test_utimens.
41022         * modules/utimens-tests (Files): Ship new file.
41023         * modules/futimens-tests (Files): Likewise.
41024         Reported in part by Jim Meyering.
41025
41026         sys_stat: sort replacement declarations
41027         * lib/sys_stat.in.h: Sort declarations.
41028         * lib/futimens.c (futimens): Fix typo.
41029
41030 2009-10-15  Jim Meyering  <meyering@redhat.com>
41031
41032         don't let environment settings perturb build
41033         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41034         could cause a configure-time and/or build-time malfunction.
41035         Typically, a configure-time function-in-library test is performed
41036         via code like this:
41037
41038           LIB_VAR=
41039           AC_SUBST([LIB_VAR])
41040           prefix_saved_LIBS=$LIBS
41041             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41042                        [test "$ac_cv_search_FUNC" = "none required" ||
41043                         LIB_VAR=$ac_cv_search_FUNC])
41044           LIBS=$prefix_saved_LIBS
41045
41046         However, in each of the files affected by this change, the LIB_VAR=
41047         initialization was omitted.  Thus, when set in the environment, its
41048         value would propagate into generated Makefiles when FUNC is not found
41049         in LIB_NAME.
41050         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41053
41054 2009-10-14  Eric Blake  <ebb9@byu.net>
41055
41056         fchdir: avoid infinite recursion in mingw
41057         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41058         recursing.
41059
41060         test-stat-time: port to mingw
41061         * tests/test-stat-time.c (force_unlink): Return a value.
41062         (test_ctime) [W32]: Fix compilation error.
41063         (nap): Don't call usleep with too large an argument.  Use
41064         force_unlink.
41065         * doc/pastposix-functions/usleep.texi (usleep): Document the
41066         portability issue.
41067
41068 2009-10-13  Jim Meyering  <meyering@redhat.com>
41069
41070         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41071         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41072         * modules/pipe-filter-ii: Likewise.
41073         * modules/sys_socket-tests: Likewise.
41074         * modules/tsearch-tests: Likewise.
41075         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41076         (check): Depend on it.
41077
41078 2009-10-12  Eric Blake  <ebb9@byu.net>
41079
41080         utimens-tests: port to NFS file systems
41081         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41082         comparisons to avoid spurious failures from timestamp drift
41083         between NFS machines.
41084
41085 2009-10-12  Eric Blake  <ebb9@byu.net>
41086
41087         stat-time-tests: minor cleanups
41088         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41089         * tests/test-stat-time.c (nap): Separate assignment from call.
41090         Suggested by Paolo Bonzini and Bruno Haible.
41091
41092         sys_stat: guarantee struct timespec
41093         * lib/sys_stat.in.h (includes): Always include <time.h>
41094         * modules/sys_stat (Depends-on): Add time.
41095         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41096         mode_t permission values.
41097         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41098         get at subsecond timestamps.
41099
41100 2009-10-10  Eric Blake  <ebb9@byu.net>
41101
41102         futimens: new module
41103         * modules/futimens: New file.
41104         * lib/futimens.c (futimens): Likewise.
41105         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41106         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41107         we can work around Linux bugs.
41108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41109         * modules/sys_stat (Makefile.am): Substitute them.
41110         * lib/sys_stat.in.h (futimens): Declare it.
41111         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41112         * doc/posix-functions/futimens.texi (futimens): Likewise.
41113         * modules/futimens-tests: New test.
41114         * tests/test-futimens.c: Likewise.
41115
41116         utimens: introduce fdutimens
41117         * lib/utimens.h (fdutimens): New prototype.
41118         * lib/utimens.c (gl_futimens): Move guts...
41119         (fdutimens): ...to new interface.
41120         * tests/test-utimens.c (do_fdutimens): Use it.
41121
41122         utimens: add UTIME_NOW and UTIME_OMIT support
41123         * lib/utimens.c (validate_timespec, update_timespec): New helper
41124         functions.
41125         (gl_futimens, lutimens): Use them.
41126         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41127         stdbool, sys_stat.
41128         (Link): Mention resulting library dependency.
41129         * modules/utimecmp (Link): Likewise.
41130         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41131         (Makefile.am): Pick up library dependency.
41132         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41133         definition.
41134         * tests/test-sys_stat.c: Test the definitions.
41135         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41136         * NEWS: Document library dependency.
41137
41138         utimecmp: support symlink timestamps
41139         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41140         hashing when possible.  Use pathconf when available.
41141         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41142         * modules/utimecmp (Depends-on): Add lstat.
41143
41144         utimens: add lutimens interface
41145         * lib/utimens.c (lutimens): New function.
41146         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41147         * lib/utimens.h (lutimens): Declare new interface.
41148         * tests/test-utimens.c (main): Enhance test.
41149         * tests/test-lutimens.h (test_lutimens): New file.
41150         * modules/utimens-tests (Files): Distribute it.
41151         (Depends-on): Add symlink.
41152         (configure.ac): Check for usleep.
41153
41154         utimens: validate futimens usage
41155         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41156         fewer syscalls on failure later on.  Avoid compiler warning on
41157         mingw.
41158         * modules/utimens (Depends-on): Add dup2.
41159
41160         utimens: add test
41161         * modules/utimens-tests: New test.
41162         * tests/test-utimens.h: New file.
41163         * tests/test-futimens.h: Likewise.
41164         * tests/test-utimens.c: Likewise.
41165
41166         doc: mention timestamp portability issues
41167         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41168         instead.
41169         * doc/posix-functions/utime.texi (utime): Likewise.
41170         * doc/posix-functions/utimes.texi (utimes): Likewise.
41171         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41172         instead.
41173         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41174         module.
41175         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41176         Mention weakness with symlink timestamps.
41177         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41178         to utimensat/futimens instead.
41179         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41180
41181         test-dup2: enhance test
41182         * tests/test-dup2.c (main): Also check AT_FDCWD.
41183
41184         test-stat-time: avoid more spurious failures
41185         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41186         xfs; and avoid race if the two timestamps cross quantization edge.
41187
41188         relocatable: prefer 'file system' over 'filesystem'
41189         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41190         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41191         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41192         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41193         * lib/relocatable.c (compute_curr_prefix): Likewise.
41194
41195 2009-10-10  Jim Meyering  <meyering@redhat.com>
41196
41197         stat-time-tests: check for the usleep function
41198         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41199
41200 2009-10-10  Bruno Haible  <bruno@clisp.org>
41201
41202         * modules/xnanosleep: Put the Link section after the Include section.
41203
41204 2009-10-09  Eric Blake  <ebb9@byu.net>
41205
41206         dup2: work around FreeBSD 6.1 bug
41207         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41208         * doc/posix-functions/dup2.texi (dup2): Document it.
41209         Reported by Nelson H. F. Beebe and Jim Meyering.
41210
41211         test-stat-time: port to buggy NFS clients
41212         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41213         (test_ctime): Also skip test if mtime and ctime are skewed.
41214
41215         maint: prefer 'file system' over 'filesystem'
41216         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41217         * doc/posix-functions/lstat.texi (lstat): Likewise.
41218         * lib/file-has-acl.c (file_has_acl): Likewise.
41219         * lib/fwriteerror.c [TEST]: Likewise.
41220         * tests/test-areadlink.h (test_areadlink): Likewise.
41221         * tests/test-areadlinkat-with-size.c (main): Likewise.
41222         * tests/test-areadlinkat.c (main): Likewise.
41223         * tests/test-canonicalize-lgpl.c (main): Likewise.
41224         * tests/test-canonicalize.c (main): Likewise.
41225         * tests/test-fstatat.c (main): Likewise.
41226         * tests/test-linkat.c (main): Likewise.
41227         * tests/test-lstat.h (test_lstat_func): Likewise.
41228         * tests/test-mkdir.h (test_mkdir): Likewise.
41229         * tests/test-readlink.h (test_readlink): Likewise.
41230         * tests/test-remove.c (main): Likewise.
41231         * tests/test-rename.h (test_rename): Likewise.
41232         * tests/test-renameat.c (main): Likewise.
41233         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41234         * tests/test-symlink.h (test_symlink): Likewise.
41235         * tests/test-symlinkat.c (main): Likewise.
41236         * tests/test-unlink.h (test_unlink_func): Likewise.
41237         * tests/test-unlinkat.c (main): Likewise.
41238
41239         maint: make realtime library usage explicit
41240         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41241         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41242         * modules/settime (Link): Likewise.
41243         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41244
41245         test-stat-time: speed up execution
41246         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41247         warning on mingw.
41248         (nap): New helper function.
41249         (prepare_test): Use it to reduce sleep time.
41250         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41251         execution.
41252         * modules/stat-time-tests (configure.ac): Check for usleep.
41253
41254 2009-10-09  Jim Meyering  <meyering@redhat.com>
41255
41256         selinux-h: always use getfilecon wrappers
41257         * lib/getfilecon.c: New file.
41258         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41259         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41260         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41261         (fgetfilecon): Provide a stub.
41262         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41263         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41264         file unconditionally.
41265         When <selinux/selinux.h> is found, arrange to use wrappers.
41266         * modules/selinux-h (Files): Add getfilecon.c.
41267         (Makefile.am): Substitute include-next-related bits
41268         into the now-always-generated selinux/selinux.h file.
41269         * doc/glibc-functions/lgetfilecon.texi: New file.
41270         * doc/glibc-functions/fgetfilecon.texi: New file.
41271         * doc/glibc-functions/getfilecon.texi: New file.
41272         * doc/glibc-functions/getfilecon-desc.texi: New file.
41273         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41274         which to pull in the new files.
41275         * MODULES.html.sh (Misc): Add selinux-h.
41276
41277 2009-10-08  Jim Meyering  <meyering@redhat.com>
41278
41279         unistd: fix comment typo
41280         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41281
41282 2009-10-08  Eric Blake  <ebb9@byu.net>
41283
41284         areadlink: use SIZE_MAX consistently
41285         * modules/areadlink (Depends-on): Add stdint.
41286         * modules/areadlink-with-size (Depends-on): Likewise.
41287         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41288         gives NULL; drop sys/types, since unistd gives size_t; and add
41289         stdint for SIZE_MAX.
41290         (SIZE_MAX): Rely on headers.
41291         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41292         and add stdint.
41293         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41294         (SIZE_MAX): Likewise.
41295         (INITIAL_BUF_SIZE): Turn into enum.
41296         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41297
41298 2009-10-08  Jim Meyering  <meyering@redhat.com>
41299
41300         areadlinkat: avoid compilation failure
41301         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41302         Fix typo in comment.
41303
41304 2009-10-07  Eric Blake  <ebb9@byu.net>
41305
41306         areadlinkat-with-size: new module
41307         * modules/areadlinkat-with-size: New module.
41308         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41309         * lib/areadlink.h (areadlinkat): Declare it.
41310         * MODULES.html.sh (File system functions): Mention it.
41311         * modules/areadlinkat-with-size-tests: New test.
41312         * tests/test-areadlinkat-with-size.c: New file.
41313
41314         xreadlinkat: new module
41315         * modules/xreadlinkat: New module.
41316         * lib/xreadlinkat.c (xreadlinkat): New file.
41317         * lib/xreadlink.h (xreadlinkat): Declare it.
41318         * MODULES.html.sh (File system functions): Mention it.
41319
41320         areadlinkat: new module
41321         * lib/at-func.c (FUNC_FAIL): New define.
41322         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41323         * modules/areadlinkat: New module.
41324         * lib/linkat.c (areadlinkat): Move...
41325         * lib/areadlinkat.c (areadlinkat): ...to new file.
41326         * lib/areadlink.h (areadlinkat): Declare it.
41327         * modules/linkat (Depends-on): Add areadlinkat.
41328         * MODULES.html.sh (File system functions): Mention it.
41329         * modules/areadlinkat-tests: New test.
41330         * tests/test-areadlinkat.c: New file.
41331
41332         areadlink, areadlink-with-size: add tests
41333         * modules/areadlink-tests: New test.
41334         * modules/areadlink-with-size-tests: Likewise.
41335         * tests/test-areadlink.h: New file.
41336         * tests/test-areadlink.c: Likewise.
41337         * tests/test-areadlink-with-size.c: Likewise.
41338
41339         maint: minor cleanups
41340         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41341         _UNUSED_PARAMETER_ instead.
41342         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41343         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41344         * modules/linkat-tests (Files): Distribute test-link.h.
41345
41346         openat, utimens: whitespace cleanup
41347         * lib/openat.c: Prefer space throughout, rather than mix of 8
41348         spaces vs. tabs.
41349         * lib/at-func.c: Likewise.
41350         * lib/utimens.c: Likewise.
41351
41352         openat: avoid using wrong fd
41353         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41354         working directory chooses same fd.
41355         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41356
41357         mkdir, mkdirat: fix cygwin 1.5.x bug
41358         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41359         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41360         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41361         bug.
41362         (gl_PREREQ_MKDIR): Delete unused macro.
41363         * modules/mkdir (Files): Track file rename.
41364         (configure.ac): Update macro name.
41365         * modules/openat (Depends-on): Add mkdir.
41366         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41367
41368         mkdir, mkdirat: add tests
41369         * modules/mkdir-tests: New test.
41370         * tests/test-mkdir.h: New file.
41371         * tests/test-mkdir.c: Likewise.
41372         * tests/test-mkdirat.c: Likewise.
41373         * modules/openat-tests (Files): Add new files.
41374         (Makefile.am): Run new test.
41375
41376 2009-10-06  Eric Blake  <ebb9@byu.net>
41377
41378         doc: tweak *at function documentation
41379         * doc/posix-functions/faccessat.texi (faccessat): Mention
41380         known issue with replacement.
41381         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41382         * doc/posix-functions/linkat.texi (linkat): Likewise.
41383         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41384         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41385         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41386         * doc/posix-functions/renameat.texi (renameat): Likewise.
41387         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41388
41389         openat: fix GNU/Hurd bug in unlinkat
41390         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41391         broken.
41392         * doc/posix-functions/unlink.texi (unlink): Document this.
41393         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41394
41395         fdopendir: fix GNU/Hurd bug
41396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41397         allowing non-directory fds.
41398         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41399         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41400         * modules/dirent (Makefile.am): Substitute it.
41401         * lib/dirent.in.h (fdopendir): Declare replacement.
41402         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41403         * tests/test-fdopendir.c (main): Test something other than
41404         /dev/null, since on Hurd that behaves like a directory.
41405
41406         test-symlink: port to GNU/Hurd
41407         * tests/test-symlink.h (test_symlink): Relax expected errno.
41408
41409         doc: tweak more cygwin information
41410         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41411         now compatible with glibc.
41412         * doc/posix-functions/getopt.texi (getopt): Likewise.
41413
41414         getopt-gnu: add another test
41415         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41416         guarantee behavior relied on by m4.
41417         * tests/test-getopt.c (main): Use it.
41418         * modules/getopt-posix-tests (Depends-on): Add setenv.
41419         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41420
41421         getopt: fix compilation on darwin
41422         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41423         include.
41424         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41425         Reported by Ludovic Courtès.
41426
41427 2009-10-06  Bruno Haible  <bruno@clisp.org>
41428
41429         * modules/size_max (Description): Discourage its use.
41430         Reported by Simon Josefsson.
41431
41432 2009-10-06  Jim Meyering  <meyering@redhat.com>
41433
41434         linkat: avoid compilation failure
41435         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41436
41437 2009-10-05  Eric Blake  <ebb9@byu.net>
41438
41439         linkat: support Linux 2.6.17
41440         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41441         linkat on Linux, but allow cache variable override.
41442         * lib/linkat.c (rpl_linkat): Define override.
41443         * modules/linkat (Depends-on): Add symlinkat.
41444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41445         * modules/unistd (Makefile.am): Substitute it.
41446         * lib/unistd.in.h (linkat): Declare replacement.
41447         Reported by Pádraig Brady.
41448
41449         quotearg: port test to systems with C.UTF-8 locale
41450         * tests/test-quotearg.c (struct result_strings): Add another
41451         member, differentiating between C.ASCII and C.UTF-8 handling.
41452         (compare_strings): Add parameter.
41453         (main): Adjust all callers.
41454
41455         getopt: avoid clash with FreeBSD _getopt_internal
41456         * lib/getopt.in.h (_getopt_internal): Override the name.
41457         * lib/getopt_int.h (includes): Pick up any overrides.
41458         Reported by Reuben Thomas.
41459
41460         hash: allow C89 compilation
41461         * lib/hash.c (check_tuning): Move declaration before statement.
41462         Reported by Reuben Thomas.
41463
41464 2009-10-05  Karl Berry  <karl@gnu.org>
41465
41466         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41467
41468 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41469             Bruno Haible  <bruno@clisp.org>
41470
41471         * lib/uname.c (uname): Use a table-driven algorithm to compute
41472         Windows NT versions.
41473
41474 2009-10-04  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41477         program_invocation_short_name.
41478         * modules/progname (configure.ac): Test for presence of
41479         program_invocation_short_name.
41480         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41481
41482 2009-10-04  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/progname.c (set_program_name): Fix comment.
41485         Reported by Jim Meyering.
41486
41487 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41488             Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/uname.c: Include <string.h>.
41491         (uname): Do only one call to GetVersionEx in the common case.
41492
41493 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41494             Bruno Haible  <bruno@clisp.org>
41495
41496         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41497         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41498         (uname): Add support for Windows CE and various non-x86 CPU types.
41499
41500 2009-10-03  Bruno Haible  <bruno@clisp.org>
41501
41502         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41503         invocation to tests/configure.ac.
41504         Reported by Ian Beckwith <ianb@erislabs.net>.
41505
41506 2009-10-02  Eric Blake  <ebb9@byu.net>
41507
41508         fchdir: avoid compiler warning
41509         * lib/fchdir.c (canonicalize_file_name)
41510         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41511
41512         test-open: support mingw errno values
41513         * tests/test-open.h (test_open): Relax test.
41514         * tests/test-fopen.h (test_fopen): Likewise.
41515         * tests/test-openat-safer.c (main): Likewise.
41516
41517         open: fix opening directory on mingw
41518         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41519
41520         test-open: on GNU/Hurd, /dev/null is a directory
41521         * tests/test-fopen.h (main): Rename...
41522         (test_fopen): ...to this.  Use a guaranteed non-directory when
41523         confirming open behavior on trailing slash.
41524         * tests/test-openat-safer.c (main): Likewise.
41525         * tests/test-open.h (main): Likewise....
41526         (test_open): ...to this.
41527         * tests/test-fopen.c (main): Adjust caller.
41528         * tests/test-fopen-safer.c (main): Likewise.
41529         * tests/test-open.c (main): Likewise.
41530         * tests/test-fcntl-safer.c (main): Likewise.
41531         Reported by Samuel Thibault.
41532
41533         rename, fchdir: don't ignore chdir failure
41534         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41535         * lib/rename.c (rpl_rename) [W32]: Likewise.
41536         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41537         an empty destination directory if source cannot be renamed,
41538         although there is still possibility for failure.
41539         * doc/posix-functions/rename.texi (rename): Document the race.
41540         Reported by Jim Meyering.
41541
41542         maint: cleanup whitespace in recent commits
41543         * lib/rename.c (rpl_rename): Remove tabs.
41544         * tests/test-link.h (test_link): Likewise.
41545         * lib/fchdir.c (get_name): Likewise.
41546         Reported by Jim Meyering.
41547
41548 2009-10-02  Ben Pfaff  <blp@gnu.org>
41549
41550         relocatable-prog-wrapper: Add missing dependency on
41551         double-slash-root.
41552         * modules/relocatable-prog-wrapper: Add dependency.
41553         Reported by Ian Beckwith <ianb@erislabs.net>.
41554
41555 2009-10-02  Eric Blake  <ebb9@byu.net>
41556
41557         renameat: fix Solaris bugs
41558         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41559         needed fixing.
41560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41561         * modules/stdio (Makefile.am): Substitute it.
41562         * lib/stdio.in.h (renameat): Declare replacement.
41563         * lib/renameat.c (rpl_renameat): Implement fix.
41564
41565         renameat: new module
41566         * modules/renameat: New file.
41567         * lib/renameat.c (renameat): Likewise.
41568         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41570         * modules/stdio (Makefile.am): Substitute them.
41571         * lib/stdio.in.h (renameat): Declare it.
41572         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41573         * doc/posix-functions/renameat.texi (renameat): Likewise.
41574         * modules/renameat-tests: New test.
41575         * tests/test-renameat.c: Likewise.
41576
41577         rename: fix mingw bugs
41578         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41579         directory overwrite bugs.
41580
41581         rename: fix another cygwin 1.5 bug
41582         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41583         checks.
41584         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41585         unnecessary cygwin workarounds.  Also work around bug with moving
41586         full directory onto an empty one.
41587         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41588
41589         rename-dest-slash: merge into rename module
41590         * modules/rename-dest-slash (Status): Mark obsolete.
41591         (Depends-on): Add rename.
41592         (Files): Let rename do it all.
41593         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41594         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41595         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41596         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41597         * lib/rename.c (rpl_rename): Update comments.
41598
41599         rename: fix cygwin 1.5.x bugs
41600         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41601         * lib/rename.c (rpl_rename): Work around them.
41602         * modules/rename (Depends-on): Add same-inode.
41603
41604         rename: fix Solaris 10 bug
41605         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41606         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41607         was the only bug.
41608
41609         rename: fix Solaris 9 bug
41610         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41611         on non-directory.  Avoid calling exit.
41612         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41613         strdup.
41614         * modules/rename-tests (Depends-on): Drop lstat.
41615         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41616         (gl_PREREQ_RENAME): Delete unused macro.
41617
41618         rename-dest-slash: fix NetBSD bug
41619         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41620         links.
41621         * modules/rename-dest-slash (Depends-on): Add same-inode.
41622
41623         rename-tests: new test, exposes several platform bugs
41624         * modules/rename-tests: New file.
41625         * tests/test-rename.h: Likewise.
41626         * tests/test-rename.c: Likewise.
41627         * doc/posix-functions/rename.texi (rename): Improve documentation,
41628         including bugs that will eventually be fixed in gnulib.
41629
41630 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41631
41632         * lib/uname.c: Include <stdlib.h>
41633         (uname): Assume version info is available.
41634
41635 2009-10-02  Jim Meyering  <meyering@redhat.com>
41636
41637         gnu-web-doc-update: correct --help output
41638         * build-aux/gnu-web-doc-update: Make --help output relevant.
41639
41640         gnu-web-doc-update: add standard options
41641         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41642
41643         gnu-web-doc-update: New module.
41644         Use this script to automatically update the on-line web documentation
41645         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41646         * modules/gnu-web-doc-update: New file, from coreutils.
41647         * build-aux/gnu-web-doc-update: New script.
41648
41649 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41650
41651         link: LoadLibrary is not needed.
41652         * lib/link.c: Use GetModuleHandle.
41653
41654 2009-10-01  Eric Blake  <ebb9@byu.net>
41655
41656         getopt: bump serial number
41657         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41658         change.
41659
41660         tests: tighten link, rmdir, and remove tests
41661         * tests/test-link.h (includes): No need to use <config.h> here.
41662         Clean up if directory hard link was created, otherwise test for
41663         trailing '.'.
41664         * tests/test-linkat.c (main): Simplify.
41665         * tests/test-remove.c (main): Enhance test for trailing '.'.
41666         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41667
41668 2009-10-01  Jim Meyering  <meyering@redhat.com>
41669
41670         maint.mk: requiring "make major" was annoying, for a "minor" release.
41671         What is intended is "stable", to contrast with alpha and beta,
41672         so require "make stable", not "make major".
41673         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41674         (get_tool_versions): Likewise.
41675         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41676
41677 2009-09-30  Ben Pfaff  <blp@gnu.org>
41678
41679         Fix broken build of replacement for Windows tmpfile().
41680         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41681         flags argument added along with the 'mkostemp' module.
41682
41683 2009-09-28  Bruno Haible  <bruno@clisp.org>
41684
41685         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41686         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41687         to 'remove_elt'.
41688         (gl_list_remove): Update.
41689         * lib/gl_list.c (gl_list_remove): Update.
41690         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41691         to 'remove_elt'.
41692         (gl_oset_remove): Update.
41693         * lib/gl_list.c (gl_oset_remove): Update.
41694         Reported by Eric Blake.
41695
41696 2009-09-28  Eric Blake  <ebb9@byu.net>
41697
41698         doc: mention yet more cygwin 1.7 status
41699         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41700         cygwin.
41701         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41702         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41703
41704         argp: fix test failure
41705         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41706         that are not upper-case.  Pass correct range to tolower.
41707
41708 2009-09-27  Jim Meyering  <meyering@redhat.com>
41709
41710         test-yesno: work around sparc-dash here-document infelicity
41711         Without this change, the literal \177 byte in a here document
41712         would make dash 0.5.5.1-3 access uninitialized memory.
41713         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41714         Instead, use a marker, "@", and filter through tr to create the desired
41715         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41716
41717 2009-09-27  Bruno Haible  <bruno@clisp.org>
41718
41719         Disable untested support for new flavours of ACLs on AIX.
41720         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41721         progress.
41722         * lib/set-mode-acl.c (qset_acl): Likewise.
41723
41724 2008-12-07  Bruno Haible  <bruno@clisp.org>
41725
41726         Add support for new flavours of ACLs on AIX. (Untested.)
41727         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41728         (file_has_acl): Add support for newer AIX.
41729         * lib/set-mode-acl.c (qset_acl): Likewise.
41730         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41731         Rainer Tammer <tammer@tammer.net>.
41732
41733 2009-09-26  Eric Blake  <ebb9@byu.net>
41734
41735         argp: fix compilation of getopt
41736         * lib/getopt.in.h (includes): Use different guard than glibc.
41737         Reported by Sergey Poznyakoff.
41738
41739         doc: mention more cygwin 1.7 status
41740         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41741         bug.
41742         * doc/posix-functions/execl.texi (execl): Likewise.
41743         * doc/posix-functions/execle.texi (execle): Likewise.
41744         * doc/posix-functions/execlp.texi (execlp): Likewise.
41745         * doc/posix-functions/execv.texi (execv): Likewise.
41746         * doc/posix-functions/execve.texi (execve): Likewise.
41747         * doc/posix-functions/execvp.texi (execvp): Likewise.
41748         * doc/glibc-functions/canonicalize_file_name.texi
41749         (canonicalize_file_name): Cygwin 1.7 now provides this.
41750         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41751         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41752         on AT_SYMLINK_NOFOLLOW.
41753
41754 2009-09-24  Eric Blake  <ebb9@byu.net>
41755
41756         test-linkat: make test more robust
41757         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41758
41759         getopt: fix inclusion guards for cygwin
41760         * modules/getopt-posix (Depends-on): Add include-next.
41761         (Makefile.am): Substitute more items in replacement header.
41762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41763         <getopt.h>.
41764         * lib/getopt.in.h (includes): Use split inclusion guard, and
41765         prefer <getopt.h> over include <unistd.h> when one is present.
41766         (option): Also override name of 'struct option'.
41767
41768         same-inode: revert prior change; it is not yet ready
41769         * NEWS: Undo mention of this change.
41770         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41771         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41772         * lib/cycle-check.c (cycle_check): Likewise.
41773         * lib/same.c (same_name): Likewise.
41774         * lib/at-func2.c (at_func2): Likewise.
41775
41776 2009-09-23  Eric Blake  <ebb9@byu.net>
41777
41778         linkat: new module
41779         * modules/linkat: New file.
41780         * lib/at-func2.c (at_func2): Likewise.
41781         * lib/linkat.c (linkat): Likewise.
41782         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41783         * lib/openat-priv.h (at_func2): Add declaration.
41784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41785         * modules/unistd (Makefile.am): Substitute them.
41786         * lib/unistd.in.h (linkat): Declare it.
41787         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41788         * doc/posix-functions/linkat.texi (linkat): Likewise.
41789         * doc/posix-functions/link.texi (link): Tweak wording.
41790         * tests/test-link.c (main): Move guts...
41791         * tests/test-link.h (test_link): ...into new file.
41792         * modules/linkat-tests: New test.
41793         * tests/test-linkat.c: Likewise.
41794         * modules/link-tests (Files): Ship new file.
41795         (Depends-on): Add stdbool.
41796
41797         dirname: add library-safe mdir_name
41798         * lib/dirname.h (mdir_name): New prototype.
41799         * lib/dirname.c (dir_name): Move guts...
41800         (mdir_name): ...to new function that avoids xalloc_die.
41801
41802         fchdir: another mingw fix
41803         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41804         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41805         on mingw (where it has not yet been ported), and make it optional
41806         elsewhere.
41807         (_gl_register_fd): Use it.
41808
41809         same-inode: make SAME_INODE tri-state, to port to mingw
41810         * NEWS: Mention this change.
41811         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41812         st_ino always being 0.
41813         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41814         * lib/cycle-check.c (cycle_check): Likewise.
41815         * lib/same.c (same_name): Likewise.
41816
41817         lstat: avoid mingw compilation error
41818         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41820         lstat ourselves.
41821         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41822         was adequate.
41823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41824         the checks for lstat.
41825         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41826
41827         link: fix test failure on Solaris 9
41828         * lib/link.c (rpl_link): Don't assume link will catch bogus
41829         trailing slash on source.
41830
41831         test-symlinkat: enhance test
41832         * tests/test-readlink.c (main): Move guts...
41833         * tests/test-readlink.h (test_readlink): ...into new file.
41834         * tests/test-symlink.c (main): Move guts...
41835         * tests/test-symlink.h (test_symlink): ...into new file.
41836         * tests/test-symlinkat.c (main): Use new files for further
41837         coverage.
41838         (do_symlink, do_readlink): New helper functions.
41839         * modules/symlink-tests (Files): Ship new file.
41840         (Depends-on): Add stdbool.
41841         * modules/readlink-tests (Files): Ship new file.
41842         (Depends-on): Add stdbool.
41843         * modules/symlinkat-tests (Files): Use new files.
41844
41845 2009-09-23  Eric Blake  <ebb9@byu.net>
41846
41847         readlink: document portability issue with symlink length
41848         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41849         systems have bogus st_size on symlinks, and mention the
41850         areadlink-with-size module.
41851         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41852         * doc/posix-functions/readlink.texi (readlink): Mention the
41853         areadlink module, and ERANGE failure.
41854         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41855         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41856
41857         readlink: fix Solaris 9 bug with trailing slash
41858         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41859         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41860         * doc/posix-functions/readlink.texi (readlink): Document this.
41861         * modules/readlink-tests: New test.
41862         * tests/test-readlink.c: Likewise.
41863
41864         readlink: fix cygwin 1.5.x bug with return type
41865         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41866         * lib/unistd.in.h (readlink): Use ssize_t.
41867         * lib/readlink.c (readlink): Likewise.
41868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41869         * modules/unistd (Makefile.am): Substitute it.
41870         * lib/unistd.in.h (readlink): Declare replacement.
41871         * doc/posix-functions/readlink.texi (readlink): Document this.
41872
41873         symlink: use throughout gnulib
41874         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41875         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41876         symlink is not used.
41877         * modules/symlinkat (Depends-on): Add symlink.
41878         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41879         * modules/canonicalize-tests (Depends-on): Likewise.
41880         * modules/lstat-tests (Depends-on): Likewise.
41881         * modules/openat-tests (Depends-on): Likewise.
41882         * modules/remove-tests (Depends-on): Likewise.
41883         * modules/rmdir-tests (Depends-on): Likewise.
41884         * modules/unlink-tests (Depends-on): Likewise.
41885         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41886         * tests/test-canonicalize.c (symlink): Likewise.
41887         * tests/test-fstatat.c (symlink): Likewise.
41888         * tests/test-lstat.c (symlink): Likewise.
41889         * tests/test-remove.c (symlink): Likewise.
41890         * tests/test-rmdir.c (symlink): Likewise.
41891         * tests/test-unlink.c (symlink): Likewise.
41892         * tests/test-unlinkat.c (symlink): Likewise.
41893
41894         symlink: new module, for Solaris 9 bug
41895         * modules/symlink: New file.
41896         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41897         * lib/symlink.c: Likewise.
41898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41899         * modules/unistd (Makefile.am): Substitute them.
41900         * lib/unistd.in.h (symlink): Declare replacement.
41901         * MODULES.html.sh (File system functions): Mention it.
41902         * doc/posix-functions/symlink.texi (symlink): Likewise.
41903         * modules/symlink-tests: New test.
41904         * tests/test-symlink.c: Likewise.
41905
41906 2009-09-23  Bruno Haible  <bruno@clisp.org>
41907
41908         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41909         when needed.
41910         Test case: gnulib-tool --import --with-tests atexit inttypes.
41911         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41912
41913 2009-09-23  Bruno Haible  <bruno@clisp.org>
41914
41915         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41916         subcommand, not in a subshell.
41917
41918 2009-09-22  Eric Blake  <ebb9@byu.net>
41919
41920         unistd: sort replacement declarations
41921         * lib/unistd.in.h: Sort declarations.
41922
41923         open, openat: minor optimization
41924         * lib/open.c (open): If open succeeded, len is non-zero.
41925         * lib/openat.c (rpl_openat): Likewise.
41926
41927         link-follow: ensure correct result
41928         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41930         distinguish between possible failures.
41931
41932 2009-09-21  Eric Blake  <ebb9@byu.net>
41933
41934         fts: avoid compiler warning
41935         * lib/fts.c (dirent_inode_sort_may_be_useful)
41936         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41937
41938 2009-09-19  Bruno Haible  <bruno@clisp.org>
41939
41940         * lib/progreloc.c (canonicalize_file_name): New declaration.
41941
41942 2009-09-19  Eric Blake  <ebb9@byu.net>
41943
41944         link: fix quoting
41945         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41946
41947         openat: fix openat bugs on Solaris 9
41948         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41949         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41950         * modules/openat (Depends-on): Add open.
41951         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41952         * modules/fcntl-h (Makefile.am): Substitute it.
41953         * lib/fcntl.in.h (openat): Declare replacement.
41954         * doc/posix-functions/openat.texi (openat): Document this.
41955
41956         openat: move fstatat and unlinkat into correct files
41957         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41958         compiled.
41959         * lib/openat.c (fstatat, unlinkat): Move...
41960         * lib/fstatat.c (fstatat): ...into correct files.
41961         * lib/unlinkat.c (unlinkat): Likewise.
41962
41963         openat: fix unlinkat bugs on Solaris 9
41964         * lib/unlinkat.c (unlinkat): New file.
41965         * modules/openat (Depends-on): Add unlink.
41966         (Files): Distribute it.
41967         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41968         trailing slash behavior is broken.
41969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41970         * modules/unistd (Makefile.am): Substitute it.
41971         * lib/unistd.in.h (unlinkat): Declare replacement.
41972         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41973
41974         openat: fix fstatat bugs on Solaris 9
41975         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41976         stat.
41977         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41978
41979         test-unlinkat: enhance test, to expose Solaris 9 bug
41980         * tests/test-unlink.c (main): Factor guts...
41981         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41982         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41983         * tests/test-rmdir.c (main): Adjust caller.
41984         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41985         (unlinker): New helper function.
41986         (rmdirat): Enhance check.
41987         * modules/rmdir-tests (Depends-on): Add stdbool.
41988         * modules/unlink-tests (Depends-on): Likewise.
41989         (Files): Add test-unlink.h.
41990         * modules/openat-tests (Files): Likewise.
41991         (Depends-on): Add unlinkdir.
41992
41993         test-fstatat: new test, to expose Solaris 9 bugs
41994         * tests/test-stat.c (main): Factor guts...
41995         * tests/test-stat.h (test_stat_func): ...into new file.
41996         * tests/test-lstat.c (main): Factor guts...
41997         * tests/test-lstat.h (test_lstat_func): ...into new file.
41998         * tests/test-fstatat.c: New file.
41999         * modules/stat-tests (Files): Add test-stat.h.
42000         * modules/lstat-tests (Files): Add test-lstat.h.
42001         (Depends-on): Add stdbool.
42002         * modules/openat-tests (Depends-on): Add pathmax.
42003         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42004         (Makefile.am): Run new test.
42005
42006         remove: new module, for mingw and Solaris 9 bugs
42007         * modules/remove: New file.
42008         * lib/remove.c: Likewise.
42009         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42011         * modules/stdio (Makefile.am): Use them.
42012         * lib/stdio.in.h (remove): Declare replacement.
42013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42014         * doc/posix-functions/remove.texi (remove): Likewise.
42015         * modules/remove-tests: New test.
42016         * tests/test-remove.c: Likewise.
42017
42018         unlink: new module, for Solaris 9 bug
42019         * modules/unlink: New file.
42020         * lib/unlink.c: Likewise.
42021         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42023         * modules/unistd (Makefile.am): Use them.
42024         * lib/unistd.in.h (stat): Declare replacement.
42025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42026         * doc/posix-functions/unlink.texi (unlink): Likewise.
42027         * modules/unlink-tests: New test.
42028         * tests/test-unlink.c: Likewise.
42029
42030         lstat: fix Solaris 9 bug
42031         * lib/lstat.c (lstat): Also check for trailing slash on
42032         non-symlink, non-directories.  Use stat module to simplify logic.
42033         * doc/posix-functions/lstat.texi (lstat): Document it.
42034         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42035         (configure.ac): Check for symlink.
42036         * tests/test-lstat.c (main): Add more tests.
42037
42038         stat: add as dependency to other modules
42039         * modules/chown (Depends-on): Add stat.
42040         * modules/euidaccess (Depends-on): Likewise.
42041         * modules/fchdir (Depends-on): Likewise.
42042         * modules/isdir (Depends-on): Likewise.
42043         * modules/link (Depends-on): Likewise.
42044         * modules/lstat (Depends-on): Likewise.
42045         * modules/mkdir-p (Depends-on): Likewise.
42046         * modules/modechange (Depends-on): Likewise.
42047         * modules/open (Depends-on): Likewise.
42048         * modules/readlink (Depends-on): Likewise.
42049         * modules/same (Depends-on): Likewise.
42050
42051         stat: fix Solaris 9 bug
42052         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42053         slash.
42054         * lib/stat.c (rpl_stat): Work around it.
42055         * doc/posix-functions/stat.texi (stat): Update documentation.
42056
42057         stat: new module, for mingw bug
42058         * modules/stat: New file.
42059         * lib/stat.c: Likewise.
42060         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42062         * modules/sys_stat (Makefile.am): Use them.
42063         * lib/sys_stat.in.h (stat): Declare replacement.
42064         * lib/openat.c (fstatat): Deal with lstat and stat being function
42065         macros.
42066         * modules/openat (Depends-on): Add inline.
42067         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42068         * doc/posix-functions/stat.texi (stat): Likewise.
42069         * modules/stat-tests: New test.
42070         * tests/test-stat.c: Likewise.
42071
42072 2009-09-19  Jim Meyering  <meyering@redhat.com>
42073
42074         syntax-check: detect unnecessary inclusion of canonicalize.h
42075         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42076
42077 2009-09-19  Eric Blake  <ebb9@byu.net>
42078
42079         canonicalize-lgpl: adjust clients to use correct header
42080         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42081         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42082         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42083         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42084         * lib/progreloc.c (includes): Likewise.
42085
42086 2009-09-19  Jim Meyering  <meyering@redhat.com>
42087
42088         test-posixtm.c: correct a comment
42089         * tests/test-posixtm.c: Correct first-line comment.
42090         Spotted by Eric Blake.
42091
42092 2009-09-16  Jim Meyering  <meyering@redhat.com>
42093
42094         posixtm-tests: make T const-correct; add a test case
42095         * tests/test-posixtm.c (T): Declare const.
42096         Add a test for -(2^31+1).
42097         Remove useless can-succeed-only-in-2002 test.
42098
42099         posixtm-tests: adjust the sole failing test
42100         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42101         expected output matches what mktime now produces.  Cross-checked via
42102         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42103
42104         posixtm: move #ifdef'd tests into a new module
42105         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42106         * tests/test-posixtm.c: ... this new file.
42107         * modules/posixtm-tests: New module.
42108
42109 2009-09-19  Eric Blake  <ebb9@byu.net>
42110
42111         openat: simplify use of at-func.c
42112         * lib/at-func.c (includes): Include prerequisites here, to
42113         simplify requirements on client files.
42114         * lib/openat-priv.h: Add double-inclusion guard.
42115         * lib/faccessat.c (includes): Simplify.
42116         * lib/fchmodat.c (includes): Likewise.
42117         * lib/fchownat.c (includes): Likewise.
42118         * lib/mkdirat.c (includes): Likewise.
42119         * lib/mkfifoat.c (includes): Likewise.
42120         * lib/symlinkat.c (includes): Likewise.
42121
42122         openat: allow return of fd 0
42123         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42124         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42125         unistd-safer.
42126         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42127         <fcntl.h>; this module does not leak fds.
42128         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42129         must be allowed to return 0, leaving openat_safer to add the
42130         safety.
42131         (openat_permissive): Avoid writing to just-opened fd 2 if
42132         restoring the current directory fails.
42133         * lib/openat-die.c (openat_restore_fail): Add comment.
42134         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42135         (save_cwd): Guarantee safe fd, but without use of open_safer.
42136         * tests/test-openat.c: New test.
42137         * modules/openat-tests (Files, Makefile.am): Distribute and build
42138         new file.
42139
42140         relocatable-prog-wrapper: fix build
42141         * modules/relocatable-prog-wrapper (Files): Update name of
42142         canonicalize m4 file, broken on 2009-09-17.
42143         Reported by emad hajjar <aleppos@hotmail.com>.
42144
42145 2009-09-19  Bruno Haible  <bruno@clisp.org>
42146
42147         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42148         * lib/safe-alloc.c: Likewise.
42149         Reported by Ian Beckwith <ianb@erislabs.net>.
42150
42151 2009-09-18  Bruno Haible  <bruno@clisp.org>
42152
42153         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42154         Reported by <erobles@sensacd.com.mx>.
42155
42156 2009-09-17  Eric Blake  <ebb9@byu.net>
42157
42158         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42159         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42160         slashes when checking if last component is missing.
42161         * tests/test-canonicalize.c (main): Test this.
42162
42163         canonicalize, canonicalize-lgpl: honor // if distinct from /
42164         * modules/canonicalize (Files): Add double-slash-root.m4.
42165         * modules/canonicalize-lgpl (Files): Likewise.
42166         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42167         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42168         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42169         fallback definition.
42170         (canonicalize_filename_mode): Use it to protect //.
42171         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42172         (__realpath): Likewise.
42173         * tests/test-canonicalize.c (main): Test this.
42174         * tests/test-canonicalize-lgpl.c (main): Likewise.
42175         * modules/canonicalize-tests (Depends-on): Add same-inode.
42176         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42177
42178         canonicalize-lgpl: fix glibc bug with trailing slash
42179         * m4/canonicalize-lgpl.m4: Move contents...
42180         * m4/canonicalize.m4: ...here.
42181         (gl_CANONICALIZE_LGPL): Factor realpath check...
42182         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42183         glibc 2.3.5 bug, fixed 2005-04-27.
42184         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42185         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42186         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42187         * modules/canonicalize-lgpl (Files): Manage file rename.
42188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42189         * modules/stdlib (Makefile.am): Substitute witness.
42190         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42191         is needed.
42192         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42193         replacement is required.
42194         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42195         * doc/glibc-functions/canonicalize_file_name.texi
42196         (canonicalize_file_name): Document this.
42197         * doc/posix-functions/realpath.texi (realpath): Likewise.
42198
42199         canonicalize-lgpl: reject non-directory with trailing slash
42200         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42201         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42202         catches failures in glibc 2.3.5.
42203         * tests/test-canonicalize.c (main): Likewise.
42204
42205         canonicalize-lgpl: use native realpath if it works
42206         * lib/canonicalize-lgpl.c (realpath): Guard with
42207         FUNC_REALPATH_WORKS.
42208         * lib/stdlib.in.h (realpath): Make declaration optional based on
42209         HAVE_REALPATH.
42210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42211         native realpath works.
42212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42213         * modules/stdlib (Makefile.am): Substitute witness.
42214
42215         canonicalize, canonicalize-lgpl: use <stdlib.h>
42216         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42217         (Include): Mention <stdlib.h>.
42218         (configure.ac): Mention functions we provide.
42219         * modules/canonicalize (configure.ac): Likewise.
42220         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42221         realpath if canonicalize_file_name is missing.
42222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42223         * modules/stdlib (Makefile.am): Substitute witnesses.
42224         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42225         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42226         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42227         * NEWS: Document this.
42228         * doc/glibc-functions/canonicalize_file_name.texi
42229         (canonicalize_file_name): Likewise.
42230         * doc/posix-functions/realpath.texi (realpath): Likewise.
42231         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42232
42233         test-canonicalize: consolidate into single C program
42234         * tests/test-canonicalize.sh: Delete; move setup into...
42235         * tests/test-canonicalize.c (main): ...the program, making it
42236         easier to run in debugger.  Add some tests.
42237         * modules/canonicalize-tests (Files): Remove unused file.
42238         (Depends-on): Add progname.
42239         (configure.ac, Makefile.am): Simplify.
42240
42241         test-canonicalize-lgpl: consolidate into single C program
42242         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42243         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42244         easier to run in debugger.  Add some tests.
42245         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42246         (configure.ac, Makefile.am): Simplify.
42247
42248         canonicalize: avoid resolvepath
42249         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42250         unnecessary checks.
42251         * lib/canonicalize.c (includes): Simplify.
42252         (canonicalize_file_name): Drop resolvepath implementation.
42253         * modules/canonicalize (Depends-on): Drop filenamecat.
42254
42255         canonicalize: don't lose errno
42256         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42257         over calls to free.
42258
42259         canonicalize: simplify errno handling
42260         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42261         assignment.
42262
42263         canonicalize, canonicalize-lgpl: update module dependencies
42264         * modules/canonicalize (Depends-on): Add extensions, lstat,
42265         pathmax, stdlib.
42266         (Files): Drop pathmax.h.
42267         (configure.ac): Adjust macro name.
42268         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42269         lstat, stdlib, sys_stat.
42270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42271         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42272         extensions.
42273         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42274         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42275         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42276         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42277         declaration, if available.
42278         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42279         we can rely on the readlink module.
42280         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42281         (includes): Use <unistd.h> unconditionally.
42282
42283 2009-09-17  Eric Blake  <ebb9@byu.net>
42284
42285         maint: make Include sections of modules consistent
42286         * modules/alloca: Use only header name; no need to list #include.
42287         * modules/alloca-opt: Likewise.
42288         * modules/arpa_inet: Likewise.
42289         * modules/canon-host: Likewise.
42290         * modules/configmake: Likewise.
42291         * modules/dirent: Likewise.
42292         * modules/eealloc: Likewise.
42293         * modules/environ: Likewise.
42294         * modules/fchdir: Likewise.
42295         * modules/fcntl: Likewise.
42296         * modules/fcntl-h: Likewise.
42297         * modules/gethrxtime: Likewise.
42298         * modules/gettime: Likewise.
42299         * modules/ignore-value: Likewise.
42300         * modules/inet_ntop: Likewise.
42301         * modules/inet_pton: Likewise.
42302         * modules/inttypes: Likewise.
42303         * modules/isnand-nolibm: Likewise.
42304         * modules/isnanf-nolibm: Likewise.
42305         * modules/mbchar: Likewise.
42306         * modules/mbfile: Likewise.
42307         * modules/mbiter: Likewise.
42308         * modules/mbuiter: Likewise.
42309         * modules/netdb: Likewise.
42310         * modules/netinet_in: Likewise.
42311         * modules/nproc: Likewise.
42312         * modules/pagealign_alloc: Likewise.
42313         * modules/poll: Likewise.
42314         * modules/printf-frexp: Likewise.
42315         * modules/pthread: Likewise.
42316         * modules/putenv: Likewise.
42317         * modules/random_r: Likewise.
42318         * modules/relocatable-prog: Likewise.
42319         * modules/search: Likewise.
42320         * modules/select: Likewise.
42321         * modules/selinux-h: Likewise.
42322         * modules/settime: Likewise.
42323         * modules/signal: Likewise.
42324         * modules/size_max: Likewise.
42325         * modules/socklen: Likewise.
42326         * modules/ssize_t: Likewise.
42327         * modules/stdarg: Likewise.
42328         * modules/stdbool: Likewise.
42329         * modules/stddef: Likewise.
42330         * modules/stdint: Likewise.
42331         * modules/stdio: Likewise.
42332         * modules/stdlib: Likewise.
42333         * modules/string: Likewise.
42334         * modules/strings: Likewise.
42335         * modules/sys_file: Likewise.
42336         * modules/sys_ioctl: Likewise.
42337         * modules/sys_select: Likewise.
42338         * modules/sys_socket: Likewise.
42339         * modules/sys_stat: Likewise.
42340         * modules/sys_time: Likewise.
42341         * modules/sys_times: Likewise.
42342         * modules/sys_utsname: Likewise.
42343         * modules/sys_wait: Likewise.
42344         * modules/sysexits: Likewise.
42345         * modules/time: Likewise.
42346         * modules/times: Likewise.
42347         * modules/tmpfile: Likewise.
42348         * modules/trim: Likewise.
42349         * modules/unistd: Likewise.
42350         * modules/wchar: Likewise.
42351         * modules/wctype: Likewise.
42352
42353 2009-09-17  Bruno Haible  <bruno@clisp.org>
42354
42355         Make getdate.y compile on QNX and NetBSD 5 / i386.
42356         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42357         TIME_T_FITS_IN_LONG_INT.
42358         * lib/getdate.y (long_time_t): New type.
42359         (relative_time): Change type of 'seconds' field to long_time_t.
42360         (get_date): Update types of local variables. Check against overflow
42361         during conversion from long_time_t to time_t.
42362         Reported by Matt Kraai <kraai@ftbfs.org>
42363         and Hasso Tepper <hasso@netbsd.org>.
42364
42365 2009-09-17  Bruno Haible  <bruno@clisp.org>
42366
42367         * modules/COPYING: Update copyright years.
42368         * modules/README: Likeiwse.
42369         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42370         Reported by Ian Beckwith <ianb@erislabs.net>.
42371
42372 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42373
42374         * users.txt: Update references for gnuit package.
42375
42376 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42377
42378         * m4/getdelim.m4: Fix typo in copyright line.
42379
42380 2009-09-17  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/atoll.c: Use the standard header with GPL copyright.
42383         * lib/argz.in.h: Likewise.
42384         * lib/glob.c: Likewise.
42385         * lib/glob-libc.h: Likewise.
42386         * lib/random_r.c: Likewise.
42387         * lib/siglist.h: Likewise.
42388         * lib/strsignal.c: Likewise.
42389         Reported by Ian Beckwith <ianb@erislabs.net>.
42390
42391 2009-09-17  Eric Blake  <ebb9@byu.net>
42392
42393         rmdir: ensure correct dependency order
42394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42395
42396 2009-09-17  Bruno Haible  <bruno@clisp.org>
42397
42398         Disable assertion that fails on NetBSD 5 / i386.
42399         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42400         Reported by Sam Steingold <sds@gnu.org>
42401         and Hasso Tepper <hasso@netbsd.org>.
42402
42403 2009-09-16  Eric Blake  <ebb9@byu.net>
42404
42405         unlinkdir: port to mingw
42406         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42407         on which no one can unlink a directory.
42408
42409         stdlib: sort witness names
42410         * modules/stdlib (Makefile.am): Sort replacements.
42411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42412         * lib/stdlib.in.h: Likewise.
42413
42414         parse-duration-tests: avoid link failure
42415         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42416         LIBINTL.
42417         Reported by Tom G. Christensen.
42418
42419         openat-tests: ensure unlinkat behaves like rmdir
42420         * tests/test-rmdir.c (main): Factor guts...
42421         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42422         * modules/rmdir-tests (Files): Ship new file.
42423         * modules/openat-tests: New test.
42424         * tests/test-unlinkat.c: Likewise.
42425
42426         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42427         * modules/rmdir-errno (Status, Notice): Now obsolete.
42428
42429         rmdir: work around cygwin 1.5.x and mingw bugs
42430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42431         * lib/rmdir.c (rmdir): Work around it.
42432         * modules/rmdir (Status, Notice): No longer obsolete.
42433         (Files): Add dos.m4.
42434         (Depends-on): Add unistd.
42435         (configure.ac): Set witnesses.
42436         (License): Relax to LGPLv2+.
42437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42438         * modules/unistd (Makefile.am): Substitute witnesses.
42439         * lib/unistd.in.h (rmdir): Declare replacement.
42440         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42441         * modules/rmdir-tests: New tests.
42442         * tests/test-rmdir.c: Likewise.
42443
42444 2009-09-15  Eric Blake  <ebb9@byu.net>
42445
42446         fchdir: improve use of replacement functions
42447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42450         REPLACE_CLOSEDIR.
42451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42452         * modules/sys_stat (Makefile.am): Substitute correct witness.
42453         * modules/dirent (Makefile.am): Likewise.
42454         * modules/unistd (Makefile.am): Likewise.
42455         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42456         * lib/unistd.in.h (dup): Likewise.
42457         * lib/sys_stat.in.h (fstat): Likewise.
42458
42459         maint: ignore gnulib-tool temp files
42460         * .gitignore: Ignore files created during gnulib-tool --test.
42461
42462 2009-09-13  Jim Meyering  <meyering@redhat.com>
42463
42464         posixtm: don't reject a time that specify "60" as the number of seconds
42465         * lib/posixtm.c (posixtime): The code to reject invalid dates
42466         would also reject a time specified with the .60 suffix.
42467         But POSIX allows that, in order to accommodate leap seconds.
42468         So don't reject it.
42469         (main): Adjust tests accordingly.
42470         * modules/posixtm (Depends-on): Add stpcpy.
42471
42472 2009-09-11  Jim Meyering  <meyering@redhat.com>
42473
42474         announce-gen: include [$release_type] in emitted Subject:
42475         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42476         e.g., [stable] in the emitted Subject: line.
42477
42478 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42479
42480         Remove obsolete macros from several modules.
42481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42482         obsolete Autoconf macros with their modern counterparts.
42483         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42484         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42488         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42490         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42491         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42492         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42493         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42495         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42496         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42497         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42498         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42499         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42500         * m4/time_r.m4 (gl_TIME_R): Likewise.
42501         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42502         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42503         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42504
42505         Fix copyright header in build-aux scripts.
42506         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42507         recommendation.
42508         * build-aux/ncftpput-ftp: Likewise.
42509         * build-aux/update-copyright: Likewise.
42510
42511 2009-09-09  Eric Blake  <ebb9@byu.net>
42512
42513         test-link: allow Linux choice of errno
42514         * tests/test-link.c (main): Relax test for alternate error.
42515
42516         strndup: fix improper m4 caching
42517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42518         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42519         (gl_PREREQ_STRNDUP): Delete.
42520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42521         * modules/string (Makefile.am): Substitute it.
42522         * lib/string.in.h (strndup): Modernize prototype.
42523
42524         getcwd: port to mingw
42525         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42526         different from the POSIX assumptions made throughout the getcwd
42527         module; fortunately, the mingw getcwd does not need replacement.
42528         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42529         * modules/getcwd-tests: New test.
42530         * tests/test-getcwd.c: Likewise.
42531
42532         link: fix platform bugs
42533         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42534         * lib/link.c (link): Work around them.  Fix related mingw bug.
42535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42536         * modules/unistd (Makefile.am): Substitute it.
42537         * lib/unistd.in.h (link): Declare replacement.
42538         * doc/posix-functions/link.texi (link): Document this.
42539         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42540
42541         test-link: consolidate into single C program, test more cases
42542         * tests/test-link.sh: Delete.
42543         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42544         at least Cygwin and Solaris.
42545         * modules/link-tests (Files): Remove unused file.
42546         (Depends-on): Add errno, sys_stat.
42547         (Makefile.am): Simplify.
42548
42549 2009-09-08  Bruno Haible  <bruno@clisp.org>
42550
42551         Work around towlower, towupper bug on mingw.
42552         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42553         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42554         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42555         * doc/posix-functions/towupper.texi: Likewise.
42556         Reported by Eric Blake.
42557
42558 2009-09-08  Jim Meyering  <meyering@redhat.com>
42559
42560         build: don't try to run autoheader if we don't use it
42561         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42562         is not used in configure.ac.
42563
42564 2009-09-08  Eric Blake  <ebb9@byu.net>
42565
42566         euidaccess: fix compilation error
42567         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42568
42569         rawmemchr: relax license
42570         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42571         okay.
42572         Reported by Jim Meyering.
42573
42574         mkfifoat: new module
42575         * modules/mkfifoat: New file.
42576         * lib/mkfifoat.c: Likewise.
42577         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42579         * modules/sys_stat (Makefile.am): Use them.
42580         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42581         * MODULES.html.sh (File system functions): Mention module.
42582         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42583         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42584         * modules/mkfifoat-tests: New test.
42585         * tests/test-mkfifoat.c: Likewise.
42586
42587         strchrnul: relax license
42588         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42589         okay.
42590         Reported by Jim Meyering.
42591
42592 2009-09-08  Eric Blake  <ebb9@byu.net>
42593
42594         fstatat: fix compilation on Solaris
42595         * lib/fstatat.c (includes): Add fcntl.h.
42596         Reported by Pádraig Brady.
42597
42598 2009-09-07  Eric Blake  <ebb9@byu.net>
42599
42600         rename: modernize replacement
42601         * modules/rename (Depends-on): Add stdio.
42602         (configure.ac): Declare witness.
42603         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42604         stdio take care of replacement.
42605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42606         * modules/stdio (Makefile.am): Substitute them.
42607         * lib/stdio.in.h (rename): Declare replacement.
42608         * lib/rename.c (includes): Allow cross-compilation to non-windows
42609         machines.
42610         * doc/posix-functions/rename.texi (rename): Improve
42611         documentation.
42612
42613         stdio: sort witness names
42614         * modules/stdio (Makefile.am): Sort replacements.
42615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42616         * lib/stdio.in.h: Likewise.
42617
42618         getcwd: minor cleanups
42619         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42620         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42621
42622         openat: provide more convenience names
42623         * modules/faccessat (configure.ac): Add C witness.
42624         * lib/unistd.in.h (readlinkat): Fix typo.
42625         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42626         convenience wrappers.
42627         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42628         wrappers in syntax checks.
42629
42630 2009-09-06  Eric Blake  <ebb9@byu.net>
42631
42632         doc: fix comments in recent patches
42633         * lib/faccessat.c: Mention correct function.
42634         * lib/fchmodat.c: Likewise.
42635         * lib/fchownat.c: Likewise.
42636         * lib/symlinkat.c: Likewise.
42637         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42638         constants.
42639
42640         faccessat, symlinkat: continue cleanup of previous patch
42641         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42642         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42643         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42645         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42646         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42647         set.
42648
42649 2009-09-06  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42652         (fstatat): Declare if GNULIB_FSTATAT is set.
42653         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42654         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42655         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42656         * modules/fcntl-h (Files): Remove m4/openat.m4.
42657         * modules/sys_stat (Files): Remove m4/openat.m4.
42658         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42659         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42660         * modules/unistd (Files): Remove m4/openat.m4.
42661         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42662         GNULIB_OPENAT.
42663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42664         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42666         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42667         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42668         gl_OPENAT_DEFAULTS.
42669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42670         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42671         Don't require gl_OPENAT_DEFAULTS.
42672         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42673         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42674         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42675         (gl_OPENAT_DEFAULTS): Remove macro.
42676
42677 2009-09-06  Bruno Haible  <bruno@clisp.org>
42678
42679         * modules/openat (configure.ac): Remove unneeded witness.
42680
42681 2009-09-06  Bruno Haible  <bruno@clisp.org>
42682
42683         Set errno to ENOSYS when a function is entirely unsupported.
42684         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42685         EOPNOTSUPP.
42686         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42687         * modules/chown (Depends-on): Remove errno.
42688
42689 2009-09-06  Bruno Haible  <bruno@clisp.org>
42690
42691         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42692
42693 2009-09-06  Bruno Haible  <bruno@clisp.org>
42694
42695         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42696
42697 2009-09-06  Ben Pfaff  <blp@gnu.org>
42698             Bruno Haible  <bruno@clisp.org>
42699
42700         Work around a glibc bug in strtok_r.
42701         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42702         Undefine if UNDEFINE_STRTOK_R is set.
42703         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42705         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42706         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42707         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42708         UNDEFINE_STRTOK_R.
42709         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42710
42711 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42712
42713         exclude: minor fix
42714         * lib/exclude.c: Include wctype.h
42715
42716 2009-09-06  Akim Demaille  <demaille@gostai.com>
42717
42718         bootstrap: improve error message
42719         * build-aux/bootstrap (find_tool): Upon failure, report the list
42720         of candidates.
42721         Honor the initial value of the envvar.
42722
42723 2009-09-05  Eric Blake  <ebb9@byu.net>
42724
42725         symlinkat: new module
42726         * modules/symlinkat: New file.
42727         * lib/symlinkat.c: Likewise.
42728         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42730         * modules/unistd (Makefile.am): Use them.
42731         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42732         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42733         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42734         * MODULES.html.sh (File system functions): Mention module.
42735         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42736         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42737         * modules/symlinkat-tests: New test.
42738         * tests/test-symlinkat.c: Likewise.
42739
42740         test-openat-safer: add more checks
42741         * tests/test-openat-safer.c (main): Check more code paths.
42742
42743 2009-09-05  Jim Meyering  <meyering@redhat.com>
42744
42745         syntax-check: detect unnecessary inclusion of openat.h
42746         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42747
42748 2009-09-05  Bruno Haible  <bruno@clisp.org>
42749
42750         Support towlower, towupper.
42751         * doc/posix-functions/towlower.texi: Mention module wctype.
42752         * doc/posix-functions/towupper.texi: Likewise.
42753         * lib/wctype.in.h (towlower, towupper): New functions.
42754         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42755         (ASSERT): New macro.
42756         (e): New variable.
42757         (main): Test also towlower, towupper. Test WEOF argument.
42758         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42759
42760 2009-09-05  Bruno Haible  <bruno@clisp.org>
42761
42762         Fix conversion behaviour when the input is invalid.
42763         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42764         mark occurring in first pass of indirect conversion.
42765         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42766         input.
42767         Found by clang's static analyzer.
42768
42769 2009-09-05  Bruno Haible  <bruno@clisp.org>
42770
42771         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42772         where direct conversion is possible.
42773
42774 2009-09-04  Eric Blake  <ebb9@byu.net>
42775
42776         openat: fail with ENOENT on empty name
42777         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42778         buffer.
42779
42780         link-follow: fix logic bug in prior patch
42781         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42782         reversed sense of yes and no in prior patch.  Avoid confusing
42783         compilation failure with desired semantics.
42784
42785         link-follow: accommodate mingw and cross-compilation
42786         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42787         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42788         cross-compilation results to -1, to make linkat easier to
42789         implement when cross-compiling.  Trivially support mingw.
42790         * modules/link-follow (configure.ac): Call new name.
42791         * NEWS: Mention this.
42792
42793 2009-09-03  Eric Blake  <ebb9@byu.net>
42794
42795         faccessat: compile replacement
42796         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42797         needed.
42798
42799         fts: fix compilation error
42800         * lib/fts.c (includes): Re-add "openat.h", for
42801         openat_needs_fchdir.
42802
42803         faccessat: new module
42804         * modules/faccessat: New file.
42805         * lib/faccessat.c: Likewise.
42806         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42808         * modules/unistd (Makefile.am): Use it.
42809         * lib/unistd.in.h (faccessat): Declare it.
42810         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42811         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42812         * MODULES.html.sh (File system functions): Mention it.
42813         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42814         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42815
42816         euidaccess: prefer POSIX over non-standard implementation
42817         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42818         * lib/euidaccess.c (euidaccess): Use it if available.
42819
42820         openat: make template easier to use
42821         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42822         AT_FUNC_F2 to be undefined.
42823         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42824         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42825         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42826         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42827         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42828         Likewise.
42829         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42830         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42831         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42832         Likewise.
42833
42834         openat: declare in POSIX headers
42835         * NEWS: Mention this.
42836         * modules/openat (configure.ac): Declare witnesses.
42837         (Depends-on): Add fcntl-h, sys_stat, unistd.
42838         (Include): Mention correct headers.
42839         * modules/fcntl-h (Depends-on): Add link-warning.
42840         (Files): Add openat.m4.
42841         (Makefile.am): Substitute witnesses.
42842         * modules/sys_stat (Files, Makefile.am): Likewise.
42843         * modules/unistd (Files, Makefile.am): Likewise.
42844         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42845         (gl_OPENAT_DEFAULTS): New macro.
42846         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42848         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42849         (SYS_STAT_H): Remove unused variable.
42850         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42851         * lib/fcntl--.h (includes): Remove unneeded header.
42852         * lib/openat-safer.c (includes): Likewise.
42853         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42854         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42855         appropriate headers.
42856         (__OPENAT_PREFIX): Delete.
42857         * lib/fcntl.in.h (openat): Provide declaration.
42858         (AT_FDCWD): Fix Solaris bug.
42859         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42860         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42861         * lib/fchmodat.c (includes):  Adjust to find declaration.
42862         * lib/fchownat.c (includes): Likewise.
42863         * lib/mkdirat.c (includes): Likewise.
42864         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42865         still visible.
42866
42867 2009-09-02  Eric Blake  <ebb9@byu.net>
42868
42869         errno: use consistently
42870         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42871         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42872         * lib/canonicalize.c (ELOOP): Likewise.
42873         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42874         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42875         * lib/lchown.c (EOPNOTSUPP): Likewise.
42876         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42877         * lib/savewd.c (ESTALE): Likewise.
42878         * lib/settime.c (ENOSYS): Likewise.
42879         * lib/utimens.c (ENOSYS): Likewise.
42880         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42881         * lib/chdir-safer.c (ELOOP): Likewise.
42882         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42883         * modules/c-stack (Depends-on): Add errno.
42884         * modules/canonicalize (Depends-on): Likewise.
42885         * modules/chdir-safer (Depends-on): Likewise.
42886         * modules/fdopendir (Depends-on): Likewise.
42887         * modules/inet_ntop (Depends-on): Likewise.
42888         * modules/inet_pton (Depends-on): Likewise.
42889         * modules/lchown (Depends-on): Likewise.
42890         * modules/openat (Depends-on): Likewise.
42891         * modules/savewd (Depends-on): Likewise.
42892         * modules/settime (Depends-on): Likewise.
42893         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42894
42895         fts: avoid leaking fds
42896         * modules/fts (Depends-on): Add cloexec.
42897         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42898         flag.
42899
42900         fts: make directory fds more robust
42901         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42902         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42903
42904         backupfile, chdir-long, fts, savedir: make safer
42905         * lib/backupfile.c (includes): Use "dirent--.h", since
42906         numbered_backup can write to stderr during readdir.
42907         * lib/savedir.c (includes): Likewise.
42908         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42909         emulation can write to stderr on failure.
42910         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42911         * lib/getcwd.c: Document why opendir_safer is unused.
42912         * lib/glob.c: Likewise.
42913         * lib/scandir.c: Likewise.
42914         * lib/openat-proc.c: Likewise, for open_safer.
42915         * modules/backupfile (Depends-on): Add dirent-safer.
42916         * modules/savedir (Depends-on): Likewise.
42917         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42918         * modules/chdir-long (Depends-on): Add openat-safer.
42919
42920         openat-safer: new module
42921         * modules/openat-safer: New file.
42922         * lib/openat-safer.c: Likewise.
42923         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42924         * lib/fcntl-safer.h (openat_safer): Declare.
42925         * lib/fcntl--.h (openat): Override.
42926         * MODULES.html.sh (File descriptor based I/O): Mention it.
42927         * lib/openat.h: Add double-inclusion guards.
42928         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42929         "fcntl--.h", so we can implement openat.
42930         * modules/openat-safer-tests: New test.
42931         * tests/test-openat-safer.c: New file.
42932
42933         dirent-safer: new module
42934         * modules/dirent-safer: New file.
42935         * lib/dirent--.h: Likewise.
42936         * lib/dirent-safer.h: Likewise.
42937         * lib/opendir-safer.c: Likewise.
42938         * m4/dirent-safer.m4: Likewise.
42939         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42940         * modules/dirent-safer-tests: New test.
42941         * tests/test-dirent-safer.c: New file.
42942         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42943
42944         fdopendir: optimize on mingw
42945         * lib/unistd.in.h (_gl_directory_name): New prototype.
42946         * lib/fchdir.c (_gl_directory_name): Implement it.
42947         (fchdir): Use it to simplify implementation.
42948         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42949         fchdir, when available, to avoid calling [f]chdir().
42950
42951         fdopendir: split into its own module
42952         * lib/openat.c (fdopendir): Move...
42953         * lib/fdopendir.c: ...into new file.
42954         * modules/fdopendir: New module.
42955         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42956         * modules/openat (Depends-on): Add fdopendir.
42957         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42958         fdopendir here.
42959         * modules/savedir (Depends-on): Only need fdopendir, not full
42960         openat.
42961         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42962         * lib/openat.h (fdopendir): Drop prototype.
42963         * lib/dirent.in.h (fdopendir): Provide prototype.
42964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42965         * modules/dirent (Makefile.am): Substitute them.
42966         * MODULES.html.sh (File system functions): Mention it.
42967         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42968         * modules/fdopendir-tests: New file.
42969         * tests/test-fdopendir.c: Likewise.
42970
42971         fchdir: use more consistent macro convention
42972         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42973         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42974         REPLACE_FCHDIR, rather than relying on config.h macros.
42975         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42976         inside a single make-time REPLACE_FCHDIR block, rather than using
42977         the config.h FCHDIR_REPLACEMENT.
42978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42979         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42980         Manage fstat replacement.
42981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42982         REPLACE_FCHDIR.
42983         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42984         (Makefile.am): Substitute REPLACE_FCHDIR.
42985         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42986         FCHDIR_REPLACEMENT.
42987         * lib/dup-safer.c (dup_safer): Likewise.
42988         * lib/dup2.c (rpl_dup2): Likewise.
42989         * lib/dup3.c (rpl_dup3): Likewise.
42990         * lib/open.c (rpl_open): Likewise.
42991
42992         fchdir: simplify error handling, and support dup3
42993         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42994         stdbool, malloc-posix, realloc-posix.
42995         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42996         (ensure_dirs_slot): Return false on allocation failure.
42997         (rpl_dup2): Delete.
42998         (_gl_register_dup): New function.
42999         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43000         (_gl_register_fd): Close fd on allocation failure.
43001         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43002         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43003         prototype.
43004         (rpl_dup2_fchdir): Delete prototype.
43005         * lib/open.c (open): Update caller.
43006         * lib/dup2.c (dup2): Track fchdir metadata.
43007         * lib/dup3.c (dup3): Likewise.
43008         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43010
43011 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43012
43013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43014         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43015         don't pass arguments to AC_OUTPUT.
43016
43017 2009-09-02  Bruno Haible  <bruno@clisp.org>
43018
43019         * modules/mkdtemp (License): Relicense under LGPLv2+.
43020         Reported by Paolo Bonzini.
43021
43022 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43023
43024         Replace uses of obsolete autoconf macros in Jim's modules.
43025         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43026         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43027         can evoke a warning from autoconf when run with -Wobsolete
43028         enabled.  They were declared obsolete for good reasons (see
43029         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43030         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43031         should not continue using the deprecated macros.
43032         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43033         obsolete Autoconf macros with modern counterparts.
43034         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43035         * m4/dos.m4 (gl_AC_DOS): Likewise.
43036         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43038         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43039         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43040         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43042         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43043         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43044         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43045         Likewise.
43046         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43047         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43048         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43049         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43050         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43051         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43052
43053 2009-09-01  Eric Blake  <ebb9@byu.net>
43054
43055         fchdir: fix off-by-one bug in previous patch
43056         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43057         (_gl_unregister_fd): Delete useless if.
43058
43059 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43060
43061         maint.mk: sort the list of syntax-check rules
43062         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43063         easier to get a sense of progress when the rules are run sequentially
43064         and take a long time.
43065
43066 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43067
43068         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43069         * modules/netinet_in: Likewise.
43070         * modules/sys_file: Likewise.
43071         * modules/sys_ioctl: Likewise.
43072         * modules/sys_select: Likewise.
43073         * modules/sys_socket: Likewise.
43074         * modules/sys_stat: Likewise.
43075         * modules/sys_time: Likewise.
43076         * modules/sys_times: Likewise.
43077         * modules/sys_utsname: Likewise.
43078         * modules/sys_wait: Likewise.
43079
43080 2009-09-01  Jim Meyering  <meyering@redhat.com>
43081
43082         fts: help ensure that return values are not ignored
43083         * lib/fts_.h (__GNUC_PREREQ): Define.
43084         (__attribute_warn_unused_result__): Define.
43085         (fts_children, fts_close, fts_open, fts_read): Declare with
43086         __attribute_warn_unused_result__.
43087
43088         fts: fts_close now fails also when closing a dir file descriptor fails
43089         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43090         and propagate to caller, along with errno.
43091
43092         announce-gen: correct formatting in --help output
43093         * build-aux/announce-gen (usage): Move the one-line description in
43094         --help output "up", to where it belongs, just after Usage:.
43095
43096 2009-08-31  Eric Blake  <ebb9@byu.net>
43097
43098         fchdir: port to mingw
43099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43100         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43101         opened, then use a substitute.
43102         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43103         replacement.
43104         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43105         (_gl_register_fd): No need to check stat if open already filters
43106         all directories.
43107         (fchdir): Fix error condition to match POSIX.
43108         * modules/fchdir (Depends-on): Add sys_stat.
43109         * doc/posix-functions/open.texi (open): Document the limitation.
43110         * modules/fchdir-tests: New file.
43111         * tests/test-fchdir.c: Likewise.
43112
43113         canonicalize: allow cross-testing from cygwin to mingw
43114         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43115         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43116         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43117         Likewise.
43118         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43119         target does not support symlinks.
43120         * tests/test-canonicalize-lgpl.sh: Likewise.
43121
43122         chown: avoid compilation warning on mingw
43123         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43124         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43125         mingw.
43126         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43127         * modules/chown (Depends-on): Add errno.
43128
43129 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43130
43131         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43132         command.
43133
43134 2009-08-31  Jim Meyering  <meyering@redhat.com>
43135
43136         canonicalize: remove useless initialization
43137         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43138         initialization of local, "end".
43139
43140 2009-08-30  Bruno Haible  <bruno@clisp.org>
43141
43142         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43143         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43144         ENOSYS.
43145
43146 2009-08-30  Bruno Haible  <bruno@clisp.org>
43147
43148         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43149         /usr/xpg4/bin/tr when it exists.
43150         * tests/test-pipe-filter-gi1.sh: Likewise.
43151
43152 2009-08-30  Bruno Haible  <bruno@clisp.org>
43153
43154         Work around deficient /usr/bin/id program on Solaris.
43155         * tests/test-file-has-acl.sh (ID): New variable.
43156         * tests/test-set-mode-acl.sh (ID): Likewise.
43157         * tests/test-copy-acl.sh (ID): Likewise.
43158         * tests/test-copy-file.sh (ID): Likewise.
43159
43160 2009-08-30  Bruno Haible  <bruno@clisp.org>
43161
43162         New module 'xstriconveh'.
43163         * lib/xstriconveh.h: New file.
43164         * lib/xstriconveh.c: New file.
43165         * modules/xstriconveh: New file.
43166
43167 2009-08-30  Bruno Haible  <bruno@clisp.org>
43168
43169         Make it easier to use mem_cd_iconveh.
43170         * lib/striconveh.h (iconveh_t): New type.
43171         (iconveh_open, iconveh_close): New declarations.
43172         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43173         with a single 'const iconveh_t *' argument.
43174         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43175         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43176         with a single 'const iconveh_t *' argument.
43177         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43178         * tests/test-striconveh.c (main): Update.
43179         * NEWS: Mention the change.
43180
43181 2009-08-30  Bruno Haible  <bruno@clisp.org>
43182
43183         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43184         problem.
43185
43186 2009-08-30  Bruno Haible  <bruno@clisp.org>
43187
43188         Work around iconv_open problem on Solaris.
43189         * lib/iconv_open-solaris.gperf: New file.
43190         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43191         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43192         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43193         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43194         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43195         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43196
43197 2009-08-29  Jim Meyering  <meyering@redhat.com>
43198
43199         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43200         * top/maint.mk (cvs-check): Remove target; it was just an alias
43201         to the better-named vc-diff-check.
43202         (maintainer-distcheck): Remove rule.  It was used only from
43203         the (alpha/beta/major) target, and all of its commands but one
43204         were coreutils-specific.
43205         (vc-dist): Remove rule.
43206         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43207         Run vc-diff-check, not vc-dist.
43208         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43209
43210 2009-08-27  Bruno Haible  <bruno@clisp.org>
43211
43212         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43213         of 0.
43214
43215 2009-08-27  Bruno Haible  <bruno@clisp.org>
43216
43217         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43218         compilers.
43219         * doc/func.texi: Document the SunPRO C bug.
43220
43221 2009-08-27  Bruno Haible  <bruno@clisp.org>
43222
43223         Fix link error on Solaris.
43224         * tests/test-parse-duration.c (xstrdup): Remove function.
43225
43226 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43227
43228         ignore-value: handle pointer types, too
43229         * lib/ignore-value.h (__attribute__): Remove definition.
43230         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43231         of a more concise and more-often effective "(void) i" statement.
43232         (ignore_ptr): New function to suppress warnings from functions that
43233         return pointers, and to make it explicit that one function doesn't
43234         handle all cases.
43235
43236 2009-08-25  Bruno Haible  <bruno@clisp.org>
43237
43238         dup2: work around a Linux bug.
43239         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43240         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43241         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43242         Reported by Simon Josefsson.
43243
43244 2009-08-25  Jim Meyering  <meyering@redhat.com>
43245
43246         libguestfs uses gnulib
43247         * users.txt: Add libguestfs.
43248
43249 2009-08-24  Eric Blake  <ebb9@byu.net>
43250
43251         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43252         * lib/pipe2.c (includes): Add binary-io.h.
43253         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43254
43255 2009-08-24  Bruno Haible  <bruno@clisp.org>
43256
43257         Tolerate declared but missing accept4 syscall.
43258         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43259         available.
43260         * lib/sys_socket.in.h (accept4): If the function is already present,
43261         override it.
43262         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43263         * modules/accept4 (Makefile.am): Compile accept4.c always.
43264         Reported by Paolo Bonzini and Eric Blake.
43265
43266 2009-08-23  Bruno Haible  <bruno@clisp.org>
43267
43268         New module 'accept4'.
43269         * lib/sys_socket.in.h (accept4): New declaration.
43270         * lib/accept4.c: New file.
43271         * m4/accept4.m4: New file.
43272         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43273         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43274         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43275         HAVE_ACCEPT4.
43276         * modules/accept4: New file.
43277         * doc/glibc-functions/accept4.texi: Mention the new module.
43278
43279 2009-08-24  Jim Meyering  <meyering@redhat.com>
43280
43281         progname: also set global program_invocation_name, when possible
43282         Before this change, a libtool-enabled program that calls glibc's
43283         error function would report the program name as
43284         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43285         * modules/progname (configure.ac): Check for a declaration of
43286         program_invocation_name.
43287         * lib/progname.c:  Include <errno.h>.
43288         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43289         Set program_invocation_name.
43290
43291 2009-08-23  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/dup3.c: Include <string.h>.
43294
43295 2009-08-23  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43298         * lib/pipe2.c (pipe2): Likewise.
43299         Suggested by Eric Blake.
43300
43301 2009-08-23  Bruno Haible  <bruno@clisp.org>
43302
43303         Tolerate declared but missing dup3 syscall.
43304         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43305         * lib/unistd.in.h (dup3): If the function is already present,
43306         override it.
43307         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43308         * modules/dup3 (Makefile.am): Compile dup3.c always.
43309         Reported by Paolo Bonzini.
43310
43311 2009-08-23  Bruno Haible  <bruno@clisp.org>
43312
43313         Tolerate declared but missing pipe2 syscall.
43314         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43315         available.
43316         * lib/unistd.in.h (pipe2): If the function is already present,
43317         override it.
43318         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43319         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43320         Reported by Paolo Bonzini.
43321
43322 2009-08-23  Bruno Haible  <bruno@clisp.org>
43323
43324         * lib/pipe2.c (pipe2): Move #ifs inside function.
43325
43326 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43327
43328         quotearg: document limitations of quote_these_too
43329         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43330         those limitations are created.
43331         * lib/quotearg.h (set_char_quoting): Document that digits and
43332         letters that are special after backslash are not permitted.
43333         (quotearg_char): Cross-reference set_char_quoting documentation.
43334
43335 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43336
43337         quotearg: implement custom_quoting_style
43338         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43339         right_quote fields.
43340         (set_custom_quoting): New public function.
43341         (quotearg_buffer_restyled): Add left_quote and right_quote
43342         arguments, handle them very much like locale quoting, and update
43343         all uses.
43344         (quotearg_n_custom): New public function.
43345         (quotearg_n_custom_mem): New public function.
43346         (quotearg_custom): New public function.
43347         (quotearg_custom_mem): New public function.
43348         * lib/quotearg.h: Prototype and document new public functions.
43349         (enum quoting_style): For escape_quoting_style and
43350         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43351         ignored even though they're otherwise like c_quoting_style.
43352         Add custom_quoting_style member and document with comparison to
43353         clocale_quoting_style.
43354         * tests/test-quotearg.c (custom_quotes): New array.
43355         (custom_results): New array.
43356         (main): Extend to test custom quoting.
43357
43358 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43359
43360         quotearg: fix right quote escaping when it's in quote_these_too
43361         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43362         quote, be sure to prepend only one backslash.
43363         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43364         (main): Test it.
43365
43366 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43367
43368         quotearg-tests: test escaping of embedded locale quotes
43369         * tests/test-quotearg.c (struct result_strings): Add member for
43370         new input.
43371         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43372         (inputs): Add new input.
43373         (results_g): Add expected results.
43374         (flag_results): Likewise.
43375         (locale_results): Likewise.
43376         (compare_strings): Check those.
43377
43378 2009-08-23  Bruno Haible  <bruno@clisp.org>
43379
43380         Tests for module 'dup3'.
43381         * modules/dup3-tests: New file.
43382         * tests/test-dup3.c: New file.
43383
43384         New module 'dup3'.
43385         * lib/unistd.in.h (dup3): New declaration.
43386         * lib/dup3.c: New file.
43387         * m4/dup3.m4: New file.
43388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43389         HAVE_DUP3.
43390         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43391         * modules/dup3: New file.
43392         * doc/glibc-functions/dup3.texi: Mention the new module.
43393
43394 2009-08-23  Bruno Haible  <bruno@clisp.org>
43395
43396         Tweak the dup2 test.
43397         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43398         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43399         the test file is still empty. Fix argument order of lseek.
43400
43401 2009-08-23  Bruno Haible  <bruno@clisp.org>
43402
43403         Avoid test link errors when the modules getopt-gnu, gettext are used.
43404         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43406
43407 2009-08-23  Bruno Haible  <bruno@clisp.org>
43408
43409         Fix getdtablesize() on mingw.
43410         * lib/getdtablesize.c (getdtablesize): Implement differently.
43411         * lib/unistd.in.h (getdtablesize): Improve comment.
43412
43413 2009-08-23  Bruno Haible  <bruno@clisp.org>
43414
43415         New module 'mkostemp'.
43416         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43417         * lib/stdlib.in.h (mksotemp): New declaration.
43418         * lib/mkostemp.c: New file, from glibc with modifications.
43419         * lib/tempname.h (GT_FILE): Remove outdated comment.
43420         (gen_tempname): Add flags argument.
43421         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43422         (__GT_FILE): Map to 1.
43423         (small_open, large_open): Remove macros.
43424         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43425         * lib/mkstemp.c (mkstemp): Update.
43426         * lib/mkdtemp.c (mkdtemp): Likewise.
43427         * m4/mkostemp.m4: New file.
43428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43429         HAVE_MKOSTEMP.
43430         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43431         HAVE_MKOSTEMP.
43432         * modules/mkostemp: New file, based on modules/mkstemp.
43433         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43434         * NEWS: Mention the change.
43435
43436 2009-08-23  Bruno Haible  <bruno@clisp.org>
43437
43438         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43439         Reported by Eric Blake.
43440
43441 2009-08-23  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43444         Reported by Eric Blake.
43445
43446 2009-08-23  Bruno Haible  <bruno@clisp.org>
43447
43448         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43449         * modules/pipe2 (Depends-on): Likewise.
43450
43451 2009-08-23  Eric Blake  <ebb9@byu.net>
43452
43453         fcntl-h: add O_TTY_INIT support
43454         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43455         * tests/test-fcntl-h.c (o): Test it.
43456         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43457
43458         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43459         * modules/fcntl: Move <fcntl.h> header replacement...
43460         * modules/fcntl-h: ...to new name, so as not to collide with
43461         like-named function.
43462         * tests/test-fcntl.c: Rename...
43463         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43464         * modules/fcntl-tests: Rename...
43465         * modules/fcntl-h-tests: ...to this.  Update test file name.
43466         * modules/chdir-long (Depends-on): Update clients.
43467         * modules/chdir-safer (Depends-on): Likewise.
43468         * modules/fcntl-safer (Depends-on): Likewise.
43469         * modules/fts (Depends-on): Likewise.
43470         * modules/mkancesdirs (Depends-on): Likewise.
43471         * modules/mkdir-p (Depends-on): Likewise.
43472         * modules/open (Depends-on): Likewise.
43473         * modules/savewd (Depends-on): Likewise.
43474         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43475         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43476
43477 2009-08-22  Bruno Haible  <bruno@clisp.org>
43478
43479         * modules/binary-io (License): Relicense under LGPL.
43480         * modules/pipe2 (License): Likewise.
43481
43482 2009-08-22  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43485         return value.
43486         * lib/pipe-filter-gi.c (filter_init): Likewise.
43487         Reported by Eric Blake.
43488
43489 2009-08-22  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43492         * modules/pipe (Depends-on): Add pipe2.
43493
43494 2009-08-22  Bruno Haible  <bruno@clisp.org>
43495
43496         Tests for module 'pipe2'.
43497         * modules/pipe2-tests: New file.
43498         * tests/test-pipe2.c: New file.
43499
43500         New module 'pipe2'.
43501         * lib/unistd.in.h (pipe2): New declaration.
43502         * lib/pipe2.c: New file.
43503         * m4/pipe2.m4: New file.
43504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43505         HAVE_PIPE2.
43506         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43507         * modules/pipe2: New file.
43508         * doc/glibc-functions/pipe2.texi: Mention the new module.
43509
43510 2009-08-22  Bruno Haible  <bruno@clisp.org>
43511
43512         Reference some new glibc functions.
43513         * doc/glibc-functions/accept4.texi: New file.
43514         * doc/glibc-functions/dup3.texi: New file.
43515         * doc/glibc-functions/mkostemp.texi: New file.
43516         * doc/glibc-functions/pipe2.texi: New file.
43517         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43518         (Glibc sys/socket.h): Refer to accept4.
43519         (Glibc unistd.h): Refer to dup3, pipe2.
43520         Reported by Eric Blake.
43521
43522 2009-08-22  Jim Meyering  <meyering@redhat.com>
43523             Bruno Haible  <bruno@clisp.org>
43524
43525         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43526         This makes it so packages using automake-1.11's silent-rules option
43527         can print e.g., a single "GEN    configmake.h" line, rather than
43528         the 30+ statements that perform the job.  If you want to see the
43529         actual commands, you can still run "make V=1".
43530         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43531         so that make output is abbreviated when those variables are defined
43532         appropriately.
43533         * modules/argz: Likewise.
43534         * modules/arpa_inet: Likewise.
43535         * modules/byteswap: Likewise.
43536         * modules/configmake: Likewise.
43537         * modules/dirent: Likewise.
43538         * modules/errno: Likewise.
43539         * modules/fcntl: Likewise.
43540         * modules/float: Likewise.
43541         * modules/fnmatch: Likewise.
43542         * modules/getopt-posix: Likewise.
43543         * modules/glob: Likewise.
43544         * modules/iconv_open: Likewise.
43545         * modules/inttypes: Likewise.
43546         * modules/localcharset: Likewise.
43547         * modules/locale: Likewise.
43548         * modules/math: Likewise.
43549         * modules/netdb: Likewise.
43550         * modules/netinet_in: Likewise.
43551         * modules/poll: Likewise.
43552         * modules/posix_spawnp-tests: Likewise.
43553         * modules/sched: Likewise.
43554         * modules/search: Likewise.
43555         * modules/selinux-h: Likewise.
43556         * modules/signal: Likewise.
43557         * modules/spawn: Likewise.
43558         * modules/stdarg: Likewise.
43559         * modules/stdbool: Likewise.
43560         * modules/stddef: Likewise.
43561         * modules/stdint: Likewise.
43562         * modules/stdio: Likewise.
43563         * modules/stdlib: Likewise.
43564         * modules/string: Likewise.
43565         * modules/strings: Likewise.
43566         * modules/sys_file: Likewise.
43567         * modules/sys_ioctl: Likewise.
43568         * modules/sys_select: Likewise.
43569         * modules/sys_socket: Likewise.
43570         * modules/sys_stat: Likewise.
43571         * modules/sys_time: Likewise.
43572         * modules/sys_times: Likewise.
43573         * modules/sys_utsname: Likewise.
43574         * modules/sys_wait: Likewise.
43575         * modules/sysexits: Likewise.
43576         * modules/time: Likewise.
43577         * modules/unistd: Likewise.
43578         * modules/wchar: Likewise.
43579         * modules/wctype: Likewise.
43580
43581 2009-08-22  Jim Meyering  <meyering@redhat.com>
43582
43583         announce-gen: detect write failure
43584         * build-aux/announce-gen: Add Coda at end.
43585         Remove equivalent-but-more-verbose block at top.
43586
43587 2009-08-19  Akim Demaille  <demaille@gostai.com>
43588
43589         bootstrap: --help to stdout.
43590         * bootstrap (usage): Don't send --help to stderr.
43591         Use a here doc instead of a long string.
43592
43593 2009-08-21  Eric Blake  <ebb9@byu.net>
43594
43595         test-popen-safer: split from test-popen
43596         * tests/test-popen.c (main): Move...
43597         * tests/test-popen.h: ...into new file.
43598         * tests/test-popen-safer2.c: New file.
43599         * modules/popen-tests (Files): Add test-popen.h.
43600         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43601         Suggested by Bruno Haible.
43602
43603         test-fcntl-safer: split from test-open
43604         * tests/test-open.c (main): Move...
43605         * tests/test-open.h: ...into new file.
43606         * tests/test-fcntl-safer.c: New file.
43607         * modules/open-tests (Files): Add test-open.h.
43608         * modules/fcntl-safer-tests: New file.
43609         Suggested by Bruno Haible.
43610
43611         test-fopen-safer: split from test-fopen
43612         * tests/test-fopen.c (main): Move...
43613         * tests/test-fopen.h: ...into new file.
43614         * tests/test-fopen-safer.c: New file.
43615         * modules/fopen-tests (Files): Add test-fopen.h.
43616         * modules/fopen-safer-tests: New file.
43617         Suggested by Bruno Haible.
43618
43619 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43620
43621         popen-safer: test O_CLOEXEC at run-time.
43622         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43623
43624 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43625
43626         fcntl: move more flags to the header
43627         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43628         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43629         * lib/fcntl.in.h: Do both things here.
43630
43631 2009-08-21  Jim Meyering  <meyering@redhat.com>
43632
43633         consistently remove $@-t before redirecting to it
43634         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43635         * modules/alloca-opt: Likewise.
43636         * modules/byteswap: Likewise.
43637         * modules/fnmatch: Likewise.
43638         * modules/getopt-posix: Likewise.
43639         * modules/glob: Likewise.
43640         * modules/poll: Likewise.
43641         * modules/posix_spawnp-tests: Likewise.
43642         * modules/sys_socket: Likewise.
43643         * modules/sysexits: Likewise.
43644
43645 2009-08-21  Eric Blake  <ebb9@byu.net>
43646
43647         popen: simplify access to original popen
43648         * lib/popen.c (rpl_popen): No need to worry about popen being a
43649         macro.
43650         Reported by Bruno Haible.
43651
43652 2009-08-20  Eric Blake  <ebb9@byu.net>
43653
43654         build: avoid some compiler warnings
43655         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43656         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43657         type.
43658         (new_exclude_segment, excluded_file_pattern_p)
43659         (excluded_file_name_p): Reduce scope.
43660         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43661         old-style declaration.
43662
43663 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43664
43665         * tests/test-exclude1.sh: Handle Windows EOL.
43666         * tests/test-exclude2.sh: Likewise.
43667         * tests/test-exclude3.sh: Likewise.
43668         * tests/test-exclude4.sh: Likewise.
43669         * tests/test-exclude5.sh: Likewise.
43670         * tests/test-exclude6.sh: Likewise.
43671         * tests/test-exclude7.sh: Likewise.
43672
43673 2009-08-19  Akim Demaille  <demaille@gostai.com>
43674
43675         bootstrap: find sha1sum when named gsha1sum.
43676         * bootstrap (find_tool): New.
43677         ($SHA1SUM): New.
43678         Use it.
43679
43680 2009-08-20  Jim Meyering  <meyering@redhat.com>
43681
43682         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43683         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43684         expression that converts "." in a file name to "\." in the resulting
43685         regexp.  Start with a dummy statement, so that prior shell variable
43686         definitions are expanded portably.  Reported by Simon Josefsson.
43687
43688 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43689
43690         Fix polling for writeability of a screen buffer.
43691         * lib/poll.c: Distinguish input and screen buffers for the
43692         Win32 implementation.
43693         * lib/select.c: Likewise.
43694
43695 2009-08-19  Eric Blake  <ebb9@byu.net>
43696
43697         popen-safer: prevent popen from clobbering std descriptors
43698         * modules/popen-safer: New file.
43699         * lib/popen-safer.c: Likewise.
43700         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43701         * lib/stdio--.h (popen): Provide override.
43702         * lib/stdio-safer.h (popen_safer): Provide declaration.
43703         * tests/test-popen.c (includes): Partially test this.
43704         * modules/popen-safer-tests: New file, for more tests.
43705         * tests/test-popen-safer.c: Likewise.
43706         * MODULES.html.sh (file stream based Input/Output): Mention it.
43707
43708         tests: test some of the *-safer modules
43709         * modules/fopen-safer (Depends-on): Add fopen.
43710         * modules/fcntl-safer (Depends-on): Add fcntl.
43711         * modules/stdlib-safer (Depends-on): Add stdlib.
43712         (configure.ac): Set indicator.
43713         * modules/unistd-safer (configure.ac): Likewise.
43714         * modules/tmpfile-safer (configure.ac): Likewise.
43715         (Depends-on): Add tmpfile.
43716         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43717         active.
43718         * tests/test-fopen.c (includes): Test safer versions when they are
43719         in use.
43720         * tests/test-open.c (includes): Likewise.
43721
43722         popen: fix cygwin 1.5 bug when stdin closed
43723         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43724         * modules/popen: New file.
43725         * modules/popen-tests: Likewise.
43726         * tests/test-popen.c: Likewise.
43727         * m4/popen.m4: Likewise.
43728         * lib/popen.c: Likewise.
43729         * lib/stdio.in.h (popen): New declaration.
43730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43731         * modules/stdio (Makefile.am): Likewise.
43732         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43733
43734 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43735
43736         maint.mk: give full control over update-copyright exclusions
43737         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43738         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43739         (update-copyright): Don't force inclusion of top-level
43740         ChangeLog.  Don't force exclusion of all COPYING files, but make
43741         them the default exclusion instead.
43742
43743 2009-08-16  Bruno Haible  <bruno@clisp.org>
43744
43745         Fix test failures on Solaris 10.
43746         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43747         tests when Solaris iconv() is used.
43748         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43749         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43750         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43751         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43752         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43753
43754 2009-08-16  Bruno Haible  <bruno@clisp.org>
43755
43756         Fix test failures on Solaris 10.
43757         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43758         'tr' program and pass it as first argument.
43759         * tests/test-pipe-filter-gi1.sh: Likewise.
43760         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43761         program as first argument.
43762         * tests/test-pipe-filter-gi1.c (main): Likewise.
43763
43764 2009-08-16  Eric Blake  <ebb9@byu.net>
43765
43766         fpurge: fix previous commits
43767         * modules/fpurge (Makefile.am): Make replacement conditional,
43768         partially reverting 2007-04-29 change; missed in previous
43769         attempt.
43770         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43771         is missing.
43772
43773 2009-08-16  Bruno Haible  <bruno@clisp.org>
43774
43775         Clarify fpurge's effect on the file position.
43776         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43777         * tests/test-fpurge.c (main): Make a second pass for checking the file
43778         position.
43779
43780 2009-08-16  Bruno Haible  <bruno@clisp.org>
43781
43782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43783         declaration of fpurge is missing.
43784         * tests/test-fpurge.c (main): Check that the file has not more contents
43785         than expected. Close the file before removing it.
43786
43787 2009-08-15  Eric Blake  <ebb9@byu.net>
43788
43789         fpurge: don't wrap working cygwin implementation
43790         * lib/fpurge.c (fpurge): Fix comment typo.
43791         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43792         1.7 to avoid replacement.
43793         * tests/test-fpurge.c (main): Enhance test.
43794
43795 2009-08-15  Eric Blake  <ebb9@byu.net>
43796         and Jim Meyering  <meyering@redhat.com>
43797
43798         test-update-copyright: skip if perl is insufficient
43799         * tests/test-update-copyright.sh: Failure to run maintainer tool
43800         should not cause testsuite failure on cygwin 1.5.
43801
43802 2009-08-14  Eric Blake  <ebb9@byu.net>
43803
43804         doc: mention more functions added in cygwin 1.7.0
43805         * doc/posix-headers/limits.texi (limits.h): Update for recent
43806         cygwin additions.
43807         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43808         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43809         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43810         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43811         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43812
43813 2009-08-14  Eric Blake  <ebb9@byu.net>
43814
43815         maint.mk: simplify update-copyright rule
43816         * top/maint.mk (update-copyright-local): Delete, and document how
43817         to do it in cfg.mk instead.
43818         (update-copyright-exclude-regexp): Delete, and document how to do
43819         it in .x-update-copyright instead.
43820         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43821         exclude ChangeLog.
43822
43823 2009-08-14  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43826
43827 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43828
43829         maint.mk: support update-copyright-env
43830         * top/maint.mk (update-copyright-env): Define place-holder.
43831         (update-copyright): Expand $(update-copyright-env) before
43832         invoking update-copyright.
43833
43834 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43835
43836         update-copyright: implement forced reformatting
43837         * build-aux/update-copyright: Implement and document
43838         UPDATE_COPYRIGHT_FORCE.
43839         * tests/test-update-copyright.sh: Test it.
43840
43841 2009-08-14  Eric Blake  <ebb9@byu.net>
43842         and Bruno Haible  <bruno@clisp.org>
43843
43844         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43845         * tests/test-locale.c: Revert previous patch related to NULL.
43846         * tests/test-stdio.c: Likewise.
43847         * tests/test-stdlib.c: Likewise.
43848         * tests/test-string.c: Likewise.
43849         * tests/test-unistd.c: Likewise.
43850         * modules/time-tests (Depends-on): Add verify.
43851         * modules/wchar-tests (Depends-on): Likewise.
43852         * tests/test-time.c: Test for NULL compliance.
43853         * tests/test-wchar.c: Likewise.
43854         * modules/locale (Depends-on): Add stddef.
43855         * modules/stdio (Depends-on): Likewise.
43856         * modules/stdlib (Depends-on): Likewise.
43857         * modules/string (Depends-on): Likewise.
43858         * modules/time (Depends-on): Likewise.
43859         * modules/unistd (Depends-on): Likewise.
43860         * modules/wchar (Depends-on): Likewise.
43861         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43862         * lib/stdlib.in.h (includes): Likewise.
43863         * lib/string.in.h (includes): Likewise.
43864         * lib/time.in.h (includes): Likewise.
43865         * lib/unistd.in.h (includes): Likewise.
43866         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43867         replaced.
43868         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43869         * m4/stddef_h.m4: New file.
43870         * modules/stddef: Likewise.
43871         * lib/stddef.in.h: Likewise.
43872         * modules/stddef-tests: Likewise.
43873         * tests/test-stddef.c: Likewise.
43874         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43875         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43876         * doc/posix-headers/locale.texi (locale.h): Likewise.
43877         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43878         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43879         * doc/posix-headers/string.texi (string.h): Likewise.
43880         * doc/posix-headers/time.texi (time.h): Likewise.
43881         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43882         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43883
43884 2009-08-14  Eric Blake  <ebb9@byu.net>
43885
43886         doc: improve git diff of texinfo files
43887         * .gitattributes: Add rule for *.texi files, with hint on how to
43888         use it.
43889         Copied from m4, and based on a report by Bruno Haible.
43890
43891 2009-08-14  Bruno Haible  <bruno@clisp.org>
43892
43893         Disable multithread support by default on Cygwin 1.5.x for real.
43894         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43895
43896 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43897
43898         update-copyright: much ado about intervals
43899         * build-aux/update-copyright: Implement and document
43900         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43901         of copyright year intervals.
43902         Also, document UPDATE_COPYRIGHT_YEAR.
43903         * tests/test-update-copyright.sh: Test it.
43904
43905         update-copyright: convert 2-digit to 4-digit years
43906         * build-aux/update-copyright: Implement and document.
43907         * tests/test-update-copyright.sh: Update.
43908
43909 2009-08-14  Jim Meyering  <meyering@redhat.com>
43910
43911         test-exclude: avoid coreutils "make check" failure
43912         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43913         just as in test-argmatch.c.
43914
43915 2009-08-13  Eric Blake  <ebb9@byu.net>
43916
43917         test-dup2: fix bad assumption
43918         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43919         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43920
43921         test-version-etc: fix CRLF portability issue
43922         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43923         recognize \r.
43924         * tests/test-argp-version-etc-1.sh: Likewise.
43925
43926         getopt: update client modules
43927         * modules/argp (Depends-on): Use getopt-gnu.
43928         * modules/git-merge-changelog (Depends-on): Likewise.
43929         * modules/long-options (Depends-on): Likewise.
43930         * modules/xstrtol (Depends-on): Likewise.
43931
43932 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43933
43934         * tests/test-version-etc.sh: Don't fail on different
43935         project/version.  Don't fail on CRLF differences.  Rewrite to use
43936         multiple -e instead of multiple sed forks, suggested by Eric Blake
43937         <ebb9@byu.net>.
43938         * tests/test-argp-version-etc-1.sh: Likewise.
43939
43940 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43941
43942         * tests/test-version-etc.sh: Don't fail on different
43943         project/version.
43944
43945 2009-08-12  Bruno Haible  <bruno@clisp.org>
43946
43947         Tests for modules 'getopt-posix', 'getopt-gnu'.
43948         * modules/getopt-posix-tests: New file.
43949         * tests/test-getopt.c: New file.
43950         * tests/test-getopt.h: New file.
43951         * tests/test-getopt_long.h: New file.
43952
43953         New modules 'getopt-posix', 'getopt-gnu'.
43954         * modules/getopt-gnu: New file, renamed from modules/getopt.
43955         * modules/getopt-posix: New file.
43956         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43957         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43958         (gl_GETOPT): Remove macro.
43959         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43960         Disable the test against BSD systems that declare optreset. Test
43961         against mingw bug. Test against lack of support of optional arguments
43962         on many platforms.
43963         * doc/glibc-headers/getopt.texi: Update module name and list of
43964         relevant platforms.
43965         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43966         'getopt-gnu' and more portability problems.
43967         * NEWS: Mention the changes.
43968
43969 2009-08-12  Bruno Haible  <bruno@clisp.org>
43970
43971         Ensure that optarg etc. get declared by <unistd.h>.
43972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43973         AC_USE_SYSTEM_EXTENSIONS.
43974         * modules/getopt (Depends-on): Add 'extensions'.
43975
43976 2009-08-12  Bruno Haible  <bruno@clisp.org>
43977
43978         Avoid test link errors.
43979         * modules/pipe-filter-ii-tests (Makefile.am): Define
43980         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43981         * modules/pipe-filter-gi-tests (Makefile.am): Define
43982         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43984
43985 2009-08-12  Bruno Haible  <bruno@clisp.org>
43986
43987         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43988         gl_GETOPT_SUBSTITUTE before.
43989         (gl_GETOPT): Use it.
43990         * m4/argp.m4 (gl_ARGP): Update.
43991         Reported by Sergey Poznyakoff.
43992
43993         * m4/getopt.m4: Reorder macros.
43994         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43995         (gl_GETOPT_SUBSTITUTE): Remove macro.
43996
43997 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43998
43999         Minor improvement in gitlog-to-changelog
44000
44001         * build-aux/gitlog-to-changelog: New option `--format' makes
44002         output format string configurable.
44003
44004 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44005
44006         Optimize exclude: use hash tables for non-wildcard patterns.
44007
44008         * lib/exclude.c: Include hash.h and mbuiter.h
44009         (struct exclude_pattern, exclude_segment): New data types.
44010         (struct exclude): Rewrite.
44011         (fnmatch_pattern_has_wildcards): New function.
44012         (new_exclude_segment, free_exclude_segment): New functions.
44013         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44014         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44015         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44016         * modules/exclude: Depend on hash and mbuiter.
44017
44018         * modules/exclude-tests: New file.
44019         * tests/test-exclude.c: New file.
44020         * tests/test-exclude1.sh: New file.
44021         * tests/test-exclude2.sh: New file.
44022         * tests/test-exclude3.sh: New file.
44023         * tests/test-exclude4.sh: New file.
44024         * tests/test-exclude5.sh: New file.
44025         * tests/test-exclude6.sh: New file.
44026         * tests/test-exclude7.sh: New file.
44027
44028 2009-08-12  Bruno Haible  <bruno@clisp.org>
44029
44030         Ensure that getopt() gets declared by <unistd.h>.
44031         * lib/unistd.in.h: Conditionally include getopt.h.
44032         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44033         Set GNULIB_UNISTD_H_GETOPT.
44034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44035         GNULIB_UNISTD_H_GETOPT.
44036         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44037
44038 2009-08-12  Bruno Haible  <bruno@clisp.org>
44039
44040         Clarify logic.
44041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44042         gl_replace_getopt instead of GETOPT_H.
44043
44044 2009-08-12  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/getopt.m4: Add comments.
44047
44048 2009-08-12  Bruno Haible  <bruno@clisp.org>
44049
44050         Disable multithread support by default on Cygwin 1.5.x.
44051         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44052         set gl_use_threads=no if not specified otherwise.
44053
44054 2009-08-11  Bruno Haible  <bruno@clisp.org>
44055
44056         Avoid compilation error on NetBSD 5.0.
44057         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44058         * tests/test-stdio.c: Likewise.
44059         * tests/test-stdlib.c: Likewise.
44060         * tests/test-string.c: Likewise.
44061         * tests/test-unistd.c: Likewise.
44062         Reported by Greg Troxel <gdt@ir.bbn.com>
44063         at <https://savannah.gnu.org/support/?106973>.
44064
44065 2009-08-11  Bruno Haible  <bruno@clisp.org>
44066
44067         * modules/dup2-tests (Depends-on): Remove close.
44068
44069         Undo 2009-07-19 commit.
44070         * modules/acl-tests (Depends-on): Remove close.
44071         * modules/binary-io-tests (Depends-on): Likewise.
44072         * modules/closein-tests (Depends-on): Likewise.
44073         * modules/flock-tests (Depends-on): Likewise.
44074         * modules/fsync-tests (Depends-on): Likewise.
44075         * modules/lseek-tests (Depends-on): Likewise.
44076         * modules/pipe-tests (Depends-on): Likewise.
44077         * modules/posix_spawn-tests (Depends-on): Likewise.
44078         * modules/posix_spawnp-tests (Depends-on): Likewise.
44079         * modules/stat-time-tests (Depends-on): Likewise.
44080         * modules/yesno-tests (Depends-on): Likewise.
44081
44082 2009-08-10  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44085
44086 2009-08-10  Bruno Haible  <bruno@clisp.org>
44087
44088         Fix a gcc warning.
44089         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44090
44091 2009-08-10  Bruno Haible  <bruno@clisp.org>
44092
44093         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44094         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44095         not only the first time.
44096         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44097         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44098         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44099         is 1, not only the the first time.
44100
44101 2009-08-10  Bruno Haible  <bruno@clisp.org>
44102
44103         Make it possible to use module 'gethostname' without module 'close'.
44104         * lib/unistd.in.h (close): Evoke a link error only if
44105         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44107         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44108         * modules/unistd (Makefile.am): Substitute
44109         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44110         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44111         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44113         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44114         * modules/sys_ioctl (Makefile.am): Substitute
44115         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44116         * modules/socket (configure.ac): On native Windows, set
44117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44119         Reported by Sam Steingold <sds@gnu.org>.
44120
44121 2009-08-10  Bruno Haible  <bruno@clisp.org>
44122
44123         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44124         * modules/ioctl (configure.ac): Likewise.
44125
44126 2009-08-10  Bruno Haible  <bruno@clisp.org>
44127
44128         Avoid collision between gnulib wrapper and libintl wrapper.
44129         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44130         already defined in intl/printf.c.
44131         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44132         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44133
44134 2009-08-09  Bruno Haible  <bruno@clisp.org>
44135
44136         Make <sys/select.h> really self-contained, also on Solaris 10.
44137         * lib/sys_select.in.h: Include <string.h>.
44138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44139         Solaris 10 problem.
44140         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44141         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44142         Reported by Jim Meyering.
44143
44144 2009-08-09  Bruno Haible  <bruno@clisp.org>
44145
44146         Avoid warnings from 'aclocal' that are due to a use of macro name
44147         AM_XGETTEXT_OPTION that is not defined in automake.
44148         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44149         automake.
44150         * modules/error (configure.ac): Likewise.
44151         * modules/propername (configure.ac): Likewise.
44152         * modules/vasprintf (configure.ac): Likewise.
44153         * modules/verror (configure.ac): Likewise.
44154         * modules/xprintf (configure.ac): Likewise.
44155         * modules/xvasprintf (configure.ac): Likewise.
44156
44157 2009-08-08  Bruno Haible  <bruno@clisp.org>
44158
44159         Avoid compilation error in C++ mode.
44160         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44161         Reported by Sam Steingold <sds@gnu.org>.
44162
44163 2009-08-08  Bruno Haible  <bruno@clisp.org>
44164
44165         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44166         for the various Unix platforms.
44167         * doc/posix-headers/limits.texi: Update platforms list regarding
44168         HOST_NAME_MAX.
44169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44170
44171 2009-08-07  Jim Meyering  <meyering@redhat.com>
44172
44173         selinux-at: fix typo in a comment
44174         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44175         Spotted by Paolo Bonzini.
44176
44177         selinux-at: remove redundant m4 code, add documentation
44178         * modules/selinux-at (configure.ac): Remove redundant code.
44179         LIB_SELINUX is already set via the dependent module, selinux-h.
44180         (Include): Add quotes around selinux-at.h.
44181         * lib/selinux-at.h: Add documentation.
44182         Reported by Bruno Haible in
44183         http://marc.info/?l=gnulib-bug&m=124958988300749
44184
44185 2009-08-07  Bruno Haible  <bruno@clisp.org>
44186
44187         Avoid link error on MacOS X 10.3 and 10.4.
44188         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44189         on non-ELF systems.
44190         * lib/argp-pv.c (argp_program_version): Likewise.
44191         Reported by Simon Josefsson.
44192
44193 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44194
44195         * tests/test-version-etc.sh: Use $EXEEXT.
44196
44197 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44198
44199         update-copyright: update documentation to point to maint.mk
44200         * build-aux/update-copyright: Here.
44201
44202 2009-08-06  Jim Meyering  <meyering@redhat.com>
44203
44204         maint.mk: support update-copyright-local
44205         * top/maint.mk (update-copyright-local): Define place-holder.
44206         (update-copyright): Depend on $(update-copyright-local).
44207
44208 2009-08-06  Jim Meyering  <meyering@redhat.com>
44209
44210         selinux-at: new module
44211         Initially written for coreutils, this module will soon be
44212         used by findutils, too.
44213         * MODULES.html.sh [Misc]: Add selinux-at.
44214         * lib/selinux-at.h: New file, from coreutils.
44215         * lib/selinux-at.c: Likewise.
44216         * modules/selinux-at: Likewise.
44217         (License): Change from LGPL to GPL, since it depends
44218         on the GPL'd openat module.
44219
44220         doc: update README
44221         * README: Remove references to cogito.
44222         Remove cvs-repo-updating instructions from 2007.
44223         Don't imply that CVS is better if you have limited disk space.
44224
44225 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44226
44227         update-copyright: support C-style comments
44228         * build-aux/update-copyright: Implement and document.
44229         * tests/test-update-copyright.sh: Test.
44230
44231 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44232
44233         update-copyright: support omitted "(C)"
44234         * build-aux/update-copyright: Implement and document.  Also,
44235         allow variable whitespace before "(C)".
44236         * tests/test-update-copyright.sh: Test.
44237
44238 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44239
44240         update-copyright: don't trip on non-FSF copyright statements
44241         * build-aux/update-copyright: Fix so that the first correctly
44242         formatted FSF copyright statement is recognized no matter what
44243         appears before it.  Update documentation.
44244         * tests/test-update-copyright.sh: Test that.
44245
44246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44247
44248         update-copyright: clean up code a little
44249         * build-aux/update-copyright: Append "_re" to the name of any
44250         variable holding a regular expression.
44251         Replace "old" and "new" with "stmt" in variable names.
44252         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44253         handled correctly.
44254         Format code more consistently.
44255
44256 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44257
44258         update-copyright-tests: improve portability
44259         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44260         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44261
44262 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44263
44264         update-copyright: support @copyright{} and &copy;
44265         * build-aux/update-copyright: Implement and document.
44266         * tests/test-update-copyright.sh: Test.
44267
44268 2009-08-04  Jim Meyering  <meyering@redhat.com>
44269
44270         update-copyright-tests: correctly test EOL=\r\n handling
44271         * tests/test-update-copyright.sh: Put \r at the end of some lines
44272         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44273
44274         maint.mk: make update-copyright exclusion list more configurable
44275         * top/maint.mk (update-copyright): Default to excluding COPYING,
44276         but allow an override, in case someone does want to update that file.
44277
44278         maint.mk: don't update copyright date in COPYING
44279         * top/maint.mk (update-copyright): Exclude COPYING.
44280
44281         maint.mk: add a copyright-updating rule
44282         * top/maint.mk (update-copyright): New rule.
44283         Derived from coreutils/Makefile.am.
44284
44285         update-copyright: rename some variables
44286         * build-aux/update-copyright: Rename a few variables for clarity.
44287         Tweak syntax.  List Joel E. Denny as coauthor.
44288
44289 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44290
44291         update-copyright: fix bug for 2-digit last year and add tests
44292         * build-aux/update-copyright: Fix bug.
44293         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44294         specified.
44295         * modules/update-copyright-tests: New
44296         * tests/test-update-copyright.sh: New.
44297
44298 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44299
44300         update-copyright: handle leading tabs in line prefix
44301         * build-aux/update-copyright: Count leading tabs as 8 spaces
44302         when computing margin.  This helps with the formatting of
44303         ChangeLogs, for example.
44304         Fix documentation a little.
44305
44306 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44307
44308         update-copyright: support EOL=\r\n
44309         * build-aux/update-copyright: Implement that.
44310
44311 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44312
44313         update-copyright: automatically format copyright statements
44314         * build-aux/update-copyright: Implement that.
44315         Also, be a little more predictable and safer by always failing
44316         when the full copyright format is not perfectly recognized as an
44317         unbroken whole.  Discussed at
44318         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44319         Rewrite documentation.
44320
44321 2009-08-03  Bruno Haible  <bruno@clisp.org>
44322
44323         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44324
44325 2009-08-02  Bruno Haible  <bruno@clisp.org>
44326
44327         Tests for module 'uname'.
44328         * modules/uname-tests: New file.
44329         * tests/test-uname.c: New file.
44330
44331         New module 'uname'.
44332         * lib/uname.c: New file.
44333         * m4/uname.m4: New file.
44334         * modules/uname: New file.
44335         * doc/posix-functions/uname.texi: Mention the new module.
44336
44337 2009-08-02  Bruno Haible  <bruno@clisp.org>
44338
44339         Tests for module 'sys_utsname'.
44340         * modules/sys_utsname-tests: New file.
44341         * tests/test-sys_utsname.c: New file.
44342
44343         New module 'sys_utsname'.
44344         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44345         * m4/sys_utsname_h.m4: New file.
44346         * modules/sys_utsname: New file.
44347         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44348
44349 2009-08-02  Bruno Haible  <bruno@clisp.org>
44350
44351         Implicitly initialize the sockets library.
44352         * lib/gethostname.c: Include sockets.h.
44353         (rpl_gethostname): Invoke gl_sockets_startup.
44354         * lib/socket.c: Include sockets.h.
44355         (rpl_socket): Invoke gl_sockets_startup.
44356         * modules/gethostname (Depends-on): Add sockets.
44357         * modules/socket (Depends-on): Likewise.
44358         * tests/test-poll.c: Don't include sockets.h.
44359         (main): Don't invoke gl_sockets_startup.
44360         * tests/test-select.c: Don't include sockets.h.
44361         (main): Don't invoke gl_sockets_startup.
44362
44363 2009-08-02  Bruno Haible  <bruno@clisp.org>
44364
44365         Allow multiple calls to gl_sockets_startup.
44366         * lib/sockets.c (initialized_sockets_version): New variable.
44367         (gl_sockets_startup): Do nothing if already called for this or a higher
44368         version.
44369         (gl_sockets_cleanup): Reset initialized_sockets_version.
44370
44371 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44372
44373         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44374         different project/version.
44375
44376 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44377             Bruno Haible  <bruno@clisp.org>
44378
44379         Tests for module 'pipe-filter-gi'.
44380         * modules/pipe-filter-gi-tests: New file.
44381         * tests/test-pipe-filter-gi1.sh: New file.
44382         * tests/test-pipe-filter-gi1.c: New file.
44383         * tests/test-pipe-filter-gi2.sh: New file.
44384         * tests/test-pipe-filter-gi2-main.c: New file.
44385         * tests/test-pipe-filter-gi2-child.c: New file.
44386
44387         New module 'pipe-filter-gi'.
44388         * lib/pipe-filter-gi.c: New file.
44389         * modules/pipe-filter-gi: New file.
44390
44391 2009-08-02  Bruno Haible  <bruno@clisp.org>
44392             Paolo Bonzini  <bonzini@gnu.org>
44393
44394         Tests for module 'pipe-filter-ii'.
44395         * modules/pipe-filter-ii-tests: New file.
44396         * tests/test-pipe-filter-ii1.sh: New file.
44397         * tests/test-pipe-filter-ii1.c: New file.
44398         * tests/test-pipe-filter-ii2.sh: New file.
44399         * tests/test-pipe-filter-ii2-main.c: New file.
44400         * tests/test-pipe-filter-ii2-child.c: New file.
44401
44402         New module 'pipe-filter-ii'.
44403         * lib/pipe-filter.h: New file.
44404         * lib/pipe-filter-ii.c: New file.
44405         * lib/pipe-filter-aux.h: New file.
44406         * modules/pipe-filter-ii: New file.
44407
44408 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44409
44410         * lib/gc-libgcrypt.c: Change copyright to FSF.
44411         * lib/gc-gnulib.c: Likewise.
44412
44413 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44414
44415         * lib/gethostname.c: Include limits.h.
44416
44417 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44418             Bruno Haible  <bruno@clisp.org>
44419
44420         Ensure HOST_NAME_MAX as part of the gethostname module.
44421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44422         define also HOST_NAME_MAX.
44423         * tests/test-gethostname.c: Include <limits.h>.
44424         (main): Check also HOST_NAME_MAX.
44425         * doc/posix-headers/limits.texi: Document the mingw problem.
44426
44427 2009-08-02  Bruno Haible  <bruno@clisp.org>
44428
44429         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44430         Add comments.
44431
44432 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44433
44434         * lib/gethostname.c: Add Windows wrapper.
44435         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44436         * modules/gethostname: Depend on sys_socket & errno, for also
44437         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44438         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44439
44440 2009-07-31  Jim Meyering  <meyering@redhat.com>
44441
44442         getloadavg: fix symbol name in comment
44443         * lib/getloadavg.c: Correct a typo I introduced when adding
44444         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44445         Matt Kraai spotted the problem.
44446
44447 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44448
44449         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44450         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44451         code also if ! defined N_NAME_POINTER.
44452         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44453         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44454         but the n_name member is a 12-byte array.
44455
44456 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44457
44458         update-copyright: generalize comment handling
44459         * build-aux/update-copyright: Handle copyright statements
44460         within more comment styles.
44461         Document usage.
44462         Report any file with an external copyright holder or parse failure.
44463
44464 2009-07-29  Jim Meyering  <meyering@redhat.com>
44465
44466         mktime: correct setting of REPLACE_MKTIME
44467         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44468
44469         update-copyright: new module
44470         * modules/update-copyright: New file.
44471         * build-aux/update-copyright: New file.
44472         * MODULES.html.sh (maint+release support): Add update-copyright.
44473
44474 2009-07-27  Bruno Haible  <bruno@clisp.org>
44475
44476         Fix compilation error when <ctime> is used and mktime is replaced.
44477         * lib/time.in.h (mktime): New declaration.
44478         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44479         REPLACE_MKTIME instead of defining mktime in config.h.
44480         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44481         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44482         Reported by Ross McFarland <rwmcfa1@neces.com>.
44483
44484 2009-07-27  Bruno Haible  <bruno@clisp.org>
44485
44486         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44487         Reported by Matt Kraai <mkraai@beckman.com>.
44488
44489 2009-07-25  Jim Meyering  <meyering@redhat.com>
44490
44491         maint.mk: avoid warnings about missing files
44492         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44493         diagnostic when .prev-version does not exist.
44494         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44495         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44496         nonexistent cfg.mk.
44497         Suggestions from Simon Josefsson.
44498
44499 2009-07-25  Bruno Haible  <bruno@clisp.org>
44500
44501         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44502         defined as macros. Needed on QNX 6.4.1.
44503         Reported by Matt Kraai <mkraai@beckman.com>.
44504
44505 2009-07-23  Jim Meyering  <meyering@redhat.com>
44506
44507         maint.mk: invoke "make dist" with a working value of XZ_OPT
44508         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44509
44510 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44511
44512         Make fseeko.c compile on QNX.
44513         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44514
44515 2009-07-22  Peter Simons  <simons@cryp.to>
44516
44517         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44518         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44519         * lib/md4.h: Likewise.
44520         * lib/md5.h: Likewise.
44521         * lib/sha1.h: Likewise.
44522         * lib/sha256.h: Likewise.
44523         * lib/sha512.h: Likewise.
44524
44525         tests-sha1: don't assign literal string to 'char *' variable
44526         * tests/test-sha1.c (main): Declare locals with "const" to match
44527         attributes of the right hand side.
44528
44529 2009-07-21  Eric Blake  <ebb9@byu.net>
44530
44531         dup2: fix more mingw problems
44532         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44533         fd to itself.
44534         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44535         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44536         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44537         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44538         care of mingw bugs.
44539
44540 2009-07-21  Jim Meyering  <meyering@redhat.com>
44541
44542         vc-list-files: avoid failure when /bin/sh is dash
44543         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44544         On some Debian based systems, /bin/sh is a symlink to dash, and running
44545         this command would omit the "/" following each 'tests' prefix:
44546           dash -x build-aux/vc-list-files -C . tests
44547         That is because bash and dash work differently:
44548           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44549           bash ok
44550           dash odd
44551
44552 2009-07-21  Eric Blake  <ebb9@byu.net>
44553
44554         dup2-tests: test previous patch
44555         * modules/dup2-tests: New file.
44556         * tests/test-dup2.c: Likewise.
44557         * tests/test-open.c (main): Avoid unspecified behavior.
44558         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44559         test.
44560
44561         dup2: work around mingw and cygwin 1.5 bug
44562         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44564         * modules/unistd (Makefile.am): Substitute it.
44565         * lib/unistd.in.h (dup2): Declare the replacement.
44566         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44567         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44568         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44569         * modules/execute (Depends-on): Add dup2.
44570         * modules/fseterr (Depends-on): Likewise.
44571         * modules/pipe (Depends-on): Likewise.
44572         * modules/posix_spawn-internal (Depends-on): Likewise.
44573
44574 2009-07-21  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/.gitattributes: New file.
44577
44578 2009-07-20  Bruno Haible  <bruno@clisp.org>
44579
44580         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44581         (main): Use it.
44582
44583 2009-07-20  Eric Blake  <ebb9@byu.net>
44584
44585         test-pipe: make a bit more robust.
44586         * tests/test-pipe.c (myerr): Allow error messages regardless of
44587         what we do to stderr.
44588         (test_pipe): Rearrange to avoid deadlock.
44589         (child_main): Try a larger read, to ensure we avoided deadlock.
44590         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44591         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44592         if misused.
44593
44594 2009-07-19  Jim Meyering  <meyering@redhat.com>
44595
44596         fts: avoid false-positive cycle-detection
44597         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44598         for each new command line argument.
44599
44600 2009-07-19  Bruno Haible  <bruno@clisp.org>
44601
44602         Fix build error on mingw with the modules sys_select and unistd.
44603         * modules/acl-tests (Depends-on): Add close.
44604         * modules/binary-io-tests (Depends-on): Likewise.
44605         * modules/closein-tests (Depends-on): Likewise.
44606         * modules/flock-tests (Depends-on): Likewise.
44607         * modules/fsync-tests (Depends-on): Likewise.
44608         * modules/lseek-tests (Depends-on): Likewise.
44609         * modules/pipe-tests (Depends-on): Likewise.
44610         * modules/posix_spawn-tests (Depends-on): Likewise.
44611         * modules/posix_spawnp-tests (Depends-on): Likewise.
44612         * modules/stat-time-tests (Depends-on): Likewise.
44613         * modules/yesno-tests (Depends-on): Likewise.
44614
44615 2009-07-19  Bruno Haible  <bruno@clisp.org>
44616
44617         Unify conditionals.
44618         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44619         macros, not at the compiler macros.
44620         * lib/pipe.c: Likewise.
44621         * lib/execute.c: Likewise.
44622         * lib/spawni.c: Likewise.
44623
44624 2009-07-19  Bruno Haible  <bruno@clisp.org>
44625
44626         Fix handling of closed stdin/stdout/stderr on mingw.
44627         * lib/w32spawn.h: Include unistd.h.
44628         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44629         file descriptor with O_NOINHERIT flag.
44630         (fd_safer_noinherit): New function, based on fd-safer.c.
44631         (dup_safer_noinherit): New function, based on dup-safer.c.
44632         (undup_safer_noinherit): New function.
44633         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44634         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44635         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44636         instead of fd_safer.
44637         * tests/test-pipe.c: Include <windows.h>.
44638         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44639         result.
44640
44641         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44642         from main.
44643         (test_pipe): Pass an extra argument for disambiguation.
44644         (main): Invoke parent_main or child_main.
44645
44646         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44647         consistently.
44648
44649 2009-07-18  Eric Blake  <ebb9@byu.net>
44650
44651         test-pipe: fix mingw build
44652         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44653
44654 2009-07-18  Bruno Haible  <bruno@clisp.org>
44655
44656         * modules/pipe-tests (Makefile.am): Fix typo.
44657
44658 2009-07-18  Eric Blake  <ebb9@byu.net>
44659
44660         error: fix mingw build
44661         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44662         Reported by Bruno Haible.
44663
44664         error: avoid undefined use of stdout
44665         * lib/error.c (error, error_at_line): Check that fd 1 is open
44666         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44667         is handling faults and the close_stdout module wants to report the
44668         detection of closed stdout as an error.
44669
44670 2009-07-17  Eric Blake  <ebb9@byu.net>
44671
44672         pipe: be robust in face of closed fds
44673         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44674         should cause child to misbehave.
44675         * modules/pipe-tests: New module.
44676         * tests/test-pipe.c: New file.
44677         * tests/test-pipe.sh: New file.
44678         Reported by Akim Demaille.
44679
44680 2009-07-14  Bruno Haible  <bruno@clisp.org>
44681
44682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44683         Reported by anonymous kc.
44684
44685 2009-07-07  Jim Meyering  <meyering@redhat.com>
44686
44687         maint.mk: don't look for translatable strings in *.m4 or *.mk
44688         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44689         when searching for translatable strings.
44690
44691 2009-07-05  Jim Meyering  <meyering@redhat.com>
44692
44693         remove superfluous parentheses in STREQ definition
44694         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44695         * lib/getugroups.c (STREQ): Likewise.
44696         * lib/fnmatch.c (STREQ): Likewise.
44697         Spotted by Bruno Haible.
44698
44699 2009-07-04  Jim Meyering  <meyering@redhat.com>
44700
44701         argv-iter: new module
44702         * MODULES.html.sh: Add argv-iter.
44703         * lib/argv-iter.c, lib/argv-iter.h: New files.
44704         * modules/argv-iter: New file.
44705         * modules/argv-iter-tests: New file.
44706         * tests/test-argv-iter.c: Test it.
44707
44708 2009-07-04  Bruno Haible  <bruno@clisp.org>
44709
44710         Fix assertion.
44711         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44712         contains more exact copies of a given entry than file2, leave the extra
44713         copies unpaired rather than aborting.
44714         Reported by Eric Blake.
44715
44716 2009-07-02  Bruno Haible  <bruno@clisp.org>
44717
44718         Speedup git-merge-changelog for git cherry-pick.
44719         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44720         (entries_mapping_get): New function, extracted from compute_mapping.
44721         (entries_mapping_reverse_get): New function.
44722         (compute_mapping): Add a 'full' argument. Return the result in a
44723         'struct entries_mapping'.
44724         (main): Update. Access the mappings through entries_mapping_get.
44725         Reported by Eric Blake.
44726
44727 2009-07-02  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44730         best_i.
44731
44732 2009-07-02  Bruno Haible  <bruno@clisp.org>
44733
44734         Speed up approximate search for matching ChangeLog entries.
44735         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44736         argument. Call fstrcmp_bounded instead of fstrcmp.
44737         (compute_mapping, try_split_merged_entry, main): Update callers.
44738
44739 2009-07-02  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44742
44743 2009-06-30  Bruno Haible  <bruno@clisp.org>
44744
44745         Reduce the number of uc_is_cased calls.
44746         * lib/unicase.h (casing_suffix_context_t): Add
44747         'first_char_except_ignorable' field.
44748         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44749         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44750         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44751         Update initializer.
44752         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44753         case-ignorable characters.
44754         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44755         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44756         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44757         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44758         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44759
44760 2009-06-30  Bruno Haible  <bruno@clisp.org>
44761
44762         Tests for module 'unicase/ignorable'.
44763         * modules/unicase/ignorable-tests: New file.
44764         * tests/unicase/test-ignorable.c: New file, generated by
44765         gen-uni-tables.
44766
44767         Tests for module 'unicase/cased'.
44768         * modules/unicase/cased-tests: New file.
44769         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44770         * tests/unicase/test-predicate-part1.h: New file, derived from
44771         tests/unictype/test-predicate-part1.h.
44772         * tests/unicase/test-predicate-part2.h: New file, same as
44773         tests/unictype/test-predicate-part2.h.
44774
44775         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44776         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44777         (output_casing_properties): New function.
44778         (main): Call it.
44779         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44780         * lib/unicase/cased.c: Include unictype/bitmap.h.
44781         (uc_is_cased): Define through a bitmap lookup.
44782         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44783         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44784         (uc_is_case_ignorable): Define through a bitmap lookup.
44785         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44786         lib/unictype/bitmap.h.
44787         (Depends-on): Add inline. Clean up.
44788         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44789         lib/unictype/bitmap.h.
44790         (Depends-on): Add inline. Clean up.
44791         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44792         recognition.
44793         * tests/unicase/test-u16-tolower.c (main): Likewise.
44794         * tests/unicase/test-u32-tolower.c (main): Likewise.
44795
44796 2009-06-30  Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44799         * lib/unicase/u16-casemap.c: Likewise.
44800         * lib/unicase/u32-casemap.c: Likewise.
44801
44802 2009-06-29  Bruno Haible  <bruno@clisp.org>
44803
44804         Define u32_casefold as a wrapper around u32_ct_casefold.
44805         * lib/unicase/u32-casefold.c: Update.
44806         * modules/unicase/u32-casefold (Depends-on): Add
44807         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44808         unicase/empty-suffix-context. Clean up.
44809
44810         Define u16_casefold as a wrapper around u16_ct_casefold.
44811         * lib/unicase/u16-casefold.c: Update.
44812         * modules/unicase/u16-casefold (Depends-on): Add
44813         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44814         unicase/empty-suffix-context. Clean up.
44815
44816         Define u8_casefold as a wrapper around u8_ct_casefold.
44817         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44818         * lib/unicase/u8-casefold.c: Update.
44819         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44820         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44821
44822         Define u32_totitle as a wrapper around u32_ct_totitle.
44823         * lib/unicase/u32-totitle.c: Update.
44824         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44825         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44826
44827         Define u16_totitle as a wrapper around u16_ct_totitle.
44828         * lib/unicase/u16-totitle.c: Update.
44829         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44830         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44831
44832         Define u8_totitle as a wrapper around u8_ct_totitle.
44833         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44834         functions.
44835         (FUNC): Delegate to U_CT_TOTITLE.
44836         * lib/unicase/u8-totitle.c: Update.
44837         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44838         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44839
44840         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44841         invocation.
44842         * modules/unicase/u32-tolower (Depends-on): Add
44843         unicase/empty-prefix-context, unicase/empty-suffix-context.
44844
44845         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44846         invocation.
44847         * modules/unicase/u16-tolower (Depends-on): Add
44848         unicase/empty-prefix-context, unicase/empty-suffix-context.
44849
44850         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44851         * modules/unicase/u8-tolower (Depends-on): Add
44852         unicase/empty-prefix-context, unicase/empty-suffix-context.
44853
44854         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44855         invocation.
44856         * modules/unicase/u32-toupper (Depends-on): Add
44857         unicase/empty-prefix-context, unicase/empty-suffix-context.
44858
44859         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44860         invocation.
44861         * modules/unicase/u16-toupper (Depends-on): Add
44862         unicase/empty-prefix-context, unicase/empty-suffix-context.
44863
44864         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44865         * modules/unicase/u8-toupper (Depends-on): Add
44866         unicase/empty-prefix-context, unicase/empty-suffix-context.
44867
44868         New module 'unicase/u32-ct-casefold'.
44869         * lib/unicase/u32-ct-casefold.c: New file.
44870         * modules/unicase/u32-ct-casefold: New file.
44871
44872         New module 'unicase/u16-ct-casefold'.
44873         * lib/unicase/u16-ct-casefold.c: New file.
44874         * modules/unicase/u16-ct-casefold: New file.
44875
44876         New module 'unicase/u8-ct-casefold'.
44877         * lib/unicase/u8-ct-casefold.c: New file.
44878         * lib/unicase/u-ct-casefold.h: New file, derived from
44879         lib/unicase/u-casefold.h.
44880         * modules/unicase/u8-ct-casefold: New file.
44881
44882         New module 'unicase/u32-ct-totitle'.
44883         * lib/unicase/u32-ct-totitle.c: New file.
44884         * modules/unicase/u32-ct-totitle: New file.
44885
44886         New module 'unicase/u16-ct-totitle'.
44887         * lib/unicase/u16-ct-totitle.c: New file.
44888         * modules/unicase/u16-ct-totitle: New file.
44889
44890         New module 'unicase/u8-ct-totitle'.
44891         * lib/unicase/u8-ct-totitle.c: New file.
44892         * lib/unicase/u-ct-totitle.h: New file, derived from
44893         lib/unicase/u-totitle.h.
44894         * modules/unicase/u8-ct-totitle: New file.
44895
44896         New module 'unicase/u32-ct-tolower'.
44897         * lib/unicase/u32-ct-tolower.c: New file.
44898         * modules/unicase/u32-ct-tolower: New file.
44899
44900         New module 'unicase/u16-ct-tolower'.
44901         * lib/unicase/u16-ct-tolower.c: New file.
44902         * modules/unicase/u16-ct-tolower: New file.
44903
44904         New module 'unicase/u8-ct-tolower'.
44905         * lib/unicase/u8-ct-tolower.c: New file.
44906         * modules/unicase/u8-ct-tolower: New file.
44907
44908         New module 'unicase/u32-ct-toupper'.
44909         * lib/unicase/u32-ct-toupper.c: New file.
44910         * modules/unicase/u32-ct-toupper: New file.
44911
44912         New module 'unicase/u16-ct-toupper'.
44913         * lib/unicase/u16-ct-toupper.c: New file.
44914         * modules/unicase/u16-ct-toupper: New file.
44915
44916         New module 'unicase/u8-ct-toupper'.
44917         * lib/unicase/u8-ct-toupper.c: New file.
44918         * modules/unicase/u8-ct-toupper: New file.
44919
44920         Add context arguments to u*_casemap functions.
44921         * lib/unicase/unicasemap.h: Include unicase.h.
44922         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44923         suffix_context arguments.
44924         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44925         functions.
44926         (FUNC): Add prefix_context and suffix_context arguments. Use
44927         uc_is_cased and uc_is_case_ignorable.
44928         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44929         * lib/unicase/u16-casemap.c: Likewise.
44930         * lib/unicase/u32-casemap.c: Likewise.
44931         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44932         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44933         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44934         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44935         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44936         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44937
44938         New module 'unicase/u32-suffix-context'.
44939         * lib/unicase/u32-suffix-context.c: New file.
44940         * modules/unicase/u32-suffix-context: New file.
44941
44942         New module 'unicase/u16-suffix-context'.
44943         * lib/unicase/u16-suffix-context.c: New file.
44944         * modules/unicase/u16-suffix-context: New file.
44945
44946         New module 'unicase/u8-suffix-context'.
44947         * lib/unicase/u8-suffix-context.c: New file.
44948         * lib/unicase/u-suffix-context.h: New file.
44949         * modules/unicase/u8-suffix-context: New file.
44950
44951         New module 'unicase/empty-suffix-context'.
44952         * lib/unicase/empty-suffix-context.c: New file.
44953         * modules/unicase/empty-suffix-context: New file.
44954
44955         New module 'unicase/u32-prefix-context'.
44956         * lib/unicase/u32-prefix-context.c: New file.
44957         * modules/unicase/u32-prefix-context: New file.
44958
44959         New module 'unicase/u16-prefix-context'.
44960         * lib/unicase/u16-prefix-context.c: New file.
44961         * modules/unicase/u16-prefix-context: New file.
44962
44963         New module 'unicase/u8-prefix-context'.
44964         * lib/unicase/u8-prefix-context.c: New file.
44965         * lib/unicase/u-prefix-context.h: New file.
44966         * lib/unicase/context.h: New file.
44967         * modules/unicase/u8-prefix-context: New file.
44968
44969         New module 'unicase/empty-prefix-context'.
44970         * lib/unicase/empty-prefix-context.c: New file.
44971         * modules/unicase/empty-prefix-context: New file.
44972
44973         New module 'unicase/ignorable'.
44974         * lib/unicase/ignorable.c: New file.
44975         * modules/unicase/ignorable: New file.
44976
44977         New module 'unicase/cased'.
44978         * lib/unicase/caseprop.h: New file.
44979         * lib/unicase/cased.c: New file.
44980         * modules/unicase/cased: New file.
44981
44982         New functions for case mapping of substrings.
44983         * lib/unicase.h (casing_prefix_context_t): New type.
44984         (unicase_empty_prefix_context): New variable.
44985         (u8_casing_prefix_context, u16_casing_prefix_context,
44986         u32_casing_prefix_context, u8_casing_prefixes_context,
44987         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44988         declarations.
44989         (casing_suffix_context_t): New type.
44990         (unicase_empty_suffix_context): New variable.
44991         (u8_casing_suffix_context, u16_casing_suffix_context,
44992         u32_casing_suffix_context, u8_casing_suffixes_context,
44993         u16_casing_suffixes_context, u32_casing_suffixes_context,
44994         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44995         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44996         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44997         declarations.
44998
44999 2009-06-28  Jim Meyering  <meyering@redhat.com>
45000
45001         boostrap: indent only with spaces
45002         * build-aux/bootstrap: Indent only with spaces, never TABs.
45003
45004         bootstrap: split long lines
45005         * build-aux/bootstrap: Keep line length < 80.
45006
45007         bootstrap: sync from coreutils
45008         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45009         just as autoreconf does.  Verify a list of prerequisite
45010         package-name,version-number pairs if defined in bootstrap.conf.
45011         Refer to README-prereq, if prerequisites are not satisfied.
45012
45013 2009-06-27  Eric Blake  <ebb9@byu.net>
45014
45015         tests: add test for bogus NULL definition
45016         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45017         * tests/test-stdlib.c: Likewise.
45018         * tests/test-string.c: Likewise.
45019         * tests/test-locale.c: Likewise.
45020         * tests/test-unistd.c: Likewise.
45021         * modules/stdio-tests (Depends-on): Add verify.
45022         * modules/stdlib-tests (Depends-on): Likewise.
45023         * modules/string-tests (Depends-on): Likewise.
45024         * modules/locale-tests (Depends-on): Likewise.
45025         * modules/unistd-tests (Depends-on): Likewise.
45026
45027 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45028
45029         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45030         self-explaining comment.
45031         * m4/selinux-selinux-h: Update serial.
45032         (gl_LIBSELINUX): New macro, adding a warning for missing development
45033         packages to code extracted from...
45034         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45035         Add warning for missing development packages here, too.
45036
45037 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45038
45039         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45040
45041 2009-06-25  Eric Blake  <ebb9@byu.net>
45042
45043         version-etc: fix regression
45044         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45045         gcc.
45046         (version_etc): Use it, to catch bugs with trailing NULL.
45047         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45048         (version_etc_va): Fix logic bug.
45049         * modules/version-etc-tests: Add test.
45050         * tests/test-version-etc.c: New file.
45051         * tests/test-version-etc.sh: Likewise.
45052
45053 2009-06-25  Sam Steingold  <sds@gnu.org>
45054
45055         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45056         mbtowc declaration.
45057
45058 2009-06-25  Eric Blake  <ebb9@byu.net>
45059
45060         fpurge: migrate into <stdio.h>
45061         * lib/fpurge.h: Delete...
45062         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45063         * lib/fpurge.c (fpurge): Change declaring header.
45064         * modules/fpurge (Files): Drop deleted file.
45065         (Depends-on): Add stdio.
45066         (configure.ac): Set witness.
45067         * modules/stdio (Makefile.am): Support fpurge macros.
45068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45069         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45070         * lib/fflush.c: Update client.
45071         * tests/test-fpurge.c: Likewise.
45072         * NEWS: Mention the change.
45073
45074 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45075
45076         * lib/argp-version-etc.c (program_authors): Add const
45077         qualifier.
45078         * lib/version-etc.c: Fix typos in the comments.
45079         * modules/argp-version-etc: Depends on version-etc.
45080
45081 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45082
45083         argp-version-etc: new module.
45084
45085         * lib/argp-version-etc.c: New file.
45086         * lib/argp-version-etc.h: New file.
45087         * modules/argp-version-etc: New file.
45088         * modules/argp-version-etc-tests: New file.
45089         * tests/test-argp-version-etc.c: New test.
45090         * tests/test-argp-version-etc-1.sh: New test.
45091
45092 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45093
45094         Provide additional interfaces and documentation for version-etc
45095         module.
45096
45097         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45098         interfaces.
45099         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45100         prototypes.
45101
45102 2009-06-24  Bruno Haible  <bruno@clisp.org>
45103
45104         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45105         HAVE_LIB${NAME} macro.
45106         Reported by Sam Steingold <sds@gnu.org>.
45107
45108 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45109
45110         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45111         needed.
45112
45113 2009-06-21  Bruno Haible  <bruno@clisp.org>
45114
45115         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45116         work.
45117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45118         together with LIB${NAME}, LTLIB${NAME}.
45119         Reported by Sam Steingold <sds@gnu.org>.
45120
45121 2009-06-20  Jim Meyering  <meyering@redhat.com>
45122
45123         tests: make sc_require_test_exit_idiom more generic
45124         * top/maint.mk (Exit_witness_file): New overridable variable.
45125         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45126         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45127
45128 2009-06-19  Jim Meyering  <meyering@redhat.com>
45129
45130         hash: reverse order of src/dst parameters in an internal interface
45131         * lib/hash.c (transfer_entries): Reverse order of parameters to
45132         put DST before SRC.  Adjust callers.
45133
45134         tests: test-hash: avoid wholesale duplication
45135         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45136         Instead, use a loop and add a single conditional.
45137
45138         tests: test-hash: allow seed selection via a command line argument
45139         * tests/test-hash.c (get_seed): New function.
45140         (main): Use it.
45141
45142 2009-06-19  Eric Blake  <ebb9@byu.net>
45143
45144         hash: avoid memory leak on allocation failure
45145         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45146         failure.  Factor repeated algorithm...
45147         (transfer_entries): ...into new helper routine.
45148         (hash_delete): React to hash_rehash return value.
45149
45150         hash: reduce memory pressure in hash_rehash no-op case
45151         * lib/hash.c (next_prime): Avoid overflow.
45152         (hash_initialize): Factor bucket size computation...
45153         (compute_bucket_size): ...into new helper function.
45154         (hash_rehash): Use new function and open coding to reduce memory
45155         pressure, and avoid a memory leak in USE_OBSTACK code.
45156         Reported by Jim Meyering.
45157
45158 2009-06-18  Eric Blake  <ebb9@byu.net>
45159
45160         hash: make rotation more obvious
45161         * modules/hash (Depends-on): Add bitrotate and stdint.
45162         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45163         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45164         (SIZE_MAX): Rely on headers for definition.
45165         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45166         (raw_hasher): Use rotr_sz.
45167         Suggested by Jim Meyering.
45168
45169         hash: fix memory leak in last patch
45170         * lib/hash.c (hash_rehash): Avoid memory leak.
45171
45172         hash: avoid no-op rehashing
45173         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45174
45175         hash: provide default callback functions
45176         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45177         (hash_initialize): Use them as defaults.
45178         * tests/test-hash.c (main): Test this.
45179
45180         hash: minor optimization
45181         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45182         when possible.
45183         (hash_initialize): Document this promise.
45184         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45185         * tests/test-hash.c (hash_compare_strings): Test this.
45186
45187 2009-06-18  Bruno Haible  <bruno@clisp.org>
45188
45189         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45190         going to be replaced anyway.
45191
45192 2009-06-18  Bruno Haible  <bruno@clisp.org>
45193
45194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45195         in one place.
45196         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45197         be replaced anyway.
45198
45199 2009-06-18  Eric Blake  <ebb9@byu.net>
45200
45201         hash: check for resize before insertion
45202         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45203         threshold before insertion, so that a pathological hash_rehash
45204         that fills every bucket can still trigger another rehash.
45205
45206 2009-06-18  Jim Meyering  <meyering@redhat.com>
45207
45208         hash-tests: add a loop around the small tests
45209         * tests/test-hash.c (main): Repeat small tests with selected
45210         small initial table sizes.
45211
45212 2009-06-17  Eric Blake  <ebb9@byu.net>
45213
45214         hash: minor cleanups
45215         * lib/hash.h (hash_entry): Make opaque, by moving...
45216         * lib/hash.c (hash_entry): ...here.
45217         (hash_insert): Clarify restrictions on what can be inserted.
45218         (hash_get_next): Clarify when it is safe to remove an element
45219         during traversal.
45220         (check_tuning): Skip verification when tuning is known safe.
45221         (hash_initialize): Clarify restrictions on tuning.
45222
45223 2009-06-17  Jim Meyering  <jim@meyering.net>
45224         and Eric Blake  <ebb9@byu.net>
45225
45226         hash-tests: new module
45227         * modules/hash-tests: New file.
45228         * tests/test-hash.c: New file.
45229
45230 2009-06-17  Eric Blake  <ebb9@byu.net>
45231
45232         strstr-simple: document new module
45233         * MODULES.html.sh: Document new module.
45234
45235         strstr, strcasestr: replace on platforms with broken memchr
45236         * modules/strstr: Split into...
45237         * modules/strstr-simple: ...new module that does not care about
45238         performance, but does care about glibc bug.
45239         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45240         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45241         if platform memchr is broken, per Debian bug 521737.
45242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45243         memchr.
45244         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45245         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45246         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45247         * modules/mountlist (Depends-on): Add strstr-simple.
45248         * modules/gen-uni-tables (Depends-on): Likewise.
45249         * modules/argz (Depends-on): Add strstr.
45250
45251 2009-06-17  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/posix_spawn-internal (Depends-on): Add errno.
45254
45255 2009-06-17  Bruno Haible  <bruno@clisp.org>
45256
45257         Define missing ESTALE on Interix 3.5.
45258         * lib/errno.in.h (ESTALE): Assign a value if missing.
45259         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45260         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45261         missing.
45262         * doc/posix-headers/errno.texi: Mention the Interix bug.
45263         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45264
45265 2009-06-15  Eric Blake  <ebb9@byu.net>
45266
45267         memchr, memchr2: add valgrind exception
45268         * lib/memchr.valgrind: New file.
45269         * lib/memchr2.valgrind: New file.
45270         * modules/memchr (Files): Distribute valgrind file.
45271         * modules/memchr2 (Files): Likewise.
45272
45273         docs: memchr is no longer obsolete
45274         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45275         * lib/string.in.h (memchr): Simplify logic.
45276
45277 2009-06-14  Jim Meyering  <meyering@redhat.com>
45278
45279         link-follow: fix the "checking..." message to not mention trailing slash
45280         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45281         never considered trailing slashes.
45282
45283 2009-06-14  Bruno Haible  <bruno@clisp.org>
45284
45285         * m4/memchr.m4: Mention also the bug on IA-64.
45286         * doc/posix-functions/memchr.texi: Likewise.
45287
45288 2009-06-12  Eric Blake  <ebb9@byu.net>
45289
45290         memchr: detect broken x86_64 and alpha implementations
45291         * modules/memchr-tests (Depends-on): Move mmap detection...
45292         * modules/memchr (Depends-on): ...here.
45293         (configure.ac): Set indicator.
45294         * lib/string.in.h (memchr): Declare replacement.
45295         * modules/string (Makefile.am): Trigger replacement.
45296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45297         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45298         bugs.
45299         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45300         * modules/getpagesize (License): Relax license.
45301
45302 2009-06-11  Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/idpriv.h: Add more references.
45305
45306 2009-06-08  Bruno Haible  <bruno@clisp.org>
45307
45308         Tests for module 'idpriv-droptemp'.
45309         * modules/idpriv-droptemp-tests: New file.
45310         * tests/test-idpriv-droptemp.sh: New file.
45311         * tests/test-idpriv-droptemp.su.sh: New file.
45312         * tests/test-idpriv-droptemp.c: New file.
45313
45314         New module 'idpriv-droptemp'.
45315         * lib/idpriv-droptemp.c: New file.
45316         * modules/idpriv-droptemp: New file.
45317
45318 2009-06-08  Bruno Haible  <bruno@clisp.org>
45319
45320         Tests for module 'idpriv-drop'.
45321         * modules/idpriv-drop-tests: New file.
45322         * tests/test-idpriv-drop.sh: New file.
45323         * tests/test-idpriv-drop.su.sh: New file.
45324         * tests/test-idpriv-drop.c: New file.
45325
45326         New module 'idpriv-drop'.
45327         * lib/idpriv.h: New file.
45328         * lib-idpriv-drop.c: New file.
45329         * m4/idpriv.m4: New file.
45330         * modules/idpriv-drop: New file.
45331
45332 2009-06-08  Bruno Haible  <bruno@clisp.org>
45333
45334         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45335         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45336         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45337         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45338         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45339         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45341
45342 2009-06-08  Eric Blake  <ebb9@byu.net>
45343
45344         test-strstr: use memory fence, when possible
45345         * tests/test-strstr.c (main): Use memory fence, in order to be
45346         more likely to trigger Debian bug 521737.
45347         * modules/strstr-tests (Files): Pull in additional files.
45348
45349         memchr: no longer obsolete, for wider field testing
45350         * modules/memchr (Status, Notice): Delete, this module is no
45351         longer obsolete.
45352         * modules/vasnprintf (Depends-on): Add memchr.
45353
45354 2009-06-07  Jim Meyering  <meyering@redhat.com>
45355
45356         hash: declare some functions with the warn_unused_result attribute
45357         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45358
45359 2009-06-07  Bruno Haible  <bruno@clisp.org>
45360
45361         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45362         Reported by Eric Blake.
45363
45364 2009-06-06  Eric Blake  <ebb9@byu.net>
45365
45366         test-alignof: fix typo with long double
45367         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45368         compiler error.
45369
45370 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45371
45372         Escape non-texinfo { and }s.
45373         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45374         markup error.
45375
45376 2009-06-04  Jim Meyering  <meyering@redhat.com>
45377
45378         gitlog-to-changelog: don't infloop on an empty commit log
45379         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45380         Reported by Boris Petersen <transacid@centerim.org>.
45381
45382 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45383
45384         version-etc: extend for packagers
45385         Add three new configure options, intended for packagers:
45386           --with-packager="packager name"
45387           --with-packager-version="packager-specific version"
45388           --with-packager-bug-reports="packager bug reporting"
45389         An example with coreutils:
45390           $ ./configure \
45391             --with-packager=Gentoo \
45392             --with-packager-bug-report=http://bugs.gentoo.org/ \
45393             --with-packager-version="patchset 1.6"
45394           $ ./src/ls --version | head -n2
45395           ls (GNU coreutils) 7.1-dirty
45396           Packaged by Gentoo (patchset 1.6)
45397         Note that the bug reporting info via --help doesn't show up because
45398         coreutils uses its own custom emit_bug_reporting_address() implementation
45399         in src/system.h.  If it didn't, it'd look like:
45400           $ ./src/ls --help | tail -n4
45401           Report bugs to <bug-coreutils@gnu.org>.
45402           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45403           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45404           General help using GNU software: <http://www.gnu.org/gethelp/>.
45405         * lib/version-etc.c: Print new information, if provided.
45406         * m4/version-etc.m4: New file.
45407         * modules/version-etc (Files): Add m4/version-etc.m4.
45408         (configure.ac): Add gl_VERSION_ETC.
45409
45410 2009-05-31  Bruno Haible  <bruno@clisp.org>
45411
45412         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45413         and 'int64_t'.
45414         * modules/alignof-tests (Dependencies): Add stdint.
45415         Reported by Eric Blake.
45416
45417 2009-05-31  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45420         restriction due to compiler bugs.
45421         Reported by Eric Blake.
45422
45423 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45424             Bruno Haible  <bruno@clisp.org>
45425
45426         Fix test-alignof failure.
45427         * lib/alignof.h (alignof_slot): New macro.
45428         (alignof_type): New macro, with the same semantics as the previous
45429         'alignof'.
45430         (alignof): Alias to alignof_slot.
45431         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45432         check that the results are usable as constant expressions.
45433
45434 2009-05-31  Bruno Haible  <bruno@clisp.org>
45435
45436         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45437         * tests/test-memchr.c (main): Check that memchr does not read past the
45438         first occurrence of the byte.
45439         * tests/test-strstr.c (main): Update comment.
45440         Suggested by Eric Blake.
45441
45442 2009-05-30  Bruno Haible  <bruno@clisp.org>
45443
45444         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45445         detail how to use dumpbin.
45446         Reported by David Byron <dbyron@dbyron.com>.
45447
45448 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45449
45450         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45451
45452 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45453
45454         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45455
45456 2009-05-28  Bruno Haible  <bruno@clisp.org>
45457
45458         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45459         build-aux/ files.
45460
45461 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45462
45463         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45464
45465 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45466
45467         * gnulib-tool (sed_transform_main_lib_file)
45468         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45469         regexps.
45470
45471 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45472
45473         * tests/test-strstr.c: Add another self-test.
45474         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45475         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45476
45477 2009-05-23  Bruno Haible  <bruno@clisp.org>
45478
45479         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45480         change.
45481
45482 2009-05-21  Bruno Haible  <bruno@clisp.org>
45483
45484         Simplify use of mode_t varargs.
45485         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45486         uses 'mode_t' or 'int'.
45487         * lib/openat.c (openat): Likewise.
45488         * lib/open-safer.c (open_safer): Likewise.
45489         * m4/mode_t.m4: New file.
45490         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45491         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45492         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45493         * modules/open (Files): Add m4/mode_t.m4.
45494         * modules/openat (Files): Likewise.
45495         * modules/fcntl-safer (Files): Likewise.
45496         Suggested by Eric Blake.
45497
45498 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45499
45500         * doc/glibc-functions/fallocate.texi: New file.
45501         * doc/gnulib.texi: Include it.
45502
45503 2009-05-21  Eric Blake  <ebb9@byu.net>
45504             Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45507         invocations.
45508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45509
45510 2009-05-21  Eric Blake  <ebb9@byu.net>
45511             Bruno Haible  <bruno@clisp.org>
45512
45513         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45514         include_next. Fix of 2008-11-20 commit.
45515         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45516         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45517         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45518         NEXT_MATH_H.
45519         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45520         instead of NEXT_MATH_H.
45521
45522 2009-05-21  Bruno Haible  <bruno@clisp.org>
45523
45524         Avoid redefinition warnings for SIZE_MAX.
45525         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45526         Reported by Simon Josefsson.
45527
45528 2009-05-21  Bruno Haible  <bruno@clisp.org>
45529
45530         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45531         AC_CACHE_VAL.
45532
45533 2009-05-20  Bruno Haible  <bruno@clisp.org>
45534
45535         Make zeroptr.h work on mingw.
45536         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45537         mprotect.
45538         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45539         * modules/memchr2-tests (configure.ac): Likewise.
45540         * modules/memcmp-tests (configure.ac): Likewise.
45541         * modules/memmem-tests (configure.ac): Likewise.
45542         * modules/memrchr-tests (configure.ac): Likewise.
45543         Reported by Simon Josefsson.
45544
45545 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45546
45547         * tests/test-glob.c: Include string.h for strcmp prototype.
45548
45549 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45550
45551         * modules/getdelim (Depends-on): Add explicit stdint, although it
45552         was implicitly already pulled in via realloc-posix.
45553         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45554
45555 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45556
45557         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45558         G. Christensen" <tgc@jupiterrise.com>.
45559         * m4/sys_socket_h.m4: Check for sa_family_t.
45560         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45561         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45562         * tests/test-sys_socket.c: Check that sa_family_t works.
45563
45564 2009-05-18  Eric Blake  <ebb9@byu.net>
45565
45566         maint.mk: allow gnulib_dir in VPATH build
45567         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45568
45569 2009-05-15  Jim Meyering  <meyering@redhat.com>
45570
45571         maint.mk: Give gnulib_dir a default definition.
45572         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45573         Thus, most packages no longer need to specify this variable in cfg.mk
45574
45575 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45576
45577         rename.m4: fix typos that would make non-mingw cross-configure fail
45578         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45579
45580 2009-05-13  Eric Blake  <ebb9@byu.net>
45581
45582         mmap-anon: avoid out-of-order autoconf expansion
45583         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45584         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45585         * modules/memchr-tests (Depends-on): Add extensions.
45586         * modules/memchr2-tests (Depends-on): Add extensions.
45587         * modules/memcmp-tests (Depends-on): Add extensions.
45588         * modules/memmem-tests (Depends-on): Add extensions.
45589         * modules/memrchr-tests (Depends-on): Add extensions.
45590
45591 2009-05-13  Bruno Haible  <bruno@clisp.org>
45592
45593         Make some tests ISO C 99 compliant.
45594         * tests/zerosize-ptr.h: New file.
45595         * tests/test-memchr.c: Include zerosize-ptr.h.
45596         (main): Use a zero-size object pointer instead of NULL.
45597         * tests/test-memchr2.c: Include zerosize-ptr.h.
45598         (main): Use a zero-size object pointer instead of NULL.
45599         * tests/test-memcmp.c: Include zerosize-ptr.h.
45600         (main): Use a zero-size object pointer instead of NULL.
45601         * tests/test-memmem.c: Include zerosize-ptr.h.
45602         (main): Use a zero-size object pointer instead of NULL.
45603         * tests/test-memrchr.c: Include zerosize-ptr.h.
45604         (main): Use a zero-size object pointer instead of NULL.
45605         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45606         m4/mmap-anon.m4.
45607         (Depends-on): Add getpagesize.
45608         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45609         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45610         m4/mmap-anon.m4.
45611         (Depends-on): Add getpagesize.
45612         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45613         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45614         m4/mmap-anon.m4.
45615         (Depends-on): Add getpagesize.
45616         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45617         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45618         m4/mmap-anon.m4.
45619         (Depends-on): Add getpagesize.
45620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45621         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45622         m4/mmap-anon.m4.
45623         (Depends-on): Add getpagesize.
45624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45625
45626 2009-05-12  Bruno Haible  <bruno@clisp.org>
45627
45628         Tests for module 'alignof'.
45629         * modules/alignof-tests: New file.
45630         * tests/test-alignof.c: New file.
45631
45632 2009-05-12  Bruno Haible  <bruno@clisp.org>
45633
45634         Fix alignof macro.
45635         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45636         vendor compilers that are always correct.
45637
45638 2009-05-12  Bruno Haible  <bruno@clisp.org>
45639
45640         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45641         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45642         not whether its fully works.
45643
45644 2009-05-12  Bruno Haible  <bruno@clisp.org>
45645
45646         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45647
45648 2009-05-12  Jim Meyering  <meyering@redhat.com>
45649
45650         * top/maint.mk: Adjust backslash alignment.
45651
45652 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45653
45654         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45655
45656 2009-05-11  Eric Blake  <ebb9@byu.net>
45657
45658         argp: avoid undefined behavior
45659         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45660         macros.
45661
45662 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45663
45664         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45665         user.name to prevent git commit from complaining.
45666
45667 2009-05-10  Bruno Haible  <bruno@clisp.org>
45668
45669         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45670         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45671         it rewrites every file name only once.
45672         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45673
45674 2009-05-08  Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45677         instead of 'max'.
45678
45679 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45680
45681         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45682         sockaddr_storage test.
45683
45684 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45685
45686         * modules/sys_socket (Makefile.am): Substitute
45687         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45688         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45689         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45690         * tests/test-sys_socket.c: Check sockaddr_storage.
45691
45692 2009-05-08  Bruno Haible  <bruno@clisp.org>
45693
45694         New module 'alignof'.
45695         * lib/alignof.h: New file.
45696         * modules/alignof: New file.
45697
45698 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45699             Bruno Haible  <bruno@clisp.org>
45700
45701         Fix test-file-has-acl on FreeBSD.
45702         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45703         mask is implicitly added.
45704         * tests/test-file-has-acl.c: Include <signal.h>.
45705         (main): Terminate the test after 5 seconds.
45706         * modules/acl-tests (configure.ac): Check for alarm function.
45707
45708 2009-05-04  Bruno Haible  <bruno@clisp.org>
45709
45710         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45711         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45712         * modules/errno (configure.ac): Drop AC_REQUIRE.
45713         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45714         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45715
45716 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45717
45718         * modules/glob-tests: New module.
45719         * tests/test-glob.c: Add.
45720
45721 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45722
45723         * modules/fnmatch-tests: New module.
45724         * tests/test-fnmatch.c: Add.
45725
45726 2009-05-04  Eric Blake  <ebb9@byu.net>
45727
45728         maint: make the new no-submodule-changes rule VPATH-safe
45729         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45730
45731 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45732             Bruno Haible  <bruno@clisp.org>
45733
45734         acl: Fix infinite loop on FreeBSD.
45735         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45736         of return value from acl_get_entry.
45737         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45738         Likewise.
45739
45740 2009-05-03  Bruno Haible  <bruno@clisp.org>
45741
45742         * lib/acl-internal.h (acl_entries): Clarify return value.
45743         * lib/acl_entries.c (acl_entries): Likewise.
45744
45745 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45746
45747         Bug fix in acl module.
45748         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45749
45750 2009-05-03  Bruno Haible  <bruno@clisp.org>
45751
45752         Create gperf-generated file in the source dir, not in the build dir.
45753         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45754         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45755         * modules/unicase/locale-language (unicase/locale-languages.h):
45756         Likewise.
45757         * modules/unicase/special-casing (unicase/special-casing-table.h):
45758         Likewise.
45759         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45760         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45761         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45762         Reported by Ralf Wildenhues.
45763
45764 2009-05-03  Bruno Haible  <bruno@clisp.org>
45765
45766         * modules/fnmatch (Description, configure.ac): Taken from
45767         fnmatch-posix.
45768         * modules/fnmatch-posix: Turn into a symbolic reference to the
45769         'fnmatch' module, and deprecate.
45770         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45771
45772 2009-05-03  Bruno Haible  <bruno@clisp.org>
45773
45774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45775         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45776         Reported by Ralf Wildenhues.
45777
45778 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45779
45780         * m4/fnmatch.m4: Fix fnmatch re-define.
45781
45782 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45783
45784         priv-set: new module and tests; adapt write-any-file
45785         * lib/priv-set.c: New file.
45786         * lib/priv-set.h: New file.
45787         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45788         * lib/write-any-file.c: Simplify by using priv-set module.
45789         * m4/priv-set.m4: New file.
45790         * modules/priv-set: New file.
45791         * modules/unlinkdir: Add dependency on priv-set module.
45792         * modules/write-any-file: Likewise.
45793
45794         Tests for module 'priv-set'.
45795         * modules/priv-set-tests: New file.
45796         * tests/test-priv-set.c: New file.
45797
45798 2009-05-03  Jim Meyering  <meyering@redhat.com>
45799             Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45802         use the converted UTF-8 variant of the name instead.
45803
45804 2009-05-03  Jim Meyering  <meyering@redhat.com>
45805
45806         tests: tighten some getdate tests
45807         * tests/test-getdate.c (main): Tighten tests: require equality,
45808         not just greater than.  Set TZ envvar to UTC0.
45809
45810 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45811
45812         getdate: correctly interpret "next monday" when run on a Monday
45813         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45814         that e.g., "next tues" (when run on a tuesday) results in a date
45815         that is one week in the future, and not today's date.
45816         I.e., add a week when the wday is the same as the current one.
45817         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45818         and earlier by Martin Bernreuther and Jan Minář.
45819         * tests/test-getdate.c (main): Check that "next DAY" is always in
45820         the future and that "last DAY" is always in the past.
45821
45822 2009-05-02  Jim Meyering  <meyering@redhat.com>
45823
45824         build: ensure that a release build fails when a submodule is unclean
45825         * top/maint.mk (no-submodule-changes): New rule.
45826         (alpha beta major): Depend on it.
45827
45828 2009-05-02  Bruno Haible  <bruno@clisp.org>
45829
45830         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45831         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45832         shell variable gl_fnmatch_required to detect which variant is
45833         requested.
45834         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45835         gl_FUNC_FNMATCH_POSIX.
45836         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45837         exclude fnmatch-posix.
45838
45839 2009-05-02  Bruno Haible  <bruno@clisp.org>
45840
45841         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45842         * modules/mbsrtowcs (License): Change to LGPLv2+.
45843         * modules/strnlen1 (License): Likewise.
45844         Reported by Simon Josefsson.
45845
45846 2009-05-02  Bruno Haible  <bruno@clisp.org>
45847
45848         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45849         "cross".
45850         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45851         gnulib-tool was called with option --source-base=lib.
45852
45853 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45854
45855         Use automake *-local hooks without commands, for extensibility.
45856         * modules/localcharset (Makefile.am): Rename install-exec-local
45857         rule to install-exec-localcharset, and make it a prerequisite of
45858         install-exec-local.  Likewise, rename the uninstall-local rule to
45859         uninstall-localcharset, and make it a prerequisite of the former.
45860
45861 2009-05-01  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45864         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45865         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45867         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45868         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45869         m4/locale-zh.m4, m4/codeset.m4.
45870
45871         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45872         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45873         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45874         m4/locale-zh.m4.
45875
45876         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45877         REPLACE_WCRTOMB if mbstate_t must be replaced.
45878         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45879         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45880
45881 2009-05-01  Bruno Haible  <bruno@clisp.org>
45882
45883         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45884         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45885         dngettext, dcngettext, textdomain, bindtextdomain,
45886         bind_textdomain_codeset): Undefine before redefining.
45887
45888 2009-04-30  Bruno Haible  <bruno@clisp.org>
45889
45890         Fix bug introduced on 2009-04-25.
45891         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45892         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45893         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45894         is defined.
45895         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45896         is defined.
45897         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45898         is defined.
45899         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45900
45901 2009-04-28  Bruno Haible  <bruno@clisp.org>
45902
45903         Comment tweaks.
45904         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45905         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45906         * lib/unicase.h (u*_casexfrm): Likewise.
45907         Reported by Paolo Bonzini.
45908
45909 2009-04-28  Bruno Haible  <bruno@clisp.org>
45910
45911         Fix a compilation error.
45912         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45913         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45914         Reported by Jim Meyering.
45915
45916 2009-04-27  Bruno Haible  <bruno@clisp.org>
45917
45918         New module 'libunistring'.
45919         * modules/libunistring: New file.
45920         * m4/libunistring.m4: New file.
45921         * MODULES.html.sh (Unicode string functions): Add it.
45922
45923 2009-04-27  Eric Blake  <ebb9@byu.net>
45924
45925         maint.mk: allow package-specific header to provide <config.h>
45926         * top/maint.mk (sc_require_config_h): New variable.
45927         (sc_require_config_h, sc_require_config_h_first): Use it.
45928
45929 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45930
45931         * top/maint.mk (sc_avoid_if_before_free): Except
45932         useless-if-before-free script.
45933
45934 2009-04-27  Eric Blake  <ebb9@byu.net>
45935
45936         maintainer-makefile: depend on all required helper scripts
45937         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45938         useless-if-before-free.
45939         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45940         version, rather than assuming gnulib checkout is available.
45941         Reported by Simen Josefsson.
45942
45943 2009-04-26  Bruno Haible  <bruno@clisp.org>
45944
45945         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45947         "../" or "..".
45948
45949 2009-04-26  Bruno Haible  <bruno@clisp.org>
45950
45951         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45952         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45953         AC_LIB_HAVE_LINKFLAGS.
45954
45955 2009-04-26  Bruno Haible  <bruno@clisp.org>
45956
45957         Simplify calling convention of u*_conv_from_encoding.
45958         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45959         u32_conv_from_encoding): Expect a resultbuf argument and return the
45960         result directly as a pointer.
45961         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45962         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45963         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45964         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45965         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45966         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45967         Update.
45968         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45969         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45970         * lib/vasnprintf.c (VASNPRINTF): Update.
45971         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45972         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45973         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45974         * NEWS: Mention the change.
45975
45976 2009-04-26  Bruno Haible  <bruno@clisp.org>
45977
45978         Simplify calling convention of u*_conv_to_encoding.
45979         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45980         u32_conv_to_encoding): Expect a resultbuf argument and return the
45981         result directly as a pointer.
45982         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45983         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45984         freeing scaled_offsets if mem_iconveha failed.
45985         * lib/unicase/u-casexfrm.h (FUNC): Update.
45986         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45987         * lib/vasnprintf.c (VASNPRINTF): Update.
45988         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45989         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45990         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45991         * NEWS: Mention the change.
45992
45993 2009-04-26  Bruno Haible  <bruno@clisp.org>
45994
45995         Avoid test failures on AIX and OSF/1.
45996         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45997         malloc(0).
45998         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45999         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46000         Likewise.
46001         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46002         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46003         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46004         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46005         * doc/posix-functions/malloc.texi: Document the portability problem
46006         related to malloc(0).
46007
46008 2009-04-26  Bruno Haible  <bruno@clisp.org>
46009
46010         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46011         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46012         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46013
46014 2009-04-25  Bruno Haible  <bruno@clisp.org>
46015
46016         Avoid link error when creating a namespace clean library.
46017         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46018         as macro with arguments if already defined as an alias.
46019         * lib/signbitf.c (gl_signbitf): Don't undefine.
46020         * lib/signbitd.c (gl_signbitd): Don't undefine.
46021         * lib/signbitl.c (gl_signbitl): Don't undefine.
46022
46023 2009-04-25  Jim Meyering  <meyering@redhat.com>
46024
46025         vc-list-files: fix another quoting bug
46026         * build-aux/vc-list-files: Avoid sed backslash expansion
46027         of pathological directory names.
46028
46029 2009-04-25  Eric Blake  <ebb9@byu.net>
46030
46031         vc-list-files: fix shell quoting error
46032         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46033         timestamp.
46034
46035 2009-04-25  Jim Meyering  <meyering@redhat.com>
46036
46037         vc-list-files: restore lost functionality with subdir argument
46038         * build-aux/vc-list-files: When given a non-"." sub-directory
46039         argument, substitute the $dir/ prefix back onto each resulting name.
46040         Otherwise, coreutils' root_tests check would fail.
46041
46042 2009-04-24  Eric Blake  <ebb9@byu.net>
46043
46044         vc-list-files: ignore git symlinks
46045         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46046         than ls-files, to ignore git symlinks.
46047
46048         maint.mk: import improvements from m4
46049         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46050         (move_if_change): Delete unused macro.
46051         (news-date-check, vc-diff-check): Support VPATH builds.
46052         (announcement): Likewise.  Split --bootstrap-tools list...
46053         (boostrap-tools): ...into separate list, which can be overridden
46054         in cfg.mk.
46055         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46056         requiring dependency on useless-if-before-free module.
46057         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46058         Support VPATH builds.
46059
46060 2009-04-24  Jim Meyering  <meyering@redhat.com>
46061
46062         maint.mk: remove coreutils-specific rules and variables
46063         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46064         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46065         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46066
46067         maint.mk: remove obsolete rule
46068         * top/maint.mk (rel-check): Remove rule.
46069         (WGET, WGETFLAGS): Remove now-unused variables.
46070
46071 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46072
46073         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46074         consistency.
46075
46076         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46077         '$(PATH_SEPARATOR)' instead of ':'.
46078
46079 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46080
46081         * lib/getopt1.c (main): Use 'const' for static array.
46082
46083 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46084
46085         * top/maint.mk: Sync with coreutils.
46086         * NEWS: Explain incompatibilities.
46087
46088 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46089             Bruno Haible  <bruno@clisp.org>
46090
46091         Fix cross-compilation results.
46092         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46093         statement, as third argument of AC_TRY_RUN.
46094         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46095         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46096         Likewise.
46097         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46098         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46099         Likewise.
46100         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46101         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46102         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46103
46104 2009-04-20  Bruno Haible  <bruno@clisp.org>
46105
46106         Avoid test failure on mingw.
46107         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46108
46109 2009-04-20  Bruno Haible  <bruno@clisp.org>
46110
46111         Avoid compilation error on mingw.
46112         * modules/localename-tests (Depends-on): Add locale.
46113
46114 2009-04-19  Bruno Haible  <bruno@clisp.org>
46115
46116         Support for building a shared library on Windows platforms.
46117         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46118         (main): Test the presence of UNINORM_NFC here.
46119         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46120         (main): Test the presence of UNINORM_NFD here.
46121         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46122         (main): Test the presence of UNINORM_NFKC here.
46123         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46124         (main): Test the presence of UNINORM_NFKD here.
46125
46126 2009-04-19  Bruno Haible  <bruno@clisp.org>
46127
46128         Avoid a compiler warning.
46129         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46130         Change type of variable 'sequence'.
46131
46132 2009-04-19  Bruno Haible  <bruno@clisp.org>
46133
46134         * modules/configmake (Makefile.am): When the contents of configmake.h
46135         does not change, arrange to preserve its modification time.
46136
46137 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46138
46139         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46140         gettext domain.
46141
46142 2009-04-16  Jim Meyering  <meyering@redhat.com>
46143
46144         useless-if-before-free: improve conversion code
46145         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46146         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46147
46148 2009-04-14  Bruno Haible  <bruno@clisp.org>
46149
46150         * modules/fcntl (Depends-on): Add extensions.
46151         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46152
46153 2009-04-12  Ben Pfaff  <blp@gnu.org>
46154
46155         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46156         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46157
46158 2009-03-20  Ben Pfaff  <blp@gnu.org>
46159
46160         Make rename replace existing destinations on Windows.
46161         * m4/rename.m4: Add test for Mingw.
46162         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46163         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46164         * doc/posix-functions/rename.texi: Document.
46165
46166 2009-04-10  Bruno Haible  <bruno@clisp.org>
46167
46168         New include file "iconveh.h".
46169         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46170         * lib/striconveh.h: Include it.
46171         (enum iconv_ilseq_handler): Remove definition.
46172         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46173         striconveh.h.
46174         * lib/striconveha.c: Include striconveh.h.
46175         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46176         * modules/striconveh (Files): Add lib/iconveh.h.
46177         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46178         lib/striconveh.h.
46179
46180 2009-04-10  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/uniconv.h: Update comment.
46183
46184 2009-04-10  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46187         always.
46188         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46189         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46190         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46191         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46192         "unistring-notinline.h", so that the function gets defined always.
46193         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46194         * lib/unistr/u8-uctomb.c: Likewise.
46195         * lib/unistr/u16-mbtouc.c: Likewise.
46196         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46197         * lib/unistr/u16-uctomb.c: Likewise.
46198         * lib/unistr/u32-mbtouc.c: Likewise.
46199         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46200         * lib/unistr/u32-uctomb.c: Likewise.
46201
46202 2009-04-10  Bruno Haible  <bruno@clisp.org>
46203
46204         Mark 'utime' obsolete.
46205         * modules/utime (Status, Notice): New sections.
46206         Suggested by Jim Meyering.
46207
46208         Fix cross-compile guess for utime test.
46209         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46210         autoconf.
46211         * doc/posix-functions/utime.texi: Give more precisions.
46212         Reported by Jan <ipif@ymail.com>.
46213
46214 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46215
46216         filevercmp: correct today's change
46217         * lib/filevercmp.c: Also handle coreutils' test inputs.
46218         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46219
46220         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46221         for reporting it.
46222         * lib/filevercmp.c: Special handle for "", "." and "..".
46223         * tests/test-filevercmp.c: Enlarge the set suite.
46224
46225 2009-04-07  Jim Meyering  <meyering@redhat.com>
46226
46227         useless-if-before-free: show how to remove braced useless free, too
46228         * build-aux/useless-if-before-free: still only in a comment, though.
46229
46230 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46231
46232         maint.mk: import changes to syntax-check macros from coreutils
46233         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46234         Use them in the relevant macros.
46235
46236 2009-04-06  Bruno Haible  <bruno@clisp.org>
46237
46238         Fix unportable use of bit-fields.
46239         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46240         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46241         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46242
46243 2009-04-06  Bruno Haible  <bruno@clisp.org>
46244
46245         Avoid test failures on AIX and OSF/1.
46246         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46247         that malloc(0) = NULL.
46248         * tests/unicase/test-u8-tolower.c (check): Likewise.
46249         * tests/unicase/test-u8-totitle.c (check): Likewise.
46250         * tests/unicase/test-u8-toupper.c (check): Likewise.
46251         * tests/unicase/test-u16-casefold.c (check): Likewise.
46252         * tests/unicase/test-u16-tolower.c (check): Likewise.
46253         * tests/unicase/test-u16-totitle.c (check): Likewise.
46254         * tests/unicase/test-u16-toupper.c (check): Likewise.
46255         * tests/unicase/test-u32-casefold.c (check): Likewise.
46256         * tests/unicase/test-u32-tolower.c (check): Likewise.
46257         * tests/unicase/test-u32-totitle.c (check): Likewise.
46258         * tests/unicase/test-u32-toupper.c (check): Likewise.
46259         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46260         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46261         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46262         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46263         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46264         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46265         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46266         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46267         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46268         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46269         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46270         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46271
46272 2009-04-05  Bruno Haible  <bruno@clisp.org>
46273
46274         Work around an autoconf limitation.
46275         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46276         comment line if it would be longer than 3 KB.
46277
46278 2009-04-05  Bruno Haible  <bruno@clisp.org>
46279
46280         Avoid test failure with libiconv-1.13.
46281         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46282         of the expected test results.
46283
46284 2009-04-05  Bruno Haible  <bruno@clisp.org>
46285
46286         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46287         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46288         that it should be installed.
46289
46290 2009-04-05  Bruno Haible  <bruno@clisp.org>
46291
46292         * gnulib-tool: New option --copy-file.
46293         (func_usage): Document it.
46294         (func_dest_tmpfilename): Moved out of func_import.
46295         (func_add_file, func_update_file): New functions, extracted from
46296         func_import.
46297         (func_import): Update.
46298
46299 2009-04-05  Karl Berry  <karl@gnu.org>
46300
46301         * README: prominently mention gnulib-tool.
46302         Rearrange sections so getting the code is near the top.
46303
46304 2009-04-05  Bruno Haible  <bruno@clisp.org>
46305
46306         * lib/unicase.h: Mention u*_cmp2.
46307         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46308         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46309         * lib/unicase/ulc-casecmp.c: Likewise.
46310         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46311         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46312         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46313         unistr/u8-cmp.
46314         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46315         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46316         unistr/u16-cmp.
46317         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46318         unistr/u32-cmp.
46319
46320         * lib/uninorm.h: Mention u*_cmp2.
46321         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46322         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46323         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46324         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46325         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46326         unistr/u8-cmp.
46327         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46328         unistr/u16-cmp.
46329         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46330         unistr/u32-cmp.
46331
46332         New module 'unistr/u32-cmp2'.
46333         * lib/unistr/u32-cmp2.c: New file.
46334         * modules/unistr/u32-cmp2: New file.
46335
46336         New module 'unistr/u16-cmp2'.
46337         * lib/unistr/u16-cmp2.c: New file.
46338         * modules/unistr/u16-cmp2: New file.
46339
46340         New module 'unistr/u8-cmp2'.
46341         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46342         * lib/unistr/u8-cmp2.c: New file.
46343         * lib/unistr/u-cmp2.h: New file.
46344         * modules/unistr/u8-cmp2: New file.
46345
46346 2009-04-05  Bruno Haible  <bruno@clisp.org>
46347
46348         * lib/unictype.h (uc_property_is_valid): New macro.
46349         * tests/unictype/test-pr_byname.c (main): Use it.
46350
46351         * lib/unistr.h: Doc fixes.
46352         * lib/uniconv.h: Doc fixes.
46353         * lib/unictype.h: Doc fixes.
46354
46355 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46356
46357         Port coreutils 7.2 to Solaris 8.
46358
46359         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46360         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46361         for Solaris 8.  This is a bit of a hack, as it means it's the
46362         caller's responsibility to add -lnsl if needed, but most likely it
46363         won't be needed since only getaddrinfo uses this and getaddrinfo
46364         isn't needed on Solaris 8.
46365
46366         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46367         problem to Solaris 8 encountered with coreutils 7.2, which
46368         resulted in a message "fnmatch.c:292: warning: passing argument 4
46369         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46370         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46371
46372 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46373
46374         * m4/ld-version-script.m4: Add FIXME comment.
46375
46376 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46377
46378         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46379         SOVERSION variable.
46380
46381 2009-04-02  Bruno Haible  <bruno@clisp.org>
46382
46383         * Makefile (info, html, dvi, pdf): Combine the rules.
46384         Suggested by Jim Meyering.
46385
46386 2009-04-01  Bruno Haible  <bruno@clisp.org>
46387
46388         * Makefile (info, html, dvi, pdf): New targets.
46389         Reported by Reuben Thomas <rrt@sc3d.org>.
46390
46391 2009-04-01  Bruno Haible  <bruno@clisp.org>
46392
46393         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46394         can be put into PATH.
46395         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46396
46397 2009-04-01  Bruno Haible  <bruno@clisp.org>
46398
46399         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46400
46401 2009-04-01  Bruno Haible  <bruno@clisp.org>
46402
46403         Rename module 'visibility'.
46404         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46405         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46406         * doc/gnulib.texi: Update.
46407         * MODULES.html.sh (Misc): Update.
46408         * NEWS: Mention the change.
46409
46410 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46411
46412         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46413         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46414         Eric Blake <ebb9@byu.net> for review.
46415         * MODULES.html.sh: Add lib-msvc-compat.
46416         * doc/gnulib.texi: Link to new section.
46417         * m4/ld-output-def.m4: New file.
46418         * doc/ld-output-def.texi: New file.
46419
46420 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46421
46422         Rename ld-version-script to lib-symbol-versions.  Suggested by
46423         Bruno Haible <bruno@clisp.org>.
46424         * modules/ld-version-script: Renamed to lib-symbol-versions.
46425         * doc/ld-version-script.texi: Fix module name.
46426         * MODULES.html.sh: Add lib-symbol-versions.
46427
46428 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46429
46430         * modules/u64-tests: New file.
46431         * tests/test-u64.c: New file.
46432
46433 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46434
46435         * MODULES.html.sh: Mention u64.
46436         * modules/u64: New module.
46437         * modules/crypto/sha512: Depend on u64 module instead of providing
46438         u64.h.
46439
46440 2009-03-27  Eric Blake  <ebb9@byu.net>
46441
46442         test-strerror: make debugging EAI_SYSTEM easier
46443         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46444         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46445         failure was EAI_SYSTEM.
46446
46447 2009-03-25  Bruno Haible  <bruno@clisp.org>
46448
46449         Fix a problem with --enable-relocatable on Solaris 7.
46450         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46451         since 2008-02-24.
46452
46453 2009-03-25  Eric Blake  <ebb9@byu.net>
46454
46455         test-sockets: avoid gcc warning
46456         * tests/test-sockets.c (main): Silence compiler warning.
46457
46458 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46459
46460         New modules nproc, pthread, contributed by Glen Lenker.
46461
46462         * MODULES.html.sh: Add pthread, nproc.
46463         * lib/nproc.c: New file.
46464         * lib/nproc.h: New file.
46465         * lib/pthread.in.h: New file.
46466         * m4/pthread.m4: New file.
46467         * modules/nproc: New file.
46468         * modules/pthread: New file.
46469
46470 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46471
46472         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46473         New variable.
46474
46475 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46476
46477         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46478         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46479         * tests/test-filevercmp.c: Add tests for backup suffixes.
46480
46481 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46482
46483         * modules/stdlib (Depends-on): Add stdint, needed when defining
46484         struct random_data on, for example, HP-UX 10.20.  Reported by
46485         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46486
46487 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46488
46489         * lib/readline.c (readline): Call fflush on stdout after printing
46490         prompt.
46491
46492 2009-03-20  Bruno Haible  <bruno@clisp.org>
46493
46494         Remove dependency from 'close' module to -lws2_32 on native Windows.
46495         * lib/close-hook.h: New file.
46496         * lib/close-hook.c: New file.
46497         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46498         w32sock.h.
46499         (_gl_close_fd_maybe_socket): Remove function.
46500         (rpl_close): Invoke execute_all_close_hooks instead of
46501         _gl_close_fd_maybe_socket.
46502         * lib/sockets.c: Include close-hook.h, w32sock.h.
46503         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46504         (close_sockets_hook): New variable.
46505         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46506         (gl_sockets_cleanup): Unregister it.
46507         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46508         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46509         * modules/close-hook: New file.
46510         * modules/close (Files): Remove lib/w32sock.h.
46511         (Depends-on): Add close-hook.
46512         (Link): Remove section.
46513         * modules/sockets (Files): Add lib/w32sock.h.
46514         (Depends-on): Add close-hook.
46515         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46516         invocation.
46517         * NEWS: Mention that LIB_CLOSE is gone.
46518
46519 2009-03-23  Eric Blake  <ebb9@byu.net>
46520
46521         signal-tests: test previous patch
46522         * tests/test-signal.c: New file.
46523         * modules/signal-tests: Likewise.
46524
46525         signal.h: always support 'volatile sig_atomic_t'
46526         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46527         (gl_SIGNAL_H_DEFAULTS): Add a default.
46528         * modules/signal (Makefile.am): Substitute if needed.
46529         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46530         users can blindly add volatile.
46531         * doc/posix-headers/signal.texi (signal.h): Document it.
46532         Reported by Matthew Woehlke.
46533
46534 2009-03-23  Jim Meyering  <meyering@redhat.com>
46535
46536         pathmax: PATH_MAX: use pathconf only when available
46537         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46538         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46539         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46540         This avoids a link failure in a PSP cross-compilation environment
46541         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46542
46543         * lib/vasnprintf.c (divide): Fix typo in comment.
46544
46545 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46546
46547         * gnulib-tool (func_filter_filelist): Fix comment.
46548
46549 2009-03-20  Bruno Haible  <bruno@clisp.org>
46550
46551         Make sockets.h self-contained.
46552         * lib/sockets.c: Include sockets.h first.
46553         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46554
46555 2009-03-19  Eric Blake  <ebb9@byu.net>
46556
46557         doc: mention more functions added in cygwin 1.7.0
46558         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46559         addition.
46560         * doc/posix-functions/log2f.texi: Likewise.
46561
46562 2009-03-19  Jim Meyering  <meyering@redhat.com>
46563
46564         fsusage: avoid syntax error due to statement-before-declaration
46565         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46566         after all declarations.  Reported by Matthew Woehlke in
46567         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46568
46569 2009-03-18  Eric Blake  <ebb9@byu.net>
46570
46571         build-aux/compile: sync from automake
46572         * build-aux/compile: New file, from automake.
46573         * config/srclist.txt: Mention build-aux/compile.
46574
46575 2009-03-17  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/git-merge-changelog.c: Fix typo in comment.
46578         Reported by Reuben Thomas <rrt@sc3d.org>.
46579
46580 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46581
46582         * m4/regex.m4: update and improve help for
46583         --without-included-regex.
46584
46585 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46586
46587         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46588         failure on missing include files.
46589
46590 2009-03-17  Eric Blake  <ebb9@byu.net>
46591
46592         doc: mention more functions added in cygwin 1.7.0
46593         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46594         addition.
46595         * doc/posix-functions/fwscanf.texi: Likewise.
46596         * doc/posix-functions/swprintf.texi: Likewise.
46597         * doc/posix-functions/swscanf.texi: Likewise.
46598         * doc/posix-functions/vfwprintf.texi: Likewise.
46599         * doc/posix-functions/vfwscanf.texi: Likewise.
46600         * doc/posix-functions/vswprintf.texi: Likewise.
46601         * doc/posix-functions/vswscanf.texi: Likewise.
46602         * doc/posix-functions/vwprintf.texi: Likewise.
46603         * doc/posix-functions/vwscanf.texi: Likewise.
46604         * doc/posix-functions/wcscasecmp.texi: Likewise.
46605         * doc/posix-functions/wcsdup.texi: Likewise.
46606         * doc/posix-functions/wcsftime.texi: Likewise.
46607         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46608         * doc/posix-functions/wprintf.texi: Likewise.
46609         * doc/posix-functions/wscanf.texi: Likewise.
46610         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46611
46612 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46613
46614         maint.mk: really add $(AM_MAKEFLAGS)
46615         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46616         was inadvertently omitted in the last commit.
46617         Spotted by Bruno Haible.
46618
46619         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46620         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46621         $(AM_MAKEFLAGS)' rather than plain `make'.
46622
46623         gnulib-tool: execute $MAKE not make
46624         * gnulib-tool: Default $MAKE to 'make'.
46625         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46626         than make.  Initialize $MAKE in the do-autobuild script.
46627
46628         gnulib-tool: use $MAKE not make in generated files
46629         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46630         make, in generated files.  Initialize $MAKE in the do-autobuild
46631         script.
46632
46633         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46634
46635         GNUmakefile: disable parallelism only for multiple, recursive targets
46636         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46637         additions in the Makefile.
46638         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46639         by Automake.
46640         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46641         are listed on the command line and at least one of them is
46642         listed in $(ALL_RECURSIVE_TARGETS).
46643
46644 2009-03-14  Bruno Haible  <bruno@clisp.org>
46645
46646         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46647         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46648         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46649         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46650         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46651         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46652         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46653         unistr/u8-uctomb.
46654         * modules/unistr/u8-strchr (Depends-on): Likewise.
46655         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46656         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46657         unistr/u16-uctomb.
46658         * modules/unistr/u16-strchr (Depends-on): Likewise.
46659         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46660
46661 2009-03-12  Bruno Haible  <bruno@clisp.org>
46662
46663         Work around select() bug on Interix 3.5.
46664         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46665         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46666         * m4/select.m4: New file.
46667         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46668         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46669         * modules/select (Files): Add m4/select.m4.
46670         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46671         * modules/nanosleep (Depends-on): Add select.
46672         * modules/poll (Depends-on): Likewise.
46673         * doc/posix-functions/select.texi: Mention the Interix bug.
46674         Reported by Markus Duft <mduft@gentoo.org>.
46675
46676         * lib/select.c: Renamed from lib/winsock-select.c.
46677         * modules/select (Files): Add lib/select.c, remove
46678         lib/winsock-select.c.
46679         (configure.ac): Update.
46680
46681 2009-03-12  Jim Meyering  <meyering@redhat.com>
46682
46683         avoid gcc warnings about unused macro definitions
46684         * lib/readtokens.c (STREQ): Remove unused definition.
46685         * lib/xmalloc.c (SIZE_MAX): Likewise.
46686         * lib/openat-die.c (N_): Likewise.
46687         * lib/mountlist.c (SIZE_MAX): Remove definition.
46688         Instead, include <stdint.h>.
46689         * lib/readutmp.c: Likewise.
46690         * modules/readutmp (Depends-on): Add stdint.
46691         * modules/mountlist (Depends-on): Add stdint.
46692         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46693
46694 2009-03-10  Bruno Haible  <bruno@clisp.org>
46695
46696         Tests for module 'mbmemcasecoll'.
46697         * modules/mbmemcasecoll-tests: New file.
46698         * tests/test-mbmemcasecoll1.sh: New file.
46699         * tests/test-mbmemcasecoll2.sh: New file.
46700         * tests/test-mbmemcasecoll3.sh: New file.
46701         * tests/test-mbmemcasecoll.c: New file.
46702
46703         New module 'mbmemcasecoll'.
46704         * lib/mbmemcasecoll.h: New file.
46705         * lib/mbmemcasecoll.c: New file.
46706         * modules/mbmemcasecoll: New file.
46707
46708         * tests/test-mbmemcasecmp.h: New file, extracted from
46709         tests/test-mbmemcasecmp.c.
46710         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46711         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46712         (main): Update.
46713         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46714
46715 2009-03-09  Bruno Haible  <bruno@clisp.org>
46716
46717         Tests for module 'mbmemcasecmp'.
46718         * modules/mbmemcasecmp-tests: New file.
46719         * tests/test-mbmemcasecmp1.sh: New file.
46720         * tests/test-mbmemcasecmp2.sh: New file.
46721         * tests/test-mbmemcasecmp3.sh: New file.
46722         * tests/test-mbmemcasecmp.c: New file.
46723
46724         New module 'mbmemcasecmp'.
46725         * lib/mbmemcasecmp.h: New file.
46726         * lib/mbmemcasecmp.c: New file.
46727         * modules/mbmemcasecmp: New file.
46728
46729 2009-03-09  Bruno Haible  <bruno@clisp.org>
46730
46731         Tests for module 'unicase/ulc-casecoll'.
46732         * modules/unicase/ulc-casecoll-tests: New file.
46733         * tests/unicase/test-ulc-casecoll1.sh: New file.
46734         * tests/unicase/test-ulc-casecoll2.sh: New file.
46735         * tests/unicase/test-ulc-casecoll.c: New file.
46736
46737         New module 'unicase/ulc-casecoll'.
46738         * lib/unicase.h (ulc_casecoll): New declaration.
46739         * lib/unicase/ulc-casecoll.c: New file.
46740         * modules/unicase/ulc-casecoll: New file.
46741
46742         New module 'unicase/ulc-casexfrm'.
46743         * lib/unicase.h (ulc_casexfrm): New declaration.
46744         * lib/unicase/ulc-casexfrm.c: New file.
46745         * modules/unicase/ulc-casexfrm: New file.
46746
46747 2009-03-09  Bruno Haible  <bruno@clisp.org>
46748
46749         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46750         invocations.
46751
46752         * m4/mbscasecmp.m4: Remove file.
46753         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46754         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46755
46756         * m4/mbscasestr.m4: Remove file.
46757         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46758         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46759
46760         * m4/mbschr.m4: Remove file.
46761         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46762         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46763
46764         * m4/mbscspn.m4: Remove file.
46765         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46766         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46767
46768         * m4/mbslen.m4: Remove file.
46769         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46770         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46771
46772         * m4/mbsncasecmp.m4: Remove file.
46773         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46774         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46775
46776         * m4/mbsnlen.m4: Remove file.
46777         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46778         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46779
46780         * m4/mbspbrk.m4: Remove file.
46781         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46782         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46783
46784         * m4/mbspcasecmp.m4: Remove file.
46785         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46786         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46787
46788         * m4/mbsrchr.m4: Remove file.
46789         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46790         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46791
46792         * m4/mbssep.m4: Remove file.
46793         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46794         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46795
46796         * m4/mbsspn.m4: Remove file.
46797         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46798         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46799
46800         * m4/mbsstr.m4: Remove file.
46801         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46802         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46803
46804         * m4/mbstok_r.m4: Remove file.
46805         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46806         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46807
46808         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46809
46810         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46811         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46812
46813         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46814
46815 2009-03-08  Bruno Haible  <bruno@clisp.org>
46816
46817         Tests for module 'unicase/ulc-casecmp'.
46818         * modules/unicase/ulc-casecmp-tests: New file.
46819         * tests/unicase/test-ulc-casecmp1.sh: New file.
46820         * tests/unicase/test-ulc-casecmp2.sh: New file.
46821         * tests/unicase/test-ulc-casecmp.c: New file.
46822
46823         New module 'unicase/ulc-casecmp'.
46824         * lib/unicase.h (ulc_casecmp): New declaration.
46825         * lib/unicase/ulc-casecmp.c: New file.
46826         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46827         'const SRC_UNIT *'.
46828         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46829         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46830         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46831         * modules/unicase/ulc-casecmp: New file.
46832
46833         Tests for module 'unicase/u32-is-cased'.
46834         * modules/unicase/u32-is-cased-tests: New file.
46835         * tests/unicase/test-u32-is-cased.c: New file.
46836
46837         Tests for module 'unicase/u16-is-cased'.
46838         * modules/unicase/u16-is-cased-tests: New file.
46839         * tests/unicase/test-u16-is-cased.c: New file.
46840
46841         Tests for module 'unicase/u8-is-cased'.
46842         * modules/unicase/u8-is-cased-tests: New file.
46843         * tests/unicase/test-u8-is-cased.c: New file.
46844         * tests/unicase/test-is-cased.h: New file.
46845
46846         New module 'unicase/u32-is-cased'.
46847         * lib/unicase/u32-is-cased.c: New file.
46848         * modules/unicase/u32-is-cased: New file.
46849
46850         New module 'unicase/u16-is-cased'.
46851         * lib/unicase/u16-is-cased.c: New file.
46852         * modules/unicase/u16-is-cased: New file.
46853
46854         New module 'unicase/u8-is-cased'.
46855         * lib/unicase/u8-is-cased.c: New file.
46856         * lib/unicase/u-is-cased.h: New file.
46857         * modules/unicase/u8-is-cased: New file.
46858
46859         Tests for module 'unicase/u32-is-casefolded'.
46860         * modules/unicase/u32-is-casefolded-tests: New file.
46861         * tests/unicase/test-u32-is-casefolded.c: New file.
46862
46863         Tests for module 'unicase/u16-is-casefolded'.
46864         * modules/unicase/u16-is-casefolded-tests: New file.
46865         * tests/unicase/test-u16-is-casefolded.c: New file.
46866
46867         Tests for module 'unicase/u8-is-casefolded'.
46868         * modules/unicase/u8-is-casefolded-tests: New file.
46869         * tests/unicase/test-u8-is-casefolded.c: New file.
46870         * tests/unicase/test-is-casefolded.h: New file.
46871
46872         New module 'unicase/u32-is-casefolded'.
46873         * lib/unicase/u32-is-casefolded.c: New file.
46874         * modules/unicase/u32-is-casefolded: New file.
46875
46876         New module 'unicase/u16-is-casefolded'.
46877         * lib/unicase/u16-is-casefolded.c: New file.
46878         * modules/unicase/u16-is-casefolded: New file.
46879
46880         New module 'unicase/u8-is-casefolded'.
46881         * lib/unicase/u8-is-casefolded.c: New file.
46882         * modules/unicase/u8-is-casefolded: New file.
46883
46884         Tests for module 'unicase/u32-is-titlecase'.
46885         * modules/unicase/u32-is-titlecase-tests: New file.
46886         * tests/unicase/test-u32-is-titlecase.c: New file.
46887
46888         Tests for module 'unicase/u16-is-titlecase'.
46889         * modules/unicase/u16-is-titlecase-tests: New file.
46890         * tests/unicase/test-u16-is-titlecase.c: New file.
46891
46892         Tests for module 'unicase/u8-is-titlecase'.
46893         * modules/unicase/u8-is-titlecase-tests: New file.
46894         * tests/unicase/test-u8-is-titlecase.c: New file.
46895         * tests/unicase/test-is-titlecase.h: New file.
46896
46897         New module 'unicase/u32-is-titlecase'.
46898         * lib/unicase/u32-is-titlecase.c: New file.
46899         * modules/unicase/u32-is-titlecase: New file.
46900
46901         New module 'unicase/u16-is-titlecase'.
46902         * lib/unicase/u16-is-titlecase.c: New file.
46903         * modules/unicase/u16-is-titlecase: New file.
46904
46905         New module 'unicase/u8-is-titlecase'.
46906         * lib/unicase/u8-is-titlecase.c: New file.
46907         * modules/unicase/u8-is-titlecase: New file.
46908
46909         Tests for module 'unicase/u32-is-lowercase'.
46910         * modules/unicase/u32-is-lowercase-tests: New file.
46911         * tests/unicase/test-u32-is-lowercase.c: New file.
46912
46913         Tests for module 'unicase/u16-is-lowercase'.
46914         * modules/unicase/u16-is-lowercase-tests: New file.
46915         * tests/unicase/test-u16-is-lowercase.c: New file.
46916
46917         Tests for module 'unicase/u8-is-lowercase'.
46918         * modules/unicase/u8-is-lowercase-tests: New file.
46919         * tests/unicase/test-u8-is-lowercase.c: New file.
46920         * tests/unicase/test-is-lowercase.h: New file.
46921
46922         New module 'unicase/u32-is-lowercase'.
46923         * lib/unicase/u32-is-lowercase.c: New file.
46924         * modules/unicase/u32-is-lowercase: New file.
46925
46926         New module 'unicase/u16-is-lowercase'.
46927         * lib/unicase/u16-is-lowercase.c: New file.
46928         * modules/unicase/u16-is-lowercase: New file.
46929
46930         New module 'unicase/u8-is-lowercase'.
46931         * lib/unicase/u8-is-lowercase.c: New file.
46932         * modules/unicase/u8-is-lowercase: New file.
46933
46934         Tests for module 'unicase/u32-is-uppercase'.
46935         * modules/unicase/u32-is-uppercase-tests: New file.
46936         * tests/unicase/test-u32-is-uppercase.c: New file.
46937
46938         Tests for module 'unicase/u16-is-uppercase'.
46939         * modules/unicase/u16-is-uppercase-tests: New file.
46940         * tests/unicase/test-u16-is-uppercase.c: New file.
46941
46942         Tests for module 'unicase/u8-is-uppercase'.
46943         * modules/unicase/u8-is-uppercase-tests: New file.
46944         * tests/unicase/test-u8-is-uppercase.c: New file.
46945         * tests/unicase/test-is-uppercase.h: New file.
46946
46947         New module 'unicase/u32-is-uppercase'.
46948         * lib/unicase/u32-is-uppercase.c: New file.
46949         * modules/unicase/u32-is-uppercase: New file.
46950
46951         New module 'unicase/u16-is-uppercase'.
46952         * lib/unicase/u16-is-uppercase.c: New file.
46953         * modules/unicase/u16-is-uppercase: New file.
46954
46955         New module 'unicase/u8-is-uppercase'.
46956         * lib/unicase/u8-is-uppercase.c: New file.
46957         * modules/unicase/u8-is-uppercase: New file.
46958
46959         New module 'unicase/u32-is-invariant'.
46960         * lib/unicase/u32-is-invariant.c: New file.
46961         * modules/unicase/u32-is-invariant: New file.
46962
46963         New module 'unicase/u16-is-invariant'.
46964         * lib/unicase/u16-is-invariant.c: New file.
46965         * modules/unicase/u16-is-invariant: New file.
46966
46967         New module 'unicase/u8-is-invariant'.
46968         * lib/unicase/u8-is-invariant.c: New file.
46969         * lib/unicase/invariant.h: New file.
46970         * lib/unicase/u-is-invariant.h: New file.
46971         * modules/unicase/u8-is-invariant: New file.
46972
46973         Tests for module 'unicase/u32-casecoll'.
46974         * modules/unicase/u32-casecoll-tests: New file.
46975         * tests/unicase/test-u32-casecoll.c: New file.
46976
46977         Tests for module 'unicase/u16-casecoll'.
46978         * modules/unicase/u16-casecoll-tests: New file.
46979         * tests/unicase/test-u16-casecoll.c: New file.
46980
46981         Tests for module 'unicase/u8-casecoll'.
46982         * modules/unicase/u8-casecoll-tests: New file.
46983         * tests/unicase/test-u8-casecoll.c: New file.
46984
46985         New module 'unicase/u32-casecoll'.
46986         * lib/unicase/u32-casecoll.c: New file.
46987         * modules/unicase/u32-casecoll: New file.
46988
46989         New module 'unicase/u16-casecoll'.
46990         * lib/unicase/u16-casecoll.c: New file.
46991         * modules/unicase/u16-casecoll: New file.
46992
46993         New module 'unicase/u8-casecoll'.
46994         * lib/unicase/u8-casecoll.c: New file.
46995         * lib/unicase/u-casecoll.h: New file.
46996         * modules/unicase/u8-casecoll: New file.
46997
46998         New module 'unicase/u32-casexfrm'.
46999         * lib/unicase/u32-casexfrm.c: New file.
47000         * modules/unicase/u32-casexfrm: New file.
47001
47002         New module 'unicase/u16-casexfrm'.
47003         * lib/unicase/u16-casexfrm.c: New file.
47004         * modules/unicase/u16-casexfrm: New file.
47005
47006         New module 'unicase/u8-casexfrm'.
47007         * lib/unicase/u8-casexfrm.c: New file.
47008         * lib/unicase/u-casexfrm.h: New file.
47009         * modules/unicase/u8-casexfrm: New file.
47010
47011         Tests for module 'unicase/u32-casecmp'.
47012         * modules/unicase/u32-casecmp-tests: New file.
47013         * tests/unicase/test-u32-casecmp.c: New file.
47014
47015         Tests for module 'unicase/u16-casecmp'.
47016         * modules/unicase/u16-casecmp-tests: New file.
47017         * tests/unicase/test-u16-casecmp.c: New file.
47018
47019         Tests for module 'unicase/u8-casecmp'.
47020         * modules/unicase/u8-casecmp-tests: New file.
47021         * tests/unicase/test-u8-casecmp.c: New file.
47022         * tests/unicase/test-casecmp.h: New file.
47023
47024         New module 'unicase/u32-casecmp'.
47025         * lib/unicase/u32-casecmp.c: New file.
47026         * modules/unicase/u32-casecmp: New file.
47027
47028         New module 'unicase/u16-casecmp'.
47029         * lib/unicase/u16-casecmp.c: New file.
47030         * modules/unicase/u16-casecmp: New file.
47031
47032         New module 'unicase/u8-casecmp'.
47033         * lib/unicase/u8-casecmp.c: New file.
47034         * lib/unicase/u-casecmp.h: New file.
47035         * modules/unicase/u8-casecmp: New file.
47036
47037         Tests for module 'unicase/u32-casefold'.
47038         * modules/unicase/u32-casefold-tests: New file.
47039         * tests/unicase/test-u32-casefold.c: New file.
47040
47041         Tests for module 'unicase/u16-casefold'.
47042         * modules/unicase/u16-casefold-tests: New file.
47043         * tests/unicase/test-u16-casefold.c: New file.
47044
47045         Tests for module 'unicase/u8-casefold'.
47046         * modules/unicase/u8-casefold-tests: New file.
47047         * tests/unicase/test-u8-casefold.c: New file.
47048
47049         New module 'unicase/u32-casefold'.
47050         * lib/unicase/u32-casefold.c: New file.
47051         * modules/unicase/u32-casefold: New file.
47052
47053         New module 'unicase/u16-casefold'.
47054         * lib/unicase/u16-casefold.c: New file.
47055         * modules/unicase/u16-casefold: New file.
47056
47057         New module 'unicase/u8-casefold'.
47058         * lib/unicase/u8-casefold.c: New file.
47059         * lib/unicase/u-casefold.h: New file.
47060         * modules/unicase/u8-casefold: New file.
47061
47062         New module 'unicase/tocasefold'.
47063         * lib/unicase/casefold.h: New file.
47064         * lib/unicase/tocasefold.c: New file.
47065         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47066         * modules/unicase/tocasefold: New file.
47067
47068         Tests for module 'unicase/u32-totitle'.
47069         * modules/unicase/u32-totitle-tests: New file.
47070         * tests/unicase/test-u32-totitle.c: New file.
47071
47072         Tests for module 'unicase/u16-totitle'.
47073         * modules/unicase/u16-totitle-tests: New file.
47074         * tests/unicase/test-u16-totitle.c: New file.
47075
47076         Tests for module 'unicase/u8-totitle'.
47077         * modules/unicase/u8-totitle-tests: New file.
47078         * tests/unicase/test-u8-totitle.c: New file.
47079
47080         New module 'unicase/u32-totitle'.
47081         * lib/unicase/u32-totitle.c: New file.
47082         * modules/unicase/u32-totitle: New file.
47083
47084         New module 'unicase/u16-totitle'.
47085         * lib/unicase/u16-totitle.c: New file.
47086         * modules/unicase/u16-totitle: New file.
47087
47088         New module 'unicase/u8-totitle'.
47089         * lib/unicase/u8-totitle.c: New file.
47090         * lib/unicase/u-totitle.h: New file.
47091         * modules/unicase/u8-totitle: New file.
47092
47093         Tests for module 'unicase/u32-tolower'.
47094         * modules/unicase/u32-tolower-tests: New file.
47095         * tests/unicase/test-u32-tolower.c: New file.
47096
47097         Tests for module 'unicase/u16-tolower'.
47098         * modules/unicase/u16-tolower-tests: New file.
47099         * tests/unicase/test-u16-tolower.c: New file.
47100
47101         Tests for module 'unicase/u8-tolower'.
47102         * modules/unicase/u8-tolower-tests: New file.
47103         * tests/unicase/test-u8-tolower.c: New file.
47104
47105         New module 'unicase/u32-tolower'.
47106         * lib/unicase/u32-tolower.c: New file.
47107         * modules/unicase/u32-tolower: New file.
47108
47109         New module 'unicase/u16-tolower'.
47110         * lib/unicase/u16-tolower.c: New file.
47111         * modules/unicase/u16-tolower: New file.
47112
47113         New module 'unicase/u8-tolower'.
47114         * lib/unicase/u8-tolower.c: New file.
47115         * modules/unicase/u8-tolower: New file.
47116
47117         Tests for module 'unicase/u32-toupper'.
47118         * modules/unicase/u32-toupper-tests: New file.
47119         * tests/unicase/test-u32-toupper.c: New file.
47120
47121         Tests for module 'unicase/u16-toupper'.
47122         * modules/unicase/u16-toupper-tests: New file.
47123         * tests/unicase/test-u16-toupper.c: New file.
47124
47125         Tests for module 'unicase/u8-toupper'.
47126         * modules/unicase/u8-toupper-tests: New file.
47127         * tests/unicase/test-u8-toupper.c: New file.
47128
47129         New module 'unicase/u32-toupper'.
47130         * lib/unicase/u32-toupper.c: New file.
47131         * modules/unicase/u32-toupper: New file.
47132
47133         New module 'unicase/u16-toupper'.
47134         * lib/unicase/u16-toupper.c: New file.
47135         * modules/unicase/u16-toupper: New file.
47136
47137         New module 'unicase/u8-toupper'.
47138         * lib/unicase/u8-toupper.c: New file.
47139         * modules/unicase/u8-toupper: New file.
47140
47141         New module 'unicase/u32-casemap'.
47142         * lib/unicase/u32-casemap.c: New file.
47143         * modules/unicase/u32-casemap: New file.
47144
47145         New module 'unicase/u16-casemap'.
47146         * lib/unicase/u16-casemap.c: New file.
47147         * modules/unicase/u16-casemap: New file.
47148
47149         New module 'unicase/u8-casemap'.
47150         * lib/unicase/unicasemap.h: New file.
47151         * lib/unicase/u8-casemap.c: New file.
47152         * lib/unicase/u-casemap.h: New file.
47153         * modules/unicase/u8-casemap: New file.
47154
47155         New module 'unicase/special-casing'.
47156         * lib/unicase/special-casing.h: New file.
47157         * lib/unicase/special-casing.c: New file.
47158         * lib/unicase/special-casing-table.gperf: New file, generated by
47159         gen-uni-tables.c.
47160         * modules/unicase/special-casing: New file.
47161
47162         Tests for module 'unicase/locale-language'.
47163         * modules/unicase/locale-language-tests: New file.
47164         * tests/unicase/test-locale-language.sh: New file.
47165         * tests/unicase/test-locale-language.c: New file.
47166
47167         New module 'unicase/locale-language'.
47168         * lib/unicase/locale-language.c: New file.
47169         * lib/unicase/locale-languages.gperf: New file.
47170         * modules/unicase/locale-language: New file.
47171
47172         Generate more tables for case conversion and case folding.
47173         * lib/gen-uni-tables.c (SCC_*): New enum items.
47174         (struct special_casing_rule): New type.
47175         (casing_rules, num_casing_rules, allocated_casing_rules): New
47176         variables.
47177         (add_casing_rule, fill_casing_rules): New functions.
47178         (struct casefold_rule): New type.
47179         (casefolding_rules, num_casefolding_rules,
47180         allocated_casefolding_rules): New variables.
47181         (fill_casefolding_rules): New function.
47182         (unicode_casefold): New variable.
47183         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47184         sort_casing_rules, output_casing_rules): New functions.
47185         (main): Accept to more arguments: SpecialCasing.txt and
47186         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47187         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47188         Output mapping for casefolding.
47189
47190         * lib/unicase.h: Include stdbool.h, uninorm.h.
47191         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47192         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47193         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47194         arguments.
47195         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47196         resultp arguments.
47197         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47198         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47199         resultp arguments.
47200         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47201         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47202         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47203         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47204         declarations.
47205         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47206
47207 2009-03-08  Bruno Haible  <bruno@clisp.org>
47208
47209         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47210         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47211         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47212         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47213
47214 2009-03-07  Bruno Haible  <bruno@clisp.org>
47215
47216         Adjust u*_normcmp, u*_normcoll API.
47217         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47218         u16_normcoll, u32_normcoll): Change failure conventions.
47219         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47220         errno and return -1.
47221         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47222
47223 2009-03-07  Bruno Haible  <bruno@clisp.org>
47224
47225         Tests for module 'uninorm/u32-normcoll'.
47226         * modules/uninorm/u32-normcoll-tests: New file.
47227         * tests/uninorm/test-u32-normcoll.c: New file.
47228
47229         Tests for module 'uninorm/u16-normcoll'.
47230         * modules/uninorm/u16-normcoll-tests: New file.
47231         * tests/uninorm/test-u16-normcoll.c: New file.
47232
47233         Tests for module 'uninorm/u8-normcoll'.
47234         * modules/uninorm/u8-normcoll-tests: New file.
47235         * tests/uninorm/test-u8-normcoll.c: New file.
47236
47237 2009-03-07  Bruno Haible  <bruno@clisp.org>
47238
47239         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47240         tests/uninorm/test-u32-normcmp.c.
47241         * tests/uninorm/test-u32-normcmp.c: Include it.
47242         (test_nonascii): New function, extracted from main. Add some more
47243         tests.
47244         (main): Invoke test_ascii and test_nonascii.
47245         * modules/uninorm/u32-normcmp-tests (Files): Add
47246         tests/uninorm/test-u32-normcmp.h.
47247         (Depends-on): Remove uninorm/u32-normcmp.
47248
47249         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47250         tests/uninorm/test-u16-normcmp.c.
47251         * tests/uninorm/test-u16-normcmp.c: Include it.
47252         (test_nonascii): New function, extracted from main. Add some more
47253         tests.
47254         (main): Invoke test_ascii and test_nonascii.
47255         * modules/uninorm/u16-normcmp-tests (Files): Add
47256         tests/uninorm/test-u16-normcmp.h.
47257         (Depends-on): Remove uninorm/u16-normcmp.
47258
47259         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47260         tests/uninorm/test-u8-normcmp.c.
47261         * tests/uninorm/test-u8-normcmp.c: Include it.
47262         (test_nonascii): New function, extracted from main. Add some more
47263         tests.
47264         (main): Invoke test_ascii and test_nonascii.
47265         * modules/uninorm/u8-normcmp-tests (Files): Add
47266         tests/uninorm/test-u8-normcmp.h.
47267         (Depends-on): Remove uninorm/u8-normcmp.
47268
47269 2009-03-07  Bruno Haible  <bruno@clisp.org>
47270
47271         New module 'uninorm/u32-normcoll'.
47272         * lib/uninorm/u32-normcoll.c: New file.
47273         * modules/uninorm/u32-normcoll: New file.
47274
47275         New module 'uninorm/u16-normcoll'.
47276         * lib/uninorm/u16-normcoll.c: New file.
47277         * modules/uninorm/u16-normcoll: New file.
47278
47279         New module 'uninorm/u8-normcoll'.
47280         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47281         declarations.
47282         * lib/uninorm/u8-normcoll.c: New file.
47283         * lib/uninorm/u-normcoll.h: New file.
47284         * modules/uninorm/u8-normcoll: New file.
47285
47286         New module 'uninorm/u32-normxfrm'.
47287         * lib/uninorm/u32-normxfrm.c: New file.
47288         * modules/uninorm/u32-normxfrm: New file.
47289
47290         New module 'uninorm/u16-normxfrm'.
47291         * lib/uninorm/u16-normxfrm.c: New file.
47292         * modules/uninorm/u16-normxfrm: New file.
47293
47294         New module 'uninorm/u8-normxfrm'.
47295         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47296         declarations.
47297         * lib/uninorm/u8-normxfrm.c: New file.
47298         * lib/uninorm/u-normxfrm.h: New file.
47299         * modules/uninorm/u8-normxfrm: New file.
47300
47301 2009-03-07  Bruno Haible  <bruno@clisp.org>
47302
47303         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47304         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47305         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47306
47307 2009-03-07  Bruno Haible  <bruno@clisp.org>
47308
47309         New module 'memxfrm'.
47310         * lib/memxfrm.h: New file.
47311         * lib/memxfrm.c: New file.
47312         * modules/memxfrm: New file.
47313
47314 2009-03-07  Bruno Haible  <bruno@clisp.org>
47315
47316         New module 'memcmp2'.
47317         * lib/memcmp2.h: New file.
47318         * lib/memcmp2.c: New file.
47319         * modules/memcmp2: New file.
47320
47321 2009-03-07  Bruno Haible  <bruno@clisp.org>
47322
47323         Tests for module 'uninorm/decomposing-form'.
47324         * modules/uninorm/decomposing-form-tests: New file.
47325         * tests/uninorm/test-decomposing-form.c: New file.
47326
47327         New module 'uninorm/decomposing-form'.
47328         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47329         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47330         Add 'decomposing_variant' field.
47331         * lib/uninorm/decomposing-form.c: New file.
47332         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47333         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47334         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47335         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47336         * modules/uninorm/decomposing-form: New file.
47337         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47338         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47339
47340 2009-03-07  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47343         strings.
47344
47345 2009-03-06  Bruno Haible  <bruno@clisp.org>
47346
47347         Tests for module 'uninorm/u32-normcmp'.
47348         * tests/uninorm/test-u32-normcmp.c: New file.
47349         * modules/uninorm/u32-normcmp-tests: New file.
47350
47351         Tests for module 'uninorm/u16-normcmp'.
47352         * tests/uninorm/test-u16-normcmp.c: New file.
47353         * modules/uninorm/u16-normcmp-tests: New file.
47354
47355         Tests for module 'uninorm/u8-normcmp'.
47356         * tests/uninorm/test-u8-normcmp.c: New file.
47357         * modules/uninorm/u8-normcmp-tests: New file.
47358
47359         New module 'uninorm/u32-normcmp'.
47360         * lib/uninorm/u32-normcmp.c: New file.
47361         * modules/uninorm/u32-normcmp: New file.
47362
47363         New module 'uninorm/u16-normcmp'.
47364         * lib/uninorm/u16-normcmp.c: New file.
47365         * modules/uninorm/u16-normcmp: New file.
47366
47367         New module 'uninorm/u8-normcmp'.
47368         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47369         declarations.
47370         * lib/uninorm/u8-normcmp.c: New file.
47371         * lib/uninorm/u-normcmp.h: New file.
47372         * modules/uninorm/u8-normcmp: New file.
47373
47374 2009-03-06  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47377         Reported by Eric Blake.
47378
47379 2009-03-06  Eric Blake  <ebb9@byu.net>
47380             Bruno Haible  <bruno@clisp.org>
47381
47382         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47383         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47384         condition.
47385         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47386         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47387         condition.
47388         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47389
47390 2009-03-06  Eric Blake  <ebb9@byu.net>
47391
47392         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47393         to avoid compiler warnings.
47394         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47395
47396 2009-03-05  Bruno Haible  <bruno@clisp.org>
47397
47398         * tests/test-ftell.c (main): Disable test beyond end of file on
47399         FreeMiNT.
47400         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47401
47402 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47403
47404         * lib/filevercmp.c: Move hidden files up in ordering.
47405         * tests/test-filevercmp.c: Add tests for hidden files.
47406
47407 2009-03-04  Bruno Haible  <bruno@clisp.org>
47408
47409         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47410         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47411         AM_CFLAGS.
47412         Reported by Simon Josefsson.
47413
47414 2009-03-03  Bruno Haible  <bruno@clisp.org>
47415
47416         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47417         Reported by Simon Josefsson.
47418
47419         * doc/ld-version-script.texi: Update node reference.
47420
47421 2009-03-03  Bruno Haible  <bruno@clisp.org>
47422
47423         * modules/visibility (License): Change to 'unlimited'.
47424         Suggested by Simon Josefsson.
47425
47426 2009-03-03  Jim Meyering  <meyering@redhat.com>
47427
47428         unlinkdir: cannot_unlink_dir may modify process state
47429         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47430         it's neither thread-safe nor appropriate for use in a library.
47431
47432 2009-03-03  Eric Blake  <ebb9@byu.net>
47433
47434         test-closein: silence test under Darwin
47435         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47436         care if it dies from EPIPE or EBADF.
47437
47438 2009-03-03  Bruno Haible  <bruno@clisp.org>
47439
47440         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47441         earlier.
47442         * doc/visibility.texi: Fix @node and @section.
47443
47444 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47445
47446         * doc/gnulib.texi: Link to sections for ld version script and
47447         visibility.
47448         * doc/visibility.texi: Add @node and @section.
47449         * modules/ld-version-script: New module.
47450         * m4/ld-version-script.m4: New file.
47451         * doc/ld-version-script.texi: New file.
47452
47453 2009-03-02  David Lutterkort  <lutter@redhat.com>
47454
47455         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47457
47458 2009-03-02  Bruno Haible  <bruno@clisp.org>
47459
47460         * doc/visibility.texi: Mention libtool's -export-symbols option.
47461
47462 2009-03-02  Jim Meyering  <meyering@redhat.com>
47463
47464         announce-gen: new option: --no-print-checksums
47465         * build-aux/announce-gen (usage): Describe it.
47466         (print_checksums): Print a newline here, not in the [*] footnote.
47467         (main): Honor it.
47468
47469 2009-03-01  Bruno Haible  <bruno@clisp.org>
47470
47471         Use socklen_t in the native Windows replacements prototypes.
47472         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47473         instead of 'int'.
47474         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47475         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47476         * modules/getsockopt (Depends-on): Add socklen.
47477         * modules/setsockopt (Depends-on): Add socklen.
47478
47479 2009-03-01  Bruno Haible  <bruno@clisp.org>
47480
47481         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47482         least 4.2.
47483
47484 2009-03-01  Eric Blake  <ebb9@byu.net>
47485             Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47488         error messages.
47489         * lib/wait-process.c (wait_subprocess): Omit error message about
47490         deadly signal sent to the child of termsigp != NULL.
47491
47492 2009-03-01  Eric Blake  <ebb9@byu.net>
47493
47494         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47495
47496 2009-03-01  Bruno Haible  <bruno@clisp.org>
47497
47498         Avoid a gcc warning.
47499         * tests/test-sched.c (b): Make global.
47500         Reported by Eric Blake.
47501
47502 2009-01-19  Martin Lambers  <marlam@marlam.de>
47503
47504         Provide POSIX semantics for socket timeout options on W32.
47505         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47506         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47507         * modules/setsockopt: Depend on sys_time module for struct timeval.
47508         * modules/getsockopt: Depend on sys_time module for struct timeval.
47509
47510 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47511
47512         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47513         __USE_GNU, for consistency with netdb.in.h.
47514         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47515
47516 2009-03-01  Bruno Haible  <bruno@clisp.org>
47517
47518         More support for FreeMiNT.
47519         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47520         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47521
47522 2009-03-01  Bruno Haible  <bruno@clisp.org>
47523
47524         More support for FreeMiNT.
47525         * lib/fpurge.c (fpurge): Correct last commit.
47526         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47527
47528 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47529
47530         Fix unportable awk script in vc-list-files.
47531         * build-aux/vc-list-files: In the replacement awk script, use
47532         substr with a second argument of 1, not zero.
47533         Report by Simon Josefsson.
47534
47535 2009-02-28  Bruno Haible  <bruno@clisp.org>
47536
47537         More support for FreeMiNT.
47538         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47539         to FreeMiNT today.
47540         * lib/fwriting.c (fwriting): Likewise.
47541         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47542
47543 2009-02-28  Bruno Haible  <bruno@clisp.org>
47544
47545         * tests/test-freadseek.c (main): Disable test beyond end of file on
47546         FreeMiNT.
47547         * tests/test-ftello.c (main): Likewise.
47548         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47549
47550 2009-02-28  Bruno Haible  <bruno@clisp.org>
47551
47552         Add tentative support for FreeMiNT.
47553         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47554         * lib/fpurge.c (fpurge): Likewise.
47555         * lib/freadable.c (freadable): Likewise.
47556         * lib/freading.c (freading): Likewise.
47557         * lib/freadptr.c (freadptr): Likewise.
47558         * lib/freadseek.c (freadptrinc): Likewise.
47559         * lib/fseeko.c (rpl_fseeko): Likewise.
47560         * lib/fseterr.c (fseterr): Likewise.
47561         * lib/fwritable.c (fwritable): Likewise.
47562         * lib/fwriting.c (fwriting): Likewise.
47563         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47564         Hourihane.
47565         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47566
47567 2009-02-28  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47570         SIGCHLD.
47571         Reported by Jim Meyering.
47572
47573 2009-02-28  Bruno Haible  <bruno@clisp.org>
47574
47575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47576         Mention the results of these tests on various platforms.
47577         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47578         order.
47579         * doc/posix-functions/printf.texi: Likewise.
47580         * doc/posix-functions/snprintf.texi: Likewise.
47581         * doc/posix-functions/sprintf.texi: Likewise.
47582         * doc/posix-functions/vfprintf.texi: Likewise.
47583         * doc/posix-functions/vprintf.texi: Likewise.
47584         * doc/posix-functions/vsnprintf.texi: Likewise.
47585         * doc/posix-functions/vsprintf.texi: Likewise.
47586         * doc/glibc-functions/obstack_printf.texi: Likewise.
47587         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47588
47589 2009-02-28  Bruno Haible  <bruno@clisp.org>
47590
47591         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47592         Reported by Loïc Minier <lool@dooz.org>.
47593
47594 2009-02-27  Bruno Haible  <bruno@clisp.org>
47595
47596         * gnulib-tool (func_import): Make the sed expression used to create the
47597         sed script for updating the .gitignore file POSIX compliant.
47598         Reported by Eric Blake.
47599
47600 2009-02-27  Bruno Haible  <bruno@clisp.org>
47601
47602         * gnulib-tool (sed): Don't alias as "sed --posix".
47603         Reported by Eric Blake.
47604
47605 2009-02-27  Bruno Haible  <bruno@clisp.org>
47606
47607         Avoid test link errors.
47608         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47609         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47610         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47611         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47613
47614 2009-02-27  Bruno Haible  <bruno@clisp.org>
47615
47616         Avoid spurious "(cached)" in configure output.
47617         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47618         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47619         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47620         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47621         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47622         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47623         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47624         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47625         Reported by Eric Blake.
47626
47627 2009-02-27  Eric Blake  <ebb9@byu.net>
47628
47629         printf: fix regression in previous patch
47630         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47631
47632 2009-02-27  Bruno Haible  <bruno@clisp.org>
47633
47634         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47635         value.
47636         * lib/stdint.in.h: Likewise.
47637         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47638
47639 2009-02-27  Eric Blake  <ebb9@byu.net>
47640
47641         doc: mention more functions added in cygwin 1.7.0
47642         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47643         addition.
47644         * doc/posix-functions/open_wmemstream.texi: Likewise.
47645         * doc/posix-functions/wcsnlen.texi: Likewise.
47646         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47647         * doc/posix-functions/wcstod.texi: Likewise.
47648         * doc/posix-functions/wcstof.texi: Likewise.
47649         * doc/posix-functions/wcstoimax.texi: Likewise.
47650         * doc/posix-functions/wcstok.texi: Likewise.
47651         * doc/posix-functions/wcstoumax.texi: Likewise.
47652
47653         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47655         * doc/posix-functions/fprintf.texi: Update.
47656         * doc/posix-functions/printf.texi: Update.
47657         * doc/posix-functions/snprintf.texi: Update.
47658         * doc/posix-functions/sprintf.texi: Update.
47659         * doc/posix-functions/vfprintf.texi: Update.
47660         * doc/posix-functions/vprintf.texi: Update.
47661         * doc/posix-functions/vsnprintf.texi: Update.
47662         * doc/posix-functions/vsprintf.texi: Update.
47663         * doc/glibc-functions/obstack_printf.texi: Update.
47664         * doc/glibc-functions/obstack_vprintf.texi: Update.
47665
47666 2009-02-26  Eric Blake  <ebb9@byu.net>
47667
47668         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47669         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47670         compilation bug by using runtime conversion.
47671         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47672         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47673         * modules/ceill-tests (Files): Use nan.h.
47674         * modules/floorl-tests (Files): Likewise.
47675         * modules/frexpl-tests (Files): Likewise.
47676         * modules/isnanl-tests (Files): Likewise.
47677         * modules/ldexpl-tests (Files): Likewise.
47678         * modules/roundl-tests (Files): Likewise.
47679         * modules/truncl-tests (Files): Likewise.
47680         * tests/test-ceill.c (main): Use a working NaN.
47681         * tests/test-floorl.c (main): Likewise.
47682         * tests/test-frexpl.c (main): Likewise.
47683         * tests/test-isnan.c (test_long_double): Likewise.
47684         * tests/test-isnanl.h (main): Likewise.
47685         * tests/test-ldexpl.h (main): Likewise.
47686         * tests/test-roundl.h (main): Likewise.
47687         * tests/test-truncl.h (main): Likewise.
47688         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47689
47690 2009-02-26  Eric Blake  <ebb9@byu.net>
47691             Bruno Haible  <bruno@clisp.org>
47692
47693         Work around a *printf bug with %ls on Solaris.
47694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47695         precision is specified, sprintf stops converting the wide string
47696         argument when the number of bytes that have been produced by this
47697         conversion equals or exceeds the precision.
47698         * doc/posix-functions/fprintf.texi: Update.
47699         * doc/posix-functions/printf.texi: Update.
47700         * doc/posix-functions/snprintf.texi: Update.
47701         * doc/posix-functions/sprintf.texi: Update.
47702         * doc/posix-functions/vfprintf.texi: Update.
47703         * doc/posix-functions/vprintf.texi: Update.
47704         * doc/posix-functions/vsnprintf.texi: Update.
47705         * doc/posix-functions/vsprintf.texi: Update.
47706         * doc/glibc-functions/obstack_printf.texi: Update.
47707         * doc/glibc-functions/obstack_vprintf.texi: Update.
47708
47709 2009-02-26  Eric Blake  <ebb9@byu.net>
47710
47711         stdlib: favor compiler check of random.h
47712         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47713         to avoid an ObjC random.h installed by Swarm.
47714
47715 2009-02-26  Bruno Haible  <bruno@clisp.org>
47716
47717         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47718         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47719         Reported by Gary V. Vaughan <gary@gnu.org>.
47720
47721 2009-02-26  Bruno Haible  <bruno@clisp.org>
47722
47723         Fix *printf behaviour regarding the %ls directive.
47724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47725         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47726         NEED_PRINTF_DIRECTIVE_LS.
47727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47728         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47729         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47730         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47731         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47732         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47733         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47738         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47742         * doc/posix-functions/fprintf.texi: Update.
47743         * doc/posix-functions/printf.texi: Update.
47744         * doc/posix-functions/snprintf.texi: Update.
47745         * doc/posix-functions/sprintf.texi: Update.
47746         * doc/posix-functions/vfprintf.texi: Update.
47747         * doc/posix-functions/vprintf.texi: Update.
47748         * doc/posix-functions/vsnprintf.texi: Update.
47749         * doc/posix-functions/vsprintf.texi: Update.
47750         * doc/glibc-functions/obstack_printf.texi: Update.
47751         * doc/glibc-functions/obstack_vprintf.texi: Update.
47752         Reported by Eric Blake.
47753
47754 2009-02-25  Bruno Haible  <bruno@clisp.org>
47755
47756         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47757         with known value.
47758         Reported by Gary V. Vaughan <gary@gnu.org>.
47759
47760 2009-02-25  Bruno Haible  <bruno@clisp.org>
47761
47762         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47763         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47764         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47765         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47766         Reported by Gary V. Vaughan <gary@gnu.org>.
47767
47768 2009-02-25  Bruno Haible  <bruno@clisp.org>
47769
47770         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47771         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47772         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47773         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47774         Reported by Gary V. Vaughan <gary@gnu.org>.
47775
47776 2009-02-25  Eric Blake  <ebb9@byu.net>
47777
47778         tests: skip fseek/ftell tests if ungetc is broken
47779         * m4/ungetc.m4: New file.
47780         * modules/fseek-tests: Split test, so ungetc dependency is
47781         separate from rest of test.
47782         * modules/fseeko-tests: Likewise.
47783         * modules/ftell-tests: Likewise.
47784         * modules/ftello-tests: Likewise.
47785         * tests/test-fseek.c (main): Isolate ungetc dependency.
47786         * tests/test-fseeko.c (main): Likewise.
47787         * tests/test-ftell.c (main): Likewise.
47788         * tests/test-ftello.c (main): Likewise.
47789         * tests/test-fseek2.sh: New file.
47790         * tests/test-fseeko2.sh: Likewise.
47791         * tests/test-ftell2.sh: Likewise.
47792         * tests/test-ftello2.sh: Likewise.
47793
47794 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47795
47796         test-getaddrinfo: fix usage of skip return code 77
47797         * tests/test-gettaddrinfo.c: Return skip code 77 only
47798         for first occurrence of skip (4x77 is not 77)
47799
47800 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47801
47802         strtod: avoid C99 decl-after-statement
47803         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47804
47805 2009-02-24  Eric Blake  <ebb9@byu.net>
47806
47807         strtod: detect HP-UX 11.31 bug
47808         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47809         Reported by Gary V. Vaughan.
47810
47811 2009-02-23  Bruno Haible  <bruno@clisp.org>
47812
47813         Fix invalid read past end of memory block.
47814         * lib/vasnprintf.c (DCHAR_SET): Define.
47815         (local_wcslen): Define only when needed.
47816         (local_strnlen, local_wcsnlen): New functions.
47817         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47818         directives that involve a conversion ourselves.
47819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47820         wcsnlen, mbrtowc, wcrtomb.
47821         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47822         * tests/test-vasprintf-posix.c (test_function): Likewise.
47823         * tests/test-snprintf-posix.h (test_function): Likewise.
47824         * tests/test-sprintf-posix.h (test_function): Likewise.
47825         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47826
47827 2009-02-22  Bruno Haible  <bruno@clisp.org>
47828
47829         Implement new clarified decomposition of Hangul syllables.
47830         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47831         of type LTV, return only a pairwise decomposition.
47832         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47833         Likewise.
47834         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47835         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47836         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47837
47838 2009-02-22  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47841         zero-length results and shrink excess allocated memory.
47842         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47843         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47844         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47845         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47846         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47847         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47848         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47849         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47850         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47851         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47852         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47853         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47854
47855 2009-02-21  Bruno Haible  <bruno@clisp.org>
47856
47857         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47858         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47859         spaces after a period. Put a space between a macro name and its
47860         argument list. Trivial rewordings.
47861         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47862         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47863         (main): Return 0 explicitly.
47864
47865 2009-02-21  Bruno Haible  <bruno@clisp.org>
47866
47867         Tests for module 'uninorm/filter'.
47868         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47869         * modules/uninorm/filter-tests: New file.
47870
47871         New module 'uninorm/filter'.
47872         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47873         uninorm_filter_flush, uninorm_filter_free): New declarations.
47874         * lib/uninorm/uninorm-filter.c: New file.
47875         * modules/uninorm/filter: New file.
47876
47877 2009-02-21  Bruno Haible  <bruno@clisp.org>
47878
47879         Tests for module 'uninorm/nfkc'.
47880         * tests/uninorm/test-nfkc.c: New file.
47881         * tests/uninorm/test-u8-nfkc.c: New file.
47882         * tests/uninorm/test-u16-nfkc.c: New file.
47883         * tests/uninorm/test-u32-nfkc.c: New file.
47884         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47885         * tests/uninorm/test-u32-nfkc-big.c: New file.
47886         * modules/uninorm/nfkc-tests: New file.
47887
47888         New module 'uninorm/nfkc'.
47889         * lib/uninorm/nfkc.c: New file.
47890         * modules/uninorm/nfkc: New file.
47891
47892         Tests for module 'uninorm/nfkd'.
47893         * tests/uninorm/test-nfkd.c: New file.
47894         * tests/uninorm/test-u8-nfkd.c: New file.
47895         * tests/uninorm/test-u16-nfkd.c: New file.
47896         * tests/uninorm/test-u32-nfkd.c: New file.
47897         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47898         * tests/uninorm/test-u32-nfkd-big.c: New file.
47899         * modules/uninorm/nfkd-tests: New file.
47900
47901         New module 'uninorm/nfkd'.
47902         * lib/uninorm/nfkd.c: New file.
47903         * modules/uninorm/nfkd: New file.
47904
47905         Tests for module 'uninorm/nfc'.
47906         * tests/uninorm/test-nfc.c: New file.
47907         * tests/uninorm/test-u8-nfc.c: New file.
47908         * tests/uninorm/test-u16-nfc.c: New file.
47909         * tests/uninorm/test-u32-nfc.c: New file.
47910         * tests/uninorm/test-u32-nfc-big.sh: New file.
47911         * tests/uninorm/test-u32-nfc-big.c: New file.
47912         * modules/uninorm/nfc-tests: New file.
47913
47914         New module 'uninorm/nfc'.
47915         * lib/uninorm/nfc.c: New file.
47916         * modules/uninorm/nfc: New file.
47917
47918         Tests for module 'uninorm/nfd'.
47919         * tests/uninorm/test-nfd.c: New file.
47920         * tests/uninorm/test-u8-nfd.c: New file.
47921         * tests/uninorm/test-u16-nfd.c: New file.
47922         * tests/uninorm/test-u32-nfd.c: New file.
47923         * tests/uninorm/test-u32-nfd-big.sh: New file.
47924         * tests/uninorm/test-u32-nfd-big.c: New file.
47925         * tests/uninorm/test-u32-normalize-big.h: New file.
47926         * tests/uninorm/test-u32-normalize-big.c: New file.
47927         * tests/uninorm/NormalizationTest.txt: New file, created from
47928         Unicode 5.1.0 NormalizationTest.txt.
47929         * modules/uninorm/nfd-tests: New file.
47930
47931         New module 'uninorm/nfd'.
47932         * lib/uninorm/nfd.c: New file.
47933         * modules/uninorm/nfd: New file.
47934
47935         New module 'uninorm/u32-normalize'.
47936         * lib/uninorm/u32-normalize.c: New file.
47937         * modules/uninorm/u32-normalize: New file.
47938
47939         New module 'uninorm/u16-normalize'.
47940         * lib/uninorm/u16-normalize.c: New file.
47941         * modules/uninorm/u16-normalize: New file.
47942
47943         New module 'uninorm/u8-normalize'.
47944         * lib/uninorm/u8-normalize.c: New file.
47945         * lib/uninorm/normalize-internal.h: New file.
47946         * lib/uninorm/u-normalize-internal.h: New file.
47947         * modules/uninorm/u8-normalize: New file.
47948
47949         New module 'uninorm/decompose-internal'.
47950         * lib/uninorm/decompose-internal.c: New file.
47951         * modules/uninorm/decompose-internal: New file.
47952
47953         Tests for module 'uninorm/composition'.
47954         * tests/uninorm/test-composition.c: New file.
47955         * modules/uninorm/composition-tests: New file.
47956
47957         New module 'uninorm/composition'.
47958         * lib/uninorm/composition.c: New file.
47959         * lib/uninorm/composition-table.gperf: New file, generated by
47960         gen-uni-tables.
47961         * modules/uninorm/composition: New file.
47962
47963         Tests for module 'uninorm/compat-decomposition'.
47964         * tests/uninorm/test-compat-decomposition.c: New file.
47965         * modules/uninorm/compat-decomposition-tests: New file.
47966
47967         New module 'uninorm/compat-decomposition'.
47968         * lib/uninorm/decompose-internal.h: New file.
47969         * lib/uninorm/compat-decomposition.c: New file.
47970         * modules/uninorm/compat-decomposition: New file.
47971
47972         Tests for module 'uninorm/canonical-decomposition'.
47973         * tests/uninorm/test-canonical-decomposition.c: New file.
47974         * modules/uninorm/canonical-decomposition-tests: New file.
47975
47976         New module 'uninorm/canonical-decomposition'.
47977         * lib/uninorm/canonical-decomposition.c: New file.
47978         * modules/uninorm/canonical-decomposition: New file.
47979
47980         Tests for module 'uninorm/decomposition'.
47981         * tests/uninorm/test-decomposition.c: New file.
47982         * modules/uninorm/decomposition-tests: New file.
47983
47984         New module 'uninorm/decomposition'.
47985         * lib/uninorm/decomposition.c: New file.
47986         * modules/uninorm/decomposition: New file.
47987
47988         New module 'uninorm/decomposition-table'.
47989         * lib/uninorm/decomposition-table.h: New file.
47990         * lib/uninorm/decomposition-table.c: New file.
47991         * lib/uninorm/decomposition-table1.h: New file, generated by
47992         gen-uni-tables.
47993         * lib/uninorm/decomposition-table2.h: New file, generated by
47994         gen-uni-tables.
47995         * modules/uninorm/decomposition-table: New file.
47996
47997         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47998         (UC_DECOMP_*): New enumeration items.
47999         (get_decomposition): New function.
48000         (struct decomp_table): New type.
48001         (output_decomposition, output_decomposition_tables): New functions.
48002         (unicode_composition_exclusions): New variable.
48003         (fill_composition_exclusions, debug_output_composition_tables): New
48004         functions.
48005         (main): Accept one more argument. Invoke fill_composition_exclusions.
48006         Output decomposition and composition tables.
48007
48008         New module 'uninorm/base'.
48009         * lib/uninorm.h: New file.
48010         * lib/unictype.h: Update comment.
48011         * modules/uninorm/base: New file.
48012
48013 2009-02-21  David Lutterkort  <lutter@redhat.com>
48014
48015         Tests for module 'safe-alloc'.
48016         * tests/test-safe-alloc.c: New file.
48017         * modules/safe-alloc-tests: New file.
48018
48019         New module 'safe-alloc'.
48020         * lib/safe-alloc.h: New file.
48021         * lib/safe-alloc.c: New file.
48022         * m4/safe-alloc.m4: New file.
48023         * modules/safe-alloc: New file.
48024         * doc/safe-alloc.texi: New file.
48025         * doc/gnulib.texi: Include it.
48026         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48027         safe-alloc.
48028
48029 2009-02-18  Bruno Haible  <bruno@clisp.org>
48030
48031         Fix link error on non-glibc systems.
48032         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48033         variable.
48034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48035
48036 2009-02-18  Jim Meyering  <meyering@redhat.com>
48037
48038         fts: avoid used-uninitialized error due to recent change
48039         * lib/fts.c (fts_read): Guard uses of the new member,
48040         parent->fts_n_dirs_remaining, since it's not relevant for
48041         the parent of a directory specified on the command-line.
48042
48043 2009-02-17  James Youngman  <jay@gnu.org>
48044             Bruno Haible  <bruno@clisp.org>
48045
48046         * m4/include_next.m4: Reformulate comment.
48047
48048 2009-02-16  Jim Meyering  <meyering@redhat.com>
48049
48050         fts: add #if guards so that the fts_lgpl module still builds
48051         * lib/fts.c: Guard just-added hash-table-using parts with
48052         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48053         Reported by Simon Josefsson.
48054
48055 2009-02-15  Bruno Haible  <bruno@clisp.org>
48056
48057         * modules/array-mergesort-tests: New file.
48058         * tests/test-array-mergesort.c: New file.
48059
48060         New module 'array-mergesort'.
48061         * modules/array-mergesort: New file.
48062         * lib/array-mergesort.h: New file.
48063
48064 2009-02-15  Bruno Haible  <bruno@clisp.org>
48065
48066         Fix 2009-02-07 commit.
48067         * lib/gen-uni-tables.c (output_predicate, output_category,
48068         output_combclass, output_bidi_category, output_decimal_digit,
48069         output_digit, output_numeric, output_mirror, output_scripts,
48070         output_ident_category, output_simple_mapping): Fix format directives.
48071         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48072
48073 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48074
48075         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48076         fixes are available from IBM.
48077
48078 2009-02-13  Jim Meyering  <meyering@redhat.com>
48079
48080         fts: arrange not to stat non-directories in more cases
48081         This makes GNU find (when it doesn't need to stat each file)
48082         *much* more efficient at traversing reiserfs file systems.
48083         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48084         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48085         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48086         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48087         (leaf_optimization_applies): New function.
48088         (LCO_hash, LCO_compare): New helper functions.
48089         (link_count_optimize_ok): New function.
48090         (fts_stat): Initialize new member (if dir).
48091         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48092         we've just stat'ed a directory.  Skip the stat call when possible.
48093         ---
48094         Note this AFS-related exchange:
48095         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48096         and note find's pioctl call in find/fstype.c.
48097         But that is necessary only if you want to enable the
48098         optimization for AFS, and for now, I don't.
48099
48100         fts: move a function definition "up" (no semantic change)
48101         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48102         "up" to precede upcoming use of a related function.
48103
48104 2009-02-11  Jim Meyering  <meyering@redhat.com>
48105
48106         fts: correct internal computation of nlinks (optimization-related)
48107         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48108         whether the current entry is a directory, so don't test it.
48109
48110 2009-02-10  Bruno Haible  <bruno@clisp.org>
48111
48112         Tests for module 'uniwbrk/ulc-wordbreaks'.
48113         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48114         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48115         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48116
48117         Tests for module 'uniwbrk/u32-wordbreaks'.
48118         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48119         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48120
48121         Tests for module 'uniwbrk/u16-wordbreaks'.
48122         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48123         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48124
48125         Tests for module 'uniwbrk/u8-wordbreaks'.
48126         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48127         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48128
48129 2009-02-10  Bruno Haible  <bruno@clisp.org>
48130
48131         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48132         property.
48133         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48134         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48135         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48136
48137 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48138
48139         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48140         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48141
48142 2009-02-10  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48145         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48146         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48147         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48148         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48149         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48150
48151 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48152
48153         * lib/sockets.h (gl_fd_to_handle): New function.
48154
48155         * tests/test-sockets.c: Call gl_fd_to_handle.
48156
48157 2009-02-09  Bruno Haible  <bruno@clisp.org>
48158
48159         * doc/havelib.texi: Document the conventions on bi-arch systems.
48160
48161 2009-02-08  Bruno Haible  <bruno@clisp.org>
48162
48163         Document the AC_LIB_LINKFLAGS macro.
48164         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48165         * doc/gnulib.texi: Include it.
48166
48167 2009-02-08  Bruno Haible  <bruno@clisp.org>
48168
48169         Fix wrong order of sections, compared to TOC.
48170         * doc/gnulib.texi: Include relocatable-maint.texi after the
48171         "Regular expressions" node, not before.
48172
48173 2009-02-08  Bruno Haible  <bruno@clisp.org>
48174
48175         Tests for module 'unicase/totitle'.
48176         * modules/unicase/totitle-tests: New file.
48177
48178         Tests for module 'unicase/tolower'.
48179         * modules/unicase/tolower-tests: New file.
48180
48181         Tests for module 'unicase/toupper'.
48182         * modules/unicase/toupper-tests: New file.
48183         * tests/unicase/test-mapping-part1.h: New file.
48184         * tests/unicase/test-mapping-part2.h: New file.
48185
48186         New module 'unicase/totitle'.
48187         * modules/unicase/totitle: New file.
48188         * lib/unicase/totitle.c: New file.
48189
48190         New module 'unicase/tolower'.
48191         * modules/unicase/tolower: New file.
48192         * lib/unicase/tolower.c: New file.
48193
48194         New module 'unicase/toupper'.
48195         * modules/unicase/toupper: New file.
48196         * lib/unicase/toupper.c: New file.
48197         * lib/unicase/simple-mapping.h: New file.
48198
48199         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48200         (mapping_table): New structure.
48201         (output_simple_mapping): New function.
48202         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48203         * modules/gen-uni-tables (Description): Update.
48204         * lib/unicase/toupper.h: New file, automatically generated by
48205         gen-uni-tables.
48206         * lib/unicase/tolower.h: New file, automatically generated by
48207         gen-uni-tables.
48208         * lib/unicase/totitle.h: New file, automatically generated by
48209         gen-uni-tables.
48210         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48211         gen-uni-tables.
48212         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48213         gen-uni-tables.
48214         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48215         gen-uni-tables.
48216
48217         New module 'unicase/base'.
48218         * modules/unicase/base: New file.
48219         * lib/unicase.h: New file.
48220
48221 2009-02-08  Bruno Haible  <bruno@clisp.org>
48222
48223         New module 'uniwbrk/ulc-wordbreaks'.
48224         * modules/uniwbrk/ulc-wordbreaks: New file.
48225         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48226
48227         New module 'uniwbrk/u32-wordbreaks'.
48228         * modules/uniwbrk/u32-wordbreaks: New file.
48229         * lib/uniwbrk/u32-wordbreaks.c: New file.
48230
48231         New module 'uniwbrk/u16-wordbreaks'.
48232         * modules/uniwbrk/u16-wordbreaks: New file.
48233         * lib/uniwbrk/u16-wordbreaks.c: New file.
48234
48235         New module 'uniwbrk/u8-wordbreaks'.
48236         * modules/uniwbrk/u8-wordbreaks: New file.
48237         * lib/uniwbrk/u8-wordbreaks.c: New file.
48238         * lib/uniwbrk/u-wordbreaks.h: New file.
48239
48240         New module 'uniwbrk/table'.
48241         * modules/uniwbrk/table: New file.
48242         * lib/uniwbrk/wbrktable.h: New file.
48243         * lib/uniwbrk/wbrktable.c: New file.
48244
48245         New module 'uniwbrk/wordbreak-property'.
48246         * modules/uniwbrk/wordbreak-property: New file.
48247         * lib/uniwbrk/wordbreak-property.c: New file.
48248
48249         * lib/gen-uni-tables.c (WBP_*): New enum items.
48250         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48251         (unicode_org_wbp): New variable.
48252         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48253         New functions.
48254         (wbp_table): New structure.
48255         (output_wbp, output_wbrk_tables): New functions.
48256         (main): Accept additional argument. Invoke fill_org_wbp,
48257         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48258         output_wbrk_tables.
48259         * modules/gen-uni-tables (Description): Update.
48260         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48261         gen-uni-tables.
48262
48263         New module 'uniwbrk/base'.
48264         * modules/uniwbrk/base: New file.
48265         * lib/uniwbrk.h: New file.
48266
48267 2009-02-08  Bruno Haible  <bruno@clisp.org>
48268
48269         Update to Unicode 5.1.0.
48270         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48271         U+2185..U+2188.
48272         (is_property_default_ignorable_code_point): Don't include characters
48273         of category Cc or Cs and not-a-characters.
48274         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48275         U+0D79, U+109E, U+109F, U+A60C.
48276         * lib/unictype/bidi_of.h: Regenerated.
48277         * lib/unictype/blocks.h: Regenerated.
48278         * lib/unictype/categ_C.h: Regenerated.
48279         * lib/unictype/categ_Cf.h: Regenerated.
48280         * lib/unictype/categ_Cn.h: Regenerated.
48281         * lib/unictype/categ_L.h: Regenerated.
48282         * lib/unictype/categ_Ll.h: Regenerated.
48283         * lib/unictype/categ_Lm.h: Regenerated.
48284         * lib/unictype/categ_Lo.h: Regenerated.
48285         * lib/unictype/categ_Lu.h: Regenerated.
48286         * lib/unictype/categ_M.h: Regenerated.
48287         * lib/unictype/categ_Mc.h: Regenerated.
48288         * lib/unictype/categ_Me.h: Regenerated.
48289         * lib/unictype/categ_Mn.h: Regenerated.
48290         * lib/unictype/categ_N.h: Regenerated.
48291         * lib/unictype/categ_Nd.h: Regenerated.
48292         * lib/unictype/categ_Nl.h: Regenerated.
48293         * lib/unictype/categ_No.h: Regenerated.
48294         * lib/unictype/categ_P.h: Regenerated.
48295         * lib/unictype/categ_Pd.h: Regenerated.
48296         * lib/unictype/categ_Pe.h: Regenerated.
48297         * lib/unictype/categ_Pf.h: Regenerated.
48298         * lib/unictype/categ_Pi.h: Regenerated.
48299         * lib/unictype/categ_Po.h: Regenerated.
48300         * lib/unictype/categ_Ps.h: Regenerated.
48301         * lib/unictype/categ_S.h: Regenerated.
48302         * lib/unictype/categ_Sk.h: Regenerated.
48303         * lib/unictype/categ_Sm.h: Regenerated.
48304         * lib/unictype/categ_So.h: Regenerated.
48305         * lib/unictype/categ_of.h: Regenerated.
48306         * lib/unictype/combining.h: Regenerated.
48307         * lib/unictype/ctype_alnum.h: Regenerated.
48308         * lib/unictype/ctype_alpha.h: Regenerated.
48309         * lib/unictype/ctype_graph.h: Regenerated.
48310         * lib/unictype/ctype_lower.h: Regenerated.
48311         * lib/unictype/ctype_print.h: Regenerated.
48312         * lib/unictype/ctype_punct.h: Regenerated.
48313         * lib/unictype/ctype_upper.h: Regenerated.
48314         * lib/unictype/decdigit.h: Regenerated.
48315         * lib/unictype/digit.h: Regenerated.
48316         * lib/unictype/mirror.h: Regenerated.
48317         * lib/unictype/numeric.h: Regenerated.
48318         * lib/unictype/pr_alphabetic.h: Regenerated.
48319         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48320         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48321         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48322         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48323         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48324         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48325         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48326         * lib/unictype/pr_combining.h: Regenerated.
48327         * lib/unictype/pr_dash.h: Regenerated.
48328         * lib/unictype/pr_decimal_digit.h: Regenerated.
48329         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48330         * lib/unictype/pr_deprecated.h: Regenerated.
48331         * lib/unictype/pr_diacritic.h: Regenerated.
48332         * lib/unictype/pr_extender.h: Regenerated.
48333         * lib/unictype/pr_format_control.h: Regenerated.
48334         * lib/unictype/pr_grapheme_base.h: Regenerated.
48335         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48336         * lib/unictype/pr_grapheme_link.h: Regenerated.
48337         * lib/unictype/pr_id_continue.h: Regenerated.
48338         * lib/unictype/pr_id_start.h: Regenerated.
48339         * lib/unictype/pr_ideographic.h: Regenerated.
48340         * lib/unictype/pr_ignorable_control.h: Regenerated.
48341         * lib/unictype/pr_lowercase.h: Regenerated.
48342         * lib/unictype/pr_math.h: Regenerated.
48343         * lib/unictype/pr_numeric.h: Regenerated.
48344         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48345         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48346         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48347         * lib/unictype/pr_other_id_continue.h: Regenerated.
48348         * lib/unictype/pr_other_lowercase.h: Regenerated.
48349         * lib/unictype/pr_other_math.h: Regenerated.
48350         * lib/unictype/pr_punctuation.h: Regenerated.
48351         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48352         * lib/unictype/pr_soft_dotted.h: Regenerated.
48353         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48354         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48355         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48356         * lib/unictype/pr_uppercase.h: Regenerated.
48357         * lib/unictype/pr_xid_continue.h: Regenerated.
48358         * lib/unictype/pr_xid_start.h: Regenerated.
48359         * lib/unictype/pr_zero_width.h: Regenerated.
48360         * lib/unictype/scripts.h: Regenerated.
48361         * lib/unictype/scripts_byname.gperf: Regenerated.
48362         * lib/unictype/sy_java_ident.h: Regenerated.
48363         * lib/unilbrk/lbrkprop1.h: Regenerated.
48364         * lib/unilbrk/lbrkprop2.h: Regenerated.
48365         * tests/unictype/test-categ_C.c: Regenerated.
48366         * tests/unictype/test-categ_Cf.c: Regenerated.
48367         * tests/unictype/test-categ_Cn.c: Regenerated.
48368         * tests/unictype/test-categ_L.c: Regenerated.
48369         * tests/unictype/test-categ_Ll.c: Regenerated.
48370         * tests/unictype/test-categ_Lm.c: Regenerated.
48371         * tests/unictype/test-categ_Lo.c: Regenerated.
48372         * tests/unictype/test-categ_Lu.c: Regenerated.
48373         * tests/unictype/test-categ_M.c: Regenerated.
48374         * tests/unictype/test-categ_Mc.c: Regenerated.
48375         * tests/unictype/test-categ_Me.c: Regenerated.
48376         * tests/unictype/test-categ_Mn.c: Regenerated.
48377         * tests/unictype/test-categ_N.c: Regenerated.
48378         * tests/unictype/test-categ_Nd.c: Regenerated.
48379         * tests/unictype/test-categ_Nl.c: Regenerated.
48380         * tests/unictype/test-categ_No.c: Regenerated.
48381         * tests/unictype/test-categ_P.c: Regenerated.
48382         * tests/unictype/test-categ_Pd.c: Regenerated.
48383         * tests/unictype/test-categ_Pe.c: Regenerated.
48384         * tests/unictype/test-categ_Pf.c: Regenerated.
48385         * tests/unictype/test-categ_Pi.c: Regenerated.
48386         * tests/unictype/test-categ_Po.c: Regenerated.
48387         * tests/unictype/test-categ_Ps.c: Regenerated.
48388         * tests/unictype/test-categ_S.c: Regenerated.
48389         * tests/unictype/test-categ_Sk.c: Regenerated.
48390         * tests/unictype/test-categ_Sm.c: Regenerated.
48391         * tests/unictype/test-categ_So.c: Regenerated.
48392         * tests/unictype/test-ctype_alnum.c: Regenerated.
48393         * tests/unictype/test-ctype_alpha.c: Regenerated.
48394         * tests/unictype/test-ctype_graph.c: Regenerated.
48395         * tests/unictype/test-ctype_lower.c: Regenerated.
48396         * tests/unictype/test-ctype_print.c: Regenerated.
48397         * tests/unictype/test-ctype_punct.c: Regenerated.
48398         * tests/unictype/test-ctype_upper.c: Regenerated.
48399         * tests/unictype/test-decdigit.h: Regenerated.
48400         * tests/unictype/test-digit.h: Regenerated.
48401         * tests/unictype/test-numeric.h: Regenerated.
48402         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48403         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48404         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48405         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48406         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48407         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48408         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48409         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48410         * tests/unictype/test-pr_combining.c: Regenerated.
48411         * tests/unictype/test-pr_dash.c: Regenerated.
48412         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48413         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48414         * tests/unictype/test-pr_deprecated.c: Regenerated.
48415         * tests/unictype/test-pr_diacritic.c: Regenerated.
48416         * tests/unictype/test-pr_extender.c: Regenerated.
48417         * tests/unictype/test-pr_format_control.c: Regenerated.
48418         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48419         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48420         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48421         * tests/unictype/test-pr_id_continue.c: Regenerated.
48422         * tests/unictype/test-pr_id_start.c: Regenerated.
48423         * tests/unictype/test-pr_ideographic.c: Regenerated.
48424         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48425         * tests/unictype/test-pr_lowercase.c: Regenerated.
48426         * tests/unictype/test-pr_math.c: Regenerated.
48427         * tests/unictype/test-pr_numeric.c: Regenerated.
48428         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48429         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48430         Regenerated.
48431         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48432         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48433         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48434         * tests/unictype/test-pr_other_math.c: Regenerated.
48435         * tests/unictype/test-pr_punctuation.c: Regenerated.
48436         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48437         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48438         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48439         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48440         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48441         * tests/unictype/test-pr_uppercase.c: Regenerated.
48442         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48443         * tests/unictype/test-pr_xid_start.c: Regenerated.
48444         * tests/unictype/test-pr_zero_width.c: Regenerated.
48445
48446         Update to Unicode 5.1.0.
48447         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48448         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48449         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48450         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48451         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48452         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48453         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48454         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48455         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48456         (nonspacing_table_ind): Update.
48457         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48458
48459         Update to Unicode 5.1.0.
48460         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48461         code transform.
48462         * lib/uniname/uniname.c (unicode_character_name,
48463         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48464         * lib/uniname/uninames.h: Regenerated.
48465         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48466
48467 2009-02-07  Bruno Haible  <bruno@clisp.org>
48468
48469         Merge gen-ctype and gen-lbrk into a single program.
48470         * lib/gen-uni-tables.c: New file, incorporating
48471         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48472         Add directory prefixes to the names of the generated files.
48473         * lib/unictype/gen-ctype.c: Remove file.
48474         * lib/unilbrk/gen-lbrk.c: Remove file.
48475         * modules/gen-uni-tables: New file.
48476         * modules/unictype/gen-ctype: Remove file.
48477         * modules/unilbrk/gen-lbrk: Remove file.
48478
48479 2009-02-07  Bruno Haible  <bruno@clisp.org>
48480
48481         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48482
48483         New module 'unistr/u32-strcoll'.
48484         * modules/unistr/u32-strcoll: New file.
48485         * lib/unistr/u32-strcoll.c: New file.
48486
48487         New module 'unistr/u16-strcoll'.
48488         * modules/unistr/u16-strcoll: New file.
48489         * lib/unistr/u16-strcoll.c: New file.
48490
48491         New module 'unistr/u8-strcoll'.
48492         * modules/unistr/u8-strcoll: New file.
48493         * lib/unistr/u8-strcoll.c: New file.
48494         * lib/unistr/u-strcoll.h: New file.
48495
48496 2009-02-07  Bruno Haible  <bruno@clisp.org>
48497
48498         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48499         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48500         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48501         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48502         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48503         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48504
48505 2009-02-07  Bruno Haible  <bruno@clisp.org>
48506
48507         Make 64-bit clean.
48508         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48509         output_combclass, output_bidi_category, output_decimal_digit,
48510         output_digit, output_numeric, output_mirror, output_scripts,
48511         output_ident_category): Use proper width specifier in format strings.
48512
48513 2009-02-07  Bruno Haible  <bruno@clisp.org>
48514
48515         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48516         failure behaviour.
48517
48518 2009-02-07  Jim Meyering  <meyering@redhat.com>
48519
48520         regex: avoid compilation failure with upcoming gcc-4.4
48521         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48522         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48523         "... error: integer overflow in preprocessor expression".
48524
48525 2009-02-05  Ben Pfaff  <blp@gnu.org>
48526
48527         Fix link errors on Windows when close module is used.
48528         * modules/close: Add $(LIB_CLOSE) to Link section.
48529         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48530         $(LIB_CLOSE) on Windows.
48531
48532 2009-02-05  Jim Meyering  <meyering@redhat.com>
48533
48534         still avoid unused-parameter warnings, but do it cleanly
48535         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48536         (get_fs_usage): Cast to void instead.
48537         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48538         (dev_from_mount_options, read_file_system_list): Cast to void.
48539         Prompted by Bruno Haible.
48540
48541 2009-02-04  Jim Meyering  <meyering@redhat.com>
48542
48543         fsusage.c: correct copyright year
48544         * lib/fsusage.c: Reflect year in which the change is pushed into
48545
48546         avoid misc. warnings
48547         * lib/fsusage.c (UNUSED_PARAM): Define.
48548         (get_fs_usage): Mark parameter "disk" as unused.
48549         * lib/getugroups.c (getgrent): Use "void" in prototype.
48550         * lib/mountlist.c: Mark unused parameters.
48551         (read_file_system_list): Declare a local with "const".
48552         * lib/nanosleep.c (getnow): Declare static.
48553         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48554
48555         dirfd: set errno upon failure
48556         * lib/dirfd.c: Include <errno.h>.
48557         Set errno to ENOTSUP when returning -1.
48558         * modules/dirfd (Depends-on): Add errno.
48559         Suggested by John Kodis <kodis@comcast.net>.
48560
48561 2009-02-01  Bruno Haible  <bruno@clisp.org>
48562
48563         Don't assume sizeof (long) >= sizeof (void *).
48564         * lib/memcmp.c: Include stdint.h.
48565         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48566         srcp2 to 'const byte *'.
48567         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48568         types to uintptr_t.
48569         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48570         * modules/memcmp (Depends-on): Add stdint.
48571         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48572
48573 2009-01-30  Eric Blake  <ebb9@byu.net>
48574
48575         fix more require-before-expand issues
48576         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48577         expand, AC_PROG_AWK.
48578         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48579
48580 2009-01-28  Eric Blake  <ebb9@byu.net>
48581
48582         version-etc: use consistent URL formatting
48583         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48584         Improve formatting.  Use fputs for string without %.
48585
48586 2009-01-28  Jim Meyering  <meyering@redhat.com>
48587
48588         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48589         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48590         "underquoted definition of NAME" from autoconf-2.59.
48591
48592 2009-01-28  Bruno Haible  <bruno@clisp.org>
48593
48594         * doc/gnulib.texi: Add "Obsolete modules" to index.
48595
48596 2009-01-28  Jim Meyering  <meyering@redhat.com>
48597
48598         useless-if-before-free: recognize more variants
48599         * build-aux/useless-if-before-free: Also recognize e.g.,
48600         if (NULL != p) free (p);
48601
48602 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48603
48604         test-getaddrinfo: skip (don't fail) this test when there's no network
48605         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48606         on the presumption that it means you lack network access.
48607
48608 2009-01-26  Jim Meyering  <meyering@redhat.com>
48609
48610         fflush: avoid warnings on modern systems
48611         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48612         pos and result, into scopes where they're used.
48613
48614 2009-01-26  Eric Blake  <ebb9@byu.net>
48615
48616         Silence warning reintroduced by recent extensions patch.
48617         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48618         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48619         autoconf.
48620
48621         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48622         * m4/00gnulib.m4: New file.
48623         * gnulib-tool (func_get_filelist): Always use it.
48624         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48625         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48626
48627 2009-01-25  Bruno Haible  <bruno@clisp.org>
48628
48629         Make test-quotearg work on MacOS X and AIX.
48630         * tests/test-quotearg.sh: New file.
48631         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48632         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48633         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48634         include <libintl.h>.
48635         (fake_locale): Remove variable.
48636         (gettext, dgettext, dcgettext): Remove functions.
48637         (main): Instead of setting a fake locale, set a real locale. Call
48638         textdomain and bindtextdomain.
48639         * modules/quotearg-tests (Files): Add the new files.
48640         (Depends-on): Add gettext, setenv, unsetenv.
48641         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48642         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48643         Augment TESTS_ENVIRONMENT.
48644
48645 2009-01-25  Bruno Haible  <bruno@clisp.org>
48646
48647         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48648         fr_FR.ISO8859-1 locale on MacOS X.
48649         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48650         ja_JP.eucJP locale on MacOS X.
48651         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48652         zh_CN.GB18030 locale on MacOS X.
48653
48654 2009-01-25  Bruno Haible  <bruno@clisp.org>
48655
48656         Avoid link errors on MacOS X 10.3.
48657         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48658         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48659
48660 2009-01-25  Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48663         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48664         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48665         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48666         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48667         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48668         posix_spawnattr_init, posix_spawnattr_setsigmask,
48669         posix_spawnattr_setflags, posix_spawnattr_destroy.
48670
48671         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48672         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48673         * modules/execute (Files): Remove m4/posix_spawn.m4.
48674         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48675         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48676         posix_spawnattr_init, posix_spawnattr_setsigmask,
48677         posix_spawnattr_setflags, posix_spawnattr_destroy.
48678
48679 2009-01-25  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/glthread/threadlib.c: Include <stdlib.h>.
48682
48683 2009-01-25  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/glthread/threadlib.c (dummy): New declaration.
48686
48687 2009-01-25  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48690         multibyte characters also for the GB18030 encoding. Don't crash when
48691         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48692
48693 2009-01-25  Bruno Haible  <bruno@clisp.org>
48694
48695         Avoid redefining 'struct random_data' on OSF/1 5.1.
48696         * lib/stdlib.in.h: Include <random.h> if it exists.
48697         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48698         HAVE_RANDOM_H. Include <random.h> when testing whether
48699         'struct random_data' exists.
48700         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48701
48702 2009-01-25  Bruno Haible  <bruno@clisp.org>
48703
48704         Don't install charset.alias on MacOS X >= 10.3.
48705         * lib/localcharset.c (DARWIN7): New macro.
48706         (get_charset_aliases): Hardcode the result for Darwin7.
48707         * modules/localcharset (install-exec-local): Don't install
48708         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48709
48710 2009-01-25  Bruno Haible  <bruno@clisp.org>
48711
48712         Don't install charset.alias on mingw and Cygwin.
48713         * modules/localcharset (install-exec-local): Don't install
48714         charset.alias on mingw and Cygwin, if the file does not yet exist.
48715         The result for these platforms is hardcoded in localcharset.c.
48716
48717 2009-01-25  Bruno Haible  <bruno@clisp.org>
48718
48719         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48721         before requiring AC_USE_SYSTEM_EXTENSIONS.
48722
48723 2009-01-25  Jim Meyering  <meyering@redhat.com>
48724
48725         c-strtod: avoid warnings
48726         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48727         "assignment discards qualifiers from pointer target type" warnings.
48728
48729 2009-01-24  Bruno Haible  <bruno@clisp.org>
48730
48731         Add support for non-UTF-8 locales on MacOS X.
48732         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48733         canonical encodings. For Darwin 7 and newer, don't map traditional
48734         encodings to UTF-8.
48735         Reported by Vincent Lefevre <vincent@vinc17.org>
48736         at <http://savannah.gnu.org/bugs/?25235>.
48737
48738 2009-01-24  Bruno Haible  <bruno@clisp.org>
48739
48740         * doc/gnulib.texi (Obsolete modules): New section.
48741         Reported by Mike Frysinger <vapier@gentoo.org>.
48742
48743 2009-01-24  Bruno Haible  <bruno@clisp.org>
48744
48745         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48746         (%.dvi): New rule.
48747
48748 2009-01-24  Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48751         Reported by Eric Blake.
48752
48753 2009-01-24  Bruno Haible  <bruno@clisp.org>
48754
48755         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48756         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48757         Reported by Gary V. Vaughan <gary@gnu.org>.
48758
48759 2009-01-24  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48762
48763 2009-01-23  Bruno Haible  <bruno@clisp.org>
48764
48765         Make c-strtod, c-strtold usable in libraries.
48766         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48767         (C_STRTOD): Call strdup instead of xstrdup.
48768         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48769         * modules/c-strtold (Depends-on): Likewise.
48770         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48771         * NEWS: Mention the change.
48772         Reported by Michael Gold <mgold@ncf.ca>.
48773
48774 2009-01-23  Jim Meyering  <meyering@redhat.com>
48775
48776         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48777         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48778         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48779
48780 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48781
48782         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48783         GNU CoreUtils.
48784         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48785         * modules/version-etc (Description): Update.
48786
48787 2009-01-22  Bruno Haible  <bruno@clisp.org>
48788
48789         Cache the C locale object.
48790         * lib/c-strtod.c (c_locale_cache): New variable.
48791         (c_locale): New function.
48792         (C_STRTOD): Use it, and don't call freelocale.
48793         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48794         Suggested by Paolo Bonzini.
48795
48796 2009-01-21  Bruno Haible  <bruno@clisp.org>
48797
48798         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48799         conditions other than overflow.
48800
48801 2009-01-21  Bruno Haible  <bruno@clisp.org>
48802
48803         * lib/c-strtod.c: Include errno.h.
48804         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48805         value from STRTOD_L and STRTOD.
48806
48807 2009-01-21  Bruno Haible  <bruno@clisp.org>
48808         and Jim Meyering  <meyering@redhat.com>
48809
48810         nanosleep: skip configure test (fail it) for apple universal builds
48811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48812         universal builds, assume that nanosleep does not work.
48813         * modules/nanosleep (Depends-on): Add multiarch.
48814
48815         mktime: skip configure test (fail it) for apple universal builds
48816         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48817         universal builds, assume that mktime does not work.
48818         * modules/mktime (Depends-on): Add multiarch.
48819
48820 2009-01-21  Eric Blake  <ebb9@byu.net>
48821
48822         multiarch: avoid expand-before-require warning
48823         * modules/multiarch (configure.ac): Require, rather than expand,
48824         gl_MULTIARCH.
48825         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48826         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48827         enforce that all clients require it.  Partial reversion of
48828         2008-12-29 patch.
48829
48830         error: avoid expand-before-require warning
48831         * modules/errno (configure.ac): Require, rather than expand,
48832         gl_HEADER_ERRNO_H.
48833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48834         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48835         enforce that all clients require it.
48836
48837         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48838         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48839         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48840         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48841
48842 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48843
48844         Revert:
48845         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48846
48847         regex: do not depend on obsolete modules.
48848         * modules/regex: Remove memcmp and memmove.
48849
48850 2009-01-20  Bruno Haible  <bruno@clisp.org>
48851
48852         Make the 'link' module link on Windows NT 4.
48853         * lib/link.c (_WIN32_WINNT): Don't define.
48854         (CreateHardLinkFuncType): New type.
48855         (CreateHardLinkFunc, initialized): New variables.
48856         (initialize): New function.
48857         (link): Invoke CreateHardLink indirectly through the function pointer.
48858
48859 2009-01-20  Bruno Haible  <bruno@clisp.org>
48860
48861         Fix compilation failure on mingw.
48862         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48863
48864 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48865
48866         * doc/c-strtod.texi: Mention a couple of restrictions.
48867
48868 2009-01-20  Jim Meyering  <meyering@redhat.com>
48869
48870         gettimeofday: move more declarations out of functions
48871         * lib/gettimeofday.c: Move extern declarations of tzset and
48872         gmtime out of containing functions.  Prompted by Bruno Haible.
48873
48874 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48875
48876         regex: do not depend on obsolete modules.
48877         * modules/regex: Remove memcmp and memmove.
48878
48879 2009-01-19  Bruno Haible  <bruno@clisp.org>
48880
48881         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48882         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48883         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48884         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48885         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48886
48887 2009-01-19  Bruno Haible  <bruno@clisp.org>
48888
48889         * tests/test-link.c: Include <errno.h>.
48890         (main): Exit with code 77 when a hard link cannot be created due to
48891         the file system.
48892         * tests/test-link.sh: Skip test when a hard link cannot be created due
48893         to the file system.
48894         Suggested by Eric Blake.
48895
48896 2009-01-19  Martin Lambers  <marlam@marlam.de>
48897
48898         * modules/link-tests: New file.
48899         * tests/test-link.sh: New file.
48900         * tests/test-link.c: New file.
48901
48902 2009-01-19  Eric Blake  <ebb9@byu.net>
48903
48904         doc: mention another function added in cygwin 1.7.0
48905         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48906         Another new function in cygwin 1.7.
48907
48908 2009-01-19  Bruno Haible  <bruno@clisp.org>
48909
48910         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48911         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48912         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48913         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48914         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48915         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48916         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48917         * m4/md4.m4 (gl_MD4): Likewise.
48918         * m4/md5.m4 (gl_MD5): Likewise.
48919         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48920         * m4/sha1.m4 (gl_SHA1): Likewise.
48921         * m4/sha256.m4 (gl_SHA256): Likewise.
48922         * m4/sha512.m4 (gl_SHA512): Likewise.
48923
48924 2009-01-19  Bruno Haible  <bruno@clisp.org>
48925
48926         * modules/uniname/uniname-tests (Depends-on): Add progname.
48927         * tests/uniname/test-uninames.c: Include progname.h.
48928         (main): Call set_program_name.
48929
48930         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48931         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48932         (main): Call set_program_name.
48933
48934         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48935         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48936         (main): Call set_program_name.
48937
48938         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48939         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48940         (main): Call set_program_name.
48941
48942         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48943         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48944         (main): Call set_program_name.
48945
48946         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48947         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48948         (main): Call set_program_name.
48949
48950         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48951         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48952         (main): Call set_program_name.
48953
48954         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48955         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48956         (main): Call set_program_name.
48957
48958         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48959         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48960         (main): Call set_program_name.
48961
48962 2009-01-19  Eric Blake  <ebb9@byu.net>
48963
48964         test-unistd: test previous patch
48965         * tests/test-unistd.c: Test *_FILENO macros.
48966
48967         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48968         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48969         Guarantee a definition.
48970         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48971         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48972         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48973         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48974         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48975         Likewise.
48976         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48977         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48978         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48979         Likewise.
48980         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48981         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48982         (STDERR_FILENO): Likewise.
48983         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48984         (STDERR_FILENO): Likewise.
48985         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48986         (STDERR_FILENO): Likewise.
48987         Reported by Elbert Pol.
48988
48989 2009-01-19  Eric Blake  <ebb9@byu.net>
48990
48991         doc: mention more functions added in cygwin 1.7.0
48992         * doc/posix-functions/abort.texi (abort): Update wording related
48993         to cygwin.
48994         * doc/posix-functions/daylight.texi (daylight): Likewise.
48995         * doc/posix-functions/optarg.texi (optarg): Likewise.
48996         * doc/posix-functions/optarg.texi (opterr): Likewise.
48997         * doc/posix-functions/optarg.texi (optind): Likewise.
48998         * doc/posix-functions/optarg.texi (optopt): Likewise.
48999         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49000         worked in 1.5.x, and was withdrawn in 1.7.
49001         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49002         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49003         cygwin versions.
49004         * doc/posix-functions/perror.texi (perror): Likewise.
49005         * doc/posix-functions/printf.texi (printf): Likewise.
49006         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49007         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49008         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49009         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49010         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49011         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49012         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49013         Likewise.
49014         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49015         Likewise.
49016         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49017         this function.
49018         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49019         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49020         Likewise.
49021         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49022         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49023         * doc/posix-functions/confstr.texi (confstr): Likewise.
49024         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49025         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49026         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49027         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49028         * doc/posix-functions/fputws.texi (fputws): Likewise.
49029         * doc/posix-functions/fwide.texi (fwide): Likewise.
49030         * doc/posix-functions/getwc.texi (getwc): Likewise.
49031         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49032         * doc/posix-functions/putwc.texi (putwc): Likewise.
49033         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49034         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49035         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49036         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49037         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49038         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49039         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49040         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49041         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49042         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49043         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49044
49045 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49046
49047         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49048         * lib/ioctl.c: Include <sys/ioctl.h>.
49049
49050 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49051
49052         * modules/getdate-tests (Depends-on): Add progname.
49053         * tests/test-getdate.c: Use progname module, to avoid link errors
49054         on non-glibc systems.
49055
49056 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49057
49058         * modules/filenamecat-tests (Depends-on): Add progname.
49059         * modules/fstrcmp-tests (Depends-on): Likewise.
49060
49061         * tests/test-filenamecat.c: Use progname module, to avoid link
49062         errors on non-glibc systems.
49063         * tests/test-fstrcmp.c: Likewise.
49064
49065 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49066
49067         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49068         * lib/gettimeofday.c: Move extern declaration out of function.
49069
49070 2009-01-18  Bruno Haible  <bruno@clisp.org>
49071
49072         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49073         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49074         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49075
49076 2009-01-18  Bruno Haible  <bruno@clisp.org>
49077
49078         * lib/strftime.c (MEMPCPY): Remove unused macro.
49079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49080
49081 2009-01-18  Martin Lambers  <marlam@marlam.de>
49082
49083         New module 'link'.
49084         * lib/unistd.in.h (link): New declaration.
49085         * lib/link.c: New file.
49086         * m4/link.m4: New file.
49087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49088         HAVE_LINK.
49089         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49090         * modules/link: New file.
49091         * doc/posix-functions/link.texi: Mention the new module.
49092
49093 2009-01-18  Bruno Haible  <bruno@clisp.org>
49094
49095         * tests/test-avltree_list.c (main): Call set_program_name.
49096         * tests/test-avltree_oset.c (main): Likewise.
49097         * tests/test-obstack-printf.c: Include progname.h.
49098         (main): Call set_program_name.
49099         * tests/test-quotearg.c: Include progname.h.
49100         (main): Call set_program_name.
49101         * tests/test-xmemdup0.c: Include progname.h.
49102         (main): Call set_program_name.
49103
49104 2009-01-18  Bruno Haible  <bruno@clisp.org>
49105
49106         New module 'alphasort'.
49107         * lib/dirent.in.h (alphasort): New declaration.
49108         * lib/alphasort.c: New file, from glibc with modifications.
49109         * m4/alphasort.m4: New file.
49110         * modules/alphasort: New file.
49111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49112         HAVE_ALPHASORT.
49113         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49114         HAVE_ALPHASORT.
49115         * doc/posix-functions/alphasort.texi: Mention the new module and the
49116         portability problems.
49117
49118 2009-01-18  Bruno Haible  <bruno@clisp.org>
49119
49120         New module 'scandir'.
49121         * lib/dirent.in.h (scandir): New declaration.
49122         * lib/scandir.c: New file, from glibc with modifications.
49123         * m4/scandir.m4: New file.
49124         * modules/scandir: New file.
49125         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49126         HAVE_SCANDIR.
49127         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49128         HAVE_SCANDIR.
49129         * doc/posix-functions/scandir.texi: Mention the new module and the
49130         portability problems.
49131
49132 2009-01-17  Bruno Haible  <bruno@clisp.org>
49133
49134         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49135         Update documentation.
49136         (func_remove_suffix): Escape all dots in the suffix. Update
49137         documentation.
49138         (func_filter_filelist): Update documentation.
49139         Reported by Ralf Wildenhues.
49140
49141 2009-01-17  Bruno Haible  <bruno@clisp.org>
49142
49143         * modules/dprintf-posix-tests: New file.
49144         * tests/test-dprintf-posix.sh: New file.
49145         * tests/test-dprintf-posix.c: New file.
49146
49147         New modules 'dprintf', 'dprintf-posix'.
49148         * lib/stdio.in.h (dprintf): New declaration.
49149         * lib/dprintf.c: New file.
49150         * m4/dprintf.m4: New file.
49151         * m4/dprintf-posix.m4: New file.
49152         * modules/dprintf: New file.
49153         * modules/dprintf-posix: New file.
49154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49155         HAVE_DPRINTF, REPLACE_DPRINTF.
49156         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49157         HAVE_DPRINTF, REPLACE_DPRINTF.
49158         * doc/posix-functions/dprintf.texi: Mention the new modules.
49159
49160 2009-01-17  Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/vdprintf-posix-tests: New file.
49163         * tests/test-vdprintf-posix.sh: New file.
49164         * tests/test-vdprintf-posix.c: New file.
49165
49166         New modules 'vdprintf', 'vdprintf-posix'.
49167         * lib/stdio.in.h (vdprintf): New declaration.
49168         * lib/vdprintf.c: New file.
49169         * m4/vdprintf.m4: New file.
49170         * m4/vdprintf-posix.m4: New file.
49171         * modules/vdprintf: New file.
49172         * modules/vdprintf-posix: New file.
49173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49174         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49175         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49176         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49177         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49178
49179 2009-01-17  Bruno Haible  <bruno@clisp.org>
49180
49181         Fix replacement of fopen on mingw.
49182         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49183         mingw.
49184
49185 2009-01-17  Bruno Haible  <bruno@clisp.org>
49186
49187         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49188         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49189
49190 2009-01-17  Bruno Haible  <bruno@clisp.org>
49191
49192         Avoid test-fflush2.sh failure on mingw.
49193         * tests/test-fflush2.c: Include binary-io.h.
49194         (main): Put standard input into binary mode.
49195         * modules/fflush-tests (Depends-on): Add binary-io.
49196
49197 2009-01-17  Bruno Haible  <bruno@clisp.org>
49198
49199         * lib/wchar.in.h: In another particular situation, include only the
49200         system's <wchar.h> file.
49201         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49202         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49203         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49204
49205 2009-01-17  Bruno Haible  <bruno@clisp.org>
49206
49207         Support for stripping executables in --enable-relocatable.
49208         * build-aux/install-reloc: Expect one more argument, or an environment
49209         variable RELOC_STRIP_PROG. If set, strip the destination program and
49210         its wrapper.
49211         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49212         RELOC_STRIP_PROG.
49213         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49214         to set RELOCATABLE_STRIP.
49215         * NEWS: Mention the new Makefile requirement.
49216
49217 2009-01-17  Bruno Haible  <bruno@clisp.org>
49218
49219         * build-aux/install-reloc: Remove debugging information left over by
49220         C compiler on MacOS X.
49221
49222 2009-01-17  Bruno Haible  <bruno@clisp.org>
49223
49224         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49225         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49226         _NSGetExecutablePath.
49227
49228 2009-01-16  Jim Meyering  <meyering@redhat.com>
49229
49230         strerror: avoid warnings about discarding "const"
49231         * lib/strerror.c (rpl_strerror): Instead of returning a const
49232         string from each and every "case", use a variable, and add a single
49233         cast after the switch.
49234
49235 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49236
49237         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49238
49239 2009-01-16  Bruno Haible  <bruno@clisp.org>
49240
49241         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49242         array initializer syntax that also works in C++ mode.
49243         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49244
49245 2009-01-16  Jim Meyering  <meyering@redhat.com>
49246
49247         poll: suppress a warning
49248         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49249         to ignore "...unsigned expression < 0 is always false" warnings.
49250
49251 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49252
49253         poll: remove declarations of unused variables
49254         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49255         sockbuf and optlen.
49256
49257 2009-01-15  Bruno Haible  <bruno@clisp.org>
49258
49259         Make fflush-after-ungetc POSIX compliant on BSD systems.
49260         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49261         (clear_ungetc_buffer): Implement also for other systems.
49262         (rpl_fflush): On glibc systems, invoke
49263         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49264         clear_ungetc_buffer after fetching the stream's position, not before.
49265
49266 2009-01-15  Bruno Haible  <bruno@clisp.org>
49267
49268         Make fflush-after-ungetc POSIX compliant on glibc systems.
49269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49270         after ungetc.
49271         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49272         (rpl_fflush): On glibc systems, simply call the system's fflush
49273         function after clearing the ungetc buffer.
49274         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49275         Instead, lseek only to the end of file, then use the system's fseeko
49276         for the rest. On glibc systems, reset the EOF indicator bit.
49277
49278 2009-01-15  Jim Meyering  <meyering@redhat.com>
49279
49280         openmp.m4: revert quote-adding change, for portability to older autoconf
49281         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49282         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49283         Simon Josefsson noticed the problem when using autoconf-2.61.
49284
49285 2009-01-15  Bruno Haible  <bruno@clisp.org>
49286
49287         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49288         * tests/test-fflush2.c (ASSERT): Always fail.
49289         (main): Add two tests for fflush() after ungetc(), taking into account
49290         the Austin Group's clarification.
49291         Suggested by Eric Blake.
49292
49293 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49294
49295         mktime.m4: remove K&R-style function prototypes
49296         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49297         for the Sun C++ compiler.
49298
49299 2009-01-14  Bruno Haible  <bruno@clisp.org>
49300
49301         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49302         while including <wchar.h>.
49303         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49304         the system's <wchar.h> file.
49305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49306
49307 2009-01-14  Bruno Haible  <bruno@clisp.org>
49308
49309         * m4/csharp.m4: Don't mention gettext on the serial number line.
49310         * m4/csharpexec.m4: Likewise.
49311         * m4/eaccess.m4: Likewise.
49312         * m4/javaexec.m4: Likewise.
49313         * m4/sig_atomic_t.m4: Likewise.
49314         * m4/tmpdir.m4: Likewise.
49315         * m4/intldir.m4: Bump gettext version.
49316         * m4/lib-ld.m4: Likewise.
49317
49318 2009-01-14  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/progname.c (set_program_name): Add more comments.
49321         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49322
49323 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49324
49325         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49326         were sys/stat.h does not define it.
49327
49328 2009-01-14  Jim Meyering  <meyering@redhat.com>
49329
49330         many *.m4 files: improve m4 quoting
49331         99% of this change was performed by running the following commands:
49332         git ls-files | grep '\.m4$' | xargs perl -pi \
49333           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49334           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49335           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49336           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49337         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49338         The remainder were to add Copyright dates, increment serial numbers,
49339         undo some changes in comments, exclude m4/intl.m4, and add quotes
49340         around the "1" in ",1" where the unusual spacing prohibited the
49341         above regexps from doing the job.  For more details, see
49342         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49343         * m4/acl.m4: Modified.
49344         * m4/afs.m4: Likewise.
49345         * m4/alloca.m4: Likewise.
49346         * m4/argp.m4: Likewise.
49347         * m4/argz.m4: Likewise.
49348         * m4/atexit.m4: Likewise.
49349         * m4/bison-i18n.m4: Likewise.
49350         * m4/bison.m4: Likewise.
49351         * m4/byteswap.m4: Likewise.
49352         * m4/c-stack.m4: Likewise.
49353         * m4/c-strtod.m4: Likewise.
49354         * m4/calloc.m4: Likewise.
49355         * m4/canonicalize-lgpl.m4: Likewise.
49356         * m4/chown.m4: Likewise.
49357         * m4/clock_time.m4: Likewise.
49358         * m4/codeset.m4: Likewise.
49359         * m4/copy-file.m4: Likewise.
49360         * m4/csharp.m4: Likewise.
49361         * m4/csharpcomp.m4: Likewise.
49362         * m4/csharpexec.m4: Likewise.
49363         * m4/d-ino.m4: Likewise.
49364         * m4/d-type.m4: Likewise.
49365         * m4/dirfd.m4: Likewise.
49366         * m4/double-slash-root.m4: Likewise.
49367         * m4/eaccess.m4: Likewise.
49368         * m4/eealloc.m4: Likewise.
49369         * m4/environ.m4: Likewise.
49370         * m4/errno_h.m4: Likewise.
49371         * m4/euidaccess.m4: Likewise.
49372         * m4/execute.m4: Likewise.
49373         * m4/fatal-signal.m4: Likewise.
49374         * m4/fchdir.m4: Likewise.
49375         * m4/fcntl_h.m4: Likewise.
49376         * m4/fileblocks.m4: Likewise.
49377         * m4/filenamecat.m4: Likewise.
49378         * m4/findprog.m4: Likewise.
49379         * m4/flexmember.m4: Likewise.
49380         * m4/fnmatch.m4: Likewise.
49381         * m4/fopen.m4: Likewise.
49382         * m4/fpending.m4: Likewise.
49383         * m4/fprintf-posix.m4: Likewise.
49384         * m4/free.m4: Likewise.
49385         * m4/frexp.m4: Likewise.
49386         * m4/frexpl.m4: Likewise.
49387         * m4/fsusage.m4: Likewise.
49388         * m4/ftruncate.m4: Likewise.
49389         * m4/gc-camellia.m4: Likewise.
49390         * m4/gc-random.m4: Likewise.
49391         * m4/gc.m4: Likewise.
49392         * m4/getaddrinfo.m4: Likewise.
49393         * m4/getcwd-abort-bug.m4: Likewise.
49394         * m4/getcwd-path-max.m4: Likewise.
49395         * m4/getdate.m4: Likewise.
49396         * m4/getdomainname.m4: Likewise.
49397         * m4/getgroups.m4: Likewise.
49398         * m4/gethostname.m4: Likewise.
49399         * m4/gethrxtime.m4: Likewise.
49400         * m4/getline.m4: Likewise.
49401         * m4/getloadavg.m4: Likewise.
49402         * m4/getndelim2.m4: Likewise.
49403         * m4/getpass.m4: Likewise.
49404         * m4/gettext.m4: Likewise.
49405         * m4/gettime.m4: Likewise.
49406         * m4/gettimeofday.m4: Likewise.
49407         * m4/gnulib-common.m4: Likewise.
49408         * m4/group-member.m4: Likewise.
49409         * m4/host-os.m4: Likewise.
49410         * m4/iconv.m4: Likewise.
49411         * m4/iconv_open.m4: Likewise.
49412         * m4/inet_ntop.m4: Likewise.
49413         * m4/inet_pton.m4: Likewise.
49414         * m4/inline.m4: Likewise.
49415         * m4/intldir.m4: Likewise.
49416         * m4/intlmacosx.m4: Likewise.
49417         * m4/intmax.m4: Likewise.
49418         * m4/intmax_t.m4: Likewise.
49419         * m4/inttypes.m4: Likewise.
49420         * m4/inttypes_h.m4: Likewise.
49421         * m4/inttypes-pri.m4: Likewise.
49422         * m4/isapipe.m4: Likewise.
49423         * m4/isnand.m4: Likewise.
49424         * m4/isnanf.m4: Likewise.
49425         * m4/isnanl.m4: Likewise.
49426         * m4/javacomp.m4: Likewise.
49427         * m4/javaexec.m4: Likewise.
49428         * m4/jm-winsz1.m4: Likewise.
49429         * m4/jm-winsz2.m4: Likewise.
49430         * m4/lchown.m4: Likewise.
49431         * m4/lcmessage.m4: Likewise.
49432         * m4/ldexpl.m4: Likewise.
49433         * m4/lib-ld.m4: Likewise.
49434         * m4/lib-link.m4: Likewise.
49435         * m4/libsigsegv.m4: Likewise.
49436         * m4/link-follow.m4: Likewise.
49437         * m4/localcharset.m4: Likewise.
49438         * m4/locale-fr.m4: Likewise.
49439         * m4/locale-ja.m4: Likewise.
49440         * m4/locale-tr.m4: Likewise.
49441         * m4/locale-zh.m4: Likewise.
49442         * m4/lock.m4: Likewise.
49443         * m4/longlong.m4: Likewise.
49444         * m4/ls-mntd-fs.m4: Likewise.
49445         * m4/lstat.m4: Likewise.
49446         * m4/malloc.m4: Likewise.
49447         * m4/mathl.m4: Likewise.
49448         * m4/mbrtowc.m4: Likewise.
49449         * m4/mbstate_t.m4: Likewise.
49450         * m4/mbswidth.m4: Likewise.
49451         * m4/memchr.m4: Likewise.
49452         * m4/memcmp.m4: Likewise.
49453         * m4/memcpy.m4: Likewise.
49454         * m4/memmem.m4: Likewise.
49455         * m4/memmove.m4: Likewise.
49456         * m4/mempcpy.m4: Likewise.
49457         * m4/memrchr.m4: Likewise.
49458         * m4/memset.m4: Likewise.
49459         * m4/minmax.m4: Likewise.
49460         * m4/mkdir-slash.m4: Likewise.
49461         * m4/mkdtemp.m4: Likewise.
49462         * m4/mktime.m4: Likewise.
49463         * m4/mmap-anon.m4: Likewise.
49464         * m4/mountlist.m4: Likewise.
49465         * m4/nanosleep.m4: Likewise.
49466         * m4/nls.m4: Likewise.
49467         * m4/nocrash.m4: Likewise.
49468         * m4/open.m4: Likewise.
49469         * m4/openat.m4: Likewise.
49470         * m4/openmp.m4: Likewise.
49471         * m4/pathmax.m4: Likewise.
49472         * m4/perl.m4: Likewise.
49473         * m4/physmem.m4: Likewise.
49474         * m4/pipe.m4: Likewise.
49475         * m4/po.m4: Likewise.
49476         * m4/poll.m4: Likewise.
49477         * m4/posixtm.m4: Likewise.
49478         * m4/posixver.m4: Likewise.
49479         * m4/printf-frexp.m4: Likewise.
49480         * m4/printf-frexpl.m4: Likewise.
49481         * m4/printf-posix.m4: Likewise.
49482         * m4/printf-posix-rpl.m4: Likewise.
49483         * m4/printf.m4: Likewise.
49484         * m4/progtest.m4: Likewise.
49485         * m4/putenv.m4: Likewise.
49486         * m4/readline.m4: Likewise.
49487         * m4/readlink.m4: Likewise.
49488         * m4/readutmp.m4: Likewise.
49489         * m4/realloc.m4: Likewise.
49490         * m4/regex.m4: Likewise.
49491         * m4/relocatable.m4: Likewise.
49492         * m4/relocatable-lib.m4: Likewise.
49493         * m4/rename-dest-slash.m4: Likewise.
49494         * m4/rename.m4: Likewise.
49495         * m4/rmdir-errno.m4: Likewise.
49496         * m4/rmdir.m4: Likewise.
49497         * m4/roundf.m4: Likewise.
49498         * m4/roundl.m4: Likewise.
49499         * m4/rpmatch.m4: Likewise.
49500         * m4/save-cwd.m4: Likewise.
49501         * m4/selinux-selinux-h.m4: Likewise.
49502         * m4/setenv.m4: Likewise.
49503         * m4/settime.m4: Likewise.
49504         * m4/sig2str.m4: Likewise.
49505         * m4/sig_atomic_t.m4: Likewise.
49506         * m4/signalblocking.m4: Likewise.
49507         * m4/signbit.m4: Likewise.
49508         * m4/sigpipe.m4: Likewise.
49509         * m4/sockets.m4: Likewise.
49510         * m4/sockpfaf.m4: Likewise.
49511         * m4/st_dm_mode.m4: Likewise.
49512         * m4/stat-time.m4: Likewise.
49513         * m4/stdbool.m4: Likewise.
49514         * m4/stdint.m4: Likewise.
49515         * m4/stdint_h.m4: Likewise.
49516         * m4/stpcpy.m4: Likewise.
49517         * m4/stpncpy.m4: Likewise.
49518         * m4/strcase.m4: Likewise.
49519         * m4/strchrnul.m4: Likewise.
49520         * m4/strcspn.m4: Likewise.
49521         * m4/strdup.m4: Likewise.
49522         * m4/strftime.m4: Likewise.
49523         * m4/strndup.m4: Likewise.
49524         * m4/strnlen.m4: Likewise.
49525         * m4/strpbrk.m4: Likewise.
49526         * m4/strptime.m4: Likewise.
49527         * m4/strsep.m4: Likewise.
49528         * m4/strtod.m4: Likewise.
49529         * m4/strtoimax.m4: Likewise.
49530         * m4/strtok_r.m4: Likewise.
49531         * m4/strtol.m4: Likewise.
49532         * m4/strtoll.m4: Likewise.
49533         * m4/strtoul.m4: Likewise.
49534         * m4/strtoull.m4: Likewise.
49535         * m4/strtoumax.m4: Likewise.
49536         * m4/strverscmp.m4: Likewise.
49537         * m4/threadlib.m4: Likewise.
49538         * m4/timegm.m4: Likewise.
49539         * m4/tm_gmtoff.m4: Likewise.
49540         * m4/tmpdir.m4: Likewise.
49541         * m4/tmpfile.m4: Likewise.
49542         * m4/tzset.m4: Likewise.
49543         * m4/uintmax_t.m4: Likewise.
49544         * m4/unlinkdir.m4: Likewise.
49545         * m4/unlocked-io.m4: Likewise.
49546         * m4/uptime.m4: Likewise.
49547         * m4/userspec.m4: Likewise.
49548         * m4/utimbuf.m4: Likewise.
49549         * m4/utime.m4: Likewise.
49550         * m4/utimes-null.m4: Likewise.
49551         * m4/utimes.m4: Likewise.
49552         * m4/vararrays.m4: Likewise.
49553         * m4/vasnprintf.m4: Likewise.
49554         * m4/vfprintf-posix.m4: Likewise.
49555         * m4/vprintf-posix.m4: Likewise.
49556         * m4/wait-process.m4: Likewise.
49557         * m4/wchar_t.m4: Likewise.
49558         * m4/wint_t.m4: Likewise.
49559         * m4/write-any-file.m4: Likewise.
49560         * m4/yield.m4: Likewise.
49561
49562 2009-01-13  Bruno Haible  <bruno@clisp.org>
49563
49564         Avoid test-copy-file.sh failures when ACL support insufficient.
49565         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49566         TESTS_ENVIRONMENT.
49567         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49568         Reported by Jim Meyering.
49569
49570 2009-01-13  Bruno Haible  <bruno@clisp.org>
49571
49572         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49573         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49574         * modules/unistdio/u8-printf-parse (Files): Likewise.
49575         * modules/unistdio/u32-printf-parse (Files): Likewise.
49576         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49577
49578 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49579
49580         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49581         and m4/inttypes_h.m4 too.
49582
49583 2009-01-12  Eric Blake  <ebb9@byu.net>
49584
49585         tests: IRIX 6.2 cc can't compile -0.0 into .data
49586         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49587         rather than at compile-time.
49588         * tests/test-floorl.c (minus_zero): Likewise.
49589         * tests/test-frexpl.c (minus_zero): Likewise.
49590         * tests/test-isnan.c (minus_zerol): Likewise.
49591         * tests/test-isnanl.h (minus_zero): Likewise.
49592         * tests/test-ldexpl.c (minus_zero): Likewise.
49593         * tests/test-roundl.c (minus_zero): Likewise.
49594         * tests/test-signbit.c (minus_zerol): Likewise.
49595         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49596         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49597         * tests/test-truncl.c (minus_zero): Likewise.
49598         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49599         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49600         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49601
49602 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49603
49604         regex: fix glibc bug 9697
49605         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49606         handling.
49607
49608 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49609
49610         regex: fix glibc bug 697
49611         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49612         being NULL also if there are no backreferences.
49613
49614 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49615
49616         regex: merge glibc changes
49617         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49618         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49619         re_string_skip_chars, re_string_reconstruct): Likewise.
49620         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49621
49622 2009-01-07  Jim Meyering  <meyering@redhat.com>
49623
49624         poll: filter through cppi
49625         * lib/poll.c: Indent cpp directives to reflect nesting.
49626
49627 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49628
49629         poll: don't return uninitialized
49630         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49631
49632 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49633
49634         avoid compile failure on AIX 6.1
49635         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49636         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49637
49638 2009-01-04  Jim Meyering  <meyering@redhat.com>
49639
49640         remove duplicate inclusion of <stdio.h>
49641         * tests/test-fprintf-posix.c: Likewise.
49642         * tests/test-printf-posix.c: Likewise.
49643         * tests/test-snprintf-posix.c: Likewise.
49644         * tests/test-sprintf-posix.c: Likewise.
49645         * tests/test-vasprintf-posix.c: Likewise.
49646         * tests/test-vfprintf-posix.c: Likewise.
49647         * tests/test-vprintf-posix.c: Likewise.
49648         * tests/test-vsnprintf-posix.c: Likewise.
49649         * tests/test-vsprintf-posix.c: Likewise.
49650
49651 2009-01-03  Jim Meyering  <meyering@redhat.com>
49652
49653         gnulib-tool: fix sed-based filtering
49654         * gnulib-tool (func_filter_filelist): Remove extra backslash
49655         in sed_fff_filter definition.
49656
49657 2009-01-02  Jim Meyering  <meyering@redhat.com>
49658
49659         strftime: avoid compilation failure on Solaris 2.6
49660         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49661         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49662         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49663         be available.  Reported by Tom G. Christensen.  Details in
49664         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49665
49666 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49667             Bruno Haible  <bruno@clisp.org>
49668
49669         Speed up gnulib-tool by doing more string processing through shell
49670         built-ins.
49671         * gnulib-tool (fast_func_append): New variable.
49672         (func_remove_prefix, func_remove_suffix): New functions.
49673         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49674         (func_filter_filelist): New function.
49675         (func_get_dependencies): Use func_remove_suffix instead of sed.
49676         (func_get_automake_snippet): Use func_filter_filelist instead of a
49677         subshell and sed invocation.
49678
49679 2009-01-01  Bruno Haible  <bruno@clisp.org>
49680
49681         Fix a security bug.
49682         * gnulib-tool (func_import, import, update): Don't allow the characters
49683         '"', '$', '`', '\' in macro arguments that become part of commands that
49684         are evaluated.
49685
49686 2009-01-01  Bruno Haible  <bruno@clisp.org>
49687
49688         * gnulib-tool (func_reset_sigpipe): Add more comments.
49689
49690 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49691
49692         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49693         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49694         already know the answer.
49695
49696 2009-01-01  Jim Meyering  <meyering@redhat.com>
49697
49698         * lib/version-etc.c (version_etc_va): Update copyright year.
49699
49700 2008-12-30  Bruno Haible  <bruno@clisp.org>
49701
49702         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49703         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49704         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49705
49706 2008-12-29  Eric Blake  <ebb9@byu.net>
49707
49708         multiarch: avoid autoconf AC_REQUIRE bug
49709         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49710         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49711         2.63 and older.
49712         Reported by Bruno Haible, and analyzed in
49713         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49714
49715 2008-12-29  Bruno Haible  <bruno@clisp.org>
49716
49717         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49718         files in subdirectories correctly.
49719         Reported by Ralf Wildenhues.
49720
49721 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49722
49723         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49724         rather than 'join FILE -', for Solaris join.
49725
49726 2008-12-29  Bruno Haible  <bruno@clisp.org>
49727
49728         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49729         quoting.
49730         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49731         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49732         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49733         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49734         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49735         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49736         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49737         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49738         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49739         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49740         * m4/nls.m4 (AM_NLS): Likewise.
49741         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49742         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49743         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49744         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49745         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49746         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49747         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49748         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49749         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49750         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49751         * m4/xsize.m4 (gl_XSIZE): Likewise.
49752         Suggested by Jim Meyering.
49753
49754 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49755
49756         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49757         * lib/parse-duration.c: use a switch instead of cascading if's.
49758
49759 2008-12-29  Eric Blake  <ebb9@byu.net>
49760
49761         wchar.h: supply WEOF on Irix 5.3
49762         * lib/wchar.in.h (wint_t): Also supply WEOF.
49763         * lib/wctype.in.h (wint_t): Likewise.
49764         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49765         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49766         Reported by Tom G. Christensen.
49767
49768 2008-12-26  Bruno Haible  <bruno@clisp.org>
49769
49770         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49771         i486, i586, i686.
49772
49773 2008-12-26  Bruno Haible  <bruno@clisp.org>
49774
49775         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49776
49777 2008-12-26  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49780         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49781         not __STDC_CONSTANT_MACROS.
49782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49783
49784 2008-12-25  Bruno Haible  <bruno@clisp.org>
49785
49786         Add support for universal builds to vasnprintf.
49787         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49788         universal builds, guess no.
49789         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49790         * modules/vasprintf-posix (Depends-on): Likewise.
49791         * modules/fprintf-posix (Depends-on): Likewise.
49792         * modules/vfprintf-posix (Depends-on): Likewise.
49793         * modules/snprintf-posix (Depends-on): Likewise.
49794         * modules/vsnprintf-posix (Depends-on): Likewise.
49795         * modules/sprintf-posix (Depends-on): Likewise.
49796         * modules/vsprintf-posix (Depends-on): Likewise.
49797         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49798         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49799         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49800         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49801         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49802         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49803         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49804
49805         Add support for universal builds to <inttypes.h>.
49806         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49807         _SCNu64_PREFIX): In Apple
49808         universal builds, define directly, using _LP64.
49809         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49810         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49811         * modules/inttypes (Depends-on): Add multiarch.
49812         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49813
49814         Add support for universal builds to <stdint.h>.
49815         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49816         universal builds, define directly, using _LP64.
49817         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49818         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49819         and size_t.
49820         * modules/stdint (Depends-on): Add multiarch.
49821         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49822
49823         New module 'multiarch'.
49824         * modules/multiarch: New file.
49825         * m4/multiarch.m4: New file.
49826
49827 2008-12-25  Bruno Haible  <bruno@clisp.org>
49828
49829         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49830
49831 2008-12-25  Bruno Haible  <bruno@clisp.org>
49832
49833         * modules/btowc (License): Relicense under LGPLv2+.
49834         * modules/mbsinit (License): Likewise.
49835         * modules/mbrtowc (License): Likewise.
49836         * modules/wcrtomb (License): Likewise.
49837         * modules/streq (License): Likewise.
49838         Reported by David Lutterkort <lutter@redhat.com>.
49839
49840 2008-12-23  Bruno Haible  <bruno@clisp.org>
49841
49842         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49843
49844 2008-12-23  Bruno Haible  <bruno@clisp.org>
49845
49846         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49848         GETADDRINFO_LIB, not in LIBS.
49849         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49850         * modules/canon-host (Link): Likewise.
49851         * NEWS: Mention the change.
49852         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49853         GETADDRINFO_LIB.
49854
49855 2008-12-22  Bruno Haible  <bruno@clisp.org>
49856
49857         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49858         * doc/posix-functions/iswalpha_l.texi: Likewise.
49859         * doc/posix-functions/iswblank_l.texi: Likewise.
49860         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49861         * doc/posix-functions/iswctype_l.texi: Likewise.
49862         * doc/posix-functions/iswdigit_l.texi: Likewise.
49863         * doc/posix-functions/iswgraph_l.texi: Likewise.
49864         * doc/posix-functions/iswlower_l.texi: Likewise.
49865         * doc/posix-functions/iswprint_l.texi: Likewise.
49866         * doc/posix-functions/iswpunct_l.texi: Likewise.
49867         * doc/posix-functions/iswspace_l.texi: Likewise.
49868         * doc/posix-functions/iswupper_l.texi: Likewise.
49869         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49870         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49871         * doc/posix-functions/open_wmemstream.texi: Likewise.
49872         * doc/posix-functions/swscanf.texi: Likewise.
49873         * doc/posix-functions/towctrans_l.texi: Likewise.
49874         * doc/posix-functions/towlower.texi: Likewise.
49875         * doc/posix-functions/towlower_l.texi: Likewise.
49876         * doc/posix-functions/towupper.texi: Likewise.
49877         * doc/posix-functions/towupper_l.texi: Likewise.
49878         * doc/posix-functions/vfwprintf.texi: Likewise.
49879         * doc/posix-functions/vfwscanf.texi: Likewise.
49880         * doc/posix-functions/vswscanf.texi: Likewise.
49881         * doc/posix-functions/vwprintf.texi: Likewise.
49882         * doc/posix-functions/vwscanf.texi: Likewise.
49883         * doc/posix-functions/wcpcpy.texi: Likewise.
49884         * doc/posix-functions/wcpncpy.texi: Likewise.
49885         * doc/posix-functions/wcscasecmp.texi: Likewise.
49886         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49887         * doc/posix-functions/wcscoll_l.texi: Likewise.
49888         * doc/posix-functions/wcsdup.texi: Likewise.
49889         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49890         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49891         * doc/posix-functions/wcsnlen.texi: Likewise.
49892         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49893         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49894         * doc/posix-functions/wctrans_l.texi: Likewise.
49895         * doc/posix-functions/wctype_l.texi: Likewise.
49896         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49897         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49898         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49899         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49900         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49901         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49902         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49903         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49904         * doc/glibc-functions/wcschrnul.texi: Likewise.
49905         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49906         * doc/glibc-functions/wcstod_l.texi: Likewise.
49907         * doc/glibc-functions/wcstof_l.texi: Likewise.
49908         * doc/glibc-functions/wcstol_l.texi: Likewise.
49909         * doc/glibc-functions/wcstold_l.texi: Likewise.
49910         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49911         * doc/glibc-functions/wcstoq.texi: Likewise.
49912         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49913         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49914         * doc/glibc-functions/wcstouq.texi: Likewise.
49915         * doc/glibc-functions/wmempcpy.texi: Likewise.
49916
49917 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49918             Eric Blake  <ebb9@byu.net>
49919             Paolo Bonzini  <bonzini@gnu.org>
49920             Bruno Haible  <bruno@clisp.org>
49921
49922         Make c-stack work on Haiku.
49923         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49924         (c_stack_action): Use SA_ONSTACK flag.
49925
49926 2008-12-22  Bruno Haible  <bruno@clisp.org>
49927
49928         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49929
49930 2008-12-22  Bruno Haible  <bruno@clisp.org>
49931
49932         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49933         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49934         being overridden.
49935         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49936         New macros.
49937         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49939         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49940         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49941
49942 2008-12-22  Bruno Haible  <bruno@clisp.org>
49943
49944         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49945         from test code.
49946
49947 2008-12-22  Eric Blake  <ebb9@byu.net>
49948
49949         Avoid gcc warnings on cygwin.
49950         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49951         Avoid unused variable.
49952         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49953         Likewise.
49954
49955 2008-12-22  Bruno Haible  <bruno@clisp.org>
49956
49957         Remove HAVE_MBRTOWC conditionals.
49958         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49959         (mbscasecmp): Assume mbrtowc function.
49960         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49961         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49962         * lib/mbschr.c: Include mbuiter.h unconditionally.
49963         (mbschr): Assume mbrtowc function.
49964         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49965         (mbscspn): Assume mbrtowc function.
49966         * lib/mbslen.c: Include mbuiter.h unconditionally.
49967         (mbslen): Assume mbrtowc function.
49968         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49969         (mbsncasecmp): Assume mbrtowc function.
49970         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49971         (mbsnlen): Assume mbrtowc function.
49972         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49973         (mbspbrk): Assume mbrtowc function.
49974         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49975         (mbspcasecmp): Assume mbrtowc function.
49976         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49977         (mbsrchr): Assume mbrtowc function.
49978         * lib/mbssep.c: Include mbuiter.h unconditionally.
49979         (mbssep): Assume mbrtowc function.
49980         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49981         (mbsspn): Assume mbrtowc function.
49982         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49983         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49984         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49985         (mbstok_r): Assume mbrtowc function.
49986         * lib/propername.c: Include mbuiter.h unconditionally.
49987         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49988         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49989         (trim2): Assume mbrtowc function.
49990         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49991         (mbsnwidth): Assume mbrtowc function.
49992         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49993         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49994         fallback definitions.
49995         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49996
49997 2008-12-22  Bruno Haible  <bruno@clisp.org>
49998
49999         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50000
50001 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50002
50003         * modules/regex: Request emulations for the mb*/wc* functions we need.
50004         * m4/regex.m4: Don't look for those functions here.
50005         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50006
50007 2008-12-22  Bruno Haible  <bruno@clisp.org>
50008
50009         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50010
50011 2008-12-21  Bruno Haible  <bruno@clisp.org>
50012
50013         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50014         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50015         (Include): Remove conditionalization.
50016         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50017         (Include): Remove conditionalization.
50018         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50019         (Include): Remove conditionalization.
50020         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50021         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50022         * NEWS: Mention the change.
50023         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50024         via Sergey Poznyakoff <gray@gnu.org.ua>.
50025
50026 2008-12-21  Bruno Haible  <bruno@clisp.org>
50027
50028         * MODULES.html.sh (Extended multibyte and wide character utilities
50029         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50030         wcrtomb, wcsrtombs.
50031         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50032         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50033         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50034         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50035
50036 2008-12-21  Bruno Haible  <bruno@clisp.org>
50037
50038         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50039
50040 2008-12-21  Bruno Haible  <bruno@clisp.org>
50041
50042         * modules/wcsnrtombs-tests: New file.
50043         * tests/test-wcsnrtombs1.sh: New file.
50044         * tests/test-wcsnrtombs2.sh: New file.
50045         * tests/test-wcsnrtombs3.sh: New file.
50046         * tests/test-wcsnrtombs4.sh: New file.
50047         * tests/test-wcsnrtombs.c: New file.
50048
50049         New module 'wcsnrtombs'.
50050         * lib/wchar.in.h (wcsnrtombs): New declaration.
50051         * lib/wcsnrtombs.c: New file.
50052         * lib/wcsrtombs-state.c: New file.
50053         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50054         (internal_state): Remove variable.
50055         * m4/wcsnrtombs.m4: New file.
50056         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50057         compilation units.
50058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50059         HAVE_WCSNRTOMBS.
50060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50061         HAVE_WCSNRTOMBS.
50062         * modules/wcsnrtombs: New file.
50063         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50064         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50065
50066 2008-12-21  Bruno Haible  <bruno@clisp.org>
50067
50068         * modules/wcsrtombs-tests: New file.
50069         * tests/test-wcsrtombs1.sh: New file.
50070         * tests/test-wcsrtombs2.sh: New file.
50071         * tests/test-wcsrtombs3.sh: New file.
50072         * tests/test-wcsrtombs4.sh: New file.
50073         * tests/test-wcsrtombs.c: New file.
50074
50075         New module 'wcsrtombs'.
50076         * lib/wchar.in.h (wcsrtombs): New declaration.
50077         * lib/wcsrtombs.c: New file.
50078         * m4/wcsrtombs.m4: New file.
50079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50080         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50082         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50083         * modules/wcsrtombs: New file.
50084         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50085         bugs.
50086
50087 2008-12-21  Bruno Haible  <bruno@clisp.org>
50088
50089         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50090         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50091         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50092         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50093         if not correct.
50094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50095         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50096         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50097         m4/locale-zh.m4, m4/codeset.m4.
50098         * doc/posix-functions/wcrtomb.texi: Document the bug.
50099
50100 2008-12-21  Bruno Haible  <bruno@clisp.org>
50101
50102         Work around a btowc() bug on IRIX 6.5.
50103         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50104         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50105         REPLACE_WTOBC if not.
50106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50107         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50108         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50109
50110 2008-12-21  Bruno Haible  <bruno@clisp.org>
50111
50112         * modules/wcrtomb-tests: New file.
50113         * tests/test-wcrtomb.sh: New file.
50114         * tests/test-wcrtomb.c: New file.
50115
50116         New module 'wcrtomb'.
50117         * lib/wchar.in.h (wcrtomb): New declaration.
50118         * lib/wcrtomb.c: New file.
50119         * m4/wcrtomb.m4: New file.
50120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50121         HAVE_WCRTOMB.
50122         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50123         HAVE_WCRTOMB.
50124         * modules/wcrtomb: New file.
50125         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50126
50127 2008-12-21  Bruno Haible  <bruno@clisp.org>
50128
50129         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50130         * modules/mbsrtowcs (Files): Likewise.
50131         * modules/wctob (Files): Likewise.
50132         * modules/c-strcase-tests (Files): Likewise.
50133         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50134         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50135         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50136         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50137         * modules/vasnprintf-posix-tests (Files): Likewise.
50138
50139 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50140
50141         gitlog-to-changelog: pass all command-line arguments to git-log
50142         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50143         it is sometimes convenient to filter the commits in various ways.
50144         gitlog-to-changelog only allows --since to specify a start date,
50145         but git-log itself supports many other filtering mechanisms.
50146         At the moment, I want to filter by branch name.  Rather than
50147         adding a --branch option to gitlog-to-changelog, it seems more
50148         flexible to simply pass all options directly to git-log and let
50149         git do the work.  Notice that this effectively makes --since a
50150         redundant option for gitlog-to-changelog, but removing it would
50151         require current usage to change since calls would then require
50152         an additional '--'.
50153
50154 2008-12-21  Bruno Haible  <bruno@clisp.org>
50155
50156         * modules/mbsnrtowcs-tests: New file.
50157         * tests/test-mbsnrtowcs1.sh: New file.
50158         * tests/test-mbsnrtowcs2.sh: New file.
50159         * tests/test-mbsnrtowcs3.sh: New file.
50160         * tests/test-mbsnrtowcs4.sh: New file.
50161         * tests/test-mbsnrtowcs.c: New file.
50162
50163         New module 'mbsnrtowcs'.
50164         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50165         * lib/mbsnrtowcs.c: New file.
50166         * lib/mbsrtowcs-state.c: New file.
50167         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50168         (internal_state): Remove variable.
50169         * m4/mbsnrtowcs.m4: New file.
50170         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50171         compilation units.
50172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50173         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50174         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50175         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50176         * modules/mbsnrtowcs: New file.
50177         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50178         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50179         portability problem.
50180
50181 2008-12-21  Bruno Haible  <bruno@clisp.org>
50182
50183         Work around mbsrtowcs bug.
50184         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50185         (gl_FUNC_MBSRTOWCS): Invoke it.
50186         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50187         m4/locale-zh.m4.
50188         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50189
50190 2008-12-21  Bruno Haible  <bruno@clisp.org>
50191
50192         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50193
50194 2008-12-21  Bruno Haible  <bruno@clisp.org>
50195
50196         Update doc for AIX.
50197         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50198         16-bit wchar_t type.
50199         * doc/posix-functions/btowc.texi: Likewise.
50200         * doc/posix-functions/fgetwc.texi: Likewise.
50201         * doc/posix-functions/fgetws.texi: Likewise.
50202         * doc/posix-functions/fputwc.texi: Likewise.
50203         * doc/posix-functions/fputws.texi: Likewise.
50204         * doc/posix-functions/fwide.texi: Likewise.
50205         * doc/posix-functions/fwprintf.texi: Likewise.
50206         * doc/posix-functions/fwscanf.texi: Likewise.
50207         * doc/posix-functions/getwchar.texi: Likewise.
50208         * doc/posix-functions/getwc.texi: Likewise.
50209         * doc/posix-functions/iswalnum.texi: Likewise.
50210         * doc/posix-functions/iswalpha.texi: Likewise.
50211         * doc/posix-functions/iswblank.texi: Likewise.
50212         * doc/posix-functions/iswcntrl.texi: Likewise.
50213         * doc/posix-functions/iswctype.texi: Likewise.
50214         * doc/posix-functions/iswdigit.texi: Likewise.
50215         * doc/posix-functions/iswgraph.texi: Likewise.
50216         * doc/posix-functions/iswlower.texi: Likewise.
50217         * doc/posix-functions/iswprint.texi: Likewise.
50218         * doc/posix-functions/iswpunct.texi: Likewise.
50219         * doc/posix-functions/iswspace.texi: Likewise.
50220         * doc/posix-functions/iswupper.texi: Likewise.
50221         * doc/posix-functions/iswxdigit.texi: Likewise.
50222         * doc/posix-functions/mbrtowc.texi: Likewise.
50223         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50224         * doc/posix-functions/mbstowcs.texi: Likewise.
50225         * doc/posix-functions/mbtowc.texi: Likewise.
50226         * doc/posix-functions/putwchar.texi: Likewise.
50227         * doc/posix-functions/putwc.texi: Likewise.
50228         * doc/posix-functions/swprintf.texi: Likewise.
50229         * doc/posix-functions/tolower.texi: Likewise.
50230         * doc/posix-functions/toupper.texi: Likewise.
50231         * doc/posix-functions/towctrans.texi: Likewise.
50232         * doc/posix-functions/ungetwc.texi: Likewise.
50233         * doc/posix-functions/vswprintf.texi: Likewise.
50234         * doc/posix-functions/wcrtomb.texi: Likewise.
50235         * doc/posix-functions/wcscat.texi: Likewise.
50236         * doc/posix-functions/wcschr.texi: Likewise.
50237         * doc/posix-functions/wcscmp.texi: Likewise.
50238         * doc/posix-functions/wcscoll.texi: Likewise.
50239         * doc/posix-functions/wcscpy.texi: Likewise.
50240         * doc/posix-functions/wcscspn.texi: Likewise.
50241         * doc/posix-functions/wcsftime.texi: Likewise.
50242         * doc/posix-functions/wcslen.texi: Likewise.
50243         * doc/posix-functions/wcsncat.texi: Likewise.
50244         * doc/posix-functions/wcsncmp.texi: Likewise.
50245         * doc/posix-functions/wcsncpy.texi: Likewise.
50246         * doc/posix-functions/wcspbrk.texi: Likewise.
50247         * doc/posix-functions/wcsrchr.texi: Likewise.
50248         * doc/posix-functions/wcsrtombs.texi: Likewise.
50249         * doc/posix-functions/wcsspn.texi: Likewise.
50250         * doc/posix-functions/wcsstr.texi: Likewise.
50251         * doc/posix-functions/wcstod.texi: Likewise.
50252         * doc/posix-functions/wcstof.texi: Likewise.
50253         * doc/posix-functions/wcstoimax.texi: Likewise.
50254         * doc/posix-functions/wcstok.texi: Likewise.
50255         * doc/posix-functions/wcstold.texi: Likewise.
50256         * doc/posix-functions/wcstoll.texi: Likewise.
50257         * doc/posix-functions/wcstol.texi: Likewise.
50258         * doc/posix-functions/wcstombs.texi: Likewise.
50259         * doc/posix-functions/wcstoull.texi: Likewise.
50260         * doc/posix-functions/wcstoul.texi: Likewise.
50261         * doc/posix-functions/wcstoumax.texi: Likewise.
50262         * doc/posix-functions/wcswidth.texi: Likewise.
50263         * doc/posix-functions/wcsxfrm.texi: Likewise.
50264         * doc/posix-functions/wctob.texi: Likewise.
50265         * doc/posix-functions/wctomb.texi: Likewise.
50266         * doc/posix-functions/wctrans.texi: Likewise.
50267         * doc/posix-functions/wctype.texi: Likewise.
50268         * doc/posix-functions/wcwidth.texi: Likewise.
50269         * doc/posix-functions/wmemchr.texi: Likewise.
50270         * doc/posix-functions/wmemcmp.texi: Likewise.
50271         * doc/posix-functions/wmemcpy.texi: Likewise.
50272         * doc/posix-functions/wmemmove.texi: Likewise.
50273         * doc/posix-functions/wmemset.texi: Likewise.
50274         * doc/posix-functions/wprintf.texi: Likewise.
50275         * doc/posix-functions/wscanf.texi: Likewise.
50276
50277 2008-12-21  Bruno Haible  <bruno@clisp.org>
50278
50279         Update doc for HP-UX 11.11.
50280         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50281         in HP-UX version 11.00, not in all versions of HP-UX 11.
50282         * doc/posix-functions/fwide.texi: Likewise.
50283         * doc/posix-functions/fwprintf.texi: Likewise.
50284         * doc/posix-functions/fwscanf.texi: Likewise.
50285         * doc/posix-functions/inet_ntop.texi: Likewise.
50286         * doc/posix-functions/inet_pton.texi: Likewise.
50287         * doc/posix-functions/mbrlen.texi: Likewise.
50288         * doc/posix-functions/mbrtowc.texi: Likewise.
50289         * doc/posix-functions/mbsinit.texi: Likewise.
50290         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50291         * doc/posix-functions/swprintf.texi: Likewise.
50292         * doc/posix-functions/swscanf.texi: Likewise.
50293         * doc/posix-functions/towctrans.texi: Likewise.
50294         * doc/posix-functions/vfwprintf.texi: Likewise.
50295         * doc/posix-functions/vswprintf.texi: Likewise.
50296         * doc/posix-functions/vwprintf.texi: Likewise.
50297         * doc/posix-functions/wcrtomb.texi: Likewise.
50298         * doc/posix-functions/wcsrtombs.texi: Likewise.
50299         * doc/posix-functions/wcsstr.texi: Likewise.
50300         * doc/posix-functions/wctob.texi: Likewise.
50301         * doc/posix-functions/wctrans.texi: Likewise.
50302         * doc/posix-functions/wmemchr.texi: Likewise.
50303         * doc/posix-functions/wmemcmp.texi: Likewise.
50304         * doc/posix-functions/wmemcpy.texi: Likewise.
50305         * doc/posix-functions/wmemmove.texi: Likewise.
50306         * doc/posix-functions/wmemset.texi: Likewise.
50307         * doc/posix-functions/wprintf.texi: Likewise.
50308         * doc/posix-functions/wscanf.texi: Likewise.
50309
50310 2008-12-21  Bruno Haible  <bruno@clisp.org>
50311
50312         Work around a portability problem.
50313         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50314         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50315
50316 2008-12-20  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50319         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50320         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50322         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50323
50324         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50325         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50326         set.
50327         (GNULIB_defined_mbstate_t): New macro.
50328         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50329         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50330         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50331         reuses the system's mbrtowc function but works around the bugs.
50332         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50333         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50334         macros.
50335         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50336         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50337         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50338         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50339         REPLACE_MBSINIT if mbsinit needs to be overridden.
50340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50341         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50342         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50343         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50344         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50345         m4/locale-zh.m4.
50346         (Depends): Add mbsinit.
50347         * modules/mbsinit (Depends): Add mbrtowc.
50348         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50349
50350 2008-12-20  Bruno Haible  <bruno@clisp.org>
50351
50352         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50353         so that there are no conversion errors on AIX.
50354         * tests/test-mbsrtowcs.c (main): LIkewise.
50355
50356 2008-12-20  Bruno Haible  <bruno@clisp.org>
50357
50358         Work around wctob bug on Solaris <= 9.
50359         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50360         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50362         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50363         * modules/wctob (Files): Add m4/locale-fr.m4.
50364         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50365
50366 2008-12-20  Bruno Haible  <bruno@clisp.org>
50367
50368         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50369         /dev/null.
50370         * tests/test-select-in.sh: Likewise.
50371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50372
50373 2008-12-20  Bruno Haible  <bruno@clisp.org>
50374
50375         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50376         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50377         Cygwin 1.5.x.
50378
50379 2008-12-20  Bruno Haible  <bruno@clisp.org>
50380
50381         Ensure mbstate_t is defined on HP-UX 11.11.
50382         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50383         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50384         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50385         AC_USE_SYSTEM_EXTENSIONS.
50386         * modules/fnmatch (Depends-on): Add extensions.
50387         * modules/mbrlen (Depends-on): Likewise.
50388         * modules/mbrtowc (Depends-on): Likewise.
50389         * modules/mbsinit (Depends-on): Likewise.
50390         * modules/mbsrtowcs (Depends-on): Likewise.
50391         * modules/mbswidth (Depends-on): Likewise.
50392         * modules/quotearg (Depends-on): Likewise.
50393         * modules/strftime (Depends-on): Likewise.
50394
50395 2008-12-20  Bruno Haible  <bruno@clisp.org>
50396
50397         Ensure wctob is declared on IRIX 6.5.
50398         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50399         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50400         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50402         of HAVE_WCTOB.
50403         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50404         HAVE_WCTOB.
50405         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50406
50407 2008-12-19  Bruno Haible  <bruno@clisp.org>
50408
50409         * modules/mbsrtowcs-tests: New file.
50410         * tests/test-mbsrtowcs1.sh: New file.
50411         * tests/test-mbsrtowcs2.sh: New file.
50412         * tests/test-mbsrtowcs3.sh: New file.
50413         * tests/test-mbsrtowcs4.sh: New file.
50414         * tests/test-mbsrtowcs.c: New file.
50415
50416         New module 'mbsrtowcs'.
50417         * lib/wchar.in.h (mbsrtowcs): New declaration.
50418         * lib/mbsrtowcs.c: New file.
50419         * m4/mbsrtowcs.m4: New file.
50420         * modules/mbsrtowcs: New file.
50421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50422         HAVE_MBSRTOWCS.
50423         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50424         HAVE_MBSRTOWCS.
50425         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50426
50427 2008-12-19  Bruno Haible  <bruno@clisp.org>
50428
50429         New module 'mbrlen'.
50430         * lib/wchar.in.h (mbrlen): New declaration.
50431         * lib/mbrlen.c: New file.
50432         * m4/mbrlen.m4: New file.
50433         * modules/mbrlen: New file.
50434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50435         HAVE_MBRLEN.
50436         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50437         HAVE_MBRLEN.
50438         * doc/posix-functions/mbrlen.texi: Document the new module.
50439
50440 2008-12-19  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50443         * modules/mbrtowc (Depends-on): Add verify.
50444         Suggested by Paul Eggert.
50445
50446 2008-12-18  Bruno Haible  <bruno@clisp.org>
50447
50448         * modules/mbsinit-tests: New file.
50449         * tests/test-mbsinit.sh: New file.
50450         * tests/test-mbsinit.c: New file.
50451
50452 2008-12-18  Bruno Haible  <bruno@clisp.org>
50453
50454         * modules/mbrtowc-tests: New file.
50455         * tests/test-mbrtowc1.sh: New file.
50456         * tests/test-mbrtowc2.sh: New file.
50457         * tests/test-mbrtowc3.sh: New file.
50458         * tests/test-mbrtowc4.sh: New file.
50459         * tests/test-mbrtowc.c: New file.
50460
50461         New module 'mbrtowc'.
50462         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50463         mbsinit and mbrtowc.
50464         (mbrtowc): New declaration.
50465         * lib/mbrtowc.c: New file.
50466         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50467         * modules/mbrtowc: New file.
50468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50469         HAVE_MBRTOWC.
50470         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50471         HAVE_MBRTOWC.
50472         * doc/posix-functions/mbrtowc.texi: Document the new module.
50473
50474 2008-12-18  Bruno Haible  <bruno@clisp.org>
50475
50476         New module 'wctob'.
50477         * lib/wchar.in.h (wctob): New declaration.
50478         * lib/wctob.c: New file.
50479         * m4/wctob.m4: New file.
50480         * modules/wctob: New file.
50481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50482         HAVE_WCTOB.
50483         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50484         * doc/posix-functions/wctob.texi: Document the new module.
50485
50486 2008-12-18  Bruno Haible  <bruno@clisp.org>
50487
50488         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50489         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50490
50491 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50492
50493         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50494         G. Christensen" <tgc@jupiterrise.com>.
50495
50496         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50497         G. Christensen" <tgc@jupiterrise.com>.
50498
50499         * lib/flock.c: Need to include string.h.  Reported by "Tom
50500         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50501         <ebb9@byu.net>.
50502
50503 2008-12-18  Bruno Haible  <bruno@clisp.org>
50504
50505         * m4/locale-ja.m4: New file, from GNU gettext.
50506
50507 2008-12-17  Bruno Haible  <bruno@clisp.org>
50508
50509         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50510         Suggested by Eric Blake.
50511
50512 2008-12-17  Bruno Haible  <bruno@clisp.org>
50513
50514         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50515
50516 2008-12-17  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50519         * modules/mbsinit (Depends-on): Add verify.
50520         Suggested by Paul Eggert.
50521
50522 2008-12-17  Bruno Haible  <bruno@clisp.org>
50523
50524         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50525         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50526         gl_FUNC_MBRTOWC.
50527         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50528         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50529         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50530         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50531         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50532         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50533         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50534         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50535         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50536         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50537         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50538         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50539         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50540         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50541         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50542         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50543         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50544         * modules/trim (configure.ac): Likewise.
50545
50546 2008-12-17  Bruno Haible  <bruno@clisp.org>
50547
50548         * modules/btowc-tests: New file.
50549         * tests/test-btowc1.sh: New file.
50550         * tests/test-btowc2.sh: New file.
50551         * tests/test-btowc.c: New file.
50552
50553         New module 'btowc'.
50554         * lib/wchar.in.h (btowc): New declaration.
50555         * lib/btowc.c: New file.
50556         * m4/btowc.m4: New file.
50557         * modules/btowc: New file.
50558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50559         HAVE_BTOWC.
50560         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50561         * doc/posix-functions/btowc.texi: Document the new module.
50562
50563 2008-12-17  Bruno Haible  <bruno@clisp.org>
50564
50565         New module 'mbsinit'.
50566         * lib/wchar.in.h (mbsinit): New declaration.
50567         * lib/mbsinit.c: New file.
50568         * m4/mbsinit.m4: New file.
50569         * modules/mbsinit: New file.
50570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50571         HAVE_MBSINIT.
50572         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50573         HAVE_MBSINIT.
50574         * doc/posix-functions/mbsinit.texi: Document the new module.
50575
50576 2008-12-16  Bruno Haible  <bruno@clisp.org>
50577
50578         * lib/unistd.in.h: Add comment.
50579         * tests/test-environ.c: Don't include <stdlib.h>.
50580
50581 2008-12-16  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/parse-duration.h (parse_duration): Document return value
50584         convention.
50585         * lib/parse-duration.c: Include specification header first. Add
50586         comments.
50587         (_): Remove macro.
50588         (parse_year_month_day, parse_hour_minute_second): Move side effects
50589         outside of strchr call.
50590         (parse_non_iso8601): Move side effects outside of isspace call.
50591         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50592         call.
50593
50594 2008-12-16  Bruno Haible  <bruno@clisp.org>
50595
50596         * tests/test-parse-duration.sh: Produce no output when the test
50597         succeeds.
50598
50599 2008-12-16  Bruno Haible  <bruno@clisp.org>
50600
50601         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50602         expressions.
50603
50604 2008-12-15  Bruno Haible  <bruno@clisp.org>
50605
50606         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50607         * doc/glibc-functions/flistxattr.texi: Likewise.
50608         * doc/glibc-functions/fopencookie.texi: Likewise.
50609         * doc/glibc-functions/fremovexattr.texi: Likewise.
50610         * doc/glibc-functions/fsetxattr.texi: Likewise.
50611         * doc/glibc-functions/getxattr.texi: Likewise.
50612         * doc/glibc-functions/lgetxattr.texi: Likewise.
50613         * doc/glibc-functions/listxattr.texi: Likewise.
50614         * doc/glibc-functions/llistxattr.texi: Likewise.
50615         * doc/glibc-functions/lremovexattr.texi: Likewise.
50616         * doc/glibc-functions/lsetxattr.texi: Likewise.
50617         * doc/glibc-functions/removexattr.texi: Likewise.
50618         * doc/glibc-functions/setxattr.texi: Likewise.
50619         * doc/posix-functions/open_memstream.texi: Likewise.
50620
50621 2008-12-15  Eric Blake  <ebb9@byu.net>
50622
50623         Update doc for cygwin 1.7.
50624         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50625         functions.
50626         * doc/posix-functions/fchmodat.texi: Likewise.
50627         * doc/posix-functions/fchownat.texi: Likewise.
50628         * doc/posix-functions/fdopendir.texi: Likewise.
50629         * doc/posix-functions/fmemopen.texi: Likewise.
50630         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50631         * doc/posix-functions/fstatat.texi: Likewise.
50632         * doc/posix-functions/futimens.texi: Likewise.
50633         * doc/posix-functions/gai_strerror.texi: Likewise.
50634         * doc/posix-functions/getaddrinfo.texi: Likewise.
50635         * doc/posix-functions/getnameinfo.texi: Likewise.
50636         * doc/posix-functions/if_freenameindex.texi: Likewise.
50637         * doc/posix-functions/if_indextoname.texi: Likewise.
50638         * doc/posix-functions/if_nameindex.texi: Likewise.
50639         * doc/posix-functions/if_nametoindex.texi: Likewise.
50640         * doc/posix-functions/insque.texi: Likewise.
50641         * doc/posix-functions/linkat.texi: Likewise.
50642         * doc/posix-functions/llrint.texi: Likewise.
50643         * doc/posix-functions/llrintf.texi: Likewise.
50644         * doc/posix-functions/llrintl.texi: Likewise.
50645         * doc/posix-functions/lockf.texi: Likewise.
50646         * doc/posix-functions/lrintl.texi: Likewise.
50647         * doc/posix-functions/mkdirat.texi: Likewise.
50648         * doc/posix-functions/mkfifoat.texi: Likewise.
50649         * doc/posix-functions/mknodat.texi: Likewise.
50650         * doc/posix-functions/mq_close.texi: Likewise.
50651         * doc/posix-functions/mq_getattr.texi: Likewise.
50652         * doc/posix-functions/mq_notify.texi: Likewise.
50653         * doc/posix-functions/mq_open.texi: Likewise.
50654         * doc/posix-functions/mq_receive.texi: Likewise.
50655         * doc/posix-functions/mq_send.texi: Likewise.
50656         * doc/posix-functions/mq_setattr.texi: Likewise.
50657         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50658         * doc/posix-functions/mq_timedsend.texi: Likewise.
50659         * doc/posix-functions/mq_unlink.texi: Likewise.
50660         * doc/posix-functions/open_memstream.texi: Likewise.
50661         * doc/posix-functions/openat.texi: Likewise.
50662         * doc/posix-functions/posix_fadvise.texi: Likewise.
50663         * doc/posix-functions/posix_fallocate.texi: Likewise.
50664         * doc/posix-functions/posix_madvise.texi: Likewise.
50665         * doc/posix-functions/posix_memalign.texi: Likewise.
50666         * doc/posix-functions/posix_openpt.texi: Likewise.
50667         * doc/posix-functions/readlinkat.texi: Likewise.
50668         * doc/posix-functions/remque.texi: Likewise.
50669         * doc/posix-functions/renameat.texi: Likewise.
50670         * doc/posix-functions/rintl.texi: Likewise.
50671         * doc/posix-functions/sem_unlink.texi: Likewise.
50672         * doc/posix-functions/shm_open.texi: Likewise.
50673         * doc/posix-functions/shm_unlink.texi: Likewise.
50674         * doc/posix-functions/signgam.texi: Likewise.
50675         * doc/posix-functions/sigset.texi: Likewise.
50676         * doc/posix-functions/stpcpy.texi: Likewise.
50677         * doc/posix-functions/stpncpy.texi: Likewise.
50678         * doc/posix-functions/strerror.texi: Likewise.
50679         * doc/posix-functions/strtod.texi: Likewise.
50680         * doc/posix-functions/symlinkat.texi: Likewise.
50681         * doc/posix-functions/unlinkat.texi: Likewise.
50682         * doc/posix-functions/utimensat.texi: Likewise.
50683         * doc/glibc-functions/bindresvport.texi: Likewise.
50684         * doc/glibc-functions/dn_expand.texi: Likewise.
50685         * doc/glibc-functions/exp10.texi: Likewise.
50686         * doc/glibc-functions/exp10f.texi: Likewise.
50687         * doc/glibc-functions/fgetxattr.texi: Likewise.
50688         * doc/glibc-functions/flistxattr.texi: Likewise.
50689         * doc/glibc-functions/fopencookie.texi: Likewise.
50690         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50691         * doc/glibc-functions/fremovexattr.texi: Likewise.
50692         * doc/glibc-functions/fsetxattr.texi: Likewise.
50693         * doc/glibc-functions/getifaddrs.texi: Likewise.
50694         * doc/glibc-functions/getxattr.texi: Likewise.
50695         * doc/glibc-functions/lgetxattr.texi: Likewise.
50696         * doc/glibc-functions/listxattr.texi: Likewise.
50697         * doc/glibc-functions/llistxattr.texi: Likewise.
50698         * doc/glibc-functions/lremovexattr.texi: Likewise.
50699         * doc/glibc-functions/lsetxattr.texi: Likewise.
50700         * doc/glibc-functions/pow10.texi: Likewise.
50701         * doc/glibc-functions/pow10f.texi: Likewise.
50702         * doc/glibc-functions/rcmd_af.texi: Likewise.
50703         * doc/glibc-functions/removexattr.texi: Likewise.
50704         * doc/glibc-functions/res_init.texi: Likewise.
50705         * doc/glibc-functions/res_mkquery.texi: Likewise.
50706         * doc/glibc-functions/res_query.texi: Likewise.
50707         * doc/glibc-functions/res_querydomain.texi: Likewise.
50708         * doc/glibc-functions/res_send.texi: Likewise.
50709         * doc/glibc-functions/rresvport_af.texi: Likewise.
50710         * doc/glibc-functions/setxattr.texi: Likewise.
50711         * doc/glibc-functions/strcasestr.texi: Likewise.
50712
50713 2008-12-15  Bruno Haible  <bruno@clisp.org>
50714
50715         Fix compilation error on OSF/1 4.0.
50716         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50717         <sys/time.h>, simply delegate to the system header.
50718         Reported by Daniel Richard G. <oss@teragram.com>.
50719
50720 2008-12-15  Bruno Haible  <bruno@clisp.org>
50721
50722         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50723         * doc/posix-functions/fchmodat.texi: Likewise.
50724         * doc/posix-functions/fchownat.texi: Likewise.
50725         * doc/posix-functions/fdopendir.texi: Likewise.
50726         * doc/posix-functions/fstatat.texi: Likewise.
50727         * doc/posix-functions/mkdirat.texi: Likewise.
50728         * doc/posix-functions/unlinkat.texi: Likewise.
50729
50730 2008-12-14  Bruno Haible  <bruno@clisp.org>
50731
50732         Update doc for POSIX:2008.
50733         * doc/posix-functions/faccessat.texi: New file.
50734         * doc/posix-functions/fchmodat.texi: New file.
50735         * doc/posix-functions/fchownat.texi: New file.
50736         * doc/posix-functions/fdopendir.texi: New file.
50737         * doc/posix-functions/fstatat.texi: New file.
50738         * doc/posix-functions/futimens.texi: New file.
50739         * doc/posix-functions/linkat.texi: New file.
50740         * doc/posix-functions/mkdirat.texi: New file.
50741         * doc/posix-functions/mkfifoat.texi: New file.
50742         * doc/posix-functions/mknodat.texi: New file.
50743         * doc/posix-functions/open_wmemstream.texi: New file.
50744         * doc/posix-functions/openat.texi: New file.
50745         * doc/posix-functions/psiginfo.texi: New file.
50746         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50747         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50748         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50749         * doc/posix-functions/readlinkat.texi: New file.
50750         * doc/posix-functions/renameat.texi: New file.
50751         * doc/posix-functions/strerror_l.texi: New file.
50752         * doc/posix-functions/symlinkat.texi: New file.
50753         * doc/posix-functions/unlinkat.texi: New file.
50754         * doc/posix-functions/utimensat.texi: New file.
50755         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50756
50757 2008-12-14  Bruno Haible  <bruno@clisp.org>
50758
50759         Update doc for POSIX:2008.
50760         * doc/posix-functions/alphasort.texi: Renamed from
50761         doc/glibc-functions/alphasort.texi.
50762         * doc/posix-functions/dirfd.texi: Renamed from
50763         doc/glibc-functions/dirfd.texi.
50764         * doc/posix-functions/dprintf.texi: Renamed from
50765         doc/glibc-functions/dprintf.texi.
50766         * doc/posix-functions/duplocale.texi: Renamed from
50767         doc/glibc-functions/duplocale.texi.
50768         * doc/posix-functions/fexecve.texi: Renamed from
50769         doc/glibc-functions/fexecve.texi.
50770         * doc/posix-functions/fmemopen.texi: Renamed from
50771         doc/glibc-functions/fmemopen.texi.
50772         * doc/posix-functions/freelocale.texi: Renamed from
50773         doc/glibc-functions/freelocale.texi.
50774         * doc/posix-functions/getdate_err.texi: Renamed from
50775         doc/glibc-functions/getdate_err.texi.
50776         * doc/posix-functions/isalnum_l.texi: Renamed from
50777         doc/glibc-functions/isalnum_l.texi.
50778         * doc/posix-functions/isalpha_l.texi: Renamed from
50779         doc/glibc-functions/isalpha_l.texi.
50780         * doc/posix-functions/isblank_l.texi: Renamed from
50781         doc/glibc-functions/isblank_l.texi.
50782         * doc/posix-functions/iscntrl_l.texi: Renamed from
50783         doc/glibc-functions/iscntrl_l.texi.
50784         * doc/posix-functions/isdigit_l.texi: Renamed from
50785         doc/glibc-functions/isdigit_l.texi.
50786         * doc/posix-functions/isgraph_l.texi: Renamed from
50787         doc/glibc-functions/isgraph_l.texi.
50788         * doc/posix-functions/islower_l.texi: Renamed from
50789         doc/glibc-functions/islower_l.texi.
50790         * doc/posix-functions/isprint_l.texi: Renamed from
50791         doc/glibc-functions/isprint_l.texi.
50792         * doc/posix-functions/ispunct_l.texi: Renamed from
50793         doc/glibc-functions/ispunct_l.texi.
50794         * doc/posix-functions/isspace_l.texi: Renamed from
50795         doc/glibc-functions/isspace_l.texi.
50796         * doc/posix-functions/isupper_l.texi: Renamed from
50797         doc/glibc-functions/isupper_l.texi.
50798         * doc/posix-functions/iswalnum_l.texi: Renamed from
50799         doc/glibc-functions/iswalnum_l.texi.
50800         * doc/posix-functions/iswalpha_l.texi: Renamed from
50801         doc/glibc-functions/iswalpha_l.texi.
50802         * doc/posix-functions/iswblank_l.texi: Renamed from
50803         doc/glibc-functions/iswblank_l.texi.
50804         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50805         doc/glibc-functions/iswcntrl_l.texi.
50806         * doc/posix-functions/iswctype_l.texi: Renamed from
50807         doc/glibc-functions/iswctype_l.texi.
50808         * doc/posix-functions/iswdigit_l.texi: Renamed from
50809         doc/glibc-functions/iswdigit_l.texi.
50810         * doc/posix-functions/iswgraph_l.texi: Renamed from
50811         doc/glibc-functions/iswgraph_l.texi.
50812         * doc/posix-functions/iswlower_l.texi: Renamed from
50813         doc/glibc-functions/iswlower_l.texi.
50814         * doc/posix-functions/iswprint_l.texi: Renamed from
50815         doc/glibc-functions/iswprint_l.texi.
50816         * doc/posix-functions/iswpunct_l.texi: Renamed from
50817         doc/glibc-functions/iswpunct_l.texi.
50818         * doc/posix-functions/iswspace_l.texi: Renamed from
50819         doc/glibc-functions/iswspace_l.texi.
50820         * doc/posix-functions/iswupper_l.texi: Renamed from
50821         doc/glibc-functions/iswupper_l.texi.
50822         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50823         doc/glibc-functions/iswxdigit_l.texi.
50824         * doc/posix-functions/isxdigit_l.texi: Renamed from
50825         doc/glibc-functions/isxdigit_l.texi.
50826         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50827         doc/glibc-functions/mbsnrtowcs.texi.
50828         * doc/posix-functions/mkdtemp.texi: Renamed from
50829         doc/glibc-functions/mkdtemp.texi.
50830         * doc/posix-functions/newlocale.texi: Renamed from
50831         doc/glibc-functions/newlocale.texi.
50832         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50833         doc/glibc-functions/nl_langinfo_l.texi.
50834         * doc/posix-functions/open_memstream.texi: Renamed from
50835         doc/glibc-functions/open_memstream.texi.
50836         * doc/posix-functions/opterr.texi: Renamed from
50837         doc/glibc-functions/opterr.texi.
50838         * doc/posix-functions/optind.texi: Renamed from
50839         doc/glibc-functions/optind.texi.
50840         * doc/posix-functions/optopt.texi: Renamed from
50841         doc/glibc-functions/optopt.texi.
50842         * doc/posix-functions/psignal.texi: Renamed from
50843         doc/glibc-functions/psignal.texi.
50844         * doc/posix-functions/scandir.texi: Renamed from
50845         doc/glibc-functions/scandir.texi.
50846         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50847         doc/glibc-functions/sched_get_priority_min.texi.
50848         * doc/posix-functions/signgam.texi: Renamed from
50849         doc/glibc-functions/signgam.texi.
50850         * doc/posix-functions/stpcpy.texi: Renamed from
50851         doc/glibc-functions/stpcpy.texi.
50852         * doc/posix-functions/stpncpy.texi: Renamed from
50853         doc/glibc-functions/stpncpy.texi.
50854         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50855         doc/glibc-functions/strcasecmp_l.texi.
50856         * doc/posix-functions/strcoll_l.texi: Renamed from
50857         doc/glibc-functions/strcoll_l.texi.
50858         * doc/posix-functions/strfmon_l.texi: Renamed from
50859         doc/glibc-functions/strfmon_l.texi.
50860         * doc/posix-functions/strftime_l.texi: Renamed from
50861         doc/glibc-functions/strftime_l.texi.
50862         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50863         doc/glibc-functions/strncasecmp_l.texi.
50864         * doc/posix-functions/strndup.texi: Renamed from
50865         doc/glibc-functions/strndup.texi.
50866         * doc/posix-functions/strnlen.texi: Renamed from
50867         doc/glibc-functions/strnlen.texi.
50868         * doc/posix-functions/strsignal.texi: Renamed from
50869         doc/glibc-functions/strsignal.texi.
50870         * doc/posix-functions/strxfrm_l.texi: Renamed from
50871         doc/glibc-functions/strxfrm_l.texi.
50872         * doc/posix-functions/timer_gettime.texi: Renamed from
50873         doc/glibc-functions/timer_gettime.texi.
50874         * doc/posix-functions/tolower_l.texi: Renamed from
50875         doc/glibc-functions/tolower_l.texi.
50876         * doc/posix-functions/toupper_l.texi: Renamed from
50877         doc/glibc-functions/toupper_l.texi.
50878         * doc/posix-functions/towctrans_l.texi: Renamed from
50879         doc/glibc-functions/towctrans_l.texi.
50880         * doc/posix-functions/towlower_l.texi: Renamed from
50881         doc/glibc-functions/towlower_l.texi.
50882         * doc/posix-functions/towupper_l.texi: Renamed from
50883         doc/glibc-functions/towupper_l.texi.
50884         * doc/posix-functions/uselocale.texi: Renamed from
50885         doc/glibc-functions/uselocale.texi.
50886         * doc/posix-functions/vdprintf.texi: Renamed from
50887         doc/glibc-functions/vdprintf.texi.
50888         * doc/posix-functions/wcpcpy.texi:
50889         Renamed from doc/glibc-functions/wcpcpy.texi.
50890         * doc/posix-functions/wcpncpy.texi: Renamed from
50891         doc/glibc-functions/wcpncpy.texi.
50892         * doc/posix-functions/wcscasecmp.texi: Renamed from
50893         doc/glibc-functions/wcscasecmp.texi.
50894         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50895         doc/glibc-functions/wcscasecmp_l.texi.
50896         * doc/posix-functions/wcscoll_l.texi: Renamed from
50897         doc/glibc-functions/wcscoll_l.texi.
50898         * doc/posix-functions/wcsdup.texi: Renamed from
50899         doc/glibc-functions/wcsdup.texi.
50900         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50901         doc/glibc-functions/wcsncasecmp.texi.
50902         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50903         doc/glibc-functions/wcsncasecmp_l.texi.
50904         * doc/posix-functions/wcsnlen.texi: Renamed from
50905         doc/glibc-functions/wcsnlen.texi.
50906         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50907         doc/glibc-functions/wcsnrtombs.texi.
50908         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50909         doc/glibc-functions/wcsxfrm_l.texi.
50910         * doc/posix-functions/wctrans_l.texi: Renamed from
50911         doc/glibc-functions/wctrans_l.texi.
50912         * doc/posix-functions/wctype_l.texi: Renamed from
50913         doc/glibc-functions/wctype_l.texi.
50914         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50915         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50916         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50917         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50918         these subsections.
50919         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50920         Remove sections.
50921
50922 2008-12-14  Bruno Haible  <bruno@clisp.org>
50923
50924         Update doc for POSIX:2008.
50925         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50926
50927 2008-12-14  Bruno Haible  <bruno@clisp.org>
50928
50929         Update doc for POSIX:2008.
50930         * doc/pastposix-functions/bcmp.texi: Renamed from
50931         doc/posix-functions/bcmp.texi.
50932         * doc/pastposix-functions/bcopy.texi: Renamed from
50933         doc/posix-functions/bcopy.texi.
50934         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50935         doc/posix-functions/bsd_signal.texi.
50936         * doc/pastposix-functions/bzero.texi: Renamed from
50937         doc/posix-functions/bzero.texi.
50938         * doc/pastposix-functions/ecvt.texi: Renamed from
50939         doc/posix-functions/ecvt.texi.
50940         * doc/pastposix-functions/fcvt.texi: Renamed from
50941         doc/posix-functions/fcvt.texi.
50942         * doc/pastposix-functions/ftime.texi: Renamed from
50943         doc/posix-functions/ftime.texi.
50944         * doc/pastposix-functions/gcvt.texi: Renamed from
50945         doc/posix-functions/gcvt.texi.
50946         * doc/pastposix-functions/getcontext.texi: Renamed from
50947         doc/posix-functions/getcontext.texi.
50948         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50949         doc/posix-functions/gethostbyaddr.texi.
50950         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50951         doc/posix-functions/gethostbyname.texi.
50952         * doc/pastposix-functions/getwd.texi: Renamed from
50953         doc/posix-functions/getwd.texi.
50954         * doc/pastposix-functions/h_errno.texi: Renamed from
50955         doc/posix-functions/h_errno.texi.
50956         * doc/pastposix-functions/index.texi: Renamed from
50957         doc/posix-functions/index.texi.
50958         * doc/pastposix-functions/makecontext.texi: Renamed from
50959         doc/posix-functions/makecontext.texi.
50960         * doc/pastposix-functions/mktemp.texi: Renamed from
50961         doc/posix-functions/mktemp.texi.
50962         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50963         doc/posix-functions/pthread_attr_getstackaddr.texi.
50964         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50965         doc/posix-functions/pthread_attr_setstackaddr.texi.
50966         * doc/pastposix-functions/rindex.texi: Renamed from
50967         doc/posix-functions/rindex.texi.
50968         * doc/pastposix-functions/scalb.texi: Renamed from
50969         doc/posix-functions/scalb.texi.
50970         * doc/pastposix-functions/setcontext.texi: Renamed from
50971         doc/posix-functions/setcontext.texi.
50972         * doc/pastposix-functions/swapcontext.texi: Renamed from
50973         doc/posix-functions/swapcontext.texi.
50974         * doc/pastposix-functions/ualarm.texi: Renamed from
50975         doc/posix-functions/ualarm.texi.
50976         * doc/pastposix-functions/usleep.texi: Renamed from
50977         doc/posix-functions/usleep.texi.
50978         * doc/pastposix-functions/vfork.texi: Renamed from
50979         doc/posix-functions/vfork.texi.
50980         * doc/pastposix-functions/wcswcs.texi: Renamed from
50981         doc/posix-functions/wcswcs.texi.
50982         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50983         (Function Substitutes): Update.
50984
50985 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50986
50987         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50988         m4/strerror.m4.
50989
50990 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50991             Bruno Haible  <bruno@clisp.org>
50992
50993         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50994
50995 2008-12-13  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/strtoull (Depends-on): Remove unistd.
50998
50999 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51000
51001         * modules/strtoull (Depends-on): Add stdlib.
51002
51003 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51004
51005         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51006
51007 2008-12-10  Jim Meyering  <meyering@redhat.com>
51008
51009         gl_ASSERT: don't say assertions are disabled when they're not
51010         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51011         "checking whether to enable assertions... no", when they are in
51012         fact enabled.  This is solely a bug in the output of configure.
51013         In spite of saying "no", NDEBUG was not defined in that case.
51014         Also, as noted by Eric Blake, leave assertions enabled upon
51015         --enable-assert=INVALID.
51016
51017 2008-12-10  Bruno Haible  <bruno@clisp.org>
51018
51019         Change MODULES.html to refer to POSIX:2008 where possible.
51020         * MODULES.html.sh (POSIX2008_URL): New variable.
51021         (posix_headers): Remove sys/timeb, ucontext.
51022         (posix2001_headers): New variable.
51023         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51024         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51025         index, makecontext, mktemp, pthread_attr_getstackaddr,
51026         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51027         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51028         (posix2001_functions): New variable.
51029         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51030         otherwise.
51031
51032 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51033
51034         add missing include to parse-duration.c
51035         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51036         * modules/parse-duration (Depends-on): Add xalloc.
51037
51038         fix sed script reading maint.mk
51039         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51040         (syntax-check-rules): Use it.
51041
51042 2008-12-09  Bruno Haible  <bruno@clisp.org>
51043
51044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51045         MacOS X 10.4/PowerPC.
51046         Reported by Simon Josefsson.
51047
51048 2008-12-08  Jim Meyering  <meyering@redhat.com>
51049
51050         work around mingw's lack of some S_IF definitions
51051         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51052         Reported by Simon Josefsson.
51053
51054 2008-12-08  Bruno Haible  <bruno@clisp.org>
51055
51056         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51057         applied to variables. Needed on MacOS X 10.4/PowerPC.
51058         Reported by Simon Josefsson.
51059
51060 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51061         and Eric Blake  <ebb9@byu.net>
51062
51063         assert: honor --enable-assert
51064         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51065         order to honor --enable-assert, rather than treating it as a
51066         synonym for --disable-assert.
51067
51068 2008-12-08  Jim Meyering  <meyering@redhat.com>
51069
51070         * lib/posixtm.c: Remove now-useless declaration of mktime.
51071
51072         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51073
51074 2008-12-07  Bruno Haible  <bruno@clisp.org>
51075
51076         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51077         test_once): Mark functions as static.
51078         * tests/test-tls.c (test_tls): Likewise.
51079
51080 2008-12-07  Bruno Haible  <bruno@clisp.org>
51081
51082         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51083         iconv_register_autodetect.
51084
51085 2008-12-07  Jim Meyering  <meyering@redhat.com>
51086
51087         posixtm.c: avoid a warning
51088         * lib/posixtm.c (posixtime): Don't initialize tm0.
51089         It's no longer needed to placate gcc4's -Wuninitialized,
51090         and the attempt to placate would elicit a new warning.
51091
51092         unicodeio.c: mark unused parameters
51093         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51094         (fallback_failure_callback): Likewise.
51095
51096 2008-12-07  Bruno Haible  <bruno@clisp.org>
51097
51098         * gnulib-tool (func_create_testdir): When building the tests
51099         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51100         Reported by Simon Josefsson.
51101
51102 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51103
51104         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51105
51106 2008-12-06  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51109         Suggested by Eric Blake.
51110
51111 2008-12-06  Bruno Haible  <bruno@clisp.org>
51112
51113         Fix a c-stack test failure on MacOS X.
51114         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51115         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51116         handler for SIGBUS as well.
51117         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51118         install a signal handler for SIGBUS as well.
51119         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51120
51121 2008-12-06  Bruno Haible  <bruno@clisp.org>
51122
51123         Advocacy documentation.
51124         * doc/gnulib-intro.texi (Benefits): New section.
51125         * doc/gnulib.texi: Update.
51126
51127 2008-12-06  Bruno Haible  <bruno@clisp.org>
51128
51129         Document the 'manywarnings' module.
51130         * doc/manywarnings.texi: New file.
51131         * doc/gnulib.texi: Include it.
51132
51133 2008-12-05  Eric Blake  <ebb9@byu.net>
51134
51135         tests: silence some gcc warnings
51136         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51137         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51138         type mismatches.
51139
51140 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51141             Bruno Haible  <bruno@clisp.org>
51142
51143         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51144
51145 2008-11-29  Jim Meyering  <meyering@redhat.com>
51146
51147         unicodeio.c: mark unused parameters
51148         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51149         (fallback_failure_callback): Likewise.
51150
51151         fts: fix a thinko
51152         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51153         (set_stat_type): Return S_IF*-valued "type" directly.
51154         Prompted by James Youngman's spotting a related bug.
51155         Confirmed by further testing through find.
51156
51157         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51158         * lib/fts.c (D_TYPE): Define.
51159         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51160         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51161         (s_ifmt_shift_bits): New function.
51162         (set_stat_type): New function.
51163         (fts_build): When not calling fts_stat, call set_stat_type
51164         to propagate dirent.d_type info to fts_read caller.
51165         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51166         fts_statp->st_mode type information may be valid.
51167
51168 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51169
51170         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51171         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51172         <sds@gnu.org>.
51173
51174 2008-11-20  Bruno Haible  <bruno@clisp.org>
51175
51176         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51177         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51178         INCLUDE_NEXT.
51179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51180         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51181         * modules/math (Makefile.am): Substitute
51182         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51183         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51184
51185 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51186             Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/stdint.in.h: Define all type macros so that their expansion is
51189         a single typedef'ed token. Fixes a compilation failure in Boost which
51190         does "using ::int8_t;".
51191
51192 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51193
51194         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51195         gl_MANYWARN_ALL_GCC.
51196         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51197         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51198         * modules/manywarnings: New file.
51199         * MODULES.html.sh: Mention manywarnings module.
51200
51201 2008-11-18  Bruno Haible  <bruno@clisp.org>
51202
51203         * doc/gnulib-tool.texi (Unit tests): New section.
51204
51205 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51206
51207         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51208         paths like 'lib/po/foo.po'.
51209
51210 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51211
51212         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51213         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51214
51215 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51216
51217         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51218         parameter works.
51219
51220 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51221
51222         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51223
51224 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51225
51226         * modules/parse-duration-tests: New file.
51227         * tests/test-parse-duration.sh: New file.
51228         * tests/test-parse-duration.c: New file.
51229
51230         New module 'parse-duration'.
51231         * lib/parse-duration.h: New file.
51232         * lib/parse-duration.c: New file.
51233         * modules/parse-duration: New file.
51234
51235 2008-11-17  Bruno Haible  <bruno@clisp.org>
51236
51237         * tests/test-select-out.sh: Comment out the first pipe test.
51238         Reported by Simon Josefsson.
51239
51240 2008-11-17  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51243         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51244         gl_HOSTENT.
51245
51246 2008-11-17  Bruno Haible  <bruno@clisp.org>
51247
51248         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51249         -lnetwork and -lnet. Needed for Haiku and BeOS.
51250
51251 2008-11-16  Bruno Haible  <bruno@clisp.org>
51252
51253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51254
51255 2008-11-16  Bruno Haible  <bruno@clisp.org>
51256
51257         Avoid test failure on Haiku.
51258         * tests/test-fsync.c: Include <errno.h>.
51259         (main): Don't require that fsync (0) fails.
51260
51261 2008-11-15  Bruno Haible  <bruno@clisp.org>
51262
51263         New module 'hostent'.
51264         * modules/hostent: New file.
51265         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51266
51267 2008-11-15  Bruno Haible  <bruno@clisp.org>
51268
51269         New module 'servent'.
51270         * modules/servent: New file.
51271         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51272
51273 2008-11-15  Bruno Haible  <bruno@clisp.org>
51274
51275         Avoid generating same test program with two different rules.
51276         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51277         test-frexp to test-frexp-nolibm.
51278         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51279         test-frexpl to test-frexpl-nolibm.
51280
51281 2008-11-15  Bruno Haible  <bruno@clisp.org>
51282
51283         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51284         $(FREXPL_LIBM).
51285
51286 2008-11-15  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/netdb.in.h: Activate the definitions also when the system's
51289         <netdb.h> has 'struct addrinfo'.
51290         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51291         EAI_OVERFLOW or AI_NUMERICSERV.
51292         * doc/posix-headers/netdb.texi: Document the problem.
51293
51294 2008-11-15  Bruno Haible  <bruno@clisp.org>
51295
51296         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51297
51298         Make the 'sched' module work on platforms where <sched.h> exists but
51299         is incomplete (such as Haiku).
51300         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51301         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51302         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51303         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51304         HAVE_STRUCT_SCHED_PARAM.
51305         * modules/sched (Depends-on): Add include_next.
51306         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51307         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51308         * doc/posix-headers/sched.texi: Document the issue.
51309
51310 2008-11-13  Jim Meyering  <meyering@redhat.com>
51311
51312         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51313         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51314         test would fail due to the difference in the Report bugs to ...
51315         line.  The expected address is empty, "<>", while the actual
51316         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51317
51318 2008-11-12  Bruno Haible  <bruno@clisp.org>
51319
51320         lstat: don't compile lstat.c on systems lacking lstat
51321         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51322         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51323         Reported by Daniel P. Berrange via Jim Meyering.
51324
51325 2008-11-12  Jim Meyering  <meyering@redhat.com>
51326
51327         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51328
51329 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51330
51331         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51332         instead.
51333
51334 2008-11-12  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/unicodeio.c: Include unistr.h.
51337         (utf8_wctomb): Remove function.
51338         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51339
51340 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51341
51342         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51343         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51344         <bruno@clisp.org>.
51345         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51346
51347 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51348
51349         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51350         * doc/gnulib.texi: Add section for warnings.
51351
51352 2008-11-11  Bruno Haible  <bruno@clisp.org>
51353
51354         * lib/sockets.h: Add a comment.
51355
51356 2008-11-11  Karl Berry  <karl@gnu.org>
51357
51358         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51359
51360 2008-11-11  Eric Blake  <ebb9@byu.net>
51361
51362         fdl.texi: avoid git symlinks
51363         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51364
51365 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51366
51367         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51368
51369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51370
51371         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51372         (gl_WARN_ADD): Substitute $2 if literal.
51373
51374 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51375
51376         * m4/warning.m4: Remove.
51377
51378 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51379
51380         * m4/warnings.m4: Almost complete rewrite. :-)
51381
51382 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51383
51384         * modules/warnings: New module.
51385         * m4/warnings.m4: New file.
51386         * MODULES.html.sh: Mention warnings module.
51387         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51388         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51389
51390 2008-11-10  Eric Blake  <ebb9@byu.net>
51391
51392         fdl.texi: make a symlink to the latest version
51393         * doc/standards.texi: Revert today's earlier change.
51394         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51395         * doc/fdl.texi: ...and replace this with a symlink to the newer
51396         fdl-1.3.texi.
51397
51398 2008-11-10  Bruno Haible  <bruno@clisp.org>
51399
51400         * tests/test-select-fd.c (main): Accept the result file name as fourth
51401         argument.
51402         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51403         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51404
51405 2008-11-10  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51408         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51409         as autoconf-substituted macros.
51410         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51411         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51412         gl_NETDB_H_DEFAULTS. Set these variables.
51413         * modules/netdb (Makefile.am): Substitute these variables.
51414
51415 2008-11-10  Eric Blake  <ebb9@byu.net>
51416
51417         standards.texi: include correct file for FDL 1.3
51418         * doc/standards.texi (GNU Free Documentation License): Change
51419         include file to pull in FDL 1.3, not 1.2.
51420
51421         fdl.texi: revert accidental change to license
51422         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51423
51424 2008-11-10  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51427         cross-compiling guesses also when the native compile gives no result.
51428
51429 2008-11-10  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/spawni.c (__spawni): Force variable into the stack.
51432
51433 2008-11-10  Bruno Haible  <bruno@clisp.org>
51434
51435         Add support for Haiku.
51436         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51437         glibc and BeOS, but also on Haiku.
51438         * lib/fpurge.c (fpurge): Likewise.
51439         * lib/freadable.c (freadable): Likewise.
51440         * lib/freadahead.c (freadahead): Likewise.
51441         * lib/freading.c (freading): Likewise.
51442         * lib/freadptr.c (freadptr): Likewise.
51443         * lib/freadseek.c (freadptrinc): Likewise.
51444         * lib/fseeko.c (rpl_fseeko): Likewise.
51445         * lib/fseterr.c (fseterr): Likewise.
51446         * lib/fwritable.c (fwritable): Likewise.
51447         * lib/fwriting.c (fwriting): Likewise.
51448         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51449
51450 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51451
51452         * lib/config.charset: Treat Haiku like BeOS.
51453
51454 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51455
51456         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51457         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51458
51459 2008-11-08  Bruno Haible  <bruno@clisp.org>
51460
51461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51462         AC_CACHE_CHECK.
51463
51464 2008-11-08  Bruno Haible  <bruno@clisp.org>
51465
51466         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51467
51468 2008-11-08  Bruno Haible  <bruno@clisp.org>
51469
51470         * tests/test-select-fd.c: New file.
51471         * tests/test-select-in.sh: New file.
51472         * tests/test-select-out.sh: New file.
51473         * tests/test-select-stdin.c: New file.
51474         * modules/select-tests (Files): Add the new files.
51475         (Depends-on): Add gettimeofday.
51476         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51477         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51478         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51479
51480 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51481             Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51484
51485 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51486
51487         * build-aux/pmccabe2html: Added support for C++ source files.
51488
51489 2008-11-05  Ben Pfaff  <blp@gnu.org>
51490
51491         Fix lib/close.c build on Windows.
51492         * modules/close (Files): Add lib/w32sock.h.
51493
51494 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51495
51496         Accept Bison's NEWS format.
51497         * build-aux/announce-gen (print_news_deltas): Tweak
51498         $re_prefix.
51499
51500 2008-11-04  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/random_r (Maintainer): Add glibc.
51503
51504 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51505
51506         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51507         by karl@freefriends.org (Karl Berry).
51508         * doc/alloca.texi: Likewise.
51509         * doc/c-ctype.texi: Likewise.
51510         * doc/c-strcase.texi: Likewise.
51511         * doc/c-strcaseeq.texi: Likewise.
51512         * doc/c-strcasestr.texi: Likewise.
51513         * doc/c-strstr.texi: Likewise.
51514         * doc/c-strtod.texi: Likewise.
51515         * doc/c-strtold.texi: Likewise.
51516         * doc/ctime.texi: Likewise.
51517         * doc/error.texi: Likewise.
51518         * doc/fdl.texi: Likewise.
51519         * doc/gcd.texi: Likewise.
51520         * doc/getdate.texi: Likewise.
51521         * doc/gnulib-intro.texi: Likewise.
51522         * doc/gnulib-tool.texi: Likewise.
51523         * doc/gnulib.texi: Likewise.
51524         * doc/inet_ntoa.texi: Likewise.
51525         * doc/maintain.texi: Likewise.
51526         * doc/make-stds.texi: Likewise.
51527         * doc/quote.texi: Likewise.
51528         * doc/regexprops-generic.texi: Likewise.
51529         * doc/standards.texi: Likewise.
51530         * doc/verify.texi: Likewise.
51531         * doc/visibility.texi: Likewise.
51532         * doc/gnulib.texi (GNU Free Documentation License): Include
51533         fdl-1.3.texi instead of fdl.texi.
51534
51535 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51536
51537         * doc/fdl-1.3.texi: New file, from
51538         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51539         * modules/fdl-1.3: Add.
51540         * MODULES.html.sh: Add fdl-1.3.
51541
51542 2008-11-03  Bruno Haible  <bruno@clisp.org>
51543
51544         Make determination of absolute name of header file work with AIX xlc.
51545         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51546         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51547         preprocessing.
51548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51549         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51550
51551 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51552
51553         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51554         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51555         <ludo@gnu.org>.
51556
51557 2008-11-02  Bruno Haible  <bruno@clisp.org>
51558
51559         Mark 'strpbrk' obsolete.
51560         * modules/strpbrk (Status, Notice): New sections.
51561         * modules/strtok_r (Depends-on): Add strpbrk.
51562
51563 2008-11-02  Bruno Haible  <bruno@clisp.org>
51564
51565         Mark 'strdup' obsolete.
51566         * modules/strdup (Status, Notice): New sections.
51567         * modules/findprog (Depends-on): Add strdup.
51568         * modules/getaddrinfo (Depends-on): Likewise.
51569         * modules/localename (Depends-on): Likewise.
51570         * modules/relocatable-lib (Depends-on): Likewise.
51571         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51572         * modules/relocatable-prog (Depends-on): Likewise.
51573         * modules/trim (Depends-on): Likewise.
51574         * modules/unictype/gen-ctype (Depends-on): Likewise.
51575         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51576
51577 2008-11-02  Bruno Haible  <bruno@clisp.org>
51578
51579         Mark 'strcspn' obsolete.
51580         * modules/strcspn (Status, Notice): New sections.
51581
51582 2008-11-02  Bruno Haible  <bruno@clisp.org>
51583
51584         Mark 'rmdir' obsolete.
51585         * modules/rmdir (Status, Notice): New sections.
51586         * modules/clean-temp (Depends-on): Add rmdir.
51587         * modules/openat (Depends-on): Likewise.
51588
51589 2008-11-02  Bruno Haible  <bruno@clisp.org>
51590
51591         Mark 'raise' obsolete.
51592         * modules/raise (Status, Notice): New sections.
51593         (Include): Specify <signal.h>.
51594         * modules/stdio (Depends-on): Add raise.
51595         * modules/write (Depends-on): Likewise.
51596
51597 2008-11-02  Bruno Haible  <bruno@clisp.org>
51598
51599         Mark 'memset' obsolete.
51600         * modules/memset (Status, Notice): New sections.
51601
51602 2008-11-02  Bruno Haible  <bruno@clisp.org>
51603
51604         Mark 'memmove' obsolete.
51605         * modules/memmove (Status, Notice): New sections.
51606         * modules/argp (Depends-on): Add memmove.
51607         * modules/argz (Depends-on): Likewise.
51608         * modules/canonicalize (Depends-on): Likewise.
51609         * modules/canonicalize-lgpl (Depends-on): Likewise.
51610         * modules/fts (Depends-on): Likewise.
51611         * modules/getcwd (Depends-on): Likewise.
51612         * modules/human (Depends-on): Likewise.
51613         * modules/regex (Depends-on): Likewise.
51614         * modules/striconveh (Depends-on): Likewise.
51615         * modules/trim (Depends-on): Likewise.
51616         * modules/unistr/u8-move (Depends-on): Likewise.
51617         * modules/unistr/u16-move (Depends-on): Likewise.
51618         * modules/unistr/u32-move (Depends-on): Likewise.
51619
51620 2008-11-02  Bruno Haible  <bruno@clisp.org>
51621
51622         Mark 'memcpy' obsolete.
51623         * modules/memcpy (Status, Notice): New sections.
51624
51625 2008-11-02  Bruno Haible  <bruno@clisp.org>
51626
51627         Mark 'memcmp' obsolete.
51628         * modules/memcmp (Status, Notice): New sections.
51629         * modules/argmatch (Depends-on): Add memchr.
51630         * modules/backupfile (Depends-on): Likewise.
51631         * modules/c-strcasestr (Depends-on): Likewise.
51632         * modules/crypto/des (Depends-on): Likewise.
51633         * modules/csharpcomp (Depends-on): Likewise.
51634         * modules/fnmatch (Depends-on): Likewise.
51635         * modules/git-merge-changelog (Depends-on): Likewise.
51636         * modules/isnand (Depends-on): Likewise.
51637         * modules/isnand-nolibm (Depends-on): Likewise.
51638         * modules/isnanf (Depends-on): Likewise.
51639         * modules/isnanf-nolibm (Depends-on): Likewise.
51640         * modules/isnanl (Depends-on): Likewise.
51641         * modules/isnanl-nolibm (Depends-on): Likewise.
51642         * modules/mbchar (Depends-on): Likewise.
51643         * modules/memcoll (Depends-on): Likewise.
51644         * modules/quotearg (Depends-on): Likewise.
51645         * modules/regex (Depends-on): Likewise.
51646         * modules/relocatable-prog (Depends-on): Likewise.
51647         * modules/same (Depends-on): Likewise.
51648         * modules/signbit (Depends-on): Likewise.
51649         * modules/strcasestr-simple (Depends-on): Likewise.
51650         * modules/unictype/gen-ctype (Depends-on): Likewise.
51651         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51652         * modules/uniname/uniname (Depends-on): Likewise.
51653         * modules/unistr/u8-cmp (Depends-on): Likewise.
51654
51655 2008-11-02  Bruno Haible  <bruno@clisp.org>
51656
51657         Mark 'memchr' obsolete.
51658         * modules/memchr (Status, Notice): New sections.
51659         * modules/argp (Depends-on): Add memchr.
51660         * modules/base64 (Depends-on): Likewise.
51661         * modules/c-strcasestr (Depends-on): Likewise.
51662         * modules/chdir-long (Depends-on): Likewise.
51663         * modules/fnmatch (Depends-on): Likewise.
51664         * modules/getsubopt (Depends-on): Likewise.
51665         * modules/git-merge-changelog (Depends-on): Likewise.
51666         * modules/glob (Depends-on): Likewise.
51667         * modules/strcasestr-simple (Depends-on): Likewise.
51668         * modules/strnlen (Depends-on): Likewise.
51669
51670 2008-11-02  Bruno Haible  <bruno@clisp.org>
51671
51672         Mark 'atexit' obsolete.
51673         * modules/atexit (Status, Notice): New sections.
51674         * modules/chdir-long (Depends-on): Add atexit.
51675         * modules/wait-process (Depends-on): Likewise.
51676
51677 2008-11-02  Bruno Haible  <bruno@clisp.org>
51678
51679         * gnulib-tool: New option --with-obsolete.
51680         (func_usage): Document it.
51681         (func_modules_transitive_closure): Drop obsolete dependencies if
51682         incobsolete is not true.
51683         (func_import): Read and save the incobsolete variable to the cache.
51684
51685 2008-11-02  Bruno Haible  <bruno@clisp.org>
51686
51687         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51688         * gnulib-tool: New option --extract-status.
51689         (func_usage): Document it.
51690         (sed_extract_prog): Recognize it.
51691         (func_get_status): New function.
51692
51693 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51694
51695         * modules/sockets (License): Change from LGPL to LGPLv2+.
51696
51697 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51698
51699         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51700
51701 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51702
51703         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51704         Mention times and sys_times.
51705         * modules/sys_times, modules/sys_times-tests: New modules.
51706         * modules/times, modules/times-tests: Likewise
51707         * m4/sys_times_h.m4: New file.
51708         * lib/sys_times.in.h: Likewise
51709         * lib/times.c: Likewise.
51710         * tests/test-sys_times.c: Likewise.
51711         * tests/test-times.c: Likewise.
51712         * doc/posix-headers/sys_times.texi: Update.
51713         * doc/posix-functions/times.texi: Update.
51714
51715 2008-10-28  Jim Meyering  <meyering@redhat.com>
51716
51717         * modules/tempname (Depends-on): Add lstat.
51718
51719         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51720
51721 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51722
51723         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51724         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51725         using idiom used elsewhere in gnulib.
51726
51727 2008-10-27  Jim Meyering  <meyering@redhat.com>
51728
51729         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51730
51731 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51732
51733         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51734         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51735         programs.
51736         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51737
51738 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51739
51740         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51741
51742 2008-10-27  Bruno Haible  <bruno@clisp.org>
51743
51744         * tests/test-lstat.c: Include <stdio.h>.
51745
51746 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51747
51748         * modules/lstat-tests: New module.
51749         * tests/test-lstat.c: New file.
51750
51751 2008-10-26  Jim Meyering  <meyering@redhat.com>
51752
51753         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51754
51755 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51756             Bruno Haible  <bruno@clisp.org>
51757
51758         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51759         * modules/configmake (Include): Add a note that the include must come
51760         after all system headers.
51761         * lib/javaversion.c: Include configmake.h after all other includes.
51762
51763 2008-10-26  Bruno Haible  <bruno@clisp.org>
51764
51765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51766         HAVE_STRUCT_RANDOM_DATA to 1.
51767         (gl_STDLIB_H): Simplify.
51768
51769 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51770
51771         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51772         substitute HAVE_STRUCT_RANDOM_DATA.
51773         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51774         random_data.
51775         * modules/stdlib (Makefile.am): Substitute
51776         HAVE_STRUCT_RANDOM_DATA.
51777
51778 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51779
51780         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51781         * doc/gnulib-intro.texi (Copyright): Likewise.
51782
51783 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51784
51785         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51786         findings.
51787
51788 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51789             Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/unistd.in.h: Include <winsock2.h>.
51792         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51793         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51794         Provide dummy declarations.
51795         (gethostname): Override.
51796         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51797         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51798         gl_PREREQ_SYS_H_WINSOCK2.
51799         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51800         * doc/posix-functions/gethostname.texi: More details.
51801
51802 2008-10-25  Bruno Haible  <bruno@clisp.org>
51803
51804         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51805         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51806         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51807
51808         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51809         here ...
51810         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51811         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51812         gl_UNISTD_H_DEFAULTS.
51813
51814 2008-10-25  Eric Blake  <ebb9@byu.net>
51815
51816         signbit: avoid spurious compiler failure
51817         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51818         declarations inside function.
51819
51820 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51821             Bruno Haible  <bruno@clisp.org>
51822
51823         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51824         * modules/random_r (Depends-on): Add stdint.
51825
51826 2008-10-24  Bruno Haible  <bruno@clisp.org>
51827
51828         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51829         Eggert.
51830         * modules/strerror (License): Likewise.
51831
51832 2008-10-24  Jim Meyering  <meyering@redhat.com>
51833
51834         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51835         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51836
51837 2008-10-24  Eric Blake  <ebb9@byu.net>
51838
51839         getgroups: fix compilation when getgroups is available
51840         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51841         but with <config.h> override of getgroups disabled.
51842
51843 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51844
51845         * doc/gnulib.texi (Header files): Add note about C++ problems.
51846         Explained by Bruno Haible <bruno@clisp.org>.
51847
51848 2008-10-23  Bruno Haible  <bruno@clisp.org>
51849
51850         Define a dummy SA_NODEFER macro on Interix.
51851         * lib/signal.in.h (SA_NODEFER): Define fallback.
51852         Reported by Aleksey Cheusov <cheusov@tut.by> via
51853         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51854
51855 2008-10-23  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/freadahead (License): Change to LGPLv2+.
51858         Suggested by Simon Josefsson.
51859
51860 2008-10-23  Jim Meyering  <meyering@redhat.com>
51861
51862         random_r: new module
51863         * modules/random_r: New file.
51864         * m4/random_r.m4: New file.
51865         * lib/random_r.c: New file, from glibc.
51866         * modules/random_r-tests: New file.
51867         * tests/test-random_r.c: New file.
51868         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51869          Declare.
51870         (RAND_MAX): Define.
51871         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51872         * modules/stdlib: Substitute them, too.
51873         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51874         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51875         * doc/glibc-functions/random_r.texi: Likewise.
51876         * doc/glibc-functions/setstate_r.texi: Likewise.
51877         * doc/glibc-functions/srandom_r.texi: Likewise.
51878         * config/srclist.txt: Mention it.
51879
51880 2008-10-23  David Lutterkort  <lutter@redhat.com>
51881
51882         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51883         link requirement
51884
51885 2008-10-23  Jim Meyering  <meyering@redhat.com>
51886
51887         selinux-h: mark parameters of stub functions as intentionally unused
51888         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51889         * lib/se-context.in.h: Likewise.
51890
51891 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51892
51893         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51894
51895 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51896
51897         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51898
51899 2008-10-22  Eric Blake  <ebb9@byu.net>
51900
51901         glthread/thread: avoid compiler warning
51902         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51903         Add unreachable abort to silence compiler.
51904
51905 2008-10-22  Eric Blake  <ebb9@byu.net>
51906
51907         netdb: also supply struct addrinfo for cygwin 1.5.x
51908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51909         older cygwin.
51910         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51911         cygwin.
51912         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51913
51914 2008-10-22  Bruno Haible  <bruno@clisp.org>
51915
51916         * users.txt: Update entry about pspp.
51917
51918 2008-10-21  Bruno Haible  <bruno@clisp.org>
51919
51920         Simplification.
51921         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51922         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51923
51924         Simplification.
51925         * lib/ioctl.c (ioctl): Don't undefine.
51926         * lib/socket.c (socket): Don't undefine.
51927
51928         Remove unused module indicator macros.
51929         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51930         GNULIB_$1 as a C macro.
51931
51932         * doc/posix-functions/close.texi: Undo last change.
51933         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51934         Windows platforms.
51935
51936 2008-10-21  Bruno Haible  <bruno@clisp.org>
51937
51938         Add gethostname() declaration to <unistd.h>.
51939         * lib/unistd.in.h (gethostname): New declaration.
51940         * lib/gethostname.c: Include <unistd.h>.
51941         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51942         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51944         and HAVE_GETHOSTNAME.
51945         * modules/gethostname (Depends-on): Add unistd.
51946         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51947         (Include): Specify <unistd.h>.
51948         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51949         HAVE_GETHOSTNAME.
51950         * tests/test-gethostname.c: Include <unistd.h> first.
51951
51952 2008-10-21  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51955         * modules/select-tests (Depends-on): Likewise.
51956         Reported by Simon Josefsson.
51957
51958 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51959
51960         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51961         * lib/accept.c: New file, based on winsock.c.
51962         * lib/bind.c: New file, based on winsock.c.
51963         * lib/connect.c: New file, based on winsock.c.
51964         * lib/getpeername.c: New file, based on winsock.c.
51965         * lib/getsockname.c: New file, based on winsock.c.
51966         * lib/getsockopt.c: New file, based on winsock.c.
51967         * lib/ioctl.c: New file, based on winsock.c.
51968         * lib/listen.c: New file, based on winsock.c.
51969         * lib/recv.c: New file, based on winsock.c.
51970         * lib/recvfrom.c: New file, based on winsock.c.
51971         * lib/send.c: New file, based on winsock.c.
51972         * lib/sendto.c: New file, based on winsock.c.
51973         * lib/setsockopt.c: New file, based on winsock.c.
51974         * lib/shutdown.c: New file, based on winsock.c.
51975         * lib/socket.c: New file, based on winsock.c.
51976         * lib/w32sock.h: New file, based on winsock.c.
51977         * lib/winsock.c: Remove file.
51978         * modules/accept: Likewise.
51979         * modules/bind: Likewise.
51980         * modules/connect: Likewise.
51981         * modules/getpeername: Likewise.
51982         * modules/getsockname: Likewise.
51983         * modules/getsockopt: Likewise.
51984         * modules/ioctl: Likewise.
51985         * modules/listen: Likewise.
51986         * modules/recv: Likewise.
51987         * modules/recvfrom: Likewise.
51988         * modules/send: Likewise.
51989         * modules/sendto: Likewise.
51990         * modules/setsockopt: Likewise.
51991         * modules/shutdown: Likewise.
51992         * modules/socket: Use socket.c instead of winsock.c.
51993         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51994         * doc/posix-functions/accept.texi: Doc fix.
51995         * doc/posix-functions/bind.texi: Doc fix.
51996         * doc/posix-functions/close.texi: Doc fix.
51997         * doc/posix-functions/connect.texi: Doc fix.
51998         * doc/posix-functions/getpeername.texi: Doc fix.
51999         * doc/posix-functions/getsockname.texi: Doc fix.
52000         * doc/posix-functions/getsockopt.texi: Doc fix.
52001         * doc/posix-functions/ioctl.texi: Doc fix.
52002         * doc/posix-functions/listen.texi: Doc fix.
52003         * doc/posix-functions/recv.texi: Doc fix.
52004         * doc/posix-functions/recvfrom.texi: Doc fix.
52005         * doc/posix-functions/send.texi: Doc fix.
52006         * doc/posix-functions/sendto.texi: Doc fix.
52007         * doc/posix-functions/setsockopt.texi: Doc fix.
52008         * doc/posix-functions/shutdown.texi: Doc fix.
52009         * doc/posix-functions/socket.texi: Doc fix.
52010
52011 2008-10-20  Bruno Haible  <bruno@clisp.org>
52012
52013         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52014         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52015         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52016         as an alias for SIGABRT.
52017         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52018         (sigaction): Map it to SIGABRT.
52019         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52020
52021 2008-10-20  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/fts.c: Don't include lstat.h.
52024         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52025
52026         Move the lstat() declaration to <sys/stat.h>.
52027         * lib/lstat.h: Remove file.
52028         * lib/sys_stat.in.h: Add special invocation convention.
52029         (lstat): New declaration.
52030         * lib/lstat.c (orig_lstat): New function.
52031         (rpl_lstat): Use orig_lstat instead of lstat.
52032         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52033         AC_C_INLINE. Set REPLACE_LSTAT.
52034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52035         and REPLACE_LSTAT.
52036         * modules/lstat (Files): Remove lib/lstat.h.
52037         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52038         (Include): Specify <sys/stat.h> instead of lstat.h.
52039         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52040         REPLACE_LSTAT.
52041         * NEWS: Mention the change.
52042
52043 2008-10-20  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/posix_spawn-tests: New file.
52046         * tests/test-posix_spawn3.c: New file.
52047
52048 2008-10-20  Bruno Haible  <bruno@clisp.org>
52049
52050         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52051         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52052         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52053         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52054         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52055
52056 2008-10-20  Bruno Haible  <bruno@clisp.org>
52057
52058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52059         of posix_spawn on AIX 5.3.
52060
52061 2008-10-20  Bruno Haible  <bruno@clisp.org>
52062
52063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52064
52065 2008-10-20  Bruno Haible  <bruno@clisp.org>
52066
52067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52068         of AC_LANG_PROGRAM.
52069
52070 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52071
52072         * lib/netdb.in.h: Don't define GNU specific constants until they
52073         are supported or needed.  Reported by Bruno Haible
52074         <bruno@clisp.org>.
52075
52076 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52077
52078         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52079
52080 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52081
52082         * lib/getaddrinfo.h: Remove file.
52083         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52084         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52085         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52086         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52087         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52088         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52089         * tests/test-getaddrinfo.c: Likewise.
52090         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52091         * NEWS: Mention change.
52092
52093 2008-10-19  Bruno Haible  <bruno@clisp.org>
52094
52095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52096
52097 2008-10-19  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/wait-process.c: Include simply <sys/wait.h>.
52100         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52101         WIFSTOPPED): Remove fallback definitions.
52102         * modules/wait-process (Depends-on): Add sys_wait.
52103
52104         New module 'sys_wait'.
52105         * modules/sys_wait: New file.
52106         * lib/sys_wait.in.h: New file, partially copied from
52107         lib/wait-process.c.
52108         * m4/sys_wait_h.m4: New file.
52109         * doc/posix-headers/sys_wait.texi: Mention the new module.
52110
52111 2008-10-19  Bruno Haible  <bruno@clisp.org>
52112
52113         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52114
52115 2008-10-19  Bruno Haible  <bruno@clisp.org>
52116
52117         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52118         * lib/wait-process.c (WAIT_T): Remove type.
52119         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52120         (wait_subprocess): Update.
52121
52122 2008-10-19  Bruno Haible  <bruno@clisp.org>
52123
52124         New module 'atoll'.
52125         * modules/atoll: New file.
52126         * lib/stdlib.in.h (atoll): New declaration.
52127         * lib/atoll.c: New file, from glibc with modifications.
52128         * m4/atoll.m4: New file.
52129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52130         HAVE_ATOLL.
52131         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52132         * doc/posix-functions/atoll.texi: Mention the new module.
52133
52134 2008-10-19  Bruno Haible  <bruno@clisp.org>
52135
52136         Add strtoull() declaration to <stdlib.h>.
52137         * lib/stdlib.in.h (strtoull): New declaration.
52138         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52139         Set HAVE_STRTOULL.
52140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52141         HAVE_STRTOULL.
52142         * modules/strtoull (Depends-on): Add stdlib.
52143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52144         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52145         HAVE_STRTOULL.
52146
52147 2008-10-19  Bruno Haible  <bruno@clisp.org>
52148
52149         Add strtoll() declaration to <stdlib.h>.
52150         * lib/stdlib.in.h (strtoll): New declaration.
52151         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52152         Set HAVE_STRTOLL.
52153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52154         HAVE_STRTOLL.
52155         * modules/strtoll (Depends-on): Add stdlib.
52156         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52157         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52158
52159 2008-10-19  Bruno Haible  <bruno@clisp.org>
52160
52161         * modules/bcopy (Depends-on): Add strings.
52162         (Include): Specify <strings.h>.
52163
52164 2008-10-19  Bruno Haible  <bruno@clisp.org>
52165
52166         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52167
52168 2008-10-19  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52171         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52172         mingw.
52173
52174 2008-10-19  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/atanl.c: Don't include isnanl.h.
52177         * lib/cosl.c: Likewise.
52178         * lib/ldexpl.c: Likewise.
52179         * lib/logl.c: Likewise.
52180         * lib/sinl.c: Likewise.
52181         * lib/sqrtl.c: Likewise.
52182         * lib/tanl.c: Likewise.
52183
52184         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52185         * lib/isnanf.h: Remove file.
52186         * lib/isnand.h: Remove file.
52187         * lib/isnanl.h: Remove file.
52188         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52189         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52190         macros.
52191         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52192         HAVE_ISNANF, don't define it as a C macro.
52193         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52194         HAVE_ISNAND, don't define it as a C macro.
52195         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52196         HAVE_ISNANL, don't define it as a C macro.
52197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52198         HAVE_ISNAN[FDL].
52199         * modules/isnanf (Files): Remove lib/isnanf.h.
52200         (Depends-on): Add math.
52201         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52202         (Include): Specify <math.h> instead of isnanf.h.
52203         * modules/isnand (Files): Remove lib/isnand.h.
52204         (Depends-on): Add math.
52205         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52206         (Include): Specify <math.h> instead of isnand.h.
52207         * modules/isnanl (Files): Remove lib/isnanl.h.
52208         (Depends-on): Add math.
52209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52210         (Include): Specify <math.h> instead of isnanl.h.
52211         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52212         HAVE_ISNAN[FDL].
52213         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52214         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52215         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52216         * NEWS: Mention the change.
52217
52218 2008-10-18  Bruno Haible  <bruno@clisp.org>
52219
52220         Add getusershell(), setusershell(), endusershell() declarations to
52221         <unistd.h>.
52222         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52223         declarations.
52224         * lib/getusershell.c: Include unistd.h.
52225         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52226         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52227         HAVE_GETUSERSHELL.
52228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52229         and HAVE_GETUSERSHELL.
52230         * modules/getusershell (Depends-on): Add unistd, extensions.
52231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52232         (Include): Specify <unistd.h>.
52233         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52234         HAVE_GETUSERSHELL.
52235
52236 2008-10-18  Bruno Haible  <bruno@clisp.org>
52237
52238         Add a getloadavg() declaration to <stdlib.h>.
52239         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52240         getloadavg declaration.
52241         (getloadavg): New declaration.
52242         * lib/getloadavg.c: Include <stdlib.h> first.
52243         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52244         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52245         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52247         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52248         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52250         (Include): Specify <stdlib.h>.
52251         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52252         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52253
52254 2008-10-18  Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/dirchownmod.c: Don't include lchmod.h.
52257
52258         Move the lchmod() declaration to <sys/stat.h>.
52259         * lib/lchmod.h: Remove file.
52260         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52261         (lchmod): New declaration, moved here from lib/lchown.h.
52262         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52263         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52265         and HAVE_LCHMOD.
52266         * modules/lchmod (Files): Remove lib/lchmod.h.
52267         (Depends-on): Add sys_stat, extensions.
52268         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52269         (Include): Specify <sys/stat.h> instead of lchmod.h.
52270         * modules/sys_stat (Depends-on): Add link-warning.
52271         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52272         definition of GL_LINK_WARNING.
52273         * NEWS: Mention the change.
52274
52275 2008-10-18  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/fchdir.c: Don't include dirfd.h.
52278         * lib/fts.c: Likewise.
52279         * lib/getcwd.c: Likewise.
52280         * lib/glob.c: Likewise.
52281
52282         Move the dirfd() declaration to <dirent.h>.
52283         * lib/dirfd.h: Remove file.
52284         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52285         (dirfd): New declaration.
52286         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52287         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52288         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52289         HAVE_DECL_DIRFD.
52290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52291         HAVE_DECL_DIRFD.
52292         * modules/dirfd (Files): Remove lib/dirfd.h.
52293         (Depends-on): Add dirent, extensions.
52294         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52295         (Include): Specify <dirent.h> instead of dirfd.h.
52296         * modules/dirent (Depends-on): Add link-warning.
52297         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52298         definition of GL_LINK_WARNING.
52299         * NEWS: Mention the change.
52300
52301 2008-10-18  Bruno Haible  <bruno@clisp.org>
52302
52303         Move the euidaccess() declaration to <unistd.h>.
52304         * lib/euidaccess.h: Remove file.
52305         * lib/unistd.in.h (euidaccess): New declaration.
52306         * lib/euidaccess.c: Don't include euidaccess.h.
52307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52308         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52310         and HAVE_EUIDACCESS.
52311         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52312         (Depends-on): Add unistd.
52313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52314         (Include): Specify <unistd.h> instead of euidaccess.h.
52315         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52316         HAVE_EUIDACCESS.
52317         * NEWS: Mention the change.
52318
52319 2008-10-18  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52322
52323         Move the getdomainname() declaration to <unistd.h>.
52324         * lib/getdomainname.h: Remove file.
52325         * lib/unistd.in.h (getdomainname): New declaration.
52326         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52327         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52328         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52329         HAVE_GETDOMAINNAME.
52330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52331         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52332         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52333         (Depends-on): Add unistd, extensions.
52334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52335         (Includes): Specify <unistd.h> instead of getdomainname.h.
52336         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52337         HAVE_GETDOMAINNAME.
52338         * NEWS: Mention the change.
52339
52340 2008-10-18  Bruno Haible  <bruno@clisp.org>
52341
52342         * modules/dirent: New file.
52343         * m4/dirent_h.m4: New file.
52344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52345         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52346         * modules/fchdir (Files): Remove lib/dirent.in.h.
52347         (Depends-on): Add dirent.
52348         (Makefile.am): Move rules to modules/dirent.
52349         * doc/posix-headers/dirent.texi: Mention the new module.
52350
52351 2008-10-18  Bruno Haible  <bruno@clisp.org>
52352
52353         Avoid -Wunused-parameter warnings in public gnulib header files.
52354         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52355         macro.
52356         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52357
52358 2008-10-18  Bruno Haible  <bruno@clisp.org>
52359
52360         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52361         * doc/glibc-functions/error.texi: Mention the module 'error'.
52362         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52363         * doc/glibc-functions/getdomainname.texi: Mention the module
52364         'getdomainname'.
52365         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52366         * doc/glibc-functions/getpagesize.texi: Mention the module
52367         'getpagesize'.
52368         * doc/glibc-functions/getusershell.texi: Mention the module
52369         'getusershell'.
52370         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52371         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52372         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52373         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52374         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52375         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52376         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52377         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52378         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52379         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52380         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52381         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52382         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52383         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52384
52385 2008-10-17  Bruno Haible  <bruno@clisp.org>
52386
52387         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52388         HP-UX and IRIX, use -0.0L.
52389         * tests/test-ceill.c (minus_zero): Likewise.
52390         * tests/test-floorl.c (minus_zero): Likewise.
52391         * tests/test-frexpl.c (minus_zero): Likewise.
52392         * tests/test-isnan.c (minus_zerol): Likewise.
52393         * tests/test-isnanl.h (minus_zero): Likewise.
52394         * tests/test-ldexpl.c (minus_zero): Likewise.
52395         * tests/test-roundl.c (minus_zero): Likewise.
52396         * tests/test-signbit.c (minus_zerol): Likewise.
52397         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52398         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52399         * tests/test-truncl.c (minus_zero): Likewise.
52400         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52401         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52402         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52403         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52404
52405 2008-10-17  Bruno Haible  <bruno@clisp.org>
52406
52407         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52408         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52409         that it gets activated only for gcc >= 3.0.
52410         * lib/dirent.in.h: Likewise.
52411         * lib/errno.in.h: Likewise.
52412         * lib/fcntl.in.h: Likewise.
52413         * lib/float.in.h: Likewise.
52414         * lib/iconv.in.h: Likewise.
52415         * lib/inttypes.in.h: Likewise.
52416         * lib/locale.in.h: Likewise.
52417         * lib/math.in.h: Likewise.
52418         * lib/netdb.in.h: Likewise.
52419         * lib/netinet_in.in.h: Likewise.
52420         * lib/search.in.h: Likewise.
52421         * lib/signal.in.h: Likewise.
52422         * lib/spawn.in.h: Likewise.
52423         * lib/stdarg.in.h: Likewise.
52424         * lib/stdint.in.h: Likewise.
52425         * lib/stdio.in.h: Likewise.
52426         * lib/stdlib.in.h: Likewise.
52427         * lib/string.in.h: Likewise.
52428         * lib/strings.in.h: Likewise.
52429         * lib/sys_file.in.h: Likewise.
52430         * lib/sys_ioctl.in.h: Likewise.
52431         * lib/sys_select.in.h: Likewise.
52432         * lib/sys_socket.in.h: Likewise.
52433         * lib/sys_stat.in.h: Likewise.
52434         * lib/sys_time.in.h: Likewise.
52435         * lib/sysexits.in.h: Likewise.
52436         * lib/time.in.h: Likewise.
52437         * lib/unistd.in.h: Likewise.
52438         * lib/wchar.in.h: Likewise.
52439         * lib/wctype.in.h: Likewise.
52440         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52441
52442 2008-10-17  Jim Meyering  <meyering@redhat.com>
52443
52444         ignore-value: don't depend on inline module
52445         * modules/ignore-value (Depends-on): Remove 'inline'.
52446         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52447         Suggestion from Bruno Haible.
52448
52449 2008-10-17  Bruno Haible  <bruno@clisp.org>
52450
52451         New implementation of condition variables for Win32.
52452         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52453         (gl_linked_waitqueue_t): New type.
52454         (gl_cond_t): Use it.
52455         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52456         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52457         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52458         (glthread_cond_init_func, glthread_cond_wait_func,
52459         glthread_cond_timedwait_func, glthread_cond_signal_func,
52460         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52461         Reimplemented on the basis of gl_linked_waitqueue_t.
52462         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52463         gl_waitqueue_t.
52464         (gl_rwlock_t): Update.
52465         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52466
52467 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52468
52469         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52470         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52471
52472 2008-10-17  Jim Meyering  <meyering@redhat.com>
52473
52474         ignore-value: new module
52475         * modules/ignore-value: New file.
52476         * lib/ignore-value.h: New file.
52477         * MODULES.html.sh (Compiler warning management): New section,
52478         just for this module.  More to come.
52479
52480 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52481
52482         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52483         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52484         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52485
52486 2008-10-16  Jim Meyering  <meyering@redhat.com>
52487
52488         openat-die.c: avoid 'no previous prototype' warning
52489         * lib/openat-die.c: Include "openat.h".
52490         Reported by Reuben Thomas <rrt@sc3d.org>.
52491
52492 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52493
52494         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52495         * lib/netdb.in.h: Fix typo.
52496         Reported by Bruno Haible  <bruno@clisp.org>
52497
52498         * lib/netdb.in.h: Include sys/socket.h for platforms without
52499         netdb.h, to get structures like hostent on MinGW.
52500         * modules/netdb (Depends-on): Add sys_socket.
52501
52502 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52503
52504         * modules/netdb, modules/netdb-tests: New file.
52505         * m4/netdb_h.m4: New file.
52506         * lib/netdb.in.h: Add, currently just an empty file pending
52507         definitions.
52508         * tests/test-netdb.c: New file.
52509         * doc/posix-headers/netdb.texi: Mention that we replace it if
52510         needed.
52511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52512         netdb.
52513
52514 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52515
52516         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52517         with code.
52518
52519 2008-10-13  Bruno Haible  <bruno@clisp.org>
52520
52521         * lib/glthread/cond.c (glthread_cond_wait_func,
52522         glthread_cond_timedwait_func): Add a comment.
52523
52524 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52525
52526         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52527         * tests/test-select.c: Likewise,
52528
52529 2008-10-13  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/glthread/cond.c (glthread_cond_wait_func,
52532         glthread_cond_timedwait_func): Fix variable name.
52533         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52534
52535 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52536
52537         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52539         struct sockaddr.sa_len.
52540         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52541
52542 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52543
52544         * build-aux/pmccabe2html: Add css and css_url parameters.
52545
52546 2008-10-12  Bruno Haible  <bruno@clisp.org>
52547
52548         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52549         calling aclx_get.
52550         Reported by Rainer Tammer <tammer@tammer.net>.
52551
52552 2008-10-12  Bruno Haible  <bruno@clisp.org>
52553
52554         Use msvcrt aware primitives for creation/termination of Win32 threads.
52555         * lib/glthread/thread.c: Include <process.h>.
52556         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52557         (wrapper_func): Update signature.
52558         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52559
52560 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52561             Bruno Haible  <bruno@clisp.org>
52562
52563         Provide a Win32 implementation of the 'cond' module.
52564         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52565         * lib/glthread/cond.c (glthread_cond_init_func,
52566         glthread_cond_wait_func, glthread_cond_timedwait_func,
52567         glthread_cond_signal_func, glthread_cond_broadcast_func,
52568         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52569         * modules/cond (Dependencies): Add gettimeofday.
52570
52571 2008-10-11  Bruno Haible  <bruno@clisp.org>
52572
52573         Make sleep work on older versions of mingw.
52574         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52575         only whether it exists.
52576         * doc/posix-functions/sleep.texi: Mention the problem with older
52577         versions of mingw.
52578
52579 2008-10-11  Bruno Haible  <bruno@clisp.org>
52580
52581         New module 'shutdown'.
52582         * modules/shutdown: New file.
52583         * lib/sys_socket.in.h (shutdown): New declaration.
52584         * lib/winsock.c (shutdown): New function.
52585         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52586         GNULIB_SHUTDOWN.
52587         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52588         * doc/posix-functions/shutdown.texi: Document the new module.
52589
52590 2008-10-11  Jim Meyering  <meyering@redhat.com>
52591
52592         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52593
52594 2008-10-11  Bruno Haible  <bruno@clisp.org>
52595
52596         New module 'fclose'.
52597         * modules/fclose: New file.
52598         * lib/stdio.in.h (fclose): New declaration.
52599         * lib/fclose.c: New file.
52600         * m4/fclose.m4: New file.
52601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52602         REPLACE_FCLOSE.
52603         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52604         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52605         REPLACE_FCLOSE.
52606         * modules/close (Depends-on): fclose.
52607         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52608
52609 2008-10-11  Bruno Haible  <bruno@clisp.org>
52610
52611         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52612         set errno and don't call _close.
52613
52614 2008-10-10  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52617         ACL, not afterwards. Fixes test failure on Cygwin.
52618
52619 2008-10-09  Ben Pfaff  <blp@gnu.org>
52620
52621         * build-aux/announce-gen: Fix gnulib version related part of usage
52622         message.  Die with a useful error message if no tarballs are
52623         found.
52624
52625 2008-10-10  Jim Meyering  <meyering@redhat.com>
52626
52627         bootstrap: use git's --depth=N option only if it's supported
52628         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52629         recognize the --depth option.  Reported by Pádraig Brady.
52630
52631 2008-10-09  Bruno Haible  <bruno@clisp.org>
52632
52633         New module 'ioctl'.
52634         * modules/ioctl: New file.
52635         * lib/sys_socket.in.h (ioctl): Remove declaration.
52636         * lib/winsock.c: Include <sys/ioctl.h>.
52637         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52638         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52639         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52640         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52641         * doc/posix-functions/ioctl.texi: Mention the new module.
52642
52643 2008-10-09  Bruno Haible  <bruno@clisp.org>
52644
52645         New module 'sys_ioctl'.
52646         * lib/sys_ioctl.in.h: New file.
52647         * m4/sys_ioctl_h.m4: New file.
52648         * modules/sys_ioctl: New file.
52649         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52650
52651 2008-10-09  Bruno Haible  <bruno@clisp.org>
52652
52653         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52654         * lib/winsock.c: Include <stdarg.h>.
52655         (rpl_ioctl): Change to second argument 'int' and then varargs.
52656
52657 2008-10-09  Bruno Haible  <bruno@clisp.org>
52658
52659         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52660         when the sys_socket module is present and the system has <winsock2.h>.
52661
52662 2008-10-09  Bruno Haible  <bruno@clisp.org>
52663
52664         * doc/posix-functions/close.texi: Mention module 'close' instead of
52665         module 'sys_socket'.
52666
52667 2008-10-09  Bruno Haible  <bruno@clisp.org>
52668
52669         * doc/glibc-headers/sys_ioctl.texi: New file.
52670         * doc/gnulib.texi: Include it.
52671
52672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52673             Bruno Haible  <bruno@clisp.org>
52674
52675         Combine the two replacements of 'close'.
52676         * lib/sys_socket.in.h (close): Define to a reminder to include
52677         <unistd.h>.
52678         (_gl_close_fd_maybe_socket): New declaration.
52679         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52680         * lib/winsock.c (close): Remove undefinition.
52681         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52682         needed for the gnulib module 'close'.
52683         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52684         define to an error symbol or to a warning, if suitable.
52685         * lib/close.c: Include <sys/socket.h>.
52686         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52687         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52688         UNISTD_H_HAVE_WINSOCK2_H.
52689         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52691         UNISTD_H_HAVE_WINSOCK2_H.
52692         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52693         (configure.ac): Set a module indicator.
52694         (Makefile.am): Substitute GNULIB_CLOSE.
52695         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52696         * modules/poll-tests (Depends-on): Add close.
52697         * modules/select-tests (Depends-on): Likewise.
52698
52699 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52700             Bruno Haible  <bruno@clisp.org>
52701
52702         New module 'close'.
52703         * modules/close: New file.
52704         * lib/unistd.in.h (close): Move declaration out of the
52705         FCHDIR_REPLACEMENT scope.
52706         (_gl_unregister_fd): New declaration.
52707         * lib/close.c: New file.
52708         * lib/fchdir.c (rpl_close): Remove function.
52709         * m4/close.m4: New file.
52710         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52711         close.
52712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52713         REPLACE_CLOSE.
52714         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52715         REPLACE_CLOSE.
52716         * modules/fchdir (Depends-on): Add close.
52717
52718 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52719             Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/fcntl.in.h (open): Simplify conditionals.
52722         (_gl_register_fd): New declaration.
52723         * lib/fchdir.c (rpl_open): Remove function.
52724         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52725         also.
52726         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52728         open.
52729
52730 2008-10-09  Jim Meyering  <meyering@redhat.com>
52731
52732         GNUmakefile: use the more name-space-friendly "_version"
52733         * top/GNUmakefile (_dummy): Update.
52734         (_version): Rename from "version".
52735
52736 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52737             Bruno Haible  <bruno@clisp.org>
52738
52739         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52740         rpl_close.
52741         (_gl_register_fd): New function, extracted from rpl_open.
52742         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52743         (rpl_open, rpl_opendir): Use _gl_register_fd.
52744
52745 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52746
52747         Fix organization of 'open' replacement.
52748         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52749         (gl_FUNC_OPEN): Use it.
52750         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52751
52752 2008-10-08  Bruno Haible  <bruno@clisp.org>
52753
52754         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52755
52756 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52757
52758         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52759         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52760         listen).
52761
52762 2008-10-08  Eric Blake  <ebb9@byu.net>
52763
52764         GNUmakefile: add 'make version' target
52765         * top/GNUmakefile (_curr-ver): Split version update rules...
52766         (version): ...into a target.
52767
52768 2008-10-07  Bruno Haible  <bruno@clisp.org>
52769
52770         Use a more portable replacement expression for -0.0L.
52771         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52772         instead of -0.0L. Fix m4 quotation.
52773
52774         * tests/test-signbit.c: Include <float.h>.
52775         (minus_zero): New variable.
52776         (test_signbitl): Use minus_zero instead of -zero.
52777         * modules/signbit-tests (Depends-on): Add float.
52778
52779         * tests/test-ceill.c: Include <float.h>.
52780         (zero): Remove variable.
52781         (minus_zero): New variable.
52782         (main): Use minus_zero instead of -zero.
52783         * modules/ceill-tests (Depends-on): Add float.
52784
52785         * tests/test-floorl.c: Include <float.h>.
52786         (zero): Remove variable.
52787         (minus_zero): New variable.
52788         (main): Use minus_zero instead of -zero.
52789         * modules/floorl-tests (Depends-on): Add float.
52790
52791         * tests/test-roundl.c: Include <float.h>.
52792         (zero): Remove variable.
52793         (minus_zero): New variable.
52794         (main): Use minus_zero instead of -zero.
52795         * modules/roundl-tests (Depends-on): Add float.
52796
52797         * tests/test-truncl.c: Include <float.h>.
52798         (zero): Remove variable.
52799         (minus_zero): New variable.
52800         (main): Use minus_zero instead of -zero.
52801         * modules/truncl-tests (Depends-on): Add float.
52802
52803         * tests/test-frexpl.c (zero): Remove variable.
52804         (minus_zero): New variable.
52805         (main): Use minus_zero instead of -zero.
52806         * modules/frexpl-tests (Depends-on): Add float.
52807
52808         * tests/test-isnan.c (zerol): Remove variable.
52809         (minus_zerol): New variable.
52810         (test_long_double): Use minus_zerol instead of -zerol.
52811         * modules/isnan-tests (Depends-on): Add float.
52812
52813         * tests/test-isnanl.h (zero): Remove variable.
52814         (minus_zero): New variable.
52815         (main): Use minus_zero instead of -zero.
52816         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52817         * modules/isnanl-tests (Depends-on): Add float.
52818
52819         * tests/test-ldexpl.c (zero): Remove variable.
52820         (minus_zero): New variable.
52821         (main): Use minus_zero instead of -zero.
52822         * modules/ldexpl-tests (Depends-on): Add float.
52823
52824         * tests/test-snprintf-posix.h (zerol): Remove variable.
52825         (minus_zerol): New variable.
52826         (test_function): Use minus_zerol instead of -zerol.
52827         * modules/snprintf-posix-tests (Depends-on): Add float.
52828         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52829
52830         * tests/test-sprintf-posix.h (zerol): Remove variable.
52831         (minus_zerol): New variable.
52832         (test_function): Use minus_zerol instead of -zerol.
52833         * modules/sprintf-posix-tests (Depends-on): Add float.
52834         * modules/vsprintf-posix-tests (Depends-on): Add float.
52835
52836         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52837         (minus_zerol): New variable.
52838         (test_function): Use minus_zerol instead of -zerol.
52839         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52840
52841         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52842         (minus_zerol): New variable.
52843         (test_function): Use minus_zerol instead of -zerol.
52844         * modules/vasprintf-posix-tests (Depends-on): Add float.
52845
52846 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52847
52848         * MODULES.html.sh (Support for building documentation): Mention
52849         pmccabe2html.  Sort entries.
52850
52851         Add pmccabe2html module, from gnupdf.
52852         * build-aux/pmccabe.css: New file.
52853         * build-aux/pmccabe2html: New file.
52854         * m4/pmccabe2html.m4: New file.
52855         * modules/pmccabe2html: New file.
52856
52857 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52858
52859         flock: new module
52860         * MODULES.html.sh: Add to list of modules.
52861         * lib/flock.c: flock implementation for Windows and Unix systems
52862         which have fcntl.
52863         * doc/glibc-functions/flock.texi: Update documentation.
52864         * lib/sys_file.in.h: <sys/file.h> header file.
52865         * m4/flock.m4: M4 macros.
52866         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52867         * modules/flock: flock module.
52868         * modules/flock-tests: flock tests module.
52869         * modules/sys_file: sys/file.h module.
52870         * tests/test-flock.c: test suite for flock.
52871
52872 2008-10-06  Jim Meyering  <meyering@redhat.com>
52873
52874         bootstrap: check for LT_INIT more portably still ;-)
52875         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52876         Spotted by Bruno Haible.
52877
52878 2008-10-06  Eric Blake  <ebb9@byu.net>
52879
52880         test-signbit: avoid tripping Irix cc bug on -0.0L
52881         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52882         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52883         entire testsuite consistent and avoids an Irix 6.2 bug.
52884
52885 2008-10-05  Bruno Haible  <bruno@clisp.org>
52886             Jim Meyering  <jim@meyering.net>
52887
52888         Add an option for ignoring EPIPE during close_stdout.
52889         * lib/closeout.h: Include <stdbool.h>.
52890         (close_stdout_set_ignore_EPIPE): New declaration.
52891         * lib/closeout.c: Include <stdbool.h>.
52892         (ignore_EPIPE): New variable.
52893         (close_stdout_set_ignore_EPIPE): New function.
52894         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52895         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52896         failure.
52897         * modules/closeout (Depends-on): Add stdbool.
52898
52899 2008-10-05  Bruno Haible  <bruno@clisp.org>
52900
52901         * modules/accept: New file.
52902         * modules/bind: New file.
52903         * modules/connect: New file.
52904         * modules/getpeername: New file.
52905         * modules/getsockname: New file.
52906         * modules/getsockopt: New file.
52907         * modules/listen: New file.
52908         * modules/recv: New file.
52909         * modules/recvfrom: New file.
52910         * modules/send: New file.
52911         * modules/sendto: New file.
52912         * modules/setsockopt: New file.
52913         * modules/socket: New file.
52914         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52915         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52916         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52917         the particular module is requested. Add a link warning when the
52918         particular module is not requested.
52919         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52920         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52921         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52922         the particular module is requested.
52923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52924         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52925         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52926         * modules/sys_socket (Depends-on): Add link-warning.
52927         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52928         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52929         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52930         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52931         GL_LINK_WARNING.
52932         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52933         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52934         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52935         * doc/posix-functions/getpeername.texi: Mention the new module
52936         'getpeername'.
52937         * doc/posix-functions/getsockname.texi: Mention the new module
52938         'getsockname'.
52939         * doc/posix-functions/getsockopt.texi: Mention the new module
52940         'getsockopt'.
52941         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52942         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52943         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52944         * doc/posix-functions/send.texi: Mention the new module 'send'.
52945         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52946         * doc/posix-functions/setsockopt.texi: Mention the new module
52947         'setsockopt'.
52948         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52949         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52950         listen, connect, accept.
52951         * modules/select-tests (Depends-on): Likewise.
52952
52953 2008-10-05  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/winsock.c (strerror): Remove unused #undef.
52956         (rpl_close): Remove unused local variable.
52957
52958         * modules/sys_socket (Depends-on); Add errno.
52959
52960 2008-10-05  Bruno Haible  <bruno@clisp.org>
52961
52962         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52963         (select): Add a link warning when the 'select' module is not used.
52964         * modules/sys_select (Depends-on): Add link-warning.
52965         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52966         Suggested by Paolo Bonzini.
52967
52968 2008-10-05  Jim Meyering  <meyering@redhat.com>
52969
52970         bootstrap: check for LT_INIT more portably
52971         * build-aux/bootstrap: Avoid using grep -E, since it's not
52972         portable enough.  Suggestion from Bruno Haible.
52973
52974 2008-10-05  Bruno Haible  <bruno@clisp.org>
52975
52976         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52977         as being fixed by gnulib.
52978
52979 2008-10-05  Bruno Haible  <bruno@clisp.org>
52980
52981         * modules/select-tests: New file, mostly copied from
52982         modules/sys_select-tests.
52983         * tests/test-select.c: New file, mostly copied from
52984         tests/test-sys_select.c.
52985         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52986         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52987         (Makefile.am): Remove test_sys_select_LDADD.
52988
52989         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52990         to an undefined symbol, for an error message.
52991         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52992         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52993         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52994         winsock-select.c here.
52995         * modules/sys_select (Files): Remove lib/winsock-select.c.
52996         (Depends-on): Remove alloca.
52997         (Makefile.am): Substitute GNULIB_SELECT.
52998         * modules/select: New file.
52999         * doc/posix-functions/select.texi: Update.
53000
53001 2008-10-05  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53004         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53005         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53006         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53007         getdtablesize.
53008         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53009         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53010
53011 2008-10-05  Bruno Haible  <bruno@clisp.org>
53012
53013         * modules/getdtablesize-tests: New file.
53014         * tests/test-getdtablesize.c: New file.
53015
53016         New module 'getdtablesize'.
53017         * lib/unistd.in.h (getdtablesize): New declaration.
53018         * lib/getdtablesize.c: New file.
53019         * m4/getdtablesize.m4: New file.
53020         * modules/getdtablesize: New file.
53021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53022         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53023         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53024         HAVE_GETDTABLESIZE.
53025         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53026
53027 2008-10-05  Bruno Haible  <bruno@clisp.org>
53028
53029         * modules/sched (Makefile.am): Fix typo.
53030         Reported by Simon Josefsson.
53031
53032 2008-10-05  Jim Meyering  <meyering@redhat.com>
53033
53034         bootstrap: check for LT_INIT, too
53035         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53036         are deprecated.  Suggestion from Ralf Wildenhues.
53037
53038 2008-10-05  Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53041         overriding them by ours.
53042         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53043
53044 2008-10-05  Jim Meyering  <meyering@redhat.com>
53045
53046         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53047         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53048         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53049
53050 2008-10-04  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/dup2 (License): Change to LGPLv2+.
53053         * modules/sleep (License): Likewise.
53054         * modules/perror (License): Likewise.
53055         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53056         Blake.
53057         * modules/signal (License): Likewise.
53058         * modules/sigprocmask (License): Likewise.
53059         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53060         Meyering.
53061
53062 2008-10-04  Bruno Haible  <bruno@clisp.org>
53063
53064         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53065         Reported by Rainer Tammer <tammer@tammer.net>.
53066
53067 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53068             Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53071         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53072         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53073
53074 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53075
53076         filevercmp: new module
53077         * lib/filevercmp.h: New function filevercmp comparing version strings.
53078         * lib/filevercmp.c: Implementation of filevercmp function.
53079         * modules/filevercmp: Module metadata.
53080         * tests/test-filevercmp.c: Unit test for new module.
53081         * modules/filevercmp-tests: Unit test metadata.
53082         * MODULES.html.sh: Add filevercmp module.
53083
53084 2008-10-03  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/c-ctype.h: Add comment.
53087         Reported by Jim Meyering.
53088
53089 2008-10-02  Bruno Haible  <bruno@clisp.org>
53090
53091         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53092
53093 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53094
53095         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53096         name of bootstrap.conf accordingly.
53097
53098 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53099
53100         * build-aux/bootstrap: Install git-merge-changelog configuration
53101         items into .gitconfig if needed.
53102
53103 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53104
53105         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53106         git repository, and initialize/update it accordingly.
53107
53108 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53109
53110         * modules/fsync-tests: New file.
53111         * tests/test-fsync.c: New file.
53112
53113         New module 'fsync'.
53114         * lib/fsync.c: New file.
53115         * m4/fsync.m4: New file.
53116         * modules/fsync: New file.
53117         * lib/unistd.in.h (fsync): New declaration.
53118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53119         GNULIB_FSYNC and HAVE_FSYNC.
53120         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53121         * MODULES.html.sh (posix_functions): Add fsync.
53122         * doc/posix-functions/fsync.texi: Mention the new module.
53123
53124 2008-10-02  Jim Meyering  <meyering@redhat.com>
53125
53126         fts.c: sync with similar code from coreutils' remove.c
53127         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53128         Guard also with "#if defined __linux__", since for now at least,
53129         this code is Linux-kernel-specific.
53130
53131 2008-10-02  Jim Meyering  <meyering@redhat.com>
53132
53133         fts: bug fixes
53134         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53135         Include <sys/vfs.h>, not <sys/statfs.h>.
53136
53137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53138         Include <sys/vfs.h>, not <sys/statfs.h>.
53139
53140 2008-10-01  Bruno Haible  <bruno@clisp.org>
53141
53142         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53144         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53145         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53146         * doc/posix-functions/posix_spawnp.texi: Likewise.
53147         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53148         whether posix_spawn actually works.
53149         * m4/pipe.m4 (gl_PIPE): Likewise.
53150         * modules/execute (Files): Add m4/posix_spawn.m4.
53151         * modules/pipe (Files): Add m4/posix_spawn.m4.
53152         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53153
53154 2008-10-01  Jim Meyering  <meyering@redhat.com>
53155
53156         remove trailing spaces
53157         * NEWS: Likewise.
53158         * lib/poll.c (poll): Likewise.
53159         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53160         * lib/winsock.c (rpl_close): Likewise.
53161         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53162         * modules/yield: Likewise.
53163         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53164         * tests/test-sys_select.c (connect_to_socket): Likewise.
53165
53166         fts.c: adjust a new interface to be more generally useful
53167         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53168         (fts_build): Adjust caller.
53169
53170 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53171
53172         * modules/cond-tests: New file.
53173         * tests/test-cond.c: New file.
53174
53175 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53176             Bruno Haible  <bruno@clisp.org>
53177
53178         * modules/cond (Dependencies): Add errno, time.
53179         * lib/glthread/cond.h: Include <time.h>.
53180         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53181         across platforms.
53182
53183 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53184             Bruno Haible  <bruno@clisp.org>
53185
53186         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53187
53188 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53189             Bruno Haible  <bruno@clisp.org>
53190
53191         * modules/tls-tests (Depends-on): Add thread, yield.
53192         (configure.ac): Remove all checks.
53193         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53194         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53195         gl_thread_self): Remove definitions. Include glthread/thread.h and
53196         glthread/yield.h instead.
53197         (test_tls): Pass an additional NULL argument to gl_thread_join.
53198
53199 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53200             Bruno Haible  <bruno@clisp.org>
53201
53202         * modules/lock-tests (Depends-on): Add thread, yield.
53203         (configure.ac): Remove all checks.
53204         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53205         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53206         gl_thread_self): Remove definitions. Include glthread/thread.h and
53207         glthread/yield.h instead.
53208         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53209         additional NULL argument to gl_thread_join.
53210
53211 2008-09-30  Bruno Haible  <bruno@clisp.org>
53212
53213         Fix the Win32 implementation of the 'thread' module.
53214         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53215         pointer type.
53216         (gl_thread_self): Invoke gl_thread_self_func.
53217         (gl_thread_self_func): New declaration.
53218         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53219         (do_init_self_key, init_self_key): New functions.
53220         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53221         Remove some fields.
53222         (running_threads, running_lock): Remove variables.
53223         (get_current_thread_handle): New function.
53224         (gl_thread_self_func, wrapper_func, glthread_create_func,
53225         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53226         simplified.
53227
53228 2008-09-30  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53231         files.
53232
53233 2008-09-30  Jim Meyering  <meyering@redhat.com>
53234
53235         fts.m4: correct the test for statfs.f_type
53236         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53237         when checking for statfs.f_type.
53238
53239 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53240
53241         tests: avoid some compiler warnings
53242         * tests/test-memchr.c (main): Pass NULL indirectly.
53243         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53244
53245 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53246
53247         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53248         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53249         exactly specified dayshifts.
53250         (dayshift): New rule.
53251         (rel): Add dayshift.
53252         (relative_time_table) [tomorrow, yesterday, today, now]:
53253         Use tDAY_SHIFT in place of tDAY_UNIT.
53254         * tests/test-getdate.c: Add tests for now-disallowed countable
53255         dayshifts, e.g., "4 yesterday ago".
53256
53257 2008-09-29  Bruno Haible  <bruno@clisp.org>
53258
53259         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53260         * tests/test-posix_spawn1.in.sh: Renamed from
53261         tests/test-posix_spawn.in.sh.
53262         * tests/test-posix_spawn2.c: New file.
53263         * tests/test-posix_spawn2.in.sh: New file.
53264         * modules/posix_spawnp-tests (Files): Update.
53265         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53266
53267 2008-09-29  Bruno Haible  <bruno@clisp.org>
53268
53269         Propagate effects of putenv/setenv/unsetenv to child processes.
53270         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53271         * lib/pipe.c (create_pipe): Likewise.
53272
53273 2008-09-29  Bruno Haible  <bruno@clisp.org>
53274
53275         Enable use of shell scripts as executables in mingw.
53276         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53277         run the program as a shell script.
53278         * lib/pipe.c (create_pipe): Likewise.
53279         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53280         resulting array.
53281
53282 2008-09-29  Eric Blake  <ebb9@byu.net>
53283
53284         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53285
53286 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53287
53288         * doc/posix-functions/accept.texi: Update mingw problems.
53289         * doc/posix-functions/bind.texi: Update mingw problems.
53290         * doc/posix-functions/close.texi: Update mingw problems.
53291         * doc/posix-functions/connect.texi: Update mingw problems.
53292         * doc/posix-functions/getpeername.texi: Update mingw problems.
53293         * doc/posix-functions/getsockname.texi: Update mingw problems.
53294         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53295         * doc/posix-functions/ioctl.texi: Update mingw problems.
53296         * doc/posix-functions/listen.texi: Update mingw problems.
53297         * doc/posix-functions/recv.texi: Update mingw problems.
53298         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53299         * doc/posix-functions/select.texi: Update mingw problems.
53300         * doc/posix-functions/send.texi: Update mingw problems.
53301         * doc/posix-functions/sendto.texi: Update mingw problems.
53302         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53303         * doc/posix-functions/socket.texi: Update mingw problems.
53304
53305 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53306             Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/sys_select.in.h: Include sys/time.h.
53309         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53310         * modules/sys_select: Depend on sys_time.
53311         * tests/test-sys_select.c: Test that sys/select.h defines struct
53312         timeval fully.
53313
53314 2008-09-29  Bruno Haible  <bruno@clisp.org>
53315
53316         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53317         * lib/sys_select.in.h: Likewise.
53318
53319 2008-09-29  Bruno Haible  <bruno@clisp.org>
53320
53321         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53322
53323 2008-09-29  Bruno Haible  <bruno@clisp.org>
53324
53325         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53326         Set LIBSOCKET instead of augmenting LIBS.
53327         * modules/sockets (Link): New section.
53328         * modules/sockets-tests (test_sockets_LDADD): New variable.
53329         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53330         * modules/poll-tests (test_poll_LDADD): New variable.
53331         * NEWS: Document the change.
53332
53333 2008-09-29  Bruno Haible  <bruno@clisp.org>
53334
53335         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53336         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53337         ARPA_INET_H directly.
53338         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53339
53340 2008-09-28  Bruno Haible  <bruno@clisp.org>
53341
53342         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53343         from gl_HEADER_SYS_SOCKET.
53344         (gl_HEADER_SYS_SOCKET): Invoke it.
53345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53346
53347 2008-09-28  Bruno Haible  <bruno@clisp.org>
53348
53349         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53350         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53351         Needed on OSF/1 4.0.
53352
53353 2008-09-28  Bruno Haible  <bruno@clisp.org>
53354
53355         Override open more carefully.
53356         * lib/open.c (orig_open): New function.
53357         (rpl_open): Use orig_open instead of open.
53358         * lib/fcntl.in.h: Add special invocation convention.
53359         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53360         (gl_FUNC_OPEN): Invoke it.
53361
53362         Override freopen more carefully.
53363         * lib/freopen.c (orig_freopen): New function.
53364         (rpl_freopen): Use orig_freopen instead of freopen.
53365         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53366         (gl_FUNC_FREOPEN): Invoke it.
53367
53368         Override fopen more carefully.
53369         * lib/fopen.c (orig_fopen): New function.
53370         (rpl_fopen): Use orig_fopen instead of fopen.
53371         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53372         (gl_FUNC_FOPEN): Invoke it.
53373         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53374
53375 2008-09-28  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53378         SIGPIPE.
53379
53380 2008-09-28  Bruno Haible  <bruno@clisp.org>
53381
53382         * tests/test-sigaction.c (handler, main): Disable the check whether
53383         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53384         glibc systems with LinuxThreads.
53385
53386 2008-09-28  Bruno Haible  <bruno@clisp.org>
53387
53388         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53389
53390         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53391         with AIX xlc.
53392         * lib/fcntl.in.h (open): Likewise.
53393         Reported by Rainer Tammer <tammer@tammer.net>.
53394
53395 2008-09-28  Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/posix_spawnp-tests: New file.
53398         * tests/test-posix_spawn.c: New file.
53399         * tests/test-posix_spawn.in.sh: New file.
53400
53401         New module 'posix_spawnp'.
53402         * modules/posix_spawnp: New file.
53403         * lib/spawnp.c: New file, from GNU libc with modifications.
53404         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53405
53406         New module 'posix_spawn'.
53407         * modules/posix_spawn: New file.
53408         * lib/spawn.c: New file, from GNU libc with modifications.
53409         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53410
53411         New module 'posix_spawnattr_destroy'.
53412         * modules/posix_spawnattr_destroy: New file.
53413         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53414         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53415         module.
53416
53417         New module 'posix_spawnattr_setsigmask'.
53418         * modules/posix_spawnattr_setsigmask: New file.
53419         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53420         modifications.
53421         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53422         new module.
53423
53424         New module 'posix_spawnattr_getsigmask'.
53425         * modules/posix_spawnattr_getsigmask: New file.
53426         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53427         modifications.
53428         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53429         new module.
53430
53431         New module 'posix_spawnattr_setsigdefault'.
53432         * modules/posix_spawnattr_setsigdefault: New file.
53433         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53434         modifications.
53435         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53436         new module.
53437
53438         New module 'posix_spawnattr_getsigdefault'.
53439         * modules/posix_spawnattr_getsigdefault: New file.
53440         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53441         modifications.
53442         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53443         new module.
53444
53445         New module 'posix_spawnattr_setschedpolicy'.
53446         * modules/posix_spawnattr_setschedpolicy: New file.
53447         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53448         modifications.
53449         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53450         new module.
53451
53452         New module 'posix_spawnattr_getschedpolicy'.
53453         * modules/posix_spawnattr_getschedpolicy: New file.
53454         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53455         modifications.
53456         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53457         new module.
53458
53459         New module 'posix_spawnattr_setschedparam'.
53460         * modules/posix_spawnattr_setschedparam: New file.
53461         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53462         modifications.
53463         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53464         new module.
53465
53466         New module 'posix_spawnattr_getschedparam'.
53467         * modules/posix_spawnattr_getschedparam: New file.
53468         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53469         modifications.
53470         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53471         new module.
53472
53473         New module 'posix_spawnattr_setpgroup'.
53474         * modules/posix_spawnattr_setpgroup: New file.
53475         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53476         modifications.
53477         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53478         module.
53479
53480         New module 'posix_spawnattr_getpgroup'.
53481         * modules/posix_spawnattr_getpgroup: New file.
53482         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53483         modifications.
53484         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53485         module.
53486
53487         New module 'posix_spawnattr_setflags'.
53488         * modules/posix_spawnattr_setflags: New file.
53489         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53490         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53491         module.
53492
53493         New module 'posix_spawnattr_getflags'.
53494         * modules/posix_spawnattr_getflags: New file.
53495         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53496         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53497         module.
53498
53499         New module 'posix_spawnattr_init'.
53500         * modules/posix_spawnattr_init: New file.
53501         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53502         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53503         module.
53504
53505         New module 'posix_spawn_file_actions_destroy'.
53506         * modules/posix_spawn_file_actions_destroy: New file.
53507         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53508         modifications.
53509         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53510         the new module.
53511
53512         New module 'posix_spawn_file_actions_addopen'.
53513         * modules/posix_spawn_file_actions_addopen: New file.
53514         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53515         modifications.
53516         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53517         the new module.
53518
53519         New module 'posix_spawn_file_actions_adddup2'.
53520         * modules/posix_spawn_file_actions_adddup2: New file.
53521         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53522         modifications.
53523         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53524         the new module.
53525
53526         New module 'posix_spawn_file_actions_addclose'.
53527         * modules/posix_spawn_file_actions_addclose: New file.
53528         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53529         modifications.
53530         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53531         the new module.
53532
53533         New module 'posix_spawn_file_actions_init'.
53534         * modules/posix_spawn_file_actions_init: New file.
53535         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53536         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53537         new module.
53538
53539         New module 'posix_spawn-internal'.
53540         * modules/posix_spawn-internal: New file.
53541         * lib/spawn_int.h: New file, from GNU libc with modifications.
53542         * lib/spawni.c: New file, from GNU libc with modifications.
53543         * m4/posix_spawn.m4: New file.
53544
53545         New module 'spawn'.
53546         * modules/spawn: New file.
53547         * lib/spawn.in.h: New file, from GNU libc with modifications.
53548         * m4/spawn_h.m4: New file.
53549         * doc/posix-headers/spawn.texi: Mention the new module.
53550
53551 2008-09-28  Bruno Haible  <bruno@clisp.org>
53552
53553         * modules/sched-tests: New file.
53554         * tests/test-sched.c: New file.
53555
53556         New module 'sched'.
53557         * modules/sched: New file.
53558         * lib/sched.in.h: New file.
53559         * m4/sched_h.m4: New file.
53560         * doc/posix-headers/sched.texi: Mention the new module.
53561
53562 2008-09-27  Eric Blake  <ebb9@byu.net>
53563
53564         Fix previous patch, and tweak references to $0.
53565         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53566         (func_version, func_gnulib_dir): Don't call this program
53567         gnulib-tool.
53568         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53569         with using $0 in function.
53570         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53571         (func_fatal_error): Reuse the name the user invoked us with.
53572
53573 2008-09-27  Bruno Haible  <bruno@clisp.org>
53574
53575         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53576         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53577         (gl_ICONV_H): Not here.
53578         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53579         instead of assigning ICONV_H directly.
53580
53581         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53583         WCHAR_H directly.
53584
53585 2008-09-27  Bruno Haible  <bruno@clisp.org>
53586
53587         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53588         * modules/arpa_inet (Depends-on): Add link-warning.
53589         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53590         * modules/unistd (Makefile.am): Likewise.
53591
53592 2008-09-26  Bruno Haible  <bruno@clisp.org>
53593
53594         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53595         variables.
53596         (func_version): Essentially copied from gnulib-tool.
53597         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53598         func_readlink): Copied from gnulib-tool.
53599
53600 2008-09-26  Bruno Haible  <bruno@clisp.org>
53601
53602         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53603         invoking git-version-gen.
53604
53605 2008-09-26  Bruno Haible  <bruno@clisp.org>
53606
53607         * posix-modules: Update to directory names changed on 2008-01-19.
53608         Remove commas in output before splitting into words. No more need to
53609         avoid 'ftruncate' since 2007-02-19.
53610
53611 2008-09-26  Bruno Haible  <bruno@clisp.org>
53612
53613         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53614
53615 2008-09-26  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53618         * modules/fwriteerror (Depends-on): Add errno.
53619
53620 2008-09-26  Bruno Haible  <bruno@clisp.org>
53621
53622         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53623         * tests/test-vc-list-files-cvs.sh: Likewise.
53624
53625 2008-09-26  Bruno Haible  <bruno@clisp.org>
53626
53627         * doc/posix-headers/sys_resource.texi: Reorder items.
53628
53629 2008-09-26  Jim Meyering  <meyering@redhat.com>
53630
53631         fts: tweak inode comparison function
53632         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53633         inode numbers, as documented.
53634
53635         fts: sort dirent entries on inode number before traversing
53636         This avoids a quadratic, seek-related performance penalty when
53637         operating on a directory containing many entries (measurable at 10k;
53638         3.5 hours at 2 million entries with a cold cache) on certain types
53639         of file systems, including ext3 and ext4, but not tmpfs.
53640         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53641         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53642         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53643         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53644         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53645         (fts_build): Set the stat.st_ino member from D_INO.
53646         If it is likely to be useful, sort dirent entries on inode number.
53647
53648         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53649         and the struct statfs.f_type member.
53650         * modules/fts (Depends-on): Add d-ino.
53651
53652 2008-09-26  Bruno Haible  <bruno@clisp.org>
53653
53654         * modules/sigpipe-die (Depends-on): Add sigpipe.
53655
53656         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53657         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53658         and GNULIB_STDIO_H_SIGPIPE are set.
53659         * lib/stdio-write.c: New file.
53660         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53661         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53662         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53663         REPLACE_STDIO_WRITE_FUNCS.
53664         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53665         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53666         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53667         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53668         * modules/stdio (Files): Add lib/stdio-write.c.
53669         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53670         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53671         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53672         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53673         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53674         REPLACE_FPRINTF_POSIX.
53675         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53676         REPLACE_PRINTF_POSIX.
53677         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53678         REPLACE_VFPRINTF_POSIX.
53679         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53680         REPLACE_VPRINTF_POSIX.
53681         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53682         SIGPIPE issue.
53683         * doc/posix-functions/fputc.texi: Likewise.
53684         * doc/posix-functions/fputs.texi: Likewise.
53685         * doc/posix-functions/fwrite.texi: Likewise.
53686         * doc/posix-functions/printf.texi: Likewise.
53687         * doc/posix-functions/putc.texi: Likewise.
53688         * doc/posix-functions/putchar.texi: Likewise.
53689         * doc/posix-functions/puts.texi: Likewise.
53690         * doc/posix-functions/vfprintf.texi: Likewise.
53691         * doc/posix-functions/vprintf.texi: Likewise.
53692
53693         * modules/safe-write (Depends-on): Add write.
53694
53695         * modules/sigpipe-tests: New file.
53696         * tests/test-sigpipe.c: New file.
53697         * tests/test-sigpipe.sh: New file.
53698
53699         * modules/write: New file.
53700         * lib/unistd.in.h: Include <sys/types.h>.
53701         (write): New declaration.
53702         * lib/write.c: New file.
53703         * m4/write.m4: New file.
53704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53705         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53706         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53707         GNULIB_WRITE, REPLACE_WRITE.
53708         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53709         and the SIGPIPE issue.
53710
53711         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53712         (raise): New declaration.
53713         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53714         (ext_signal): New function.
53715         (rpl_raise): New function.
53716         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53717         GNULIB_SIGNAL_H_SIGPIPE.
53718         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53719         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53720
53721         * modules/sigpipe: New file.
53722         * m4/sigpipe.m4: New file.
53723
53724 2008-09-25  Derek Price  <derek@ximbiot.com>
53725             Bruno Haible  <bruno@clisp.org>
53726
53727         * gnulib-tool (func_import): Report all license incompatibilities, not
53728         just the first one.
53729
53730 2008-09-25  Bruno Haible  <bruno@clisp.org>
53731
53732         * gnulib-tool (func_import): When computing the edits, consider not
53733         only the Makefile.ams that exist but also those that will be generated.
53734
53735 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53736
53737         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53738         fixes gnulib-tool --test warning about duplicate dependency.
53739
53740 2008-09-25  Bruno Haible  <bruno@clisp.org>
53741
53742         * gnulib-tool: Don't ask the user to perform edits in the generated
53743         Makefile.ams.
53744         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53745         apply to the Makefile.am being generated.
53746         (func_emit_tests_Makefile_am): Execute edits that apply to the
53747         Makefile.am being generated.
53748         (func_import): Setup list of Makefile.am edits before emitting the
53749         Makefile.ams, not at the end.
53750         (func_create_testdir): Update.
53751         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53752
53753 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53754
53755         * gnulib-tool (func_import): Store the --tests-base option in the
53756         comment in gnulib-cache.m4.
53757
53758 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53759
53760         * NEWS: Document increased portability that sys_select now provides.
53761
53762         * lib/sys_select.in.h: Install select wrapper.
53763         * lib/sys_socket.in.h: Use more descriptive name when there is no
53764         select wrapper.
53765         * lib/winsock-select.c: New.
53766         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53767         Require gl_HEADER_SYS_SOCKET.
53768         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53769         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53770         * tests/test-sys_select.c: Add functional tests.
53771
53772 2008-09-24  Eric Blake  <ebb9@byu.net>
53773
53774         open, fopen: close fd leak in last patch
53775         * lib/open.c (rpl_open): Close fd before returning error.
53776         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53777         * doc/posix-functions/open.texi (open): Document that Irix also
53778         has the bug.
53779         * doc/posix-functions/fopen.texi (fopen): Likewise.
53780         Reported by Paolo Bonzini.
53781
53782 2008-09-24  Bruno Haible  <bruno@clisp.org>
53783
53784         Ensure that a filename ending in a slash cannot be used to access a
53785         non-directory.
53786         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53787         to check whether it's really a directory.
53788         * lib/fopen.c: Include fcntl.h, unistd.h.
53789         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53790         and fdopen().
53791         * modules/fopen (Depends-on): Add unistd.
53792         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53793         * tests/test-fopen.c (main): Likewise.
53794         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53795         * doc/posix-functions/fopen.texi: Likewise.
53796         Reported by Eric Blake.
53797
53798 2008-09-23  Eric Blake  <ebb9@byu.net>
53799
53800         c-stack: avoid compiler optimizations when provoking overflow
53801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53802         recursion harder to optimize, to ensure a stack overflow occurs.
53803         * tests/test-c-stack.c (recurse): Likewise.
53804         Borrowed from libsigsegv.
53805
53806         c-stack: work around Irix sigaltstack bug
53807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53808         whether sigaltstack uses wrong end of stack_t (copied in part from
53809         libsigsegv).
53810         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53811         Irix bug, without requiring an over-allocation.
53812         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53813         bug.
53814
53815         fopen: document mingw bug on directories
53816         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53817         not allowing a stream visiting a directory, even though reading
53818         from such a stream is not portable.
53819
53820 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53821
53822         * lib/poll.c: Rewrite.
53823         * modules/poll: Depend on alloca.
53824
53825 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53826
53827         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53828         instead define prototypes for a full set of wrappers.  Ensure
53829         that Cygwin does not use the compatibility code, which is only
53830         for MinGW.
53831         * lib/winsock.c: New.
53832         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53833         * modules/sys_socket: Add lib/winsock.c.
53834
53835         * modules/poll-tests: Add errno and perror.
53836         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53837
53838 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53839
53840         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53841
53842 2008-09-23  Bruno Haible  <bruno@clisp.org>
53843
53844         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53845         * doc/glibc-functions/*: Likewise.
53846
53847 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53848
53849         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53850         success.
53851
53852 2008-09-22  Eric Blake  <ebb9@byu.net>
53853             Bruno Haible  <bruno@clisp.org>
53854
53855         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53856         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53857         supply %A but mishandle pseudo-NaN.
53858         Reported by Simon Josefsson.
53859
53860 2008-09-21  Bruno Haible  <bruno@clisp.org>
53861
53862         * tests/test-lock.c (main): Tweak skip message.
53863         * tests/test-tls.c (main): Likewise.
53864
53865 2008-09-21  Bruno Haible  <bruno@clisp.org>
53866
53867         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53868         whether 'struct sigaction' has sa_sigaction here...
53869         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53870         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53871
53872 2008-09-21  Bruno Haible  <bruno@clisp.org>
53873
53874         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53875         section.
53876         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53877         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53878         the new section.
53879         (Support for obsolete systems lacking POSIX:2001): New section.
53880         (String handling <string.h>): Move strdup to the new section.
53881         Suggested by Simon Josefsson and Paolo Bonzini.
53882
53883 2008-09-21  Bruno Haible  <bruno@clisp.org>
53884
53885         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53886         exponents in %e and %g results on 'long double'. Needed for mingw's
53887         improved *printf functions.
53888         * tests/test-vasprintf-posix.c (test_function): Likewise.
53889         * tests/test-snprintf-posix.h (test_function): Likewise.
53890         * tests/test-sprintf-posix.h (test_function): Likewise.
53891         Reported by Eric Blake.
53892
53893 2008-09-21  Bruno Haible  <bruno@clisp.org>
53894
53895         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53896         * tests/test-sprintf-posix.h (test_function): Likewise.
53897
53898 2008-09-21  Bruno Haible  <bruno@clisp.org>
53899
53900         * modules/getpass (Depends-on): Add strdup-posix.
53901
53902         New module 'strdup-posix'.
53903         * modules/strdup-posix: New file.
53904         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53905         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53907         REPLACE_STRDUP.
53908         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53909         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53911         strdup-posix.
53912
53913         * modules/strdup (Depends-on): Remove malloc-posix.
53914
53915 2008-09-20  Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53918         Wildenhues.
53919
53920 2008-09-20  Bruno Haible  <bruno@clisp.org>
53921
53922         Ensure that wint_t gets defined on IRIX 5.3.
53923         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53924         * lib/wctype.in.h (wint_t): Likewise.
53925         (__wctype_wint_t): Remove type.
53926         (isw*): Use wint_t instead of __wctype_wint_t.
53927         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53928         * modules/wchar (Files): Add m4/wint_t.m4.
53929         (Makefile.am): Substitute HAVE_WINT_T.
53930         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53931         * tests/test-wctype.c: Check that wint_t is defined.
53932         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53933         * doc/posix-headers/wctype.texi: Likewise.
53934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53935
53936 2008-09-18  Bruno Haible  <bruno@clisp.org>
53937
53938         * gnulib-tool (func_exit): Update comment.
53939
53940 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53941
53942         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53943         assumes strdup exists and does not depend on strdup to return
53944         ENOMEM on out of memory conditions.
53945
53946 2008-09-18  Bruno Haible  <bruno@clisp.org>
53947
53948         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53949         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53950         digits for the exponent.
53951
53952 2008-09-18  Jim Meyering  <meyering@redhat.com>
53953             Bruno Haible  <bruno@clisp.org>
53954
53955         * lib/vasnprintf.c (decimal_point_char): Define also if
53956         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53957
53958 2008-09-16  Bruno Haible  <bruno@clisp.org>
53959         and Eric Blake  <ebb9@byu.net>
53960
53961         vasnprintf: support Irix 5.3
53962         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53963         that mishandle long double infinity.
53964         Reported by Tom G. Christensen.
53965
53966 2008-09-16  Bruno Haible  <bruno@clisp.org>
53967
53968         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53969         Solaris 9.
53970         * doc/glibc-functions/alphasort.texi: Likewise.
53971         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53972
53973 2008-09-16  Jim Meyering  <meyering@redhat.com>
53974
53975         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53976         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53977         a umask modification leak out of a subshell.  Otherwise, the
53978         opensolaris /bin/sh would be accepted and thus cause unwarranted
53979         failures in the coreutils test suite.
53980
53981 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53982
53983         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53984         to succeed.
53985
53986 2008-09-16  Jim Meyering  <meyering@redhat.com>
53987
53988         avoid spurious test failure when library is built without ACL support
53989         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53990         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53991         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53992         * tests/test-copy-acl.sh: Likewise.
53993
53994 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53995
53996         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53997         based on character occurrence counts.
53998
53999 2008-09-15  Eric Blake  <ebb9@byu.net>
54000
54001         tests: avoid some compiler warnings
54002         * tests/test-memchr.c (main): Pass NULL indirectly.
54003         * tests/test-closein.c (main): Avoid unused variable.
54004
54005 2008-09-15  Bruno Haible  <bruno@clisp.org>
54006
54007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54008         are missing on OpenBSD 4.0 individually.
54009         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54010
54011 2008-09-15  Bruno Haible  <bruno@clisp.org>
54012
54013         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54014         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54015         * doc/posix-functions/perror.texi: Likewise.
54016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54017         is missing.
54018         Reported by Eric Blake.
54019
54020         * lib/errno.in.h: Use replacement values >= 2000.
54021         Reported by Eric Blake.
54022
54023 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54024
54025         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54026         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54027         limit.
54028         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54029         compareseq was aborted.
54030
54031 2008-09-14  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54034         yvec_edit_count.
54035         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54036         (fstrcmp_bounded): Simplify result computation accordingly.
54037
54038 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54039
54040         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54041         (fstrcmp): Define in terms of fstrcmp_bounded.
54042         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54043         lower_bound argument.
54044         Return quickly if the result is certainly < lower_bound.
54045         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54046
54047 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54048
54049         * lib/diffseq.h (EARLY_ABORT): New macro.
54050         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54051         evaluates to true.
54052
54053 2008-09-14  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/perror-tests: New file.
54056         * tests/test-perror.sh: New file.
54057         * tests/test-perror.c: New file.
54058
54059         New module 'perror'.
54060         * lib/stdio.in.h (perror): New declaration.
54061         * lib/perror.c: New file.
54062         * m4/perror.m4: New file.
54063         * modules/perror: New file.
54064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54065         * doc/posix-functions/perror.texi: Mention the perror module.
54066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54067         REPLACE_PERROR.
54068         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54069         REPLACE_PERROR.
54070
54071 2008-09-14  Bruno Haible  <bruno@clisp.org>
54072
54073         * modules/stdio (Makefile.am): Reorder to match the order in
54074         lib/stdio.in.h.
54075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54076
54077 2008-09-13  Bruno Haible  <bruno@clisp.org>
54078
54079         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54080
54081 2008-09-13  Bruno Haible  <bruno@clisp.org>
54082
54083         Extend strerror to cover the added errno values.
54084         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54085         (rpl_strerror): Provide error messages for the added errno values and
54086         for the WSA* values.
54087         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54088         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54089         strerror.
54090         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54091         * modules/strerror (Depends-on): Add errno.
54092         * doc/posix-functions/strerror.texi: Document the change.
54093         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54094         and EOVERFLOW.
54095
54096 2008-09-13  Bruno Haible  <bruno@clisp.org>
54097
54098         * modules/EOVERFLOW: Remove file.
54099         * m4/eoverflow.m4: Remove file.
54100         * modules/EOVERFLOW-tests: Remove file.
54101         * tests/test-EOVERFLOW.c: Remove file.
54102         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54103         * modules/ftell (Depends-on): Likewise.
54104         * modules/getdelim (Depends-on): Likewise.
54105         * modules/getugroups (Depends-on): Likewise.
54106         * modules/poll (Depends-on): Likewise.
54107         * modules/snprintf (Depends-on): Likewise.
54108         * modules/sprintf-posix (Depends-on): Likewise.
54109         * modules/vasnprintf (Depends-on): Likewise.
54110         * modules/vasprintf (Depends-on): Likewise.
54111         * modules/vfprintf-posix (Depends-on): Likewise.
54112         * modules/vsnprintf (Depends-on): Likewise.
54113         * modules/vsprintf-posix (Depends-on): Likewise.
54114         * modules/xvasprintf (Depends-on): Likewise.
54115         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54116         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54117         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54118         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54119         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54120         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54121         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54122         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54123         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54124         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54125         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54126         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54127         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54128         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54129         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54130         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54131         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54132         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54133         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54134         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54136         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54137         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54138         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54139         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54140         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54141         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54142         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54143         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54144         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54145         * MODULES.html.sh: Remove EOVERFLOW.
54146         * NEWS: Mention the change.
54147
54148 2008-09-13  Bruno Haible  <bruno@clisp.org>
54149
54150         * modules/errno-tests: New file.
54151         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54152
54153         * lib/errno.in.h: New file.
54154         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54155         * modules/errno: New file.
54156         * doc/posix-headers/errno.texi: Update documentation.
54157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54158
54159 2008-09-13  Bruno Haible  <bruno@clisp.org>
54160
54161         * tests/test-poll.c: Use #if for native Windows, rather than testing
54162         __MSVCRT__.
54163
54164 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54165             Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/glob.c: Don't include <pwd.h> on native Windows.
54168         (WINDOWS32): New macro.
54169         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54170
54171 2008-09-13  Bruno Haible  <bruno@clisp.org>
54172
54173         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54174         (ETIMEDOUT): Remove macro.
54175         (glthread_cond_timedwait_multithreaded): New declaration.
54176         (glthread_cond_timedwait): Use it.
54177         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54178         (glthread_cond_timedwait_multithreaded): New function.
54179
54180 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54181
54182         * modules/poll-tests: Do not check for io.h.
54183         * tests/test-poll.c: Check for __MSVCRT__ instead.
54184
54185 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54186
54187         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54188         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54189         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54190
54191 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54192
54193         * modules/poll-tests: New.
54194         * tests/test-poll.c: New.
54195
54196 2008-09-12  Eric Blake  <ebb9@byu.net>
54197
54198         frexp: test for NetBSD failure on -0.0
54199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54200         not all, bugs from NetBSD 3.0 have been fixed.
54201         * doc/posix-functions/frexp.texi (frexp): Document bug.
54202         Reported by Thomas Klausner.
54203
54204         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54205         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54206         literal -0.0.
54207         Reported by Jonathan C. Patschke <jp@centtech.com>.
54208
54209 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54210
54211         * lib/glthread/cond.h: Use dummy implementation also if
54212         USE_WIN32_THREADS.
54213
54214 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54215
54216         * modules/fnmatch-posix (License): Change to LGPLv2+.
54217         * modules/fnmatch-gnu (License): Likewise.
54218
54219 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54220
54221         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54222
54223 2008-09-11  Jim Meyering  <meyering@redhat.com>
54224
54225         * users.txt: Add gtk-vnc.
54226
54227 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54228
54229         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54230         rotate amounts.
54231
54232         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54233         required for 16-bit and 8-bit rotates.
54234         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54235         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54236         UINT8_MAX instead of hard-coded constants.
54237         Suggested by Paul Eggert.
54238
54239 2008-09-07  Bruno Haible  <bruno@clisp.org>
54240
54241         * tests/test-striconveh.c (main): Check behaviour when converting from
54242         UTF-7.
54243
54244         Make striconveh work better with stateful encodings.
54245         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54246         that iconv does not increment the inptr when returning -1/EINVAL.
54247
54248 2008-09-07  Bruno Haible  <bruno@clisp.org>
54249
54250         * build-aux/config.rpath: Update according to libtool-2.2.6.
54251         * build-aux/config.libpath: Likewise.
54252
54253 2008-09-06  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54256         * lib/freadptr.c (freadptr): Likewise.
54257         * lib/freadseek.c (freadptrinc): Likewise.
54258         Reported by Simon Josefsson.
54259
54260 2008-09-06  Bruno Haible  <bruno@clisp.org>
54261
54262         * modules/freadptr (License): Change to LGPLv2+.
54263         * modules/freadseek (License): Likewise.
54264         Suggested by Eric Blake.
54265
54266         * modules/memchr2 (License): Change to LGPLv2+.
54267         Approved by Eric Blake.
54268
54269 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54270             Bruno Haible  <bruno@clisp.org>
54271
54272         Make gnulib-tool work with native 'sed' on AIX.
54273         * gnulib-tool (sed_noop): New variable.
54274         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54275         func_add_or_update, func_create_testdir): Use it to initialize sed
54276         script variables.
54277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54278
54279 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54280             Bruno Haible  <bruno@clisp.org>
54281
54282         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54283         also works after #include directives.
54284
54285 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54286
54287         getdate.y: reject an out-of-range timezone value
54288         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54289         the range [-24...+24].  When specified with only one or two digits,
54290         * tests/test-getdate.c: Tests for the fix.
54291         * doc/getdate.texi: Document this change.
54292
54293 2008-09-03  Bruno Haible  <bruno@clisp.org>
54294
54295         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54296
54297 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54298
54299         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54300         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54301         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54302         Blake <ebb9@byu.net>.
54303
54304         * tests/test-bitrotate.c: Add more test vectors.
54305
54306 2008-09-02  Eric Blake  <ebb9@byu.net>
54307
54308         vasnprintf-posix: handle large precision via %.*d
54309         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54310         when handling it ourselves.
54311         * tests/test-vasnprintf-posix.c (test_function): Add test.
54312         * tests/test-snprintf-posix.h (test_function): Likewise.
54313         * tests/test-sprintf-posix.h (test_function): Likewise.
54314         * tests/test-vasprintf-posix.c (test_function): Likewise.
54315         Reported by Alain Guibert.
54316
54317 2008-09-01  Eric Blake  <ebb9@byu.net>
54318
54319         c-stack: make configure-time check more robust
54320         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54321         successful sigaction call.
54322         Reported by Tom G. Christensen.
54323
54324 2008-09-01  Bruno Haible  <bruno@clisp.org>
54325
54326         New module 'findprog-lgpl'.
54327         * modules/findprog-lgpl: New file.
54328         * lib/findprog-lgpl.c: New file.
54329         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54330         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54331         to decide whether to use strdup or xstrdup, concatenated_filename or
54332         xconcatenated_filename.
54333
54334 2008-09-01  Bruno Haible  <bruno@clisp.org>
54335
54336         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54337         'xconcat-filename' (GPL).
54338         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54339         (License): Change to LGPLv2+.
54340         * modules/xconcat-filename: New file.
54341         * lib/concat-filename.h (concatenated_filename): Change specification.
54342         (xconcatenated_filename): New declaration.
54343         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54344         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54345         memory situations.
54346         * lib/xconcat-filename.c: New file.
54347         * NEWS: Mention the change.
54348         * lib/findprog.c: Include concat-filename.h, not filename.h.
54349         (find_in_path): Use xconcatenated_filename instead of
54350         concatenated_filename.
54351         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54352         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54353         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54354         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54355         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54356         instead of concatenated_filename.
54357         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54358         (execute_java_class): Use xconcatenated_filename instead of
54359         concatenated_filename.
54360         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54361         * modules/javacomp (Depends-on): Likewise.
54362         * modules/javaexec (Depends-on): Likewise.
54363
54364 2008-09-01  Bruno Haible  <bruno@clisp.org>
54365
54366         Split module 'filename' into 'filename' and 'concat-filename'.
54367         * modules/filename: Keep only lib/filename.h.
54368         (License): Change to LGPLv2+.
54369         * modules/concat-filename: New file, extracted from modules/filename.
54370         * lib/filename.h (concatenated_filename): Remove declaration.
54371         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54372         * lib/concat-filename.c: Include concat-filename.h.
54373         * NEWS: Mention the change.
54374
54375 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54376
54377         * lib/bitrotate.h (rotl8, rotr8): Add.
54378
54379         * modules/bitrotate (configure.ac): Need
54380         AC_REQUIRE([AC_C_INLINE]).
54381         (Description): Mention stdint.h.  Reported by Bruno Haible
54382         <bruno@clisp.org>.
54383
54384         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54385         Paolo Bonzini <bonzini@gnu.org>.
54386
54387 2008-08-31  Bruno Haible  <bruno@clisp.org>
54388
54389         Assume Solaris specific bi-arch conventions on Solaris systems.
54390         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54391         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54393         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54394         like acl_libdirstem.
54395         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54396         acl_libdirstem.
54397         * NEWS: Mention the change.
54398         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54399
54400 2008-08-31  Jim Meyering  <meyering@redhat.com>
54401
54402         * lib/strftime.h: Add comments describing the two added arguments.
54403
54404         remove duplicate #include directives
54405         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54406         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54407
54408 2008-08-31  Bruno Haible  <bruno@clisp.org>
54409
54410         New module 'sigpipe-die'.
54411         * modules/sigpipe-die: New file.
54412         * lib/sigpipe-die.h: New file.
54413         * lib/sigpipe-die.c: New file.
54414         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54415
54416 2008-08-31  Bruno Haible  <bruno@clisp.org>
54417
54418         Don't override previously installed signal handlers.
54419         * lib/fatal-signal.c (saved_sigactions): New variable.
54420         (uninstall_handlers): Reset the signal to the saved handler, not
54421         to SIG_DFL (except when ignored).
54422         (install_handlers): Save the previous handlers.
54423
54424 2008-08-30  Bruno Haible  <bruno@clisp.org>
54425
54426         * gnulib-tool (func_reset_sigpipe): New function.
54427         (func_get_automake_snippet, func_modules_transitive_closure,
54428         func_import): Invoke it before a join command that reads from stdin,
54429         to avoid "echo: write error: Broken pipe" error messages on stderr.
54430         Reported by Sam Steingold <sds@gnu.org>.
54431
54432 2008-08-30  Bruno Haible  <bruno@clisp.org>
54433
54434         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54435         Code copied from m4/open.m4.
54436         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54437         access and the filename ends in a slash. Code copied from lib/open.c.
54438         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54439         * tests/test-fopen.c (main): Check against bug with trailing slash.
54440
54441 2008-08-29  Bruno Haible  <bruno@clisp.org>
54442
54443         Avoid some "gcc -pedantic" warnings.
54444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54445         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54446         * lib/dirent.in.h: Likewise.
54447         * lib/fcntl.in.h: Likewise.
54448         * lib/float.in.h: Likewise.
54449         * lib/iconv.in.h: Likewise.
54450         * lib/inttypes.in.h: Likewise.
54451         * lib/locale.in.h: Likewise.
54452         * lib/math.in.h: Likewise.
54453         * lib/netinet_in.in.h: Likewise.
54454         * lib/search.in.h: Likewise.
54455         * lib/signal.in.h: Likewise.
54456         * lib/stdarg.in.h: Likewise.
54457         * lib/stdint.in.h: Likewise.
54458         * lib/stdio.in.h: Likewise.
54459         * lib/stdlib.in.h: Likewise.
54460         * lib/string.in.h: Likewise.
54461         * lib/strings.in.h: Likewise.
54462         * lib/sys_select.in.h: Likewise.
54463         * lib/sys_socket.in.h: Likewise.
54464         * lib/sys_stat.in.h: Likewise.
54465         * lib/sys_time.in.h: Likewise.
54466         * lib/sysexits.in.h: Likewise.
54467         * lib/time.in.h: Likewise.
54468         * lib/unistd.in.h: Likewise.
54469         * lib/wchar.in.h: Likewise.
54470         * lib/wctype.in.h: Likewise.
54471         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54472         * modules/fchdir (Makefile.am): Likewise.
54473         * modules/fcntl (Makefile.am): Likewise.
54474         * modules/float (Makefile.am): Likewise.
54475         * modules/iconv_open (Makefile.am): Likewise.
54476         * modules/inttypes (Makefile.am): Likewise.
54477         * modules/locale (Makefile.am): Likewise.
54478         * modules/math (Makefile.am): Likewise.
54479         * modules/netinet_in (Makefile.am): Likewise.
54480         * modules/search (Makefile.am): Likewise.
54481         * modules/signal (Makefile.am): Likewise.
54482         * modules/stdarg (Makefile.am): Likewise.
54483         * modules/stdint (Makefile.am): Likewise.
54484         * modules/stdio (Makefile.am): Likewise.
54485         * modules/stdlib (Makefile.am): Likewise.
54486         * modules/string (Makefile.am): Likewise.
54487         * modules/strings (Makefile.am): Likewise.
54488         * modules/sys_select (Makefile.am): Likewise.
54489         * modules/sys_socket (Makefile.am): Likewise.
54490         * modules/sys_stat (Makefile.am): Likewise.
54491         * modules/sys_time (Makefile.am): Likewise.
54492         * modules/sysexits (Makefile.am): Likewise.
54493         * modules/time (Makefile.am): Likewise.
54494         * modules/unistd (Makefile.am): Likewise.
54495         * modules/wchar (Makefile.am): Likewise.
54496         * modules/wctype (Makefile.am): Likewise.
54497         Reported by Reuben Thomas <rrt@sc3d.org>.
54498
54499 2008-08-29  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54502         any more.
54503
54504 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54505
54506         * MODULES.html.sh (Misc): Add bitrotate.
54507
54508         * modules/bitrotate: New file.
54509
54510         * lib/bitrotate.h: New file.
54511
54512         * modules/bitrotate-tests: New file.
54513
54514         * tests/test-bitrotate.c: New file.
54515
54516         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54517         on the bitrotate module.
54518
54519         * lib/arctwo.c: Use new bitrotate module.
54520
54521 2008-08-29  Jim Meyering  <meyering@redhat.com>
54522
54523         bootstrap: merge changes from coreutils
54524         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54525         of copied files.  Remove a kludge, now that this is fixed.
54526         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54527         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54528         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54529
54530 2008-08-29  Bruno Haible  <bruno@clisp.org>
54531
54532         * MODULES.html.sh: Remove --cvs-urls option.
54533
54534 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54535
54536         maint.mk: adjust to file name change
54537         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54538
54539 2008-08-28  Jim Meyering  <meyering@redhat.com>
54540
54541         * modules/getndelim2 (License): Relicense to LGPLv2+.
54542         Approved by Richard Stallman for the version of 1995, and by
54543         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54544
54545 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54546
54547         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54548         dummy if one is not available.  Do not touch them if
54549         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54550         (getc_maybe_unlocked): New.
54551         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54552
54553 2008-08-26  Eric Blake  <ebb9@byu.net>
54554
54555         doc/INSTALL: resync from autoconf
54556         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54557         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54558         moving...
54559         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54560         * INSTALL: Regenerate.
54561         * INSTALL.ISO: New file.
54562         * INSTALL.UTF-8: Likewise.
54563
54564 2008-08-26  Jim Meyering  <meyering@redhat.com>
54565
54566         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54567         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54568         these definitions conditional, so that they may be overridden, too.
54569
54570 2008-08-26  Bruno Haible  <bruno@clisp.org>
54571
54572         Generate INSTALL file variants with prettier quotes.
54573         * doc/Makefile (INSTALL_PRELUDE): New macro.
54574         (INSTALL): Use it.
54575         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54576
54577 2008-08-26  Bruno Haible  <bruno@clisp.org>
54578
54579         Run makeinfo in an English locale.
54580         * doc/Makefile (MAKEINFO): New variable.
54581
54582 2008-08-26  Bruno Haible  <bruno@clisp.org>
54583
54584         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54585         Suggested by Eric Blake.
54586
54587 2008-08-25  Bruno Haible  <bruno@clisp.org>
54588
54589         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54590
54591 2008-08-25  Eric Blake  <ebb9@byu.net>
54592
54593         c-stack: test that stack overflow can be caught
54594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54595         that platform allows handling stack overflow; at least OS/2 EMX
54596         has sigaltstack, but crashes before transferring control to
54597         handler on stack overflow.
54598         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54599         check for HAVE_STACK_OVERFLOW_HANDLING.
54600         Reported by Elbert Pol.
54601
54602 2008-08-25  Bruno Haible  <bruno@clisp.org>
54603
54604         * doc/posix-functions/strftime.texi: Fix description of strftime
54605         module.
54606
54607 2008-08-24  Bruno Haible  <bruno@clisp.org>
54608
54609         * tests/uniwidth/test-uc_width2.c: New file.
54610         * tests/uniwidth/test-uc_width2.sh: New file.
54611         * modules/uniwidth/width-tests (Files): Add the new files.
54612         (TESTS): Add uniwidth/test-uc_width2.sh.
54613         (TESTS_ENVIRONMENT): New variable.
54614         (check_PROGRAMS): Add test-uc_width2.
54615         (test_uc_width2_SOURCES): New variable.
54616
54617         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54618         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54619         not 0x00AB.
54620         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54621
54622 2008-08-22  Eric Blake  <ebb9@byu.net>
54623
54624         test-lock, test-tls: mention why a test is skipped
54625         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54626         skipped.
54627         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54628
54629         count-one-bits: relax license
54630         * modules/count-one-bits (License): Relicense to LGPLv2+.
54631         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54632
54633 2008-08-22  Andreas Schwab  <schwab@suse.de>
54634
54635         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54636         Remove spurious space in assignment.
54637
54638 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54639
54640         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54641         Paul Eggert <eggert@CS.UCLA.EDU>.
54642
54643 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54644
54645         * modules/gettext: Add m4/threadlib.m4.
54646
54647 2008-08-19  Eric Blake  <ebb9@byu.net>
54648
54649         test-c-stack: fix compilation failure on FreeBSD 5.0
54650         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54651         headers before <sys/resource.h>.
54652         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54653         the bug.
54654         Reported by Nelson H. F. Beebe.
54655
54656         strverscmp: migrate from "strverscmp.h" to <string.h>
54657         * modules/string (Makefile.am): Add new hooks.
54658         * modules/strverscmp (Files): Remove strverscmp.h.
54659         (Depends-on): Add string.
54660         (configure.ac): Add indicator.
54661         (Include): Mention new header.
54662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54663         defaults.
54664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54665         results.
54666         * lib/strverscmp.h: Delete.
54667         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54668         * tests/test-strverscmp.c (includes): Adjust client.
54669         * lib/check-version.c (includes): Likewise.
54670         * NEWS: Document the change.
54671
54672         strverscmp: add unit test
54673         * modules/strverscmp-tests: New file.
54674         * tests/test-strverscmp.c: Likewise.
54675
54676 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54677
54678         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54679         regarding Windows crypto stuff, from Mono.
54680
54681 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54682
54683         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54684         if present, for intel RND.  Return error on failures.
54685
54686 2008-08-18  Ben Pfaff  <blp@gnu.org>
54687
54688         gitlog-to-changelog: give better diagnostic for failed pipe-open
54689         * build-aux/gitlog-to-changelog: Improve error message: suggest
54690         that the version of Git may be too old.
54691
54692 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54693
54694         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54695         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54696
54697 2008-08-18  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54700         pthread_in_use().
54701
54702 2008-08-18  Bruno Haible  <bruno@clisp.org>
54703
54704         * lib/glthread/threadlib.c: Include <pthread.h>.
54705
54706 2008-08-18  Bruno Haible  <bruno@clisp.org>
54707
54708         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54709         glthread_recursive_lock_* macros.
54710         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54711         Fix syntax error.
54712
54713 2008-08-18  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/glthread/thread.c: Avoid forcing a context switch right after
54716         thread creation.
54717
54718 2008-08-17  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54721         * lib/glthread/thread.h: Provide Win32 specific implementation.
54722         * modules/thread (Files): Add lib/glthread/thread.c.
54723         (Depends-on): Add lock.
54724         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54725
54726 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54727
54728         New module 'yield'.
54729         * modules/yield: New file.
54730         * lib/glthread/yield.h: New file.
54731         * m4/yield.m4: New file.
54732         * MODULES.html.sh (Multithreading): Add yield.
54733
54734 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54735
54736         New module 'thread'.
54737         * modules/thread: New file.
54738         * lib/glthread/thread.h: New file.
54739         * m4/thread.m4: New file.
54740         * MODULES.html.sh (Multithreading): Add thread.
54741
54742 2008-08-17  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/glthread/lock.h: Include <stdlib.h> always.
54745         * lib/glthread/tls.h: Likewise.
54746         * lib/glthread/cond.h: Likewise.
54747
54748 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54749
54750         New module 'cond'.
54751         * modules/cond: New file.
54752         * lib/glthread/cond.h: New file.
54753         * lib/glthread/cond.c: New file.
54754         * m4/cond.m4: New file.
54755         * MODULES.html.sh (Multithreading): Add cond.
54756
54757 2008-08-16  Eric Blake  <ebb9@byu.net>
54758
54759         c-stack: fix regression on Irix 5.3 from 2008-06-21
54760         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54761         sa_sigaction...
54762         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54763         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54765         * modules/signal (Makefile.am): Use the value.
54766         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54767         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54768         * doc/posix-headers/signal.texi (signal.h): Document this
54769         portability issue.
54770         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54771         Reported by Tom G. Christensen.
54772
54773 2008-08-17  Bruno Haible  <bruno@clisp.org>
54774
54775         New module 'threadlib'.
54776         * modules/threadlib: New file.
54777         * lib/glthread/threadlib.c: New file, extracted from
54778         lib/glthread/lock.c.
54779         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54780         functions.
54781         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54782         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54783         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54784         macros.
54785         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54786         (gl_DISABLE_THREADS): Remove macro.
54787         * modules/lock (Files): Remove build-aux/config.rpath.
54788         (Depends-on): Remove havelib. Add threadlib.
54789         (configure.ac-early): Remove section.
54790         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54791         * modules/tls (Depends-on): Remove lock. Add threadlib.
54792         (Link): New section, copied from threadlib.
54793         * MODULES.html.sh (Multithreading): Add threadlib.
54794
54795 2008-08-14  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54798         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54799         glthread_rwlock_unlock, glthread_rwlock_destroy,
54800         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54801         glthread_recursive_lock_destroy): Define as macros always.
54802         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54803         glthread_lock_lock.
54804         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54805         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54806         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54807         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54808         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54809         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54810         (glthread_recursive_lock_lock_func): Renamed from
54811         glthread_recursive_lock_lock.
54812         (glthread_recursive_lock_unlock_func): Renamed from
54813         glthread_recursive_lock_unlock.
54814         (glthread_recursive_lock_destroy_func): Renamed from
54815         glthread_recursive_lock_destroy.
54816
54817 2008-08-14  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/glthread/lock.h: Renamed from lib/lock.h.
54820         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54821         * lib/glthread/tls.h: Renamed from lib/tls.h.
54822         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54823         * lib/fstrcmp.c: Update includes.
54824         * lib/strsignal.c: Update includes.
54825         * modules/lock (Files, Makefile.am): Update.
54826         (Include): Change to "glthread/lock.h".
54827         * modules/tls (Files, Makefile.am): Update.
54828         (Include): Change to "glthread/tls.h".
54829         * tests/test-lock.c: Update includes.
54830         * tests/test-tls.c: Update includes.
54831         * NEWS: Mention the renamed header files.
54832
54833 2008-08-11  Jim Meyering  <meyering@redhat.com>
54834
54835         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54836
54837 2008-08-11  Eric Blake  <ebb9@byu.net>
54838
54839         test-c-stack: avoid C99-ism
54840         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54841         before statement.
54842         Reported by Alain Guibert.
54843
54844 2008-08-10  Jim Meyering  <meyering@redhat.com>
54845
54846         ensure that return value of uinttostr et al are not ignored
54847         * lib/inttostr.h (__GNUC_PREREQ): Define.
54848         (__attribute_warn_unused_result__): Define.
54849         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54850
54851 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54852
54853         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54854         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54855
54856 2008-08-07  Jim Meyering  <meyering@redhat.com>
54857
54858         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54859
54860         * modules/mkstemp (License): Relicense under LGPLv2+.
54861         * modules/tempname (License): Likewise.
54862
54863 2008-08-06  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/poll.c (poll): Further micro-optimization.
54866
54867 2008-08-06  Jim Meyering  <meyering@redhat.com>
54868
54869         inet_pton.c: use locale-independent tolower
54870         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54871         (inet_pton6): Use c_tolower rather than tolower.
54872         * modules/inet_pton (Depends-on): Add c-ctype.
54873
54874 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54875
54876         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54877         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54878
54879 2008-08-06  Jim Meyering  <meyering@redhat.com>
54880
54881         * modules/inet_pton (License): Relicense under LGPLv2+.
54882
54883 2008-08-03  Bruno Haible  <bruno@clisp.org>
54884
54885         Additional non-aborting API for lock and tls.
54886         * lib/lock.h: Include <errno.h>.
54887         (glthread_lock_init): New macro/function.
54888         (gl_lock_init): Define as wrapper around glthread_lock_init.
54889         (glthread_lock_lock): New macro/function.
54890         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54891         (glthread_lock_unlock): New macro/function.
54892         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54893         (glthread_lock_destroy): New macro/function.
54894         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54895         (glthread_rwlock_init): New macro/function.
54896         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54897         (glthread_rwlock_rdlock): New macro/function.
54898         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54899         (glthread_rwlock_wrlock): New macro/function.
54900         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54901         (glthread_rwlock_unlock): New macro/function.
54902         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54903         (glthread_rwlock_destroy): New macro/function.
54904         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54905         (glthread_recursive_lock_init): New macro/function.
54906         (gl_recursive_lock_init): Define as wrapper around
54907         glthread_recursive_lock_init.
54908         (glthread_recursive_lock_lock): New macro/function.
54909         (gl_recursive_lock_lock): Define as wrapper around
54910         glthread_recursive_lock_lock.
54911         (glthread_recursive_lock_unlock): New macro/function.
54912         (gl_recursive_lock_unlock): Define as wrapper around
54913         glthread_recursive_lock_unlock.
54914         (glthread_recursive_lock_destroy): New macro/function.
54915         (gl_recursive_lock_destroy): Define as wrapper around
54916         glthread_recursive_lock_destroy.
54917         (glthread_once): New macro/function.
54918         (gl_once): Define as wrapper around glthread_once.
54919         Update function declarations.
54920         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54921         glthread_rwlock_init. Return error code.
54922         (glthread_rwlock_rdlock_multithreaded): Renamed from
54923         glthread_rwlock_rdlock. Return error code.
54924         (glthread_rwlock_wrlock_multithreaded): Renamed from
54925         glthread_rwlock_wrlock. Return error code.
54926         (glthread_rwlock_unlock_multithreaded): Renamed from
54927         glthread_rwlock_unlock. Return error code.
54928         (glthread_rwlock_destroy_multithreaded): Renamed from
54929         glthread_rwlock_destroy. Return error code.
54930         (glthread_recursive_lock_init_multithreaded): Renamed from
54931         glthread_recursive_lock_init. Return error code.
54932         (glthread_recursive_lock_lock_multithreaded): Renamed from
54933         glthread_recursive_lock_lock. Return error code.
54934         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54935         glthread_recursive_lock_unlock. Return error code.
54936         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54937         glthread_recursive_lock_destroy. Return error code.
54938         (glthread_once_call): Make static.
54939         (glthread_once_multithreaded): Renamed from glthread_once.
54940         * lib/tls.h: Include <errno.h>.
54941         (glthread_tls_key_init): New macro/function.
54942         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54943         (glthread_tls_set): New macro/function.
54944         (gl_tls_set): Define as wrapper around glthread_tls_set.
54945         (glthread_tls_key_destroy): New macro/function.
54946         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54947         Update function declarations.
54948         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54949         glthread_tls_get.
54950         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54951
54952 2008-08-04  Eric Blake  <ebb9@byu.net>
54953
54954         gnumakefile: use space, not TAB, outside of targets
54955         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54956
54957 2008-08-02  Jim Meyering  <meyering@redhat.com>
54958
54959         getdate.y: avoid locale-dependent date parsing failure
54960         In Turkish locales, getdate would fail to recognize keywords
54961         containing a lowercase "i".  The solution is not to rely on
54962         locale-sensitive case-conversion.
54963         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54964         (lookup_word): Use c_toupper in place of toupper.
54965         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54966         Reported by Vefa Bicakci <bicave@superonline.com> in
54967         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54968         * modules/getdate (Depends-on): Add c-ctype.
54969
54970 2008-08-02  Bruno Haible  <bruno@clisp.org>
54971
54972         * gnulib-tool (func_import): When updating or creating a .gitignore
54973         file, prepend each added line with a slash, and ignore leading slashes
54974         from the existing lines.
54975         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54976
54977 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54978
54979         Portability fix for GNU make 3.79.1.
54980         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54981         versions do not understand.
54982
54983 2008-08-01  Bruno Haible  <bruno@clisp.org>
54984
54985         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54986         * tests/test-isnanf.h (zero): New variable.
54987         (main): Avoid literal -0.0f.
54988         * tests/test-isnand.h (zero): New variable.
54989         (main): Avoid literal -0.0.
54990         * tests/test-isnanl.h (zero): New variable.
54991         (main): Avoid literal -0.0L.
54992         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54993         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54994         -0.0, -0.0L.
54995         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54996         (test_signbitd): Avoid literal -0.0.
54997         (test_signbitl): Avoid literal -0.0L.
54998         * tests/test-ceilf1.c (zero): New variable.
54999         (main): Avoid literal -0.0f.
55000         * tests/test-ceill.c (zero): New variable.
55001         (main): Avoid literal -0.0L.
55002         * tests/test-floorf1.c (zero): New variable.
55003         (main): Avoid literal -0.0f.
55004         * tests/test-floorl.c (zero): New variable.
55005         (main): Avoid literal -0.0L.
55006         * tests/test-roundf1.c (zero): New variable.
55007         (main): Avoid literal -0.0f.
55008         * tests/test-round1.c (zero): New variable.
55009         (main): Avoid literal -0.0.
55010         * tests/test-roundl.c (zero): New variable.
55011         (main): Avoid literal -0.0L.
55012         * tests/test-truncf1.c (zero): New variable.
55013         (main): Avoid literal -0.0f.
55014         * tests/test-trunc1.c (zero): New variable.
55015         (main): Avoid literal -0.0.
55016         * tests/test-truncl.c (zero): New variable.
55017         (main): Avoid literal -0.0L.
55018         * tests/test-frexp.c (zero): New variable.
55019         (main): Avoid literal -0.0.
55020         * tests/test-frexpl.c (zero): New variable.
55021         (main): Avoid literal -0.0L.
55022         * tests/test-ldexpl.c (zero): New variable.
55023         (main): Avoid literal -0.0L.
55024         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55025         (zerod, zerol): New variables.
55026         (test_function): Avoid literals -0.0, -0.0L.
55027         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55028         (zerod, zerol): New variables.
55029         (test_function): Avoid literals -0.0, -0.0L.
55030         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55031         (zerod, zerol): New variables.
55032         (test_function): Avoid literals -0.0, -0.0L.
55033         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55034         (zerod, zerol): New variables.
55035         (test_function): Avoid literals -0.0, -0.0L.
55036         * tests/test-strtod.c (zero): New variable.
55037         (main): Avoid literal -0.0.
55038         Reported by Jonathan C. Patschke <jp@centtech.com>.
55039
55040 2008-07-31  Jim Meyering  <meyering@redhat.com>
55041
55042         sha256.h: correct definition of SHA224_DIGEST_SIZE
55043         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55044         Reported by Paulie Pena IV <paulie4@gmail.com>.
55045         Define as 224 / 8, rather than as a literal.
55046         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55047         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55048         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55049
55050 2008-07-31  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55053         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55054         Reported by Jonathan Patschke <jp@centtech.com>.
55055
55056 2008-07-31  Bruno Haible  <bruno@clisp.org>
55057
55058         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55059         Reported by Paolo Bonzini <bonzini@gnu.org>.
55060
55061 2008-07-30  Eric Blake  <ebb9@byu.net>
55062
55063         test-strtod: allow compilation without -lm
55064         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55065         Reported by Dennis Clarke <blastwave@gmail.com>.
55066
55067 2008-07-28  Jim Meyering  <meyering@redhat.com>
55068
55069         bootstrap: work also when there are no .po files in po/
55070         * build-aux/bootstrap (update_po_files): Complete the change
55071         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55072
55073 2008-07-27  Jim Meyering  <meyering@redhat.com>
55074
55075         * users.txt: Add zile.
55076
55077 2008-07-26  Ben Pfaff  <blp@gnu.org>
55078
55079         Add missing dependencies on new m4/exponent[fdl].m4 files.
55080         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55081         * modules/isnand-nolibm: Add m4/exponentd.m4.
55082         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55083         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55084         m4/isnan[fdl].m4, because the macros actually used moved.
55085         Reported by Jim Meyering.
55086
55087 2008-07-14  Ben Pfaff  <blp@gnu.org>
55088
55089         Add isinf module.
55090         * lib/isinf.c: New file.
55091         * lib/math.in.h: Define isinf macro if we have decided to replace
55092         it.
55093         * m4/isinf.m4: New file.
55094         * m4/math_h.m4: Initialize and substitute variables for isinf
55095         module.
55096         * modules/isinf: New file.
55097         * modules/isinf-tests: New file.
55098         * modules/math: Add substitutions for new module.
55099         * tests/test-isinf.c: New file.
55100         * doc/posix-functions/isinf.texi: Mention new module.
55101         * MODULES.html.sh: Mention new module.
55102
55103 2008-07-14  Ben Pfaff  <blp@gnu.org>
55104
55105         Factor out some macros for use by additional modules.
55106         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55107         exponentf.m4.
55108         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55109         exponentd.m4.
55110         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55111         file exponentl.m4.
55112         * m4/exponentf.m4: New file.
55113         * m4/exponentd.m4: New file.
55114         * m4/exponentl.m4: New file.
55115         * modules/isnanf: Use new file m4/exponentf.m4.
55116         * modules/isnand: Use new file m4/exponentd.m4.
55117         * modules/isnanl: Use new file m4/exponentl.m4.
55118
55119 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55120
55121         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55122         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55123         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55124         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55125
55126         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55127         readlink on platforms without PATH_MAX.
55128
55129 2008-07-21  Eric Blake  <ebb9@byu.net>
55130
55131         Warn, not fail, on stale version.
55132         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55133
55134         Don't allow installation with stale devel version number.
55135         * top/GNUmakefile (_is-install-target): New macro.
55136         (_curr-ver): Forbid installation with stale version number.
55137
55138 2008-07-20  Bruno Haible  <bruno@clisp.org>
55139
55140         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55141         TESTS_ENVIRONMENT.
55142         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55143
55144 2008-07-20  Bruno Haible  <bruno@clisp.org>
55145
55146         * lib/c-stack.h (c_stack_action): Add documentation.
55147         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55148
55149 2008-07-20  Bruno Haible  <bruno@clisp.org>
55150
55151         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55152         * modules/readlink (License): Likewise.
55153
55154 2008-07-17  Eric Blake  <ebb9@byu.net>
55155
55156         * modules/c-stack (Link): Fix typo.
55157
55158         Make c-stack use libsigsegv, when available.
55159         * modules/c-stack (Depends-on): Add libsigsegv.
55160         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55161         needed.
55162         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55163         (segv_handler, overflow_handler, c_stack_action)
55164         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55165         implementation when libsigsegv is available, but only when using
55166         the library is necessary.
55167         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55168         comment, explaining why XSI check fails on Linux.
55169         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55170         * tests/test-c-stack2.sh: Tweak skip message.
55171         * NEWS: Document new link-time requirements.
55172
55173 2008-07-16  Eric Blake  <ebb9@byu.net>
55174
55175         c-stack: Expose false positives when not using libsigsegv.
55176         * modules/c-stack-tests (Files): Expand test.
55177         * tests/test-c-stack.c (main): Add means to conditionally trigger
55178         non-overflow SIGSEGV.
55179         * tests/test-c-stack2.sh: New file.
55180
55181 2008-07-14  Bruno Haible  <bruno@clisp.org>
55182
55183         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55184         Reported by Eric Blake.
55185
55186 2008-07-14  Sam Steingold  <sds@gnu.org>
55187             Bruno Haible  <bruno@clisp.org>
55188
55189         New module libsigsegv.
55190         * modules/libsigsegv: New file.
55191         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55192         modifications.
55193         * MODULES.html.sh (Signal handling): New section.
55194
55195 2008-07-14  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/unictype/ctype-* (Description): Add the word "function".
55198         Improves the resulting doc in MODULES.html.
55199
55200 2008-07-12  Ben Pfaff  <blp@gnu.org>
55201
55202         Add longlong module.
55203         * modules/longlong: New file.
55204
55205 2008-07-12  Bruno Haible  <bruno@clisp.org>
55206
55207         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55208         to empty.
55209
55210 2008-07-10  Ben Pfaff  <blp@gnu.org>
55211
55212         Add isnan module.
55213         * doc/posix-functions/isnan.texi: Mention new module.
55214         * lib/math.in.h: Define isnan macro if we have decided to replace
55215         it.
55216         * m4/isnan.m4: New file.
55217         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55218         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55219         also.
55220         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55221         redundancy.
55222         * m4/math_h.m4: Initialize and substitute variables for isnan
55223         module.
55224         * modules/isnan: New file.
55225         * modules/isnan-tests: New file.
55226         * modules/math: Add substitutions for new module.
55227         * tests/test-isnan.c: New file.
55228         * MODULES.html.sh: Mention new module.
55229
55230 2008-07-10  Ben Pfaff  <blp@gnu.org>
55231
55232         Add isnanf module.
55233         * lib/isnanf.m4: New file.
55234         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55235         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55236         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55237         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55238         * modules/isnanf: New file.
55239         * modules/isnanf-tests: New file.
55240         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55241         files.
55242         * tests/test-isnanf-nolibm.c: factored most of its contents into
55243         new file tests/test-isnanf.h.
55244         * tests/test-isnanf.h: New file.
55245         * tests/test-isnanf.c: New file.
55246         * MODULES.html.sh: Mention new module.
55247         * doc/glibc-functions/isnanf.texi: Mention new module.
55248
55249 2008-07-10  Ben Pfaff  <blp@gnu.org>
55250
55251         Add isnand module.
55252         * lib/isnand.h: New file.
55253         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55254         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55255         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55256         functionality also.
55257         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55258         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55259         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55260         * modules/isnand: New file.
55261         * modules/isnand-tests: New file.
55262         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55263         files.
55264         * tests/test-isnand-nolibm.c: factored most of its contents into
55265         new file tests/test-isnand.h.
55266         * tests/test-isnand.h: New file.
55267         * tests/test-isnand.c: New file.
55268         * MODULES.html.sh: Mention new module.
55269
55270 2008-07-10  Ben Pfaff  <blp@gnu.org>
55271
55272         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55273         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55274         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55275         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55276         * modules/isnanf-nolibm: Update references to renamed files.
55277         * modules/isnand-nolibm: Likewise.
55278         * modules/isnanf-nolibm-tests: Likewise.
55279         * modules/isnand-nolibm-tests: Likewise.
55280         * lib/frexp.c: Likewise.
55281         * lib/isfinite.c: Likewise.
55282         * lib/signbitd.c: Likewise.
55283         * lib/signbitf.c: Likewise.
55284         * lib/vasnprintf.c: Likewise.
55285         * tests/test-ceilf1.c: Likewise.
55286         * tests/test-ceilf2.c: Likewise.
55287         * tests/test-floorf1.c: Likewise.
55288         * tests/test-floorf2.c: Likewise.
55289         * tests/test-frexp.c: Likewise.
55290         * tests/test-round1.c: Likewise.
55291         * tests/test-round2.c: Likewise.
55292         * tests/test-roundf1.c: Likewise.
55293         * tests/test-strtod.c: Likewise.
55294         * tests/test-trunc1.c: Likewise.
55295         * tests/test-trunc2.c: Likewise.
55296         * tests/test-truncf1.c: Likewise.
55297         * tests/test-truncf2.c: Likewise.
55298         * NEWS: Mention the renamed header files.
55299
55300 2008-07-11  Jim Meyering  <meyering@redhat.com>
55301
55302         vc-list-files: make the last-resort awk code more portable
55303         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55304         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55305         does not support it.
55306
55307 2008-07-10  Eric Blake  <ebb9@byu.net>
55308
55309         Work with tar's bootstrap.
55310         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55311         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55312         an m4 comment.
55313
55314 2008-07-09  Jim Meyering  <meyering@redhat.com>
55315
55316         posix-shell.m4: fix typo that made this test malfunction
55317         * m4/posix-shell.m4: Remove capitalization in variable name.
55318
55319 2008-07-08  Bruno Haible  <bruno@clisp.org>
55320
55321         * m4/onceonly.m4: Update comments.
55322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55323
55324 2008-07-04  Jim Meyering  <meyering@redhat.com>
55325
55326         * users.txt: Add vc-dwim.
55327         (bison, coreutils): Use the gitweb URL.
55328
55329 2008-07-03  Jim Meyering  <meyering@redhat.com>
55330
55331         * users.txt: Add libffcall.  From Sam Steingold.
55332
55333 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55334
55335         getdate.y: do not ignore TZ with relative day, month or year offset
55336         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55337         relative-date-handling, since otherwise, the latter would clobber the
55338         sole output (an updated Start value) of the tz-handling block.
55339         * tests/test-getdate.c: Tests for the fix
55340
55341 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55342
55343         Recognize 'foo_LIBRARIES += libgnu.a'.
55344         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55345         makefile snippet has already specified an installation location,
55346         also using '+='.
55347
55348 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55349
55350         getdate.y: factor out common actions
55351         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55352         Use them in place of open-coded actions.
55353
55354 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55355
55356         Add self-test for getdate module.
55357         * modules/getdate-tests: New file.
55358         * tests/test-getdate.c: New file.
55359
55360 2008-06-29  Bruno Haible  <bruno@clisp.org>
55361
55362         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55363         .gitignore.
55364         Reported by Sylvain Beucler <beuc@beuc.net>.
55365
55366 2008-06-29  Bruno Haible  <bruno@clisp.org>
55367
55368         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55369         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55370
55371 2008-06-29  Bruno Haible  <bruno@clisp.org>
55372
55373         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55374         EXTRA_DIST.
55375         Reported by Sylvain Beucler <beuc@beuc.net>.
55376
55377 2008-06-26  Jim Meyering  <meyering@redhat.com>
55378
55379         make several modules depend on the "open" module
55380         This provides slightly increased consistency when opening-for-write
55381         the name of a non-directory spelled with a trailing slash.
55382         * modules/chdir-safer: Likewise.
55383         * modules/chown: Likewise.
55384         * modules/clean-temp: Likewise.
55385         * modules/copy-file: Likewise.
55386         * modules/fchdir: Likewise.
55387         * modules/fcntl-safer: Likewise.
55388         * modules/pipe: Likewise.
55389         * modules/utime: Likewise.
55390         Prompted by Eric Blake and Bruno Haible.
55391
55392 2008-06-24  Andreas Schwab  <schwab@suse.de>
55393
55394         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55395         literals can be used as initializers for global variables.
55396
55397 2008-06-23  Eric Blake  <ebb9@byu.net>
55398
55399         Make gnulib-cache.m4 easier to diff.
55400         * gnulib-tool (func_import): Allow newlines when reading cached
55401         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55402
55403 2008-06-23  Bruno Haible  <bruno@clisp.org>
55404
55405         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55406         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55407         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55408         m4/signalblocking.m4.
55409         (gl_PREREQ_SIGACTION): Don't invoke it.
55410         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55411         gl_PREREQ_SIG_HANDLER_H.
55412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55413         Don't check for sigaction here.
55414
55415 2008-06-23  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55418         (install_handlers): Don't set the SA_RESETHAND flag.
55419
55420 2008-06-23  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/sigaction.m4: Comment fixes.
55423         * lib/signal.in.h: Likewise.
55424
55425 2008-06-23  Eric Blake  <ebb9@byu.net>
55426
55427         Fix typo.
55428         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55429
55430         Avoid SA_ namespace.
55431         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55432         Reported by Ralf Wildenhues.
55433
55434         Avoid test failure due to SA_RESTORER.
55435         * tests/test-sigaction.c (SA_MASK): New macro.
55436         (main): Avoid failing due to extension flags being set.
55437         Reported by Jim Meyering.
55438
55439         Revert use of sig-handler.h in sigprocmask.c.
55440         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55441         it requires the existence of struct sigaction.
55442         * lib/sigprocmask.c (handler_t): Restore typedef.
55443         (rpl_signal, old_handlers): Use local type.
55444
55445 2008-06-22  Bruno Haible  <bruno@clisp.org>
55446
55447         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55448         conditionally.
55449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55450
55451 2008-06-22  Bruno Haible  <bruno@clisp.org>
55452
55453         * doc/posix-functions/siginterrupt.texi: Move note.
55454
55455         * lib/signal.in.h (SA_RESTART): New macro.
55456         * lib/sigaction.c: Update comment.
55457
55458         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55459
55460         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55461         (gl_PREREQ_SIGPROCMASK): Invoke it.
55462         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55463
55464         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55465
55466         * lib/sigprocmask.c: Update a comment.
55467
55468 2008-06-21  Eric Blake  <ebb9@byu.net>
55469
55470         Use sigaction module rather than signal().
55471         * modules/c-stack (Depends-on): Add sigaction.
55472         * modules/fatal-signal (Depends-on): Likewise.
55473         * modules/nanosleep (Depends-on): Likewise.
55474         * modules/sigprocmask (Files): Add sig-handler.h.
55475         * modules/sigaction (Files): Likewise.
55476         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55477         Eggert.
55478         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55479         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55480         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55481         (init_fatal_signals): Likewise.
55482         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55483         (siginterrupt): Delete fallback.
55484         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55485         instead.
55486         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55487         siginterrupt.
55488
55489         New module sigaction, for mingw.
55490         * modules/sigaction: New module...
55491         * modules/sigaction-tests: ...and its test.
55492         * m4/sigaction.m4: New file.
55493         * lib/sigaction.c: Likewise.
55494         * tests/test-sigaction.c: Likewise.
55495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55496         * modules/signal (Makefile.am): Likewise.
55497         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55498         needed.
55499         * doc/posix-headers/signal.texi (signal.h): Mention provided
55500         types.
55501         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55502         that sigaction is preferable.
55503         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55504         module.
55505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55506         sigaction.
55507
55508         Improve robustness of sigprocmask by overriding signal.
55509         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55510         is in use.
55511         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55512         (SIGKILL, SIGSTOP): Provide fallbacks.
55513         (rpl_signal): Implement.
55514         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55515         signal can be called inside handlers.
55516
55517         Fix nanosleep module on mingw.
55518         * modules/nanosleep (Depends-on): Add sys_select.
55519         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55520
55521         Fix licensing of sigprocmask.
55522         * modules/raise (License): Relicense as LGPL.
55523
55524 2008-06-21  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55527         result if it contains question marks.
55528         Reported by Michael Geng <linux@michaelgeng.de>.
55529
55530 2008-06-19  Bruno Haible  <bruno@clisp.org>
55531
55532         Fix CVS-ism.
55533         * doc/gnulib.texi: Include updated-stamp.texi.
55534         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55535         (updated-stamp.texi): New rule.
55536         (gnulib.info): Depend on it.
55537         * doc/.gitignore: Add updated-stamp.texi.
55538         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55539
55540 2008-06-19  Bruno Haible  <bruno@clisp.org>
55541
55542         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55543         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55544
55545 2008-06-19  Eric Blake  <ebb9@byu.net>
55546
55547         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55548         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55549         Reported by Stepan Kasal.
55550
55551 2008-06-18  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55554         Reported by Eric Blake.
55555
55556 2008-06-18  Eric Blake  <ebb9@byu.net>
55557
55558         Work around cygwin 1.5.25 strsignal bug.
55559         * tests/test-strsignal.c: Allow for const char *.
55560         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55561
55562 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55563
55564         * users.txt: Update URL to article and add author/date
55565         information.
55566
55567 2008-06-17  Bruno Haible  <bruno@clisp.org>
55568
55569         New macro gl_DISABLE_THREADS.
55570         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55571         if the user did not pass --enable-threads or --disable-threads option.
55572         (gl_DISABLE_THREADS): New macro.
55573         Reported by Eric Blake <ebb9@byu.net>.
55574
55575 2008-06-17  Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55578         when the macro ignores it.
55579         Based on a patch by Eric Blake <ebb9@byu.net>.
55580
55581 2008-06-17  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/tls (License): Change to LGPLv2+.
55584         Reported by Eric Blake.
55585
55586 2008-06-17  Eric Blake  <ebb9@byu.net>
55587
55588         Simplify c-stack prerequisites.
55589         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55591         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55592         check.
55593         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55594         <sys/resource.h>.
55595
55596         Move c-stack test into testsuite.
55597         * modules/c-stack-tests: New file.
55598         * lib/c-stack.c [DEBUG]: Move test program...
55599         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55600         fail test if sigaltstack is lacking.
55601         * tests/test-c-stack.sh: New driver file.
55602
55603 2008-06-16  Eric Blake  <ebb9@byu.net>
55604
55605         Use raise module consistently.
55606         * modules/fatal-signal (Depends-on): Add raise.
55607         * modules/sigprocmask (Depends-on): Likewise.
55608         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55609         * lib/sigprocmask.c (sigprocmask): Likewise.
55610         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55611         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55612
55613         Fix compliance bug in sigpending.
55614         * lib/sigprocmask.c (sigpending): Return pending array via
55615         parameter, not return value.
55616
55617 2008-06-14  Eric Blake  <ebb9@byu.net>
55618
55619         Improve obstack-printf test code.
55620         * tests/test-obstack-printf.c (test_function): Fix comment, and
55621         simplify usage of obstack_* in macros.  Add a test for coverage.
55622         Reported by Bruno Haible.
55623
55624 2008-06-14  Bruno Haible  <bruno@clisp.org>
55625
55626         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55627         array size as a constant, not as a const variable.
55628         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55629         AC_USE_SYSTEM_EXTENSIONS.
55630         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55631         Test whether the obstack_printf function actually exists.
55632         * modules/obstack-printf (Depends-on): Add extensions.
55633         (Include): Remove obstack.h.
55634         * modules/obstack-printf-posix (Depends-on): Add extensions.
55635         (Include): Remove obstack.h.
55636
55637 2008-06-13  Eric Blake  <ebb9@byu.net>
55638
55639         Add obstack-printf and obstack-printf-posix modules.
55640         * modules/obstack-printf: New file.
55641         * modules/obstack-printf-posix: Likewise.
55642         * MODULES.html.sh (Misc): Mention them.
55643         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55644         Likewise.
55645         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55646         Likewise.
55647         * modules/stdio (Makefile.am): Accomodate new modules.
55648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55649         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55650         Declare.
55651         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55652         functions.
55653         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55654         (gl_REPLACE_OBSTACK_PRINTF): New macros
55655         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55656         * tests/test-obstack-printf.c: New file.
55657         * modules/obstack-printf-tests: Likewise.
55658         * modules/obstack-printf-posix-tests: Likewise.
55659
55660 2008-06-11  Bruno Haible  <bruno@clisp.org>
55661
55662         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55663         * lib/open.c: Include errno.h.
55664         (open): Fail when attempting to write to a file that has a trailing
55665         slash.
55666         * tests/test-open.c (main): Test against trailing slash bug.
55667         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55668
55669 2008-06-10  Bruno Haible  <bruno@clisp.org>
55670
55671         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55672         for $? to work inside the trap command, with various /bin/sh-s.
55673         * tests/test-vc-list-files-cvs.sh: Likewise.
55674
55675 2008-06-10  Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/acl-internal.h: Don't include gettext.h here.
55678         * lib/set-mode-acl.c: Include gettext.h here.
55679         * lib/copy-acl.c: Likewise.
55680
55681 2008-06-10  Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55684         * lib/wait-process.c (wait_subprocess): Likewise.
55685         * lib/execute.h (execute): Add termsigp argument.
55686         * lib/execute.c (execute): Likewise.
55687         * lib/csharpcomp.c (compile_csharp_using_pnet,
55688         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55689         * lib/csharpexec.c (execute_csharp_using_pnet,
55690         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55691         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55692         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55693         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55694         is_jikes_present): Update.
55695         * lib/javaexec.c (execute_java_class): Update.
55696         * lib/javaversion.c (execute_and_read_line): Update.
55697         * NEWS: Document the changes.
55698         Reported by Eric Blake.
55699
55700 2008-06-10  Eric Blake  <ebb9@byu.net>
55701
55702         Add missing include.
55703         * tests/test-strstr.c (includes): Add <signal.h>.
55704         * tests/test-strcasestr.c (includes): Likewise.
55705         * tests/test-memmem.c (includes): Likewise.
55706
55707 2008-06-10  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/wait-process.c (wait_subprocess): Add an assertion.
55710
55711 2008-06-10  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55714
55715 2008-06-10  Bruno Haible  <bruno@clisp.org>
55716
55717         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55718         using alarm().
55719         * tests/test-strcasestr.c (main): Likewise.
55720         * tests/test-strstr.c (main): Likewise.
55721
55722 2008-06-09  Bruno Haible  <bruno@clisp.org>
55723
55724         Work around the Solaris 10 ACE ACLs ABI change.
55725         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55726         declare if ACL_NO_TRIVIAL is present.
55727         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55728         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55729         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55730         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55731         define if ACL_NO_TRIVIAL is present.
55732         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55733         and use the current ABI.
55734         (file_has_acl): Use same #if condition as elsewhere.
55735         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55736         in use, and use the current ABI.
55737         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55738         Reported by Jim Meyering.
55739
55740 2008-06-09  Eric Blake  <ebb9@byu.net>
55741
55742         Work around environments that (stupidly) ignore SIGALRM.
55743         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55744         before using alarm().
55745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55747         Reported by Ian Beckwith <ianb@erislabs.net>.
55748
55749         Produce autobuild blurb earlier in log.
55750         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55751
55752 2008-06-09  Jim Meyering  <meyering@redhat.com>
55753         and Ondřej Vašík  <ovasik@redhat.com>
55754
55755         utimens.c: correct kernel bug work-around
55756         Ondřej Vašík found that the invalid return value of 280 indicates
55757         failure, not success, and the kernel bug we're trying to work
55758         around affects not just the utimensat call, but also the fallback
55759         futimens call.
55760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55761         not success.
55762         [HAVE_FUTIMENS]: Use the same work-around, here.
55763
55764 2008-06-09  Jim Meyering  <meyering@redhat.com>
55765
55766         add more guards around definition of ACE_-related code
55767         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55768         ALLOW and ACE_OWNER are also defined.
55769
55770 2008-06-08  Bruno Haible  <bruno@clisp.org>
55771
55772         * lib/acl-internal.h: Add me as co-author.
55773         * lib/file-has-acl.c: Likewise.
55774         * lib/set-mode-acl.c: Likewise.
55775         * lib/copy-acl.c: Likewise.
55776
55777 2008-06-08  Bruno Haible  <bruno@clisp.org>
55778
55779         Add support for AIX ACLs.
55780         * lib/acl-internal.h (acl_nontrivial): New declaration.
55781         * lib/file-has-acl.c (acl_nontrivial): New function.
55782         (file_has_acl): Add implementation using AIX 4 ACL API.
55783         * lib/set-mode-acl.c (qset_acl): Likewise.
55784         * lib/copy-acl.c (qcopy_acl): Likewise.
55785
55786 2008-06-08  Bruno Haible  <bruno@clisp.org>
55787
55788         Add support for HP-UX ACLs.
55789         * lib/acl-internal.h (acl_nontrivial): New declaration.
55790         * lib/file-has-acl.c (acl_nontrivial): New function.
55791         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55792         * lib/set-mode-acl.c (qset_acl): Likewise.
55793         * lib/copy-acl.c (qcopy_acl): Likewise.
55794
55795 2008-06-08  Bruno Haible  <bruno@clisp.org>
55796
55797         Add support for Cygwin ACLs.
55798         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55799         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55800         the chmod_or_fchmod call.
55801         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55802
55803 2008-06-08  Bruno Haible  <bruno@clisp.org>
55804
55805         Fix bug with setuid modes in Solaris 10+ code.
55806         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55807         succeeded, when the mode contains some special bits.
55808
55809 2008-06-08  Bruno Haible  <bruno@clisp.org>
55810
55811         Add support for Solaris 7..10 ACLs.
55812         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55813         declarations.
55814         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55815         functions.
55816         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55817         * lib/set-mode-acl.c (qset_acl): Likewise.
55818         * lib/copy-acl.c (qcopy_acl): Likewise.
55819
55820 2008-06-08  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55823         declaration.
55824         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55825         (acl_access_nontrivial): Remove MacOS X case.
55826         (file_has_acl): Use acl_extended_nontrivial.
55827         * lib/copy-acl.c (qcopy_acl): Likewise.
55828
55829 2008-06-08  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55832
55833 2008-06-08  Jim Meyering  <meyering@redhat.com>
55834
55835         * modules/acl (Maintainer): Add Bruno Haible.
55836
55837 2008-06-07  Bruno Haible  <bruno@clisp.org>
55838
55839         Improve support for Tru64 ACLs.
55840         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55841         ACL on OSF/1.
55842
55843 2008-06-07  Bruno Haible  <bruno@clisp.org>
55844
55845         Add support for MacOS X ACLs.
55846         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55847         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55848         * lib/set-mode-acl.c (qset_acl): Likewise.
55849         * lib/copy-acl.c (qcopy_acl): Likewise.
55850
55851 2008-06-07  Bruno Haible  <bruno@clisp.org>
55852
55853         Fix memory leak introduced on 2008-05-22.
55854         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55855         use.
55856
55857 2008-06-07  Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55860         to construct an empty ACL.
55861
55862 2008-06-07  Bruno Haible  <bruno@clisp.org>
55863
55864         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55865         precisely.
55866         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55867
55868 2008-06-07  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55871         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55872
55873 2008-06-07  Bruno Haible  <bruno@clisp.org>
55874
55875         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55876         regardless of POSIX.
55877         * doc/posix-functions/_longjmp.texi: Likewise.
55878         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55879         SystemV platform in this case.
55880
55881 2008-06-06  Eric Blake  <ebb9@byu.net>
55882
55883         Document abort() bugs.
55884         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55885
55886         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55887         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55888         sigsetjmp.
55889         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55890         siglongjmp, but only as a macro.
55891         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55892         is obsolete.
55893         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55894
55895         Tweak documentation to cover cygwin argz bugs.
55896         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55897         argz bug fix; no code change needed since no cygwin releases
55898         occurred between the last fix and the bug being tested.
55899         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55900         module and recently fixed cygwin bugs.
55901         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55902         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55903         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55904         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55905         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55906         Likewise.
55907         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55908         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55909         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55910         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55911         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55912         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55913         Likewise.
55914
55915         Avoid gcc warning on cygwin.
55916         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55917         !ACL_NO_TRIVIAL]: Avoid unused variable.
55918
55919 2008-06-05  Eric Blake  <ebb9@byu.net>
55920
55921         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55922         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55923         git-version-gen fails to come up with a version.
55924         Reported by Simon Josefsson.
55925
55926 2008-06-05  Jim Meyering  <meyering@redhat.com>
55927             Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         utimens.c: work around a probable Linux kernel bug
55930         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55931         appears to be a kernel bug that causes utimensat to return 280
55932         instead of 0, indicating success.
55933
55934 2008-06-04  Bruno Haible  <bruno@clisp.org>
55935
55936         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55937         2008-06-01 commit.
55938
55939 2008-06-04  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55942         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55943         (file_has_acl): Use it. Save errno afterwards.
55944         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55945
55946 2008-06-03  Bruno Haible  <bruno@clisp.org>
55947
55948         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55949         draft code. Simplify #ifs.
55950         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55951         Put Solaris code after POSIX-draft code. Fix comments regarding
55952         Solaris 10, HP-UX. Mention Cygwin.
55953         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55954
55955 2008-06-03  Eric Blake  <ebb9@byu.net>
55956
55957         Provide fallback for older kernels.
55958         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55959         Provide runtime fallback if kernel lacks support.
55960         Reported by Mike Frysinger.
55961
55962 2008-06-02  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55965         it exists.
55966
55967 2008-06-02  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55970         * lib/copy-acl.c (qcopy_acl): Update comment.
55971
55972 2008-06-02  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55975         like ACL APIs.
55976
55977 2008-06-02  Bruno Haible  <bruno@clisp.org>
55978
55979         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55980         * tests/test-set-mode-acl.sh: Likewise.
55981         * tests/test-copy-acl.sh: Likewise.
55982         * tests/test-copy-file.sh: Likewise.
55983
55984 2008-06-02  Bruno Haible  <bruno@clisp.org>
55985
55986         * tests/test-file-has-acl.sh: Remove unused code.
55987
55988 2008-06-01  Bruno Haible  <bruno@clisp.org>
55989
55990         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55991         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55992         messages.
55993         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55994
55995 2008-06-01  Bruno Haible  <bruno@clisp.org>
55996
55997         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55998         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55999         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56000         APIs.
56001         * modules/acl-tests (configure.ac): Remove tests now contained in
56002         m4/acl.m4.
56003
56004 2008-06-02  Jim Meyering  <meyering@redhat.com>
56005
56006         announce-gen: use a better key-server host name
56007         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56008         it may be more consistently reliable.  Suggested by Werner Koch
56009         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56010
56011 2008-06-01  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56014         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56015
56016 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56017
56018         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56019
56020 2008-06-01  Bruno Haible  <bruno@clisp.org>
56021
56022         New ACL tests.
56023         * tests/test-file-has-acl.sh: New file.
56024         * tests/test-file-has-acl.c: New file.
56025         * tests/test-set-mode-acl.sh: New file.
56026         * tests/test-set-mode-acl.c: New file.
56027         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56028         * tests/test-copy-acl.c: New file.
56029         * modules/acl-tests: New file, based on modules/copy-file-tests.
56030         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56031         (Depends-on): Add acl-tests.
56032         (configure.ac): Remove checks.
56033         (Makefile.am): Don't create test-sameacls program here any more.
56034
56035 2008-06-01  Bruno Haible  <bruno@clisp.org>
56036
56037         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56038         * tests/test-sameacls.c: Include progname.h.
56039         (main): Invoke set_program_name. Portability fixes for MacOS X,
56040         Solaris, HP-UX.
56041
56042 2008-06-01  Bruno Haible  <bruno@clisp.org>
56043
56044         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56045         function.
56046         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56047
56048 2008-06-01  Bruno Haible  <bruno@clisp.org>
56049
56050         * modules/rpmatch (Depends-on): Add strdup.
56051
56052 2008-06-01  Bruno Haible  <bruno@clisp.org>
56053
56054         * lib/pipe.c: Include unistd-safer.h.
56055         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56056         * modules/pipe (Depends-on): Add unistd-safer.
56057
56058 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56059
56060         * modules/autobuild (configure.ac): Call AB_INIT.
56061
56062 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56063
56064         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56065         Suggested by Bruno Haible <bruno@clisp.org>.
56066
56067 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56068
56069         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56070         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56071         <bruno@clisp.org>.
56072
56073 2008-05-29  Eric Blake  <ebb9@byu.net>
56074
56075         Prefer new POSIX 200x interfaces over futimesat.
56076         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56077         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56078         when available.
56079         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56080
56081 2008-05-28  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/stpcpy (License): Change to LGPLv2+.
56084         Requested by David Lutterkort <dlutter@redhat.com>.
56085
56086 2008-05-27  Bruno Haible  <bruno@clisp.org>
56087
56088         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56089         current mingw.
56090         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56091
56092 2008-05-27  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/iconv_open (Link): New section, from module 'iconv'.
56095         * modules/striconv (Link): Likewise.
56096         * modules/striconveh (Link): Likewise.
56097         * modules/xstriconv (Link): Likewise.
56098         * modules/unicodeio (Link): Likewise.
56099         * modules/propername (Link): Likewise.
56100         Reported by Jim Meyering.
56101
56102 2008-05-26  Jim Meyering  <meyering@redhat.com>
56103
56104         sha256: do not artificially restrict buffer length to be < 2^32
56105         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56106         uint32_t to size_t.
56107         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56108         to match.
56109
56110         avoid unaligned access errors, e.g., on sparc
56111         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56112         direct access through a possibly-unaligned uint64* pointer.
56113         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56114         direct access through a possibly-unaligned uint32* pointer.
56115         Prompted by this patch from Tom "spot" Callaway:
56116         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56117
56118         sha512.c: fix typo in comment
56119         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56120
56121 2008-05-25  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56124         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56125         (Makefile.am): Update lib_SOURCES.
56126
56127 2008-05-25  Bruno Haible  <bruno@clisp.org>
56128
56129         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56130
56131 2008-05-25  Jim Meyering  <meyering@redhat.com>
56132
56133         useless-if-before-free: freed expr may have white-space differences
56134         * build-aux/useless-if-before-free: Recognize cases in which the
56135         freed expression differs from the tested one in embedded white
56136         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56137         $1 was used, so we can't make any regexp shy.  Improved tests now
56138         detect this.
56139
56140         useless-if-before-free: accept white space in the expression.
56141         * build-aux/useless-if-before-free: For now, any white space
56142         in the expression must be identical in the free argument.
56143
56144         useless-if-before-free: efficiency tweak
56145         * build-aux/useless-if-before-free: Make the expression-matching
56146         regexp "shy".
56147         Make the *outer* regexp shy, not the expr-matching one.
56148
56149         update code-in-comment to accept cast of free arg
56150         * build-aux/useless-if-before-free: Update regexp.
56151
56152 2008-05-25  Bruno Haible  <bruno@clisp.org>
56153
56154         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56155         * modules/copy-file-tests (Files, Makefile.am): Update.
56156         * tests/test-copy-file.c (func_test_copy): Update.
56157
56158 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56159
56160         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56161
56162 2008-05-23  Bruno Haible  <bruno@clisp.org>
56163
56164         Improve support for ACLs on OSF/1.
56165         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56166         Remove fallback for unknown flavors of ACLs.
56167
56168 2008-05-22  Bruno Haible  <bruno@clisp.org>
56169
56170         Add support for ACLs on OSF/1.
56171         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56172         replacements.
56173         (acl_free_text): New macro fallback.
56174         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56175         acl_free.
56176         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56177         acl_free_text function. Require AC_C_INLINE.
56178
56179 2008-05-22  Bruno Haible  <bruno@clisp.org>
56180
56181         Make copy_acl work on MacOS X 10.5.
56182         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56183         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56184         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56185         If MODE_INSIDE_ACL, don't assume that every system has the same text
56186         representation for ACLs as FreeBSD.
56187         * lib/copy-acl.c (copy_acl): Add support for platforms with
56188         !MODE_INSIDE_ACL.
56189         * lib/file-has-acl.c (file_has_acl): Likewise.
56190         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56191         FreeBSD, MacOS X, or IRIX, respectively.
56192
56193 2008-05-22  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/acl.h: Don't include <sys/acl.h>.
56196         (GETACLCNT): Move fallback to lib/acl-internal.h.
56197         * lib/acl-internal.h: Include <sys/acl.h> here.
56198         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56199
56200 2008-05-22  Bruno Haible  <bruno@clisp.org>
56201
56202         Split off copy_acl function to separate file.
56203         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56204         * lib/acl.c (copy_acl): Moved function to separate file.
56205         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56206         * modules/acl (Files): Add lib/copy-acl.c.
56207         (Makefiles.am): Augment lib_SOURCES.
56208
56209 2008-05-22  Bruno Haible  <bruno@clisp.org>
56210
56211         * modules/copy-file-tests: New file.
56212         * tests/test-copy-file.sh: New file.
56213         * tests/test-copy-file.c: New file.
56214         * tests/test-copy-file-sameacls.c: New file.
56215
56216 2008-05-22  Eric Blake  <ebb9@byu.net>
56217
56218         Avoid gcc warning.
56219         * tests/test-memcmp.c (main): Pass NULL indirectly.
56220
56221 2008-05-21  Bruno Haible  <bruno@clisp.org>
56222
56223         Add reference doc about ACLs.
56224         * doc/acl-resources.txt: New file.
56225         * doc/acl-cygwin.txt: New file.
56226
56227 2008-05-21  Bruno Haible  <bruno@clisp.org>
56228
56229         Avoid one more warning from gcc.
56230         * lib/vasnprintf.c (IF_LINT): Update comments.
56231         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56232
56233 2008-05-21  Jim Meyering  <meyering@redhat.com>
56234
56235         avoid a warning from gcc
56236         * lib/vasnprintf.c (IF_LINT): Define.
56237         (scale10_round_decimal_long_double):
56238         Use it to avoid a "may be used uninitialized" warning.
56239         (scale10_round_decimal_double): Likewise.
56240
56241 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56242
56243         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56244         declared.
56245
56246 2008-05-20  Bruno Haible  <bruno@clisp.org>
56247
56248         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56249         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56250
56251 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56252
56253         * modules/memcmp-tests: New file.
56254         * tests/test-memcmp.c: New file.
56255
56256 2008-05-19  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/propername (Notice, configure.ac): Put quoted "..." into
56259         --keyword option.
56260         * lib/propername.h: Update comments accordingly.
56261         Reported by Eric Blake.
56262
56263 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56264
56265         * modules/getpass-gnu (Depends-on): Add fseeko.
56266
56267 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56268
56269         * modules/base64-tests: New file.
56270
56271 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56272
56273         * lib/base64.c (base64_decode_ctx): If a decode context structure
56274         was passed in use it to ignore newlines.  If a context structure
56275         was _not_ passed in, continue to treat newlines as garbage (this
56276         is the historical behavior).  Formerly base64_decode.
56277         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56278         takes a decode context structure.
56279         * lib/base64.h (base64_decode): Macro for four-argument calls.
56280         (base64_decode_alloc): Likewise.
56281         * lib/base64.c (base64_decode_ctx): If a decode context structure
56282         was passed in use it to ignore newlines.  If a context structure
56283         was _not_ passed in, continue to treat newlines as garbage (this
56284         is the historical behavior).  Formerly base64_decode.
56285         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56286         takes a decode context structure.
56287         * lib/base64.h (base64_decode): Macro for four-argument calls.
56288         (base64_decode_alloc): Likewise.
56289
56290 2008-05-19  Jim Meyering  <meyering@redhat.com>
56291
56292         avoid a warning from gcc
56293         * lib/trim.c (IF_LINT): Define.
56294         (trim2): Use it to avoid a "may be used uninitialized" warning.
56295
56296         Fix doc typo.
56297         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56298
56299 2008-05-19  Bruno Haible  <bruno@clisp.org>
56300
56301         * doc/glibc-functions/getpass.texi: Document limits of other
56302         implementations.
56303
56304 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56305             Bruno Haible <bruno@clisp.org>
56306
56307         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56308
56309 2008-05-18  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/propername: New file, from GNU gettext.
56312         * lib/propername.h: New file, from GNU gettext.
56313         * lib/propername.c: New file, from GNU gettext.
56314         * MODULES.html.sh (Internationalization functions): Add propername.
56315
56316 2008-05-16  Jim Meyering  <meyering@redhat.com>
56317             Bruno Haible  <bruno@clisp.org>
56318
56319         Avoid some warnings from "gcc -Wshadow".
56320         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56321
56322 2008-05-15  Eric Blake  <ebb9@byu.net>
56323
56324         Extend previous patch to cygwin 1.7.0.
56325         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56326         fast implementation in cygwin >= 1.7.0.
56327         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56329
56330 2008-05-15  Bruno Haible  <bruno@clisp.org>
56331
56332         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56333         implementation in glibc >= 2.9.
56334         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56336
56337 2008-05-15  Bruno Haible  <bruno@clisp.org>
56338
56339         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56340         (Unicode string functions): Add unilbrk/*.
56341         Reported by Karl Berry.
56342
56343 2008-05-15  Eric Blake  <ebb9@byu.net>
56344
56345         Fix violation of <stdbool.h> replacement in regex.
56346         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56347         * lib/regexec.c (re_search_internal): Likewise.
56348         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56349
56350 2008-05-15  Jim Meyering  <meyering@redhat.com>
56351
56352         avoid distracting test output when git or cvs is not found
56353         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56354         * tests/test-vc-list-files-git.sh: Likewise.
56355
56356 2008-05-15  Eric Blake  <ebb9@byu.net>
56357
56358         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56359         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56360         glibc version.
56361         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56362         * doc/posix-functions/strstr.texi (strstr): Likewise.
56363         * lib/str-two-way.h (MAX): Sychronize with glibc.
56364
56365 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56366
56367         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56368         opr.ctx_type.
56369         (calc_first): Initialize constraint field.
56370         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56371         Fix grammar.
56372         (duplicate_node): Merge constraint field for all node types.
56373         (calc_eclosure_iter): Look at constraint field for all node types.
56374         * lib/regex_internal.c (create_cd_newstate): Don't look at
56375         opr.ctx_type.
56376
56377 2008-05-14  Bruno Haible  <bruno@clisp.org>
56378
56379         Help GCC to do better code generation.
56380         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56381         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56382         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56383         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56384         Declare with attribute 'malloc' if supported.
56385
56386 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56387
56388         use "echo STR|wc -c" rather than unportable "expr length STR"
56389         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56390         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56391
56392 2008-05-14  Jim Meyering  <meyering@redhat.com>
56393
56394         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56395         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56396         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56397         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56398         via Collin Lasse.
56399
56400 2008-05-14  Eric Blake  <ebb9@byu.net>
56401
56402         Avoid quadratic growth in gl_LIBSOURCES.
56403         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56404         Suggested by Bruno Haible.
56405
56406         Test xmemdup0.
56407         * modules/xmemdup0-tests: New file.
56408         * tests/test-xmemdup0.c: Likewise.
56409
56410 2008-05-13  Eric Blake  <ebb9@byu.net>
56411
56412         Split xmemdup0 into its own module.
56413         * modules/xmemdup0: New file.
56414         * lib/xmemdup0.h: Likewise.
56415         * lib/xmemdup0.c: Likewise.
56416         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56417         * lib/xalloc.h (xmemdup0): Remove.
56418         * lib/xmalloc.c (xmemdup0): Likewise.
56419
56420 2008-05-13  Eric Blake  <ebb9@byu.net>
56421             Bruno Haible  <bruno@clisp.org>
56422
56423         Reduce number of forks required during autoconf.
56424         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56425         and gl_LIBSOURCES_DIR.
56426         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56427         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56428         m4_syscmd per file.
56429         <m4_foreach_w>: Move...
56430         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56431
56432 2008-05-13  Eric Blake  <ebb9@byu.net>
56433
56434         * gnulib-tool: Fix various comment typos.
56435
56436 2008-05-12  Bruno Haible  <bruno@clisp.org>
56437
56438         Tailor the linebreaking algorithm.
56439         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56440
56441 2008-05-12  Bruno Haible  <bruno@clisp.org>
56442
56443         Update to Unicode 5.0.0.
56444         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56445         LBP_JV, LBP_JT. Redistribute values.
56446         (unilbrk_table): Change size.
56447         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56448         Unicode TR#14 rev. 22.
56449         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56450         LBP_JV, LBP_JT. Redistribute values.
56451         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56452         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56453         Update.
56454         * lib/unilbrk/lbrkprop1.h: Regenerated.
56455         * lib/unilbrk/lbrkprop2.h: Regenerated.
56456         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56457         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56458         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56459         Likewise.
56460         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56461         Likewise.
56462         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56463         result.
56464         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56465         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56466         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56467         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56468         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56469         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56470
56471 2008-05-11  Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56474
56475 2008-05-11  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56478         * modules/unilbrk/gen-lbrk: New file.
56479
56480 2008-05-11  Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56483         * m4/sha512.m4 (gl_SHA512): Likewise.
56484
56485 2008-05-11  Jim Meyering  <meyering@redhat.com>
56486
56487         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56488         * modules/crypto/sha256: New file.
56489         * modules/crypto/sha512: Likewise.
56490         * lib/sha256.c: Likewise.
56491         * lib/sha256.h: Likewise.
56492         * lib/sha512.c: Likewise.
56493         * lib/sha512.h: Likewise.
56494         * lib/u64.h: Likewise.
56495         * m4/sha256.m4: Likewise.
56496         * m4/sha512.m4: Likewise.
56497         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56498
56499 2008-05-10  Bruno Haible  <bruno@clisp.org>
56500
56501         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56502         (Input/Output <stdio.h>): Add xprintf.
56503         (Signal handling <signal.h>): Add strsignal.
56504         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56505         (Core language properties): Add func.
56506         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56507         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56508         strings.
56509         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56510         (Input/output): New section.
56511         (File system functions): Add openat-die, stat-macros.
56512         (Networking functions): Add sockets.
56513         (Unicode string functions): Add unictype/*.
56514         (Support for building libraries and executables): Add gperf.
56515         (Support for building documentation): Add agpl-3.0.
56516         (Misc): Add nocrash.
56517
56518 2008-05-10  Bruno Haible  <bruno@clisp.org>
56519
56520         * modules/unictype/gen-ctype: New file.
56521
56522 2008-05-10  Jim Meyering  <meyering@redhat.com>
56523
56524         Make chdir-safer.c more efficient on a system with no symlinks.
56525         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56526         also if ELOOP is zero.  Suggested by Bruno Haible.
56527
56528         Make chdir-safer.c slightly safer.
56529         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56530         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56531
56532         Avoid compile failure on systems without ELOOP (like mingw).
56533         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56534         Reported by Bruno Haible.
56535
56536 2008-05-10  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56539         (is_utf8_encoding): Use a case-insensitive comparison.
56540         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56541         streq.
56542
56543 2008-05-10  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56546         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56547         * lib/unilbrk/ulc-common.h (iconv_string_length,
56548         iconv_string_keeping_offsets): Remove declarations.
56549         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56550         Don't include <iconv.h>, streq.h, xsize.h.
56551         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56552         conversion.
56553         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56554         <iconv.h>, streq.h, xsize.h.
56555         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56556         conversion.
56557         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56558         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56559         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56560         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56561
56562 2008-05-10  Bruno Haible  <bruno@clisp.org>
56563
56564         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56565         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56566
56567         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56568         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56569
56570         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56571         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56572
56573         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56574         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56575
56576         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56577         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56578
56579         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56580         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56581
56582         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56583         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56584
56585         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56586         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56587
56588 2008-05-10  Bruno Haible  <bruno@clisp.org>
56589
56590         Split up 'linebreak' module.
56591         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56592         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56593         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56594         modifications.
56595         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56596         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56597         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56598         lib/linebreak.c.
56599         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56600         lib/linebreak.c.
56601         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56602         lib/linebreak.c.
56603         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56604         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56605         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56606         lib/linebreak.c.
56607         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56608         lib/linebreak.c.
56609         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56610         lib/linebreak.c.
56611         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56612         lib/linebreak.c.
56613         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56614         lib/linebreak.c.
56615         * modules/unilbrk/base: New file.
56616         * modules/unilbrk/tables: New file.
56617         * modules/unilbrk/u8-possible-linebreaks: New file.
56618         * modules/unilbrk/u16-possible-linebreaks: New file.
56619         * modules/unilbrk/u32-possible-linebreaks: New file.
56620         * modules/unilbrk/ulc-common: New file.
56621         * modules/unilbrk/ulc-possible-linebreaks: New file.
56622         * modules/unilbrk/u8-width-linebreaks: New file.
56623         * modules/unilbrk/u16-width-linebreaks: New file.
56624         * modules/unilbrk/u32-width-linebreaks: New file.
56625         * modules/unilbrk/ulc-width-linebreaks: New file.
56626         * lib/linebreak.h: Remove file.
56627         * lib/linebreak.c: Remove file.
56628         * m4/linebreak.m4: Remove file.
56629         * modules/linebreak: Remove file.
56630         * NEWS: Mention the changes.
56631
56632 2008-05-09  Eric Blake  <ebb9@byu.net>
56633
56634         Add xmemdup0.
56635         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56636         implementation.
56637         * lib/xmalloc.c (xmemdup0): New C implementation.
56638
56639 2008-05-08  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56642
56643 2008-05-07  Eric Blake  <ebb9@byu.net>
56644
56645         Support cross-compilation of <wctype.h>.
56646         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56647         AC_CACHE_CHECK.
56648
56649 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56650
56651         * build-aux/vc-list-files: Add support for bzr.
56652
56653 2008-05-03  Jim Meyering  <meyering@redhat.com>
56654
56655         avoid failed assertion with tight malloc
56656         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56657
56658 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56659
56660         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56661         are needed from arpa/inet.h.
56662         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56663         Reported by Bruno Haible.
56664
56665 2008-05-02  Jim Meyering  <meyering@redhat.com>
56666
56667         avoid compilation error on FreeBSD 6
56668         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56669
56670 2008-05-01  Jim Meyering  <meyering@redhat.com>
56671
56672         useless-if-before-free: correct --help's exit status description
56673         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56674         for one or more matches, etc.  Reported by Bruno Haible.
56675
56676         vc-list-files: make the stand-alone gnulib test work
56677         * modules/vc-list-files-tests (configure.ac):
56678         Define and AC_SUBST abs_aux_dir.
56679         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56680         $(abs_top_srcdir) to each script and having each of them
56681         duplicate the work of setting PATH, set PATH here, using
56682         the new variable, abs_aux_dir instead.
56683         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56684         * tests/test-vc-list-files-git.sh: Likewise.
56685         Reported by Bruno Haible.
56686
56687 2008-05-01  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56690         reallocation. Rename 'done' to 'found_delimiter'.
56691
56692 2008-05-01  Jim Meyering  <meyering@redhat.com>
56693
56694         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56695         * build-aux/vc-list-files: Use `...`, not $(...).
56696
56697 2008-04-30  Jim Meyering  <meyering@redhat.com>
56698
56699         add tests for vc-list-files
56700         * modules/vc-list-files-tests: New module.
56701         * tests/test-vc-list-files-cvs.sh: New file.
56702         * tests/test-vc-list-files-git.sh: New file.
56703
56704         avoid a warning from gcc
56705         * lib/getndelim2.c (IF_LINT): Define.
56706         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56707
56708         vc-list-files: work properly with build-aux/cvsu, too
56709         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56710         to all cvs-based clauses.
56711
56712         vc-list-files: work properly in the CVS+awk case, too
56713         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56714
56715         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56716         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56717         take more than one file argument, so .  Add quotes, just in case $dir
56718         ever contains a shell meta-character.  Prompted by Soren Hansen in
56719         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56720
56721 2008-04-29  Eric Blake  <ebb9@byu.net>
56722
56723         Optimize getndelim2 to use block operations when possible.
56724         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56725         freadseek, and memchr2.
56726         * lib/getndelim2.c (getndelim2): Use them for block reads.
56727
56728 2008-04-29  Bruno Haible  <bruno@clisp.org>
56729
56730         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56731         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56732         * modules/inet_ntop (Depends-on): Add extensions.
56733         * modules/inet_pton (Depends-on): Likewise.
56734         Reported by Simon Josefsson.
56735
56736 2008-04-29  Jim Meyering  <meyering@redhat.com>
56737
56738         When the is more than one match in a block, match all of them.
56739         * build-aux/useless-if-before-free: Iterate through each block
56740         until there are no more matches.
56741
56742         Fix broken useless-if-before-free script.
56743         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56744         the expression to match cast of argument to free-like function.
56745
56746 2008-04-29  Eric Blake  <ebb9@byu.net>
56747
56748         Use new header.
56749         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56750
56751 2008-04-29  Jim Meyering  <meyering@redhat.com>
56752
56753         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56754         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56755         by gnulib to exist and to declare e.g., inet_ntop.
56756         Don't include "inet_ntop.h", now removed.
56757
56758         * m4/arpa_inet_h.m4: Remove trailing blanks.
56759
56760 2008-04-29  Eric Blake  <ebb9@byu.net>
56761
56762         Silence valgrind on safe reads beyond potential array bounds.
56763         * lib/rawmemchr.valgrind: New file.
56764         * lib/strchrnul.valgrind: Likewise.
56765         * modules/rawmemchr (Files): Distribute new file.
56766         * modules/strchrnul (Files): Likewise.
56767         Suggested by Bruno Haible.
56768
56769 2008-04-29  Bruno Haible  <bruno@clisp.org>
56770
56771         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56772         (inet_ntop, inet_pton): Change portability warning's wording.
56773         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56774         Invoke gl_CHECK_NEXT_HEADERS.
56775         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56776         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56777         set ARPA_INET_H.
56778         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56779         * modules/arpa_inet (Description): No longer only for systems that
56780         lack it.
56781         (Depends-on): Add include_next.
56782         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56783         HAVE_ARPA_INET_H.
56784
56785 2008-04-29  Jim Meyering  <meyering@redhat.com>
56786
56787         * modules/mkdir (License): Re-license as LGPLv2+.
56788
56789 2008-04-29  Bruno Haible  <bruno@clisp.org>
56790
56791         * modules/rawmemchr (Maintainer): Set to Eric.
56792         * modules/strchrnul (Maintainer): Likewise.
56793
56794 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56795
56796         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56797         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56798
56799         * modules/arpa_inet (arpa/inet.h): Use them.
56800
56801 2008-04-28  Eric Blake  <ebb9@byu.net>
56802
56803         Test getndelim2.
56804         * modules/getndelim2-tests: New file.
56805         * tests/test-getndelim2.c: Likewise.
56806         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56807         stream.
56808         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56809
56810         * MODULES.html.sh: Document new module.
56811
56812 2008-04-20  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/c-stack.c (die): Use raise.
56815         * modules/c-stack (Depends-on): Add raise.
56816
56817 2008-04-28  Bruno Haible  <bruno@clisp.org>
56818
56819         Expect rpmatch to be declared.
56820         * lib/yesno.c (rpmatch): Remove declaration.
56821
56822         Declare rpmatch.
56823         * lib/stdlib.in.h (rpmatch): New declaration.
56824         * lib/rpmatch.c: Include <stdlib.h> first.
56825         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56826         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56828         HAVE_RPMATCH.
56829         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56831         (Include): Set to <stdlib.h>.
56832         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56833         HAVE_RPMATCH.
56834         * NEWS: Document the change.
56835
56836 2008-04-28  Bruno Haible  <bruno@clisp.org>
56837
56838         Change rpmatch to use nl_langinfo when appropriate.
56839         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56840         (N_): New macro.
56841         (localized_pattern): New function/macro.
56842         (try): Remove match, nomatch arguments. Copy the pattern into safe
56843         memory before caching it.
56844         (rpmatch): Use localized_pattern. Add translator comments.
56845         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56846         Suggested by Eric Blake.
56847         * modules/rpmatch (Depends-on): Add stdbool.
56848
56849 2008-04-28  Eric Blake  <ebb9@byu.net>
56850
56851         Add rawmemchr module, matching glibc.
56852         * modules/string (Makefile.am): New indicator.
56853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56854         * lib/string.in.h (rawmemchr): Declare when appropriate.
56855         * modules/rawmemchr: New file.
56856         * m4/rawmemchr.m4: Likewise.
56857         * lib/rawmemchr.c: Likewise.
56858         * modules/rawmemchr-tests: Likewise.
56859         * tests/test-rawmemchr.c: Likewise.
56860         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56861         module.
56862         * modules/strchrnul (Depends-on): Add rawmemchr.
56863         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56864
56865         Whitespace cleanup.
56866         * tests/test-strchrnul.c: Reindent.
56867         * lib/strchrnul.c: Likewise.
56868
56869         Optimize and test strchrnul.
56870         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56871         * modules/strchrnul-tests: New file.
56872         * tests/test-strchrnul.c: Likewise.
56873
56874         Remove intprops dependency.
56875         * modules/memchr (Depends-on): Remove intprops.
56876         * modules/memrchr (Depends-on): Likewise.
56877         * modules/memchr2 (Depends-on): Likewise.
56878         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56879         * lib/memrchr.c (__memrchr): Likewise.
56880         * lib/memrchr2.c (memchr2): Likewise.
56881         Reported by Simon Josefsson.
56882
56883 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56884
56885         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56886         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56887
56888 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56889
56890         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56891
56892         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56893
56894         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56895
56896         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56897         declarations.
56898         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56899
56900         * m4/inet_pton.m4: Don't check for header files.
56901
56902         * m4/inet_ntop.m4: Don't check for header files.
56903
56904 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56905
56906         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56907         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56908         trigger for cygwin).
56909         Reported by Bruno Haible  <bruno@clisp.org>.
56910
56911 2008-04-28  Bruno Haible  <bruno@clisp.org>
56912
56913         * doc/posix-functions/strdup.texi: Mention mingw problem.
56914
56915 2008-04-27  Bruno Haible  <bruno@clisp.org>
56916
56917         * modules/stat-time-tests (Depends-on): Add sleep.
56918         * tests/test-stat-time.c (force_unlink): New function.
56919         (cleanup): Use it.
56920         (test_mtime): Remove the ctime related tests.
56921         (test_ctime): New function, containing the ctime related tests.
56922         (main): Call test_ctime, except on native Windows platforms.
56923
56924 2008-04-27  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/rpmatch.c (rpmatch): Add some comments.
56927         Reported by James Youngman <jay@gnu.org>.
56928
56929 2008-04-27  Bruno Haible  <bruno@clisp.org>
56930
56931         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56932         quiet NaNs.
56933
56934 2008-04-27  Bruno Haible  <bruno@clisp.org>
56935
56936         Make test-yesno.sh work on mingw.
56937         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56938         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56939         (main): Set stdin to binary mode.
56940         * modules/yesno-tests (Depends-on): Add binary-io.
56941
56942 2008-04-27  Bruno Haible  <bruno@clisp.org>
56943
56944         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56945         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56946         argument that lie outside the IEEE 854 domain.
56947         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56948         (gl_ISFINITE): Use it.
56949         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56950
56951 2008-04-27  Bruno Haible  <bruno@clisp.org>
56952
56953         Allow local renaming in config.h.
56954         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56955
56956 2008-04-27  Bruno Haible  <bruno@clisp.org>
56957
56958         * lib/memchr.c (__memchr): Change type of 'i'.
56959         * lib/memchr2.c (memchr2): Likewise.
56960
56961 2008-04-26  Eric Blake  <ebb9@byu.net>
56962         and Bruno Haible  <bruno@clisp.org>
56963
56964         Optimize and test memrchr.
56965         * modules/memrchr (Depends-on): Add intprops.
56966         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56967         * modules/memrchr-tests: New file.
56968         * tests/test-memrchr.c: New file.
56969
56970 2008-04-26  Bruno Haible  <bruno@clisp.org>
56971
56972         Add tentative support for DragonFly BSD.
56973         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56974         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56975         fp.
56976         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56977         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56978         * lib/fpurge.c (fpurge): Likewise.
56979         * lib/freadable.c (freaadable): Likewise.
56980         * lib/freadahead.c (freadahead): Likewise.
56981         * lib/freading.c (freading): Likewise.
56982         * lib/freadptr.c (freadptr): Likewise.
56983         * lib/freadseek.c (freadptrinc): Likewise.
56984         * lib/fseeko.c (fseeko): Likewise.
56985         * lib/fseterr.c (fseterr): Likewise.
56986         * lib/fwritable.c (fwritable): Likewise.
56987         * lib/fwriting.c (fwriting): Likewise.
56988
56989 2008-04-26  Bruno Haible  <bruno@clisp.org>
56990
56991         * lib/stdio-impl.h: New file.
56992         * lib/fbufmode.c: Include stdio-impl.h.
56993         (fbufmode): Use fp_, remove redundant #defines.
56994         * lib/fflush.c: Include stdio-impl.h.
56995         (clear_ungetc_buffer): Remove redundant #defines.
56996         * lib/fpurge.c: Include stdio-impl.h.
56997         (fpurge): Remove redundant #defines.
56998         * lib/freadable.c: Include stdio-impl.h.
56999         (freadable): Remove redundant #defines.
57000         * lib/freadahead.c: Include stdio-impl.h.
57001         (freadahead): Remove redundant #defines.
57002         * lib/freading.c: Include stdio-impl.h.
57003         (freading): Remove redundant #defines.
57004         * lib/freadptr.c: Include stdio-impl.h.
57005         (freadptr): Remove redundant #defines.
57006         * lib/freadseek.c: Include stdio-impl.h.
57007         (freadptrinc): Remove redundant #defines.
57008         * lib/fseeko.c: Include stdio-impl.h.
57009         (rpl_fseeko): Remove redundant #defines.
57010         * lib/fseterr.c: Include stdio-impl.h.
57011         (fseterr): Remove redundant #defines.
57012         * lib/fwritable.c: Include stdio-impl.h.
57013         (fwritable: Remove redundant #defines.
57014         * lib/fwriting.c: Include stdio-impl.h.
57015         (fwriting): Remove redundant #defines.
57016         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57017         * modules/fflush (Files): Likewise.
57018         * modules/fpurge (Files): Likewise.
57019         * modules/freadable (Files): Likewise.
57020         * modules/freadahead (Files): Likewise.
57021         * modules/freading (Files): Likewise.
57022         * modules/freadptr (Files): Likewise.
57023         * modules/freadseek (Files): Likewise.
57024         * modules/fseeko (Files): Likewise.
57025         * modules/fseterr (Files): Likewise.
57026         * modules/fwritable (Files): Likewise.
57027         * modules/fwriting (Files): Likewise.
57028
57029 2008-04-26  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57032         restore_seek_optimization, update_fpos_cache): New functions, extracted
57033         from rpl_fflush.
57034         (rpl_fflush): Use them.
57035         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57036         (gl_REPLACE_FFLUSH): Use it.
57037
57038 2008-04-26  Bruno Haible  <bruno@clisp.org>
57039
57040         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57041         on Solaris.
57042         * tests/test-xstrtoimax.sh: Likewise.
57043         * tests/test-xstrtoumax.sh: Likewise.
57044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57045
57046 2008-04-26  Bruno Haible  <bruno@clisp.org>
57047
57048         * modules/memchr-tests: New file.
57049         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57050
57051 2008-04-26  Eric Blake  <ebb9@byu.net>
57052             Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/memchr.c: Include intprops.h.
57055         (__memchr): Optimize parallel detection of matching bytes. Rename local
57056         variables. Add explanatory comments.
57057
57058 2008-04-26  Bruno Haible  <bruno@clisp.org>
57059
57060         Fix module 'memchr', broken since 2000-10-28.
57061         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57062
57063 2008-04-26  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57066         comments.
57067
57068 2008-04-25  Eric Blake  <ebb9@byu.net>
57069
57070         Use native fstatat on cygwin 1.7.0.
57071         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57072         first.
57073
57074 2008-04-23  Eric Blake  <ebb9@byu.net>
57075
57076         Improve memchr2 performance.
57077         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57078         NUL bytes.
57079         * modules/memchr2 (Depends-on): Use intprops.h.
57080
57081 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57082
57083         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57084         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57085         <blp@cs.stanford.edu>.
57086
57087 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57088
57089         * lib/arpa_inet.in.h: New file.
57090
57091         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57092         (Makefile.am): Sed in substitute header file.
57093
57094         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57095         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57096
57097         * modules/inet_ntop (configure.ac): Use
57098         gl_ARPA_INET_MODULE_INDICATOR.
57099
57100         * modules/inet_pton (configure.ac): Use
57101         gl_ARPA_INET_MODULE_INDICATOR.
57102
57103 2008-04-22  Jim Meyering  <meyering@redhat.com>
57104
57105         * modules/verify (License): Re-license as LGPLv2+.
57106
57107 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57108
57109         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57110         parameter to void* as per POSIX standard (MinGW uses char*).
57111
57112 2008-04-21  Bruno Haible  <bruno@clisp.org>
57113
57114         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57115         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57116         Define to replacements if REPLACE_ISWCNTRL is 1.
57117         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57118         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57119         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57120         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57121         what it fixes.
57122         * doc/posix-functions/iswalpha.texi: Likewise.
57123         * doc/posix-functions/iswblank.texi: Likewise.
57124         * doc/posix-functions/iswcntrl.texi: Likewise.
57125         * doc/posix-functions/iswdigit.texi: Likewise.
57126         * doc/posix-functions/iswgraph.texi: Likewise.
57127         * doc/posix-functions/iswlower.texi: Likewise.
57128         * doc/posix-functions/iswprint.texi: Likewise.
57129         * doc/posix-functions/iswpunct.texi: Likewise.
57130         * doc/posix-functions/iswspace.texi: Likewise.
57131         * doc/posix-functions/iswupper.texi: Likewise.
57132         * doc/posix-functions/iswxdigit.texi: Likewise.
57133         Reported by Alain Guibert.
57134
57135 2008-04-21  Bruno Haible  <bruno@clisp.org>
57136
57137         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57138         Patch by Alain Guibert.
57139
57140 2008-04-21  Bruno Haible  <bruno@clisp.org>
57141
57142         Fix test failures on mingw.
57143         * tests/test-xstrtol.c (print_no_progname): New function.
57144         (main): Install it in error_print_progname hook.
57145         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57146         * tests/test-xstrtoimax.sh: Likewise.
57147         * tests/test-xstrtoumax.sh: Likewise.
57148
57149 2008-04-21  Bruno Haible  <bruno@clisp.org>
57150
57151         Fix test failure on mingw.
57152         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57153
57154 2008-04-21  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57157         Actually assign a value.
57158
57159 2008-04-20  Bruno Haible  <bruno@clisp.org>
57160
57161         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57162         take 2.
57163         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57164         'canonicalize-lgpl' module is also used.
57165         * lib/canonicalize-lgpl.c: Undo last change.
57166         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57167
57168 2008-04-20  Bruno Haible  <bruno@clisp.org>
57169
57170         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57171         config.h. Provide _mkdir based fallback for mingw.
57172         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57173         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57174         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57175         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57176         rather than defining mkdir in config.h.
57177         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57178         (gl_SYS_STAT_H_DEFAULTS): New macro.
57179         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57180         HAVE_IO_H any more.
57181         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57182         HAVE_DECL_MKDIR and HAVE_IO_H.
57183
57184 2008-04-20  Bruno Haible  <bruno@clisp.org>
57185
57186         * lib/isapipe.c: Port to native Windows platforms.
57187
57188 2008-04-20  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57191
57192 2008-04-21  Eric Blake  <ebb9@byu.net>
57193
57194         Work around preprocessors that don't handle UINTMAX_MAX.
57195         * lib/memchr2.c (memchr2): Avoid embedded #if.
57196         Reported by Alain Guibert, fix suggested by Bruno Haible.
57197
57198 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57199
57200         * doc/posix-functions/strftime.texi (strftime): Explain better
57201         Windows incompatibility.  Suggested by Micah Cowan
57202         <micah@cowan.name>.
57203
57204 2008-04-20  Bruno Haible  <bruno@clisp.org>
57205
57206         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57207         unistr/u8-mblen.
57208
57209 2008-04-20  Bruno Haible  <bruno@clisp.org>
57210
57211         Fix test failure on platforms with non-GNU iconv.
57212         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57213         (U_TO_U8): Use it, rather than u16_to_u8.
57214         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57215         units at the end of the input string.
57216         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57217
57218 2008-04-20  Bruno Haible  <bruno@clisp.org>
57219
57220         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57221         when the resulting length is 0.
57222         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57223
57224 2008-04-20  Bruno Haible  <bruno@clisp.org>
57225
57226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57227         works.
57228         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57229
57230 2008-04-20  Bruno Haible  <bruno@clisp.org>
57231
57232         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57233         * modules/tsearch-tests (configure.ac): Test for initstate function.
57234
57235 2008-04-20  Bruno Haible  <bruno@clisp.org>
57236
57237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57238         for nlink_t if missing.
57239         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57240
57241 2008-04-19  Bruno Haible  <bruno@clisp.org>
57242
57243         Work around snprintf bug on Linux libc5.
57244         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57246         gl_SNPRINTF_SIZE1.
57247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57248         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57249         that test failed.
57250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57251         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57252         * modules/snprintf (Files): Add m4/printf.m4.
57253         * modules/vsnprintf (Files): Likewise.
57254         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57255         * doc/posix-functions/vsnprintf.texi: Likewise.
57256
57257 2008-04-19  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57260         from 0.0058 to less than 10^-7.
57261
57262 2008-04-19  Bruno Haible  <bruno@clisp.org>
57263
57264         Fix rounding when a precision is given.
57265         * lib/vasnprintf.c (is_borderline): New function.
57266         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57267         9...9x.
57268         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57269         %e, %g.
57270         * tests/test-vasprintf-posix.c (test_function): Likewise.
57271         * tests/test-snprintf-posix.h (test_function): Likewise.
57272         * tests/test-sprintf-posix.h (test_function): Likewise.
57273         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57274         * tests/test-printf-posix.h (test_function): Likewise.
57275         * tests/test-printf-posix.output: Update.
57276         Reported by John Darrington <john@darrington.wattle.id.au> via
57277         Ben Pfaff <blp@cs.stanford.edu>.
57278
57279 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57280
57281         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57282         Suggested by Bruno Haible <bruno@clisp.org>.
57283
57284 2008-04-17  Bruno Haible  <bruno@clisp.org>
57285
57286         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57287         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57288         implementation.
57289         Patch by Bruce Merry <bmerry@gmail.com>.
57290
57291 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57292
57293         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57294         doesn't work under Windows.
57295
57296 2008-04-16  Bruno Haible  <bruno@clisp.org>
57297
57298         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57299         New macros.
57300         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57301         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57302         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57303         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57304         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57305         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57306         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57307         macros.
57308         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57309         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57310         Northern Sotho, Uighur.
57311
57312 2008-04-16  Bruno Haible  <bruno@clisp.org>
57313
57314         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57315         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57316         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57317         Reported by Daniel Bergström <daniel@octocode.com>.
57318
57319 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57320             Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57323         function.
57324         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57325         New functions, mostly extracted from gl_locale_name_default.
57326         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57327
57328 2008-04-16  Eric Blake  <ebb9@byu.net>
57329
57330         Adjust strtod detection to catch glibc 2.7 bug.
57331         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57332         Reported by John Gatewood Ham.
57333
57334 2008-04-16  Bruno Haible  <bruno@clisp.org>
57335
57336         Add tentative support for Linux libc5.
57337         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57338         * lib/fpurge.c (fpurge): Likewise.
57339         * lib/freadable.c (freadable): Likewise.
57340         * lib/freadahead.c (freadahead): Likewise.
57341         * lib/freading.c (freading): Likewise.
57342         * lib/freadptr.c (freadptr): Likewise.
57343         * lib/freadseek.c (freadptrinc): Likewise.
57344         * lib/fseeko.c (rpl_fseeko): Likewise.
57345         * lib/fseterr.c (fseterr): Likewise.
57346         * lib/fwritable.c (fwritable): Likewise.
57347         * lib/fwriting.c (fwriting): Likewise.
57348         Reported by Alain Guibert <alguibert+bts@free.fr>.
57349
57350 2008-04-15  Bruno Haible  <bruno@clisp.org>
57351
57352         * modules/mathl (configure.ac): Define module indicator.
57353
57354 2008-04-15  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/logl.c (logl): Remove unused variables.
57357
57358 2008-04-15  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57361         fails.
57362
57363 2008-04-15  Bruno Haible  <bruno@clisp.org>
57364
57365         * lib/trim.c (trim2): Fix argument of isspace() macro.
57366
57367 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57368
57369         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57370         to 0.
57371         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57372
57373 2008-04-14  Bruno Haible  <bruno@clisp.org>
57374
57375         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57376         AC_LANG_PROGRAM argument.
57377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57378         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57380         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57381         * m4/math_h.m4 (gl_MATH_H): Likewise.
57382         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57384         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57385         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57386         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57387         * m4/regex.m4 (gl_REGEX): Likewise.
57388         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57389         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57391         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57393         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57394         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57396
57397 2008-04-14  Jim Meyering  <meyering@redhat.com>
57398
57399         test-strtod: fix typos: s/abs/fabs/
57400         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57401
57402 2008-04-13  Bruno Haible  <bruno@clisp.org>
57403
57404         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57405         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57406         module is also used and while not building the reloc-wrapper.
57407
57408 2008-04-13  Bruno Haible  <bruno@clisp.org>
57409
57410         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57411
57412 2008-04-13  Bruno Haible  <bruno@clisp.org>
57413
57414         Fix AIX compilation failure introduced on 2008-04-02.
57415         * tests/test-frexp.c (exp): Undefine before redefining.
57416         * tests/test-frexpl.c (exp): Likewise.
57417
57418 2008-04-13  Bruno Haible  <bruno@clisp.org>
57419
57420         Work around a HP-UX stdio bug.
57421         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57422         * tests/test-ftello.c (main): Likewise.
57423         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57424         * doc/posix-functions/ftello.texi: Likewise.
57425
57426 2008-04-13  Bruno Haible  <bruno@clisp.org>
57427
57428         Make test-signbit pass on HP-UX/hppa.
57429         * tests/test-signbit.c (minus_zerol): New variable.
57430         (test_signbitl): Use it.
57431
57432 2008-04-13  Bruno Haible  <bruno@clisp.org>
57433
57434         Make truncl work on OSF/1 4.0.
57435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57436         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57437         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57439         HAVE_DECL_TRUNCL.
57440         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57441         HAVE_DECL_TRUNCL.
57442         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57443
57444 2008-04-13  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57447
57448 2008-04-13  Bruno Haible  <bruno@clisp.org>
57449
57450         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57451         expression, so as to avoid HP-UX 11 cc compiler bug.
57452
57453 2008-04-13  Bruno Haible  <bruno@clisp.org>
57454
57455         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57456
57457 2008-04-13  Bruno Haible  <bruno@clisp.org>
57458
57459         * lib/git-merge-changelog.c: Remove empty declaration outside of
57460         functions.
57461
57462 2008-04-13  Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57465
57466 2008-04-13  Bruno Haible  <bruno@clisp.org>
57467
57468         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57469         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57470         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57471         also if it exists but lacks definitions of the SHUT_* macros.
57472         * modules/sys_socket (Description): Update.
57473         Reported by Elbert Pol <e.pol@chello.nl>.
57474
57475 2008-04-13  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/localcharset.c (OS2): Don't redefine if already defined.
57478         Reported by Elbert Pol <e.pol@chello.nl>.
57479
57480 2008-04-13  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/binary-io.h [__EMX__]: Include <io.h>.
57483         Reported by Elbert Pol <e.pol@chello.nl>.
57484
57485 2008-04-12  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/fpucw.h: Enable the definitions also for x86_64.
57488         Needed for NetBSD/x86_64.
57489         Reported by Thomas Klausner <tk@giga.or.at>.
57490
57491 2008-04-12  Bruno Haible  <bruno@clisp.org>
57492
57493         * tests/test-strtod.c: Include isnand.h.
57494         (main): Use isnand instead of isnan.
57495         Reported by Jim Meyering.
57496
57497 2008-04-12  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57500         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57501
57502 2008-04-12  Jim Meyering  <meyering@redhat.com>
57503
57504         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57505
57506 2008-04-12  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57509         Reported by Elbert Pol <e.pol@chello.nl>.
57510
57511 2008-04-12  Eric Blake  <ebb9@byu.net>
57512
57513         Work around Solaris 10 math.h bug.
57514         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57515         (gl_MATH_H_DEFAULTS): Set up default.
57516         * modules/math (Makefile.am): Replace new indicators.
57517         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57518         * tests/test-math.c (main): Test this.
57519         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57520         * doc/posix-headers/math.texi (math.h): Mention bug.
57521         Reported by Nelson H. F. Beebe and Jim Meyering.
57522
57523 2008-04-11  Bruno Haible  <bruno@clisp.org>
57524
57525         Adapt to future versions of Apple GCC.
57526         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57527         Reported by Peter O'Gorman <peter@pogma.com>.
57528
57529 2008-04-11  Bruno Haible  <bruno@clisp.org>
57530
57531         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57532
57533 2008-04-11  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57536
57537         * modules/getaddrinfo-tests (Makefile.am): Define
57538         test_getaddrinfo_LDADD.
57539
57540 2008-04-11  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57543         (init): Fix syntax error.
57544         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57545         is declared.
57546
57547 2008-04-11  Bruno Haible  <bruno@clisp.org>
57548
57549         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57550         * modules/glob (Depends-on): Add stdbool.
57551
57552 2008-04-11  Bruno Haible  <bruno@clisp.org>
57553
57554         * lib/trim.c: Include <string.h>.
57555
57556 2008-04-11  Eric Blake  <ebb9@byu.net>
57557
57558         Avoid compile failure on OS/2.
57559         * lib/regex_internal.h (internal_function): Disable optimization
57560         on OS/2 (__EMX__), where it caused compiler error.
57561         Reported by Elbert Pol.
57562
57563 2008-04-11  Bruno Haible  <bruno@clisp.org>
57564
57565         Flush the standard error stream before aborting. Needed on mingw.
57566         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57567         * tests/test-array_list.c (ASSERT): Likewise.
57568         * tests/test-array_oset.c (ASSERT): Likewise.
57569         * tests/test-avltree_list.c (ASSERT): Likewise.
57570         * tests/test-avltree_oset.c (ASSERT): Likewise.
57571         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57572         * tests/test-binary-io.c (ASSERT): Likewise.
57573         * tests/test-byteswap.c (ASSERT): Likewise.
57574         * tests/test-c-ctype.c (ASSERT): Likewise.
57575         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57576         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57577         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57578         * tests/test-c-strstr.c (ASSERT): Likewise.
57579         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57580         * tests/test-canonicalize.c (ASSERT): Likewise.
57581         * tests/test-carray_list.c (ASSERT): Likewise.
57582         * tests/test-ceilf1.c (ASSERT): Likewise.
57583         * tests/test-ceilf2.c (ASSERT): Likewise.
57584         * tests/test-ceill.c (ASSERT): Likewise.
57585         * tests/test-count-one-bits.c (ASSERT): Likewise.
57586         * tests/test-fbufmode.c (ASSERT): Likewise.
57587         * tests/test-fflush2.c (ASSERT): Likewise.
57588         * tests/test-floorf1.c (ASSERT): Likewise.
57589         * tests/test-floorf2.c (ASSERT): Likewise.
57590         * tests/test-floorl.c (ASSERT): Likewise.
57591         * tests/test-fopen.c (ASSERT): Likewise.
57592         * tests/test-fpending.c (ASSERT): Likewise.
57593         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57594         * tests/test-fpurge.c (ASSERT): Likewise.
57595         * tests/test-freadable.c (ASSERT): Likewise.
57596         * tests/test-freadahead.c (ASSERT): Likewise.
57597         * tests/test-freading.c (ASSERT): Likewise.
57598         * tests/test-freadptr.c (ASSERT): Likewise.
57599         * tests/test-freadptr2.c (ASSERT): Likewise.
57600         * tests/test-freadseek.c (ASSERT): Likewise.
57601         * tests/test-freopen.c (ASSERT): Likewise.
57602         * tests/test-frexp.c (ASSERT): Likewise.
57603         * tests/test-frexpl.c (ASSERT): Likewise.
57604         * tests/test-fseek.c (ASSERT): Likewise.
57605         * tests/test-fseeko.c (ASSERT): Likewise.
57606         * tests/test-fstrcmp.c (ASSERT): Likewise.
57607         * tests/test-ftell.c (ASSERT): Likewise.
57608         * tests/test-ftello.c (ASSERT): Likewise.
57609         * tests/test-func.c (ASSERT): Likewise.
57610         * tests/test-fwritable.c (ASSERT): Likewise.
57611         * tests/test-fwriting.c (ASSERT): Likewise.
57612         * tests/test-getdelim.c (ASSERT): Likewise.
57613         * tests/test-getline.c (ASSERT): Likewise.
57614         * tests/test-i-ring.c (ASSERT): Likewise.
57615         * tests/test-iconv-utf.c (ASSERT): Likewise.
57616         * tests/test-iconv.c (ASSERT): Likewise.
57617         * tests/test-isfinite.c (ASSERT): Likewise.
57618         * tests/test-isnand.c (ASSERT): Likewise.
57619         * tests/test-isnanf.c (ASSERT): Likewise.
57620         * tests/test-isnanl.h (ASSERT): Likewise.
57621         * tests/test-ldexpl.c (ASSERT): Likewise.
57622         * tests/test-linked_list.c (ASSERT): Likewise.
57623         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57624         * tests/test-localename.c (ASSERT): Likewise.
57625         * tests/test-lseek.c (ASSERT): Likewise.
57626         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57627         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57628         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57629         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57630         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57631         * tests/test-mbschr.c (ASSERT): Likewise.
57632         * tests/test-mbscspn.c (ASSERT): Likewise.
57633         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57634         * tests/test-mbspbrk.c (ASSERT): Likewise.
57635         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57636         * tests/test-mbsrchr.c (ASSERT): Likewise.
57637         * tests/test-mbsspn.c (ASSERT): Likewise.
57638         * tests/test-mbsstr1.c (ASSERT): Likewise.
57639         * tests/test-mbsstr2.c (ASSERT): Likewise.
57640         * tests/test-mbsstr3.c (ASSERT): Likewise.
57641         * tests/test-memchr2.c (ASSERT): Likewise.
57642         * tests/test-memmem.c (ASSERT): Likewise.
57643         * tests/test-open.c (ASSERT): Likewise.
57644         * tests/test-printf-frexp.c (ASSERT): Likewise.
57645         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57646         * tests/test-printf-posix.c (ASSERT): Likewise.
57647         * tests/test-quotearg.c (ASSERT): Likewise.
57648         * tests/test-rbtree_list.c (ASSERT): Likewise.
57649         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57650         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57651         * tests/test-round1.c (ASSERT): Likewise.
57652         * tests/test-roundf1.c (ASSERT): Likewise.
57653         * tests/test-roundl.c (ASSERT): Likewise.
57654         * tests/test-signbit.c (ASSERT): Likewise.
57655         * tests/test-sleep.c (ASSERT): Likewise.
57656         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57657         * tests/test-snprintf.c (ASSERT): Likewise.
57658         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57659         * tests/test-stat-time.c (ASSERT): Likewise.
57660         * tests/test-strcasestr.c (ASSERT): Likewise.
57661         * tests/test-strerror.c (ASSERT): Likewise.
57662         * tests/test-striconv.c (ASSERT): Likewise.
57663         * tests/test-striconveh.c (ASSERT): Likewise.
57664         * tests/test-striconveha.c (ASSERT): Likewise.
57665         * tests/test-strsignal.c (ASSERT): Likewise.
57666         * tests/test-strstr.c (ASSERT): Likewise.
57667         * tests/test-strtod.c (ASSERT): Likewise.
57668         * tests/test-trunc1.c (ASSERT): Likewise.
57669         * tests/test-trunc2.c (ASSERT): Likewise.
57670         * tests/test-truncf1.c (ASSERT): Likewise.
57671         * tests/test-truncf2.c (ASSERT): Likewise.
57672         * tests/test-truncl.c (ASSERT): Likewise.
57673         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57674         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57675         * tests/test-vasnprintf.c (ASSERT): Likewise.
57676         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57677         * tests/test-vasprintf.c (ASSERT): Likewise.
57678         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57679         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57680         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57681         * tests/test-vsnprintf.c (ASSERT): Likewise.
57682         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57683         * tests/test-wcwidth.c (ASSERT): Likewise.
57684         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57685         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57686         * tests/test-xvasprintf.c (ASSERT): Likewise.
57687         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57688         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57689         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57690         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57691         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57692         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57693         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57694         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57695         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57696         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57697         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57698         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57699         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57700         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57701         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57702         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57703         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57704         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57705         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57706         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57707         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57708         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57709         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57710         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57711         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57712         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57713         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57714         * tests/unictype/test-combining.c (ASSERT): Likewise.
57715         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57716         * tests/unictype/test-digit.c (ASSERT): Likewise.
57717         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57718         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57719         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57720         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57721         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57722         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57723         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57724         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57725         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57726         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57727         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57728         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57729         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57730         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57731         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57732         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57733         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57734         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57735         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57736         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57737         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57738         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57739         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57740         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57741         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57742         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57743         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57744         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57745         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57746         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57747         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57748         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57749         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57750         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57751         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57752         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57753         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57754         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57755         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57756         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57757         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57758         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57759         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57760         Reported by Eric Blake.
57761
57762 2008-04-11  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/wchar.in.h: Tweak comment.
57765
57766 2008-04-11  Bruno Haible  <bruno@clisp.org>
57767
57768         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57769         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57770         gl_COMMON.
57771         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57772
57773 2008-04-11  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57776
57777 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57778
57779         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57780         of attempting to use non-existing /dev/*random.  Based on patch
57781         from Adam Strzelecki <ono@java.pl> in
57782         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57783
57784 2008-04-08  Bruno Haible  <bruno@clisp.org>
57785
57786         Add tentative support for emx+gcc.
57787         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57788         * lib/fpurge.c (fpurge): Likewise.
57789         * lib/freadable.c (freadable): Likewise.
57790         * lib/freadahead.c (freadahead): Likewise.
57791         * lib/freading.c (freading): Likewise.
57792         * lib/freadptr.c (freadptr): Likewise.
57793         * lib/freadseek.c (freadptrinc): Likewise.
57794         * lib/fseeko.c (rpl_fseeko): Likewise.
57795         * lib/fseterr.c (fseterr): Likewise.
57796         * lib/fwritable.c (fwritable): Likewise.
57797         * lib/fwriting.c (fwriting): Likewise.
57798         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57799
57800 2008-04-09  Eric Blake  <ebb9@byu.net>
57801
57802         Avoid some autoconf warnings.
57803         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57804         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57805         * m4/afs.m4 (gl_AFS): Likewise.
57806         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57807         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57808         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57809         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57810         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57811         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57812         (AC_CHECK_DECLS_ONCE): Likewise.
57813         Rename file...
57814         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57815         gnulib-tool requires autoconf 2.59 or better.
57816         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57817
57818 2008-04-08  Eric Blake  <ebb9@byu.net>
57819
57820         Use 'git describe --match' if present (added in git 1.5.5).
57821         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57822         if possible.
57823
57824 2008-04-08  Bruno Haible  <bruno@clisp.org>
57825
57826         Add tentative support for OpenServer.
57827         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57828         _ptr, _cnt.
57829         * lib/fpurge.c (fpurge): Likewise.
57830         * lib/freadable.c (freadable): Likewise.
57831         * lib/freadahead.c (freadahead): Likewise.
57832         * lib/freading.c (freading): Likewise.
57833         * lib/freadptr.c (freadptr): Likewise.
57834         * lib/freadseek.c (freadptrinc): Likewise.
57835         * lib/fseeko.c (rpl_fseeko): Likewise.
57836         * lib/fseterr.c (fseterr): Likewise.
57837         * lib/fwritable.c (fwritable): Likewise.
57838         * lib/fwriting.c (fwriting): Likewise.
57839         Reported by Roger Cornelius <rac@tenzing.org> and
57840         Brian K. White <brian@aljex.com>.
57841
57842 2008-04-06  Jim Meyering  <meyering@redhat.com>
57843
57844         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57845
57846 2008-04-06  Bruno Haible  <bruno@clisp.org>
57847
57848         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57849         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57850         * tests/test-printf-posix.sh: Likewise.
57851         * tests/test-vfprintf-posix.sh: Likewise.
57852         * tests/test-vprintf-posix.sh: Likewise.
57853         * tests/test-xprintf-posix.sh: Likewise.
57854
57855 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57856
57857         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57858         hide error from 'ls', needed on OS/2.
57859         Report by Elbert Pol <elbert.pol@gmail.com>.
57860
57861 2008-04-04  Eric Blake  <ebb9@byu.net>
57862
57863         Make test-fseeko.c failures meaningful.
57864         * tests/test-fseeko.c: Print line number on failure.
57865         * tests/test-fseek.c: Likewise.
57866         Reported by Nelson H. F. Beebe.
57867
57868         Improve strtod bug detection check.
57869         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57870         required for Solaris 10.
57871         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57872
57873 2008-04-04  Bruno Haible  <bruno@clisp.org>
57874
57875         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57876         by m4/setenv.m4.
57877
57878 2008-04-03  Eric Blake  <ebb9@byu.net>
57879
57880         Ensure sane .version contents.
57881         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57882         version string.
57883         * build-aux/git-version-gen: Improve documentation.
57884
57885         Make GNU make output nicer.
57886         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57887         MAKECMDGOALS to enforce message for all command line targets.  Set
57888         srcdir for use in maint.mk.
57889
57890         Another maintainer tweak.
57891         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57892         a target that regenerates version.
57893
57894 2008-04-03  Jim Meyering  <meyering@redhat.com>
57895
57896         vc-list-files: don't cause coreutils "make po-check" failure
57897         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57898
57899 2008-04-03  Eric Blake  <ebb9@byu.net>
57900
57901         Allow VPATH usage of vc-list-files.
57902         * build-aux/vc-list-files (scriptversion): Add timestamp.
57903         (options): Add --help, --version, -C.
57904         (CVS): Support installed cvsu.
57905
57906 2008-04-02  Bruno Haible  <bruno@clisp.org>
57907
57908         Avoid some "statement with no effect" warnings from gcc.
57909         * tests/test-wctype.c (main): Explicitly ignore unused values.
57910         Reported by Jim Meyering.
57911
57912 2008-04-02  Jim Meyering  <meyering@redhat.com>
57913
57914         Avoid some warnings from "gcc -Wshadow".
57915         * tests/test-frexp.c (exp): Define to a different identifier.
57916         * tests/test-frexpl.c (exp): Likewise.
57917
57918 2008-04-03  Jim Meyering  <meyering@redhat.com>
57919
57920         bootstrap: remove dangling *.[ch] symlinks from lib
57921         * build-aux/bootstrap [dangling symlink removal]: Move find's
57922         -depth option to precede all others, to avoid a warning.
57923         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57924
57925 2008-04-02  Bruno Haible  <bruno@clisp.org>
57926
57927         Avoid some warnings from "gcc -Wshadow".
57928         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57929         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57930         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57931         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57932         Reported by Jim Meyering.
57933
57934 2008-04-01  Bruno Haible  <bruno@clisp.org>
57935
57936         Fix test to work on IRIX 6.5 with cc.
57937         * tests/test-math.c (numeric_equal): New function.
57938         (main): Use it.
57939
57940 2008-04-01  Bruno Haible  <bruno@clisp.org>
57941
57942         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57943
57944 2008-04-01  Bruno Haible  <bruno@clisp.org>
57945
57946         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57947         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57948         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57949         (Depends-on): Remove math.
57950
57951         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57952         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57953         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57954         (Depends-on): Remove math.
57955
57956         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57957         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57958         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57959         (Depends-on): Remove math.
57960         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57961         (Depends-on): Remove math.
57962
57963         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57964         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57965         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57966         (Depends-on): Remove math.
57967         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57968         (Depends-on): Remove math.
57969
57970         * tests/test-round1.c: Include nan.h.
57971         (main): Use NaNd instead of NAN.
57972         * modules/round-tests (Files): Add tests/nan.h.
57973
57974         * tests/test-trunc1.c: Include nan.h.
57975         (main): Use NaNd instead of NAN.
57976         * modules/trunc-tests (Files): Add tests/nan.h.
57977
57978         * tests/test-roundf1.c: Include nan.h.
57979         (main): Use NaNf instead of NAN.
57980         * modules/roundf-tests (Files): Add tests/nan.h.
57981
57982         * tests/test-truncf1.c: Include nan.h.
57983         (main): Use NaNf instead of NAN.
57984         * modules/truncf-tests (Files): Add tests/nan.h.
57985
57986         * tests/test-ceilf1.c: Include nan.h.
57987         (main): Use NaNf instead of NAN.
57988         * modules/ceilf-tests (Files): Add tests/nan.h.
57989
57990         * tests/test-floorf1.c: Include nan.h.
57991         (main): Use NaNf instead of NAN.
57992         * modules/floorf-tests (Files): Add tests/nan.h.
57993
57994         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57995         (main): Use NaNf instead of NAN.
57996         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57997
57998         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57999         (main): Use NaNd instead of NAN.
58000         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58001
58002         * tests/test-frexp.c: Include nan.h.
58003         (main): Use NaNd instead of NAN.
58004         * modules/frexp-tests (Files): Add tests/nan.h.
58005
58006         * lib/isnan.c: Don't include <math.h>.
58007         (FUNC): Don't use NAN macro.
58008         * modules/isnand-nolibm (Depends-on): Remove math.
58009         * modules/isnanf-nolibm (Depends-on): Remove math.
58010         * modules/isnanl (Depends-on): Remove math.
58011         * modules/isnanl-nolibm (Depends-on): Remove math.
58012
58013         * tests/nan.h: New file.
58014
58015 2008-04-01  Eric Blake  <ebb9@byu.net>
58016
58017         Fix typos.
58018         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58019         values to be the right type.
58020
58021         For now, cater to gnulib strtod inaccuracies.
58022         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58023         fractional results.  While not as nice from a QoI perspective, it
58024         is a quicker patch than correctly implementing decimal to binary
58025         rounding.
58026
58027 2008-03-31  Eric Blake  <ebb9@byu.net>
58028
58029         Guarantee a definition of NAN.
58030         * lib/math.in.h (NAN): Define if missing.
58031         * tests/test-math.c (main): Test it.
58032         * doc/posix-headers/math.texi (math.h): Document this.
58033         * lib/isnan.c (rpl_isnand): Use it.
58034         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58035         * tests/test-floorf1.c (NaN): Likewise.
58036         * tests/test-frexp.c (NaN): Likewise.
58037         * tests/test-isnand.c (NaN): Likewise.
58038         * tests/test-isnanf.c (NaN): Likewise.
58039         * tests/test-round1.c (NaN): Likewise.
58040         * tests/test-roundf1.c (NaN): Likewise.
58041         * tests/test-snprintf-posix.h (NaN): Likewise.
58042         * tests/test-sprintf-posix.h (NaN): Likewise.
58043         * tests/test-trunc1.c (NaN): Likewise.
58044         * tests/test-truncf1.c (NaN): Likewise.
58045         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58046         * tests/test-vasprintf-posix.c (NaN): Likewise.
58047         * modules/isnand-nolibm (Depends-on): Add math.
58048         * modules/isnanf-nolibm (Depends-on): Likewise.
58049         * modules/isnanl (Depends-on): Likewise.
58050         * modules/isnanl-nolibm (Depends-on): Likewise.
58051         * modules/snprintf-posix-tests (Depends-on): Likewise.
58052         * modules/sprintf-posix-tests (Depends-on): Likewise.
58053         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58054         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58055         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58056         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58057
58058 2008-03-31  Bruno Haible  <bruno@clisp.org>
58059
58060         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58061         * doc/posix-functions/strtod.texi: Likewise.
58062
58063 2008-03-31  Bruno Haible  <bruno@clisp.org>
58064
58065         * tests/test-strtod.c (main): Don't use C99 syntax.
58066
58067 2008-03-31  Bruno Haible  <bruno@clisp.org>
58068
58069         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58070         Reported by Eric Blake.
58071
58072 2008-03-31  Jim Meyering  <meyering@redhat.com>
58073
58074         Don't compare actual signbit return values.
58075         * tests/test-strtod.c (main): Rather, compare only their
58076         zero/non-zero nature.
58077
58078 2008-03-31  Eric Blake  <ebb9@byu.net>
58079
58080         More strtod documentation.
58081         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58082         failures as distinct bugs.
58083
58084 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58087         Problem reported by Erik Benada in
58088         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58089
58090 2008-03-30  Bruno Haible  <bruno@clisp.org>
58091
58092         * tests/test-strtod.c: Add comments about which assertion fails on which
58093         platform.
58094         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58095
58096 2008-03-30  Eric Blake  <ebb9@byu.net>
58097
58098         Test signbit behavior on zeros.
58099         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58100         (test_signbitd, test_signbitl): Likewise.
58101
58102         More strtod touchups.
58103         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58104         sign of negative underflow, for now.  Use .5, not .1.
58105         * doc/posix-functions/strtod.texi (strtod): Mention these
58106         limitations.
58107         Reported by Jim Meyering.
58108
58109 2008-03-30  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58112         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58113
58114 2008-03-30  Bruno Haible  <bruno@clisp.org>
58115
58116         Avoid failure when attempting to return empty iconv results on some
58117         platforms.
58118         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58119         allocation, don't report ENOMEM when the resulting string is empty.
58120
58121 2008-03-30  Bruno Haible  <bruno@clisp.org>
58122
58123         Fix buffer overrun.
58124         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58125         Don't consider the width for tmp_length. Check count against tmp_length
58126         before doing the padding. Ensure enough allocation during padding.
58127
58128 2008-03-30  Eric Blake  <ebb9@byu.net>
58129
58130         strtod touchups.
58131         * lib/strtod.c (strtod): Avoid compiler warnings.
58132         Reported by Jim Meyering.
58133
58134 2008-03-30  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58137         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58138         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58139         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58140         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58141         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58142         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58143         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58144
58145         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58146         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58147         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58148         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58149         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58150         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58151         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58152         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58153
58154         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58155         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58156         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58157         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58158         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58159         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58160         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58161         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58162
58163         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58164         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58165
58166         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58167         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58168
58169         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58170         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58171
58172         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58174         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58175
58176         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58178         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58179
58180         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58182         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58183
58184         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58186         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58187
58188         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58189         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58191         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58192         (Depends-on): Add EOVERFLOW.
58193         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58194         (Depends-on): Add EOVERFLOW.
58195         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58196         (Depends-on): Add EOVERFLOW.
58197         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58198         (Depends-on): Add EOVERFLOW.
58199         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58200         (Depends-on): Add EOVERFLOW.
58201         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58202         (Depends-on): Add EOVERFLOW.
58203         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58204         (Depends-on): Add EOVERFLOW.
58205         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58206         (Depends-on): Add EOVERFLOW.
58207
58208         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58210         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58211
58212         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58214         * modules/snprintf (Depends-on): Add EOVERFLOW.
58215
58216         * lib/poll.c (EOVERFLOW): Remove fallback.
58217         * modules/poll (Depends-on): Add EOVERFLOW.
58218
58219         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58220         * modules/getugroups (Depends-on): Add EOVERFLOW.
58221
58222         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58223         * modules/getdelim (Depends-on): Add EOVERFLOW.
58224
58225         * lib/ftell.c (EOVERFLOW): Remove fallback.
58226         * modules/ftell (Depends-on): Add EOVERFLOW.
58227
58228         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58230         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58231
58232         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58233
58234         * modules/EOVERFLOW-tests: New file.
58235         * tests/test-EOVERFLOW.c: New file.
58236
58237         * modules/EOVERFLOW: New file.
58238         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58239
58240 2008-03-30  Bruno Haible  <bruno@clisp.org>
58241
58242         Fix bug introduced on 2007-06-10.
58243         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58244         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58245
58246 2008-03-30  Bruno Haible  <bruno@clisp.org>
58247
58248         Improve freadseek's efficiency after ungetc.
58249         * lib/freadseek.c: Include freadahead.h.
58250         (freadptrinc): New function, extracted from freadseek.
58251         (freadseek): Use it in a loop. Use freadahead to determine the number
58252         of loop iterations.
58253         * modules/freadseek (Depends-on): Add freadahead.
58254         (configure.ac): Require AC_C_INLINE.
58255
58256 2008-03-30  Bruno Haible  <bruno@clisp.org>
58257
58258         * lib/freadseek.c (freadseek): Don't ignore the return value of
58259         freadptr.
58260
58261 2008-03-29  Eric Blake  <ebb9@byu.net>
58262
58263         Add hex float support.
58264         * modules/strtod (Depends-on): Add c-ctype.
58265         (Link): Mention POW_LIB.
58266         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58267         whitespace between 'e' and exponent.
58268         * tests/test-strtod.c (main): Enable hex float tests.
58269         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58270         now provides.
58271
58272         Document various strtod bugs, with some fixes.
58273         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58274         "-0x", "inf", "nan", and hex constants.
58275         * doc/posix-functions/atof.texi (atof): Likewise.
58276         * modules/stdlib (Makefile.am): Support strtod.
58277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58278         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58279         detect additional strtod bugs.
58280         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58281         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58282         bool where appropriate.  Parse 'inf' and 'nan'.
58283         * tests/test-strtod.c: New file.
58284         * modules/strtod (Depends-on): Add stdbool, stdlib.
58285         (configure.ac): Turn on module indicator.
58286         * modules/strtod-tests: New module.
58287
58288 2008-03-29  Eric Blake  <ebb9@byu.net>
58289
58290         Fix ftell on mingw.
58291         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58292         * modules/ftell-tests (Depends-on): Add binary-io.
58293         * modules/ftello-tests (Depends-on): Likewise.
58294         * tests/test-ftell.c (main): Enhance test to cover behavior after
58295         ungetc.  Enforce binary mode.
58296         * tests/test-ftello.c (main): Likewise.
58297
58298         Pass test-freadseek on cygwin.
58299         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58300         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58301         ungetc buffer.
58302
58303         * tests/test-fflush2.c (main): Fix typo.
58304
58305 2008-03-29  Bruno Haible  <bruno@clisp.org>
58306
58307         * tests/test-fflush2.c (main): Temporarily disable the contents of
58308         this test.
58309         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58310         Reported by Eric Blake.
58311
58312 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58313
58314         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58315         (GC_SHA224_DIGEST_SIZE): Add.
58316
58317         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58318         (gc_hash_digest_length): Likewise.
58319         (gc_hash_buffer): Likewise.
58320
58321 2008-03-25  Bruno Haible  <bruno@clisp.org>
58322
58323         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58324         detail which gettext release to use.
58325         Reported by Simon Josefsson.
58326
58327 2008-03-26  Jim Meyering  <meyering@redhat.com>
58328
58329         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58330         * modules/gnumakefile (clean-GNUmakefile): Also, use
58331         test ... && ... || : syntax rather than if-then ... fi.
58332
58333         gnumakefile: Don't double-quote-expand $(VPATH) value.
58334         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58335
58336 2008-03-24  Eric Blake  <ebb9@byu.net>
58337
58338         Alter GNUmakefile to install into top directory.
58339         * modules/maintainer-makefile: Split, and add dependency...
58340         * modules/gnumakefile: to this new module.
58341         * build-aux/GNUmakefile: Move...
58342         * top/GNUmakefile: ...here.
58343         * build-aux/maint.mk: Move...
58344         * top/maint.mk: ...here.
58345         * MODULES.html.sh (Support for maintaining...): Document new
58346         module.
58347
58348 2008-03-23  Bruno Haible  <bruno@clisp.org>
58349
58350         * gnulib-tool: New options --vc-files, --no-vc-files.
58351         (func_usage): Document them.
58352         (vc_files): New variable.
58353         (func_import): Consider vc_files.
58354         (func_create_testdir): Set vc_files to empty.
58355         Suggested by Jim Meyering and Karl Berry.
58356
58357 2008-03-23  Bruno Haible  <bruno@clisp.org>
58358
58359         Fix regex compilation error on HP-UX 11.
58360         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58361         * modules/regex (Files): Add m4/mbstate_t.m4.
58362         Reported by Ton Voon <ton.voon@altinity.com>.
58363
58364 2008-03-23  Bruno Haible  <bruno@clisp.org>
58365
58366         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58367
58368 2008-03-23  Eric Blake  <ebb9@byu.net>
58369             Bruno Haible  <bruno@clisp.org>
58370
58371         Install files from top/ in the destination directory.
58372         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58373         augmentation also for the files from top/.
58374         (func_import, func_create_testdir): Rewrite file names:
58375         top/filename -> filename.
58376
58377 2008-03-23  Bruno Haible  <bruno@clisp.org>
58378
58379         Tweak "gnulib --version" output.
58380         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58381
58382 2008-03-23  Bruno Haible  <bruno@clisp.org>
58383
58384         Tweak "gnulib --version" output.
58385         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58386         rather than contents of ChangeLog, when possible.
58387
58388 2008-03-21  Eric Blake  <ebb9@byu.net>
58389
58390         More --version tweaks.
58391         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58392         date of last ChangeLog entry.
58393
58394 2008-03-21  Jim Meyering  <meyering@redhat.com>
58395
58396         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58397
58398 2008-03-20  Eric Blake  <ebb9@byu.net>
58399
58400         VPATH fix.
58401         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58402
58403 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58404
58405         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58406         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58407
58408 2008-03-20  Eric Blake  <ebb9@byu.net>
58409
58410         Sync GNUmakefile with coreutils.
58411         * build-aux/GNUmakefile (have-Makefile): Rename...
58412         (_have-Makefile): ...to this, for namespace consideration.
58413         (GNUmakefile.cfg): Include, if present.
58414         (_autoreconf): Define a default.
58415         (_is-dist-target): New rule for rebuilds to pick up intra-release
58416         version.
58417         (maint-cfg.mk): Rename...
58418         (cfg.mk): ...to this.
58419
58420 2008-03-18  Jim Meyering  <meyering@redhat.com>
58421
58422         New script and module: mktempd
58423         * MODULES.html.sh (maint+release support): Add mktempd.
58424         * build-aux/mktempd: New file.
58425         * modules/mktempd: New file.
58426
58427 2008-03-15  Jim Meyering  <meyering@redhat.com>
58428
58429         Undo last change.
58430         * lib/sha1.c, lib/md5.c: 63 != ~63.
58431         Reported by Andreas Schwab.
58432
58433         sha1.c, md5.c: Hoist a redundant expression.
58434         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58435         "ctx->buflen" only once, before calling *_process_block.
58436         * lib/md5.c (md5_process_bytes): Likewise.
58437
58438 2008-03-14  Eric Blake  <ebb9@byu.net>
58439
58440         Bump copyright year in files generated by gnulib-tool.
58441         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58442         gnulib-tool, rather than hard-coding it.
58443
58444         Fix 'gnulib-tool --version' output to work with git.
58445         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58446         (startup): ...here.
58447         (func_version): Use it to invoke git-version-gen, rather than
58448         relying on CVS keyword expansion.  Modernize wording.
58449         (cvsdatestamp, last_checkin_date, version): Kill unused
58450         variables.
58451
58452 2008-03-12  Jim Meyering  <meyering@redhat.com>
58453
58454         Recognize optional cast of the argument to free.
58455         * build-aux/useless-if-before-free: Update regexps.
58456
58457         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58458
58459 2008-03-11  Bruno Haible  <bruno@clisp.org>
58460
58461         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58462         by a single package.
58463         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58464         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58465         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58466         Reported by Sam Steingold <sds@gnu.org>.
58467
58468 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58469
58470         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58471         repositories.
58472
58473 2008-03-11  Bruno Haible  <bruno@clisp.org>
58474
58475         Avoid conflicts between local macro definitions.
58476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58477         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58478
58479 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58480             Bruno Haible  <bruno@clisp.org>
58481
58482         Make va_copy work with some version of xlc on AIX 5.1.
58483         * lib/stdarg.in.h: New file.
58484         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58485         On AIX, use a <stdarg.h> file substitute.
58486         * modules/stdarg (Files): Add lib/stdarg.in.h.
58487         (Depends-on): Add include_next.
58488         (Makefile.am): Build a stdarg.h substitute if requested.
58489         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58490
58491 2008-03-10  Bruno Haible  <bruno@clisp.org>
58492
58493         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58494         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58495         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58496
58497 2008-03-10  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/stdlib (Depends-on): Add include_next, remove
58500         absolute-header.
58501
58502 2008-03-09  Bruno Haible  <bruno@clisp.org>
58503
58504         * lib/freadahead.h (freadahead): Document more precisely.
58505         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58506         the sum of both buffer sizes.
58507         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58508         * NEWS: Document the change.
58509
58510 2008-03-09  Bruno Haible  <bruno@clisp.org>
58511
58512         Extend freadptr to return also the buffer size.
58513         * lib/freadptr.h (freadptr): Add sizep argument.
58514         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58515         (freadptr): Add sizep argument. Determine buffer size like freadahead
58516         does.
58517         * tests/test-freadptr.c: Don't include freadahead.h.
58518         (main): Adapt for new calling convention of freadptr.
58519         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58520         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58521         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58522         tests/test-freadptr2.sh.
58523         (Depends): Remove freadahead.
58524         (TESTS): Add test-freadptr2.sh.
58525         (check_PROGRAMS): Add test-freadptr2.
58526
58527 2008-03-09  Bruno Haible  <bruno@clisp.org>
58528
58529         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58530         Report and solution by Simon Josefsson.
58531
58532 2008-03-06  Bruno Haible  <bruno@clisp.org>
58533
58534         Make fflush after ungetc work on BSD platforms.
58535         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58536         * tests/test-fflush2.c: New file.
58537         * tests/test-fflush2.sh: New file.
58538         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58539         tests/test-fflush2.c.
58540         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58541         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58542
58543 2008-03-06  Eric Blake  <ebb9@byu.net>
58544
58545         Likewise for ftello.
58546         * modules/ftello (Dependencies): Add extensions.
58547         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58548
58549 2008-03-06  Bruno Haible  <bruno@clisp.org>
58550
58551         * modules/fseeko (Dependencies): Add extensions.
58552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58553         Needed on glibc systems.
58554
58555 2008-03-06  Bruno Haible  <bruno@clisp.org>
58556
58557         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58558         email address.
58559         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58560
58561 2008-03-06  Bruno Haible  <bruno@clisp.org>
58562
58563         * users.txt: Add libgnupdf.
58564
58565 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58566
58567         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58568         (Header File Substitutes, Function Substitutes,
58569         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58570         (Build robot for gnulib): Fix typo.
58571
58572 2008-03-06  Bruno Haible  <bruno@clisp.org>
58573
58574         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58575         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58576
58577 2008-03-06  Bruno Haible  <bruno@clisp.org>
58578
58579         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58580         * doc/gnulib.texi: Include it.
58581
58582 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58583
58584         * modules/func (License): Change license to unlimited; there was
58585         no LGPL parts in the module anyway.
58586
58587 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58588
58589         * modules/__func__: Renamed to modules/func.
58590         * modules/__func__-tests: Renamed to modules/func-tests.
58591         * tests/test-__func__.c: Renamed to tests/test-func.c.
58592         * m4/__func__.m4: Renamed to m4/func.m4.
58593         * doc/gnulib.texi (__func__): Section renamed to func.
58594         Suggested by Eric Blake <ebb9@byu.net>.
58595
58596 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58597
58598         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58599         about __func__.  Make example self-contained.  Suggested by Eric
58600         Blake <ebb9@byu.net>.
58601
58602         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58603         Suggested by Eric Blake <ebb9@byu.net>.
58604
58605 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58606
58607         * modules/__func__: New file.
58608         * modules/__func__-tests: New file.
58609         * tests/test-__func__.c: New file.
58610         * m4/__func__.m4: New file.
58611         * doc/gnulib.texi (__func__): Document __func__ module.
58612
58613 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58614
58615         * modules/byteswap (License): Re-license as LGPLv2+.
58616
58617 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58618
58619         * doc/Makefile: Add pdf target.
58620
58621 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58622
58623         * modules/inline (License): Use 'unlimited', since there are only
58624         *.m4 files in this module.
58625
58626 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58627             Bruno Haible  <bruno@clisp.org>
58628
58629         Add support for HP C 7.1 on OpenVMS 8.3.
58630         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58631
58632 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58633
58634         Update VMS specifics.
58635         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58636
58637 2008-03-02  Jim Meyering  <meyering@redhat.com>
58638
58639         Remove the last dependency on the "free" module.
58640         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58641         Reported by Bob Proulx.
58642
58643         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58644
58645         Remove useless "if" tests before free.  Deprecate "free" module.
58646         * doc/posix-functions/free.texi: Mention that this
58647         module is no longer useful.
58648         * modules/free (Notice): Say this module is obsolete.
58649         * modules/readutmp (Depends-on): Remove free.
58650         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58651         * lib/putenv.c (putenv): Likewise.
58652         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58653         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58654         * tests/test-c-strcasestr.c (main): Likewise.
58655         * tests/test-c-strstr.c (main): Likewise.
58656         * tests/test-mbscasestr1.c (main): Likewise.
58657         * tests/test-mbscasestr2.c (main): Likewise.
58658         * tests/test-mbsstr1.c (main): Likewise.
58659         * tests/test-mbsstr2.c (main): Likewise.
58660         * tests/test-memmem.c (main): Likewise.
58661         * tests/test-strcasestr.c (main): Likewise.
58662         * tests/test-striconv.c (main): Likewise.
58663         * tests/test-striconveh.c (main): Likewise.
58664         * tests/test-striconveha.c (main): Likewise.
58665         * tests/test-strstr.c (main): Likewise.
58666
58667         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58668
58669         bootstrap: sync from coreutils again
58670         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58671
58672 2008-03-01  Jim Meyering  <meyering@redhat.com>
58673
58674         bootstrap: sync from coreutils
58675         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58676         also when the target doesn't exist.
58677
58678 2008-03-01  Eric Blake  <ebb9@byu.net>
58679
58680         Fix bugs in last patch.
58681         * lib/memchr2.c (memchr2): Fix typo.
58682         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58683         extension.
58684         Reported by Bruce Korb.
58685
58686         New module 'memchr2'.
58687         * modules/memchr2: New file.
58688         * modules/memchr2-tests: Likewise.
58689         * lib/memchr2.h: Likewise.
58690         * lib/memchr2.c: Likewise, based on memchr.c.
58691         * tests/test-memchr2.c: New test.
58692         * MODULES.html.sh (String handling): Add memchr2.
58693
58694 2008-02-29  Bruno Haible  <bruno@clisp.org>
58695
58696         * modules/freadseek-tests: New file.
58697         * tests/test-freadseek.sh: New file.
58698         * tests/test-freadseek.c: New file.
58699
58700         New module 'freadseek'.
58701         * modules/freadseek: New file.
58702         * lib/freadseek.h: New file.
58703         * lib/freadseek.c: New file.
58704         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58705
58706 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58707
58708         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58709         wydawca.
58710
58711         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58712         program_invocation_name and program_invocation_short_name are
58713         present.
58714
58715 2008-02-28  Bruno Haible  <bruno@clisp.org>
58716
58717         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58718         * tests/test-freadptr.sh: Also test non-seekable stdin.
58719
58720 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58721
58722         * build-aux/bootstrap (source_base, m4_base)
58723         (doc_base, tests_base): New variables.
58724         (gnulib_tool_options): Do not hardcode base directories, use
58725         the above variables instead.
58726
58727 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58728
58729         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58730
58731 2008-02-28  Bruno Haible  <bruno@clisp.org>
58732
58733         * modules/freadptr-tests: New file.
58734         * tests/test-freadptr.sh: New file.
58735         * tests/test-freadptr.c: New file.
58736
58737         New module 'freadptr'.
58738         * modules/freadptr: New file.
58739         * lib/freadptr.h: New file.
58740         * lib/freadptr.c: New file.
58741         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58742
58743 2008-02-26  Karl Berry  <karl@freefriends.org>
58744
58745         Sync from Libtool:
58746         * libltdl/argz.c (argz_add, argz_count): New functions.
58747         * libltdl/argz.in.h: Declare them.
58748         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58749
58750 2008-02-22  Bruno Haible  <bruno@clisp.org>
58751
58752         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58753         is a pointer type.  Needed for HP-UX 10.
58754         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58755         * doc/posix-functions/gmtime_r.texi: Likewise.
58756         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58757
58758 2008-02-24  Bruno Haible  <bruno@clisp.org>
58759
58760         * modules/environ-tests: New file.
58761         * tests/test-environ.c: New file.
58762
58763         New module 'environ'.
58764         * modules/environ: New file.
58765         * lib/unistd.in.h (environ): New declaration.
58766         * m4/environ.m4: New file.
58767         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58768         after use.
58769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58770         HAVE_DECL_ENVIRON.
58771         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58772         HAVE_DECL_ENVIRON.
58773         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58774         wrong claim that 'environ' is missing on some systems.
58775         * modules/execute (Depends-on): Add environ.
58776         * lib/execute.c (environ): Remove fallback declaration.
58777         * modules/pipe (Depends-on): Add environ.
58778         * lib/pipe.c (environ): Remove fallback declaration.
58779         * modules/setenv (Depends-on): Add environ.
58780         * lib/setenv.c (environ): Remove fallback declaration.
58781         * modules/unsetenv (Depends-on): Add environ.
58782         * lib/unsetenv.c (environ): Remove fallback declaration.
58783         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58784         m4/environ.m4.
58785         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58786         (gl_PREREQ_UNSETENV): Likewise.
58787
58788 2008-02-24  Bruno Haible  <bruno@clisp.org>
58789
58790         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58791
58792 2008-02-20  Bob Proulx  <bob@proulx.com>
58793
58794         Enable use of older two part flavor 'git describe'.
58795         * build-aux/git-version-gen: If using the older two part flavor of
58796         git version then recreate the third part now present in the
58797         newer three part flavor of git describe.
58798
58799 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58800
58801         * lib/fts.c (fts_build): Typo correction to comment.
58802
58803 2008-02-17  Bruno Haible  <bruno@clisp.org>
58804
58805         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58806         generating no-op conflicts.
58807
58808 2008-02-17  Bruno Haible  <bruno@clisp.org>
58809
58810         Speed up by 10%.
58811         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58812         result_entries, rather than an index-based loop.
58813
58814 2008-02-17  Bruno Haible  <bruno@clisp.org>
58815
58816         Speed up by 25%.
58817         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58818         'hashcode_cached'.
58819         (entry_create): New function.
58820         (entry_hashcode): Use the cached hashcode if possible.
58821         (read_changelog_file, try_split_merged_entry): Use entry_create.
58822
58823 2008-02-17  Bruno Haible  <bruno@clisp.org>
58824
58825         Speed up from O(n^2) to O(n) for long ChangeLog files.
58826         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58827         (read_changelog_file): Change implementation of entries_reversed list
58828         to rbtreehash.
58829         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58830
58831 2008-02-17  Bruno Haible  <bruno@clisp.org>
58832
58833         New option --split-merged-entry.
58834         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58835         (find_paragraph_end, try_split_merged_entry): New functions.
58836         (long_options): Add option --split-merged-entry.
58837         (usage): Document option --split-merged-entry.
58838         (main): Implement option --split-merged-entry.
58839         Reported by Eric Blake.
58840
58841 2008-02-17  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/git-merge-changelog.c: Include c-strstr.h.
58844         (main): Support the "git pull --rebase" situation.
58845         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58846         Reported by Eric Blake.
58847
58848 2008-02-16  Eric Blake  <ebb9@byu.net>
58849
58850         Avoid doubling \ in common case of "c-maybe" quoting style.
58851         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58852         eliding outer quotes.
58853         * lib/quotearg.h: Document this.
58854         * tests/test-quotearg.c (result_strings, inputs, results_g)
58855         (flag_results, locale_results): Test it by adding a new string to
58856         each test group.
58857         (compare_strings): Test new string.
58858
58859 2008-02-13  Eric Blake  <ebb9@byu.net>
58860
58861         Avoid trigraph quoting in default output.
58862         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58863         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58864         unless explicitly requested.
58865         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58866
58867 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58868
58869         Don't rely on signed integer overflowing to negative value.
58870         * lib/getugroups.c (getugroups): Include <limits.h>.
58871         Instead, compare against INT_MAX, and increment only if the test passes.
58872
58873 2008-02-13  Jim Meyering  <meyering@redhat.com>
58874         and Eric Blake  <ebb9@byu.net>
58875
58876         Avoid shadowing warning and compile errors on Linux.
58877         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58878         forwarding macros on Linux.
58879         (dcgettext): Define a stub, for Linux.
58880         (results_g, main): Avoid warnings.
58881
58882 2008-02-12  Eric Blake  <ebb9@byu.net>
58883
58884         Silence warning in last patch.
58885         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58886
58887         Quotearg part 4: add tests, fix c-maybe colon quoting.
58888         * lib/quotearg.h: Improve documentation.
58889         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58890         escapes when adding outer quotes.  When quoting trigraphs, use
58891         valid C notation.  When quoting NUL, omit extra characters if next
58892         character is not digit.  Alter prototype.
58893         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58894         callers.
58895         * modules/quotearg-tests: New module.
58896         * tests/test-quotearg.c: New test.
58897
58898 2008-02-07  Eric Blake  <ebb9@byu.net>
58899
58900         Quotearg part 3: add flag to control outer quote elision.
58901         * lib/quotearg.h (c_maybe_quoting_style): New style.
58902         (enum quoting_flags): Better documentation of flags.
58903         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58904         c-maybe style.
58905         (quotearg_buffer_restyled): Handle new flag to elide outer
58906         quotes.
58907
58908         Quotearg part 2: add flag that can control NUL elision.
58909         * lib/quotearg.h (set_quoting_flags): New prototype.
58910         * lib/quotearg.c (struct quoting_options): Add flag field.
58911         (set_quoting_flags): New function.
58912         (quotearg_buffer_restyled): Add flags parameter.
58913         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58914         (quotearg_n_options): Set the flag, since length cannot be
58915         returned.
58916         (quoting_options_from_style): Default flags correctly.
58917
58918         Quotearg part 1: more wrappers, restore quotearg_char state.
58919         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58920         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58921         (quotearg_colon_mem): New wrappers.
58922         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58923         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58924         functions.
58925         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58926         (quotearg_colon_mem): New functions.
58927
58928 2008-02-11  Bruno Haible  <bruno@clisp.org>
58929
58930         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58931         library in the current directory: it does not work with parallel make.
58932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58933
58934 2008-02-11  Bruno Haible  <bruno@clisp.org>
58935
58936         * .gitattributes: New file.
58937
58938 2008-02-11  Jim Meyering  <meyering@redhat.com>
58939
58940         useless-if-before-free: Fix reversed exit values.
58941         * build-aux/useless-if-before-free: Use correct values
58942         for EXIT_MATCH and EXIT_NO_MATCH.
58943
58944         * build-aux/useless-if-before-free: Close stdout carefully.
58945
58946 2008-02-10  Bruno Haible  <bruno@clisp.org>
58947
58948         New module 'git-merge-changelog'.
58949         * modules/git-merge-changelog: New file.
58950         * lib/git-merge-changelog.c: New file.
58951
58952 2008-02-10  Jim Meyering  <meyering@redhat.com>
58953
58954         useless-if-before-free: New option: --list (-l).
58955
58956         useless-if-before-free: Don't exit immediately upon open failure.
58957         * build-aux/useless-if-before-free: Exit 2 for errors.
58958         Upon failure to open a file, don't exit immediately.
58959         Rather, just warn and continue with any remaining files.
58960
58961 2008-02-10  Bruno Haible  <bruno@clisp.org>
58962
58963         New abstract list operation 'node_set_value'.
58964         * lib/gl_list.h (gl_list_node_set_value): New function.
58965         (struct gl_list_implementation): New field node_set_value.
58966         * lib/gl_list.c (gl_list_node_set_value): New function.
58967         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58968         (gl_array_list_implementation): Update.
58969         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58970         (gl_carray_list_implementation): Update.
58971         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58972         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58973         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58974         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58975         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58976         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58977         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58978         Update.
58979         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58980         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58981         (gl_sublist_list_implementation): Update.
58982
58983 2008-02-10  Bruno Haible  <bruno@clisp.org>
58984
58985         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58986         Needed when ELEMENT is #defined to 'some_type *'.
58987
58988 2008-02-10  Jim Meyering  <meyering@redhat.com>
58989
58990         New script and module: useless-if-before-free
58991         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58992         * build-aux/useless-if-before-free: New file.
58993         * modules/useless-if-before-free: New file.
58994
58995         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58996
58997         xstrtol_error: Fix typo.
58998         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58999         s/exit_failure/exit_status/.
59000
59001 2008-02-09  Jim Meyering  <meyering@redhat.com>
59002
59003         New script and module: gitlog-to-changelog
59004         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59005         * modules/gitlog-to-changelog: New file.
59006         * build-aux/gitlog-to-changelog: New file.
59007
59008 2008-02-08  Jim Meyering  <meyering@redhat.com>
59009
59010         Avoid two "parameter unused" warnings.
59011         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59012         Mark "st" as used.
59013
59014         Use "git COMMAND", not "git-COMMAND".
59015         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59016         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59017         * build-aux/git-version-gen: Use "git status", not "git-status".
59018
59019 2008-02-07  Bruno Haible  <bruno@clisp.org>
59020
59021         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59022         Avoids a crash on Windows Vista.
59023         Reported by Adam Strzelecki <ono@java.pl> via
59024         Simon Josefsson <simon@josefsson.org>.
59025
59026 2008-02-06  Bruno Haible  <bruno@clisp.org>
59027
59028         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59029         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59030         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59032         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59033         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59034         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59035         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59037         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59038         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59039         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59040         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59043         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59044         left-adjust flag.
59045         * tests/test-snprintf-posix.h (test_function): Likewise.
59046         * tests/test-sprintf-posix.h (test_function): Likewise.
59047         * tests/test-vasprintf-posix.c (test_function): Likewise.
59048         * doc/posix-functions/fprintf.texi: Update.
59049         * doc/posix-functions/printf.texi: Update.
59050         * doc/posix-functions/snprintf.texi: Update.
59051         * doc/posix-functions/sprintf.texi: Update.
59052         * doc/posix-functions/vfprintf.texi: Update.
59053         * doc/posix-functions/vprintf.texi: Update.
59054         * doc/posix-functions/vsnprintf.texi: Update.
59055         * doc/posix-functions/vsprintf.texi: Update.
59056         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59057
59058 2008-02-06  Bruno Haible  <bruno@clisp.org>
59059
59060         Fix bug introduced on 2008-01-26.
59061         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59062
59063 2008-02-06  Bruno Haible  <bruno@clisp.org>
59064
59065         Fix bug introduced on 2007-06-10.
59066         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59067         !NEED_PRINTF_FLAG_ZERO.
59068
59069 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59070
59071         getloadavg: use libperfstat on AIX5
59072         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59073
59074 2008-02-03  Bruno Haible  <bruno@clisp.org>
59075
59076         * lib/diffseq.h: Add comments about required #includes.
59077         Reported by Michael Biggs <gnulib@doubleplum.net>.
59078
59079 2008-02-01  Bruno Haible  <bruno@clisp.org>
59080
59081         * users.txt: Add gnuit.
59082
59083 2008-01-31  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/md4.c (set_uint32): Mark as inline.
59086         * lib/md5.c (set_uint32): Likewise.
59087         * lib/sha1.c (set_uint32): Likewise.
59088         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59089         * m4/md5.m4 (gl_MD5): Likewise.
59090         * m4/sha1.m4 (gl_SHA1): Likewise.
59091
59092 2008-01-31  Jim Meyering  <meyering@redhat.com>
59093
59094         Use "sizeof VAR", rather than a literal "4".
59095         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59096         * lib/md4.c (md4_read_ctx): Likewise.
59097         * lib/sha1.c (sha1_read_ctx): Likewise.
59098
59099 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59100
59101         * tests/test-sha1.c: New file, based on test-md5.c.
59102
59103         * modules/crypto/sha1-tests: New file.
59104
59105 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59106
59107         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59108
59109 2008-01-31  Jim Meyering  <meyering@redhat.com>
59110
59111         Prefer "sizeof v" over the equivalent "4".
59112         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59113         * lib/md5.c (set_uint32): Likewise.
59114         * lib/sha1.c (set_uint32): Likewise.
59115
59116 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59117
59118         * lib/sha1.c (set_uint32): Mark function as static.
59119
59120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59121
59122         md2: clarify comments to say that alignment is not required.
59123         * lib/md2.h: Remove warning about alignment in comment.
59124         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59125         never been required.
59126
59127 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59128
59129         md4: adapt alignment constraint fix from sha1.
59130         * lib/md4.c (set_uint32): New function, from sha1.c
59131         (md4_read_ctx): Use it.
59132         (md4_finish_ctx): Doc fix.
59133         * lib/md4.h: Doc fix.
59134
59135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59136
59137         md5: adapt alignment constraint fix from sha1.
59138         * lib/md5.c (set_uint32): New function, from sha1.c
59139         (md5_read_ctx): Use it.
59140         (md5_finish_ctx): Doc fix.
59141         * lib/md5.h: Doc fix.
59142
59143 2008-01-30  Peter Palfrader  <weasel@debian.org>
59144
59145         sha1: remove the result buffer alignment constraint
59146         * lib/sha1.c (set_uint32): New function.
59147         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59148         constraint.
59149         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59150         * lib/sha1.h: Likewise.
59151
59152 2008-01-30  Andreas Schwab  <schwab@suse.de>
59153             Bruno Haible  <bruno@clisp.org>
59154
59155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59156         correct definition of LDBL_MIN_EXP.
59157
59158 2008-01-30  Karl Berry  <karl@gnu.org>
59159
59160         * config/srclist-update: try to preserve x bit on updates.
59161         * config/srclistvars.sh: update for karl.
59162
59163 2008-01-29  Jim Meyering  <meyering@redhat.com>
59164
59165         vasnprintf.c: Avoid warning about unused label
59166         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59167         "overflow" label definition and associated code with the
59168         same cpp condition that guards the sole use of that label.
59169
59170 2008-01-26  Bruno Haible  <bruno@clisp.org>
59171
59172         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59173         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59174         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59175         * lib/isnanl-nolibm.h (isnanl): Likewise.
59176         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59177
59178 2008-01-26  Bruno Haible  <bruno@clisp.org>
59179
59180         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59181         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59182
59183 2008-01-26  Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59186         GCC >= 4.0 built-in.
59187         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59188
59189 2008-01-26  Bruno Haible  <bruno@clisp.org>
59190
59191         Rename isnan, applicable to 'double' only, to isnand.
59192         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59193         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59194         (configure.ac): Update.
59195         (Include): Replace "isnan.h" with "isnand.h".
59196         * m4/isnand.m4: Renamed from m4/isnan.m4.
59197         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59198         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59199         instead of isnan.c.
59200         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59201         instead of HAVE_ISNAN_IN_LIBC.
59202         (isnand): Renamed from isnan.
59203         * lib/isnand.c: New file.
59204         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59205         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59206         (Makefile.am): Update.
59207         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59208         Include isnand.h instead of isnan.h.
59209         (main): Test isnand instead of isnan.
59210         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59211         isnan-nolibm.
59212         * modules/frexp (Depends-on): Likewise.
59213         * modules/frexp-tests (Depends-on): Likewise.
59214         * modules/frexp-nolibm (Depends-on): Likewise.
59215         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59216         * modules/isfinite (Depends-on): Likewise.
59217         * modules/round-tests (Depends-on): Likewise.
59218         * modules/signbit (Depends-on): Likewise.
59219         * modules/signbit-tests (Depends-on): Likewise.
59220         * modules/snprintf-posix (Depends-on): Likewise.
59221         * modules/sprintf-posix (Depends-on): Likewise.
59222         * modules/trunc-tests (Depends-on): Likewise.
59223         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59224         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59229         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59230         * modules/vasnprintf-posix (Depends-on): Likewise.
59231         * modules/vasprintf-posix (Depends-on): Likewise.
59232         * modules/vfprintf-posix (Depends-on): Likewise.
59233         * modules/vsnprintf-posix (Depends-on): Likewise.
59234         * modules/vsprintf-posix (Depends-on): Likewise.
59235         * lib/frexp.c: Include isnand.h instead of isnan.h.
59236         (ISNAN): Set to isnand instead of isnan.
59237         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59238         (gl_isfinited): Use isnand instead of isnan.
59239         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59240         (gl_signbitd): Use isnand instead of isnan.
59241         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59242         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59243         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59244         (main): Use isnand instead of isnan.
59245         * tests/test-round1.c: Include isnand.h.
59246         (main): Use isnand instead of isnan.
59247         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59248         (ISNAN): Set to isnand instead of isnan.
59249         * tests/test-trunc1.c: Include isnand.h.
59250         (main): Use isnand instead of isnan.
59251         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59252         (equal): Use isnand instead of isnan.
59253         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59254         isnand-nolibm.
59255         * NEWS: Mention the change.
59256
59257 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59258             Bruno Haible  <bruno@clisp.org>
59259
59260         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59261         the GCC builtins for signbits are present and set
59262         REPLACE_SIGNBIT_USING_GCC if so.
59263         * lib/math.in.h (signbit): Define using GCC builtins if
59264         REPLACE_SIGNBIT_USING_GCC is set.
59265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59266         REPLACE_SIGNBIT_USING_GCC.
59267         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59268
59269 2008-01-25  Jim Meyering  <meyering@redhat.com>
59270
59271         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59272         * lib/poll.c: Include <config.h>, not "config.h".
59273         * tests/test-getaddrinfo.c: Likewise.
59274
59275 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59276
59277         * modules/sockets-tests: New file.
59278
59279 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59280
59281         * modules/sockets: New module, can be used to call WSA_Startup and
59282         WSA_Cleanup when needed.
59283
59284         * lib/sockets.h, lib/sockets.c: New files.
59285
59286         * m4/sockets.m4: New file.
59287
59288         * tests/test-sockets.c: New file.
59289
59290 2008-01-19  Bruno Haible  <bruno@clisp.org>
59291
59292         * doc/posix-headers: Renamed from doc/headers.
59293         * doc/posix-functions: Renamed from doc/functions.
59294         * doc/gnulib.texi: Update.
59295
59296 2008-01-19  Bruno Haible  <bruno@clisp.org>
59297
59298         * doc/glibc-functions/strcasestr.texi: Include contents of
59299         doc/functions/strcasestr.texi, fixing the list of platforms.
59300         * doc/functions/strcasestr.texi: Remove file.
59301
59302 2008-01-19  Bruno Haible  <bruno@clisp.org>
59303
59304         * doc/glibc-functions/memmem.texi: Include contents of
59305         doc/functions/memmem.texi.
59306         * doc/functions/memmem.texi: Remove file.
59307
59308 2008-01-18  Bruno Haible  <bruno@clisp.org>
59309
59310         * doc/glibc-functions/*.texi: New files.
59311         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59312         to use the new files.
59313
59314 2008-01-17  Bruno Haible  <bruno@clisp.org>
59315
59316         * tests/test-gethostname.c (main): Fix printf statement.
59317
59318 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59319
59320         * modules/gethostname-tests: New file.
59321
59322         * tests/test-gethostname.c: New file.
59323
59324 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59325
59326         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59327         used by the UNAME case.  Reported by Bruno Haible
59328         <bruno@clisp.org>.
59329
59330 2008-01-17  Eric Blake  <ebb9@byu.net>
59331
59332         Convert c-strcasestr to be more efficient.
59333         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59334         (Depends-on): Add c-strcase, remove malloca, strnlen.
59335         * tests/test-c-strcasestr.c (main): Enhance test.
59336         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59337
59338 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59339
59340         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59341         Use it in creating po/Makevars.
59342
59343 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59344
59345         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59346         Applications that requires it should initialize libgcrypt
59347         manually.
59348
59349 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59350
59351         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59352
59353 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59354
59355         Fix problem with getdate on mingw32 reported by Simon Josefsson
59356         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59357         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59358         tzname", when deciding whether to declare tzname.
59359         * lib/strftime.c (tzname): Likewise.
59360
59361 2008-01-15  Bruno Haible  <bruno@clisp.org>
59362
59363         Work around a MacOS X 10.5 bug in frexpl().
59364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59365         * doc/functions/frexpl.texi: Document the bug.
59366         Reported by Elias Pipping <pipping@gentoo.org>.
59367
59368 2008-01-14  Eric Blake  <ebb9@byu.net>
59369
59370         Touch up previous patch.
59371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59372         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59373
59374         Convert strcasestr module to use Two-Way algorithm.
59375         * modules/strcasestr-simple: New module, based on the old
59376         strcasestr, but with Two-Way rather than KMP.
59377         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59378         * lib/string.in.h (rpl_strcasestr): Declare.
59379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59380         performance.
59381         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59382         * modules/string (Makefile.am): Support strcasestr.
59383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59384         * modules/strcasestr-tests (Depends-on): Check for alarm.
59385         * tests/test-strcasestr.c: Augment test.
59386         * lib/str-two-way.h: Clean up stray macro.
59387         * NEWS: Document new module.
59388         * MODULES.html.sh (string handling): Likewise.
59389         * doc/functions/strcasestr.texi: New file.
59390         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59391         here, since it is not a POSIX function.
59392
59393 2008-01-14  Colin Watson  <cjwatson@debian.org>
59394             Bruno Haible  <bruno@clisp.org>
59395
59396         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59397         works fine; if not, set REPLACE_STRSIGNAL.
59398         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59400         REPLACE_STRSIGNAL.
59401         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59402         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59403         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59404
59405 2008-01-14  Bruno Haible  <bruno@clisp.org>
59406
59407         * modules/strsignal (Include): Change to <string.h>.
59408
59409 2008-01-14  Colin Watson  <cjwatson@debian.org>
59410
59411         * modules/argp (Notice): Add a notice recommending to change
59412         XGETTEXT_OPTIONS.
59413         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59414
59415 2008-01-13  Colin Watson  <cjwatson@debian.org>
59416
59417         * modules/strsignal-tests: New file.
59418         * tests/test-strsignal.c: New file.
59419
59420         * lib/strsignal.c: New file, from glibc with modifications.
59421         * lib/siglist.h: New file, from glibc with modifications.
59422         * lib/string.in.h (strsignal): New declaration.
59423         * m4/strsignal.m4: New file.
59424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59425         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59426         * modules/strsignal: New file.
59427         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59428         HAVE_DECL_STRSIGNAL.
59429
59430 2008-01-13  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59433         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59434         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59436
59437 2008-01-13  Bruno Haible  <bruno@clisp.org>
59438
59439         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59440         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59441         * lib/argp.h (__attribute__): Likewise.
59442         * lib/c-stack.c (__attribute__): Likewise.
59443         * lib/error.h (__attribute__): Likewise.
59444         * lib/fts.c (__attribute__): Likewise.
59445         * lib/openat.h (__attribute__): Likewise.
59446         * lib/stdio.in.h (__attribute__): Likewise.
59447         * lib/string.in.h (__attribute__): Likewise.
59448         * lib/utimens.c (__attribute__): Likewise.
59449         * lib/vasnprintf.h (__attribute__): Likewise.
59450         * lib/xalloc.h (__attribute__): Likewise.
59451         * lib/xprintf.h (__attribute__): Likewise.
59452         * lib/xstrtol.h (__attribute__): Likewise.
59453         * lib/xvasprintf.h (__attribute__): Likewise.
59454
59455 2008-01-12  Bruno Haible  <bruno@clisp.org>
59456
59457         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59458         * doc/glibc-headers/a.out.texi: New file.
59459         * doc/glibc-headers/aliases.texi: New file.
59460         * doc/glibc-headers/alloca.texi: New file.
59461         * doc/glibc-headers/ar.texi: New file.
59462         * doc/glibc-headers/argp.texi: New file.
59463         * doc/glibc-headers/argz.texi: New file.
59464         * doc/glibc-headers/byteswap.texi: New file.
59465         * doc/glibc-headers/crypt.texi: New file.
59466         * doc/glibc-headers/endian.texi: New file.
59467         * doc/glibc-headers/envz.texi: New file.
59468         * doc/glibc-headers/err.texi: New file.
59469         * doc/glibc-headers/error.texi: New file.
59470         * doc/glibc-headers/execinfo.texi: New file.
59471         * doc/glibc-headers/fpu_control.texi: New file.
59472         * doc/glibc-headers/fstab.texi: New file.
59473         * doc/glibc-headers/fts.texi: New file.
59474         * doc/glibc-headers/getopt.texi: New file.
59475         * doc/glibc-headers/ieee754.texi: New file.
59476         * doc/glibc-headers/ifaddrs.texi: New file.
59477         * doc/glibc-headers/libintl.texi: New file.
59478         * doc/glibc-headers/mcheck.texi: New file.
59479         * doc/glibc-headers/mntent.texi: New file.
59480         * doc/glibc-headers/obstack.texi: New file.
59481         * doc/glibc-headers/paths.texi: New file.
59482         * doc/glibc-headers/printf.texi: New file.
59483         * doc/glibc-headers/pty.texi: New file.
59484         * doc/glibc-headers/resolv.texi: New file.
59485         * doc/glibc-headers/shadow.texi: New file.
59486         * doc/glibc-headers/sysexits.texi: New file.
59487         * doc/glibc-headers/ttyent.texi: New file.
59488
59489 2008-01-12  Jim Meyering  <meyering@redhat.com>
59490
59491         announce-gen: emit Gnulib's git-based version string.
59492         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59493         New option --gnulib-version=V, where V is expected to be
59494         the output of running git describe in the gnulib directory.
59495         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59496         not useful, and plan to stop publishing an xdelta file with each
59497         coreutils release.
59498
59499         * build-aux/announce-gen: Also check for lzma-compressed files.
59500
59501 2008-01-11  Bruno Haible  <bruno@clisp.org>
59502
59503         * tests/test-memmem.c (main): Increase maximum allowed time.
59504         * tests/test-strstr.c (main): Likewise.
59505
59506 2008-01-11  Bruno Haible  <bruno@clisp.org>
59507
59508         * doc/functions/memmem.texi: Add more precisions about platforms.
59509         * doc/functions/strstr.texi: Likewise.
59510
59511 2008-01-10  Eric Blake  <ebb9@byu.net>
59512
59513         * m4/strstr.m4: Delete cruft from copy-n-paste.
59514         Reported by Bruno Haible.
59515
59516 2008-01-10  Bruno Haible  <bruno@clisp.org>
59517
59518         Make c-strstr rely on strstr.
59519         * lib/c-strstr.c: Don't include str-kmp.h.
59520         (c_strstr): Define in terms of strstr.
59521         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59522         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59523
59524 2008-01-10  Bruno Haible  <bruno@clisp.org>
59525
59526         * doc/gnulib.texi (String Functions in C Locale): New section.
59527         * doc/c-ctype.texi: New file.
59528         * doc/c-strcase.texi: New file.
59529         * doc/c-strcaseeq.texi: New file.
59530         * doc/c-strcasestr.texi: New file.
59531         * doc/c-strstr.texi: New file.
59532         * doc/c-strtod.texi: New file.
59533         * doc/c-strtold.texi: New file.
59534
59535 2008-01-10  Eric Blake  <ebb9@byu.net>
59536
59537         * lib/relocatable.h: Fix a comment.
59538
59539 2008-01-10  Eric Blake  <ebb9@byu.net>
59540
59541         Share two-way algorithm.
59542         * lib/str-two-way.h: New file, merged from...
59543         * lib/memmem.c: ...here...
59544         * lib/strstr.c: ...and here.
59545         * modules/memmem (Files): Use it.
59546         * modules/strstr (Files): Likewise.
59547
59548         Avoid quadratic strstr implementations.
59549         * lib/strstr.c: New file.
59550         * m4/strstr.m4: Likewise.
59551         * modules/strstr: Likewise.
59552         * modules/strstr-tests: Likewise.
59553         * tests/test-strstr.c: Likewise.
59554         * lib/string.in.h (rpl_strstr): Declare.
59555         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59557         * modules/string (Makefile.am): Likewise.
59558         * MODULES.html.sh (string handling): Mention new module.
59559         * doc/functions/strstr.texi (strstr): Document the bug.
59560
59561 2008-01-10  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/relocatable.h (relocate): State whether result is freshly
59564         allocated or not.
59565         * lib/relocatable.c (relocate): Return a freshly allocated string
59566         instead of a pointer to a privately held string.
59567         Reported by Sylvain Beucler <beuc@gnu.org>.
59568
59569 2008-01-10  Colin Watson  <cjwatson@debian.org>
59570
59571         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59572         s/S_ISNLK/S_ISLNK/.
59573
59574 2008-01-09  Bruno Haible  <bruno@clisp.org>
59575
59576         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59577         and other files.
59578         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59579         if it's only a guess.
59580         * modules/memmem: Simplify by depending on memmem-simple.
59581
59582 2008-01-09  Bruno Haible  <bruno@clisp.org>
59583
59584         Work around OpenBSD 4.0 tdelete() bug.
59585         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59586         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59587         macros and don't redefine the enum values.
59588         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59589         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59590         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59591
59592 2008-01-09  Bruno Haible  <bruno@clisp.org>
59593
59594         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59595         (main): Don't perform the tests if setlocale did not install a UTF-8
59596         locale. Needed on OpenBSD 4.0.
59597         * modules/wcwidth-tests (Depends-on): Add localcharset.
59598
59599 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59600
59601         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59602         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59603         * NEWS: announce this.
59604         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59605
59606 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59607         and Eric Blake  <ebb9@byu.net>
59608
59609         Add memmem-simple module.
59610         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59611         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59612         * modules/memmem-simple: New file.
59613         * modules/memmem (Description): Tweak.
59614         * MODULES.html.sh (string handling): Mention new module.
59615         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59616         addressed by memmem-simple.
59617         * NEWS: Document the difference.
59618
59619 2008-01-09  Eric Blake  <ebb9@byu.net>
59620
59621         Give gcc some memmem optimization hints.
59622         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59623         (strcasestr): Declare as pure.
59624         * modules/memmem (Maintainer): Claim my implementation.
59625
59626 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59627
59628         Support AIX 6.1 and higher.
59629         * build-aux/config.libpath: Likewise.
59630         * build-aux/config.rpath: Likewise.
59631
59632 2008-01-08  Jim Meyering  <meyering@redhat.com>
59633             Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59636         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59637         Reported by Peter Fales in
59638         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59639
59640 2008-01-08  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/unictype/category-of (Depends-on): Add
59643         unictype/category-none.
59644         * modules/unictype/category-and-tests (Depends-on): Add
59645         unictype/category-{L,N,Lu,Nd}.
59646         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59647         * modules/unictype/category-or-tests (Depends-on): Add
59648         unictype/category-{L,N}.
59649         * modules/unictype/category-name-tests (Depends-on): Add
59650         unictype/category-{Z,Nl}.
59651         Reported by Simon Josefsson.
59652
59653 2008-01-08  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59656         convention better.
59657         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59658         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59659         Reported by Peter Miller <millerp@canb.auug.org.au>.
59660
59661 2008-01-08  Eric Blake  <ebb9@byu.net>
59662
59663         Rewrite memmem to guarantee linear complexity without malloc.
59664         * lib/memmem.c (memmem): Use Two-Way rather than
59665         Knuth-Morris-Pratt, to allow O(1) space usage.
59666         (critical_factorization, two_way_short_needle)
59667         (two_way_long_needle): New functions.
59668         (knuth_morris_pratt): Delete.
59669         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59670         Add stdint.
59671         * tests/test-memmem.c (main): Add tests for periodic needle and
59672         sublinear performance.
59673         * doc/functions/memmem.texi (memmem): Document other deficiencies
59674         in cygwin and older glibc.
59675
59676 2008-01-08  Bruno Haible  <bruno@clisp.org>
59677
59678         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59679         augmentation.
59680
59681 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59682
59683         Add a configure time option: --disable-acl.
59684         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59685         AC_ARG_ENABLE(acl).
59686
59687 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59688
59689         * tests/test-localename.c: Don't include obsolete "setenv.h".
59690
59691         * modules/localename-tests (Depends-on): Need unsetenv.
59692
59693 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59694
59695         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59696
59697 2008-01-06  Colin Watson  <cjwatson@debian.org>
59698
59699         * users.txt: Add man-db.
59700
59701 2008-01-07  Bruno Haible  <bruno@clisp.org>
59702
59703         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59704         previous section name.
59705
59706 2008-01-07  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/progname.c (set_program_name): Don't strip off a leading
59709         "lt-" prefix outside a .libs directory.
59710         Suggested by Paul Eggert.
59711
59712 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59713             Bruno Haible  <bruno@clisp.org>
59714
59715         Improve memory cleanup in 'relocatable' module.
59716         * lib/relocatable.h (compute_curr_prefix): Change return type to
59717         'char *'.
59718         * lib/relocatable.c (compute_curr_prefix): Change return type to
59719         'char *'. Free curr_installdir after use.
59720         (relocate): Free curr_prefix_better after use.
59721         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59722
59723 2008-01-01  Bruno Haible  <bruno@clisp.org>
59724
59725         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59726         failure on older glibc systems.
59727         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59728
59729 2008-01-05  Eric Blake  <ebb9@byu.net>
59730
59731         Avoid quadratic system memmem.
59732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59733         Reported by Ralf Wildenhues.
59734
59735         Fix memmem test for mingw.
59736         * modules/memmem-tests (configure.ac): Check for alarm.
59737         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59738         it.
59739         * doc/functions/memmem.texi: New file.
59740         * doc/gnulib.texi (Function Substitutes): Add memmem.
59741         Reported by Bruno Haible.
59742
59743 2008-01-04  Bruno Haible  <bruno@clisp.org>
59744
59745         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59746         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59747         gl_HEADER_STRING_H_DEFAULTS.
59748
59749 2008-01-04  Eric Blake  <ebb9@byu.net>
59750
59751         Shorten duration of memmem test.
59752         * tests/test-memmem.c (main): Use alarm to declare failure if test
59753         is taking too long.
59754         Reported by Ralf Wildenhues.
59755
59756 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59757
59758         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59759         string, needed by strerror.
59760
59761 2008-01-03  Colin Watson  <cjwatson@debian.org>
59762             Bruno Haible  <bruno@clisp.org>
59763
59764         * doc/gnulib-tool.texi (Localization): New section.
59765
59766 2008-01-02  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59769         variables to 'unsigned char *' type.
59770         Reported by Paul Eggert.
59771
59772 2008-01-02  Jim Meyering  <jim@meyering.net>
59773
59774         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59775
59776 2007-12-31  Jim Meyering  <jim@meyering.net>
59777
59778         Avoid use of private FTS type name.
59779         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59780
59781 2007-12-30  Karl Berry  <karl@gnu.org>
59782
59783         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59784         work around defect in Texinfo and/or the standalone Info browser.
59785
59786 2007-12-30  Bruno Haible  <bruno@clisp.org>
59787
59788         Unify 5 copies of the KMP code.
59789         * lib/str-kmp.h: New file.
59790         * lib/c-strcasestr.c: Include str-kmp.h.
59791         (knuth_morris_pratt): Remove function.
59792         (c_strcasestr): Update.
59793         * lib/c-strstr.c: Include str-kmp.h.
59794         (knuth_morris_pratt): Remove function.
59795         (c_strcasestr): Update.
59796         * lib/mbscasestr.c: Include str-kmp.h.
59797         (knuth_morris_pratt_unibyte): Remove function.
59798         * lib/mbsstr.c: Include str-kmp.h.
59799         (knuth_morris_pratt_unibyte): Remove function.
59800         * lib/strcasestr.c: Include str-kmp.h.
59801         (knuth_morris_pratt): Remove function.
59802         (strcasestr): Update.
59803         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59804         * modules/c-strstr (Files): Likewise.
59805         * modules/mbscasestr (Files): Likewise.
59806         * modules/mbsstr (Files): Likewise.
59807         * modules/strcasestr (Files): Likewise.
59808         Suggested by Paul Eggert.
59809
59810 2007-12-30  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59813         defined.
59814
59815 2007-12-30  Bruno Haible  <bruno@clisp.org>
59816
59817         * lib/xmalloca.h: Include xalloc.h.
59818         (xnmalloca): New macro.
59819
59820 2007-12-30  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/malloca.h (nmalloca): New macro.
59823         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59824         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59825         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59826         knuth_morris_pratt_multibyte): Likewise.
59827         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59828         knuth_morris_pratt_multibyte): Likewise.
59829         * lib/memmem.c (knuth_morris_pratt): Likewise.
59830         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59831
59832 2007-12-25  Bruno Haible  <bruno@clisp.org>
59833
59834         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59835         * lib/glob.c: Don't include openat.h.
59836         (link_exists2_p): Add back the code that deals with the
59837         !GLOB_ALTDIRFUNC case.
59838         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59839         let it do the filename concatenation.
59840         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59841         * modules/glob (Depends-on): Remove openat.
59842
59843 2007-12-31  Bruno Haible  <bruno@clisp.org>
59844
59845         * modules/dirfd (License): Change to LGPLv2+.
59846         Approved by Jim Meyering.
59847
59848 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59849
59850         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59851         when multiplying M by sizeof (size_t).
59852
59853 2007-12-10  Martin Lambers  <marlam@marlam.de>
59854
59855         Override getpagesize on mingw.
59856         * lib/getpagesize.c: New file.
59857         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59858         * modules/getpagesize (Files): Add lib/getpagesize.c.
59859         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59861         REPLACE_GETPAGESIZE.
59862         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59863
59864 2007-12-25  Bruno Haible  <bruno@clisp.org>
59865
59866         * modules/localcharset (Notice): New field.
59867         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59868         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59869
59870 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59871             Bruno Haible  <bruno@clisp.org>
59872
59873         Avoid using the syntax symbol() in formatted documentation.
59874         * MODULES.html.sh (func_module): When replacing symbol() with a
59875         hyperlink, remove the parentheses. Show an error if some remain.
59876         Recognize and render the '...' syntax.
59877         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59878         Rework. Add paragraph about GCC's inlining.
59879         * doc/alloca.texi: Likewise.
59880         * doc/error.texi: Remove parentheses from symbol reference.
59881         * doc/gnulib-intro.texi: Likewise.
59882         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59883         * modules/fnmatch (Description): Reword to say "the ... function".
59884         * modules/full-read (Description): Likewise.
59885         * modules/full-write (Description): Likewise.
59886         * modules/safe-read (Description): Likewise.
59887         * modules/safe-write (Description): Likewise.
59888         * modules/strchrnul (Description): Likewise.
59889         * modules/trim (Description): Likewise.
59890         * modules/error (Description): Remove parentheses from symbol
59891         references.
59892         * modules/verror (Description): Likewise.
59893         Reported by Karl Berry.
59894
59895 2007-12-25  Bruno Haible  <bruno@clisp.org>
59896
59897         Fixup after 2007-10-16 commit.
59898         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59899
59900 2007-12-24  Bruno Haible  <bruno@clisp.org>
59901
59902         Make --enable-relocatable work with DESTDIR.
59903         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59904         to compute installdir from destprog.
59905         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59906         also set the RELOC_DESTDIR variable.
59907         Reported by Левашев Иван <octagram@bluebottle.com>.
59908
59909 2007-12-24  Bruno Haible  <bruno@clisp.org>
59910
59911         Fix link error due to xalloc_die().
59912         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59913         of xreadlink.
59914         * lib/relocwrapper.c: Update comments.
59915         * build-aux/install-reloc: Remove xreadlink.c from file list.
59916         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59917         xreadlink.c.
59918         Reported by Левашев Иван <octagram@bluebottle.com>.
59919
59920 2007-12-24  Bruno Haible  <bruno@clisp.org>
59921
59922         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59923         * lib/setenv.h: Remove file.
59924         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59925         lib/setenv.h.
59926         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59927         (Depends-on): Add stdlib.
59928         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59929         gl_FUNC_UNSETENV.
59930         (Include): Replace setenv.h with <stdlib.h>.
59931         * modules/unsetenv: New file.
59932         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59933         * lib/unsetenv.c: Include <stdlib.h> first.
59934         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59935         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59936         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59937         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59938         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59939         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59941         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59942         * doc/functions/unsetenv.texi: Update.
59943         * modules/xsetenv (Depends-on): Add unsetenv.
59944         * modules/getdate (Depends-on): Likewise.
59945         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59946         * lib/xsetenv.c: Don't include setenv.h.
59947         * lib/getdate.y: Likewise.
59948         * lib/relocwrapper.c: Likewise.
59949         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59950         (Depends-on): Add stdlib.
59951         * NEWS: Mention the changes.
59952         Reported by Левашев Иван <octagram@bluebottle.com>.
59953
59954 2007-12-23  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59957         indentation.
59958
59959 2007-12-23  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/c-strcasestr.c: Add more comments.
59962         * lib/c-strstr.c: Likewise.
59963         * lib/mbscasestr.c: Likewise.
59964         * lib/mbsstr.c: Likewise.
59965         * lib/strcasestr.c: Likewise.
59966         * lib/memmem.c: Likewise.
59967
59968 2007-12-23  Bruno Haible  <bruno@clisp.org>
59969
59970         * tests/test-memmem.c: Include <string.h> first.
59971
59972 2007-12-22  Bruno Haible  <bruno@clisp.org>
59973
59974         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59975         the contents of $testsbase.
59976         Reported by Ralf Wildenhues.
59977
59978 2007-12-22  Bruno Haible  <bruno@clisp.org>
59979
59980         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59981         two variables local_ldadd_before, local_ldadd_last.
59982
59983 2007-12-20  Eric Blake  <ebb9@byu.net>
59984
59985         Work around circular library issue when cross-compiling.
59986         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59987         that progname.o does not need to pull in rpl_memcmp.
59988
59989 2007-12-19  Eric Blake  <ebb9@byu.net>
59990
59991         Fix memmem to avoid O(n^2) worst-case complexity.
59992         * lib/memmem.c (knuth_morris_pratt): New function.
59993         (memmem): Use it if first few naive iterations fail.
59994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59995         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59996         * modules/memchr (License): Likewise.
59997         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59998         malloca.
59999         * tests/test-memmem.c: Rewrite, borrowing ideas from
60000         test-mbsstr1.c; the old version wouldn't even compile!
60001         * modules/memmem-tests: New file.
60002         * lib/string.in.h (rpl_memmem): Add declaration.
60003         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60005         REPLACE_MEMMEM.
60006
60007 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60010         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60011         before any system include files, and undef after them all.  This
60012         should fix a problem on VMS reported by John E. Malmberg in
60013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60014
60015 2007-12-17  Eric Blake  <ebb9@byu.net>
60016
60017         Revert addition of verify, for BSD/OS.
60018         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60019         can't handle large files, for the sake of obsolete platforms.
60020         * modules/fseeko (Depends-on): Remove verify.
60021         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60022         * doc/functions/ftello.texi (ftello): Likewise.
60023         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60024         Reported by Larry Jones.
60025
60026 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60027
60028         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60029         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60030
60031 2007-12-17  Jim Meyering  <meyering@redhat.com>
60032
60033         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60034         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60035         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60036         * modules/getcwd (Depends-on): Add openat.
60037         Reported by Petr Salinger.
60038
60039 2007-12-17  Bruno Haible  <bruno@clisp.org>
60040
60041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60042         avoid a segmentation fault of the configure test on x86_64 systems.
60043
60044 2007-12-15  Jim Meyering  <meyering@redhat.com>
60045
60046         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60047
60048 2007-12-13  Eric Blake  <ebb9@byu.net>
60049
60050         Another fseek test.
60051         * tests/test-fseek.c (main): Also test ungetc handling.
60052         * tests/test-fseeko.c (main): Likewise.
60053         * modules/fseeko (Depends-on): Add verify.
60054         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60055         large.
60056         Reported by Larry Jones.
60057
60058         Fix fseeko on mingw.
60059         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60060         seek.
60061
60062         Beef up fseek tests.
60063         * tests/test-fseek.c (main): Also test eof handling.
60064         * tests/test-fseeko.c (main): Likewise.
60065         Reported by Larry Jones.
60066
60067 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60068
60069         Fix fseeko on BSD-based platforms.
60070         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60071         successful seek.
60072
60073 2007-12-12  Eric Blake  <ebb9@byu.net>
60074
60075         Allow circular dependency of separate libtests.a
60076         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60077         when use_libtests.
60078
60079 2007-12-11  Eric Blake  <ebb9@byu.net>
60080
60081         Fix bug with -0.0L in previous patch.
60082         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60083         * tests/test-isnan.c (main): Also test on zeroes.
60084         * tests/test-isnanf.c (main): Likewise.
60085         * tests/test-isnanl.h (main): Likewise.
60086
60087         Detect pseudo-denormals on x86 even when cross-compiling.
60088         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60089         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60090         invalid bit patterns that happen to satisfy ==.
60091
60092         Avoid link failures with separate libtests.a.
60093         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60094         last, to satisfy circular dependencies.
60095
60096 2007-12-11  Eric Blake  <ebb9@byu.net>
60097         and Bruno Haible  <bruno@clisp.org>
60098
60099         Fix OpenBSD 4.0 <float.h> handling of long double.
60100         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60101         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60102         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60103
60104 2007-12-11  Jim Meyering  <meyering@redhat.com>
60105
60106         * users.txt: Add libvirt.
60107
60108         Support versions of autoconf prior to 2.59c.
60109         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60110         if it is not already defined.
60111
60112 2007-12-09  Bruno Haible  <bruno@clisp.org>
60113
60114         Let 'gnulib-tool --import' collect sources needed for the tests in
60115         tests/ rather than in lib/.
60116         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60117         argument. If true, add rules to generate libtests.a, and put libtests.a
60118         into $(LDADD). Consider source files in subdirectories and set
60119         uses_subdirs.
60120         (func_emit_initmacro_start, func_emit_initmacro_end,
60121         func_emit_initmacro_done): Pass all arguments explicitly.
60122         (func_import): Determine two module lists main_modules,
60123         testsrelated_modules. Determine use_libtests. Determine two variables
60124         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60125         instead of just sed_transform_lib_file. Determine two variables
60126         main_files and testsrelated_files. Compute 'files' as the union of
60127         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60128         func_add_or_update. In the generated gnulib-comp.m4, collect the
60129         object files for tests/ in different variables than those for lib/.
60130         Substitute LIBTESTS_LIBDEPS.
60131         (func_create_testdir): Combine the uses_subdirs results from
60132         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60133
60134 2007-12-09  Bruno Haible  <bruno@clisp.org>
60135
60136         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60137         the build-aux directory.
60138
60139 2007-12-09  Bruno Haible  <bruno@clisp.org>
60140
60141         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60142         introduced on 2006-09-09.
60143
60144 2007-12-07  Jim Meyering  <meyering@redhat.com>
60145
60146         Let these macros work also with autoconf-2.59.
60147         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60148         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60149         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60150
60151 2007-12-06  Jim Meyering  <meyering@redhat.com>
60152
60153         Avoid a configure-time syntax error in gl_FUNC_ACL.
60154         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60155         function in each branch, before testing the cache variable.
60156
60157 2007-12-04  Eric Blake  <ebb9@byu.net>
60158
60159         Make scripts executable.
60160         * build-aux/config.guess: Add execute permissions.
60161         * build-aux/config.sub: Likewise.
60162         * build-aux/gendocs.sh: Likewise.
60163
60164         Fix frexp on mingw.
60165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60166         cross-compiling.
60167         * doc/functions/frexp.texi (frexp): Document the bug.
60168
60169         Make cygwin fseeko check more reliable.
60170         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60171         version numbers, rather than unrelated feature check.
60172         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60173         * doc/functions/ftello.texi (ftello): Likewise.
60174         Reported by Bruno Haible.
60175
60176         * m4/strerror.m4: Bump version number.
60177
60178 2007-12-03  Bruno Haible  <bruno@clisp.org>
60179
60180         * doc/functions/mprotect.texi: Mention the mingw problem.
60181
60182 2007-12-03  Eric Blake  <ebb9@byu.net>
60183
60184         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60185         REPLACE_STRERROR is initialized before this macro.
60186
60187 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60190         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60191         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60192         put -lsec in even for programs other than 'ls'.  This fixes a problem
60193         for gettext reported by Bruno Haible in
60194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60195         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60196         Add support for Solaris 10.  This isn't efficient, but should get the
60197         job done for now.
60198
60199 2007-12-03  James Youngman  <jay@gnu.org>
60200
60201         * doc/regexprops-generic.texi: change "an close-group" to "a
60202         close-group" and "illegal" to "not allowed".
60203
60204 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60205
60206         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60207         pr_byname.h. Needed for the rare case when the maintainer has done
60208         "make maintainer-clean" in the source directory and then attempts a
60209         build outside the source directory.
60210         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60211         scripts_byname.h.
60212
60213 2007-12-02  Martin Lambers <marlam@marlam.de>
60214             Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/getpagesize.h: Remove file.
60217         * lib/unistd.in.h: Include declaration of getpagesize here.
60218         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60219         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60220         HAVE_SYS_PARAM_H.
60221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60222         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60223         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60224         (Depends-on): Add unistd.
60225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60226         (Include): Use <unistd.h> instead of getpagesize.h.
60227         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60228         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60229         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60230         gl_GETPAGESIZE invocation, already handled by module dependency.
60231         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60232
60233 2007-12-02  Bruno Haible  <bruno@clisp.org>
60234
60235         * modules/strings-tests: New file.
60236         * tests/test-strings.c: New file.
60237
60238         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60239         * lib/strings.in.h: New file.
60240         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60241         * m4/strings_h.m4: New file.
60242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60243         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60244         * modules/strings: New file.
60245         * modules/string (Makefile.am): Update.
60246         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60247         Reported by Karl Berry.
60248
60249 2007-12-01  Eric Blake  <ebb9@byu.net>
60250
60251         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60252         accommodate fix in cygwin 1.5.25.
60253
60254 2007-12-01  Jim Meyering  <meyering@redhat.com>
60255
60256         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60257         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60258         that would inhibit utf8-optimization of a regexp containing line-
60259         or buffer-anchors, e.g., `^', `$'.
60260
60261 2007-11-30  Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60264         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60265         glthread_recursive_lock_init.
60266         * lib/lock.c (glthread_recursive_lock_init)
60267         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60268         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60269
60270 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60271
60272         New function qset_acl, like set_acl but with syscall semantics.
60273         * lib/acl.h (qset_acl): New decl.
60274         * lib/acl.c (qset_acl): New function.
60275         (set_acl): Use new function.  Use more-consistent diagnostics.
60276
60277 2007-11-28  Jim Meyering  <meyering@redhat.com>
60278
60279         * modules/physmem (License): Change from GPL to LGPLv2+.
60280
60281 2007-11-26  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60284         'long double' type has excess precision.
60285         Reported by Jim Meyering in
60286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60287
60288 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60289
60290         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60291         Sync from <http://gnu.org/licenses>.
60292         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60293         with license text from same location.
60294         * doc/maintain.texi, doc/standards.texi:  Sync from
60295         <http://savannah.gnu.org/projects/gnustandards>.
60296
60297 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60298         and Jim Meyering  <meyering@redhat.com>
60299
60300         Adjust getdate' grammar to accept a slightly more regular language.
60301         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60302         Before, the former was rejected.
60303         * lib/getdate.y (digits_to_date_time): New function, factored
60304         out of ...
60305         (number): ...here.  Just call digits_to_date_time.
60306         (hybrid): New non-terminal to handle an <unsigned number,
60307         signed relative offset> sequence consistently.
60308
60309 2007-11-18  Jim Meyering  <meyering@redhat.com>
60310
60311         Pull my changes from coreutils:
60312         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60313         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60314         use of $gnulib_tool_option_extras, so that it's separated from the
60315         preceding argument.
60316
60317         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60318         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60319         parent destination directories before copying a file into place.
60320
60321 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60322
60323         bootstrap: work also with 4-argument variant of AC_INIT
60324         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60325
60326 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         Port test-getaddrinfo to Solaris.
60329         Problem reported by Bruno Haible in
60330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60331         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60332         explanation of setting 'hints'.
60333         Don't reject an implementation merely because it returns EAI_SERVICE.
60334         (EAI_SERVICE): Define to 0 if not defined.
60335
60336 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         The license of gnu-make and posix-shell is now "GPLed build tool".
60339         * modules/gnu-make (License): Likewise.
60340         * modules/posix-shell (License): Likewise.
60341
60342         New module posix-shell, for determining a POSIX shell
60343         or perhaps something that is close enough to a POSIX shell.
60344         * m4/posix-shell.m4: New file.
60345         * modules/posix-shell: New file.
60346
60347         * MODULES.html.sh: Mention new module.
60348
60349         New module gnu-make, for determining whether we're using GNU Make.
60350         * m4/gnu-make.m4: New file.
60351         * modules/gnu-make: New file.
60352         * MODULES.html.sh: Mention new module.
60353
60354 2007-11-14  Jim Meyering  <meyering@redhat.com>
60355
60356         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60357         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60358         use this macro to create a function _definition_.
60359         Remove useless "#undef ARGMATCH_DIE".
60360
60361 2007-11-14  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/config.charset: Update for OpenBSD 4.1.
60364         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60365
60366 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         Document 64-bit #if problems in stdint.texi.
60369         * doc/headers/stdint.texi (stdint.h): Mention problems with
60370         64-bit-#if, and how to work around them.
60371
60372         Don't insist on 'long long int' support in the preprocessor.  It
60373         breaks too many things.  For example, PRIdMAX still uses a 'long
60374         long int' format with the latest Sun compiler, even though
60375         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60376         preprocessor problem.  This causes the latest coreutils to dump
60377         core on Solaris 10 sparc with the Sun C compiler.
60378         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60379         the troublesome expressions at configure-time, not at #if-time.
60380         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60381         preprocessor.
60382         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60383         compile-time C checks, done at 'configure'-time.
60384         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60385         * modules/inttypes (Makefile): Substitute the new symbols that
60386         gl_INTTYPES_H now generates.
60387         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60388
60389 2007-11-12  Bruno Haible  <bruno@clisp.org>
60390
60391         Tests for Unicode character classification functions.
60392
60393         * modules/unictype/bidicategory-byname-tests: New file.
60394         * modules/unictype/bidicategory-name-tests: New file.
60395         * modules/unictype/bidicategory-of-tests: New file.
60396         * modules/unictype/bidicategory-test-tests: New file.
60397         * modules/unictype/block-list-tests: New file.
60398         * modules/unictype/block-of-tests: New file.
60399         * modules/unictype/block-test-tests: New file.
60400         * modules/unictype/category-C-tests: New file.
60401         * modules/unictype/category-Cc-tests: New file.
60402         * modules/unictype/category-Cf-tests: New file.
60403         * modules/unictype/category-Cn-tests: New file.
60404         * modules/unictype/category-Co-tests: New file.
60405         * modules/unictype/category-Cs-tests: New file.
60406         * modules/unictype/category-L-tests: New file.
60407         * modules/unictype/category-Ll-tests: New file.
60408         * modules/unictype/category-Lm-tests: New file.
60409         * modules/unictype/category-Lo-tests: New file.
60410         * modules/unictype/category-Lt-tests: New file.
60411         * modules/unictype/category-Lu-tests: New file.
60412         * modules/unictype/category-M-tests: New file.
60413         * modules/unictype/category-Mc-tests: New file.
60414         * modules/unictype/category-Me-tests: New file.
60415         * modules/unictype/category-Mn-tests: New file.
60416         * modules/unictype/category-N-tests: New file.
60417         * modules/unictype/category-Nd-tests: New file.
60418         * modules/unictype/category-Nl-tests: New file.
60419         * modules/unictype/category-No-tests: New file.
60420         * modules/unictype/category-P-tests: New file.
60421         * modules/unictype/category-Pc-tests: New file.
60422         * modules/unictype/category-Pd-tests: New file.
60423         * modules/unictype/category-Pe-tests: New file.
60424         * modules/unictype/category-Pf-tests: New file.
60425         * modules/unictype/category-Pi-tests: New file.
60426         * modules/unictype/category-Po-tests: New file.
60427         * modules/unictype/category-Ps-tests: New file.
60428         * modules/unictype/category-S-tests: New file.
60429         * modules/unictype/category-Sc-tests: New file.
60430         * modules/unictype/category-Sk-tests: New file.
60431         * modules/unictype/category-Sm-tests: New file.
60432         * modules/unictype/category-So-tests: New file.
60433         * modules/unictype/category-Z-tests: New file.
60434         * modules/unictype/category-Zl-tests: New file.
60435         * modules/unictype/category-Zp-tests: New file.
60436         * modules/unictype/category-Zs-tests: New file.
60437         * modules/unictype/category-and-not-tests: New file.
60438         * modules/unictype/category-and-tests: New file.
60439         * modules/unictype/category-byname-tests: New file.
60440         * modules/unictype/category-name-tests: New file.
60441         * modules/unictype/category-none-tests: New file.
60442         * modules/unictype/category-of-tests: New file.
60443         * modules/unictype/category-or-tests: New file.
60444         * modules/unictype/category-test-withtable-tests: New file.
60445         * modules/unictype/combining-class-tests: New file.
60446         * modules/unictype/ctype-alnum-tests: New file.
60447         * modules/unictype/ctype-alpha-tests: New file.
60448         * modules/unictype/ctype-blank-tests: New file.
60449         * modules/unictype/ctype-cntrl-tests: New file.
60450         * modules/unictype/ctype-digit-tests: New file.
60451         * modules/unictype/ctype-graph-tests: New file.
60452         * modules/unictype/ctype-lower-tests: New file.
60453         * modules/unictype/ctype-print-tests: New file.
60454         * modules/unictype/ctype-punct-tests: New file.
60455         * modules/unictype/ctype-space-tests: New file.
60456         * modules/unictype/ctype-upper-tests: New file.
60457         * modules/unictype/ctype-xdigit-tests: New file.
60458         * modules/unictype/decimal-digit-tests: New file.
60459         * modules/unictype/digit-tests: New file.
60460         * modules/unictype/mirror-tests: New file.
60461         * modules/unictype/numeric-tests: New file.
60462         * modules/unictype/property-alphabetic-tests: New file.
60463         * modules/unictype/property-ascii-hex-digit-tests: New file.
60464         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60465         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60466         * modules/unictype/property-bidi-block-separator-tests: New file.
60467         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60468         * modules/unictype/property-bidi-common-separator-tests: New file.
60469         * modules/unictype/property-bidi-control-tests: New file.
60470         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60471         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60472         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60473         * modules/unictype/property-bidi-european-digit-tests: New file.
60474         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60475         * modules/unictype/property-bidi-left-to-right-tests: New file.
60476         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60477         * modules/unictype/property-bidi-other-neutral-tests: New file.
60478         * modules/unictype/property-bidi-pdf-tests: New file.
60479         * modules/unictype/property-bidi-segment-separator-tests: New file.
60480         * modules/unictype/property-bidi-whitespace-tests: New file.
60481         * modules/unictype/property-byname-tests: New file.
60482         * modules/unictype/property-combining-tests: New file.
60483         * modules/unictype/property-composite-tests: New file.
60484         * modules/unictype/property-currency-symbol-tests: New file.
60485         * modules/unictype/property-dash-tests: New file.
60486         * modules/unictype/property-decimal-digit-tests: New file.
60487         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60488         * modules/unictype/property-deprecated-tests: New file.
60489         * modules/unictype/property-diacritic-tests: New file.
60490         * modules/unictype/property-extender-tests: New file.
60491         * modules/unictype/property-format-control-tests: New file.
60492         * modules/unictype/property-grapheme-base-tests: New file.
60493         * modules/unictype/property-grapheme-extend-tests: New file.
60494         * modules/unictype/property-grapheme-link-tests: New file.
60495         * modules/unictype/property-hex-digit-tests: New file.
60496         * modules/unictype/property-hyphen-tests: New file.
60497         * modules/unictype/property-id-continue-tests: New file.
60498         * modules/unictype/property-id-start-tests: New file.
60499         * modules/unictype/property-ideographic-tests: New file.
60500         * modules/unictype/property-ids-binary-operator-tests: New file.
60501         * modules/unictype/property-ids-trinary-operator-tests: New file.
60502         * modules/unictype/property-ignorable-control-tests: New file.
60503         * modules/unictype/property-iso-control-tests: New file.
60504         * modules/unictype/property-join-control-tests: New file.
60505         * modules/unictype/property-left-of-pair-tests: New file.
60506         * modules/unictype/property-line-separator-tests: New file.
60507         * modules/unictype/property-logical-order-exception-tests: New file.
60508         * modules/unictype/property-lowercase-tests: New file.
60509         * modules/unictype/property-math-tests: New file.
60510         * modules/unictype/property-non-break-tests: New file.
60511         * modules/unictype/property-not-a-character-tests: New file.
60512         * modules/unictype/property-numeric-tests: New file.
60513         * modules/unictype/property-other-alphabetic-tests: New file.
60514         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60515         * modules/unictype/property-other-grapheme-extend-tests: New file.
60516         * modules/unictype/property-other-id-continue-tests: New file.
60517         * modules/unictype/property-other-id-start-tests: New file.
60518         * modules/unictype/property-other-lowercase-tests: New file.
60519         * modules/unictype/property-other-math-tests: New file.
60520         * modules/unictype/property-other-uppercase-tests: New file.
60521         * modules/unictype/property-paired-punctuation-tests: New file.
60522         * modules/unictype/property-paragraph-separator-tests: New file.
60523         * modules/unictype/property-pattern-syntax-tests: New file.
60524         * modules/unictype/property-pattern-white-space-tests: New file.
60525         * modules/unictype/property-private-use-tests: New file.
60526         * modules/unictype/property-punctuation-tests: New file.
60527         * modules/unictype/property-quotation-mark-tests: New file.
60528         * modules/unictype/property-radical-tests: New file.
60529         * modules/unictype/property-sentence-terminal-tests: New file.
60530         * modules/unictype/property-soft-dotted-tests: New file.
60531         * modules/unictype/property-space-tests: New file.
60532         * modules/unictype/property-terminal-punctuation-tests: New file.
60533         * modules/unictype/property-test-tests: New file.
60534         * modules/unictype/property-titlecase-tests: New file.
60535         * modules/unictype/property-unassigned-code-value-tests: New file.
60536         * modules/unictype/property-unified-ideograph-tests: New file.
60537         * modules/unictype/property-uppercase-tests: New file.
60538         * modules/unictype/property-variation-selector-tests: New file.
60539         * modules/unictype/property-white-space-tests: New file.
60540         * modules/unictype/property-xid-continue-tests: New file.
60541         * modules/unictype/property-xid-start-tests: New file.
60542         * modules/unictype/property-zero-width-tests: New file.
60543         * modules/unictype/scripts-tests: New file.
60544         * modules/unictype/syntax-c-ident-tests: New file.
60545         * modules/unictype/syntax-c-whitespace-tests: New file.
60546         * modules/unictype/syntax-java-ident-tests: New file.
60547         * modules/unictype/syntax-java-whitespace-tests: New file.
60548         * tests/unictype/test-bidi_byname.c: New file.
60549         * tests/unictype/test-bidi_name.c: New file.
60550         * tests/unictype/test-bidi_of.c: New file.
60551         * tests/unictype/test-bidi_test.c: New file.
60552         * tests/unictype/test-block_list.c: New file.
60553         * tests/unictype/test-block_of.c: New file.
60554         * tests/unictype/test-block_test.c: New file.
60555         * tests/unictype/test-categ_and.c: New file.
60556         * tests/unictype/test-categ_and_not.c: New file.
60557         * tests/unictype/test-categ_byname.c: New file.
60558         * tests/unictype/test-categ_name.c: New file.
60559         * tests/unictype/test-categ_none.c: New file.
60560         * tests/unictype/test-categ_of.c: New file.
60561         * tests/unictype/test-categ_or.c: New file.
60562         * tests/unictype/test-categ_test_withtable.c: New file.
60563         * tests/unictype/test-combining.c: New file.
60564         * tests/unictype/test-decdigit.c: New file.
60565         * tests/unictype/test-digit.c: New file.
60566         * tests/unictype/test-mirror.c: New file.
60567         * tests/unictype/test-numeric.c: New file.
60568         * tests/unictype/test-pr_byname.c: New file.
60569         * tests/unictype/test-pr_test.c: New file.
60570         * tests/unictype/test-predicate-part1.h: New file.
60571         * tests/unictype/test-predicate-part2.h: New file.
60572         * tests/unictype/test-scripts.c: New file.
60573         * tests/unictype/test-sy_c_ident.c: New file.
60574         * tests/unictype/test-sy_java_ident.c: New file.
60575
60576         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60577         for Unicode 5.0.0.
60578         * tests/unictype/test-categ_Cc.c: Likewise.
60579         * tests/unictype/test-categ_Cf.c: Likewise.
60580         * tests/unictype/test-categ_Cn.c: Likewise.
60581         * tests/unictype/test-categ_Co.c: Likewise.
60582         * tests/unictype/test-categ_Cs.c: Likewise.
60583         * tests/unictype/test-categ_L.c: Likewise.
60584         * tests/unictype/test-categ_Ll.c: Likewise.
60585         * tests/unictype/test-categ_Lm.c: Likewise.
60586         * tests/unictype/test-categ_Lo.c: Likewise.
60587         * tests/unictype/test-categ_Lt.c: Likewise.
60588         * tests/unictype/test-categ_Lu.c: Likewise.
60589         * tests/unictype/test-categ_M.c: Likewise.
60590         * tests/unictype/test-categ_Mc.c: Likewise.
60591         * tests/unictype/test-categ_Me.c: Likewise.
60592         * tests/unictype/test-categ_Mn.c: Likewise.
60593         * tests/unictype/test-categ_N.c: Likewise.
60594         * tests/unictype/test-categ_Nd.c: Likewise.
60595         * tests/unictype/test-categ_Nl.c: Likewise.
60596         * tests/unictype/test-categ_No.c: Likewise.
60597         * tests/unictype/test-categ_P.c: Likewise.
60598         * tests/unictype/test-categ_Pc.c: Likewise.
60599         * tests/unictype/test-categ_Pd.c: Likewise.
60600         * tests/unictype/test-categ_Pe.c: Likewise.
60601         * tests/unictype/test-categ_Pf.c: Likewise.
60602         * tests/unictype/test-categ_Pi.c: Likewise.
60603         * tests/unictype/test-categ_Po.c: Likewise.
60604         * tests/unictype/test-categ_Ps.c: Likewise.
60605         * tests/unictype/test-categ_S.c: Likewise.
60606         * tests/unictype/test-categ_Sc.c: Likewise.
60607         * tests/unictype/test-categ_Sk.c: Likewise.
60608         * tests/unictype/test-categ_Sm.c: Likewise.
60609         * tests/unictype/test-categ_So.c: Likewise.
60610         * tests/unictype/test-categ_Z.c: Likewise.
60611         * tests/unictype/test-categ_Zl.c: Likewise.
60612         * tests/unictype/test-categ_Zp.c: Likewise.
60613         * tests/unictype/test-categ_Zs.c: Likewise.
60614         * tests/unictype/test-ctype_alnum.c: Likewise.
60615         * tests/unictype/test-ctype_alpha.c: Likewise.
60616         * tests/unictype/test-ctype_blank.c: Likewise.
60617         * tests/unictype/test-ctype_cntrl.c: Likewise.
60618         * tests/unictype/test-ctype_digit.c: Likewise.
60619         * tests/unictype/test-ctype_graph.c: Likewise.
60620         * tests/unictype/test-ctype_lower.c: Likewise.
60621         * tests/unictype/test-ctype_print.c: Likewise.
60622         * tests/unictype/test-ctype_punct.c: Likewise.
60623         * tests/unictype/test-ctype_space.c: Likewise.
60624         * tests/unictype/test-ctype_upper.c: Likewise.
60625         * tests/unictype/test-ctype_xdigit.c: Likewise.
60626         * tests/unictype/test-decdigit.h: Likewise.
60627         * tests/unictype/test-digit.h: Likewise.
60628         * tests/unictype/test-numeric.h: Likewise.
60629         * tests/unictype/test-pr_alphabetic.c: Likewise.
60630         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60631         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60632         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60633         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60634         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60635         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60636         * tests/unictype/test-pr_bidi_control.c: Likewise.
60637         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60638         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60639         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60640         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60641         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60642         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60643         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60644         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60645         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60646         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60647         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60648         * tests/unictype/test-pr_combining.c: Likewise.
60649         * tests/unictype/test-pr_composite.c: Likewise.
60650         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60651         * tests/unictype/test-pr_dash.c: Likewise.
60652         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60653         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60654         * tests/unictype/test-pr_deprecated.c: Likewise.
60655         * tests/unictype/test-pr_diacritic.c: Likewise.
60656         * tests/unictype/test-pr_extender.c: Likewise.
60657         * tests/unictype/test-pr_format_control.c: Likewise.
60658         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60659         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60660         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60661         * tests/unictype/test-pr_hex_digit.c: Likewise.
60662         * tests/unictype/test-pr_hyphen.c: Likewise.
60663         * tests/unictype/test-pr_id_continue.c: Likewise.
60664         * tests/unictype/test-pr_id_start.c: Likewise.
60665         * tests/unictype/test-pr_ideographic.c: Likewise.
60666         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60667         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60668         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60669         * tests/unictype/test-pr_iso_control.c: Likewise.
60670         * tests/unictype/test-pr_join_control.c: Likewise.
60671         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60672         * tests/unictype/test-pr_line_separator.c: Likewise.
60673         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60674         * tests/unictype/test-pr_lowercase.c: Likewise.
60675         * tests/unictype/test-pr_math.c: Likewise.
60676         * tests/unictype/test-pr_non_break.c: Likewise.
60677         * tests/unictype/test-pr_not_a_character.c: Likewise.
60678         * tests/unictype/test-pr_numeric.c: Likewise.
60679         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60680         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60681         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60682         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60683         * tests/unictype/test-pr_other_id_start.c: Likewise.
60684         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60685         * tests/unictype/test-pr_other_math.c: Likewise.
60686         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60687         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60688         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60689         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60690         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60691         * tests/unictype/test-pr_private_use.c: Likewise.
60692         * tests/unictype/test-pr_punctuation.c: Likewise.
60693         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60694         * tests/unictype/test-pr_radical.c: Likewise.
60695         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60696         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60697         * tests/unictype/test-pr_space.c: Likewise.
60698         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60699         * tests/unictype/test-pr_titlecase.c: Likewise.
60700         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60701         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60702         * tests/unictype/test-pr_uppercase.c: Likewise.
60703         * tests/unictype/test-pr_variation_selector.c: Likewise.
60704         * tests/unictype/test-pr_white_space.c: Likewise.
60705         * tests/unictype/test-pr_xid_continue.c: Likewise.
60706         * tests/unictype/test-pr_xid_start.c: Likewise.
60707         * tests/unictype/test-pr_zero_width.c: Likewise.
60708         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60709         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60710
60711 2007-11-12  Bruno Haible  <bruno@clisp.org>
60712
60713         Unicode character classification functions.
60714         * lib/unictype.h: New file.
60715         * modules/unictype/base: New file.
60716         * modules/unictype/category-L: New file.
60717         * modules/unictype/category-Lu: New file.
60718         * modules/unictype/category-Ll: New file.
60719         * modules/unictype/category-Lt: New file.
60720         * modules/unictype/category-Lm: New file.
60721         * modules/unictype/category-Lo: New file.
60722         * modules/unictype/category-M: New file.
60723         * modules/unictype/category-Mn: New file.
60724         * modules/unictype/category-Mc: New file.
60725         * modules/unictype/category-Me: New file.
60726         * modules/unictype/category-N: New file.
60727         * modules/unictype/category-Nd: New file.
60728         * modules/unictype/category-Nl: New file.
60729         * modules/unictype/category-No: New file.
60730         * modules/unictype/category-P: New file.
60731         * modules/unictype/category-Pc: New file.
60732         * modules/unictype/category-Pd: New file.
60733         * modules/unictype/category-Ps: New file.
60734         * modules/unictype/category-Pe: New file.
60735         * modules/unictype/category-Pi: New file.
60736         * modules/unictype/category-Pf: New file.
60737         * modules/unictype/category-Po: New file.
60738         * modules/unictype/category-S: New file.
60739         * modules/unictype/category-Sm: New file.
60740         * modules/unictype/category-Sc: New file.
60741         * modules/unictype/category-Sk: New file.
60742         * modules/unictype/category-So: New file.
60743         * modules/unictype/category-Z: New file.
60744         * modules/unictype/category-Zs: New file.
60745         * modules/unictype/category-Zl: New file.
60746         * modules/unictype/category-Zp: New file.
60747         * modules/unictype/category-C: New file.
60748         * modules/unictype/category-Cc: New file.
60749         * modules/unictype/category-Cf: New file.
60750         * modules/unictype/category-Cs: New file.
60751         * modules/unictype/category-Co: New file.
60752         * modules/unictype/category-Cn: New file.
60753         * modules/unictype/category-or: New file.
60754         * modules/unictype/category-of: New file.
60755         * modules/unictype/category-test: New file.
60756         * modules/unictype/category-test-withtable: New file.
60757         * modules/unictype/category-byname: New file.
60758         * modules/unictype/category-none: New file.
60759         * modules/unictype/category-and: New file.
60760         * modules/unictype/category-and-not: New file.
60761         * modules/unictype/category-name: New file.
60762         * modules/unictype/combining-class: New file.
60763         * modules/unictype/category-all: New file.
60764         * modules/unictype/bidicategory-all: New file.
60765         * modules/unictype/bidicategory-byname: New file.
60766         * modules/unictype/bidicategory-name: New file.
60767         * modules/unictype/bidicategory-of: New file.
60768         * modules/unictype/bidicategory-test: New file.
60769         * modules/unictype/decimal-digit: New file.
60770         * modules/unictype/digit: New file.
60771         * modules/unictype/numeric: New file.
60772         * modules/unictype/mirror: New file.
60773         * modules/unictype/property-white-space: New file.
60774         * modules/unictype/property-alphabetic: New file.
60775         * modules/unictype/property-other-alphabetic: New file.
60776         * modules/unictype/property-not-a-character: New file.
60777         * modules/unictype/property-default-ignorable-code-point: New file.
60778         * modules/unictype/property-other-default-ignorable-code-point: New
60779         file.
60780         * modules/unictype/property-deprecated: New file.
60781         * modules/unictype/property-logical-order-exception: New file.
60782         * modules/unictype/property-variation-selector: New file.
60783         * modules/unictype/property-private-use: New file.
60784         * modules/unictype/property-unassigned-code-value: New file.
60785         * modules/unictype/property-uppercase: New file.
60786         * modules/unictype/property-other-uppercase: New file.
60787         * modules/unictype/property-lowercase: New file.
60788         * modules/unictype/property-other-lowercase: New file.
60789         * modules/unictype/property-titlecase: New file.
60790         * modules/unictype/property-soft-dotted: New file.
60791         * modules/unictype/property-id-start: New file.
60792         * modules/unictype/property-other-id-start: New file.
60793         * modules/unictype/property-id-continue: New file.
60794         * modules/unictype/property-other-id-continue: New file.
60795         * modules/unictype/property-xid-start: New file.
60796         * modules/unictype/property-xid-continue: New file.
60797         * modules/unictype/property-pattern-white-space: New file.
60798         * modules/unictype/property-pattern-syntax: New file.
60799         * modules/unictype/property-join-control: New file.
60800         * modules/unictype/property-grapheme-base: New file.
60801         * modules/unictype/property-grapheme-extend: New file.
60802         * modules/unictype/property-other-grapheme-extend: New file.
60803         * modules/unictype/property-grapheme-link: New file.
60804         * modules/unictype/property-bidi-control: New file.
60805         * modules/unictype/property-bidi-left-to-right: New file.
60806         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60807         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60808         * modules/unictype/property-bidi-european-digit: New file.
60809         * modules/unictype/property-bidi-eur-num-separator: New file.
60810         * modules/unictype/property-bidi-eur-num-terminator: New file.
60811         * modules/unictype/property-bidi-arabic-digit: New file.
60812         * modules/unictype/property-bidi-common-separator: New file.
60813         * modules/unictype/property-bidi-block-separator: New file.
60814         * modules/unictype/property-bidi-segment-separator: New file.
60815         * modules/unictype/property-bidi-whitespace: New file.
60816         * modules/unictype/property-bidi-non-spacing-mark: New file.
60817         * modules/unictype/property-bidi-boundary-neutral: New file.
60818         * modules/unictype/property-bidi-pdf: New file.
60819         * modules/unictype/property-bidi-embedding-or-override: New file.
60820         * modules/unictype/property-bidi-other-neutral: New file.
60821         * modules/unictype/property-hex-digit: New file.
60822         * modules/unictype/property-ascii-hex-digit: New file.
60823         * modules/unictype/property-ideographic: New file.
60824         * modules/unictype/property-unified-ideograph: New file.
60825         * modules/unictype/property-radical: New file.
60826         * modules/unictype/property-ids-binary-operator: New file.
60827         * modules/unictype/property-ids-trinary-operator: New file.
60828         * modules/unictype/property-zero-width: New file.
60829         * modules/unictype/property-space: New file.
60830         * modules/unictype/property-non-break: New file.
60831         * modules/unictype/property-iso-control: New file.
60832         * modules/unictype/property-format-control: New file.
60833         * modules/unictype/property-dash: New file.
60834         * modules/unictype/property-hyphen: New file.
60835         * modules/unictype/property-punctuation: New file.
60836         * modules/unictype/property-line-separator: New file.
60837         * modules/unictype/property-paragraph-separator: New file.
60838         * modules/unictype/property-quotation-mark: New file.
60839         * modules/unictype/property-sentence-terminal: New file.
60840         * modules/unictype/property-terminal-punctuation: New file.
60841         * modules/unictype/property-currency-symbol: New file.
60842         * modules/unictype/property-math: New file.
60843         * modules/unictype/property-other-math: New file.
60844         * modules/unictype/property-paired-punctuation: New file.
60845         * modules/unictype/property-left-of-pair: New file.
60846         * modules/unictype/property-combining: New file.
60847         * modules/unictype/property-composite: New file.
60848         * modules/unictype/property-decimal-digit: New file.
60849         * modules/unictype/property-numeric: New file.
60850         * modules/unictype/property-diacritic: New file.
60851         * modules/unictype/property-extender: New file.
60852         * modules/unictype/property-ignorable-control: New file.
60853         * modules/unictype/property-test: New file.
60854         * modules/unictype/property-byname: New file.
60855         * modules/unictype/property-all: New file.
60856         * modules/unictype/scripts: New file.
60857         * modules/unictype/scripts-all: New file.
60858         * modules/unictype/block-of: New file.
60859         * modules/unictype/block-test: New file.
60860         * modules/unictype/block-list: New file.
60861         * modules/unictype/block-all: New file.
60862         * modules/unictype/syntax-c-whitespace: New file.
60863         * modules/unictype/syntax-java-whitespace: New file.
60864         * modules/unictype/syntax-c-ident: New file.
60865         * modules/unictype/syntax-java-ident: New file.
60866         * modules/unictype/ctype-alnum: New file.
60867         * modules/unictype/ctype-alpha: New file.
60868         * modules/unictype/ctype-cntrl: New file.
60869         * modules/unictype/ctype-digit: New file.
60870         * modules/unictype/ctype-graph: New file.
60871         * modules/unictype/ctype-lower: New file.
60872         * modules/unictype/ctype-print: New file.
60873         * modules/unictype/ctype-punct: New file.
60874         * modules/unictype/ctype-space: New file.
60875         * modules/unictype/ctype-upper: New file.
60876         * modules/unictype/ctype-xdigit: New file.
60877         * modules/unictype/ctype-blank: New file.
60878         * lib/unictype/bidi_byname.c: New file.
60879         * lib/unictype/bidi_name.c: New file.
60880         * lib/unictype/bidi_of.c: New file.
60881         * lib/unictype/bidi_test.c: New file.
60882         * lib/unictype/bitmap.h: New file.
60883         * lib/unictype/block_test.c: New file.
60884         * lib/unictype/blocks.c: New file.
60885         * lib/unictype/categ_C.c: New file.
60886         * lib/unictype/categ_Cc.c: New file.
60887         * lib/unictype/categ_Cf.c: New file.
60888         * lib/unictype/categ_Cn.c: New file.
60889         * lib/unictype/categ_Co.c: New file.
60890         * lib/unictype/categ_Cs.c: New file.
60891         * lib/unictype/categ_L.c: New file.
60892         * lib/unictype/categ_Ll.c: New file.
60893         * lib/unictype/categ_Lm.c: New file.
60894         * lib/unictype/categ_Lo.c: New file.
60895         * lib/unictype/categ_Lt.c: New file.
60896         * lib/unictype/categ_Lu.c: New file.
60897         * lib/unictype/categ_M.c: New file.
60898         * lib/unictype/categ_Mc.c: New file.
60899         * lib/unictype/categ_Me.c: New file.
60900         * lib/unictype/categ_Mn.c: New file.
60901         * lib/unictype/categ_N.c: New file.
60902         * lib/unictype/categ_Nd.c: New file.
60903         * lib/unictype/categ_Nl.c: New file.
60904         * lib/unictype/categ_No.c: New file.
60905         * lib/unictype/categ_P.c: New file.
60906         * lib/unictype/categ_Pc.c: New file.
60907         * lib/unictype/categ_Pd.c: New file.
60908         * lib/unictype/categ_Pe.c: New file.
60909         * lib/unictype/categ_Pf.c: New file.
60910         * lib/unictype/categ_Pi.c: New file.
60911         * lib/unictype/categ_Po.c: New file.
60912         * lib/unictype/categ_Ps.c: New file.
60913         * lib/unictype/categ_S.c: New file.
60914         * lib/unictype/categ_Sc.c: New file.
60915         * lib/unictype/categ_Sk.c: New file.
60916         * lib/unictype/categ_Sm.c: New file.
60917         * lib/unictype/categ_So.c: New file.
60918         * lib/unictype/categ_Z.c: New file.
60919         * lib/unictype/categ_Zl.c: New file.
60920         * lib/unictype/categ_Zp.c: New file.
60921         * lib/unictype/categ_Zs.c: New file.
60922         * lib/unictype/categ_and.c: New file.
60923         * lib/unictype/categ_and_not.c: New file.
60924         * lib/unictype/categ_byname.c: New file.
60925         * lib/unictype/categ_name.c: New file.
60926         * lib/unictype/categ_none.c: New file.
60927         * lib/unictype/categ_of.c: New file.
60928         * lib/unictype/categ_or.c: New file.
60929         * lib/unictype/categ_test.c: New file.
60930         * lib/unictype/combining.c: New file.
60931         * lib/unictype/ctype_alnum.c: New file.
60932         * lib/unictype/ctype_alpha.c: New file.
60933         * lib/unictype/ctype_blank.c: New file.
60934         * lib/unictype/ctype_cntrl.c: New file.
60935         * lib/unictype/ctype_digit.c: New file.
60936         * lib/unictype/ctype_graph.c: New file.
60937         * lib/unictype/ctype_lower.c: New file.
60938         * lib/unictype/ctype_print.c: New file.
60939         * lib/unictype/ctype_punct.c: New file.
60940         * lib/unictype/ctype_space.c: New file.
60941         * lib/unictype/ctype_upper.c: New file.
60942         * lib/unictype/ctype_xdigit.c: New file.
60943         * lib/unictype/decdigit.c: New file.
60944         * lib/unictype/digit.c: New file.
60945         * lib/unictype/identsyntaxmap.h: New file.
60946         * lib/unictype/mirror.c: New file.
60947         * lib/unictype/numeric.c: New file.
60948         * lib/unictype/pr_alphabetic.c: New file.
60949         * lib/unictype/pr_ascii_hex_digit.c: New file.
60950         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60951         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60952         * lib/unictype/pr_bidi_block_separator.c: New file.
60953         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60954         * lib/unictype/pr_bidi_common_separator.c: New file.
60955         * lib/unictype/pr_bidi_control.c: New file.
60956         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60957         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60958         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60959         * lib/unictype/pr_bidi_european_digit.c: New file.
60960         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60961         * lib/unictype/pr_bidi_left_to_right.c: New file.
60962         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60963         * lib/unictype/pr_bidi_other_neutral.c: New file.
60964         * lib/unictype/pr_bidi_pdf.c: New file.
60965         * lib/unictype/pr_bidi_segment_separator.c: New file.
60966         * lib/unictype/pr_bidi_whitespace.c: New file.
60967         * lib/unictype/pr_byname.c: New file.
60968         * lib/unictype/pr_byname.gperf: New file.
60969         * lib/unictype/pr_combining.c: New file.
60970         * lib/unictype/pr_composite.c: New file.
60971         * lib/unictype/pr_currency_symbol.c: New file.
60972         * lib/unictype/pr_dash.c: New file.
60973         * lib/unictype/pr_decimal_digit.c: New file.
60974         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60975         * lib/unictype/pr_deprecated.c: New file.
60976         * lib/unictype/pr_diacritic.c: New file.
60977         * lib/unictype/pr_extender.c: New file.
60978         * lib/unictype/pr_format_control.c: New file.
60979         * lib/unictype/pr_grapheme_base.c: New file.
60980         * lib/unictype/pr_grapheme_extend.c: New file.
60981         * lib/unictype/pr_grapheme_link.c: New file.
60982         * lib/unictype/pr_hex_digit.c: New file.
60983         * lib/unictype/pr_hyphen.c: New file.
60984         * lib/unictype/pr_id_continue.c: New file.
60985         * lib/unictype/pr_id_start.c: New file.
60986         * lib/unictype/pr_ideographic.c: New file.
60987         * lib/unictype/pr_ids_binary_operator.c: New file.
60988         * lib/unictype/pr_ids_trinary_operator.c: New file.
60989         * lib/unictype/pr_ignorable_control.c: New file.
60990         * lib/unictype/pr_iso_control.c: New file.
60991         * lib/unictype/pr_join_control.c: New file.
60992         * lib/unictype/pr_left_of_pair.c: New file.
60993         * lib/unictype/pr_line_separator.c: New file.
60994         * lib/unictype/pr_logical_order_exception.c: New file.
60995         * lib/unictype/pr_lowercase.c: New file.
60996         * lib/unictype/pr_math.c: New file.
60997         * lib/unictype/pr_non_break.c: New file.
60998         * lib/unictype/pr_not_a_character.c: New file.
60999         * lib/unictype/pr_numeric.c: New file.
61000         * lib/unictype/pr_other_alphabetic.c: New file.
61001         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61002         * lib/unictype/pr_other_grapheme_extend.c: New file.
61003         * lib/unictype/pr_other_id_continue.c: New file.
61004         * lib/unictype/pr_other_id_start.c: New file.
61005         * lib/unictype/pr_other_lowercase.c: New file.
61006         * lib/unictype/pr_other_math.c: New file.
61007         * lib/unictype/pr_other_uppercase.c: New file.
61008         * lib/unictype/pr_paired_punctuation.c: New file.
61009         * lib/unictype/pr_paragraph_separator.c: New file.
61010         * lib/unictype/pr_pattern_syntax.c: New file.
61011         * lib/unictype/pr_pattern_white_space.c: New file.
61012         * lib/unictype/pr_private_use.c: New file.
61013         * lib/unictype/pr_punctuation.c: New file.
61014         * lib/unictype/pr_quotation_mark.c: New file.
61015         * lib/unictype/pr_radical.c: New file.
61016         * lib/unictype/pr_sentence_terminal.c: New file.
61017         * lib/unictype/pr_soft_dotted.c: New file.
61018         * lib/unictype/pr_space.c: New file.
61019         * lib/unictype/pr_terminal_punctuation.c: New file.
61020         * lib/unictype/pr_test.c: New file.
61021         * lib/unictype/pr_titlecase.c: New file.
61022         * lib/unictype/pr_unassigned_code_value.c: New file.
61023         * lib/unictype/pr_unified_ideograph.c: New file.
61024         * lib/unictype/pr_uppercase.c: New file.
61025         * lib/unictype/pr_variation_selector.c: New file.
61026         * lib/unictype/pr_white_space.c: New file.
61027         * lib/unictype/pr_xid_continue.c: New file.
61028         * lib/unictype/pr_xid_start.c: New file.
61029         * lib/unictype/pr_zero_width.c: New file.
61030         * lib/unictype/scripts.c: New file.
61031         * lib/unictype/sy_c_ident.c: New file.
61032         * lib/unictype/sy_c_whitespace.c: New file.
61033         * lib/unictype/sy_java_ident.c: New file.
61034         * lib/unictype/sy_java_whitespace.c: New file.
61035
61036         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61037         Unicode 5.0.0.
61038         * lib/unictype/blocks.h: Likewise.
61039         * lib/unictype/categ_C.h: Likewise.
61040         * lib/unictype/categ_Cc.h: Likewise.
61041         * lib/unictype/categ_Cf.h: Likewise.
61042         * lib/unictype/categ_Cn.h: Likewise.
61043         * lib/unictype/categ_Co.h: Likewise.
61044         * lib/unictype/categ_Cs.h: Likewise.
61045         * lib/unictype/categ_L.h: Likewise.
61046         * lib/unictype/categ_Ll.h: Likewise.
61047         * lib/unictype/categ_Lm.h: Likewise.
61048         * lib/unictype/categ_Lo.h: Likewise.
61049         * lib/unictype/categ_Lt.h: Likewise.
61050         * lib/unictype/categ_Lu.h: Likewise.
61051         * lib/unictype/categ_M.h: Likewise.
61052         * lib/unictype/categ_Mc.h: Likewise.
61053         * lib/unictype/categ_Me.h: Likewise.
61054         * lib/unictype/categ_Mn.h: Likewise.
61055         * lib/unictype/categ_N.h: Likewise.
61056         * lib/unictype/categ_Nd.h: Likewise.
61057         * lib/unictype/categ_Nl.h: Likewise.
61058         * lib/unictype/categ_No.h: Likewise.
61059         * lib/unictype/categ_P.h: Likewise.
61060         * lib/unictype/categ_Pc.h: Likewise.
61061         * lib/unictype/categ_Pd.h: Likewise.
61062         * lib/unictype/categ_Pe.h: Likewise.
61063         * lib/unictype/categ_Pf.h: Likewise.
61064         * lib/unictype/categ_Pi.h: Likewise.
61065         * lib/unictype/categ_Po.h: Likewise.
61066         * lib/unictype/categ_Ps.h: Likewise.
61067         * lib/unictype/categ_S.h: Likewise.
61068         * lib/unictype/categ_Sc.h: Likewise.
61069         * lib/unictype/categ_Sk.h: Likewise.
61070         * lib/unictype/categ_Sm.h: Likewise.
61071         * lib/unictype/categ_So.h: Likewise.
61072         * lib/unictype/categ_Z.h: Likewise.
61073         * lib/unictype/categ_Zl.h: Likewise.
61074         * lib/unictype/categ_Zp.h: Likewise.
61075         * lib/unictype/categ_Zs.h: Likewise.
61076         * lib/unictype/categ_of.h: Likewise.
61077         * lib/unictype/combining.h: Likewise.
61078         * lib/unictype/ctype_alnum.h: Likewise.
61079         * lib/unictype/ctype_alpha.h: Likewise.
61080         * lib/unictype/ctype_blank.h: Likewise.
61081         * lib/unictype/ctype_cntrl.h: Likewise.
61082         * lib/unictype/ctype_digit.h: Likewise.
61083         * lib/unictype/ctype_graph.h: Likewise.
61084         * lib/unictype/ctype_lower.h: Likewise.
61085         * lib/unictype/ctype_print.h: Likewise.
61086         * lib/unictype/ctype_punct.h: Likewise.
61087         * lib/unictype/ctype_space.h: Likewise.
61088         * lib/unictype/ctype_upper.h: Likewise.
61089         * lib/unictype/ctype_xdigit.h: Likewise.
61090         * lib/unictype/decdigit.h: Likewise.
61091         * lib/unictype/digit.h: Likewise.
61092         * lib/unictype/mirror.h: Likewise.
61093         * lib/unictype/numeric.h: Likewise.
61094         * lib/unictype/pr_alphabetic.h: Likewise.
61095         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61096         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61097         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61098         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61099         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61100         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61101         * lib/unictype/pr_bidi_control.h: Likewise.
61102         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61103         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61104         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61105         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61106         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61107         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61108         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61109         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61110         * lib/unictype/pr_bidi_pdf.h: Likewise.
61111         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61112         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61113         * lib/unictype/pr_combining.h: Likewise.
61114         * lib/unictype/pr_composite.h: Likewise.
61115         * lib/unictype/pr_currency_symbol.h: Likewise.
61116         * lib/unictype/pr_dash.h: Likewise.
61117         * lib/unictype/pr_decimal_digit.h: Likewise.
61118         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61119         * lib/unictype/pr_deprecated.h: Likewise.
61120         * lib/unictype/pr_diacritic.h: Likewise.
61121         * lib/unictype/pr_extender.h: Likewise.
61122         * lib/unictype/pr_format_control.h: Likewise.
61123         * lib/unictype/pr_grapheme_base.h: Likewise.
61124         * lib/unictype/pr_grapheme_extend.h: Likewise.
61125         * lib/unictype/pr_grapheme_link.h: Likewise.
61126         * lib/unictype/pr_hex_digit.h: Likewise.
61127         * lib/unictype/pr_hyphen.h: Likewise.
61128         * lib/unictype/pr_id_continue.h: Likewise.
61129         * lib/unictype/pr_id_start.h: Likewise.
61130         * lib/unictype/pr_ideographic.h: Likewise.
61131         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61132         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61133         * lib/unictype/pr_ignorable_control.h: Likewise.
61134         * lib/unictype/pr_iso_control.h: Likewise.
61135         * lib/unictype/pr_join_control.h: Likewise.
61136         * lib/unictype/pr_left_of_pair.h: Likewise.
61137         * lib/unictype/pr_line_separator.h: Likewise.
61138         * lib/unictype/pr_logical_order_exception.h: Likewise.
61139         * lib/unictype/pr_lowercase.h: Likewise.
61140         * lib/unictype/pr_math.h: Likewise.
61141         * lib/unictype/pr_non_break.h: Likewise.
61142         * lib/unictype/pr_not_a_character.h: Likewise.
61143         * lib/unictype/pr_numeric.h: Likewise.
61144         * lib/unictype/pr_other_alphabetic.h: Likewise.
61145         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61146         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61147         * lib/unictype/pr_other_id_continue.h: Likewise.
61148         * lib/unictype/pr_other_id_start.h: Likewise.
61149         * lib/unictype/pr_other_lowercase.h: Likewise.
61150         * lib/unictype/pr_other_math.h: Likewise.
61151         * lib/unictype/pr_other_uppercase.h: Likewise.
61152         * lib/unictype/pr_paired_punctuation.h: Likewise.
61153         * lib/unictype/pr_paragraph_separator.h: Likewise.
61154         * lib/unictype/pr_pattern_syntax.h: Likewise.
61155         * lib/unictype/pr_pattern_white_space.h: Likewise.
61156         * lib/unictype/pr_private_use.h: Likewise.
61157         * lib/unictype/pr_punctuation.h: Likewise.
61158         * lib/unictype/pr_quotation_mark.h: Likewise.
61159         * lib/unictype/pr_radical.h: Likewise.
61160         * lib/unictype/pr_sentence_terminal.h: Likewise.
61161         * lib/unictype/pr_soft_dotted.h: Likewise.
61162         * lib/unictype/pr_space.h: Likewise.
61163         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61164         * lib/unictype/pr_titlecase.h: Likewise.
61165         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61166         * lib/unictype/pr_unified_ideograph.h: Likewise.
61167         * lib/unictype/pr_uppercase.h: Likewise.
61168         * lib/unictype/pr_variation_selector.h: Likewise.
61169         * lib/unictype/pr_white_space.h: Likewise.
61170         * lib/unictype/pr_xid_continue.h: Likewise.
61171         * lib/unictype/pr_xid_start.h: Likewise.
61172         * lib/unictype/pr_zero_width.h: Likewise.
61173         * lib/unictype/scripts.h: Likewise.
61174         * lib/unictype/scripts_byname.gperf: Likewise.
61175         * lib/unictype/sy_c_ident.h: Likewise.
61176         * lib/unictype/sy_c_whitespace.h: Likewise.
61177         * lib/unictype/sy_java_ident.h: Likewise.
61178         * lib/unictype/sy_java_whitespace.h: Likewise.
61179
61180         * lib/unictype/Makefile: New file.
61181         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61182         glibc.
61183         * lib/unictype/3level.h: New file, copied from glibc.
61184         * lib/unictype/3levelbit.h: New file.
61185
61186 2007-11-11  Bruno Haible  <bruno@clisp.org>
61187
61188         * modules/gperf: New file.
61189         * modules/iconv_open (Depends-on): Add it.
61190         (Makefile.am): Remove the GPERF definition.
61191
61192 2007-11-11  Bruno Haible  <bruno@clisp.org>
61193
61194         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61195         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61196
61197 2007-11-11  Bruno Haible  <bruno@clisp.org>
61198
61199         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61200         (usage): Remove function.
61201
61202 2007-11-11  Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61205         gl_FUNC_CEILF_LIBS.
61206         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61207         gl_FUNC_CEIL_LIBS.
61208         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61209         gl_FUNC_CEILL_LIBS.
61210         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61211         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61212         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61213
61214 2007-11-11  Bruno Haible  <bruno@clisp.org>
61215
61216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61217         roundf were declared but do not exist on functions.
61218         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61219         roundl were declared but do not exist on functions.
61220         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61221         HAVE_FLOORL_AND_CEILL, respectively.
61222         Needed for Sun C on Solaris 10.
61223
61224 2007-11-11  Bruno Haible  <bruno@clisp.org>
61225
61226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61227         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61228         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61229         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61230         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61231         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61232         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61233         HAVE_DECL_ROUNDF.
61234         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61235         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61237         of HAVE_DECL_ROUND*.
61238         * modules/math (Makefile.am): Update.
61239
61240 2007-11-10  Bruno Haible  <bruno@clisp.org>
61241
61242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61243         ptrdiff_t as m4/intl.m4.
61244
61245 2007-11-10  Jim Meyering  <meyering@redhat.com>
61246
61247         Avoid link failure for the argmatch test.
61248         * tests/test-argmatch.c (usage): Define function to avoid a link
61249         failure: argmatch_die requires a usage function.
61250
61251 2007-11-09  Bruno Haible  <bruno@clisp.org>
61252
61253         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61254         * doc/functions/vsnprintf.texi: Likewise.
61255         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61256         with a size argument < 2.
61257
61258 2007-11-09  Bruno Haible  <bruno@clisp.org>
61259
61260         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61261         buffer. Fixes an inefficiency introduced on 2007-11-03.
61262
61263 2007-11-09  Bruno Haible  <bruno@clisp.org>
61264
61265         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61266         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61267
61268 2007-11-08  Jim Meyering  <meyering@redhat.com>
61269
61270         Change cache variable name prefix "jm_" to "gl_" everywhere.
61271         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61272         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61273         * m4/uptime.m4: s/gl_/jm_/
61274
61275 2007-11-07  Bruno Haible  <bruno@clisp.org>
61276
61277         Update to GNU gettext 0.17.
61278         * m4/intl.m4: Update to GNU gettext 0.17.
61279         * m4/po.m4: Likewise.
61280         * modules/gettext (Files): Remove m4/ulonglong.m4.
61281         (configure.ac): Require gettext infrastructure from version 0.17.
61282
61283 2007-11-06  Bruno Haible  <bruno@clisp.org>
61284
61285         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61286         symbolic values are not defined in a public header.
61287         * lib/freadable.c (freadable) [QNX]: Likewise.
61288         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61289         * lib/freading.c (freading) [QNX]: Likewise.
61290         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61291         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61292         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61293         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61294         Reported by Alain Magloire.
61295
61296         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61297
61298 2007-11-05  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61301         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61302         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61303         Reported by Eric Blake.
61304
61305 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61306             Bruno Haible  <bruno@clisp.org>
61307
61308         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61309         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61310         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61311         (malloc): Undefine also before including <stdlib.h>.
61312         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61313         Needed on OSF/1 4.0.
61314
61315 2007-11-05  Jim Meyering  <meyering@redhat.com>
61316
61317         git-version-gen: sync from coreutils.
61318         * build-aux/git-version-gen: Add comments.
61319         Change the first '-' to '.' in the snapshot version string,
61320         e.g., 6.9-377-08144 -> 6.9.377-08144
61321         Remove first parameter.
61322         Don't declare a version "-dirty" merely because a time
61323         stamp has changed.
61324
61325 2007-11-04  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/lock.h: Protect all macro definitions containing an 'if'
61328         statement through a "do { ... } while (0)".
61329         * lib/tls.h: Likewise.
61330
61331 2007-11-04  Bruno Haible  <bruno@clisp.org>
61332
61333         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61334
61335 2007-11-04  Bruno Haible  <bruno@clisp.org>
61336
61337         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61338         * modules/fprintf-posix (Depends-on): Add nocrash.
61339         * modules/snprintf-posix (Depends-on): Likewise.
61340         * modules/sprintf-posix (Depends-on): Likewise.
61341         * modules/vasnprintf-posix (Depends-on): Likewise.
61342         * modules/vasprintf-posix (Depends-on): Likewise.
61343         * modules/vfprintf-posix (Depends-on): Likewise.
61344         * modules/vsnprintf-posix (Depends-on): Likewise.
61345         * modules/vsprintf-posix (Depends-on): Likewise.
61346         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61347         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61348         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61349         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61350         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61351         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61352         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61353
61354 2007-11-04  Bruno Haible  <bruno@clisp.org>
61355
61356         * modules/nocrash: New file.
61357         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61358         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61359
61360 2007-11-04  Bruno Haible  <bruno@clisp.org>
61361
61362         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61363         precision handling.
61364         * tests/test-vasprintf-posix.c (test_function): Likewise.
61365         * tests/test-snprintf-posix.h (test_function): Likewise.
61366         * tests/test-sprintf-posix.h (test_function): Likewise.
61367
61368         Fix *printf behaviour for large precisions on mingw and BeOS.
61369         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61370         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61372         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61374         gl_PRINTF_PRECISION and test its result. Invoke
61375         gl_PREREQ_VASNPRINTF_PRECISION.
61376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61383         * doc/functions/fprintf.texi: Update.
61384         * doc/functions/printf.texi: Update.
61385         * doc/functions/snprintf.texi: Update.
61386         * doc/functions/sprintf.texi: Update.
61387         * doc/functions/vfprintf.texi: Update.
61388         * doc/functions/vprintf.texi: Update.
61389         * doc/functions/vsnprintf.texi: Update.
61390         * doc/functions/vsprintf.texi: Update.
61391
61392 2007-11-04  Bruno Haible  <bruno@clisp.org>
61393
61394         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61395
61396 2007-11-04  Bruno Haible  <bruno@clisp.org>
61397
61398         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61399         Reported by Sylvain Beucler <beuc@gnu.org>.
61400
61401 2007-11-03  Bruno Haible  <bruno@clisp.org>
61402
61403         * tests/test-fprintf-posix2.sh: New file.
61404         * tests/test-fprintf-posix2.c: New file.
61405         * modules/fprintf-posix-tests (Files): Add them.
61406         (TESTS): Add test-fprintf-posix2.sh.
61407         (configure.ac): Check for getrlimit and setrlimit.
61408         (check_PROGRAMS): Add test-fprintf-posix2.
61409
61410         * tests/test-printf-posix2.sh: New file.
61411         * tests/test-printf-posix2.c: New file.
61412         * modules/printf-posix-tests (Files): Add them.
61413         (TESTS): Add test-printf-posix2.sh.
61414         (configure.ac): Check for getrlimit and setrlimit.
61415         (check_PROGRAMS): Add test-printf-posix2.
61416
61417         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61418         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61419         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61420         (decode_double): New function, copied from decode_long_double.
61421         (scale10_round_decimal_decoded): New function, extracted from
61422         scale10_round_decimal_long_double.
61423         (scale10_round_decimal_long_double): Use it.
61424         (scale10_round_decimal_double): New function.
61425         (floorlog10): New function.
61426         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61428         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61430         gl_PRINTF_ENOMEM and test its result. Invoke
61431         gl_PREREQ_VASNPRINTF_ENOMEM.
61432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61439         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61440         * modules/snprintf-posix (Depends-on): Likewise.
61441         * modules/sprintf-posix (Depends-on): Likewise.
61442         * modules/vasnprintf-posix (Depends-on): Likewise.
61443         * modules/vasprintf-posix (Depends-on): Likewise.
61444         * modules/vfprintf-posix (Depends-on): Likewise.
61445         * modules/vsnprintf-posix (Depends-on): Likewise.
61446         * modules/vsprintf-posix (Depends-on): Likewise.
61447         * doc/functions/fprintf.texi: Update.
61448         * doc/functions/printf.texi: Update.
61449         * doc/functions/snprintf.texi: Update.
61450         * doc/functions/sprintf.texi: Update.
61451         * doc/functions/vfprintf.texi: Update.
61452         * doc/functions/vprintf.texi: Update.
61453         * doc/functions/vsnprintf.texi: Update.
61454         * doc/functions/vsprintf.texi: Update.
61455
61456 2007-11-03  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/frexp-nolibm-tests: New file.
61459
61460         * modules/frexp-nolibm: New file.
61461         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61462
61463 2007-11-03  Bruno Haible  <bruno@clisp.org>
61464
61465         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61466         value is C99 compliant.
61467         Needed for OSF/1 5.1.
61468
61469 2007-11-03  Bruno Haible  <bruno@clisp.org>
61470
61471         Fix out-of-memory handling of vasnprintf.
61472         * lib/printf-parse.c: Include <errno.h>.
61473         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61474         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61475         is already set.
61476
61477 2007-11-02  Eric Blake  <ebb9@byu.net>
61478
61479         Fix tests on cygwin.
61480         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61481
61482 2007-11-01  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61485         warning.
61486         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61487         needed for POSIX compatibility.
61488
61489 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61492         for compatibility with GNU.
61493
61494 2007-11-01  Bruno Haible  <bruno@clisp.org>
61495
61496         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61497         (putenv): Renamed from rpl_putenv. Change argument type from
61498         'const char *' to 'char *'.
61499         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61500         of defining putenv in config.h, just set REPLACE_PUTENV.
61501         * modules/putenv (Depends-on): Add stdlib.
61502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61503         (Include): Use <stdlib.h>.
61504         * lib/stdlib.in.h (putenv): New declaration.
61505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61506         REPLACE_PUTENV.
61507         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61508         REPLACE_PUTENV.
61509         Needed for MacOS X 10.5.0.
61510         Reported by Peter O'Gorman <peter@pogma.com>.
61511
61512 2007-11-01  Jim Meyering  <meyering@redhat.com>
61513
61514         Treat an empty date string exactly like "0".
61515         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61516         if the remaining date string (to be parsed) is empty, use "0".
61517         Reported by Mischa Molhoek and discussed in this thread:
61518         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61519
61520 2007-10-31  Bruno Haible  <bruno@clisp.org>
61521
61522         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61523         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61524         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61525         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61526         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61527         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61528
61529 2007-10-31  Bruno Haible  <bruno@clisp.org>
61530
61531         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61532         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61533         (AC_TYPE_LONG_LONG_INT): Use it.
61534         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61535         it as well.
61536         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61537         to m4/longlong.m4.
61538         * modules/stdint (Files): Remove m4/ulonglong.m4.
61539         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61540         m4/ulonglong.m4.
61541         * modules/strtoumax (Files): Likewise.
61542
61543 2007-10-30  Bruno Haible  <bruno@clisp.org>
61544
61545         * modules/xvasprintf-posix: New file.
61546         Suggested by Eric Blake.
61547
61548 2007-10-30  Bruno Haible  <bruno@clisp.org>
61549
61550         * modules/xprintf-posix-tests: New file.
61551         * tests/test-xprintf-posix.sh: New file.
61552         * tests/test-xprintf-posix.c: New file.
61553         * tests/test-xfprintf-posix.c: New file.
61554
61555         * modules/xprintf-posix: New file.
61556
61557 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61558
61559         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61560         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61561         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61562
61563 2007-10-29  Bruno Haible  <bruno@clisp.org>
61564
61565         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61566         contain the special marker '_cv_'.
61567         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61568         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61569         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61570         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61571         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61572         Reported by Ralf Wildenhues.
61573
61574 2007-10-29  Bruno Haible  <bruno@clisp.org>
61575
61576         * gnulib-tool (func_import): When --lgpl is not specified, set
61577         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61578         GPLv3.
61579         Reported by Simon Josefsson.
61580
61581 2007-10-28  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61584         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61585         HAVE_DECL_ISFINITE.
61586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61587         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61588         HAVE_DECL_ISFINITE.
61589
61590 2007-10-28  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61593         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61594
61595 2007-10-28  Bruno Haible  <bruno@clisp.org>
61596
61597         Fix link errors with Sun C 5.0 on Solaris 10.
61598         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61599         function is declared but not present in the compiler's libm.
61600         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61601         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61602         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61603         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61604         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61605         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61606         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61608         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61609         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61610         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61611         HAVE_DECL_FLOORL.
61612
61613 2007-10-28  Bruno Haible  <bruno@clisp.org>
61614
61615         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61616         gl_FUNC_FLOORL. Cache the result.
61617         (gl_FUNC_FLOORL): Use it.
61618         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61619         gl_FUNC_CEILL. Cache the result.
61620         (gl_FUNC_CEILL): Use it.
61621
61622         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61623         gl_FUNC_FLOOR. Cache the result.
61624         (gl_FUNC_FLOOR): Use it.
61625         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61626         gl_FUNC_CEIL. Cache the result.
61627         (gl_FUNC_CEIL): Use it.
61628
61629         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61630         gl_FUNC_FLOORF. Cache the result.
61631         (gl_FUNC_FLOORF): Use it.
61632         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61633         gl_FUNC_CEILF. Cache the result.
61634         (gl_FUNC_CEILF): Use it.
61635
61636 2007-10-28  Bruno Haible  <bruno@clisp.org>
61637
61638         * gnulib-tool: Allow specifying the LGPL version number through
61639         --lgpl=2 or --lgpl=3.
61640         (func_usage): Document --lgpl with argument.
61641         Handle --lgpl=... arguments.
61642         (func_import): Recognize also gl_LGPL calls with an argument. When
61643         --lgpl=2 is used and the module's license is just LGPL, report an
61644         error. Set sed_transform_lib_file according to the lgpl variable. In
61645         the generated files, use --lgpl or gl_LGPL invocations with argument,
61646         if necessary.
61647         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61648         an LGPv2+ license.
61649         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61650         gl_LGPL macro.
61651
61652 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61653             Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61656         (u16_uctomb_aux): Likewise.
61657         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61658         !HAVE_INLINE.
61659         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61660
61661 2007-10-28  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61664         Invoke AM_GETTEXT_OPTION if it exists.
61665         * modules/vasprintf: Likewise.
61666         * modules/verror: Likewise.
61667         * modules/xprintf: Likewise.
61668         * modules/xvasprintf: Likewise.
61669
61670 2007-10-27  Ben Pfaff  <blp@gnu.org>
61671
61672         * lib/math.in.h: Define isfinite macro and prototypes for
61673         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61674         implementations.
61675         * m4/math_h.m4: New substitutions for isfinite module.
61676         * lib/isfinite.c: New file.
61677         * m4/isfinite.m4: New file.
61678         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61679         * modules/isfinite: New file.
61680         * modules/isfinite-tests: New file.
61681         * tests/tests-isfinite.c: New file.
61682         * doc/functions/isfinite.texi: Mention isfinite module.
61683         * MODULES.html.sh: Mention new module.
61684
61685 2007-10-27  Ben Pfaff  <blp@gnu.org>
61686
61687         Ralf Wildenhues reported that Tru64 4.0D declares the round
61688         functions but does not have definitions.
61689         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61690         cannot be found in any library, set the output variable to
61691         "missing" instead of "".
61692         * m4/round.m4: Also use our substitute if we cannot find round in
61693         any library, even if it is declared.
61694         * m4/roundf.m4: Likewise for roundf.
61695         * m4/roundl.m4: Likewise for roundl.
61696         * lib/math.in.h: Undefine roundf, round, roundl before defining
61697         their replacements, to allow for hypothetical systems where these
61698         may be defined as macros but not available in libraries.
61699
61700 2007-10-27  Bruno Haible  <bruno@clisp.org>
61701
61702         * doc/gnulib.texi: Invoke @firstparagraphindent.
61703         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61704         changes in gnulib.
61705         (Source changes): New section.
61706
61707 2007-10-26  Bruno Haible  <bruno@clisp.org>
61708
61709         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61710         borrowed from autoconf.
61711
61712 2007-10-26  Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61715         strerror returned the empty string. Needed on HP-UX 11.00.
61716
61717 2007-10-24  Micah Cowan  <micah@cowan.name>
61718
61719         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61720         * build-aux/bootstrap: Remove support for now-unnecessary option,
61721         --cvs-user, and envvars CVS_USER, CVS_RSH.
61722
61723 2007-10-24  Jim Meyering  <meyering@redhat.com>
61724
61725         Avoid diagnostics from sha1sum when there is no cached checksum.
61726         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61727         if the po.s1 file hasn't been created yet.
61728
61729         * build-aux/bootstrap: Sync from coreutils:
61730         2007-10-24  Jim Meyering  <meyering@redhat.com>
61731         Get gnulib from the git repository, not from an obsolete cvs one.
61732         * build-aux/bootstrap: Suggestion from Micah Cowan.
61733         2007-10-04  Jim Meyering  <jim@meyering.net>
61734         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61735         (update_po_files): Work also when there are no .po files in po/.
61736
61737 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * README: Append ".git" to git and cg examples.
61740         Problem reported by Benoit Sigoure.
61741
61742 2007-10-23  Micah Cowan  <micah@cowan.name>
61743
61744         * users.txt: Add wget.
61745
61746 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61747
61748         Fix linking of some unistdio tests on FreeBSD.
61749         * modules/unistdio/u16-vsnprintf-tests
61750         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61751         * modules/unistdio/u16-vsprintf-tests
61752         (test_u16_vsnprintf1_LDADD): Likewise.
61753         * modules/unistdio/u32-vsnprintf-tests
61754         (test_u32_vsnprintf1_LDADD): Likewise.
61755         * modules/unistdio/u32-vsprintf-tests
61756         (test_u32_vsprintf1_LDADD): Likewise.
61757         * modules/unistdio/u8-vsnprintf-tests
61758         (test_u8_vsnprintf1_LDADD): Likewise.
61759         * modules/unistdio/u8-vsprintf-tests
61760         (test_u8_vsprintf1_LDADD): Likewise.
61761         * modules/unistdio/ulc-vsnprintf-tests
61762         (test_ulc_vsnprintf1_LDADD): Likewise.
61763         * modules/unistdio/ulc-vsprintf-tests
61764         (test_ulc_vsprintf1_LDADD): Likewise.
61765
61766         Fix linking of some uniconv tests on FreeBSD.
61767         * modules/uniconv/u16-conv-from-enc-tests
61768         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61769         * modules/uniconv/u16-conv-to-enc-tests
61770         (test_u16_conv_to_enc_LDADD): Likewise.
61771         * modules/uniconv/u16-strconv-from-enc-tests
61772         (test_u16_strconv_from_enc_LDADD): Likewise.
61773         * modules/uniconv/u16-strconv-to-enc-tests
61774         (test_u16_strconv_to_enc_LDADD): Likewise.
61775         * modules/uniconv/u32-conv-from-enc-tests
61776         (test_u32_conv_from_enc_LDADD): Likewise.
61777         * modules/uniconv/u32-conv-to-enc-tests
61778         (test_u32_conv_to_enc_LDADD): Likewise.
61779         * modules/uniconv/u32-strconv-from-enc-tests
61780         (test_u32_strconv_from_enc_LDADD): Likewise.
61781         * modules/uniconv/u32-strconv-to-enc-tests
61782         (test_u32_strconv_to_enc_LDADD): Likewise.
61783         * modules/uniconv/u8-conv-from-enc-tests
61784         (test_u8_conv_from_enc_LDADD): Likewise.
61785         * modules/uniconv/u8-conv-to-enc-tests
61786         (test_u8_conv_to_enc_LDADD): Likewise.
61787         * modules/uniconv/u8-strconv-from-enc-tests
61788         (test_u8_strconv_from_enc_LDADD): Likewise.
61789         * modules/uniconv/u8-strconv-to-enc-tests
61790         (test_u8_strconv_to_enc_LDADD): Likewise.
61791
61792 2007-10-22  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61795         size.
61796
61797 2007-10-22  Eric Blake  <ebb9@byu.net>
61798
61799         Tweak x*printf documentation.
61800         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61801         variable name and comments.
61802         Suggested by Bruno Haible.
61803
61804 2007-10-22  Bruno Haible  <bruno@clisp.org>
61805
61806         * lib/acl.c (copy_acl): Fix file name in comment.
61807
61808 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         Fix Tru64 problem with stdbool.h.
61811         * lib/stdbool.in.h (false, true):
61812         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61813         Don't declare as an enum in this situation; it runs afoul of Tru64.
61814         Problem reported by Steven M. Schweda in
61815         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61816
61817 2007-10-22  Eric Blake  <ebb9@byu.net>
61818
61819         Also wrap vf?printf.
61820         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61821         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61822         (xvprintf, xvfprintf): New functions.
61823
61824 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61825
61826         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61827         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61828
61829         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61830         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61831
61832 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61835         by Bruno Haible.
61836
61837 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61838
61839         * lib/getloadavg.c
61840         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61841         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61842
61843         * tests/test-i-ring.c: Work for C89.
61844
61845 2007-10-22  Bruno Haible  <bruno@clisp.org>
61846
61847         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61848         -1u, in preprocessor expression, so that we don't test for the bug
61849         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61851
61852 2007-10-22  Eric Blake  <ebb9@byu.net>
61853
61854         * tests/test-yesno.sh: Silence stderr during test.
61855
61856 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61857
61858         * modules/crypto/gc-camellia: New file.
61859
61860         * m4/gc-camellia.m4: New file.
61861
61862         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61863
61864         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61865
61866 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61867
61868         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61869         --help to stdout.  Reported by sms@antinode.org (Steven
61870         M. Schweda).
61871
61872 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61873
61874         * users.txt: Fix link to libksba.
61875
61876 2007-10-21  Ben Pfaff  <blp@gnu.org>
61877
61878         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61879         round.c roundf implementation that depends on floorf and ceilf to
61880         be tested unconditionally.
61881
61882 2007-10-21  Ben Pfaff  <blp@gnu.org>
61883
61884         * m4/check-libm-func.m4: Removed.
61885         * m4/check-math-lib.m4: New file.
61886         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61887         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61888         definition and lack of AC_LIBOBJ([roundf]).
61889         * m4/roundl.m4: Ditto, and similarly for roundl.
61890         * modules/round: Reference new m4 file.
61891         * modules/roundf: Ditto.
61892         * modules/roundl: Ditto.
61893         * tests/test-round2.c (main): Use ROUND instead of round.
61894         Bug report from Bruno Haible.
61895
61896 2007-10-21  Bruno Haible  <bruno@clisp.org>
61897
61898         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61899         context.
61900
61901 2007-10-21  Bruno Haible  <bruno@clisp.org>
61902
61903         * tests/test-wcwidth.c (main): Allow negative result for some control
61904         characters.
61905
61906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61907         Needed on OSF/1 5.1.
61908
61909 2007-10-21  Bruno Haible  <bruno@clisp.org>
61910
61911         * tests/test-floorf1.c: Include isnanf.h.
61912         (main): Use isnanf() instead of isnan().
61913         * tests/test-ceilf1.c: Include isnanf.h.
61914         (main): Use isnanf() instead of isnan().
61915         * tests/test-truncf1.c: Include isnanf.h.
61916         (main): Use isnanf() instead of isnan().
61917         * tests/test-roundf1.c: Include isnanf.h.
61918         (main): Use isnanf() instead of isnan().
61919
61920 2007-10-21  Eric Blake  <ebb9@byu.net>
61921
61922         * users.txt: Update URL for m4.
61923
61924 2007-10-21  Bruno Haible  <bruno@clisp.org>
61925
61926         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61927
61928 2007-10-21  Bruno Haible  <bruno@clisp.org>
61929
61930         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61931         Git's management files if the CVS files are not present.
61932
61933 2007-10-20  Bruno Haible  <bruno@clisp.org>
61934
61935         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61936         gcc-3.4.x.
61937
61938 2007-10-20  Ben Pfaff  <blp@gnu.org>
61939
61940         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61941         implementations.
61942         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61943         * lib/round.c: New file.
61944         * lib/roundf.c: New file.
61945         * lib/roundl.c: New file.
61946         * m4/round.m4: New file.
61947         * m4/roundf.m4: New file.
61948         * m4/roundl.m4: New file.
61949         * m4/check-libm-func-m4: New file.
61950         * modules/math: Replace round, roundf, roundl related @VARS@ in
61951         math.in.h.
61952         * modules/round: New file.
61953         * modules/round-tests: New file.
61954         * modules/roundf: New file.
61955         * modules/roundf-tests: New file.
61956         * modules/roundl: New file.
61957         * modules/roundl-tests: New file.
61958         * tests/test-round1.c: New file.
61959         * tests/test-round2.c: New file.
61960         * tests/test-roundf1.c: New file.
61961         * tests/test-roundf2.c: New file.
61962         * tests/test-roundl.c: New file.
61963         * doc/functions/round.texi: Mention round module.
61964         * doc/functions/roundf.texi: Mention roundf module.
61965         * doc/functions/roundl.texi: Mention roundl module.
61966         * MODULES.html.sh: Mention new modules.
61967         Thanks to Bruno Haible for suggestions.
61968
61969 2007-10-20  Jim Meyering  <meyering@redhat.com>
61970
61971         * lib/xprintf.c: Include <config.h> unconditionally.
61972
61973         Change xprintf's license to GPL.
61974         * modules/xprintf (License): s/LGPL/GPL/, since this module
61975         depends on modules (exit and exitfail) which are GPL.
61976         Suggestion from Bruno Haible.
61977
61978         xprintf fixes.
61979         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61980         Use a clearer diagnostic.
61981         Patch from Bruno Haible.
61982
61983 2007-10-20  Bruno Haible  <bruno@clisp.org>
61984
61985         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61986         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61988
61989 2007-10-20  Bruno Haible  <bruno@clisp.org>
61990
61991         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61992         precision in the comparison result > x - 1 or similar.
61993         * tests/test-ceilf2.c (correct_result_p): Likewise.
61994         * tests/test-truncf2.c (correct_result_p): Likewise.
61995         * tests/test-trunc2.c (correct_result_p): Likewise.
61996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61997
61998 2007-10-20  Bruno Haible  <bruno@clisp.org>
61999
62000         * modules/ceil: New file.
62001         * m4/ceil.m4: New file.
62002         * doc/functions/ceil.texi: Mention the 'ceil' module.
62003
62004 2007-10-20  Bruno Haible  <bruno@clisp.org>
62005
62006         * modules/floor: New file.
62007         * m4/floor.m4: New file.
62008         * doc/functions/floor.texi: Mention the 'floor' module.
62009
62010 2007-10-20  Bruno Haible  <bruno@clisp.org>
62011
62012         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62013         of %a.
62014         * modules/floorf-tests (Depends-on): Likewise.
62015         * modules/truncf-tests (Depends-on): Likewise.
62016         * modules/trunc-tests (Depends-on): Likewise.
62017         Reported by Ben Pfaff.
62018
62019 2007-10-19  Jim Meyering  <meyering@redhat.com>
62020
62021         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62022         Don't bother testing specific errno values.  Just test ferror.
62023
62024         New module: xprintf
62025         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62026
62027 2007-10-19  Bruno Haible  <bruno@clisp.org>
62028
62029         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62030         syntax.
62031         * modules/javaexec (Makefile.am): Likewise.
62032         * modules/relocatable-prog (Makefile.am): Likewise.
62033         Suggested by Jim Meyering.
62034
62035 2007-10-18  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62038         Reported by Jim Meyering.
62039
62040 2007-10-18  Eric Blake  <ebb9@byu.net>
62041
62042         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62043
62044 2007-10-18  Bruno Haible  <bruno@clisp.org>
62045
62046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62047         the format string into writable memory. Needed in Fortify conditions.
62048
62049 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62050             Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62053         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62054         * modules/trim (Depends-on): Add mbchar.
62055         (configure.ac): Add gl_FUNC_MBRTOWC.
62056         (Makefile.am): Augment lib_SOURCES.
62057
62058 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         Modify glob.c to use fstatat and dirfd, to simplify it.
62061         Suggested by Eric Blake.
62062         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62063         Don't include <stdbool.h>; not used.
62064         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62065         (link_exists_p): Simplify implementation, since we can now assume
62066         dirfd and fstatat.
62067         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62068
62069 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62070
62071         * gnulib-tool (func_get_dependencies): Fix sed script to
62072         match only tests.
62073
62074 2007-10-17  Bruno Haible  <bruno@clisp.org>
62075
62076         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62077         allow locale names without encoding suffix.
62078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62080
62081 2007-10-16  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62084         * lib/getgroups.c (getgroups): Likewise.
62085         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62086
62087 2007-10-16  Bruno Haible  <bruno@clisp.org>
62088
62089         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62090         * modules/malloc-posix (License): Likewise.
62091         * modules/realloc-posix (License): Likewise.
62092         * modules/calloc-posix (License): Likewise.
62093         * modules/intprops (License): Change from GPL to LGPL, with
62094         Paul Eggert's approval.
62095
62096 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         Merge glibc changes into lib/glob.c.
62099
62100         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62101         2007-10-15 04:59:03 UTC.  Here are the changes:
62102
62103         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62104
62105         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62106
62107         * lib/glob.c: Add some branch prediction throughout.
62108
62109         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62110
62111         [BZ #5103]
62112         * lib/glob.c (glob): Recognize patterns starting \/.
62113
62114         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62115
62116         [BZ #3996]
62117         * lib/glob.c (attribute_hidden): Define if not defined.
62118         (glob): Unescape dirname, filename or username when needed and not
62119         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62120         is NULL.  Handle unescaped [ in pattern without closing ].
62121         Don't pass GLOB_CHECK down to recursive glob for directories.
62122         (__glob_pattern_type): New function.
62123         (__glob_pattern_p): Implement using __glob_pattern_type.
62124         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62125         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62126         Remove unreachable code.
62127
62128         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62129
62130         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62131         explain why there are no leaks.
62132
62133         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62134
62135         [BZ #3253]
62136         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62137         time, rather allocate increasingly bigger arrays of pointers, if
62138         possible with alloca, if too large with malloc.
62139
62140 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62143         Problem reported by H.Merijn Brand in
62144         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62145         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62146         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62147
62148 2007-10-15  Bruno Haible  <bruno@clisp.org>
62149
62150         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62151         with explicit rpl_ prefix.
62152         * lib/fopen.c (fopen): Likewise.
62153         * lib/freopen.c (freopen): Likewise.
62154         * lib/iconv.c (iconv): Likewise.
62155         * lib/iconv_close.c (iconv_close): Likewise.
62156
62157 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62158
62159         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62160
62161 2007-10-15  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62164         <stddef.h> instead of <stdlib.h> since we only need NULL.
62165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62166
62167 2007-10-15  Bruno Haible  <bruno@clisp.org>
62168
62169         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62170         Replace paragraph talking about LIBOBJS.
62171         Reported by Colin Watson <cjwatson@debian.org>.
62172
62173 2007-10-15  Bruno Haible  <bruno@clisp.org>
62174
62175         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62176         <stdlib.h> before using NULL.
62177
62178 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62179
62180         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62181         Reported by Albert Chin <china@thewrittenword.com>.
62182
62183 2007-10-14  Bruno Haible  <bruno@clisp.org>
62184
62185         * modules/iconv_open-utf-tests: New file.
62186         * tests/test-iconv-utf.c: New file.
62187
62188         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62189         * modules/iconv_open-utf: New file.
62190         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62191         (iconv, iconv_close): New declarations.
62192         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62193         be defined.
62194         (iconv_open): Add special handling of conversion between UTF-8 and
62195         UTF-{16,32}{BE,LE}.
62196         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62197         * lib/iconv_close.c: New file.
62198         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62199         gl_FUNC_ICONV_OPEN.
62200         (gl_FUNC_ICONV_OPEN): Use it.
62201         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62202         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62203         and REPLACE_ICONV_UTF.
62204         * modules/iconv_open (Depends-on): Add c-strcase.
62205         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62206         ICONV_CONST.
62207         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62208
62209 2007-10-13  Albert Chin  <china@thewrittenword.com>
62210             Bruno Haible  <bruno@clisp.org>
62211
62212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62213         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62214
62215 2007-10-13  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62218         defined, use the ISO C99 inline semantics.
62219         * lib/argp.h (ARGP_EI): Likewise.
62220
62221 2007-10-13  Bruno Haible  <bruno@clisp.org>
62222
62223         Handle 'inline' change in gcc 4.3.0.
62224         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62225         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62226         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62227         argp_fmtstream_point): Disable 'extern' declaration if the function
62228         definition is going to be provided inline.
62229         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62230         semantics, not the ISO C99 inline semantics.
62231         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62232         'extern' declaration if the function definition is going to be provided
62233         inline.
62234         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62235         the GNU C inline semantics, not the ISO C99 inline semantics. With
62236         GCC 4.2, avoid a warning.
62237
62238 2007-10-13  Bruno Haible  <bruno@clisp.org>
62239
62240         * lib/freading.h (freading): Enable the use of __freading for
62241         glibc >= 2.7.
62242         * lib/freading.c (freading): Likewise.
62243
62244 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62247         "warning: C99 inline functions are not supported; using GNU89".
62248
62249 2007-10-12  Bruno Haible  <bruno@clisp.org>
62250
62251         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62252         of 2.
62253         * tests/test-ceilf2.c: New file.
62254         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62255
62256         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62257         * modules/ceilf-tests: Update.
62258
62259 2007-10-12  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62262         of 2.
62263         * tests/test-floorf2.c: New file.
62264         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62265
62266         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62267         * modules/floorf-tests: Update.
62268
62269 2007-10-12  Bruno Haible  <bruno@clisp.org>
62270
62271         * tests/test-trunc2.c: New file.
62272         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62273
62274         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62275         * modules/trunc-tests: Update.
62276
62277 2007-10-12  Bruno Haible  <bruno@clisp.org>
62278
62279         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62280         of 2.
62281         * tests/test-truncf2.c: New file.
62282         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62283
62284         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62285         * modules/truncf-tests: Update.
62286
62287 2007-10-11  Eric Blake  <ebb9@byu.net>
62288
62289         Don't claim strerror is broken on Interix.
62290         * doc/functions/strerror.texi (strerror): Known broken systems are
62291         now Solaris 8, and not Interix.
62292         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62293         Interix on cross-compile.
62294         Reported by Martin Koeppe in
62295         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62296
62297 2007-10-11  Bruno Haible  <bruno@clisp.org>
62298
62299         * modules/i-ring-tests: New file.
62300         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62301         instead of assert.
62302
62303 2007-10-11  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/filenamecat-tests: New file.
62306         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62307         * lib/filenamecat.c: Remove test code.
62308
62309 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62310
62311         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62312
62313         * lib/strerror.c: Include <string.h> always, to test interface,
62314         and to remove the need for the dummy.
62315         Include intprops.h to compute width instead of doing it ourselves
62316         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62317         (strerror): Define it to return NULL if there's no system strerror.
62318         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62319         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62320         ancient pre-strerror Unix systems well any more.  Saying "unknown
62321         system error" is enough.
62322         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62323         simpler strerror.c implementation.
62324         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62325         Simplify the tests to reflect the simpler strerror implementation.
62326         * modules/strerror (Depends-on): Add intprops.
62327
62328 2007-10-09  Eric Blake  <ebb9@byu.net>
62329
62330         Silence test-fpending.
62331         * modules/fpending-tests (Files): Add wrapper script.
62332         * tests/test-fpending.sh: New file.
62333
62334 2007-10-09  Bruno Haible  <bruno@clisp.org>
62335
62336         * MODULES.html.sh (func_module): Don't create a hyperlink for
62337         function names like 'printf_frexp'.
62338         (Misc): Add crc, memxor.
62339         (Characteristics of floating types): New section.
62340         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62341         isnanf-nolibm, signbit, trunc, truncf, truncl.
62342         (Enhancements for ISO C 99 functions): New subsection Input/output.
62343         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62344         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62345         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62346         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62347         (Enhancements for POSIX:2001 functions): Add chdir-long.
62348         (File system functions): Add areadlink, chdir-safer, read-file.
62349         Remove cycle-check.
62350         (File system as inode set): New section.
62351         (Date and time): Add gethrxtime.
62352         (Multithreading): Add openmp.
62353         (Internationalization functions): Add localename.
62354         (Unicode string functions): Add unistr/u*-mbsnlen.
62355         (Support for maintaining and releasing projects): Add git-version-gen.
62356         (Lone files): Remove directories.
62357
62358 2007-10-08  Ben Pfaff  <blp@gnu.org>
62359
62360         * lib/xmalloca.h: Fix typo in comment.
62361
62362 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62365         when avoiding problems with integer overflow.  Use a portable test
62366         instead.
62367
62368 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62369
62370         * modules/dummy (License): Change to LGPLv2+.
62371         * modules/float (License): Likewise
62372         * modules/realloc (License): Likewise
62373         * modules/stdlib (License): Likewise
62374
62375 2007-10-07  Bruno Haible  <bruno@clisp.org>
62376
62377         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62378         * floor.c (TWO_MANT_DIG): Likewise.
62379         * ceil.c (TWO_MANT_DIG): Likewise.
62380         Reported by Ben Pfaff.
62381
62382 2007-10-07  Bruno Haible  <bruno@clisp.org>
62383
62384         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62385         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62386         * lib/frexp.c (FUNC): Likewise.
62387         * lib/printf-frexp.h (printf_frexp): Likewise.
62388         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62389         * lib/printf-frexp.c (FUNC): Likewise.
62390         Suggested by Jim Meyering.
62391
62392 2007-10-07  Jim Meyering  <meyering@redhat.com>
62393
62394         Make xnanosleep's integer overflow test more robust.
62395         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62396         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62397
62398 2007-10-07  Bruno Haible  <bruno@clisp.org>
62399
62400         * NEWS: Mention the license change.
62401
62402         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62403         abbreviations in the modules files.
62404
62405         Change copyright notice from GPLv2+ to GPLv3+.
62406         * README: Change copyright notice.
62407         * MODULES.html.sh: Likewise.
62408         * build-aux/bootstrap.conf: Likewise.
62409         * build-aux/config.libpath: Likewise.
62410         * build-aux/csharpcomp.sh.in: Likewise.
62411         * build-aux/csharpexec.sh.in: Likewise.
62412         * build-aux/install-reloc: Likewise.
62413         * build-aux/javacomp.sh.in: Likewise.
62414         * build-aux/javaexec.sh.in: Likewise.
62415         * build-aux/ldd.sh.in: Likewise.
62416         * build-aux/reloc-ldflags: Likewise.
62417         * build-aux/relocatable.sh.in: Likewise.
62418         * build-aux/x-to-1.in: Likewise.
62419         * check-module: Likewise.
62420         * config/srclistvars.sh: Likewise.
62421         * gnulib-tool: Likewise.
62422         * lib/acl-internal.h: Likewise.
62423         * lib/acl.c: Likewise.
62424         * lib/acl.h: Likewise.
62425         * lib/acl_entries.c: Likewise.
62426         * lib/areadlink-with-size.c: Likewise.
62427         * lib/areadlink.c: Likewise.
62428         * lib/areadlink.h: Likewise.
62429         * lib/argmatch.c: Likewise.
62430         * lib/argmatch.h: Likewise.
62431         * lib/argp-ba.c: Likewise.
62432         * lib/argp-eexst.c: Likewise.
62433         * lib/argp-fmtstream.c: Likewise.
62434         * lib/argp-fmtstream.h: Likewise.
62435         * lib/argp-fs-xinl.c: Likewise.
62436         * lib/argp-help.c: Likewise.
62437         * lib/argp-namefrob.h: Likewise.
62438         * lib/argp-parse.c: Likewise.
62439         * lib/argp-pin.c: Likewise.
62440         * lib/argp-pv.c: Likewise.
62441         * lib/argp-pvh.c: Likewise.
62442         * lib/argp-xinl.c: Likewise.
62443         * lib/argp.h: Likewise.
62444         * lib/at-func.c: Likewise.
62445         * lib/atanl.c: Likewise.
62446         * lib/backupfile.c: Likewise.
62447         * lib/backupfile.h: Likewise.
62448         * lib/basename.c: Likewise.
62449         * lib/binary-io.h: Likewise.
62450         * lib/byteswap.in.h: Likewise.
62451         * lib/c-stack.c: Likewise.
62452         * lib/c-stack.h: Likewise.
62453         * lib/c-strcasestr.c: Likewise.
62454         * lib/c-strcasestr.h: Likewise.
62455         * lib/c-strstr.c: Likewise.
62456         * lib/c-strstr.h: Likewise.
62457         * lib/c-strtod.c: Likewise.
62458         * lib/calloc.c: Likewise.
62459         * lib/canon-host.c: Likewise.
62460         * lib/canon-host.h: Likewise.
62461         * lib/canonicalize-lgpl.c: Likewise.
62462         * lib/canonicalize.c: Likewise.
62463         * lib/canonicalize.h: Likewise.
62464         * lib/ceil.c: Likewise.
62465         * lib/ceilf.c: Likewise.
62466         * lib/ceill.c: Likewise.
62467         * lib/chdir-long.c: Likewise.
62468         * lib/chdir-long.h: Likewise.
62469         * lib/chdir-safer.c: Likewise.
62470         * lib/chdir-safer.h: Likewise.
62471         * lib/chown.c: Likewise.
62472         * lib/classpath.c: Likewise.
62473         * lib/classpath.h: Likewise.
62474         * lib/clean-temp.c: Likewise.
62475         * lib/clean-temp.h: Likewise.
62476         * lib/cloexec.c: Likewise.
62477         * lib/close-stream.c: Likewise.
62478         * lib/closein.c: Likewise.
62479         * lib/closein.h: Likewise.
62480         * lib/closeout.c: Likewise.
62481         * lib/closeout.h: Likewise.
62482         * lib/concat-filename.c: Likewise.
62483         * lib/copy-file.c: Likewise.
62484         * lib/copy-file.h: Likewise.
62485         * lib/count-one-bits.h: Likewise.
62486         * lib/crc.c: Likewise.
62487         * lib/crc.h: Likewise.
62488         * lib/creat-safer.c: Likewise.
62489         * lib/csharpcomp.c: Likewise.
62490         * lib/csharpcomp.h: Likewise.
62491         * lib/csharpexec.c: Likewise.
62492         * lib/csharpexec.h: Likewise.
62493         * lib/cycle-check.c: Likewise.
62494         * lib/cycle-check.h: Likewise.
62495         * lib/diacrit.c: Likewise.
62496         * lib/diacrit.h: Likewise.
62497         * lib/diffseq.h: Likewise.
62498         * lib/dirchownmod.c: Likewise.
62499         * lib/dirent.in.h: Likewise.
62500         * lib/dirfd.c: Likewise.
62501         * lib/dirfd.h: Likewise.
62502         * lib/dirname.c: Likewise.
62503         * lib/dirname.h: Likewise.
62504         * lib/dummy.c: Likewise.
62505         * lib/dup-safer.c: Likewise.
62506         * lib/dup2.c: Likewise.
62507         * lib/eealloc.h: Likewise.
62508         * lib/error.c: Likewise.
62509         * lib/error.h: Likewise.
62510         * lib/euidaccess.c: Likewise.
62511         * lib/exclude.c: Likewise.
62512         * lib/exclude.h: Likewise.
62513         * lib/execute.c: Likewise.
62514         * lib/execute.h: Likewise.
62515         * lib/exitfail.c: Likewise.
62516         * lib/exitfail.h: Likewise.
62517         * lib/expl.c: Likewise.
62518         * lib/fatal-signal.c: Likewise.
62519         * lib/fatal-signal.h: Likewise.
62520         * lib/fbufmode.c: Likewise.
62521         * lib/fbufmode.h: Likewise.
62522         * lib/fchdir.c: Likewise.
62523         * lib/fchmodat.c: Likewise.
62524         * lib/fchownat.c: Likewise.
62525         * lib/fcntl--.h: Likewise.
62526         * lib/fcntl-safer.h: Likewise.
62527         * lib/fcntl.in.h: Likewise.
62528         * lib/fd-safer.c: Likewise.
62529         * lib/fflush.c: Likewise.
62530         * lib/file-has-acl.c: Likewise.
62531         * lib/file-set.c: Likewise.
62532         * lib/file-type.c: Likewise.
62533         * lib/file-type.h: Likewise.
62534         * lib/fileblocks.c: Likewise.
62535         * lib/filemode.c: Likewise.
62536         * lib/filemode.h: Likewise.
62537         * lib/filename.h: Likewise.
62538         * lib/filenamecat.c: Likewise.
62539         * lib/filenamecat.h: Likewise.
62540         * lib/findprog.c: Likewise.
62541         * lib/findprog.h: Likewise.
62542         * lib/float.in.h: Likewise.
62543         * lib/floor.c: Likewise.
62544         * lib/floorf.c: Likewise.
62545         * lib/floorl.c: Likewise.
62546         * lib/fopen-safer.c: Likewise.
62547         * lib/fopen.c: Likewise.
62548         * lib/fpending.c: Likewise.
62549         * lib/fpending.h: Likewise.
62550         * lib/fprintf.c: Likewise.
62551         * lib/fprintftime.h: Likewise.
62552         * lib/fpucw.h: Likewise.
62553         * lib/fpurge.c: Likewise.
62554         * lib/fpurge.h: Likewise.
62555         * lib/freadable.c: Likewise.
62556         * lib/freadable.h: Likewise.
62557         * lib/freadahead.c: Likewise.
62558         * lib/freadahead.h: Likewise.
62559         * lib/freading.c: Likewise.
62560         * lib/freading.h: Likewise.
62561         * lib/free.c: Likewise.
62562         * lib/freopen.c: Likewise.
62563         * lib/frexp.c: Likewise.
62564         * lib/frexpl.c: Likewise.
62565         * lib/fseek.c: Likewise.
62566         * lib/fseterr.c: Likewise.
62567         * lib/fseterr.h: Likewise.
62568         * lib/fstatat.c: Likewise.
62569         * lib/fstrcmp.c: Likewise.
62570         * lib/fstrcmp.h: Likewise.
62571         * lib/fsusage.c: Likewise.
62572         * lib/fsusage.h: Likewise.
62573         * lib/ftell.c: Likewise.
62574         * lib/ftello.c: Likewise.
62575         * lib/fts-cycle.c: Likewise.
62576         * lib/fts.c: Likewise.
62577         * lib/fts_.h: Likewise.
62578         * lib/full-read.c: Likewise.
62579         * lib/full-read.h: Likewise.
62580         * lib/full-write.c: Likewise.
62581         * lib/full-write.h: Likewise.
62582         * lib/fwritable.c: Likewise.
62583         * lib/fwritable.h: Likewise.
62584         * lib/fwriteerror.c: Likewise.
62585         * lib/fwriteerror.h: Likewise.
62586         * lib/fwriting.c: Likewise.
62587         * lib/fwriting.h: Likewise.
62588         * lib/gcd.c: Likewise.
62589         * lib/gcd.h: Likewise.
62590         * lib/getcwd.c: Likewise.
62591         * lib/getdate.h: Likewise.
62592         * lib/getdate.y: Likewise.
62593         * lib/getdomainname.c: Likewise.
62594         * lib/getdomainname.h: Likewise.
62595         * lib/getgroups.c: Likewise.
62596         * lib/gethostname.c: Likewise.
62597         * lib/gethrxtime.c: Likewise.
62598         * lib/gethrxtime.h: Likewise.
62599         * lib/getloadavg.c: Likewise.
62600         * lib/getndelim2.c: Likewise.
62601         * lib/getndelim2.h: Likewise.
62602         * lib/getnline.c: Likewise.
62603         * lib/getnline.h: Likewise.
62604         * lib/getopt.c: Likewise.
62605         * lib/getopt.in.h: Likewise.
62606         * lib/getopt1.c: Likewise.
62607         * lib/getopt_int.h: Likewise.
62608         * lib/getpagesize.h: Likewise.
62609         * lib/getsubopt.c: Likewise.
62610         * lib/gettime.c: Likewise.
62611         * lib/getugroups.c: Likewise.
62612         * lib/getugroups.h: Likewise.
62613         * lib/getusershell.c: Likewise.
62614         * lib/gl_anyavltree_list1.h: Likewise.
62615         * lib/gl_anyavltree_list2.h: Likewise.
62616         * lib/gl_anyhash_list1.h: Likewise.
62617         * lib/gl_anyhash_list2.h: Likewise.
62618         * lib/gl_anylinked_list1.h: Likewise.
62619         * lib/gl_anylinked_list2.h: Likewise.
62620         * lib/gl_anyrbtree_list1.h: Likewise.
62621         * lib/gl_anyrbtree_list2.h: Likewise.
62622         * lib/gl_anytree_list1.h: Likewise.
62623         * lib/gl_anytree_list2.h: Likewise.
62624         * lib/gl_anytree_oset.h: Likewise.
62625         * lib/gl_anytreehash_list1.h: Likewise.
62626         * lib/gl_anytreehash_list2.h: Likewise.
62627         * lib/gl_array_list.c: Likewise.
62628         * lib/gl_array_list.h: Likewise.
62629         * lib/gl_array_oset.c: Likewise.
62630         * lib/gl_array_oset.h: Likewise.
62631         * lib/gl_avltree_list.c: Likewise.
62632         * lib/gl_avltree_list.h: Likewise.
62633         * lib/gl_avltree_oset.c: Likewise.
62634         * lib/gl_avltree_oset.h: Likewise.
62635         * lib/gl_avltreehash_list.c: Likewise.
62636         * lib/gl_avltreehash_list.h: Likewise.
62637         * lib/gl_carray_list.c: Likewise.
62638         * lib/gl_carray_list.h: Likewise.
62639         * lib/gl_linked_list.c: Likewise.
62640         * lib/gl_linked_list.h: Likewise.
62641         * lib/gl_linkedhash_list.c: Likewise.
62642         * lib/gl_linkedhash_list.h: Likewise.
62643         * lib/gl_list.c: Likewise.
62644         * lib/gl_list.h: Likewise.
62645         * lib/gl_oset.c: Likewise.
62646         * lib/gl_oset.h: Likewise.
62647         * lib/gl_rbtree_list.c: Likewise.
62648         * lib/gl_rbtree_list.h: Likewise.
62649         * lib/gl_rbtree_oset.c: Likewise.
62650         * lib/gl_rbtree_oset.h: Likewise.
62651         * lib/gl_rbtreehash_list.c: Likewise.
62652         * lib/gl_rbtreehash_list.h: Likewise.
62653         * lib/gl_sublist.c: Likewise.
62654         * lib/gl_sublist.h: Likewise.
62655         * lib/group-member.c: Likewise.
62656         * lib/group-member.h: Likewise.
62657         * lib/hard-locale.c: Likewise.
62658         * lib/hard-locale.h: Likewise.
62659         * lib/hash-pjw.c: Likewise.
62660         * lib/hash-pjw.h: Likewise.
62661         * lib/hash-triple.c: Likewise.
62662         * lib/hash.c: Likewise.
62663         * lib/hash.h: Likewise.
62664         * lib/human.c: Likewise.
62665         * lib/human.h: Likewise.
62666         * lib/i-ring.c: Likewise.
62667         * lib/i-ring.h: Likewise.
62668         * lib/idcache.c: Likewise.
62669         * lib/imaxabs.c: Likewise.
62670         * lib/imaxdiv.c: Likewise.
62671         * lib/inet_pton.c: Likewise.
62672         * lib/inet_pton.h: Likewise.
62673         * lib/intprops.h: Likewise.
62674         * lib/inttostr.c: Likewise.
62675         * lib/inttostr.h: Likewise.
62676         * lib/inttypes.in.h: Likewise.
62677         * lib/isapipe.c: Likewise.
62678         * lib/isdir.c: Likewise.
62679         * lib/isnan.c: Likewise.
62680         * lib/isnan.h: Likewise.
62681         * lib/isnanf.c: Likewise.
62682         * lib/isnanf.h: Likewise.
62683         * lib/isnanl-nolibm.h: Likewise.
62684         * lib/isnanl.c: Likewise.
62685         * lib/isnanl.h: Likewise.
62686         * lib/javacomp.c: Likewise.
62687         * lib/javacomp.h: Likewise.
62688         * lib/javaexec.c: Likewise.
62689         * lib/javaexec.h: Likewise.
62690         * lib/javaversion.c: Likewise.
62691         * lib/javaversion.h: Likewise.
62692         * lib/javaversion.java: Likewise.
62693         * lib/lbrkprop.h: Likewise.
62694         * lib/lchmod.h: Likewise.
62695         * lib/lchown.c: Likewise.
62696         * lib/ldexpl.c: Likewise.
62697         * lib/linebreak.c: Likewise.
62698         * lib/linebreak.h: Likewise.
62699         * lib/linebuffer.c: Likewise.
62700         * lib/linebuffer.h: Likewise.
62701         * lib/locale.in.h: Likewise.
62702         * lib/logl.c: Likewise.
62703         * lib/long-options.c: Likewise.
62704         * lib/long-options.h: Likewise.
62705         * lib/lstat.c: Likewise.
62706         * lib/lstat.h: Likewise.
62707         * lib/math.in.h: Likewise.
62708         * lib/mbchar.c: Likewise.
62709         * lib/mbchar.h: Likewise.
62710         * lib/mbfile.h: Likewise.
62711         * lib/mbiter.h: Likewise.
62712         * lib/mbscasecmp.c: Likewise.
62713         * lib/mbscasestr.c: Likewise.
62714         * lib/mbschr.c: Likewise.
62715         * lib/mbscspn.c: Likewise.
62716         * lib/mbslen.c: Likewise.
62717         * lib/mbsncasecmp.c: Likewise.
62718         * lib/mbsnlen.c: Likewise.
62719         * lib/mbspbrk.c: Likewise.
62720         * lib/mbspcasecmp.c: Likewise.
62721         * lib/mbsrchr.c: Likewise.
62722         * lib/mbssep.c: Likewise.
62723         * lib/mbsspn.c: Likewise.
62724         * lib/mbsstr.c: Likewise.
62725         * lib/mbstok_r.c: Likewise.
62726         * lib/mbswidth.c: Likewise.
62727         * lib/mbswidth.h: Likewise.
62728         * lib/mbuiter.h: Likewise.
62729         * lib/memcasecmp.c: Likewise.
62730         * lib/memcasecmp.h: Likewise.
62731         * lib/memchr.c: Likewise.
62732         * lib/memcmp.c: Likewise.
62733         * lib/memcoll.c: Likewise.
62734         * lib/memcoll.h: Likewise.
62735         * lib/memcpy.c: Likewise.
62736         * lib/memrchr.c: Likewise.
62737         * lib/mkancesdirs.c: Likewise.
62738         * lib/mkdir-p.c: Likewise.
62739         * lib/mkdir-p.h: Likewise.
62740         * lib/mkdir.c: Likewise.
62741         * lib/mkdirat.c: Likewise.
62742         * lib/mkdtemp.c: Likewise.
62743         * lib/mkstemp-safer.c: Likewise.
62744         * lib/mkstemp.c: Likewise.
62745         * lib/modechange.c: Likewise.
62746         * lib/modechange.h: Likewise.
62747         * lib/mountlist.c: Likewise.
62748         * lib/mountlist.h: Likewise.
62749         * lib/mpsort.c: Likewise.
62750         * lib/nanosleep.c: Likewise.
62751         * lib/obstack.c: Likewise.
62752         * lib/obstack.h: Likewise.
62753         * lib/open-safer.c: Likewise.
62754         * lib/open.c: Likewise.
62755         * lib/openat-die.c: Likewise.
62756         * lib/openat-priv.h: Likewise.
62757         * lib/openat-proc.c: Likewise.
62758         * lib/openat.c: Likewise.
62759         * lib/openat.h: Likewise.
62760         * lib/pagealign_alloc.c: Likewise.
62761         * lib/pagealign_alloc.h: Likewise.
62762         * lib/physmem.c: Likewise.
62763         * lib/physmem.h: Likewise.
62764         * lib/pipe-safer.c: Likewise.
62765         * lib/pipe.c: Likewise.
62766         * lib/pipe.h: Likewise.
62767         * lib/posixtm.c: Likewise.
62768         * lib/posixtm.h: Likewise.
62769         * lib/posixver.c: Likewise.
62770         * lib/printf-frexp.c: Likewise.
62771         * lib/printf-frexp.h: Likewise.
62772         * lib/printf-frexpl.c: Likewise.
62773         * lib/printf-frexpl.h: Likewise.
62774         * lib/printf.c: Likewise.
62775         * lib/progname.c: Likewise.
62776         * lib/progname.h: Likewise.
62777         * lib/progreloc.c: Likewise.
62778         * lib/putenv.c: Likewise.
62779         * lib/quote.c: Likewise.
62780         * lib/quote.h: Likewise.
62781         * lib/quotearg.c: Likewise.
62782         * lib/quotearg.h: Likewise.
62783         * lib/raise.c: Likewise.
62784         * lib/readline.c: Likewise.
62785         * lib/readline.h: Likewise.
62786         * lib/readlink.c: Likewise.
62787         * lib/readtokens.c: Likewise.
62788         * lib/readtokens.h: Likewise.
62789         * lib/readtokens0.c: Likewise.
62790         * lib/readtokens0.h: Likewise.
62791         * lib/readutmp.c: Likewise.
62792         * lib/readutmp.h: Likewise.
62793         * lib/realloc.c: Likewise.
62794         * lib/relocwrapper.c: Likewise.
62795         * lib/rename-dest-slash.c: Likewise.
62796         * lib/rename.c: Likewise.
62797         * lib/rmdir.c: Likewise.
62798         * lib/rpmatch.c: Likewise.
62799         * lib/safe-read.c: Likewise.
62800         * lib/safe-read.h: Likewise.
62801         * lib/safe-write.c: Likewise.
62802         * lib/safe-write.h: Likewise.
62803         * lib/same-inode.h: Likewise.
62804         * lib/same.c: Likewise.
62805         * lib/same.h: Likewise.
62806         * lib/save-cwd.c: Likewise.
62807         * lib/save-cwd.h: Likewise.
62808         * lib/savedir.c: Likewise.
62809         * lib/savedir.h: Likewise.
62810         * lib/savewd.c: Likewise.
62811         * lib/savewd.h: Likewise.
62812         * lib/search.in.h: Likewise.
62813         * lib/setenv.c: Likewise.
62814         * lib/setenv.h: Likewise.
62815         * lib/settime.c: Likewise.
62816         * lib/sh-quote.c: Likewise.
62817         * lib/sh-quote.h: Likewise.
62818         * lib/sig2str.c: Likewise.
62819         * lib/sig2str.h: Likewise.
62820         * lib/signal.in.h: Likewise.
62821         * lib/signbitd.c: Likewise.
62822         * lib/signbitf.c: Likewise.
62823         * lib/signbitl.c: Likewise.
62824         * lib/sigprocmask.c: Likewise.
62825         * lib/sincosl.c: Likewise.
62826         * lib/sleep.c: Likewise.
62827         * lib/sprintf.c: Likewise.
62828         * lib/sqrtl.c: Likewise.
62829         * lib/stat-time.h: Likewise.
62830         * lib/stdio--.h: Likewise.
62831         * lib/stdio-safer.h: Likewise.
62832         * lib/stdlib--.h: Likewise.
62833         * lib/stdlib-safer.h: Likewise.
62834         * lib/stdlib.in.h: Likewise.
62835         * lib/stpcpy.c: Likewise.
62836         * lib/stpncpy.c: Likewise.
62837         * lib/strchrnul.c: Likewise.
62838         * lib/strcspn.c: Likewise.
62839         * lib/strerror.c: Likewise.
62840         * lib/strftime.c: Likewise.
62841         * lib/strftime.h: Likewise.
62842         * lib/striconveh.c: Likewise.
62843         * lib/striconveh.h: Likewise.
62844         * lib/striconveha.c: Likewise.
62845         * lib/striconveha.h: Likewise.
62846         * lib/stripslash.c: Likewise.
62847         * lib/strnlen1.c: Likewise.
62848         * lib/strnlen1.h: Likewise.
62849         * lib/strtod.c: Likewise.
62850         * lib/strtoimax.c: Likewise.
62851         * lib/strtok_r.c: Likewise.
62852         * lib/strtol.c: Likewise.
62853         * lib/strtoll.c: Likewise.
62854         * lib/strtoul.c: Likewise.
62855         * lib/strtoull.c: Likewise.
62856         * lib/sysexits.in.h: Likewise.
62857         * lib/tempname.c: Likewise.
62858         * lib/tempname.h: Likewise.
62859         * lib/timespec.h: Likewise.
62860         * lib/tls.c: Likewise.
62861         * lib/tls.h: Likewise.
62862         * lib/tmpdir.c: Likewise.
62863         * lib/tmpdir.h: Likewise.
62864         * lib/tmpfile-safer.c: Likewise.
62865         * lib/tmpfile.c: Likewise.
62866         * lib/trigl.c: Likewise.
62867         * lib/trigl.h: Likewise.
62868         * lib/trim.c: Likewise.
62869         * lib/trim.h: Likewise.
62870         * lib/trunc.c: Likewise.
62871         * lib/truncf.c: Likewise.
62872         * lib/truncl.c: Likewise.
62873         * lib/tsearch.c: Likewise.
62874         * lib/unicodeio.c: Likewise.
62875         * lib/unicodeio.h: Likewise.
62876         * lib/unistd--.h: Likewise.
62877         * lib/unistd-safer.h: Likewise.
62878         * lib/unistdio/ulc-fprintf.c: Likewise.
62879         * lib/unistdio/ulc-vfprintf.c: Likewise.
62880         * lib/unlinkdir.c: Likewise.
62881         * lib/unlinkdir.h: Likewise.
62882         * lib/unlocked-io.h: Likewise.
62883         * lib/unsetenv.c: Likewise.
62884         * lib/userspec.c: Likewise.
62885         * lib/utime.c: Likewise.
62886         * lib/utimecmp.c: Likewise.
62887         * lib/utimecmp.h: Likewise.
62888         * lib/utimens.c: Likewise.
62889         * lib/verify.h: Likewise.
62890         * lib/verror.c: Likewise.
62891         * lib/verror.h: Likewise.
62892         * lib/version-etc-fsf.c: Likewise.
62893         * lib/version-etc.c: Likewise.
62894         * lib/version-etc.h: Likewise.
62895         * lib/vfprintf.c: Likewise.
62896         * lib/vprintf.c: Likewise.
62897         * lib/vsprintf.c: Likewise.
62898         * lib/w32spawn.h: Likewise.
62899         * lib/wait-process.c: Likewise.
62900         * lib/wait-process.h: Likewise.
62901         * lib/wcwidth.c: Likewise.
62902         * lib/write-any-file.c: Likewise.
62903         * lib/xalloc-die.c: Likewise.
62904         * lib/xalloc.h: Likewise.
62905         * lib/xasprintf.c: Likewise.
62906         * lib/xgetcwd.c: Likewise.
62907         * lib/xgetcwd.h: Likewise.
62908         * lib/xgetdomainname.c: Likewise.
62909         * lib/xgetdomainname.h: Likewise.
62910         * lib/xgethostname.c: Likewise.
62911         * lib/xmalloc.c: Likewise.
62912         * lib/xmalloca.c: Likewise.
62913         * lib/xmalloca.h: Likewise.
62914         * lib/xmemcoll.c: Likewise.
62915         * lib/xnanosleep.c: Likewise.
62916         * lib/xreadlink.c: Likewise.
62917         * lib/xreadlink.h: Likewise.
62918         * lib/xsetenv.c: Likewise.
62919         * lib/xsetenv.h: Likewise.
62920         * lib/xstriconv.c: Likewise.
62921         * lib/xstriconv.h: Likewise.
62922         * lib/xstrndup.c: Likewise.
62923         * lib/xstrndup.h: Likewise.
62924         * lib/xstrtod.c: Likewise.
62925         * lib/xstrtod.h: Likewise.
62926         * lib/xstrtol-error.c: Likewise.
62927         * lib/xstrtol.c: Likewise.
62928         * lib/xstrtol.h: Likewise.
62929         * lib/xtime.h: Likewise.
62930         * lib/xvasprintf.c: Likewise.
62931         * lib/xvasprintf.h: Likewise.
62932         * lib/yesno.c: Likewise.
62933         * lib/yesno.h: Likewise.
62934         * posix-modules: Likewise.
62935         * tests/test-alloca-opt.c: Likewise.
62936         * tests/test-arcfour.c: Likewise.
62937         * tests/test-arctwo.c: Likewise.
62938         * tests/test-argmatch.c: Likewise.
62939         * tests/test-argp-2.sh: Likewise.
62940         * tests/test-argp.c: Likewise.
62941         * tests/test-arpa_inet.c: Likewise.
62942         * tests/test-array_list.c: Likewise.
62943         * tests/test-array_oset.c: Likewise.
62944         * tests/test-atexit.c: Likewise.
62945         * tests/test-avltree_list.c: Likewise.
62946         * tests/test-avltree_oset.c: Likewise.
62947         * tests/test-avltreehash_list.c: Likewise.
62948         * tests/test-base64.c: Likewise.
62949         * tests/test-binary-io.c: Likewise.
62950         * tests/test-byteswap.c: Likewise.
62951         * tests/test-c-ctype.c: Likewise.
62952         * tests/test-c-strcasecmp.c: Likewise.
62953         * tests/test-c-strcasestr.c: Likewise.
62954         * tests/test-c-strncasecmp.c: Likewise.
62955         * tests/test-c-strstr.c: Likewise.
62956         * tests/test-canonicalize-lgpl.c: Likewise.
62957         * tests/test-canonicalize.c: Likewise.
62958         * tests/test-carray_list.c: Likewise.
62959         * tests/test-ceilf.c: Likewise.
62960         * tests/test-ceill.c: Likewise.
62961         * tests/test-count-one-bits.c: Likewise.
62962         * tests/test-crc.c: Likewise.
62963         * tests/test-dirname.c: Likewise.
62964         * tests/test-fbufmode.c: Likewise.
62965         * tests/test-fcntl.c: Likewise.
62966         * tests/test-fflush.c: Likewise.
62967         * tests/test-floorf.c: Likewise.
62968         * tests/test-floorl.c: Likewise.
62969         * tests/test-fopen.c: Likewise.
62970         * tests/test-fprintf-posix.c: Likewise.
62971         * tests/test-fprintf-posix.h: Likewise.
62972         * tests/test-fpurge.c: Likewise.
62973         * tests/test-freadable.c: Likewise.
62974         * tests/test-freadahead.c: Likewise.
62975         * tests/test-freading.c: Likewise.
62976         * tests/test-freopen.c: Likewise.
62977         * tests/test-frexp.c: Likewise.
62978         * tests/test-frexpl.c: Likewise.
62979         * tests/test-fseek.c: Likewise.
62980         * tests/test-fseeko.c: Likewise.
62981         * tests/test-fseterr.c: Likewise.
62982         * tests/test-fstrcmp.c: Likewise.
62983         * tests/test-ftell.c: Likewise.
62984         * tests/test-ftello.c: Likewise.
62985         * tests/test-fwritable.c: Likewise.
62986         * tests/test-fwriting.c: Likewise.
62987         * tests/test-getaddrinfo.c: Likewise.
62988         * tests/test-getpass.c: Likewise.
62989         * tests/test-gettimeofday.c: Likewise.
62990         * tests/test-hmac-md5.c: Likewise.
62991         * tests/test-hmac-sha1.c: Likewise.
62992         * tests/test-iconv.c: Likewise.
62993         * tests/test-iconvme.c: Likewise.
62994         * tests/test-inttypes.c: Likewise.
62995         * tests/test-isnan.c: Likewise.
62996         * tests/test-isnanf.c: Likewise.
62997         * tests/test-isnanl-nolibm.c: Likewise.
62998         * tests/test-isnanl.c: Likewise.
62999         * tests/test-isnanl.h: Likewise.
63000         * tests/test-ldexpl.c: Likewise.
63001         * tests/test-linked_list.c: Likewise.
63002         * tests/test-linkedhash_list.c: Likewise.
63003         * tests/test-locale.c: Likewise.
63004         * tests/test-localename.c: Likewise.
63005         * tests/test-lock.c: Likewise.
63006         * tests/test-lseek.c: Likewise.
63007         * tests/test-malloca.c: Likewise.
63008         * tests/test-math.c: Likewise.
63009         * tests/test-mbscasecmp.c: Likewise.
63010         * tests/test-mbscasestr1.c: Likewise.
63011         * tests/test-mbscasestr2.c: Likewise.
63012         * tests/test-mbscasestr3.c: Likewise.
63013         * tests/test-mbscasestr4.c: Likewise.
63014         * tests/test-mbschr.c: Likewise.
63015         * tests/test-mbscspn.c: Likewise.
63016         * tests/test-mbsncasecmp.c: Likewise.
63017         * tests/test-mbspbrk.c: Likewise.
63018         * tests/test-mbspcasecmp.c: Likewise.
63019         * tests/test-mbsrchr.c: Likewise.
63020         * tests/test-mbsspn.c: Likewise.
63021         * tests/test-mbsstr1.c: Likewise.
63022         * tests/test-mbsstr2.c: Likewise.
63023         * tests/test-mbsstr3.c: Likewise.
63024         * tests/test-md5.c: Likewise.
63025         * tests/test-memmem.c: Likewise.
63026         * tests/test-netinet_in.c: Likewise.
63027         * tests/test-open.c: Likewise.
63028         * tests/test-printf-frexp.c: Likewise.
63029         * tests/test-printf-frexpl.c: Likewise.
63030         * tests/test-printf-posix.c: Likewise.
63031         * tests/test-printf-posix.h: Likewise.
63032         * tests/test-rbtree_list.c: Likewise.
63033         * tests/test-rbtree_oset.c: Likewise.
63034         * tests/test-rbtreehash_list.c: Likewise.
63035         * tests/test-read-file.c: Likewise.
63036         * tests/test-rijndael.c: Likewise.
63037         * tests/test-search.c: Likewise.
63038         * tests/test-signbit.c: Likewise.
63039         * tests/test-sleep.c: Likewise.
63040         * tests/test-snprintf-posix.c: Likewise.
63041         * tests/test-snprintf-posix.h: Likewise.
63042         * tests/test-snprintf.c: Likewise.
63043         * tests/test-sprintf-posix.c: Likewise.
63044         * tests/test-sprintf-posix.h: Likewise.
63045         * tests/test-stat-time.c: Likewise.
63046         * tests/test-stdbool.c: Likewise.
63047         * tests/test-stdint.c: Likewise.
63048         * tests/test-stdio.c: Likewise.
63049         * tests/test-stdlib.c: Likewise.
63050         * tests/test-stpncpy.c: Likewise.
63051         * tests/test-strcasestr.c: Likewise.
63052         * tests/test-striconv.c: Likewise.
63053         * tests/test-striconveh.c: Likewise.
63054         * tests/test-striconveha.c: Likewise.
63055         * tests/test-string.c: Likewise.
63056         * tests/test-sys_select.c: Likewise.
63057         * tests/test-sys_socket.c: Likewise.
63058         * tests/test-sys_stat.c: Likewise.
63059         * tests/test-sys_time.c: Likewise.
63060         * tests/test-sysexits.c: Likewise.
63061         * tests/test-time.c: Likewise.
63062         * tests/test-tls.c: Likewise.
63063         * tests/test-trunc.c: Likewise.
63064         * tests/test-truncf.c: Likewise.
63065         * tests/test-truncl.c: Likewise.
63066         * tests/test-unistd.c: Likewise.
63067         * tests/test-vasnprintf-posix.c: Likewise.
63068         * tests/test-vasnprintf-posix2.c: Likewise.
63069         * tests/test-vasnprintf.c: Likewise.
63070         * tests/test-vasprintf-posix.c: Likewise.
63071         * tests/test-vasprintf.c: Likewise.
63072         * tests/test-verify.c: Likewise.
63073         * tests/test-vfprintf-posix.c: Likewise.
63074         * tests/test-vprintf-posix.c: Likewise.
63075         * tests/test-vsnprintf-posix.c: Likewise.
63076         * tests/test-vsnprintf.c: Likewise.
63077         * tests/test-vsprintf-posix.c: Likewise.
63078         * tests/test-wchar.c: Likewise.
63079         * tests/test-wctype.c: Likewise.
63080         * tests/test-wcwidth.c: Likewise.
63081         * tests/test-xstrtol.c: Likewise.
63082         * tests/test-xvasprintf.c: Likewise.
63083         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63084         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63085         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63086         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63087         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63088         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63089         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63090         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63091         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63092         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63093         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63094         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63095         * tests/uniname/test-uninames.c: Likewise.
63096         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63097         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63098         * tests/unistdio/test-u16-printf1.h: Likewise.
63099         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63100         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63101         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63102         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63103         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63104         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63105         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63106         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63107         * tests/unistdio/test-u32-printf1.h: Likewise.
63108         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63109         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63110         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63111         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63112         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63113         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63114         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63115         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63116         * tests/unistdio/test-u8-printf1.h: Likewise.
63117         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63118         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63119         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63120         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63121         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63122         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63123         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63124         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63125         * tests/unistdio/test-ulc-printf1.h: Likewise.
63126         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63127         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63128         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63129         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63130         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63131         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63132         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63133         * tests/uniwidth/test-u16-width.c: Likewise.
63134         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63135         * tests/uniwidth/test-u32-width.c: Likewise.
63136         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63137         * tests/uniwidth/test-u8-width.c: Likewise.
63138         * tests/uniwidth/test-uc_width.c: Likewise.
63139         * config/srclist-update: Likewise.
63140         (fixlicense): Update to GPLv3+.
63141
63142         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63143         * tests/test-tsearch.c: Change copyright notice.
63144
63145         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63146         * lib/c-strcaseeq.h: Change copyright notice.
63147         * lib/streq.h: Likewise.
63148         * lib/uniconv.h: Likewise.
63149         * lib/uniconv/u-conv-from-enc.h: Likewise.
63150         * lib/uniconv/u-conv-to-enc.h: Likewise.
63151         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63152         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63153         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63154         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63155         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63156         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63157         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63158         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63159         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63160         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63161         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63162         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63163         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63164         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63165         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63166         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63167         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63168         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63169         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63170         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63171         * lib/uniname.h: Likewise.
63172         * lib/uniname/uniname.c: Likewise.
63173         * lib/unistdio.h: Likewise.
63174         * lib/unistdio/u-asnprintf.h: Likewise.
63175         * lib/unistdio/u-asprintf.h: Likewise.
63176         * lib/unistdio/u-printf-args.c: Likewise.
63177         * lib/unistdio/u-printf-args.h: Likewise.
63178         * lib/unistdio/u-printf-parse.h: Likewise.
63179         * lib/unistdio/u-snprintf.h: Likewise.
63180         * lib/unistdio/u-sprintf.h: Likewise.
63181         * lib/unistdio/u-vasprintf.h: Likewise.
63182         * lib/unistdio/u-vsnprintf.h: Likewise.
63183         * lib/unistdio/u-vsprintf.h: Likewise.
63184         * lib/unistdio/u16-asnprintf.c: Likewise.
63185         * lib/unistdio/u16-asprintf.c: Likewise.
63186         * lib/unistdio/u16-printf-parse.c: Likewise.
63187         * lib/unistdio/u16-snprintf.c: Likewise.
63188         * lib/unistdio/u16-sprintf.c: Likewise.
63189         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63190         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63191         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63192         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63193         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63194         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63195         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63196         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63197         * lib/unistdio/u16-vasnprintf.c: Likewise.
63198         * lib/unistdio/u16-vasprintf.c: Likewise.
63199         * lib/unistdio/u16-vsnprintf.c: Likewise.
63200         * lib/unistdio/u16-vsprintf.c: Likewise.
63201         * lib/unistdio/u32-asnprintf.c: Likewise.
63202         * lib/unistdio/u32-asprintf.c: Likewise.
63203         * lib/unistdio/u32-printf-parse.c: Likewise.
63204         * lib/unistdio/u32-snprintf.c: Likewise.
63205         * lib/unistdio/u32-sprintf.c: Likewise.
63206         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63207         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63208         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63209         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63210         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63211         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63212         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63213         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63214         * lib/unistdio/u32-vasnprintf.c: Likewise.
63215         * lib/unistdio/u32-vasprintf.c: Likewise.
63216         * lib/unistdio/u32-vsnprintf.c: Likewise.
63217         * lib/unistdio/u32-vsprintf.c: Likewise.
63218         * lib/unistdio/u8-asnprintf.c: Likewise.
63219         * lib/unistdio/u8-asprintf.c: Likewise.
63220         * lib/unistdio/u8-printf-parse.c: Likewise.
63221         * lib/unistdio/u8-snprintf.c: Likewise.
63222         * lib/unistdio/u8-sprintf.c: Likewise.
63223         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63224         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63225         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63226         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63227         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63228         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63229         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63230         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63231         * lib/unistdio/u8-vasnprintf.c: Likewise.
63232         * lib/unistdio/u8-vasprintf.c: Likewise.
63233         * lib/unistdio/u8-vsnprintf.c: Likewise.
63234         * lib/unistdio/u8-vsprintf.c: Likewise.
63235         * lib/unistdio/ulc-asnprintf.c: Likewise.
63236         * lib/unistdio/ulc-asprintf.c: Likewise.
63237         * lib/unistdio/ulc-printf-parse.c: Likewise.
63238         * lib/unistdio/ulc-snprintf.c: Likewise.
63239         * lib/unistdio/ulc-sprintf.c: Likewise.
63240         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63241         * lib/unistdio/ulc-vasprintf.c: Likewise.
63242         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63243         * lib/unistdio/ulc-vsprintf.c: Likewise.
63244         * lib/unistr.h: Likewise.
63245         * lib/unistr/u-cpy-alloc.h: Likewise.
63246         * lib/unistr/u-cpy.h: Likewise.
63247         * lib/unistr/u-endswith.h: Likewise.
63248         * lib/unistr/u-move.h: Likewise.
63249         * lib/unistr/u-set.h: Likewise.
63250         * lib/unistr/u-startswith.h: Likewise.
63251         * lib/unistr/u-stpcpy.h: Likewise.
63252         * lib/unistr/u-stpncpy.h: Likewise.
63253         * lib/unistr/u-strcat.h: Likewise.
63254         * lib/unistr/u-strcpy.h: Likewise.
63255         * lib/unistr/u-strcspn.h: Likewise.
63256         * lib/unistr/u-strdup.h: Likewise.
63257         * lib/unistr/u-strlen.h: Likewise.
63258         * lib/unistr/u-strncat.h: Likewise.
63259         * lib/unistr/u-strncpy.h: Likewise.
63260         * lib/unistr/u-strnlen.h: Likewise.
63261         * lib/unistr/u-strpbrk.h: Likewise.
63262         * lib/unistr/u-strspn.h: Likewise.
63263         * lib/unistr/u-strstr.h: Likewise.
63264         * lib/unistr/u-strtok.h: Likewise.
63265         * lib/unistr/u16-check.c: Likewise.
63266         * lib/unistr/u16-chr.c: Likewise.
63267         * lib/unistr/u16-cmp.c: Likewise.
63268         * lib/unistr/u16-cpy-alloc.c: Likewise.
63269         * lib/unistr/u16-cpy.c: Likewise.
63270         * lib/unistr/u16-endswith.c: Likewise.
63271         * lib/unistr/u16-mblen.c: Likewise.
63272         * lib/unistr/u16-mbsnlen.c: Likewise.
63273         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63274         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63275         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63276         * lib/unistr/u16-mbtouc.c: Likewise.
63277         * lib/unistr/u16-mbtoucr.c: Likewise.
63278         * lib/unistr/u16-move.c: Likewise.
63279         * lib/unistr/u16-next.c: Likewise.
63280         * lib/unistr/u16-prev.c: Likewise.
63281         * lib/unistr/u16-set.c: Likewise.
63282         * lib/unistr/u16-startswith.c: Likewise.
63283         * lib/unistr/u16-stpcpy.c: Likewise.
63284         * lib/unistr/u16-stpncpy.c: Likewise.
63285         * lib/unistr/u16-strcat.c: Likewise.
63286         * lib/unistr/u16-strchr.c: Likewise.
63287         * lib/unistr/u16-strcmp.c: Likewise.
63288         * lib/unistr/u16-strcpy.c: Likewise.
63289         * lib/unistr/u16-strcspn.c: Likewise.
63290         * lib/unistr/u16-strdup.c: Likewise.
63291         * lib/unistr/u16-strlen.c: Likewise.
63292         * lib/unistr/u16-strmblen.c: Likewise.
63293         * lib/unistr/u16-strmbtouc.c: Likewise.
63294         * lib/unistr/u16-strncat.c: Likewise.
63295         * lib/unistr/u16-strncmp.c: Likewise.
63296         * lib/unistr/u16-strncpy.c: Likewise.
63297         * lib/unistr/u16-strnlen.c: Likewise.
63298         * lib/unistr/u16-strpbrk.c: Likewise.
63299         * lib/unistr/u16-strrchr.c: Likewise.
63300         * lib/unistr/u16-strspn.c: Likewise.
63301         * lib/unistr/u16-strstr.c: Likewise.
63302         * lib/unistr/u16-strtok.c: Likewise.
63303         * lib/unistr/u16-to-u32.c: Likewise.
63304         * lib/unistr/u16-to-u8.c: Likewise.
63305         * lib/unistr/u16-uctomb-aux.c: Likewise.
63306         * lib/unistr/u16-uctomb.c: Likewise.
63307         * lib/unistr/u32-check.c: Likewise.
63308         * lib/unistr/u32-chr.c: Likewise.
63309         * lib/unistr/u32-cmp.c: Likewise.
63310         * lib/unistr/u32-cpy-alloc.c: Likewise.
63311         * lib/unistr/u32-cpy.c: Likewise.
63312         * lib/unistr/u32-endswith.c: Likewise.
63313         * lib/unistr/u32-mblen.c: Likewise.
63314         * lib/unistr/u32-mbsnlen.c: Likewise.
63315         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63316         * lib/unistr/u32-mbtouc.c: Likewise.
63317         * lib/unistr/u32-mbtoucr.c: Likewise.
63318         * lib/unistr/u32-move.c: Likewise.
63319         * lib/unistr/u32-next.c: Likewise.
63320         * lib/unistr/u32-prev.c: Likewise.
63321         * lib/unistr/u32-set.c: Likewise.
63322         * lib/unistr/u32-startswith.c: Likewise.
63323         * lib/unistr/u32-stpcpy.c: Likewise.
63324         * lib/unistr/u32-stpncpy.c: Likewise.
63325         * lib/unistr/u32-strcat.c: Likewise.
63326         * lib/unistr/u32-strchr.c: Likewise.
63327         * lib/unistr/u32-strcmp.c: Likewise.
63328         * lib/unistr/u32-strcpy.c: Likewise.
63329         * lib/unistr/u32-strcspn.c: Likewise.
63330         * lib/unistr/u32-strdup.c: Likewise.
63331         * lib/unistr/u32-strlen.c: Likewise.
63332         * lib/unistr/u32-strmblen.c: Likewise.
63333         * lib/unistr/u32-strmbtouc.c: Likewise.
63334         * lib/unistr/u32-strncat.c: Likewise.
63335         * lib/unistr/u32-strncmp.c: Likewise.
63336         * lib/unistr/u32-strncpy.c: Likewise.
63337         * lib/unistr/u32-strnlen.c: Likewise.
63338         * lib/unistr/u32-strpbrk.c: Likewise.
63339         * lib/unistr/u32-strrchr.c: Likewise.
63340         * lib/unistr/u32-strspn.c: Likewise.
63341         * lib/unistr/u32-strstr.c: Likewise.
63342         * lib/unistr/u32-strtok.c: Likewise.
63343         * lib/unistr/u32-to-u16.c: Likewise.
63344         * lib/unistr/u32-to-u8.c: Likewise.
63345         * lib/unistr/u32-uctomb.c: Likewise.
63346         * lib/unistr/u8-check.c: Likewise.
63347         * lib/unistr/u8-chr.c: Likewise.
63348         * lib/unistr/u8-cmp.c: Likewise.
63349         * lib/unistr/u8-cpy-alloc.c: Likewise.
63350         * lib/unistr/u8-cpy.c: Likewise.
63351         * lib/unistr/u8-endswith.c: Likewise.
63352         * lib/unistr/u8-mblen.c: Likewise.
63353         * lib/unistr/u8-mbsnlen.c: Likewise.
63354         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63355         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63356         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63357         * lib/unistr/u8-mbtouc.c: Likewise.
63358         * lib/unistr/u8-mbtoucr.c: Likewise.
63359         * lib/unistr/u8-move.c: Likewise.
63360         * lib/unistr/u8-next.c: Likewise.
63361         * lib/unistr/u8-prev.c: Likewise.
63362         * lib/unistr/u8-set.c: Likewise.
63363         * lib/unistr/u8-startswith.c: Likewise.
63364         * lib/unistr/u8-stpcpy.c: Likewise.
63365         * lib/unistr/u8-stpncpy.c: Likewise.
63366         * lib/unistr/u8-strcat.c: Likewise.
63367         * lib/unistr/u8-strchr.c: Likewise.
63368         * lib/unistr/u8-strcmp.c: Likewise.
63369         * lib/unistr/u8-strcpy.c: Likewise.
63370         * lib/unistr/u8-strcspn.c: Likewise.
63371         * lib/unistr/u8-strdup.c: Likewise.
63372         * lib/unistr/u8-strlen.c: Likewise.
63373         * lib/unistr/u8-strmblen.c: Likewise.
63374         * lib/unistr/u8-strmbtouc.c: Likewise.
63375         * lib/unistr/u8-strncat.c: Likewise.
63376         * lib/unistr/u8-strncmp.c: Likewise.
63377         * lib/unistr/u8-strncpy.c: Likewise.
63378         * lib/unistr/u8-strnlen.c: Likewise.
63379         * lib/unistr/u8-strpbrk.c: Likewise.
63380         * lib/unistr/u8-strrchr.c: Likewise.
63381         * lib/unistr/u8-strspn.c: Likewise.
63382         * lib/unistr/u8-strstr.c: Likewise.
63383         * lib/unistr/u8-strtok.c: Likewise.
63384         * lib/unistr/u8-to-u16.c: Likewise.
63385         * lib/unistr/u8-to-u32.c: Likewise.
63386         * lib/unistr/u8-uctomb-aux.c: Likewise.
63387         * lib/unistr/u8-uctomb.c: Likewise.
63388         * lib/unitypes.h: Likewise.
63389         * lib/uniwidth.h: Likewise.
63390         * lib/uniwidth/cjk.h: Likewise.
63391         * lib/uniwidth/u16-strwidth.c: Likewise.
63392         * lib/uniwidth/u16-width.c: Likewise.
63393         * lib/uniwidth/u32-strwidth.c: Likewise.
63394         * lib/uniwidth/u32-width.c: Likewise.
63395         * lib/uniwidth/u8-strwidth.c: Likewise.
63396         * lib/uniwidth/u8-width.c: Likewise.
63397         * lib/uniwidth/width.c: Likewise.
63398
63399 2007-10-07  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63402         The file is still under LGPL (see modules/inttypes).
63403
63404 2007-10-06  Bruno Haible  <bruno@clisp.org>
63405
63406         * modules/trunc (Dependencies): Add 'extensions'.
63407         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63408         Reported by Ben Pfaff <blp@gnu.org>.
63409
63410 2007-10-06  Bruno Haible  <bruno@clisp.org>
63411
63412         * modules/freopen-tests: New file.
63413         * tests/test-freopen.c: New file.
63414
63415         * modules/fopen-tests: New file.
63416         * tests/test-fopen.c: New file.
63417
63418         * modules/fopen: New file.
63419         * lib/fopen.c: New file.
63420         * m4/fopen.m4: New file.
63421         * modules/freopen: New file.
63422         * lib/freopen.c: New file.
63423         * m4/freopen.m4: New file.
63424         * lib/stdio.in.h (fopen, freopen): New declarations.
63425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63426         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63427         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63428         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63429         * doc/functions/fopen.texi: Mention the 'fopen' module.
63430         * doc/functions/freopen.texi: Mention the 'freopen' module.
63431
63432 2007-10-06  Bruno Haible  <bruno@clisp.org>
63433
63434         * modules/open-tests: New file.
63435         * tests/test-open.c: New file.
63436
63437         * modules/open: New file.
63438         * lib/open.c: New file.
63439         * m4/open.m4: New file.
63440         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63441         lib/open.c does.
63442         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63443         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63444         macros.
63445         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63446         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63447         REPLACE_OPEN.
63448         * doc/functions/open.texi: Mention the 'open' module.
63449
63450 2007-10-04  Bruno Haible  <bruno@clisp.org>
63451
63452         * modules/ceill-tests: New file.
63453         * tests/test-ceill.c: New file.
63454
63455         * modules/ceill: New file.
63456         * lib/ceill.c: Replace entire file.
63457         * m4/ceill.m4: New file.
63458         * lib/math.in.h (ceill): Replace declaration.
63459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63460         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63461         * doc/functions/ceill.texi: Mention the 'ceill' module.
63462         * modules/mathl (Files): Remove lib/ceill.c.
63463         (Depends-on): Add ceill.
63464
63465 2007-10-04  Bruno Haible  <bruno@clisp.org>
63466
63467         * modules/ceilf-tests: New file.
63468         * tests/test-ceilf.c: New file.
63469
63470         * modules/ceilf: New file.
63471         * lib/ceil.c: New file.
63472         * lib/ceilf.c: New file.
63473         * m4/ceilf.m4: New file.
63474         * lib/math.in.h (ceilf): New declaration.
63475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63476         HAVE_DECL_CEILF.
63477         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63478         HAVE_DECL_CEILF.
63479         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63480
63481 2007-10-04  Bruno Haible  <bruno@clisp.org>
63482
63483         * modules/floorl-tests: New file.
63484         * tests/test-floorl.c: New file.
63485
63486         * modules/floorl: New file.
63487         * lib/floorl.c: Replace entire file.
63488         * m4/floorl.m4: New file.
63489         * lib/math.in.h (floorl): Replace declaration.
63490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63491         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63492         * doc/functions/floorl.texi: Mention the 'floorl' module.
63493         * modules/mathl (Files): Remove lib/floorl.c.
63494         (Depends-on): Add floorl.
63495
63496 2007-10-04  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/floorf-tests: New file.
63499         * tests/test-floorf.c: New file.
63500
63501         * modules/floorf: New file.
63502         * lib/floor.c: New file.
63503         * lib/floorf.c: New file.
63504         * m4/floorf.m4: New file.
63505         * lib/math.in.h (floorf): New declaration.
63506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63507         HAVE_DECL_FLOORF.
63508         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63509         HAVE_DECL_FLOORF.
63510         * doc/functions/floorf.texi: Mention the 'floorf' module.
63511
63512 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63513             Bruno Haible  <bruno@clisp.org>
63514
63515         Advertise for the Git server instead of the CVS server.
63516         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63517         repository instead of the CVS one.
63518         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63519         about all VCS systems generically.
63520         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63521
63522 2007-10-04  Bruno Haible  <bruno@clisp.org>
63523
63524         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63525         means.
63526         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63527
63528 2007-10-04  Bruno Haible  <bruno@clisp.org>
63529
63530         * modules/truncl-tests: New file.
63531         * tests/test-truncl.c: New file.
63532
63533         * modules/truncl: New file.
63534         * lib/truncl.c: New file.
63535         * m4/truncl.m4: New file.
63536         * lib/math.in.h (truncl): New declaration.
63537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63538         HAVE_DECL_TRUNCL.
63539         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63540         HAVE_DECL_TRUNCL.
63541         * doc/functions/truncl.texi: Mention the 'truncl' module.
63542
63543 2007-10-04  Bruno Haible  <bruno@clisp.org>
63544
63545         * modules/truncf-tests: New file.
63546         * tests/test-truncf.c: New file.
63547
63548         * modules/truncf: New file.
63549         * lib/trunc.c: Make paramerizable through USE_* macros.
63550         * lib/truncf.c: New file.
63551         * m4/truncf.m4: New file.
63552         * lib/math.in.h (truncf): New declaration.
63553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63554         HAVE_DECL_TRUNCF.
63555         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63556         HAVE_DECL_TRUNCF.
63557         * doc/functions/truncf.texi: Mention the 'truncf' module.
63558
63559 2007-10-03  Bruno Haible  <bruno@clisp.org>
63560
63561         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63562         augmentation also for tests modules.
63563         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63564         * modules/atexit-tests (Makefile.am): Likewise.
63565         * modules/binary-io-tests (Makefile.am): Likewise.
63566         * modules/c-strcase-tests (Makefile.am): Likewise.
63567         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63568         * modules/canonicalize-tests (Makefile.am): Likewise.
63569         * modules/closein-tests (Makefile.am): Likewise.
63570         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63571         * modules/freadahead-tests (Makefile.am): Likewise.
63572         * modules/fseek-tests (Makefile.am): Likewise.
63573         * modules/fseeko-tests (Makefile.am): Likewise.
63574         * modules/ftell-tests (Makefile.am): Likewise.
63575         * modules/ftello-tests (Makefile.am): Likewise.
63576         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63577         * modules/isnanl-tests (Makefile.am): Likewise.
63578         * modules/lseek-tests (Makefile.am): Likewise.
63579         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63580         * modules/mbscasestr-tests (Makefile.am): Likewise.
63581         * modules/mbschr-tests (Makefile.am): Likewise.
63582         * modules/mbscspn-tests (Makefile.am): Likewise.
63583         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63584         * modules/mbspbrk-tests (Makefile.am): Likewise.
63585         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63586         * modules/mbsrchr-tests (Makefile.am): Likewise.
63587         * modules/mbsspn-tests (Makefile.am): Likewise.
63588         * modules/mbsstr-tests (Makefile.am): Likewise.
63589         * modules/printf-posix-tests (Makefile.am): Likewise.
63590         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63591         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63592         * modules/tsearch-tests (Makefile.am): Likewise.
63593         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63594         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63595         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63596         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63597         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63598         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63599         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63600         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63601         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63602         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63603         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63604         * modules/xstrtol-tests (Makefile.am): Likewise.
63605         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63606         * modules/yesno-tests (Makefile.am): Likewise.
63607
63608 2007-10-03  Bruno Haible  <bruno@clisp.org>
63609
63610         * modules/trunc-tests: New file.
63611         * tests/test-trunc.c: New file.
63612
63613         * modules/trunc: New file.
63614         * lib/trunc.c: New file.
63615         * m4/trunc.m4: New file.
63616         * lib/math.in.h (trunc): New declaration.
63617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63618         HAVE_DECL_TRUNC.
63619         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63620         HAVE_DECL_TRUNC.
63621         * doc/functions/trunc.texi: Mention the 'trunc' module.
63622
63623 2007-10-03  Bruno Haible  <bruno@clisp.org>
63624
63625         * tests/test-fpending.c: New file, mostly copied
63626         from coreutils/lib/t-fpending.c.
63627         * modules/fpending-tests: New file.
63628
63629 2007-10-03  Bruno Haible  <bruno@clisp.org>
63630
63631         Port the stdio extensions to QNX (untested).
63632         * lib/fseterr.c (fseterr): Add support for QNX.
63633         * lib/fbufmode.c (fbufmode): Likewise.
63634         * lib/freadable.c (freadable): Likewise.
63635         * lib/fwritable.c (fwritable): Likewise.
63636         * lib/freading.c (freading): Likewise.
63637         * lib/fwriting.c (fwriting): Likewise.
63638         * lib/freadahead.c (freadahed): Likewise.
63639         * lib/fpurge.c (fpurge): Likewise.
63640         * lib/fseeko.c (rpl_fseeko): Likewise.
63641
63642 2007-10-03  Bruno Haible  <bruno@clisp.org>
63643             Jim Meyering  <jim@meyering.net>
63644             Eric Blake  <ebb9@byu.net>
63645
63646         * doc/relocatable.texi: Use @command instead of @program.
63647
63648 2007-10-02  Jim Meyering  <jim@meyering.net>
63649
63650         Perform one more "_.h" -> ".in.h" substitution.
63651         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63652         instead of unistd_.h here, too.
63653
63654 2007-10-01  Bruno Haible  <bruno@clisp.org>
63655
63656         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63657         Needed for the alloca-opt module.
63658
63659 2007-09-30  Bruno Haible  <bruno@clisp.org>
63660
63661         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63662         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63663         alloca_.h.
63664         * lib/argz.in.h: Renamed from lib/argz_.h.
63665         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63666         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63667         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63668         byteswap_.h.
63669         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63670         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63671         dirent_.h.
63672         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63673         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63674         fcntl_.h.
63675         * lib/float.in.h: Renamed from lib/float_.h.
63676         * modules/float (Files, Makefile.am): Use float.in.h instead of
63677         float_.h.
63678         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63679         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63680         fnmatch_.h.
63681         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63682         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63683         getopt_.h.
63684         * lib/glob.in.h: Renamed from lib/glob_.h.
63685         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63686         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63687         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63688         iconv_.h.
63689         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63690         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63691         inttypes_.h.
63692         * lib/locale.in.h: Renamed from lib/locale_.h.
63693         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63694         locale_.h.
63695         * lib/math.in.h: Renamed from lib/math_.h.
63696         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63697         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63698         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63699         of netinet_in_.h. Add dependency.
63700         * lib/poll.in.h: Renamed from lib/poll_.h.
63701         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63702         * lib/search.in.h: Renamed from lib/search_.h.
63703         * modules/search (Files, Makefile.am): Use search.in.h instead of
63704         search_.h.
63705         * lib/signal.in.h: Renamed from lib/signal_.h.
63706         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63707         _signal.h.
63708         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63709         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63710         stdbool_.h.
63711         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63712         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63713         stdint_.h.
63714         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63715         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63716         stdio_.h.
63717         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63718         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63719         stdlib_.h.
63720         * lib/string.in.h: Renamed from lib/string_.h.
63721         * modules/string (Files, Makefile.am): Use string.in.h instead of
63722         string_.h.
63723         * doc/gnulib-tool.texi (Initial import): Update.
63724         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63725         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63726         of sys_select_.h. Add dependency.
63727         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63728         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63729         of sys_socket_.h.
63730         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63731         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63732         sys_stat_.h.
63733         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63734         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63735         sys_time_.h.
63736         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63737         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63738         sysexits_.h.
63739         * lib/time.in.h: Renamed from lib/time_.h.
63740         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63741         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63742         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63743         unistd_.h.
63744         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63745         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63746         wchar_.h.
63747         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63748         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63749         wctype_.h.
63750         * build-aux/bootstrap (slurp): Update.
63751         * lib/.cppi-disable: Update.
63752
63753 2007-09-30  Bruno Haible  <bruno@clisp.org>
63754
63755         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63756         Needed on BeOS.
63757
63758 2007-09-30  Bruno Haible  <bruno@clisp.org>
63759
63760         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63761
63762 2007-09-29  Bruno Haible  <bruno@clisp.org>
63763
63764         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63765
63766 2007-09-29  Bruno Haible  <bruno@clisp.org>
63767
63768         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63769         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63770         * build-aux/install-reloc: Compile also areadlink.c.
63771         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63772
63773 2007-09-29  Bruno Haible  <bruno@clisp.org>
63774
63775         * gnulib-tool (func_emit_initmacro_done): Indentation.
63776
63777 2007-09-29  Bruno Haible  <bruno@clisp.org>
63778
63779         * README: Add CVS checkout update instructions.
63780         Info from Bob Proulx <bob@proulx.com>.
63781
63782 2007-09-28  Eric Blake  <ebb9@byu.net>
63783
63784         Provide move-if-change.
63785         * build-aux/move-if-change: New file, based on best practice
63786         rather than any canonical upstream location.
63787
63788 2007-09-28  Jim Meyering  <jim@meyering.net>
63789
63790         Fix canonicalize loop-detection corner case.
63791         Do not attempt to stat the symlink values stored via seen_triple.
63792         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63793         on linux-2.6.18, (but not 2.6.22).
63794         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63795         triple_compare.  The former compares dev,ino,filename, while the latter
63796         would actually stat dirname(filename) when dev and ino were equal.
63797         * lib/hash-triple.c: Install <string.h>.
63798         (STREQ): Define.
63799         (triple_compare_ino_str): New function.
63800         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63801
63802 2007-09-28  Eric Blake  <ebb9@byu.net>
63803
63804         Enforce that AC_REPLACE_FUNCS files exist.
63805         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63806         override check for typos.
63807
63808         Fix test-closein on Solaris 10.
63809         * tests/test-closein.c (main): Don't assume stdin can be inherited
63810         closed on all systems.
63811         * tests/test-closein.sh: Likewise.
63812         Reported by Piotr Tarnowski.
63813
63814 2007-09-28  Jim Meyering  <jim@meyering.net>
63815
63816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63817
63818 2007-09-27  Jim Meyering  <jim@meyering.net>
63819
63820         canonicalize: Avoid a false-positive cycle failure.
63821         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63822         Sort.  Remove cycle-check.
63823         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63824         not cycle-check.h.
63825         (seen_triple): New function.
63826         (canonicalize_filename_mode): Use it instead of cycle-check.
63827         * tests/test-canonicalize.c: Add a test for this bug.
63828         * tests/test-canonicalize.sh: Set up and run the test.
63829
63830         New module, file-set, from coreutils.
63831         * modules/file-set: Define it.
63832         * lib/file-set.c, lib/file-set.h: Implement.
63833
63834         New module, hash-triple, from coreutils.
63835         * modules/hash-triple: Define it.
63836         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63837
63838 2007-09-25  Eric Blake  <ebb9@byu.net>
63839
63840         Fix strerror on Interix.
63841         * lib/string_.h (strerror): Declare replacement.
63842         * doc/functions/strerror.texi (strerror): Document the Interix
63843         shortcoming.
63844         * modules/string (Makefile.am): Support new hooks.
63845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63846         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63847         gl_FUNC_STRERROR_SEPARATE.
63848         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63849         * lib/strerror.c (rpl_strerror): Provide replacement.
63850         * modules/strerror (Depends-on): Add string.
63851         (configure.ac): Detect use of module.
63852         * tests/test-strerror.c: New file.
63853         * modules/strerror-tests: New test module.
63854         * modules/argp (Depends-on): Add strerror.
63855         * modules/error (Depends-on): Likewise.
63856         Reported by Martin Koeppe.
63857
63858 2007-09-24  Bruno Haible  <bruno@clisp.org>
63859
63860         * README: Update git instructions.
63861
63862 2007-09-24  Eric Blake  <ebb9@byu.net>
63863
63864         Revert fpending breakage from 2007-09-08.
63865         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63866         __fpending.c.
63867
63868 2007-09-24  Jim Meyering  <jim@meyering.net>
63869
63870         filenamecat.c: Add a test.
63871         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63872         showing how the function works when DIR is the empty string.
63873
63874 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63875
63876         * tests/test-canonicalize.sh: Turn on executable bit.
63877
63878 2007-09-19  Eric Blake  <ebb9@byu.net>
63879
63880         * README: Update CVS instructions.
63881
63882 2007-09-18  Bruno Haible  <bruno@clisp.org>
63883
63884         * modules/areadlink: New file.
63885         * lib/areadlink.h (areadlink): New declaration.
63886         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63887
63888 2007-09-17  Jim Meyering  <jim@meyering.net>
63889
63890         * lib/savewd.c (ESTALE) [!defined]: Define.
63891         Reported to be required on Interix by Martin Koeppe.
63892
63893 2007-09-17  Bruno Haible  <bruno@clisp.org>
63894
63895         * gnulib-tool (func_version): Use $version.
63896
63897 2007-09-16  Bruno Haible  <bruno@clisp.org>
63898
63899         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63900         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63901         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63902         Reported by Greg Schafer <gschafer@zip.com.au>.
63903
63904 2007-09-15  Bruno Haible  <bruno@clisp.org>
63905
63906         * gnulib-tool (sed): Try a little harder to make bash understand the
63907         alias.
63908         Reported by Bruce Korb <bruce.korb@gmail.com>.
63909
63910 2007-09-13  Eric Blake  <ebb9@byu.net>
63911
63912         * ChangeLog: Remove conflict markers.
63913
63914 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63915
63916         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63917         Reported by Bruno Haible <bruno@clisp.org>.
63918
63919 2007-09-12  Bruno Haible  <bruno@clisp.org>
63920
63921         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63922         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63923         is not defined.
63924
63925 2007-09-12  Eric Blake  <ebb9@byu.net>
63926
63927         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63928         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63929         Autoconf definition.
63930         * modules/euidaccess (Depends-on): Add extensions, for
63931         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63932         * modules/fnmatch (Depends-on): Likewise.
63933         * modules/getaddrinfo (Depends-on): Likewise.
63934         * modules/getdelim (Depends-on): Likewise.
63935         * modules/getline (Depends-on): Likewise.
63936         * modules/getsubopt (Depends-on): Likewise.
63937         * modules/gettext (Depends-on): Likewise.
63938         * modules/group-member (Depends-on): Likewise.
63939         * modules/mbchar (Depends-on): Likewise.
63940         * modules/memmem (Depends-on): Likewise.
63941         * modules/mempcpy (Depends-on): Likewise.
63942         * modules/memrchr (Depends-on): Likewise.
63943         * modules/pagealign_alloc (Depends-on): Likewise.
63944         * modules/readutmp (Depends-on): Likewise.
63945         * modules/stpcpy (Depends-on): Likewise.
63946         * modules/stpncpy (Depends-on): Likewise.
63947         * modules/strchrnul (Depends-on): Likewise.
63948         * modules/strndup (Depends-on): Likewise.
63949         * modules/strsep (Depends-on): Likewise.
63950         * modules/strverscmp (Depends-on): Likewise.
63951         * modules/vasprintf (Depends-on): Likewise.
63952         * modules/wcwidth (Depends-on): Likewise.
63953         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63954         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63955         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63957         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63958         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63959         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63960         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63961         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63962         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63964         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63965         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63967         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63968         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63969         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63970         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63972         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63973         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63974         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63975         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63976         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63977         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63979         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63980         so that lock.m4 can be used in gettext without extensions module.
63981
63982 2007-09-11  Bruno Haible  <bruno@clisp.org>
63983
63984         * m4/isc-posix.m4: Remove file.
63985         Suggested by Eric Blake.
63986
63987 2007-09-11  Eric Blake  <ebb9@byu.net>
63988
63989         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63990
63991 2007-09-10  Bruno Haible  <bruno@clisp.org>
63992
63993         * posix-modules: Fix typo in error message.
63994         Reported by Matt <mkraai@beckman.com>.
63995
63996 2007-09-09  Bruno Haible  <bruno@clisp.org>
63997
63998         * doc/functions/getdelim.texi: Update list of platforms lacking the
63999         function.
64000         * doc/functions/getline.texi: Likewise.
64001
64002 2007-09-09  Jim Meyering  <jim@meyering.net>
64003
64004         * lib/hash.c (hash_initialize): Detect calloc failure.
64005         Reported by Bruno Haible.
64006
64007 2007-09-09  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64010         malloc or realloc fails.
64011
64012 2007-09-09  Bruno Haible  <bruno@clisp.org>
64013
64014         * modules/getcwd (Depends-on): Add malloc-posix.
64015         * modules/glob (Depends-on): Likewise.
64016         * modules/putenv (Depends-on): Likewise.
64017         * modules/strdup (Depends-on): Likewise.
64018         * modules/getdelim (Depends-on): Add realloc-posix.
64019         * modules/read-file (Depends-on): Likewise.
64020
64021 2007-09-09  Bruno Haible  <bruno@clisp.org>
64022
64023         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64024         (gl_FUNC_MALLOC_POSIX): Require it.
64025         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64026         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64027         * modules/realloc (Files): Add m4/malloc.m4.
64028         * modules/calloc (Files): Likewise.
64029
64030 2007-09-09  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/malloc-posix: New file.
64033         * modules/malloc (Depends-on): Add malloc-posix.
64034         * lib/malloc.c: Include errno.h.
64035         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64036         and a POSIX-compatible malloc into a single function. Set ENOMEM
64037         when returning NULL.
64038         * m4/malloc.m4: New file.
64039         * doc/functions/malloc.texi: Mention the malloc-posix module.
64040         * lib/stdlib_.h (malloc): New declaration.
64041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64042         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64043         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64044         and HAVE_MALLOC_POSIX.
64045
64046 2007-09-09  Bruno Haible  <bruno@clisp.org>
64047
64048         * modules/realloc-posix: New file.
64049         * modules/realloc (Depends-on): Add realloc-posix.
64050         * lib/realloc.c: Include errno.h.
64051         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64052         and a POSIX-compatible realloc into a single function. Set ENOMEM
64053         when returning NULL.
64054         * m4/realloc.m4: New file.
64055         * doc/functions/realloc.texi: Mention the realloc-posix module.
64056         * lib/stdlib_.h (realloc): New declaration.
64057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64058         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64059         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64060         and HAVE_REALLOC_POSIX.
64061
64062 2007-09-09  Bruno Haible  <bruno@clisp.org>
64063
64064         * modules/calloc-posix: New file.
64065         * modules/calloc (Depends-on): Add calloc-posix.
64066         * lib/calloc.c: Include errno.h.
64067         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64068         and a POSIX-compatible calloc into a single function. Set ENOMEM
64069         when returning NULL.
64070         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64071         * doc/functions/calloc.texi: Mention the calloc-posix module.
64072         * lib/stdlib_.h (calloc): New declaration.
64073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64074         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64075         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64076         and HAVE_CALLOC_POSIX.
64077
64078 2007-09-09  Bruno Haible  <bruno@clisp.org>
64079
64080         Allow for modules to show an arbitrary notice.
64081         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64082         * gnulib-tool: New option --extract-notice.
64083         (func_usage): Document it.
64084         (sed_extract_prog): Update.
64085         (func_get_notice): New function.
64086         (func_modules_notice): New function.
64087         (func_import, func_create_testdir): Invoke it.
64088         Suggested by Jim Meyering.
64089
64090 2007-09-09  Bruno Haible  <bruno@clisp.org>
64091
64092         * gnulib-tool: New options --verbose, --quiet.
64093         (func_usage): Document them.
64094         (verbose): New variable.
64095         (func_execute_command): New function.
64096         (func_import): Don't show the module list and the file list if
64097         $verbose < 0.
64098         (func_create_testdir): Likewise. Use func_execute_command.
64099         (func_create_megatestdir): Use func_execute_command.
64100
64101 2007-09-08  Bruno Haible  <bruno@clisp.org>
64102
64103         * gnulib-tool (func_import): Prefer rsync over wget when available,
64104         for fetching the PO files.
64105
64106 2007-09-08  Bruno Haible  <bruno@clisp.org>
64107
64108         * posix-modules: New file. Portions copied from gnulib-tool.
64109         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64110
64111 2007-09-08  Jim Meyering  <jim@meyering.net>
64112
64113         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64114         * lib/fpending.h: Rename from __fpending.h.
64115         * lib/fpending.c: Rename from __fpending.c.
64116         Include "fpending.h", not "__fpending.h".
64117         * lib/__fpending.h, lib/__fpending.c: Remove files.
64118         * modules/fpending (Files): Reflect new file names.
64119         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64120
64121 2007-09-08  Bruno Haible  <bruno@clisp.org>
64122
64123         * m4/inttypes-h.m4: Remove stub file.
64124
64125 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64126
64127         * doc/headers/stdint.texi: Discuss #include_next issue.
64128
64129 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64130
64131         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64132
64133 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64134
64135         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64136         in variable name.
64137
64138 2007-09-03  Jim Meyering  <jim@meyering.net>
64139
64140         New module: git-version-gen.
64141         * modules/git-version-gen: New file.
64142
64143         Import changes from coreutils for bootstrap script.
64144
64145         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64146
64147         bootstrap: uses rsync to download the .po files
64148         * build-aux/bootstrap (po_download_command_format): New global.
64149         (download_po_files): Use rsync.
64150         (update_po_files): Don't remove .po files after download,
64151         so future rsync runs can take advantage of the copies.
64152
64153         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64154
64155         Solve the unnecessary-.po-file-regeneration problem once and for all.
64156         * build-aux/bootstrap (download_po_files): New function, renamed from
64157         get_translations.  Now, downloads, but doesn't update LINGUAS.
64158         (update_po_files): New function.
64159
64160         bootstrap: Ignore more.
64161         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64162         uniwidth to e.g., lib/.gitignore.
64163         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64164
64165         * build-aux/bootstrap: New setting: vc_ignore.
64166         (insert_sorted_if_absent): Create $file if absent.
64167         Adapt to new, possibly empty, list: $vc_ignore.
64168
64169         bootstrap: generate more ignorable names
64170         * build-aux/bootstrap (slurp): When generating ignorable names,
64171         also map .sin to .sed, .gperf to .c, and .y to .c.
64172
64173 2007-09-03  Jim Meyering  <jim@meyering.net>
64174
64175         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64176         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64177
64178 2007-09-02  Bruno Haible  <bruno@clisp.org>
64179
64180         Fix mis-recognition of 'mcs' on QNX 6.
64181         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64182         output contains the string "Mono".
64183         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64184         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64185
64186 2007-09-01  Bruno Haible  <bruno@clisp.org>
64187
64188         Fix collision between uniwidth/* and linebreak modules.
64189         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64190         u32_width): Remove declarations.
64191         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64192         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64193         streq3, streq2, streq1, streq0): Remove functions.
64194         (STREQ): Remove macro.
64195         (is_cjk_encoding): Remove function.
64196         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64197         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64198         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64199         * NEWS: Document the change.
64200
64201 2007-09-01  Bruno Haible  <bruno@clisp.org>
64202
64203         * lib/streq.h: Add double-inclusion guard.
64204
64205 2007-09-01  Karl Berry  <karl@gnu.org>
64206
64207         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64208
64209 2007-08-28  Jim Meyering  <jim@meyering.net>
64210
64211         Rename mreadlink_with_size to areadlink_with_size.
64212         * NEWS: Document the change.
64213         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64214         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64215         * lib/mreadlink.h: Rename this to...
64216         * lib/areadlink.h: ...this.
64217         * modules/mreadlink-with-size: Rename this to...
64218         * modules/areadlink-with-size: ...this.
64219         * lib/canonicalize.c: Reflect the renaming.
64220         * modules/canonicalize: Likewise.
64221
64222 2007-08-26  Bruno Haible  <bruno@clisp.org>
64223
64224         * gnulib-tool (func_import): When deciding which files to remove,
64225         consider also dangling symbolic links.
64226         Reported by Eric Blake.
64227
64228 2007-08-26  Bruno Haible  <bruno@clisp.org>
64229
64230         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64231
64232 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64233
64234         * lib/readline.c: Don't include getline.h, the prototype is now
64235         found in stdio.h.
64236
64237 2007-08-23  Jim Meyering  <jim@meyering.net>
64238
64239         Getdelim touchup.
64240         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64241         around the funlockfile call, since funlockfile never sets errno.
64242         Don't set errno upon failed realloc.
64243
64244 2007-08-22  Eric Blake  <ebb9@byu.net>
64245
64246         Getline touchups.
64247         * lib/getdelim.c (getdelim): Revert regression that required *n to
64248         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64249         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64250         getdelim, rather than whether implementation is missing.
64251         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64252         * lib/stdio_.h (getline): Also declare if replacement is
64253         required.
64254         * doc/functions/getdelim.texi: New file.
64255         * doc/functions/getline.texi: Likewise.
64256         * doc/gnulib.texi (Function Substitutes): Add new files.
64257         Reported by Bruno Haible.
64258
64259 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64260
64261         * users.txt: Add Guile.
64262
64263 2007-08-22  Eric Blake  <ebb9@byu.net>
64264
64265         * tests/test-getdelim.c (main): Use remove, not unlink.
64266         * tests/test-getline.c (main): Likewise.
64267
64268         Move getline and getdelim into stdio.h, per POSIX 200x.
64269         * modules/getline (Files): Remove getline.h.
64270         (Depends-on): Add stdio.
64271         (configure.ac): Add module indicator.
64272         * modules/getdelim (Files): Remove getdelim.h.
64273         (Depends-on): Add stdio.
64274         (configure.ac): Add module indicator.
64275         * modules/stdio (Makefile.am): Work with new indicators.
64276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64277         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64278         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64279         * lib/getdelim.h: Delete.
64280         * lib/getline.h: Delete.
64281         * lib/stdio_.h (getdelim, getline): Declare.
64282         * modules/getdelim-tests: New module.
64283         * modules/getline-tests: Likewise.
64284         * tests/test-getdelim.c: New file.
64285         * tests/test-getline.c: Likewise.
64286         * NEWS: Document the change.
64287         * lib/getline.c: Update choice of header.
64288         * lib/csharpcomp.c: Likewise.
64289         * lib/getpass.c: Likewise.
64290         * lib/javacomp.c: Likewise.
64291         * lib/javaversion.c: Likewise.
64292         * lib/yesno.c: Likewise.
64293         * lib/getdelim.c: Likewise.
64294         (getdelim): Set errno on failure, and avoid memory leak.
64295
64296 2007-08-19  Bruno Haible  <bruno@clisp.org>
64297
64298         * modules/closein (Depends-on): Add freadahead.
64299         * lib/closein.c: Include freadahead.h.
64300         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64301         is zero.
64302
64303 2007-08-19  Bruno Haible  <bruno@clisp.org>
64304
64305         * modules/freadahead-tests: New file.
64306         * tests/test-freadahead.sh: New file.
64307         * tests/test-freadahead.c: New file.
64308
64309         * modules/freadahead: New file.
64310         * lib/freadahead.h: New file.
64311         * lib/freadahead.c: New file.
64312         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64313         fbufmode, fpurge, freadable, fwritable.
64314
64315 2007-08-19  Eric Blake  <ebb9@byu.net>
64316
64317         Test yesno in combination with closein.
64318         * lib/yesno.c (yesno): Document use of stdin.
64319         * modules/yesno-tests (Files): New module.
64320         * tests/test-yesno.c (main): New file.
64321         * tests/test-yesno.sh: Likewise.
64322
64323 2007-08-19  Bruno Haible  <bruno@clisp.org>
64324
64325         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64326         * lib/fseeko.c (rpl_fseeko): Likewise.
64327         * lib/fseterr.c (fseterr): Likewise.
64328
64329 2007-08-19  Bruno Haible  <bruno@clisp.org>
64330
64331         * tests/test-lseek.c (main): Disable a test for BeOS.
64332         * doc/functions/lseek.texi: Document the BeOS bug.
64333
64334 2007-08-19  Bruno Haible  <bruno@clisp.org>
64335             Eric Blake  <ebb9@byu.net>
64336
64337         * lib/lseek.c: Include <sys/stat.h>.
64338         (rpl_lseek): Add workaround code also for Unix platforms.
64339         Needed for BeOS.
64340         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64341         * doc/functions/lseek.texi: Document BeOS definiency.
64342
64343 2007-08-18  Bruno Haible  <bruno@clisp.org>
64344
64345         * modules/fstrcmp-tests: New file.
64346         * tests/test-fstrcmp.c: New file.
64347
64348 2007-08-18  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/fstrcmp: New file, from GNU gettext with modifications.
64351         * lib/fstrcmp.h: New file, from GNU gettext.
64352         * lib/fstrcmp.c: New file, from GNU gettext.
64353         * MODULES.html.sh (String handling): Add fstrcmp.
64354
64355 2007-08-18  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64358         'bool'.
64359         (diag, compareseq): Remove const from the ctxt argument.
64360         (USE_HEURISTIC): Undefine at the end.
64361
64362 2007-08-18  Jim Meyering  <jim@meyering.net>
64363
64364         New file: lib/idcache.h
64365         * NEWS: Mention the addition.
64366         * modules/idcache (Files): Add lib/idcache.h
64367         * lib/idcache.c: Include "idcache.h".
64368         Don't include <sys/types.h>.
64369         Add a FIXME comment.
64370         Move file-scoped "static" declarations to the top.
64371         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64372
64373 2007-08-17  Bruno Haible  <bruno@clisp.org>
64374         and Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         * MODULES.html.sh: Add diffseq.
64377         * modules/diffseq: New file.
64378         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64379         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64380
64381 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         Import changes from coreutils for bootstrap script.
64384
64385         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64386
64387         * build-aux/bootstrap (slurp): Work even in environments where
64388         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64389         current code does not slurp files whose names start with ".", and
64390         this looks like it might be a troublesome area.
64391
64392         2007-07-11  Jim Meyering  <jim@meyering.net>
64393
64394         If there's a GPL vN copyright comment, require that N == 3.
64395
64396         2007-07-08  Jim Meyering  <jim@meyering.net>
64397
64398         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64399         * build-aux/bootstrap (mam_template): Move definition out of loop.
64400
64401         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64402
64403         * build-aux/bootstrap (symlink_to_dir): Rename function from
64404         symlink_to_gnulib.  Add a directory parameter.  Update all
64405         callers.
64406         (cp_mark_as_generated): Also check for -- and link to -- files in
64407         gl/.
64408
64409         2007-07-08  Jim Meyering  <jim@meyering.net>
64410
64411         Adapt to deeper hierarchy in gnulib.
64412         * build-aux/bootstrap (symlink_to_dir): If the destination
64413         directory doesn't exist, create it. This is required at least for
64414         "lib/uniwidth/cjk.h".
64415
64416         2007-05-15  Jim Meyering  <jim@meyering.net>
64417
64418         * build-aux/bootstrap: Now that generated Makefile.am files
64419         are no longer under version control, they must be created at
64420         bootstrap time.
64421
64422 2007-08-14  Ben Pfaff  <blp@gnu.org>
64423
64424         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64425
64426 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64429         given the changes below.
64430         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64431         even on hosts that have padding bits beyond the supported 64.
64432
64433 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64436         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64437         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64438         depends on it.
64439         (xstrtol_error): Remove.
64440         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64441         but with a different signature.
64442         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64443         * lib/xstrtol-error.c: Include exitfail.h.
64444         (xstrtol_fatal): New function, with a different signature from the
64445         old xstrtol_error, so that the caller need not worry about passing
64446         in an exit status, or about storage management of the option argument.
64447         (xstrtol_error): Now a static function.  Redo signature to
64448         implement xstrtol_fatal.  Output the correct number of hyphens in
64449         front of the option so that the caller need not worry about
64450         storage management.
64451         (N_): New macro.
64452         (_): Remove; not used now.
64453         * modules/xstrtol: Depend on getopt.
64454         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64455         of old STRTOL_FATAL_ERROR macro.
64456         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64457         of test program.
64458         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64459         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64460
64461 2007-08-08  Eric Blake  <ebb9@byu.net>
64462
64463         * lib/xstrtol-error.c: Add missing include.
64464
64465         Move xstrtol messages into gnulib domain, when --pobase is used.
64466         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64467         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64468         * modules/xstrtol (Files): Distribute new file.
64469         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64470         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64471         * tests/test-xstrtol.c: ...into new file.
64472         * tests/test-xstrtoul.c: Also test xstrtoul.
64473         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64474         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64475         * tests/test-xstrtol.sh: Drive the tests.
64476         * tests/test-xstrtoimax.sh: Likewise.
64477         * tests/test-xstrtoumax.sh: Likewise.
64478         * modules/xstrtol-tests: New module.
64479         * modules/xstrtoimax-tests: Likewise.
64480         * modules/xstrtoumax-tests: Likewise.
64481
64482 2007-08-08  Jim Meyering  <jim@meyering.net>
64483
64484         New function: mfile_name_concat.
64485         * lib/filenamecat.c (mfile_name_concat): New function, just like
64486         file_name_concat, but return NULL upon failure rather than exiting
64487         with a diagnostic.
64488         * lib/filenamecat.h: Declare it.
64489
64490 2007-08-07  Bruno Haible  <bruno@clisp.org>
64491
64492         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64493         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64494         warning from gcc.
64495         Reported by Eric Blake.
64496
64497 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64498
64499         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64500         * modules/crypto/arcfour (License): Likewise.
64501         * modules/crypto/des-tests (License): Likewise.
64502         * modules/crypto/gc-arctwo-tests (License): Likewise.
64503         * modules/crypto/gc-des-tests (License): Likewise.
64504         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64505         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64506         * modules/crypto/gc-md2-tests (License): Likewise.
64507         * modules/crypto/gc-md4-tests (License): Likewise.
64508         * modules/crypto/gc-md5-tests (License): Likewise.
64509         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64510         * modules/crypto/gc-rijndael-tests (License): Likewise.
64511         * modules/crypto/gc-sha1-tests (License): Likewise.
64512         * modules/crypto/gc-tests (License): Likewise.
64513         * modules/crypto/hmac-md5 (License): Likewise.
64514         * modules/crypto/hmac-sha1 (License): Likewise.
64515         * modules/crypto/md2-tests (License): Likewise.
64516         * modules/crypto/md4-tests (License): Likewise.
64517         * modules/crypto/md5 (License): Likewise.
64518         * modules/crypto/rijndael (License): Likewise.
64519         * modules/crypto/sha1 (License): Likewise.
64520         * modules/memxor (License): Likewise.
64521
64522 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64523         and Bruno Haible  <bruno@clisp.org>
64524
64525         * NEWS: Describe interface changes to human, xstrtol.
64526         * lib/human.h: Include <xstrtol.h>.
64527         (human_options): Return enum strtol_error, not int.  Remove
64528         bool arg; take int * instead.
64529         * lib/human.c: Don't include "gettext.h".
64530         (_): Remove; no longer used.
64531         Don't include <xstrtol.h>, since human.h does it.
64532         (human_options): Adjust to abovementioned interface changes.
64533         Do not report error to stderr; that's now the caller's
64534         responsibility.
64535         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64536         interface change.
64537         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64538         Str, Argument_type_string.  All uses changed.  Put " argument"
64539         in diagnostics to make them clearer.  Change wording of suffix
64540         message for clarity.
64541         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64542         Argument_type_string.
64543         (STRTOL_FATAL_WARN): Remove; no longer used.
64544         * modules/human (Depends-on): Remove gettext-h.
64545
64546 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64547
64548         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64549
64550 2007-07-31  Bruno Haible  <bruno@clisp.org>
64551
64552         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64553         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64554         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64555
64556 2007-07-31  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64559         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64560
64561 2007-07-30  Bruno Haible  <bruno@clisp.org>
64562
64563         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64564         * modules/c-ctype (License): Likewise.
64565         * modules/c-strcase (License): Likewise.
64566         * modules/check-version (License): Likewise.
64567         * modules/iconv (License): Likewise.
64568         * modules/iconv_open (License): Likewise.
64569         * modules/read-file (License): Likewise.
64570         * modules/striconv (License): Likewise.
64571         * modules/strverscmp (License): Likewise.
64572         * modules/vasprintf (License): Likewise.
64573         * modules/crypto/des (License): Likewise.
64574         * modules/crypto/gc (License): Likewise.
64575         * modules/crypto/gc-arcfour (License): Likewise.
64576         * modules/crypto/gc-arctwo (License): Likewise.
64577         * modules/crypto/gc-des (License): Likewise.
64578         * modules/crypto/gc-hmac-md5 (License): Likewise.
64579         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64580         * modules/crypto/gc-md2 (License): Likewise.
64581         * modules/crypto/gc-md4 (License): Likewise.
64582         * modules/crypto/gc-md5 (License): Likewise.
64583         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64584         * modules/crypto/gc-random (License): Likewise.
64585         * modules/crypto/gc-rijndael (License): Likewise.
64586         * modules/crypto/gc-sha1 (License): Likewise.
64587         * modules/crypto/md2 (License): Likewise.
64588         * modules/crypto/md4 (License): Likewise.
64589
64590 2007-07-30  Jim Meyering  <jim@meyering.net>
64591
64592         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64593         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64594         it has valid stat data.  This bug would cause du not to count the
64595         sizes of inaccessible directories.
64596         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64597         in <http://bugzilla.redhat.com/250077>.
64598
64599 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64600             Bruno Haible  <bruno@clisp.org>
64601
64602         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64603         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64604         #include_next, gives a diagnostic about it, but reports no error in
64605         the exit code.
64606         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64607
64608 2007-07-24  Ben Pfaff  <blp@gnu.org>
64609
64610         Improve name: "count-one-bits" is better than "popcount".
64611         * MODULES.html.sh: Update name.
64612         * lib/popcount.h: Renamed lib/count-one-bits.h.
64613         (popcount): Renamed count_one_bits.
64614         (popcountl): Renamed count_one_bits_l.
64615         (popcountll): Renamed count_one_bits_ll.
64616         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64617         * modules/popcount: Renamed module/count-one-bits.
64618         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64619         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64620
64621 2007-07-23  Ben Pfaff  <blp@gnu.org>
64622
64623         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64624         better code generation, and add U to large constants to avoid
64625         warnings, in non-GCC case.
64626         Suggested by Bruno Haible.
64627
64628 2007-07-23  Ben Pfaff  <blp@gnu.org>
64629
64630         * lib/popcount.h: Use verify_true instead of if...abort.
64631         * modules/popcount: Depend on verify module.
64632         Suggested by Jim Meyering.
64633
64634 2007-07-23  Bruno Haible  <bruno@clisp.org>
64635
64636         * gnulib-tool (func_import): Create a .cvsignore file also when the
64637         directory is not yet in CVS but the toplevel directory is. When
64638         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64639         Reported by Karl Berry.
64640
64641 2007-07-22  Ben Pfaff  <blp@gnu.org>
64642
64643         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64644         case.
64645         Suggested by Eric Blake.
64646
64647 2007-07-22  Ben Pfaff  <blp@gnu.org>
64648
64649         New module: popcount.
64650         * MODULES.html.sh: Add popcount.
64651         * modules/popcount: New file.
64652         * modules/popcount-tests: New file.
64653         * tests/test-popcount.c: New file.
64654         * lib/popcount.h: New file.
64655         * m4/popcount.m4: New file.
64656
64657 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         * build-aux/announce-gen: Update to GPLv3.
64660
64661         * build-aux/config.guess: Update from config.
64662
64663 2007-07-21  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64666         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64667
64668 2007-07-20  Jim Meyering  <jim@meyering.net>
64669
64670         * check-module: Diagnose a self-dependency.
64671
64672 2007-07-19  Bruno Haible  <bruno@clisp.org>
64673
64674         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64675         empty.
64676         Reported by Eric Blake.
64677
64678 2007-07-18  Bruno Haible  <bruno@clisp.org>
64679
64680         * gnulib-tool: New options --po-base, --po-domain.
64681         (func_usage): Document them.
64682         (pobase, po_domain): New variables.
64683         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64684         DEFAULT_TEXT_DOMAIN.
64685         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64686         (func_import): Consider pobase and po_domain. Create a po/ directory.
64687         (func_create_testdir): Set pobase and po_domain to empty.
64688         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64689         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64690
64691 2007-07-18  Bruno Haible  <bruno@clisp.org>
64692
64693         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64694         EXTRA_DIST augmentation for files in build-aux/.
64695
64696 2007-07-16  Bruno Haible  <bruno@clisp.org>
64697
64698         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64699         * modules/getdelim (License): Likewise.
64700
64701 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64702
64703         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64704         * modules/d-type (License): Likewise.
64705         * modules/extensions (License): Likewise.
64706         * modules/fnmatch (License): Likewise.
64707         * modules/fseeko (License): Likewise.
64708         * modules/getaddrinfo (License): Likewise.
64709         * modules/getline (License): Likewise.
64710         * modules/getlogin_r (License): Likewise.
64711         * modules/getpass (License): Likewise.
64712         * modules/gettimeofday (License): Likewise.
64713         * modules/glob (License): Likewise.
64714         * modules/inet_ntop (License): Likewise.
64715         * modules/malloc (License): Likewise.
64716         * modules/malloca (License): Likewise.
64717         * modules/memmem (License): Likewise.
64718         * modules/mempcpy (License): Likewise.
64719         * modules/memset (License): Likewise.
64720         * modules/minmax (License): Likewise.
64721         * modules/mktime (License): Likewise.
64722         * modules/netinet_in (License): Likewise.
64723         * modules/pathmax (License): Likewise.
64724         * modules/poll (License): Likewise.
64725         * modules/regex (License): Likewise.
64726         * modules/snprintf (License): Likewise.
64727         * modules/stdbool (License): Likewise.
64728         * modules/stdint (License): Likewise.
64729         * modules/stdio (License): Likewise.
64730         * modules/strcase (License): Likewise.
64731         * modules/strcasestr (License): Likewise.
64732         * modules/strdup (License): Likewise.
64733         * modules/string (License): Likewise.
64734         * modules/strndup (License): Likewise.
64735         * modules/strnlen (License): Likewise.
64736         * modules/strpbrk (License): Likewise.
64737         * modules/strptime (License): Likewise.
64738         * modules/strsep (License): Likewise.
64739         * modules/sys_select (License): Likewise.
64740         * modules/sys_socket (License): Likewise.
64741         * modules/sys_stat (License): Likewise.
64742         * modules/sys_time (License): Likewise.
64743         * modules/time (License): Likewise.
64744         * modules/time_r (License): Likewise.
64745         * modules/timegm (License): Likewise.
64746         * modules/unistd (License): Likewise.
64747         * modules/vsnprintf (License): Likewise.
64748         * modules/wctype (License): Likewise.
64749
64750 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64751
64752         * modules/argz (License): LGPLv2+.
64753
64754 2007-07-15  Karl Berry  <karl@gnu.org>
64755
64756         * doc/gnulib.texi: revise node structure per new fdl.texi.
64757
64758 2007-07-14  Bruno Haible  <bruno@clisp.org>
64759
64760         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64761         the output file.
64762         * lib/uniname/uninames.h: Regenerated.
64763
64764 2007-07-14  Karl Berry  <karl@gnu.org>
64765
64766         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64767         omitting sectioning and index commands.
64768
64769 2007-07-13  Bruno Haible  <bruno@clisp.org>
64770
64771         New gnulib-tool option --more-symlinks.
64772         * gnulib-tool (func_usage): Document --more-symlinks.
64773         (do_copyrights): New variable.
64774         Recognize option --more-symlinks.
64775         (func_import): Don't add a copyright notice transform to
64776         sed_transform_lib_file if do_copyrights is empty.
64777
64778 2007-07-13  Bruno Haible  <bruno@clisp.org>
64779
64780         * lib/vasnprintf.c (decimal_point_char): Define also if
64781         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64782         && !NEED_PRINTF_DIRECTIVE_A.
64783         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64784         Gary V. Vaughan <gary@gnu.org>.
64785
64786 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64787
64788         * lib/inttypes_.h: Undo previous change, since it was fixed
64789         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64790
64791 2007-07-13  Bruno Haible  <bruno@clisp.org>
64792
64793         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64794         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64795
64796 2007-07-13  Jim Meyering  <jim@meyering.net>
64797
64798         df: Don't fail for Tru64's "file-on-file mount".
64799         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64800         so we fall through and use statfs instead.  Details here:
64801         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64802         Reported by Albert Chin.
64803
64804 2007-07-13  Bruno Haible  <bruno@clisp.org>
64805
64806         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64807         * modules/configmake (License): Likewise.
64808         * modules/gettext (License): Likewise.
64809         * modules/gettext-h (License): Likewise.
64810         * modules/include_next (License): Likewise.
64811         * modules/link-warning (License): Likewise.
64812         * modules/localcharset (License): Likewise.
64813         * modules/localename (License): Likewise.
64814         * modules/lock (License): Likewise.
64815         * modules/relocatable-lib-lgpl (License): Likewise.
64816         * modules/size_max (License): Likewise.
64817         * modules/vasnprintf (License): Likewise.
64818         * modules/wchar (License): Likewise.
64819         * modules/xsize (License): Likewise.
64820
64821 2007-07-13  Bruno Haible  <bruno@clisp.org>
64822
64823         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64824         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64825
64826 2007-07-12  Bruno Haible  <bruno@clisp.org>
64827
64828         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64829         in the modules files.
64830
64831 2007-07-11  Karl Berry  <karl@gnu.org>
64832
64833         * MODULES.html.sh (func_module): use
64834          sed -e '\|^'"${includefile}"'$|d'
64835          instead of /.../d, to avoid errors on $includefile's containing /.
64836
64837 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64838
64839         * gnulib-tool (func_import): Avoid duplication of --avoid
64840         statements
64841         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64842         names to `_' in variable names.
64843
64844 2007-07-10  Eric Blake  <ebb9@byu.net>
64845
64846         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64847         * NEWS: Document this change.
64848
64849 2007-07-08  Bruno Haible  <bruno@clisp.org>
64850
64851         Update to Unicode 5.0.
64852         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64853         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64854         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64855         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64856         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64857         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64858         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64859         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64860         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64861         U+10A3F, U+1D242..U+1D244.
64862         (nonspacing_table_ind): Update.
64863         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64864         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64865
64866 2007-07-08  Bruno Haible  <bruno@clisp.org>
64867
64868         Update to Unicode 5.0.
64869         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64870         code transform. Extend the name index field of unicode_name_to_code and
64871         unicode_code_to_name from 16 to 24 bits.
64872         * lib/uniname/uniname.c (unicode_character_name,
64873         unicode_name_character): Add the range 0x12xxx to the code transform.
64874         * lib/uniname/uninames.h: Regenerated.
64875         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64876
64877 2007-07-07  Bruno Haible  <bruno@clisp.org>
64878
64879         * modules/wcwidth-tests: New file.
64880         * tests/test-wcwidth.c: New file.
64881
64882         Work around MacOS X wcwidth() bug.
64883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64884         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64885         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64886         original wcwidth in non-UTF-8 locales.
64887         * modules/wcwidth (Depends-on): Add localcharset, streq,
64888         uniwidth/width.
64889         * doc/functions/wcwidth.texi: Update.
64890
64891 2007-07-07  Bruno Haible  <bruno@clisp.org>
64892
64893         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64894         (wcwidth): New declaration.
64895         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64896         macros.
64897         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64898         here. Prepare for creating <wchar.h> unconditionally.
64899         * modules/wchar (Depends-on): Add link-warning.
64900         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64901         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64902         * lib/wcwidth.h: Remove file.
64903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64904         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64905         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64906         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64907         (Include): Replace wcwidth.h with <wchar.h>.
64908         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64909         * lib/mbchar.h: Don't include wcwidth.h.
64910         * lib/mbswidth.c: Likewise.
64911         * NEWS: Mention the change.
64912
64913 2007-07-07  Bruno Haible  <bruno@clisp.org>
64914
64915         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64916         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64917         definition with an external declaration.
64918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64919         defined as a function. Remove AC_C_INLINE requirement.
64920         * modules/wcwidth (Files): Add lib/wcwidth.c.
64921         (Makefile.am): Remove redundant statement.
64922
64923 2007-07-07  Bruno Haible  <bruno@clisp.org>
64924
64925         * MODULES.html.sh (Unicode string functions): Add the new modules.
64926
64927         * tests/uniwidth/test-u32-strwidth.c: New file.
64928         * modules/uniwidth/u32-strwidth-tests: New file.
64929
64930         * lib/uniwidth/u32-strwidth.c: New file.
64931         * modules/uniwidth/u32-strwidth: New file.
64932
64933         * tests/uniwidth/test-u16-strwidth.c: New file.
64934         * modules/uniwidth/u16-strwidth-tests: New file.
64935
64936         * lib/uniwidth/u16-strwidth.c: New file.
64937         * modules/uniwidth/u16-strwidth: New file.
64938
64939         * tests/uniwidth/test-u8-strwidth.c: New file.
64940         * modules/uniwidth/u8-strwidth-tests: New file.
64941
64942         * lib/uniwidth/u8-strwidth.c: New file.
64943         * modules/uniwidth/u8-strwidth: New file.
64944
64945         * tests/uniwidth/test-u32-width.c: New file.
64946         * modules/uniwidth/u32-width-tests: New file.
64947
64948         * lib/uniwidth/u32-width.c: New file.
64949         * modules/uniwidth/u32-width: New file.
64950
64951         * tests/uniwidth/test-u16-width.c: New file.
64952         * modules/uniwidth/u16-width-tests: New file.
64953
64954         * lib/uniwidth/u16-width.c: New file.
64955         * modules/uniwidth/u16-width: New file.
64956
64957         * tests/uniwidth/test-u8-width.c: New file.
64958         * modules/uniwidth/u8-width-tests: New file.
64959
64960         * lib/uniwidth/u8-width.c: New file.
64961         * modules/uniwidth/u8-width: New file.
64962
64963         * tests/uniwidth/test-uc_width.c: New file.
64964         * modules/uniwidth/width-tests: New file.
64965
64966         * lib/uniwidth/width.c: New file, from GNU libiconv.
64967         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64968         * modules/uniwidth/width: New file.
64969
64970         * lib/uniwidth.h: New file, from GNU libiconv.
64971         * modules/uniwidth/base: New file.
64972
64973 2007-07-07  Bruno Haible  <bruno@clisp.org>
64974
64975         * lib/uniname.h: New file, from GNU gettext.
64976         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64977         * lib/uniname/uninames.h: New file, from GNU gettext.
64978         * lib/uniname/uniname.c: New file, from GNU gettext.
64979         * tests/uniname/test-uninames.sh: New file.
64980         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64981         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64982         * modules/uniname/base: New file.
64983         * modules/uniname/uniname: New file.
64984         * modules/uniname/uniname-tests: New file.
64985         * MODULES.html.sh (Unicode string functions): Add the new modules.
64986
64987 2007-07-06  Bruno Haible  <bruno@clisp.org>
64988
64989         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64990
64991 2007-07-06  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64994         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64995         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64996         include <sys/time.h>.
64997         Reported by Eric Blake.
64998
64999 2007-07-06  Eric Blake  <ebb9@byu.net>
65000
65001         Fix testing canonicalize on cygwin.
65002         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65003         Revert patch from 2007-06-19.
65004         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65005         canonicalize module is also in use.
65006         * tests/test-canonicalize.c: New file.
65007         * tests/test-canonicalize.sh: Likewise.
65008         * modules/canonicalize-tests: Likewise.
65009
65010 2007-07-06  Jim Meyering  <jim@meyering.net>
65011
65012         * lib/getugroups.c (getugroups): Detect getgrent failure.
65013         Adjust comment to reflect reality: this function may return -1.
65014
65015 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65016
65017         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65018         the new TP address.
65019         (usage): Fix typo
65020         (gnulib_mk): New variable.
65021
65022 2007-07-05  Jim Meyering  <jim@meyering.net>
65023
65024         Don't let endgrent clobber errno, no matter how improbable.
65025         * lib/getugroups.c (getugroups): Save and restore errno around
65026         endgrent call.
65027
65028         Close the group DB even when failing with 2^31 or more members.
65029         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65030
65031 2007-07-04  Jim Meyering  <jim@meyering.net>
65032
65033         * lib/getugroups.h: New file.
65034         * lib/getugroups.c: Include "getugroups.h".
65035         Remove uses of "register" keyword.
65036         Move local variable, "cp", down into scope where used.
65037         Give "username" parameter the "const" attribute.
65038         * modules/getugroups (Files): Add lib/getugroups.h
65039
65040 2007-07-04  Karl Berry  <karl@gnu.org>
65041
65042         * MODULES.html.sh (func_all_modules): Complete rename of
65043         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65044
65045 2007-07-02  Bruno Haible  <bruno@clisp.org>
65046
65047         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65048         mode, when inttypes.h comes from gnulib.
65049         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65050
65051 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65052
65053         * NEWS: Mention lgpl module name change.
65054
65055         * modules/lgpl-2.1: Renamed from lgpl.
65056
65057         * NEWS: Mention gpl module name change.
65058
65059         * modules/gpl-3.0: New file, based on gpl-2.0.
65060
65061         * modules/gpl-2.0: Renamed from gpl.
65062
65063         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65064         doc/gpl-2.0.texi.
65065
65066 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65067
65068         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65069         #define __STDC_LIMIT_MACROS temporarily while including
65070         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65071         Problem reported by Joel E. Denny in
65072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65073
65074 2007-07-01  Bruno Haible  <bruno@clisp.org>
65075
65076         * lib/unistdio.h: New file.
65077         * lib/unistdio/u-asnprintf.h: New file.
65078         * lib/unistdio/u-asprintf.h: New file.
65079         * lib/unistdio/u-printf-args.c: New file.
65080         * lib/unistdio/u-printf-args.h: New file.
65081         * lib/unistdio/u-printf-parse.h: New file.
65082         * lib/unistdio/u-snprintf.h: New file.
65083         * lib/unistdio/u-sprintf.h: New file.
65084         * lib/unistdio/u-vasprintf.h: New file.
65085         * lib/unistdio/u-vsnprintf.h: New file.
65086         * lib/unistdio/u-vsprintf.h: New file.
65087         * lib/unistdio/ulc-asnprintf.c: New file.
65088         * lib/unistdio/ulc-asprintf.c: New file.
65089         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65090         * lib/unistdio/ulc-printf-parse.c: New file.
65091         * lib/unistdio/ulc-snprintf.c: New file.
65092         * lib/unistdio/ulc-sprintf.c: New file.
65093         * lib/unistdio/ulc-vasnprintf.c: New file.
65094         * lib/unistdio/ulc-vasprintf.c: New file.
65095         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65096         * lib/unistdio/ulc-vsnprintf.c: New file.
65097         * lib/unistdio/ulc-vsprintf.c: New file.
65098         * lib/unistdio/u8-asnprintf.c: New file.
65099         * lib/unistdio/u8-asprintf.c: New file.
65100         * lib/unistdio/u8-printf-parse.c: New file.
65101         * lib/unistdio/u8-snprintf.c: New file.
65102         * lib/unistdio/u8-sprintf.c: New file.
65103         * lib/unistdio/u8-vasnprintf.c: New file.
65104         * lib/unistdio/u8-vasprintf.c: New file.
65105         * lib/unistdio/u8-vsnprintf.c: New file.
65106         * lib/unistdio/u8-vsprintf.c: New file.
65107         * lib/unistdio/u8-u8-asnprintf.c: New file.
65108         * lib/unistdio/u8-u8-asprintf.c: New file.
65109         * lib/unistdio/u8-u8-snprintf.c: New file.
65110         * lib/unistdio/u8-u8-sprintf.c: New file.
65111         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65112         * lib/unistdio/u8-u8-vasprintf.c: New file.
65113         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65114         * lib/unistdio/u8-u8-vsprintf.c: New file.
65115         * lib/unistdio/u16-asnprintf.c: New file.
65116         * lib/unistdio/u16-asprintf.c: New file.
65117         * lib/unistdio/u16-printf-parse.c: New file.
65118         * lib/unistdio/u16-snprintf.c: New file.
65119         * lib/unistdio/u16-sprintf.c: New file.
65120         * lib/unistdio/u16-vasnprintf.c: New file.
65121         * lib/unistdio/u16-vasprintf.c: New file.
65122         * lib/unistdio/u16-vsnprintf.c: New file.
65123         * lib/unistdio/u16-vsprintf.c: New file.
65124         * lib/unistdio/u16-u16-asnprintf.c: New file.
65125         * lib/unistdio/u16-u16-asprintf.c: New file.
65126         * lib/unistdio/u16-u16-snprintf.c: New file.
65127         * lib/unistdio/u16-u16-sprintf.c: New file.
65128         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65129         * lib/unistdio/u16-u16-vasprintf.c: New file.
65130         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65131         * lib/unistdio/u16-u16-vsprintf.c: New file.
65132         * lib/unistdio/u32-asnprintf.c: New file.
65133         * lib/unistdio/u32-asprintf.c: New file.
65134         * lib/unistdio/u32-printf-parse.c: New file.
65135         * lib/unistdio/u32-snprintf.c: New file.
65136         * lib/unistdio/u32-sprintf.c: New file.
65137         * lib/unistdio/u32-vasnprintf.c: New file.
65138         * lib/unistdio/u32-vasprintf.c: New file.
65139         * lib/unistdio/u32-vsnprintf.c: New file.
65140         * lib/unistdio/u32-vsprintf.c: New file.
65141         * lib/unistdio/u32-u32-asnprintf.c: New file.
65142         * lib/unistdio/u32-u32-asprintf.c: New file.
65143         * lib/unistdio/u32-u32-snprintf.c: New file.
65144         * lib/unistdio/u32-u32-sprintf.c: New file.
65145         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65146         * lib/unistdio/u32-u32-vasprintf.c: New file.
65147         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65148         * lib/unistdio/u32-u32-vsprintf.c: New file.
65149         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65150         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65151         * tests/unistdio/test-ulc-printf1.h: New file.
65152         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65153         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65154         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65155         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65156         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65157         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65158         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65159         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65160         * tests/unistdio/test-u8-asnprintf1.c: New file.
65161         * tests/unistdio/test-u8-asnprintf1.h: New file.
65162         * tests/unistdio/test-u8-printf1.h: New file.
65163         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65164         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65165         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65166         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65167         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65168         * tests/unistdio/test-u8-vasprintf1.c: New file.
65169         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65170         * tests/unistdio/test-u8-vsprintf1.c: New file.
65171         * tests/unistdio/test-u16-asnprintf1.c: New file.
65172         * tests/unistdio/test-u16-asnprintf1.h: New file.
65173         * tests/unistdio/test-u16-printf1.h: New file.
65174         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65175         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65176         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65177         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65178         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65179         * tests/unistdio/test-u16-vasprintf1.c: New file.
65180         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65181         * tests/unistdio/test-u16-vsprintf1.c: New file.
65182         * tests/unistdio/test-u32-asnprintf1.c: New file.
65183         * tests/unistdio/test-u32-asnprintf1.h: New file.
65184         * tests/unistdio/test-u32-printf1.h: New file.
65185         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65186         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65187         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65188         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65189         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65190         * tests/unistdio/test-u32-vasprintf1.c: New file.
65191         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65192         * tests/unistdio/test-u32-vsprintf1.c: New file.
65193         * modules/unistdio/base: New file.
65194         * modules/unistdio/u-printf-args: New file.
65195         * modules/unistdio/ulc-asnprintf: New file.
65196         * modules/unistdio/ulc-asprintf: New file.
65197         * modules/unistdio/ulc-fprintf: New file.
65198         * modules/unistdio/ulc-printf-parse: New file.
65199         * modules/unistdio/ulc-snprintf: New file.
65200         * modules/unistdio/ulc-sprintf: New file.
65201         * modules/unistdio/ulc-vasnprintf: New file.
65202         * modules/unistdio/ulc-vasprintf: New file.
65203         * modules/unistdio/ulc-vfprintf: New file.
65204         * modules/unistdio/ulc-vsnprintf: New file.
65205         * modules/unistdio/ulc-vsprintf: New file.
65206         * modules/unistdio/u8-asnprintf: New file.
65207         * modules/unistdio/u8-asprintf: New file.
65208         * modules/unistdio/u8-printf-parse: New file.
65209         * modules/unistdio/u8-snprintf: New file.
65210         * modules/unistdio/u8-sprintf: New file.
65211         * modules/unistdio/u8-vasnprintf: New file.
65212         * modules/unistdio/u8-vasprintf: New file.
65213         * modules/unistdio/u8-vsnprintf: New file.
65214         * modules/unistdio/u8-vsprintf: New file.
65215         * modules/unistdio/u8-u8-asnprintf: New file.
65216         * modules/unistdio/u8-u8-asprintf: New file.
65217         * modules/unistdio/u8-u8-snprintf: New file.
65218         * modules/unistdio/u8-u8-sprintf: New file.
65219         * modules/unistdio/u8-u8-vasnprintf: New file.
65220         * modules/unistdio/u8-u8-vasprintf: New file.
65221         * modules/unistdio/u8-u8-vsnprintf: New file.
65222         * modules/unistdio/u8-u8-vsprintf: New file.
65223         * modules/unistdio/u16-asnprintf: New file.
65224         * modules/unistdio/u16-asprintf: New file.
65225         * modules/unistdio/u16-printf-parse: New file.
65226         * modules/unistdio/u16-snprintf: New file.
65227         * modules/unistdio/u16-sprintf: New file.
65228         * modules/unistdio/u16-vasnprintf: New file.
65229         * modules/unistdio/u16-vasprintf: New file.
65230         * modules/unistdio/u16-vsnprintf: New file.
65231         * modules/unistdio/u16-vsprintf: New file.
65232         * modules/unistdio/u16-u16-asnprintf: New file.
65233         * modules/unistdio/u16-u16-asprintf: New file.
65234         * modules/unistdio/u16-u16-snprintf: New file.
65235         * modules/unistdio/u16-u16-sprintf: New file.
65236         * modules/unistdio/u16-u16-vasnprintf: New file.
65237         * modules/unistdio/u16-u16-vasprintf: New file.
65238         * modules/unistdio/u16-u16-vsnprintf: New file.
65239         * modules/unistdio/u16-u16-vsprintf: New file.
65240         * modules/unistdio/u32-asnprintf: New file.
65241         * modules/unistdio/u32-asprintf: New file.
65242         * modules/unistdio/u32-printf-parse: New file.
65243         * modules/unistdio/u32-snprintf: New file.
65244         * modules/unistdio/u32-sprintf: New file.
65245         * modules/unistdio/u32-vasnprintf: New file.
65246         * modules/unistdio/u32-vasprintf: New file.
65247         * modules/unistdio/u32-vsnprintf: New file.
65248         * modules/unistdio/u32-vsprintf: New file.
65249         * modules/unistdio/u32-u32-asnprintf: New file.
65250         * modules/unistdio/u32-u32-asprintf: New file.
65251         * modules/unistdio/u32-u32-snprintf: New file.
65252         * modules/unistdio/u32-u32-sprintf: New file.
65253         * modules/unistdio/u32-u32-vasnprintf: New file.
65254         * modules/unistdio/u32-u32-vasprintf: New file.
65255         * modules/unistdio/u32-u32-vsnprintf: New file.
65256         * modules/unistdio/u32-u32-vsprintf: New file.
65257         * modules/unistdio/ulc-asnprintf-tests: New file.
65258         * modules/unistdio/ulc-vasnprintf-tests: New file.
65259         * modules/unistdio/ulc-vasprintf-tests: New file.
65260         * modules/unistdio/ulc-vsnprintf-tests: New file.
65261         * modules/unistdio/ulc-vsprintf-tests: New file.
65262         * modules/unistdio/u8-asnprintf-tests: New file.
65263         * modules/unistdio/u8-vasnprintf-tests: New file.
65264         * modules/unistdio/u8-vasprintf-tests: New file.
65265         * modules/unistdio/u8-vsnprintf-tests: New file.
65266         * modules/unistdio/u8-vsprintf-tests: New file.
65267         * modules/unistdio/u16-asnprintf-tests: New file.
65268         * modules/unistdio/u16-vasnprintf-tests: New file.
65269         * modules/unistdio/u16-vasprintf-tests: New file.
65270         * modules/unistdio/u16-vsnprintf-tests: New file.
65271         * modules/unistdio/u16-vsprintf-tests: New file.
65272         * modules/unistdio/u32-asnprintf-tests: New file.
65273         * modules/unistdio/u32-vasnprintf-tests: New file.
65274         * modules/unistdio/u32-vasprintf-tests: New file.
65275         * modules/unistdio/u32-vsnprintf-tests: New file.
65276         * modules/unistdio/u32-vsprintf-tests: New file.
65277         * MODULES.html.sh (Unicode string functions): Add the new modules.
65278
65279 2007-07-01  Bruno Haible  <bruno@clisp.org>
65280
65281         * lib/sprintf.c (sprintf): Limit the available length estimation,
65282         to avoid address wraparound.
65283         * lib/vsprintf.c (vsprintf): Likewise.
65284         * modules/sprintf-posix (Dependencies): Add stdint.
65285         * modules/vsprintf-posix (Dependencies): Likewise.
65286
65287 2007-07-01  Bruno Haible  <bruno@clisp.org>
65288
65289         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65290         Windows PATH as well. Conservative double-quoting. Comments.
65291
65292 2007-07-01  Bruno Haible  <bruno@clisp.org>
65293             Eric Blake  <ebb9@byu.net>
65294             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65295
65296         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65297         empty components in $PATH, denoting '.'.
65298
65299 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65300
65301         * gnulib-tool: Fix indentation.
65302         (func_create_megatestdir): Likewise.
65303         Report by Bruno Haible.
65304
65305 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65306
65307         Sync from Automake.
65308         * build-aux/gnupload: Fix shell portability issues with for loops.
65309         Report by Karl Berry.
65310
65311 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65312
65313         * build-aux/maint.mk (POURL): Use translationproject.org.
65314
65315 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65316             Bruno Haible  <bruno@clisp.org>
65317
65318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65319         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65320         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65321         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65322         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65323
65324 2007-06-27  Bruno Haible  <bruno@clisp.org>
65325
65326         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65327         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65328
65329 2007-06-26  Karl Berry  <karl@gnu.org>
65330
65331         * MODULES.html.sh: remove xreadlink-with-size.
65332
65333 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65336         method that I hope also handles the double-include problem noted
65337         by Bruno Haible in
65338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65339
65340 2007-06-23  Bruno Haible  <bruno@clisp.org>
65341
65342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65343         Don't let the 'mostlyclean' target fail if the last subdirectory could
65344         not be removed.
65345         Reported by Karl Berry.
65346
65347 2007-06-23  Bruno Haible  <bruno@clisp.org>
65348
65349         * gnulib-tool (echo): Add a speedier workaround for ksh.
65350         * tests/test-echo.sh: Likewise.
65351
65352 2007-06-23  Bruno Haible  <bruno@clisp.org>
65353
65354         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65355         * tests/test-echo.sh: Likewise.
65356
65357 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65358
65359         * gnulib-tool (IFS): Initialize early, so we don't set it to
65360         empty later.
65361         (self_abspathname): Rewrite algorithm to set it, reindent.
65362         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65363         (func_create_megatestdir): Merge some sed scripts.
65364
65365 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65368         exposed by Sun Studio 11 cc on Solaris 8.
65369
65370 2007-06-22  Bruno Haible  <bruno@clisp.org>
65371
65372         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65373         backslashes.
65374         * tests/test-echo.sh: New file.
65375
65376 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65377
65378         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65379         simplify `sed_replace_build_aux' scripts, they are portable but
65380         echoing them with `echo' is not.
65381         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65382
65383 2007-06-21  Karl Berry  <karl@gnu.org>
65384
65385         * config/srclist.txt: guess we can't handle the licenses via
65386         srclist at the moment.
65387
65388 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65389
65390         * MODULES.html.sh: Add include_next.
65391         * modules/include_next: New file.
65392
65393 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65396         INCLUDE_NEXT.
65397         (gl_CHECK_NEXT_HEADERS): New macro.
65398         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65399         the obsolescent gl_ABSOLUTE_HEADER.
65400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65401         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65402         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65403         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65404         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65405         * m4/math_h.m4 (gl_MATH_H): Likewise.
65406         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65407         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65408         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65409         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65410         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65411         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65412         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65417         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65418         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65419         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65420         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65421         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65422         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65423         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65424         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65425         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65426         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65427         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65428         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65429         * lib/float_.h: Likewise.
65430         * lib/inttypes_.h: Likewise.
65431         * lib/math_.h: Likewise.
65432         * lib/search_.h: Likewise.
65433         * lib/signal_.h: Likewise.
65434         * lib/stdint_.h: Likewise.
65435         * lib/stdio_.h: Likewise.
65436         * lib/stdlib_.h: Likewise.
65437         * lib/string_.h: Likewise.
65438         * lib/sys_stat_.h: Likewise.
65439         * lib/sys_time_.h: Likewise.
65440         * lib/time_.h: Likewise.
65441         * lib/unistd_.h: Likewise.
65442         * lib/wchar_.h: Likewise.
65443         * lib/wctype_.h: Likewise.
65444         * lib/dirent_.h: Likewise.
65445         * lib/iconv_.h: Likewise.
65446         * lib/locale_.h: Likewise.
65447         * lib/netinet_in_.h: Likewise.
65448         * lib/sys_select_.h: Likewise.
65449         * lib/sys_socket_.h: Likewise.
65450         * lib/sysexits_.h: Likewise.
65451         * modules/fcntl (Depends-on): Depend on include_next, not
65452         absolute_header.
65453         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65454         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65455         * modules/fchdir: Likewise.
65456         * modules/float: Likewise.
65457         * modules/iconv_open: Likewise.
65458         * modules/inttypes: Likewise.
65459         * modules/locale: Likewise.
65460         * modules/math: Likewise.
65461         * modules/netinet_in: Likewise.
65462         * modules/search: Likewise.
65463         * modules/signal: Likewise.
65464         * modules/stdint: Likewise.
65465         * modules/stdio: Likewise.
65466         * modules/stdlib: Likewise.
65467         * modules/string: Likewise.
65468         * modules/sys_select: Likewise.
65469         * modules/sys_socket: Likewise.
65470         * modules/sys_stat: Likewise.
65471         * modules/sys_time: Likewise.
65472         * modules/sysexits: Likewise.
65473         * modules/time: Likewise.
65474         * modules/unistd: Likewise.
65475         * modules/wchar: Likewise.
65476         * modules/wctype: Likewise.
65477         * modules/sys_stat: Change maintainer to "all".
65478         * modules/unistd: Likewise.
65479
65480 2007-06-20  Karl Berry  <karl@gnu.org>
65481
65482         * config/srclist.txt: track www changes in license files.
65483
65484 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65485
65486         * build-aux/bootstrap: Remove stray dot.
65487         Make sure build_aux settings are honored when linking
65488         gnulib_extra_files.
65489
65490 2007-06-19  Eric Blake  <ebb9@byu.net>
65491
65492         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65493         Allow compilation on cygwin.
65494
65495 2007-06-19  Jim Meyering  <jim@meyering.net>
65496
65497         xreadlink-with-size: Remove module.  No longer used.
65498         Ex-callers now use xreadlink or mreadlink-with-size.
65499         * modules/xreadlink-with-size: Remove module.
65500         * lib/xreadlink-with-size.c: Remove file.
65501         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65502         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65503         just before the function definition *is* accurate.
65504
65505         Eliminate one way canonicalize_filename_mode could exit.
65506         * lib/canonicalize.c (canonicalize_filename_mode):
65507         Use mreadlink_with_size, not xreadlink_with_size.
65508
65509 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         Detect porting problems to FreeBSD/arm, which has time_t wider than
65512         long int.  Original problem reported for GNU diff by Xin Li in
65513         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65514         * modules/getdate (Depends-on): Add intprops, verify.
65515         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65516         is an integer type no wider than long int.
65517
65518 2007-06-18  Jim Meyering  <jim@meyering.net>
65519
65520         New module: mreadlink-with-size.
65521         * MODULES.html.sh: Add mreadlink-with-size.
65522         * modules/mreadlink-with-size: New module
65523         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65524         not xreadlink-with-size.
65525         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65526
65527 2007-06-16  Bruno Haible  <bruno@clisp.org>
65528
65529         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65530         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65531         Reported by Gary V. Vaughan <gary@gnu.org>.
65532
65533 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         Revamp lchown so that it lives in unistd.h where it belongs.
65536         * lib/lchown.h: Remove.
65537         * lib/dirchownmod.c: Don't include lib/lchown.h.
65538         * lib/fchownat.c: Likewise.
65539         * lib/openat.c: Likewise.
65540         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65541         does not follow symlinks.
65542         (EOPNOTSUPP): Define if not defined.
65543         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65544         is defined to 0.
65545         (lchown): New decl.
65546         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65547         Do not check for lchown decl.
65548         Set REPLACE_LCHOWN.
65549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65550         REPLACE_LCHOWN.
65551         * modules/chown: Make it clear it follows symlinks.
65552         * modules/lchown: Make it clear it doesn't follow symlinks.
65553         (Files): Remove lib/lchown.h
65554         (Depends-on): Add unistd.
65555         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65556         (Include): Include <unistd.h>, not "lchown.h".
65557         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65558         REPLACE_LCHOWN.
65559
65560 2007-06-15  Jim Meyering  <jim@meyering.net>
65561
65562         Change license (GPL to LGPL) of fsusage and dependents.
65563         * modules/fsusage (License): Change to LGPL.
65564         * modules/full-read (License): Likewise.
65565         * modules/full-write (License): Likewise.
65566         * modules/safe-read (License): Likewise.
65567         * modules/safe-write (License): Likewise.
65568
65569 2007-06-14  Ben Pfaff  <blp@gnu.org>
65570
65571         Missing part of allocsa -> malloca transition.
65572         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65573         gl_MALLOCA.
65574
65575 2007-06-12  Bruno Haible  <bruno@clisp.org>
65576
65577         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65578         to ia64, x86_64, i386.
65579         Reported by Eric Blake.
65580
65581 2007-06-12  Bruno Haible  <bruno@clisp.org>
65582
65583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65584         cross-compiling to x86_64.
65585
65586 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65589         glitch reported by Ralf Wildenhues in
65590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65591
65592         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65593         Vin Shelton.
65594
65595 2007-06-11  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65598         replacement string.
65599         Reported by Eric Blake.
65600
65601 2007-06-10  Bruno Haible  <bruno@clisp.org>
65602
65603         Prepare vasnprintf code for use with Unicode strings.
65604         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65605         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65606         TYPE_U32_STRING.
65607         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65608         a_u32_string variants.
65609         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65610         * lib/printf-args.c: Don't include config.h and the specification
65611         header if PRINTF_FETCHARGS is already defined.
65612         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65613         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65614         TYPE_U16_STRING, TYPE_U32_STRING.
65615         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65616         u16_directive, u16_directives, u32_directive, u32_directives): New
65617         types.
65618         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65619         New declarations.
65620         * lib/printf-parse.c: Don't include config.h and the specification
65621         header if PRINTF_PARSE is already defined. Eliminate the set of
65622         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65623         them now. Include c-ctype.h.
65624         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65625         directive and CHAR_T_ONLY_ASCII.
65626         * lib/vasnprintf.c: Don't include config.h and the specification header
65627         if VASNPRINTF is already defined.
65628         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65629         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65630         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65631         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65632         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65633         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65634         code accordingly.
65635         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65636         pad_ourselves also in this case, with the 'c' and 's' directives, and
65637         with a different notion of "width".
65638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65639
65640 2007-06-10  Bruno Haible  <bruno@clisp.org>
65641
65642         * modules/unistr/u32-mbsnlen: New file.
65643         * lib/unistr/u32-mbsnlen.c: New file.
65644
65645         * modules/unistr/u16-mbsnlen: New file.
65646         * lib/unistr/u16-mbsnlen.c: New file.
65647
65648         * modules/unistr/u8-mbsnlen: New file.
65649         * lib/unistr/u8-mbsnlen.c: New file.
65650
65651         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65652         declarations.
65653
65654 2007-06-10  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/string_.h (mbsnlen): New declaration.
65657         * lib/mbsnlen.c: New file.
65658         * m4/mbsnlen.m4: New file.
65659         * modules/mbsnlen: New file.
65660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65661         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65662         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65663
65664 2007-06-10  Bruno Haible  <bruno@clisp.org>
65665
65666         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65667
65668 2007-06-10  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65671         * lib/mbuiter.h: Likewise.
65672
65673 2007-06-10  Bruno Haible  <bruno@clisp.org>
65674
65675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65676         declaration.
65677
65678 2007-06-10  Karl Berry  <karl@gnu.org>
65679
65680         * config/srclist.txt: remove gettext entries, Bruno prefers
65681         to update individually.
65682
65683 2007-06-10  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65686         'maxlen'. Ensure only length + width bytes are allocated, not
65687         length + 1 + width.
65688
65689 2007-06-09  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65692         (CHAR_T): Remove macro.
65693         (VASNPRINTF): Update.
65694
65695 2007-06-09  Bruno Haible  <bruno@clisp.org>
65696
65697         * MODULES.html.sh (Unicode string functions): Add the new modules.
65698
65699         * modules/uniconv/u32-conv-to-enc: New file.
65700         * lib/uniconv/u32-conv-to-enc.c: New file.
65701         * modules/uniconv/u32-conv-to-enc-tests: New file.
65702         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65703
65704         * modules/uniconv/u16-conv-to-enc: New file.
65705         * lib/uniconv/u16-conv-to-enc.c: New file.
65706         * lib/uniconv/u-conv-to-enc.h: New file.
65707         * modules/uniconv/u16-conv-to-enc-tests: New file.
65708         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65709
65710         * modules/uniconv/u8-conv-to-enc: New file.
65711         * lib/uniconv/u8-conv-to-enc.c: New file.
65712         * modules/uniconv/u8-conv-to-enc-tests: New file.
65713         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65714
65715         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65716         u32_conv_to_encoding): New declarations.
65717
65718 2007-06-09  Bruno Haible  <bruno@clisp.org>
65719
65720         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65721
65722 2007-06-09  Bruno Haible  <bruno@clisp.org>
65723
65724         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65725         * modules/malloca: Renamed from modules/allocsa, updated.
65726         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65727         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65728         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65729         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65730         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65731         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65732         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65733         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65734         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65735         * modules/c-strcasestr (Depends-on): Update.
65736         * lib/c-strcasestr.c: Update.
65737         * modules/c-strstr (Depends-on): Update.
65738         * lib/c-strstr.c: Update.
65739         * modules/canonicalize-lgpl (Depends-on): Update.
65740         * lib/canonicalize-lgpl.c: Update.
65741         * modules/clean-temp (Depends-on): Update.
65742         * lib/clean-temp.c: Update.
65743         * modules/csharpcomp (Depends-on): Update.
65744         * lib/csharpcomp.c: Update.
65745         * modules/csharpexec (Depends-on): Update.
65746         * lib/csharpexec.c: Update.
65747         * modules/javacomp (Depends-on): Update.
65748         * lib/javacomp.c: Update.
65749         * modules/javaexec (Depends-on): Update.
65750         * lib/javaexec.c: Update.
65751         * modules/mbscasestr (Depends-on): Update.
65752         * lib/mbscasestr.c: Update.
65753         * modules/mbsstr (Depends-on): Update.
65754         * lib/mbsstr.c: Update.
65755         * modules/setenv (Depends-on): Update.
65756         * lib/setenv.c: Update.
65757         * modules/strcasestr (Depends-on): Update.
65758         * lib/strcasestr.c: Update.
65759         * modules/striconveha (Depends-on): Update.
65760         * lib/striconveha.c: Update.
65761         * modules/relocatable-prog-wrapper (Files): Update.
65762         * lib/relocwrapper.c: Update.
65763         * build-aux/install-reloc: Update.
65764         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65765
65766 2007-06-08  Bruno Haible  <bruno@clisp.org>
65767
65768         Port to uClibc.
65769         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65770         * lib/fpurge.c (fpurge): Likewise.
65771         * lib/freading.c (freading): Likewise.
65772         * lib/fseeko.c (rpl_fseeko): Likewise.
65773         * lib/fseterr.c (fseterr): Likewise.
65774         * lib/fwriting.c (fwriting): Likewise.
65775         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65776
65777 2007-06-08  Bruno Haible  <bruno@clisp.org>
65778
65779         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65780         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65781         * modules/gettext (Files): Add m4/intlmacosx.m4.
65782
65783 2007-06-07  Bruno Haible  <bruno@clisp.org>
65784
65785         * modules/localename-tests: New file.
65786         * tests/test-localename.c: New file.
65787
65788         New module 'localename'.
65789         * lib/localename.h: New file.
65790         * lib/localename.c: New file, from GNU gettext.
65791         * m4/localename.m4: New file.
65792         * modules/localename: New file.
65793
65794 2007-06-07  Bruno Haible  <bruno@clisp.org>
65795
65796         Work around the lack of <wchar.h> on some builds of uClibc.
65797         * doc/headers/wchar.texi: Update.
65798         * lib/wchar_.h: Include <wchar.h> only if it exists.
65799         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65800         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65801         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65802         doesn't exist.
65803         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65804         * modules/mbfile (Depends-on): Add wchar.
65805         * modules/mbiter (Depends-on): Likewise.
65806         * modules/mbuiter (Depends-on): Likewise.
65807         Reported by Simon Josefsson.
65808
65809 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65810
65811         Work around problem reported by Steven M. Schweda in
65812         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65813         Tru64 5.1B with the Compaq compiler environment installed declares
65814         an 'isblank' function but does not define it in the C library.
65815         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65816         * lib/regex_internal.h (isblank): Likewise.
65817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65818         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65819
65820 2007-06-05  Bruno Haible  <bruno@clisp.org>
65821
65822         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65823         ia64.
65824         * modules/printf-safe: New file.
65825         * modules/fprintf-posix (Depends-on): Add printf-safe.
65826         * modules/printf-posix (Depends-on): Likewise.
65827         * modules/snprintf-posix (Depends-on): Likewise.
65828         * modules/sprintf-posix (Depends-on): Likewise.
65829         * modules/vasnprintf-posix (Depends-on): Likewise.
65830         * modules/vasprintf-posix (Depends-on): Likewise.
65831         * modules/vfprintf-posix (Depends-on): Likewise.
65832         * modules/vprintf-posix (Depends-on): Likewise.
65833         * modules/vsnprintf-posix (Depends-on): Likewise.
65834         * modules/vsprintf-posix (Depends-on): Likewise.
65835         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65836         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65837         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65838         "no" on i386, x86_64, ia64.
65839         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65840         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65841         on i386, x86_64, ia64.
65842         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65843         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65844         on i386, x86_64, ia64.
65845         * tests/test-vasnprintf-posix.c: Include float.h.
65846         (LDBL80_WORDS): New macro.
65847         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65848         on i386, x86_64, ia64.
65849         * tests/test-vasprintf-posix.c: Include float.h.
65850         (LDBL80_WORDS): New macro.
65851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65852         on i386, x86_64, ia64.
65853         * tests/test-snprintf-posix.c: Include float.h.
65854         * tests/test-sprintf-posix.c: Likewise.
65855         * tests/test-vsnprintf-posix.c: Likewise.
65856         * tests/test-vsprintf-posix.c: Likewise.
65857
65858 2007-06-05  Bruno Haible  <bruno@clisp.org>
65859
65860         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65861         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65862         non-IEEE numbers on i386, x86_64, ia64.
65863         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65864         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65865         * tests/test-isnanl.h: Include float.h.
65866         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65867
65868 2007-06-05  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65871         also the %a / %A. Handle the %a / %A code before this extra handling.
65872
65873 2007-06-05  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65876         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65877
65878 2007-06-05  Bruno Haible  <bruno@clisp.org>
65879
65880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65881         typo in variable name.
65882
65883 2007-06-05  Eric Blake  <ebb9@byu.net>
65884
65885         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65886         Reported by Simon Josefsson.
65887
65888 2007-06-04  Bruno Haible  <bruno@clisp.org>
65889
65890         Avoid test failures on some PowerPC platforms.
65891         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65892         Define differently for PowerPC.
65893         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65894         Reported by Gary V. Vaughan <gary@gnu.org>.
65895
65896 2007-06-02  Bruno Haible  <bruno@clisp.org>
65897
65898         Fix test-stdint failure on FreeBSD/ia64.
65899         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65900         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65901         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65902         * doc/headers/stdint.texi: Update.
65903
65904 2007-06-01  Bruno Haible  <bruno@clisp.org>
65905
65906         * tests/test-binary-io.c (main): Pass a third argument to open().
65907         Reported by Gary V. Vaughan <gary@gnu.org>.
65908
65909 2007-06-01  Bruno Haible  <bruno@clisp.org>
65910
65911         * doc/functions/frexpl.texi: Update for mingw.
65912
65913 2007-06-01  Bruno Haible  <bruno@clisp.org>
65914
65915         * tests/test-lseek.c (main): Disable test of errno for invalid third
65916         argument.
65917         * doc/functions/lseek.texi: Update.
65918         Reported by Gary V. Vaughan <gary@gnu.org>.
65919
65920 2007-05-28  Bruno Haible  <bruno@clisp.org>
65921
65922         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65923
65924 2007-05-31  Eric Blake  <ebb9@byu.net>
65925
65926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65927         cross compiling.
65928
65929 2007-05-30  Eric Blake  <ebb9@byu.net>
65930         and Bruno Haible  <bruno@clisp.org>
65931
65932         Work around mingw test failures exposed by m4-1.4.9b.
65933         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65934         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65935         moment.
65936
65937 2007-05-30  Bruno Haible  <bruno@clisp.org>
65938
65939         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65940         assuming that they are closed. Needed on HP-UX 11.
65941
65942 2007-05-29  Bruno Haible  <bruno@clisp.org>
65943
65944         Fix a problem with #include_next.
65945         * lib/dirent_.h: Split the double-inclusion guard.
65946         * lib/fcntl_.h: Likewise.
65947         * lib/float_.h: Likewise.
65948         * lib/iconv_.h: Likewise.
65949         * lib/inttypes_.h: Likewise.
65950         * lib/locale_.h: Likewise.
65951         * lib/math_.h: Likewise.
65952         * lib/netinet_in_.h: Likewise.
65953         * lib/search_.h: Likewise.
65954         * lib/signal_.h: Likewise.
65955         * lib/stdint_.h: Likewise.
65956         * lib/stdio_.h: Likewise.
65957         * lib/stdlib_.h: Likewise.
65958         * lib/string_.h: Likewise.
65959         * lib/sys_select_.h: Likewise.
65960         * lib/sys_socket_.h: Likewise.
65961         * lib/sys_stat_.h: Likewise.
65962         * lib/sys_time_.h: Likewise.
65963         * lib/sysexits_.h: Likewise.
65964         * lib/time_.h: Likewise.
65965         * lib/unistd_.h: Likewise.
65966         * lib/wchar_.h: Likewise.
65967         * lib/wctype_.h: Likewise.
65968
65969 2007-05-29  Bruno Haible  <bruno@clisp.org>
65970
65971         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65972         for the moment.
65973
65974 2007-05-29  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65977         invocation.
65978         Reported by Eric Blake.
65979
65980 2007-05-29  Bruno Haible  <bruno@clisp.org>
65981
65982         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65983         compiling case.
65984
65985 2007-05-29  Eric Blake  <ebb9@byu.net>
65986             Bruno Haible  <bruno@clisp.org>
65987
65988         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65989         cross compiles.
65990
65991 2007-05-28  Eric Blake  <ebb9@byu.net>
65992
65993         * modules/closein-tests (test_closein_LDADD): Support test on
65994         cygwin with libtool.
65995
65996 2007-05-28  Bruno Haible  <bruno@clisp.org>
65997
65998         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65999         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66000         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66001         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66002         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66003         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66004         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66005         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66006         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66007
66008 2007-05-28  Eric Blake  <ebb9@byu.net>
66009
66010         Unconditionally include <config.h> in unit tests.
66011         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66012         * tests/test-allocsa.c, tests/test-arcfour.c,
66013         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66014         tests/test-array_list.c, tests/test-array_oset.c,
66015         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66016         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66017         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66018         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66019         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66020         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66021         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66022         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66023         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66024         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66025         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66026         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66027         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66028         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66029         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66030         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66031         test-md5.c, test-memmem.c, test-printf-posix.c,
66032         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66033         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66034         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66035         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66036         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66037         test-vasnprintf-posix2.c, test-vasnprintf.c,
66038         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66039         test-vfprintf-posix.c, test-vprintf-posix.c,
66040         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66041         test-xvasprintf.c: Likewise.
66042
66043 2007-05-28  Bruno Haible  <bruno@clisp.org>
66044
66045         * gnulib-tool (func_import): Remember the --with-tests command-line
66046         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66047         Reported by Eric Blake.
66048
66049 2007-05-28  Bruno Haible  <bruno@clisp.org>
66050
66051         * modules/ftell-tests: New file.
66052         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66053         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66054
66055         * lib/ftell.c: New file.
66056         * modules/ftell: New file.
66057         * m4/ftell.m4: New file.
66058         * doc/functions/ftell.texi: Update.
66059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66060         REPLACE_FTELL.
66061         * lib/stdio_.h (rpl_ftell): New declaration.
66062         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66063         REPLACE_FTELL.
66064
66065 2007-05-28  Eric Blake  <ebb9@byu.net>
66066
66067         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66068
66069 2007-05-28  Bruno Haible  <bruno@clisp.org>
66070
66071         * modules/fseek-tests: New file.
66072         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66073         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66074
66075         * lib/fseek.c: New file.
66076         * modules/fseek: New file.
66077         * m4/fseek.m4: New file.
66078         * doc/functions/fseek.texi: Update.
66079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66080         REPLACE_FSEEK.
66081         * lib/stdio_.h (rpl_fseek): New declaration.
66082         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66083         REPLACE_FSEEK.
66084
66085 2007-05-28  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/stdio_.h (fflush): More comments.
66088
66089 2007-05-28  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66092         runtime test.
66093
66094 2007-05-28  Eric Blake  <ebb9@byu.net>
66095
66096         Improve lseek module.
66097         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66098         * lib/unistd_.h (lseek): Scale back link warning message.
66099         * tests/test-lseek.c: Beef up test.
66100         * tests/test-lseek.sh: Exercise more facets of lseek.
66101         Reported by Bruno Haible.
66102
66103 2007-05-28  Bruno Haible  <bruno@clisp.org>
66104
66105         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66106         to define.
66107
66108 2007-05-27  Bruno Haible  <bruno@clisp.org>
66109
66110         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66111
66112 2007-05-27  Bruno Haible  <bruno@clisp.org>
66113
66114         * modules/openmp: New file.
66115         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66116         Noah Misch.
66117
66118 2007-05-26  Bruno Haible  <bruno@clisp.org>
66119
66120         * modules/chdir-long (Depends-on): Add fchdir.
66121         * modules/chdir-safer (Depends-on): Likewise.
66122         * modules/fts (Depends-on): Likewise.
66123         * modules/fts-lgpl (Depends-on): Likewise.
66124         * modules/openat (Depends-on): Likewise.
66125         * modules/savewd (Depends-on): Likewise.
66126
66127 2007-05-24  Eric Blake  <ebb9@byu.net>
66128
66129         Fix lseek on mingw.
66130         * modules/lseek: New module.
66131         * m4/lseek.m4: New file.
66132         * lib/lseek.c: New file.
66133         * modules/lseek-tests: New file.
66134         * tests/test-lseek.c: New file.
66135         * tests/test-lseek.sh: New file.
66136         * MODULES.html.sh: Document lseek module.
66137         * modules/fflush (Depends-on): Add lseek, fseeko.
66138         * modules/fseeko (Depends-on): Likewise.
66139         * modules/ftello (Depends-on): Likewise.
66140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66141         broken.
66142         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66143         broken.
66144         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66145         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66146         * lib/ftello.c (rpl_ftello): Likewise.
66147         * tests/test-fseeko.c (main): Test this.
66148         * tests/test-fseeko.sh: Likewise.
66149         * tests/test-ftello.c (main): Likewise.
66150         * tests/test-ftello.sh: Likewise.
66151         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66152         implies replacing fseek.
66153         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66154         HAVE_FTELLO.
66155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66156         * modules/unistd (Makefile.am): Likewise.
66157         * lib/unistd_.h (lseek): Declare a replacement.
66158         * doc/functions/lseek.texi (lseek): Document this fix.
66159         * doc/functions/fseek.texi (fseek): Likewise.
66160         * doc/functions/ftell.texi (ftell): Likewise.
66161
66162 2007-05-24  Bruno Haible  <bruno@clisp.org>
66163
66164         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66165         in the printed representation of a NaN.
66166         * tests/test-vasprintf-posix.c (test_function): Likewise.
66167         * tests/test-snprintf-posix.h (test_function): Likewise.
66168         * tests/test-sprintf-posix.h (test_function): Likewise.
66169         Reported by Eric Blake.
66170
66171 2007-05-23  Eric Blake  <ebb9@byu.net>
66172
66173         Fix fseeko/ftello on cygwin 1.5.24.
66174         * doc/functions/fseeko.texi (fseeko): Document the fix.
66175         * doc/functions/ftello.texi (ftello): Document the fix.
66176         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66177         * doc/functions/stdout.text (stdout): New file.
66178         * doc/functions/stderr.text (stderr): New file.
66179         * doc/gnulib.texi (Function Substitutes): Use new files.
66180         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66181         prior to 1.7.0.
66182         * tests/test-ftello.c (main): Likewise for ftello.
66183         * tests/test-fseeko.sh: New file.
66184         * tests/test-ftello.sh: New file.
66185         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66186         with seekable stdin.
66187         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66189         (gl_REPLACE_FSEEKO): New macro.
66190         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66191         * modules/fseeko (Files): Distribute fseeko.c.
66192         * modules/ftello (Files): Distribute ftello.c.
66193         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66194         mode.
66195         * lib/ftello.c (rpl_ftello): New file.
66196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66197         fseeko, ftello.
66198         (gl_STDIN_LARGE_OFFSET): New macro.
66199         * modules/stdio (Makefile.am): Perform the replacement.
66200         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66201
66202 2007-05-23  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66205         GNULIB_POSIXCHECK is defined.
66206
66207 2007-05-21  Bruno Haible  <bruno@clisp.org>
66208
66209         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66210         Check also the output for NaN arguments. When cross-compiling, guess
66211         no on IRIX.
66212         * lib/vasnprintf.c: Update comments.
66213         * tests/test-vasnprintf-posix.c (strisnan): New function.
66214         (test_function): Use it.
66215         * tests/test-vasprintf-posix.c (strisnan): New function.
66216         (test_function): Use it.
66217         * tests/test-snprintf-posix.h (strisnan): New function.
66218         (test_function): Use it.
66219         * tests/test-sprintf-posix.h (strisnan): New function.
66220         (test_function): Use it.
66221         Reported by Eric Blake.
66222
66223 2007-05-20  Bruno Haible  <bruno@clisp.org>
66224
66225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66226         numbers that fails on BeOS.
66227         * doc/functions/frexpl.texi: Update.
66228
66229 2007-05-20  Jim Meyering  <jim@meyering.net>
66230
66231         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66232         forced upon us by glibc-2.6.
66233
66234 2007-05-20  Bruno Haible  <bruno@clisp.org>
66235
66236         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66237         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66238         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66239         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66240         NEED_PRINTF_INFINITE.
66241         (is_infinitel): New function.
66242         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66244         gl_PREREQ_VASNPRINTF_INFINITE.
66245         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66246         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66247         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66248         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66249         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66250         gl_PREREQ_VASNPRINTF_INFINITE.
66251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66255         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66256         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66258         * doc/functions/fprintf.texi: Update.
66259         * doc/functions/printf.texi: Update.
66260         * doc/functions/snprintf.texi: Update.
66261         * doc/functions/sprintf.texi: Update.
66262         * doc/functions/vfprintf.texi: Update.
66263         * doc/functions/vprintf.texi: Update.
66264         * doc/functions/vsnprintf.texi: Update.
66265         * doc/functions/vsprintf.texi: Update.
66266
66267 2007-05-20  Bruno Haible  <bruno@clisp.org>
66268
66269         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66270         was not found in libc.
66271         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66272
66273 2007-05-20  Bruno Haible  <bruno@clisp.org>
66274
66275         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66276         printed as "-nan" instead of "nan".
66277         * tests/test-vasprintf-posix.c (test_function): Likewise.
66278         * tests/test-snprintf-posix.h (test_function): Likewise.
66279         * tests/test-sprintf-posix.h (test_function): Likewise.
66280         Needed for HP-UX 11.
66281
66282 2007-05-20  Jim Meyering  <jim@meyering.net>
66283
66284         Fix buggy test for the fchownat-deref bug.
66285         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66286         symlink required for the run-test.  Without it, this test would
66287         always declare that fchownat doesn't work, and client code would
66288         unnecessarily use the replacement function with fixed libc.
66289         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66290         Reported by Greg Schafer.
66291
66292 2007-05-19  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66295         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66296         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66297         Needed for IRIX 6.5 and Solaris 2.5.1.
66298
66299 2007-05-19  Bruno Haible  <bruno@clisp.org>
66300
66301         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66302         (test_function): Skip tests involving -0.0 on platforms where
66303         -0.0 = 0.0.
66304         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66305         (test_function): Skip tests involving -0.0 on platforms where
66306         -0.0 = 0.0.
66307         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66308         (test_function): Skip tests involving -0.0 on platforms where
66309         -0.0 = 0.0.
66310         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66311         (test_function): Skip tests involving -0.0 on platforms where
66312         -0.0 = 0.0.
66313         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66314         tests.
66315         * tests/test-printf-posix.h (test_function): Likewise.
66316         * tests/test-printf-posix.output: Remove all -0.0 related results.
66317         Needed for IRIX 6.5.
66318
66319 2007-05-19  Bruno Haible  <bruno@clisp.org>
66320
66321         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66322         printed as "nan0x7fffffff" instead of "nan".
66323         * tests/test-vasprintf-posix.c (test_function): Likewise.
66324         * tests/test-snprintf-posix.h (test_function): Likewise.
66325         * tests/test-sprintf-posix.h (test_function): Likewise.
66326         * tests/test-fprintf-posix.h (NaN): Remove macro.
66327         (test_function): Remove all NaN related tests.
66328         * tests/test-printf-posix.h (NaN): Remove macro.
66329         (test_function): Remove all NaN related tests.
66330         * tests/test-printf-posix.output: Remove all NaN related results.
66331         Needed for IRIX 6.5.
66332
66333 2007-05-19  Bruno Haible  <bruno@clisp.org>
66334
66335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66337
66338 2007-05-19  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/float_.h: New file.
66341         * m4/float_h.m4: New file.
66342         * modules/float: New file.
66343         * modules/isnanl (Dependencies): Add float.
66344         * modules/isnanl-nolibm (Dependencies): Likewise.
66345         * modules/mathl (Dependencies): Likewise.
66346         * modules/printf-frexpl (Dependencies): Likewise.
66347         * modules/signbit (Dependencies): Likewise.
66348         * modules/vasnprintf (Dependencies): Likewise.
66349         * doc/headers/float.texi: Update.
66350
66351 2007-05-19  Jim Meyering  <jim@meyering.net>
66352
66353         * lib/utimens.c (gl_futimens): Rename from futimens,
66354         now that glibc-2.6 declares futimens.
66355         * lib/utimens.h: Likewise.
66356
66357 2007-05-19  Bruno Haible  <bruno@clisp.org>
66358
66359         Avoid test failures on mingw.
66360         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66361         * tests/test-printf-posix.sh: Likewise.
66362         * tests/test-vfprintf-posix.sh: Likewise.
66363         * tests/test-vprintf-posix.sh: Likewise.
66364
66365 2007-05-19  Bruno Haible  <bruno@clisp.org>
66366
66367         Fix *printf result for NaN, Inf, -0.0 on mingw.
66368         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66369         * lib/vasnprintf.c: Include math.h and isnan.h.
66370         (is_infinite_or_zero): New function.
66371         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66372         values in the %f, %F, %e, %E, %g, %G directives.
66373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66375         gl_PRINTF_INFINITE and test its result. Invoke
66376         gl_PREREQ_VASNPRINTF_INFINITE.
66377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66379         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66383         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66384         * doc/functions/fprintf.texi: Update.
66385         * doc/functions/printf.texi: Update.
66386         * doc/functions/snprintf.texi: Update.
66387         * doc/functions/sprintf.texi: Update.
66388         * doc/functions/vfprintf.texi: Update.
66389         * doc/functions/vprintf.texi: Update.
66390         * doc/functions/vsnprintf.texi: Update.
66391         * doc/functions/vsprintf.texi: Update.
66392
66393 2007-05-19  Bruno Haible  <bruno@clisp.org>
66394
66395         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66396         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66397         Instead of multiplying with 10^k, set extra_zeroes to k.
66398         (scale10_round_long_double): Remove function.
66399
66400 2007-05-18  Bruno Haible  <bruno@clisp.org>
66401
66402         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66403         introduced on 2007-05-06.
66404
66405 2007-05-18  Bruno Haible  <bruno@clisp.org>
66406
66407         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66408         %g directives.
66409         * tests/test-vasprintf-posix.c (test_function): Likewise.
66410         * tests/test-snprintf-posix.h (test_function): Likewise.
66411         * tests/test-sprintf-posix.h (test_function): Likewise.
66412
66413 2007-05-18  Bruno Haible  <bruno@clisp.org>
66414
66415         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66416         (strmatch): New function.
66417         (test_function): Test the %f directive on numbers of various exponents.
66418         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66419         (strmatch): New function.
66420         (test_function): Test the %f directive on numbers of various exponents.
66421         * tests/test-snprintf-posix.h (strmatch): New function.
66422         (test_function): Test the %f directive on numbers of various exponents.
66423         * tests/test-sprintf-posix.h (strmatch): New function.
66424         (test_function): Test the %f directive on numbers of various exponents.
66425         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66426         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66427         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66428         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66429
66430 2007-05-18  Bruno Haible  <bruno@clisp.org>
66431
66432         Add support for 'long double' number output.
66433         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66434         * lib/vasnprintf.c: Include math.h and float+.h.
66435         (mp_limb_t): New type.
66436         (GMP_LIMB_BITS): New macro.
66437         (mp_twolimb_t): New type.
66438         (GMP_TWOLIMB_BITS): New macro.
66439         (mpn_t): New type.
66440         (multiply, divide, convert_to_decimal, decode_long_double,
66441         scale10_round_long_double, scale10_round_decimal_long_double,
66442         floorlog10l): New functions.
66443         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66444         for the %f, %F, %e, %E, %g, %G directives.
66445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66446         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66447         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66448         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66449         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66456         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66457         * modules/snprintf-posix (Depends-on): Likewise.
66458         * modules/sprintf-posix (Depends-on): Likewise.
66459         * modules/vasnprintf-posix (Depends-on): Likewise.
66460         * modules/vasprintf-posix (Depends-on): Likewise.
66461         * modules/vfprintf-posix (Depends-on): Likewise.
66462         * modules/vsnprintf-posix (Depends-on): Likewise.
66463         * modules/vsprintf-posix (Depends-on): Likewise.
66464         * modules/vasnprintf (Files): Add lib/float+.h.
66465         * doc/functions/fprintf.texi: Update.
66466         * doc/functions/printf.texi: Update.
66467         * doc/functions/snprintf.texi: Update.
66468         * doc/functions/sprintf.texi: Update.
66469         * doc/functions/vfprintf.texi: Update.
66470         * doc/functions/vprintf.texi: Update.
66471         * doc/functions/vsnprintf.texi: Update.
66472         * doc/functions/vsprintf.texi: Update.
66473
66474 2007-05-18  Bruno Haible  <bruno@clisp.org>
66475
66476         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66477
66478 2007-05-18  Bruno Haible  <bruno@clisp.org>
66479
66480         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66481         for printing 64-bit integers. Needed for mingw.
66482
66483 2007-05-18  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66486         gl_FUNC_FREXPL_WORKS.
66487         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66488
66489 2007-05-18  Bruno Haible  <bruno@clisp.org>
66490
66491         * modules/frexpl-nolibm-tests: New file.
66492
66493         * modules/frexpl-nolibm: New file.
66494         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66495
66496 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66497
66498         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66499         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66500         GCC 4.2, which otherwise issues a lot of warnings.
66501         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66502         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66503         Likewise.
66504         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66505         * modules/iconv_open (iconv.h): Likewise.
66506         * modules/locale (locale.h): Likewise.
66507         * modules/netinet_in (netinet/in.h): Likewise.
66508         * modules/sys_select (sys_select.h): Likewise.
66509         * modules/sys_socket (sys/socket.h): Likewise.
66510         * modules/sys_stat (sys/stat.h): Likewise.
66511         * modules/sysexits (sysexits.h): Likewise.
66512         * modules/unistd (unistd.h): Likewise.
66513
66514 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66515
66516         * modules/closein-tests (Makefile.am): Distribute
66517         `test-closein.sh'.
66518
66519 2007-05-17  Bruno Haible  <bruno@clisp.org>
66520
66521         * tests/test-printf-posix.output: Renamed from
66522         tests/test-fprintf-posix.out.
66523         * modules/fprintf-posix-tests: Update.
66524         * modules/printf-posix-tests: Update.
66525         * modules/vfprintf-posix-tests: Update.
66526         * modules/vprintf-posix-tests: Update.
66527         * tests/test-fprintf-posix.sh: Update.
66528         * tests/test-printf-posix.sh: Update.
66529         * tests/test-vfprintf-posix.sh: Update.
66530         * tests/test-vprintf-posix.sh: Update.
66531         Reported by Ralf Wildenhues.
66532
66533 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66536         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66537         GCC 4.2, which otherwise issues a lot of warnings.
66538         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66539         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66540         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66541         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66542         it should no longer be needed.
66543         * lib/string_.h: Likewise.
66544         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66545         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66546         * modules/inttypes (inttypes.h): Likewise.
66547         * modules/math (math.h): Likewise.
66548         * modules/search (search.h): Likewise.
66549         * modules/signal (signal.h): Likewise.
66550         * modules/stdint (stdint.h): Likewise.
66551         * modules/stdio (stdio.h): Likewise.
66552         * modules/stdlib (stdlib.h): Likewise.
66553         * modules/string (string.h): Likewise.
66554         * modules/sys_time (sys/time.h): Likewise.
66555         * modules/time (time.h): Likewise.
66556         * modules/wchar (wchar.h): Likewise.
66557         * modules/wctype (wtype.h): Likewise.
66558
66559 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66560
66561         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66562
66563 2007-05-13  Bruno Haible  <bruno@clisp.org>
66564
66565         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66566         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66567         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66568         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66569         (gl_PREREQ_STRTOK_R): Don't require it here.
66570
66571 2007-05-13  Bruno Haible  <bruno@clisp.org>
66572
66573         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66574         when used in C++ mode.
66575
66576 2007-05-12  Bruno Haible  <bruno@clisp.org>
66577
66578         * lib/linebuffer.h: Tweak doc.
66579         * lib/linebuffer.c: Likewise.
66580
66581 2007-05-12  James Youngman  <jay@gnu.org>
66582
66583         * lib/linebuffer.c (readlinebuffer_delim): New function,
66584         like readlinebuffer, but use a caller-specified delimiter.
66585         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66586         as the delimiter.
66587         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66588
66589 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66590
66591         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66592         * modules/openat (Files): Remove openat-die.c.
66593         (Depends-on): Add openat-die.
66594         * modules/openat-die: New module.
66595
66596 2007-05-06  Bruno Haible  <bruno@clisp.org>
66597
66598         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66599         Update with info about Cygwin.
66600         * doc/functions/fprintf.texi: Update.
66601         * doc/functions/printf.texi: Update.
66602         * doc/functions/snprintf.texi: Update.
66603         * doc/functions/sprintf.texi: Update.
66604         * doc/functions/vfprintf.texi: Update.
66605         * doc/functions/vprintf.texi: Update.
66606         * doc/functions/vsnprintf.texi: Update.
66607         * doc/functions/vsprintf.texi: Update.
66608         Reported by Eric Blake.
66609
66610 2007-05-06  Bruno Haible  <bruno@clisp.org>
66611
66612         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66613         padding ourselves for the floating-point directives.
66614         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66617         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66618         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66620         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66626         * tests/test-snprintf-posix.h (test_function): Also check the width
66627         and some flags in the %f directive.
66628         * tests/test-sprintf-posix.h (test_function): Likewise.
66629         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66630         * tests/test-vasprintf-posix.c (test_function): Likewise.
66631         * doc/functions/fprintf.texi: Update.
66632         * doc/functions/printf.texi: Update.
66633         * doc/functions/snprintf.texi: Update.
66634         * doc/functions/sprintf.texi: Update.
66635         * doc/functions/vfprintf.texi: Update.
66636         * doc/functions/vprintf.texi: Update.
66637         * doc/functions/vsnprintf.texi: Update.
66638         * doc/functions/vsprintf.texi: Update.
66639
66640 2007-05-06  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66643         pass the ' flag character to sprintf or snprintf.
66644         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66647         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66648         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66656         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66657         flag.
66658         * tests/test-sprintf-posix.h (test_function): Likewise.
66659         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66660         * tests/test-vasprintf-posix.c (test_function): Likewise.
66661         * doc/functions/fprintf.texi: Update.
66662         * doc/functions/printf.texi: Update.
66663         * doc/functions/snprintf.texi: Update.
66664         * doc/functions/sprintf.texi: Update.
66665         * doc/functions/vfprintf.texi: Update.
66666         * doc/functions/vprintf.texi: Update.
66667         * doc/functions/vsnprintf.texi: Update.
66668         * doc/functions/vsprintf.texi: Update.
66669
66670 2007-05-01  Bruno Haible  <bruno@clisp.org>
66671
66672         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66673
66674 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66677         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66678
66679 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66680
66681         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66682         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66684
66685 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66686
66687         * lib/argp-help.c (struct hol_entry): New member `ord'.
66688         (HOL_ENTRY_PTRCMP): Use ord for comparison
66689         (hol_sort): Initialize ord.
66690
66691 2007-05-01  Bruno Haible  <bruno@clisp.org>
66692
66693         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66694         Reported by Eric Blake.
66695         * doc/gnulib.texi (Function Substitutes): Update.
66696
66697 2007-05-01  Bruno Haible  <bruno@clisp.org>
66698
66699         * doc/functions.texi: Remove file, now redundant through
66700         doc/functions/*.texi.
66701
66702 2007-05-01  Bruno Haible  <bruno@clisp.org>
66703
66704         * modules/argp (Depends-on): Add sleep.
66705
66706 2007-05-01  Bruno Haible  <bruno@clisp.org>
66707
66708         * modules/sleep-tests: New file.
66709         * tests/test-sleep.c: New file.
66710
66711         * modules/sleep: New file.
66712         * lib/sleep.c: New file.
66713         * m4/sleep.m4: New file.
66714         * lib/unistd_.h (sleep): New declaration.
66715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66716         HAVE_SLEEP.
66717         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66718         * doc/functions/sleep.texi: Document the sleep module.
66719
66720 2007-05-01  Bruno Haible  <bruno@clisp.org>
66721
66722         * lib/sigprocmask.h: Remove file.
66723         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66724         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66725         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66726         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66727         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66728         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66729         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66730         HAVE_SIGSET_T as a shell variable.
66731         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66732         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66733         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66734         (Depends-on): Add signal. Remove verify.
66735         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66736         (Include): Mention <signal.h> instead of sigprocmask.h.
66737         * NEWS: Mention the change.
66738         * lib/fatal-signal.c: Don't include sigprocmask.h.
66739
66740 2007-05-01  Bruno Haible  <bruno@clisp.org>
66741
66742         * modules/signal: New file.
66743         * lib/signal_.h: New file.
66744         * m4/signal_h.m4: New file.
66745
66746 2007-05-01  Bruno Haible  <bruno@clisp.org>
66747
66748         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66749         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66750         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66751         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66752
66753 2007-05-01  Bruno Haible  <bruno@clisp.org>
66754
66755         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66756         configure time.
66757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66758         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66759         * modules/sys_stat (Makefile.am): Substitute their values into
66760         sys/stat.h.
66761
66762 2007-05-01  Bruno Haible  <bruno@clisp.org>
66763
66764         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66765         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66766         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66767
66768 2007-05-01  Bruno Haible  <bruno@clisp.org>
66769
66770         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66771         'assert' module here.
66772
66773 2007-05-01  Bruno Haible  <bruno@clisp.org>
66774
66775         * doc/functions/*.texi: New files.
66776         * doc/functions/google-ranking.txt: New file.
66777         * doc/gnulib.texi (Function Substitutes): New chapter.
66778         (ctime, inet_ntoa): Remove sections.
66779         * doc/ctime.texi: Remove file.
66780         * doc/inet_ntoa.texi: Remove file.
66781         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66782         dependencies.
66783         (%.info): New rule, specifying a --reference-limit.
66784
66785 2007-05-01  Bruno Haible  <bruno@clisp.org>
66786
66787         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66788
66789 2007-05-01  Bruno Haible  <bruno@clisp.org>
66790
66791         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66792         the portability of 'mkdir' to mingw systems.
66793
66794 2007-05-01  Bruno Haible  <bruno@clisp.org>
66795
66796         * doc/headers/google-ranking.txt: New file.
66797
66798 2007-04-30  Eric Blake  <ebb9@byu.net>
66799
66800         Prefer fseeko to fseek.
66801         * modules/getpass (Depends-on): Add fseeko.
66802         * lib/getpass.c (getpass): Use fseeko, not fseek.
66803
66804 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66805
66806         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66807         assumes the sorting is stable, while most qsort implementations
66808         are not.  Use argument addresses to ensure they never compare as
66809         equal.
66810
66811         * tests/test-argp-2.sh (usage-indent test): Fix output
66812         (func_compare): Restore diff options
66813         * tests/test-argp.c: Restore #include "progname.h"
66814
66815 2007-04-29  Bruno Haible  <bruno@clisp.org>
66816
66817         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66819         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66821         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66822         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66823         (TESTS, check_PROGRAMS): Add test-snprintf.
66824         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66825         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66826         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66827         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66828         assertions that fail on HP-UX, OSF/1, or IRIX.
66829         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66830
66831 2007-04-29  Bruno Haible  <bruno@clisp.org>
66832
66833         * MODULES.html.sh (posix_functions): Remove 'contents'.
66834
66835 2007-04-29  Karl Berry  <karl@gnu.org>
66836
66837         * config/srclist.txt (gendocs_template_min): new entry.
66838
66839 2007-04-29  Bruno Haible  <bruno@clisp.org>
66840
66841         Work around fpurge bug on BSD systems.
66842         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66843         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66844         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66845         fpurge to rpl_fpurge if the system already has this function.
66846         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66847         the case where the system already has this function. Correct invariants
66848         on BSD systems.
66849         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66850         BSD systems.
66851
66852 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66853
66854         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66855         proposed by Sven Verdoolaege.
66856
66857         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66858         options.
66859         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66860         (usage and help tests): Update
66861
66862 2007-04-29  Bruno Haible  <bruno@clisp.org>
66863
66864         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66865         Print more information in case of failure. Disable a test on BeOS.
66866
66867 2007-04-29  Bruno Haible  <bruno@clisp.org>
66868
66869         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66870         This helps debugging on systems on which no gdb is available.
66871
66872 2007-04-29  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/freading.h: Improve comments.
66875         * lib/fwriting.h: Likewise.
66876         * tests/test-freading.c (main): Don't check freading immediately after
66877         repositioning. Needed for glibc.
66878
66879 2007-04-29  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/freading.c (freading): Trivial simplification.
66882
66883 2007-04-28  Bruno Haible  <bruno@clisp.org>
66884
66885         * tests/test-fwriting.c (main): Also test the interaction between
66886         fflush and fwriting.
66887         * modules/fwriting-tests (Depends-on): Add fflush.
66888
66889         * tests/test-freading.c (main): Also test the interaction between
66890         fflush and freading.
66891         * modules/freading-tests (Depends-on): Add fflush.
66892
66893 2007-04-28  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66896         fseeko and ftello.
66897         Suggested by Eric Blake.
66898
66899 2007-04-28  Jim Meyering  <jim@meyering.net>
66900
66901         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66902         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66903         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66904
66905 2007-04-27  Eric Blake  <ebb9@byu.net>
66906
66907         * doc/headers/assert.texi (assert.h): Document assert module use.
66908
66909 2007-04-27  Bruno Haible  <bruno@clisp.org>
66910
66911         * doc/headers/*.texi: New files.
66912         * doc/gnulib.texi (Header File Substitutes): New chapter.
66913         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66914         dependencies.
66915         (standards.info ,standards.html, standards.dvi): Update dependencies.
66916         (mostlyclean, clean): New targets.
66917
66918 2007-04-27  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66921         * modules/sysexits (Files, Makefile.am): Update.
66922
66923         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66924         * modules/sys_socket (Files, Makefile.am): Update.
66925
66926         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66927         * modules/sys_stat (Files, Makefile.am): Update.
66928
66929 2007-04-27  Eric Blake  <ebb9@byu.net>
66930
66931         * lib/freading.h: Improve comments.
66932         * lib/fwriting.h: Likewise.
66933         * lib/fflush.c: Likewise.
66934
66935         Fix closein for mingw.
66936         * modules/closein-tests: Add tests for closein.
66937         * tests/test-closein.c: New file.
66938         * tests/test-closein.sh: Likewise.
66939         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66940         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66941
66942 2007-04-27  Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66945         version is < 6.
66946         * lib/math_.h [__DECC]: Likewise.
66947         * lib/stdio_.h [__DECC]: Likewise.
66948         * lib/stdlib_.h [__DECC]: Likewise.
66949         * lib/string_.h [__DECC]: Likewise.
66950         * lib/time_.h [__DECC]: Likewise.
66951         * lib/wchar_.h [__DECC]: Likewise.
66952         * lib/wctype_.h [__DECC]: Likewise.
66953
66954 2007-04-27  Bruno Haible  <bruno@clisp.org>
66955
66956         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66957
66958 2007-04-27  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/fflush.c: Add comments.
66961         * modules/fpurge-tests (Depends-on): Add fflush.
66962         * modules/freadable-tests (Depends-on): Likewise.
66963         * modules/fwritable-tests (Depends-on): Likewise.
66964
66965 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66966
66967         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66968         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66969         Report by Bruno Haible <bruno@clisp.org>.
66970
66971 2007-04-26  Eric Blake  <ebb9@byu.net>
66972
66973         Fix fflush on mingw.
66974         * modules/fflush (Depends-on): Add freading.
66975         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66976         but unread data.
66977
66978 2007-04-26  Eric Blake  <ebb9@byu.net>
66979         and Bruno Haible  <bruno@clisp.org>
66980
66981         Implement freading and fwriting.
66982         * lib/freading.c: New file.
66983         * lib/freading.h: Likewise.
66984         * m4/freading.m4: Likewise.
66985         * modules/freading: Likewise.
66986         * modules/freading-tests: Likewise.
66987         * tests/test-freading.c: Likewise.
66988         * lib/fwriting.c: New file.
66989         * lib/fwriting.h: Likewise.
66990         * m4/fwriting.m4: Likewise.
66991         * modules/fwriting: Likewise.
66992         * modules/fwriting-tests: Likewise.
66993         * tests/test-fwriting.c: Likewise.
66994         * MODULES.html.sh (File stream based Input/Output): Mention them.
66995
66996 2007-04-26  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66999         'long' when we assume it.
67000         Suggested by Eric Blake.
67001
67002 2007-04-26  Bruno Haible  <bruno@clisp.org>
67003
67004         Ensure fseeko, ftello are declared on glibc systems.
67005         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67006         * modules/fseeko (configure.ac-early): Likewise.
67007         * modules/ftello (configure.ac-early): Likewise.
67008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67009         AC_FUNC_FSEEKO for this.
67010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67011         (gl_CHECK_FSEEKO): Remove macro.
67012
67013 2007-04-26  Bruno Haible  <bruno@clisp.org>
67014
67015         * tests/test-fflush.c (main): Also check the ftell result after
67016         fflush and fseek/fseeko.
67017         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67018         file descriptor position cache in the stream.
67019         * lib/fseeko.c (rpl_fseeko): Likewise.
67020
67021 2007-04-26  Bruno Haible  <bruno@clisp.org>
67022
67023         * modules/fflush-tests (Depends-on): Add fseeko.
67024
67025 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67026             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67027
67028         * lib/argz_.h: ensure error_t definition is obtained in same
67029         mechanism system argz.h would have.
67030         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67031         argz facilities are known bad.  Err on the side of caution if
67032         cross-compiling.
67033
67034 2007-04-25  Eric Blake  <ebb9@byu.net>
67035
67036         * lib/fpurge.c (includes): Use stdlib.h for free.
67037         * tests/test-fflush.c (main): Also test fflush-fseeko.
67038
67039 2007-04-25  Bruno Haible  <bruno@clisp.org>
67040
67041         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67042         * lib/fseeko.c: New file.
67043         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67044         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67045         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67046         gl_FUNC_FSEEKO.
67047         (gl_FUNC_FSEEKO): Invoke it.
67048         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67049         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67050         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67051
67052 2007-04-25  Bruno Haible  <bruno@clisp.org>
67053
67054         * modules/fflush (Depends-on): Add ftello.
67055
67056 2007-04-25  Bruno Haible  <bruno@clisp.org>
67057
67058         * modules/ftello-tests: New file.
67059         * tests/test-ftello.c: New file.
67060
67061         * modules/ftello: New file.
67062         * m4/ftello.m4: New file.
67063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67064         HAVE_FTELLO.
67065         * lib/stdio_.h (ftello): New declaration.
67066         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67067         HAVE_FTELLO.
67068
67069 2007-04-25  Bruno Haible  <bruno@clisp.org>
67070
67071         * modules/fseeko-tests: New file.
67072         * tests/test-fseeko.c: New file.
67073
67074         * modules/fseeko: New file.
67075         * m4/fseeko.m4: New file.
67076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67077         HAVE_FSEEKO.
67078         * lib/stdio_.h (fseeko): New declaration.
67079         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67080         HAVE_FSEEKO.
67081
67082 2007-04-25  Bruno Haible  <bruno@clisp.org>
67083
67084         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67085
67086 2007-04-25  Bruno Haible  <bruno@clisp.org>
67087
67088         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67089         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67090         * tests/test-unistd.c: Likewise.
67091         * tests/test-fcntl.c: Likewise.
67092
67093 2007-04-23  Eric Blake  <ebb9@byu.net>
67094
67095         * lib/fflush.c: Fix missing include.
67096         Reported by Bruno Haible.
67097
67098 2007-04-23  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67101         Reported by Eric Blake.
67102
67103 2007-04-23  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67106
67107 2007-04-23  Bruno Haible  <bruno@clisp.org>
67108
67109         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67110
67111 2007-04-23  Bruno Haible  <bruno@clisp.org>
67112
67113         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67114         Needed on HP-UX 11.
67115
67116 2007-04-16  Eric Blake  <ebb9@byu.net>
67117
67118         Make fflush rely on fpurge.
67119         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67120         open coding all variants.
67121         * modules/fflush (Depends-on): Add fpurge and unistd.
67122         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67123         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67124
67125         Fix --with-tests compilation on cygwin.
67126         * modules/argmatch-tests (Makefile.am): List gnulib library first
67127         in LDADD.
67128         * modules/argp-tests (Makefile.am): Likewise.
67129         * modules/array-list-tests (Makefile.am): Likewise.
67130         * modules/array-oset-tests (Makefile.am): Likewise.
67131         * modules/avltree-list-tests (Makefile.am): Likewise.
67132         * modules/avltree-oset-tests (Makefile.am): Likewise.
67133         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67134         * modules/carray-list-tests (Makefile.am): Likewise.
67135         * modules/dirname-tests (Makefile.am): Likewise.
67136         * modules/frexp-tests (Makefile.am): Likewise.
67137         * modules/isnanl-tests (Makefile.am): Likewise.
67138         * modules/linked-list-tests (Makefile.am): Likewise.
67139         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67140         * modules/lock-tests (Makefile.am): Likewise.
67141         * modules/rbtree-list-tests (Makefile.am): Likewise.
67142         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67143         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67144         * modules/tls-tests (Makefile.am): Likewise.
67145         * modules/tsearch-tests (Makefile.am): Likewise.
67146         * modules/xvasprintf-tests (Makefile.am): Likewise.
67147
67148         Fix fpurge for cygwin.
67149         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67150         value.
67151         * modules/fpurge-tests (Depends-on): Clean up trash.
67152
67153 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67154
67155         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67156
67157         * m4/autobuild.m4: Re-indent.
67158
67159 2007-04-13  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/fpurge-tests: New file.
67162         * tests/test-fpurge.c: New file.
67163
67164         * modules/fpurge: New file.
67165         * lib/fpurge.h: New file.
67166         * lib/fpurge.c: New file.
67167         * m4/fpurge.m4: New file.
67168
67169 2007-04-13  Bruno Haible  <bruno@clisp.org>
67170
67171         * modules/fbufmode-tests: New file.
67172         * tests/test-fbufmode.c: New file.
67173
67174         * modules/fbufmode: New file.
67175         * lib/fbufmode.h: New file.
67176         * lib/fbufmode.c: New file.
67177         * m4/fbufmode.m4: New file.
67178
67179 2007-04-13  Bruno Haible  <bruno@clisp.org>
67180
67181         * modules/fwritable-tests: New file.
67182         * tests/test-fwritable.c: New file.
67183
67184         * modules/fwritable: New file.
67185         * lib/fwritable.h: New file.
67186         * lib/fwritable.c: New file.
67187         * m4/fwritable.m4: New file.
67188
67189 2007-04-13  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/freadable-tests: New file.
67192         * tests/test-freadable.c: New file.
67193
67194         * modules/freadable: New file.
67195         * lib/freadable.h: New file.
67196         * lib/freadable.c: New file.
67197         * m4/freadable.m4: New file.
67198
67199 2007-04-13  Bruno Haible  <bruno@clisp.org>
67200
67201         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67202         MOSTLYCLEANFILES.
67203
67204 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67207         gzip bootstrap.conf to avoid dragging in i18n machinery.
67208         (gnulib_tool_option): Use it.
67209
67210 2007-04-13  Bruno Haible  <bruno@clisp.org>
67211
67212         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67213         %F directives.
67214         * tests/test-vasprintf-posix.c (test_function): Likewise.
67215         * tests/test-snprintf-posix.h (test_function): Likewise.
67216         * tests/test-sprintf-posix.h (test_function): Likewise.
67217         * tests/test-fprintf-posix.h (test_function): Likewise.
67218         * tests/test-printf-posix.h (test_function): Likewise.
67219         * tests/test-fprintf-posix.out: Likewise.
67220
67221 2007-04-13  Bruno Haible  <bruno@clisp.org>
67222
67223         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67224         * modules/tls-tests (configure.ac): Likewise.
67225         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67226
67227 2007-04-13  Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/tls.c (glthread_tls_get): Fix return type.
67230         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67231
67232 2007-04-12  Eric Blake  <ebb9@byu.net>
67233
67234         * modules/gettime (Depends-on): Remove gettime.
67235         Reported by Dmitry V. Levin.
67236
67237 2007-04-12  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/fflush (Include): Mention <stdio.h>.
67240         * modules/strtoimax (Include): Mention <inttypes.h>.
67241         * modules/strtoumax (Include): Likewise.
67242
67243 2007-04-12  Eric Blake  <ebb9@byu.net>
67244
67245         * .cvsignore: New file.
67246         * .gitignore: Likewise.
67247
67248 2007-04-12  Bruno Haible  <bruno@clisp.org>
67249
67250         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67251         not before, since $(LDADD) often contains libgnu.a.
67252         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67253         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67254         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67255         Needed on Cygwin.
67256
67257 2007-04-12  Eric Blake  <ebb9@byu.net>
67258
67259         Work around glibc's failure to flush stdin on fclose.
67260         * lib/closein.c (close_stdin): Flush stdin before closing.
67261
67262         Work around glibc's failure to reset seekable stdin on exit.
67263         * modules/closein: New module.
67264         * lib/closein.c: New file.
67265         * lib/closein.h: Likewise.
67266         * m4/closein.m4: Likewise.
67267         * MODULES.html.sh (File stream based Input/Output): Document it.
67268
67269 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67270
67271         * gnulib-tool: Rename generated 'autobuild' script to
67272         'do-autobuild' in --create-megatestdir output.
67273
67274         * doc/gnulib.texi (Build robot for gnulib): Fix.
67275
67276 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67277
67278         * modules/sysexits (Depends-on): Add absolute-header.
67279
67280 2007-04-12  Eric Blake  <ebb9@byu.net>
67281
67282         No need to preserve errno on success.
67283         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67284         Reported by Bruno Haible.
67285
67286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67287
67288         * MODULES.html.sh (Support for maintaining and releasing
67289         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67290
67291 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67292
67293         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67294
67295 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67296
67297         * modules/autobuild: New module.
67298
67299         * m4/autobuild.m4: New file.
67300
67301 2007-04-11  Bruno Haible  <bruno@clisp.org>
67302
67303         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67304         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67328         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67331         Reported by Eric Blake.
67332
67333 2007-04-11  Bruno Haible  <bruno@clisp.org>
67334
67335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67336
67337 2007-04-10  Bruno Haible  <bruno@clisp.org>
67338
67339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67340         for NaN and Infinity. Needed on FreeBSD 6.1.
67341         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67342         regarding results for "%010a" of Infinity and NaN.
67343         * tests/test-vasprintf-posix.c (test_function): Likewise.
67344         * tests/test-snprintf-posix.h (test_function): Likewise.
67345         * tests/test-sprintf-posix.h (test_function): Likewise.
67346         * tests/test-fprintf-posix.h (test_function): Likewise.
67347         * tests/test-printf-posix.h (test_function): Likewise.
67348         * tests/test-fprintf-posix.out: Likewise.
67349
67350 2007-04-10  Bruno Haible  <bruno@clisp.org>
67351
67352         * modules/locale-tests: New file.
67353         * tests/test-locale.c: New file.
67354
67355         * modules/locale: New file.
67356         * lib/locale_.h: New file.
67357         * m4/locale_h.m4: New file.
67358
67359 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67360             Bruno Haible  <bruno@clisp.org>
67361
67362         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67363         be determined, test for availability of the copysignf, copysign,
67364         copysignl functions.
67365         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67366         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67367         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67368
67369 2007-04-09  Eric Blake  <ebb9@byu.net>
67370
67371         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67372         * modules/stdio (Makefile.am): Support fflush.
67373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67374         * modules/fflush: New file.
67375         * lib/fflush.c: Likewise.
67376         * m4/fflush.m4: Likewise.
67377         * modules/fflush-tests: New test.
67378         * tests/test-fflush.c: Likewise.
67379         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67380
67381 2007-04-06  Bruno Haible  <bruno@clisp.org>
67382
67383         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67384         (VASNPRINTF): Use signbit for faster determination whether to print a
67385         minus sign.
67386         * modules/vasnprintf (Files): Remove lib/float+.h.
67387         * modules/fprintf-posix (Depends-on): Add signbit.
67388         * modules/snprintf-posix (Depends-on): Likewise.
67389         * modules/sprintf-posix (Depends-on): Likewise.
67390         * modules/vasnprintf-posix (Depends-on): Likewise.
67391         * modules/vasprintf-posix (Depends-on): Likewise.
67392         * modules/vfprintf-posix (Depends-on): Likewise.
67393         * modules/vsnprintf-posix (Depends-on): Likewise.
67394         * modules/vsprintf-posix (Depends-on): Likewise.
67395
67396 2007-04-06  Bruno Haible  <bruno@clisp.org>
67397
67398         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67399         * tests/test-frexpl.c (main): Likewise.
67400         * tests/test-ldexpl.c (main): Likewise.
67401         * modules/frexp-tests (Depends-on): Add signbit.
67402         * modules/frexpl-tests (Depdends-on): Likewise.
67403         * modules/ldexpl-tests (Depdends-on): Likewise.
67404
67405 2007-04-06  Bruno Haible  <bruno@clisp.org>
67406
67407         * modules/signbit-tests: New file.
67408         * tests/test-signbit.c: New file.
67409
67410         * modules/signbit: New file.
67411         * lib/signbitf.c: New file.
67412         * lib/signbitd.c: New file.
67413         * lib/signbitl.c: New file.
67414         * m4/signbit.m4: New file.
67415         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67416         (signbit): New macro.
67417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67418         REPLACE_SIGNBIT.
67419         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67420         REPLACE_FREXPL into math.h.
67421
67422 2007-04-06  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/isnanf-nolibm-tests: New file.
67425         * tests/test-isnanf.c: New file.
67426
67427         * modules/isnanf-nolibm: New file.
67428         * lib/isnanf.h: New file.
67429         * lib/isnanf.c: New file.
67430         * lib/isnan.c: Consider the USE_FLOAT macro.
67431         * m4/isnanf.m4: New file.
67432
67433 2007-04-06  Bruno Haible  <bruno@clisp.org>
67434
67435         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67436         (Link): New section.
67437
67438         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67439
67440 2007-04-06  Bruno Haible  <bruno@clisp.org>
67441
67442         Assume the 'long double' type.
67443         * m4/longdouble.m4: Remove file.
67444         * config/srclist.txt: Don't mention longdouble.m4.
67445         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67446         * lib/float+.h: Likewise.
67447         * lib/frexp.c: Likewise.
67448         * lib/printf-args.h: Likewise.
67449         * lib/printf-args.c: Likewise.
67450         * lib/printf-frexp.c: Likewise.
67451         * lib/printf-parse.c: Likewise.
67452         * lib/vasnprintf.c: Likewise.
67453         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67454         * m4/intl.m4: Likewise.
67455         * m4/isnanl.m4: Likewise.
67456         * m4/printf.m4: Likewise.
67457         * m4/printf-frexpl.m4: Likewise.
67458         * m4/vasnprintf.m4: Likewise.
67459         * modules/allocsa (Files): Remove m4/longdouble.m4.
67460         * modules/gettext (Files): Likewise.
67461         * modules/relocatable-prog-wrapper (Files): Likewise.
67462         * modules/vasnprintf (Files): Likewise.
67463         * modules/isnanl (Files): Likewise.
67464         (Include): Simplify.
67465         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67466         (Include): Simplify.
67467         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67468         (Include): Simplify.
67469         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67471         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67473         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67475         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67477         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67479         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67481         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67482         * tests/test-isnanl.c: Likewise.
67483         * tests/test-snprintf-posix.h: Likewise.
67484         * tests/test-sprintf-posix.h: Likewise.
67485         * tests/test-vasnprintf-posix.c: Likewise.
67486         * tests/test-vasnprintf-posix2.c: Likewise.
67487         * tests/test-vasprintf-posix.c: Likewise.
67488
67489 2007-04-06  Bruno Haible  <bruno@clisp.org>
67490
67491         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67492         * lib/math_.h [__DECC]: Include the overridden include file through
67493         #include_next, outside the double-inclusion guard.
67494         * lib/stdio_.h [__DECC]: Likewise.
67495         * lib/stdlib_.h [__DECC]: Likewise.
67496         * lib/string_.h [__DECC]: Likewise.
67497         * lib/time_.h [__DECC]: Likewise.
67498         * lib/wchar_.h [__DECC]: Likewise.
67499         * lib/wctype_.h [__DECC]: Likewise.
67500         * lib/inttypes_.h [__DECC]: Likewise.
67501         Reported by Albert Chin <china@thewrittenword.com> in
67502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67503
67504 2007-04-04  Eric Blake  <ebb9@byu.net>
67505
67506         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67507         1.5.x.
67508
67509 2007-04-04  Bruno Haible  <bruno@clisp.org>
67510
67511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67512         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67513
67514 2007-04-04  Bruno Haible  <bruno@clisp.org>
67515
67516         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67517         results for "%010a" of Infinity and NaN.
67518         * tests/test-vasprintf-posix.c (test_function): Likewise.
67519         * tests/test-snprintf-posix.h (test_function): Likewise.
67520         * tests/test-sprintf-posix.h (test_function): Likewise.
67521         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67522         * tests/test-printf-posix.h (test_function): Likewise.
67523         * tests/test-fprintf-posix.out: Update.
67524         Needed for FreeBSD 6.1.
67525
67526 2007-04-04  Bruno Haible  <bruno@clisp.org>
67527
67528         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67529         directly used by the gnulib modules nor by gnulib-tool.
67530
67531 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * DEPENDENCIES: Give overall description of version dependency
67534         desirability.  Use more-typical names for apps.
67535         Add shell, coreutils, diffutils, grep, tar, gzip.
67536
67537 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67538
67539         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67540
67541 2007-04-04  Karl Berry  <karl@gnu.org>
67542
67543         * MODULES.html.sh (func_module): missing '.
67544
67545 2007-04-03  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/argmatch-tests (Makefile.am): New variable
67548         test_argmatch_LDADD.
67549         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67550         * modules/array-list-tests (Makefile.am): New variable
67551         test_array_list_LDADD.
67552         * modules/array-oset-tests (Makefile.am): New variable
67553         test_array_oset_LDADD.
67554         * modules/avltree-list-tests (Makefile.am): New variable
67555         test_avltree_list_LDADD.
67556         * modules/avltree-oset-tests (Makefile.am): New variable
67557         test_avltree_oset_LDADD.
67558         * modules/avltreehash-list-tests (Makefile.am): New variable
67559         test_avltreehash_list_LDADD.
67560         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67561         test_canonicalize_lgpl_LDADD.
67562         * modules/carray-list-tests (Makefile.am): New variable
67563         test_carray_list_LDADD.
67564         * modules/dirname-tests (Makefile.am): New variable
67565         test_dirname_LDADD.
67566         * modules/linked-list-tests (Makefile.am): New variable
67567         test_linked_list_LDADD.
67568         * modules/linkedhash-list-tests (Makefile.am): New variable
67569         test_linkedhash_list_LDADD.
67570         * modules/rbtree-list-tests (Makefile.am): New variable
67571         test_rbtree_list_LDADD.
67572         * modules/rbtree-oset-tests (Makefile.am): New variable
67573         test_rbtree_oset_LDADD.
67574         * modules/rbtreehash-list-tests (Makefile.am): New variable
67575         test_rbtreehash_list_LDADD.
67576         * modules/xvasprintf-tests (Makefile.am): New variable
67577         test_xvasprintf_LDADD.
67578         Reported by Eric Blake.
67579
67580 2007-04-03  Eric Blake  <ebb9@byu.net>
67581
67582         * DEPENDENCIES: Weaken m4 requirements.
67583
67584 2007-04-03  Bruno Haible  <bruno@clisp.org>
67585
67586         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67587         * modules/isnanl-tests (configure.ac): Likewise.
67588
67589 2007-04-03  Ben Pfaff  <blp@gnu.org>
67590
67591         * modules/iconv_open: Add $(srcdir)/ to source directory
67592         references in Makefile fragments that call gperf, to fix VPATH
67593         builds.
67594
67595 2007-04-03  Bruno Haible  <bruno@clisp.org>
67596
67597         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67598         * lib/ldexpl.c: Undo last change.
67599
67600 2007-04-03  Bruno Haible  <bruno@clisp.org>
67601
67602         * modules/printf-frexpl (Depends-on): Undo last change.
67603         (Files): Add m4/ldexpl.m4.
67604
67605 2007-04-03  Bruno Haible  <bruno@clisp.org>
67606
67607         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67608         * modules/isnanl (Link): New section.
67609
67610         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67611         * modules/frexp (Link): New section.
67612
67613         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67614         * modules/frexpl (Link): New section.
67615
67616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67617         * modules/ldexpl (Link): New section.
67618
67619 2007-04-03  Bruno Haible  <bruno@clisp.org>
67620
67621         * modules/TEMPLATE-EXTENDED: New file.
67622         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67623
67624 2007-04-03  Bruno Haible  <bruno@clisp.org>
67625
67626         * DEPENDENCIES: New file.
67627         Suggested by Simon Josefsson.
67628
67629 2007-04-03  Bruno Haible  <bruno@clisp.org>
67630
67631         * doc/gnulib.texi: Escape @.
67632
67633 2007-04-03  James Youngman  <jay@gnu.org>
67634         and Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67637         birthtime on all systems that have birthtime, not just those which
67638         use st_birthtimensec rather than st_birthtim.  Putting zero in
67639         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67640         that the birth time is not available for files on an NFS mount.
67641
67642 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67643
67644         * modules/memxor: Move back from crypto/, suggested by Bruno.
67645         * modules/crypto/hmac-sha1: Fix memxor dependency.
67646
67647         * modules/crypto/gc: Moved from ../.
67648
67649 2007-04-02  Eric Blake  <ebb9@byu.net>
67650
67651         * lib/ldexpl.c (includes): Avoid libm.
67652
67653         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67654
67655 2007-04-02  Bruno Haible  <bruno@clisp.org>
67656
67657         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67658         on IRIX.
67659
67660 2007-04-02  Bruno Haible  <bruno@clisp.org>
67661
67662         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67663         x86 or x86_64 platforms running MacOS X.
67664         Reported by Ryan Schmidt <@ryandesign.com>.
67665
67666 2007-04-02  Bruno Haible  <bruno@clisp.org>
67667
67668         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67669         i386.
67670
67671 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67672
67673         * modules/crypto/arcfour: Moved from ../.
67674         * modules/crypto/arcfour-tests: Moved from ../.
67675         * modules/crypto/arctwo: Moved from ../.
67676         * modules/crypto/arctwo-tests: Moved from ../.
67677         * modules/crypto/des: Moved from ../.
67678         * modules/crypto/des-tests: Moved from ../.
67679         * modules/crypto/gc-arcfour: Moved from ../.
67680         * modules/crypto/gc-arcfour-tests: Moved from ../.
67681         * modules/crypto/gc-arctwo: Moved from ../.
67682         * modules/crypto/gc-arctwo-tests: Moved from ../.
67683         * modules/crypto/gc-des: Moved from ../.
67684         * modules/crypto/gc-des-tests: Moved from ../.
67685         * modules/crypto/gc-hmac-md5: Moved from ../.
67686         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67687         * modules/crypto/gc-hmac-sha1: Moved from ../.
67688         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67689         * modules/crypto/gc-md2: Moved from ../.
67690         * modules/crypto/gc-md2-tests: Moved from ../.
67691         * modules/crypto/gc-md4: Moved from ../.
67692         * modules/crypto/gc-md4-tests: Moved from ../.
67693         * modules/crypto/gc-md5: Moved from ../.
67694         * modules/crypto/gc-md5-tests: Moved from ../.
67695         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67696         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67697         * modules/crypto/gc-random: Moved from ../.
67698         * modules/crypto/gc-rijndael: Moved from ../.
67699         * modules/crypto/gc-rijndael-tests: Moved from ../.
67700         * modules/crypto/gc-sha1: Moved from ../.
67701         * modules/crypto/gc-sha1-tests: Moved from ../.
67702         * modules/crypto/gc-tests: Moved from ../.
67703         * modules/crypto/hmac-md5: Moved from ../.
67704         * modules/crypto/hmac-md5-tests: Moved from ../.
67705         * modules/crypto/hmac-sha1: Moved from ../.
67706         * modules/crypto/hmac-sha1-tests: Moved from ../.
67707         * modules/crypto/md2: Moved from ../.
67708         * modules/crypto/md2-tests: Moved from ../.
67709         * modules/crypto/md4: Moved from ../.
67710         * modules/crypto/md4-tests: Moved from ../.
67711         * modules/crypto/md5: Moved from ../.
67712         * modules/crypto/md5-tests: Moved from ../.
67713         * modules/crypto/memxor: Moved from ../.
67714         * modules/crypto/rijndael: Moved from ../.
67715         * modules/crypto/rijndael-tests: Moved from ../.
67716         * modules/crypto/sha1: Moved from ../.
67717
67718 2007-03-30  James Youngman  <jay@gnu.org>
67719
67720         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67721         rename() to change the ctime of a file (because ctime is unaffected
67722         by rename on jfs2 on AIX 5.1).
67723         (main): Start by doing cleanup, in case a previous run failed leaving
67724         test files behind.
67725
67726 2007-03-31  Bruno Haible  <bruno@clisp.org>
67727
67728         Support old proprietary implementations of iconv.
67729         * modules/iconv_open: New file.
67730         * lib/iconv_.h: New file.
67731         * m4/iconv_h.m4: New file.
67732         * lib/iconv_open.c: New file.
67733         * lib/iconv_open-aix.gperf: New file.
67734         * lib/iconv_open-hpux.gperf: New file.
67735         * lib/iconv_open-irix.gperf: New file.
67736         * lib/iconv_open-osf.gperf: New file.
67737         * m4/iconv_open.m4: New file.
67738         * modules/linebreak (Depends-on): Add iconv_open.
67739         * modules/striconv (Depends-on): Likewise.
67740         * modules/striconveh (Depends-on): Likewise.
67741         * modules/unicodeio (Depends-on): Likewise.
67742         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67743         (iconv_t)(-1).
67744         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67745         conversion if cd is (iconv_t)(-1).
67746         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67747         is not possible.
67748
67749 2007-03-31  Bruno Haible  <bruno@clisp.org>
67750
67751         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67752         work on Solaris either. Protect also second use of "autodetect_jp".
67753
67754 2007-03-31  Bruno Haible  <bruno@clisp.org>
67755
67756         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67757         the function is not present.
67758
67759 2007-03-31  Bruno Haible  <bruno@clisp.org>
67760
67761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67762         the function is not present.
67763
67764 2007-03-31  Bruno Haible  <bruno@clisp.org>
67765
67766         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67767         a bug in HP-UX iconv_open().
67768
67769 2007-03-31  Bruno Haible  <bruno@clisp.org>
67770
67771         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67772         (Mathematics <math.h>): New section, add fpieee.
67773         (Input/output <stdio.h>): Add fseterr.
67774         (Mathematics <math.h>): New section, add printf-frexp.
67775         (Container data structures): Add sublist.
67776         (Core language properties): Add fpucw, inline.
67777         (Functions for greatest-width integer types <inttypes.h>): Add
67778         imaxabs, imaxdiv, inttypes.
67779         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67780         isnanl-nolibm, ldexp.
67781         (Mathematics <math.h>): New section, add printf-frexpl.
67782         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67783         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67784         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67785         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67786         (Unicode string functions): Add unistr/u*-mbtoucr.
67787         (Java): Add javacomp-script, javaexec-script.
67788         (C#): Add csharpcomp-script, csharpexec-script.
67789         (Support for building libraries and executables): Add havelib,
67790         relocatable-*.
67791         (Support for maintaining and releasing projects): Renamed from
67792         'Support for maintaining and release projects'. Add announce-gen.
67793
67794 2007-03-31  Bruno Haible  <bruno@clisp.org>
67795
67796         * README: Talk primarily about git.
67797         (git and CVS): Renamed from CVS.
67798         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67799         gnulib is available through git.
67800         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67801
67802 2007-03-30  Bruno Haible  <bruno@clisp.org>
67803
67804         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67805         * lib/poll_.h: Likewise.
67806         * lib/stat_.h: Likewise.
67807         * lib/sys_time_.h: Likewise.
67808         * lib/sysexit_.h: Likewise.
67809         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67810         * lib/stdbool_.h: Likewise.
67811         * lib/byteswap_.h: Add double-inclusion guard.
67812
67813 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67814
67815         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67816
67817 2007-03-30  Karl Berry  <karl@gnu.org>
67818
67819         * config/srclist-update: double space after USA in the license
67820         substitution, since that's how it's usually (?) written.
67821
67822 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67825         reported by Bruno Haible.
67826
67827 2007-03-29  Bruno Haible  <bruno@clisp.org>
67828
67829         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67830         a bug in AIX iconv().
67831
67832 2007-03-29  Bruno Haible  <bruno@clisp.org>
67833
67834         * modules/ldexpl-tests: New file.
67835         * tests/test-ldexpl.c: New file.
67836
67837 2007-03-29  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/ldexpl.c: Include fpucw.h.
67840         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67841         multiplication.
67842         * modules/ldexpl (Depends-on): Add fpucw.
67843
67844 2007-03-29  Bruno Haible  <bruno@clisp.org>
67845
67846         * modules/ldexpl: New file.
67847         * m4/ldexpl.m4: New file.
67848         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67849         set.
67850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67851         REPLACE_LDEXPL.
67852         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67853         REPLACE_LDEXPL.
67854         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67855         gl_FUNC_LDEXPL_WORKS.
67856         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67857         * modules/mathl (Files): Remove lib/ldexpl.c.
67858         (Depends-on): Add ldexpl.
67859
67860 2007-03-29  Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67863
67864 2007-03-29  Bruno Haible  <bruno@clisp.org>
67865
67866         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67867         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67868         and possibly also HP-UX.
67869         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67870         work on AIX, IRIX, HP-UX, OSF/1.
67871         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67872         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67873         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67874         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67875         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67876         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67877
67878 2007-03-29  Bruno Haible  <bruno@clisp.org>
67879
67880         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67881
67882 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67885         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67886
67887 2007-03-29  Eric Blake  <ebb9@byu.net>
67888
67889         * lib/acl-internal.h: Remove redundant include.
67890         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67891         Cygwin when a file is locked.
67892
67893 2007-03-29  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67896         file.
67897         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67898
67899 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67902         try to remove a parent directory if the child couldn't be removed
67903         (except for the first rmdir, which could fail because the child
67904         doesn't exist).  Problem reported by Jeff Blaine in
67905         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67906
67907 2007-03-28  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/striconveh.c (utf8conv_carefully): New function.
67910         (mem_cd_iconveh_internal): Invoke it.
67911
67912 2007-03-28  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67915         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67916         input.
67917         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67918         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67919         unistr/u8-uctomb.
67920
67921 2007-03-28  Bruno Haible  <bruno@clisp.org>
67922
67923         * modules/unistr/u8-mbtoucr: New file.
67924         * lib/unistr/u8-mbtoucr.c: New file.
67925         * modules/unistr/u16-mbtoucr: New file.
67926         * lib/unistr/u16-mbtoucr.c: New file.
67927         * modules/unistr/u16-mbtoucr: New file.
67928         * lib/unistr/u16-mbtoucr.c: New file.
67929         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67930
67931 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67932             Bruno Haible  <bruno@clisp.org>
67933
67934         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67935         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67936         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67937
67938         * m4/stdio_h.m4: Add stubs for vasprintf too.
67939
67940         * modules/stdio: Support vasprintf in sed command.
67941
67942         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67943         vasprintf.h.  Add stdio module indicator.
67944
67945         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67946         vasprintf.h.
67947
67948         * lib/vasprintf.h: File removed.
67949
67950         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67951         * lib/vasprintf.c: Ditto.
67952         * lib/xvasprintf.c: Ditto.
67953         * tests/test-vasprintf-posix.c: Ditto.
67954         * tests/test-vasprintf.c: Ditto.
67955
67956 2007-03-27  Bruno Haible  <bruno@clisp.org>
67957
67958         Make vasnprintf multithread-safe.
67959         * lib/vasnprintf.c (decimal_point_char): New function.
67960         (VASNPRINTF): Use it.
67961         Suggested by Simon Josefsson.
67962
67963 2007-03-27  Eric Blake  <ebb9@byu.net>
67964
67965         Support sub-second birthtime on cygwin.
67966         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67967         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67968         (get_stat_birthtime): Also work with st_birthtim.
67969
67970 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67973         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67974         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67975         (get_stat_birthtime_ns): Simplify compile-time tests.
67976         (get_stat_birthtime): Change the API to look like
67977         get_stat_mtime etc., except return a negative tv_nsec on error.
67978         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67979         Don't check for "spare" fields.
67980         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67981         or for struct stat.st_birthtime, as these tests aren't used.
67982         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67983
67984 2007-03-27  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/stat-time.h: Include <sys/stat.h>.
67987
67988 2007-03-27  James Youngman  <jay@gnu.org>
67989
67990         * lib/stat-time.h (get_stat_birthtime): New function for
67991           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67992         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67993           and its variants.
67994         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67995         * modules/stat-time-test: New file.
67996         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67997
67998 2007-03-26  Bruno Haible  <bruno@clisp.org>
67999
68000         Better support of signalling NaNs.
68001         * lib/atanl.c: Include isnanl.h.
68002         (atanl): Perform test for NaN at the beginning of the function and
68003         through a call to isnanl.
68004         * lib/cosl.c: Include isnanl.h.
68005         (cosl): Perform test for NaN at the beginning of the function and
68006         through a call to isnanl.
68007         * lib/ldexpl.c: Include isnanl.h.
68008         (ldexpl): Perform test for NaN through a call to isnanl.
68009         * lib/logl.c: Include isnanl.h.
68010         (logl): Perform test for NaN at the beginning of the function and
68011         through a call to isnanl.
68012         * lib/sinl.c: Include isnanl.h.
68013         (sinl): Perform test for NaN at the beginning of the function and
68014         through a call to isnanl.
68015         * lib/sqrtl.c: Include isnanl.h.
68016         (sqrtl): Perform test for NaN at the beginning of the function and
68017         through a call to isnanl.
68018         * lib/tanl.c: Include isnanl.h.
68019         (tanl): Perform test for NaN at the beginning of the function and
68020         through a call to isnanl.
68021         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68022         * modules/mathl (Depends-on): Add isnanl.
68023
68024 2007-03-26  Eric Blake  <ebb9@byu.net>
68025
68026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68027         regression in logic sense of previous patch.
68028
68029 2007-03-26  Bruno Haible  <bruno@clisp.org>
68030
68031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68032         unportable shell command "if ! ...".
68033         Reported by Ralf Wildenhues.
68034
68035 2007-03-25  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68038         <sysexits.h> file, and only add EX_CONFIG.
68039         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68040         absolute file name and whether it is sufficient. Substitute also
68041         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68042         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68043         ABSOLUTE_SYSEXITS_H into sysexits.h.
68044
68045 2007-03-25  Bruno Haible  <bruno@clisp.org>
68046
68047         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68048         hints is NULL.
68049
68050 2007-03-25  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68053         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68054
68055 2007-03-25  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/vasnprintf.c: Include langinfo.h.
68058         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68059         multithread-safe.
68060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68069         Reported by Simon Josefsson.
68070
68071 2007-03-25  Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68074         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68075         * modules/vasnprintf (Depends-on): Add stdint.
68076
68077 2007-03-25  Bruno Haible  <bruno@clisp.org>
68078
68079         * modules/fpieee: New file.
68080         * m4/fpieee.m4: New file.
68081         * modules/isnan-nolibm (Depends-on): Add fpieee.
68082         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68083         * modules/isnanl (Depends-on): Add fpieee.
68084
68085 2007-03-25  Bruno Haible  <bruno@clisp.org>
68086
68087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68088
68089 2007-03-25  Bruno Haible  <bruno@clisp.org>
68090
68091         Avoid test failures on IRIX 6.5.
68092         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68093         (main): Use it.
68094         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68095         macros.
68096         (main): Use them.
68097
68098 2007-03-25  Bruno Haible  <bruno@clisp.org>
68099
68100         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68101         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68102         exists but doesn't work.
68103         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68104         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68106         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68107         math.h.
68108
68109 2007-03-25  Bruno Haible  <bruno@clisp.org>
68110
68111         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68112         returns inf. Needed on IRIX 6.5.
68113
68114 2007-03-25  Bruno Haible  <bruno@clisp.org>
68115
68116         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68117         (main): Use isnanl instead of x != x idiom.
68118         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68119
68120         * tests/test-frexp.c: Include isnan.h.
68121         (main): Use isnan instead of x != x idiom.
68122         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68123
68124 2007-03-25  Bruno Haible  <bruno@clisp.org>
68125
68126         * tests/test-frexp.c (NaN): New function/macro.
68127         (main): Use it instead of 0.0 / 0.0.
68128         * tests/test-isnan.c (NaN): New function/macro.
68129         (main): Use it instead of 0.0 / 0.0.
68130         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68131         (test_function): Use it instead of 0.0 / 0.0.
68132         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68133         (test_function): Use it instead of 0.0 / 0.0.
68134         * tests/test-snprintf-posix.h (NaN): New function/macro.
68135         (test_function): Use it instead of 0.0 / 0.0.
68136         * tests/test-sprintf-posix.h (NaN): New function/macro.
68137         (test_function): Use it instead of 0.0 / 0.0.
68138         * tests/test-fprintf-posix.h (NaN): New function/macro.
68139         (test_function): Use it instead of 0.0 / 0.0.
68140         * tests/test-printf-posix.h (NaN): New function/macro.
68141         (test_function): Use it instead of 0.0 / 0.0.
68142
68143         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68144
68145 2007-03-25  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68148
68149 2007-03-25  Bruno Haible  <bruno@clisp.org>
68150
68151         * lib/regexec.c (merge_state_with_log): Make static.
68152
68153 2007-03-25  Bruno Haible  <bruno@clisp.org>
68154
68155         * lib/trigl.c (kernel_rem_pio2): Make static.
68156
68157 2007-03-25  Bruno Haible  <bruno@clisp.org>
68158
68159         * lib/sincosl.c (sincosl_table): Make static.
68160
68161 2007-03-25  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68164         if the compiler does not support C99.
68165
68166 2007-03-25  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/time (Makefile.am): Ensure all rule action lines start with a
68169         tab.
68170
68171 2007-03-24  Bruno Haible  <bruno@clisp.org>
68172
68173         * modules/tsearch-tests: New file.
68174         * tests/test-tsearch.sh: New file.
68175         * tests/test-tsearch.c: New file, mostly copied from glibc.
68176
68177         * modules/search-tests: New file.
68178         * tests/test-search.c: New file.
68179
68180         * modules/search: New file.
68181         * lib/search_.h: New file, incorporating lib/tsearch.h.
68182         * m4/search_h.m4: New file.
68183         * lib/tsearch.h: Remove file.
68184         * lib/tsearch.c: Include search.h instead of tsearch.h.
68185         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68186         HAVE_TSEARCH.
68187         * modules/tsearch (Files): Remove lib/tsearch.h.
68188         (Depends-on): Add search.
68189         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68190         (Include): Change tsearch.h into search.h.
68191
68192 2007-03-24  Bruno Haible  <bruno@clisp.org>
68193
68194         * modules/fpucw: New file.
68195         * lib/fpucw.h: New file.
68196         * lib/frexp.c: Include fpucw.h.
68197         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68198         (FUNC): Use them.
68199         * lib/printf-frexp.c: Include fpucw.h.
68200         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68201         (FUNC): Use them.
68202         * lib/vasnprintf.c: Include fpucw.h.
68203         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68204         'long double' calculations.
68205         * tests/test-frexpl.c: Include fpucw.h.
68206         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68207         * tests/test-printf-frexpl.c: Include fpucw.h.
68208         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68209         * modules/frexpl (Depends-on): Add fpucw.
68210         * modules/printf-frexpl (Depends-on): Likewise.
68211         * modules/fprintf-posix (Depends-on): Likewise.
68212         * modules/snprintf-posix (Depends-on): Likewise.
68213         * modules/sprintf-posix (Depends-on): Likewise.
68214         * modules/vasnprintf-posix (Depends-on): Likewise.
68215         * modules/vasprintf-posix (Depends-on): Likewise.
68216         * modules/vfprintf-posix (Depends-on): Likewise.
68217         * modules/vsnprintf-posix (Depends-on): Likewise.
68218         * modules/vsprintf-posix (Depends-on): Likewise.
68219         * modules/frexpl-tests (Depends-on): Likewise.
68220         * modules/printf-frexpl-tests (Depends-on): Likewise.
68221
68222 2007-03-24  Bruno Haible  <bruno@clisp.org>
68223
68224         * lib/float+.h: New file.
68225         * lib/isnan.c: Include float+.h.
68226         (SIZE): New macro.
68227         (FUNC): Compare only SIZE bytes of the value.
68228         * lib/vasnprintf.c: Include float+.h.
68229         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68230         SIZEOF_LDBL or SIZEOF_DBL bytes.
68231         * modules/isnan-nolibm (Files): Add lib/float+.h.
68232         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68233         * modules/isnanl (Files): Add lib/float+.h.
68234         * modules/vasnprintf (Files): Add lib/float+.h.
68235
68236 2007-03-24  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68239         include isnanl-nolibm.h.
68240
68241 2007-03-24  Bruno Haible  <bruno@clisp.org>
68242
68243         * tests/test-read-file.c (main): Don't produce spurious output for
68244         expected situations. Make the test fail if it encountered unexpected
68245         results.
68246
68247 2007-03-24  Bruno Haible  <bruno@clisp.org>
68248
68249         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68250         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68251
68252 2007-03-24  Bruno Haible  <bruno@clisp.org>
68253
68254         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68255
68256 2007-03-24  Bruno Haible  <bruno@clisp.org>
68257
68258         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68259         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68260
68261         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68262         * modules/utf8-ucs4: Turn into a symbolic link to module
68263         unistr/u8-mbtouc.
68264
68265         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68266         utf8-ucs4-unsafe.
68267         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68268         unistr/u8-mbtouc-unsafe.
68269
68270         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68271         * modules/utf16-ucs4: Turn into a symbolic link to module
68272         unistr/u16-mbtouc.
68273
68274         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68275         utf16-ucs4-unsafe.
68276         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68277         unistr/u16-mbtouc-unsafe.
68278
68279         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68280         * modules/ucs4-utf8: Turn into a symbolic link to module
68281         unistr/u8-ubtomb.
68282
68283         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68284         * modules/ucs4-utf16: Turn into a symbolic link to module
68285         unistr/u16-ubtomb.
68286
68287 2007-03-24  Bruno Haible  <bruno@clisp.org>
68288
68289         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68290         Enable the function only if HAVE_INLINE.
68291         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68292         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68293         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68294         Enable the function only if HAVE_INLINE.
68295         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68296         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68297         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68298         Enable the function only if HAVE_INLINE.
68299         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68300         Enable the function only if HAVE_INLINE.
68301         * modules/utf8-ucs4: Update.
68302         * modules/utf8-ucs4-unsafe: Update.
68303         * modules/utf16-ucs4: Update.
68304         * modules/utf16-ucs4-unsafe: Update.
68305         * modules/ucs4-utf8: Update.
68306         * modules/ucs4-utf16: Update.
68307
68308 2007-03-24  Bruno Haible  <bruno@clisp.org>
68309
68310         * lib/utf8-ucs4.h: Remove file.
68311         * lib/utf8-ucs4-unsafe.h: Remove file.
68312         * lib/utf16-ucs4.h: Remove file.
68313         * lib/utf16-ucs4-unsafe.h: Remove file.
68314         * lib/ucs4-utf8.h: Remove file.
68315         * lib/ucs4-utf16.h: Remove file.
68316         * lib/unistr.h: Include their previous contents.
68317         * m4/utf-ucs4.m4: Remove file.
68318         * m4/ucs4-utf.m4: Remove file.
68319         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68320         (Depends-on): Add unistr/base.
68321         (configure.ac): Remove gl_UTF_UCS4.
68322         (Makefile.am): Update.
68323         (Include): Change to unistr.h.
68324         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68325         (Depends-on): Add unistr/base.
68326         (configure.ac): Remove gl_UTF_UCS4.
68327         (Makefile.am): Update.
68328         (Include): Change to unistr.h.
68329         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68330         (Depends-on): Add unistr/base.
68331         (configure.ac): Remove gl_UTF_UCS4.
68332         (Makefile.am): Update.
68333         (Include): Change to unistr.h.
68334         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68335         (Depends-on): Add unistr/base.
68336         (configure.ac): Remove gl_UTF_UCS4.
68337         (Makefile.am): Update.
68338         (Include): Change to unistr.h.
68339         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68340         (Depends-on): Add unistr/base.
68341         (configure.ac): Remove gl_UCS4_UTF.
68342         (Makefile.am): Update.
68343         (Include): Change to unistr.h.
68344         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68345         (Depends-on): Add unistr/base.
68346         (configure.ac): Remove gl_UCS4_UTF.
68347         (Makefile.am): Update.
68348         (Include): Change to unistr.h.
68349         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68350         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68351         utf8-ucs4-unsafe.h.
68352         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68353         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68354         utf16-ucs4-unsafe.h.
68355         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68356         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68357         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68358         * lib/unistr/u8-strchr.c: Likewise.
68359         * lib/unistr/u8-strrchr.c: Likewise.
68360         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68361         * lib/unistr/u16-strchr.c: Likewise.
68362         * lib/unistr/u16-strrchr.c: Likewise.
68363         * lib/striconveh.c: Update.
68364         * lib/linebreak.c: Update.
68365
68366 2007-03-24  Bruno Haible  <bruno@clisp.org>
68367
68368         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68369         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68370
68371 2007-03-22  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68374
68375 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * MODULES.html.sh (File system functions): New module write-any-file.
68378         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68379         * m4/write-any-file.m4: New files.
68380
68381 2007-03-23  Eric Blake  <ebb9@byu.net>
68382
68383         * gnulib-tool: Rearrange space-tab sequences, since some editors
68384         like to eat them.
68385
68386 2007-03-23  Eric Blake  <ebb9@byu.net>
68387
68388         * lib/version-etc.c (version_etc_va): Update license wording to
68389         be more concise.  Recommended by Richard Stallman.
68390
68391 2007-03-22  Bruno Haible  <bruno@clisp.org>
68392
68393         * lib/poll.c (MSG_PEEK): New fallback definition.
68394
68395 2007-03-22  Bruno Haible  <bruno@clisp.org>
68396
68397         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68398         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68399         (main): Update.
68400         Fixes a compilation error on BeOS.
68401
68402 2007-03-22  Bruno Haible  <bruno@clisp.org>
68403
68404         * modules/frexpl-tests: New file.
68405         * tests/test-frexpl.c: New file.
68406
68407         * modules/frexpl: New file.
68408         * m4/frexpl.m4: New file.
68409         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68410         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68412         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68413         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68414         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68415
68416 2007-03-22  Bruno Haible  <bruno@clisp.org>
68417
68418         * lib/frexpl.c: Share code with lib/frexp.c.
68419         * modules/mathl (Files): Add lib/frexp.c.
68420         (Depends-on): Add isnanl-nolibm.
68421
68422 2007-03-22  Bruno Haible  <bruno@clisp.org>
68423
68424         * modules/printf-frexp (Files): Add m4/frexp.m4.
68425         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68426         only if the found frexp function actually works.
68427
68428 2007-03-22  Bruno Haible  <bruno@clisp.org>
68429
68430         * lib/frexp.c: Remove older implementation that uses divisions.
68431
68432 2007-03-21  Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/frexp-tests: New file.
68435         * tests/test-frexp.c: New file.
68436
68437         * modules/frexp: New file.
68438         * lib/frexp.c: New file.
68439         * m4/frexp.m4: New file.
68440         * lib/math_.h (frexp): New declaration.
68441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68442         REPLACE_FREXP.
68443         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68444
68445 2007-03-21  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/isnanl-tests: New file.
68448         * tests/test-isnanl.c: New file.
68449
68450         * modules/isnanl: New file.
68451         * lib/isnanl.h: New file.
68452         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68453         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68454         gl_FUNC_ISNANL_WORKS.
68455         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68456         New macros.
68457
68458 2007-03-21  Bruno Haible  <bruno@clisp.org>
68459
68460         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68461         lib/isnanl.h.
68462         (Include): Update.
68463         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68464         * lib/vasnprintf.c: Update.
68465         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68466         tests/test-isnanl.h, remove tests/test-isnanl.c.
68467         (Makefile.am): Update.
68468         * tests/test-isnanl-nolibm.c: New file.
68469         * tests/test-isnanl.h: New file.
68470         * tests/test-isnanl.c: Remove file.
68471
68472 2007-03-21  Jim Meyering  <jim@meyering.net>
68473
68474         When trying to open ".", treat ESTALE like EACCES.
68475         * lib/savewd.c (savewd_save): Resort to forking not just upon
68476         failure with EACCES, but also when errno is ESTALE.
68477
68478 2007-03-20  Bruno Haible  <bruno@clisp.org>
68479
68480         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68481         Needed on AIX 5.1. Reported by Matthew Woehlke.
68482
68483 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68484
68485         Suggestions by Bruno Haible:
68486         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68487         our own.
68488         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68489         * modules/acl (Depends-on): Add gettext.
68490
68491 2007-03-19  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/iconvme: Remove file.
68494         * lib/iconvme.h: Remove file.
68495         * lib/iconvme.c: Remove file.
68496         * m4/iconvme.m4: Remove file.
68497
68498 2007-03-19  Bruno Haible  <bruno@clisp.org>
68499
68500         * doc/relocatable-maint.texi: Break long shell script line.
68501         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68502
68503 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68506         handle file_has_acl.
68507         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68508         * lib/acl.c: Move header inclusions and related macro defns into
68509         lib/acl-internal.h.
68510         (S_ISLNK): Remove defn, since that's now done for us.
68511         (file_has_acl): Move to lib/file-has-acl.c.
68512         Call acl_trivial if available.  This is the crucial part of the fix.
68513         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68514         shared within the library.  Rewrite a bit, partly to make it compatible
68515         with the GNU coding style.
68516         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68517         Remove unnecessary double-quotes.
68518         Don't test for acl_to_text; the build will catch that.
68519         Replace acl_entries if it doesn't exist and it is needed.
68520         Check for -lsec and acl_trivial (as used on Solaris 10).
68521         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68522         lib/file-has-acl.c.
68523         (Depends-on): Add sys_stat, for S_ISLNK.
68524
68525 2007-03-19  Ben Pfaff  <blp@gnu.org>
68526
68527         * doc/gnulib.texi: Fix typos.
68528         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68529
68530 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68531
68532         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68533         If size is zero here, buf must be zero.
68534
68535 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68536
68537         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68538         <bruno@clisp.org>.
68539
68540 2007-03-18  Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68543         Suggested by Eric Blake.
68544
68545 2007-03-18  Ben Pfaff  <blp@gnu.org>
68546
68547         * doc/relocatable.texi: Recommend using as prefix a directory
68548         that does not exist and will never be created.  Based on
68549         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68550         and others.
68551
68552 2007-03-17  Bruno Haible  <bruno@clisp.org>
68553
68554         * lib/fchownat.c: Include lchown.h.
68555
68556 2007-03-17  Bruno Haible  <bruno@clisp.org>
68557
68558         Fix endless loop when the given allocated size was > INT_MAX.
68559         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68560         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68561         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68562         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68563         * lib/sprintf.c (sprintf): Likewise.
68564
68565 2007-03-17  Bruno Haible  <bruno@clisp.org>
68566
68567         * tests/test-argp-2.sh (func_compare): Output a context diff.
68568
68569 2007-03-17  Bruno Haible  <bruno@clisp.org>
68570
68571         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68572         locale's decimal-point character.
68573
68574 2007-03-17  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68577         before comparing it. Needed because on some platforms (e.g. x86) a
68578         'long double' occupies less bytes than sizeof (long double).
68579
68580 2007-03-17  Bruno Haible  <bruno@clisp.org>
68581
68582         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68583         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68584         * tests/test-getaddrinfo.c (simple): Likewise.
68585         * tests/test-read-file.c (main): Likewise.
68586
68587 2007-03-17  Bruno Haible  <bruno@clisp.org>
68588
68589         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68590
68591 2007-03-17  Bruno Haible  <bruno@clisp.org>
68592
68593         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68594         unused variable.
68595
68596 2007-03-17  Bruno Haible  <bruno@clisp.org>
68597
68598         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68599         * tests/test-c-strncasecmp.c: Likewise.
68600
68601 2007-03-17  Bruno Haible  <bruno@clisp.org>
68602
68603         * modules/stdlib (Depends-on): Add unistd.
68604         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68605         Needed for MacOS X 10.3.
68606
68607 2007-03-17  Bruno Haible  <bruno@clisp.org>
68608
68609         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68610
68611 2007-03-17  Bruno Haible  <bruno@clisp.org>
68612
68613         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68614
68615 2007-03-17  Bruno Haible  <bruno@clisp.org>
68616
68617         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68618         to reflect files copied from gnulib (with or without modifications).
68619         Suggested by Jim Meyering.
68620
68621 2007-03-17  Eric Blake  <ebb9@byu.net>
68622
68623         * NEWS: Document stdlib change from 2007-02-18.
68624
68625 2007-03-17  Jim Meyering  <jim@meyering.net>
68626
68627         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68628         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68629         someone uses a name containing shell meta-characters.
68630         Reported by Alfred M. Szmidt.
68631
68632         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68633
68634 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68635
68636         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68637         and copy gettext configuration files only if configure.ac contains
68638         a use of AM_GNU_GETTEXT_VERSION.
68639
68640 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68641
68642         * build-aux/bootstrap (gnulib_name): New variable.
68643         (gnulib_tool_options): Use it.
68644
68645 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68646
68647         * tests/test-des.c: Use new namespace.
68648
68649 2007-03-15  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68652         Reported by James Youngman <jay@gnu.org>.
68653
68654 2007-03-15  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68657         declared prototype. Needed with cc on OSF/1 5.1.
68658
68659 2007-03-15  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68662         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68663         (struct gl_list_implementation): Add dispose_fn argument to the
68664         'create_empty', 'create' methods.
68665         (struct gl_list_impl_base): Add field 'dispose_fn'.
68666         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68667         argument.
68668         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68669         dispose_fn argument.
68670         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68671         dispose_fn on the dropped values.
68672         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68673         dispose_fn argument.
68674         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68675         dropped values.
68676         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68677         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68678         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68679         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68680         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68681         argument.
68682         (gl_tree_list_free): Call dispose_fn on the dropped values.
68683         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68684         the dropped values.
68685         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68686         Add dispose_fn argument.
68687         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68688         Call dispose_fn on the dropped values.
68689         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68690         Add dispose_fn argument.
68691         (gl_sublist_create): Initialize the 'dispose_fn' field.
68692         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68693         * tests/test-array_list.c (main): Update.
68694         * tests/test-carray_list.c (main): Update.
68695         * tests/test-avltree_list.c (main): Update.
68696         * tests/test-rbtree_list.c (main): Update.
68697         * tests/test-avltreehash_list.c (main): Update.
68698         * tests/test-rbtreehash_list.c (main): Update.
68699         * tests/test-linked_list.c (main): Update.
68700         * tests/test-linkedhash_list.c (main): Update.
68701         * tests/test-array_oset.c (main): Update.
68702
68703 2007-03-15  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68706         (gl_oset_create_empty): Add dispose_fn argument.
68707         (struct gl_oset_implementation): Add dispose_fn argument to
68708         'create_empty' method.
68709         (struct gl_oset_impl_base): Add dispose_fn field.
68710         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68711         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68712         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68713         values.
68714         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68715         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68716         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68717         dropped value.
68718         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68719         dropped value.
68720         * tests/test-array_oset.c (main): Update.
68721         * tests/test-avltree_oset.c (main): Update.
68722         * tests/test-rbtree_oset.c (main): Update.
68723         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68724
68725 2007-03-13  Bruno Haible  <bruno@clisp.org>
68726
68727         * tests/test-stdbool.c (i): Update after last patch.
68728
68729 2007-03-12  Bruno Haible  <bruno@clisp.org>
68730
68731         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68732         the iswprint macro. Needed on Solaris 2.5.1.
68733
68734 2007-03-12  Bruno Haible  <bruno@clisp.org>
68735
68736         * tests/test-printf-frexp.c (main): Declare x as volatile.
68737
68738 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68739
68740         * doc/gnulib.texi (Build robot for gnulib): New section.
68741
68742 2007-03-12  Jim Meyering  <jim@meyering.net>
68743
68744         * build-aux/bootstrap: New file.
68745         * build-aux/bootstrap.conf: New file, from coreutils.
68746
68747 2007-03-11  Bruno Haible  <bruno@clisp.org>
68748
68749         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68750
68751 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68752
68753         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68754         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68755         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68756
68757 2007-03-11  Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68760         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68761
68762 2007-03-11  Bruno Haible  <bruno@clisp.org>
68763
68764         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68765         formula. Needed for SunPRO C 5.0.
68766
68767 2007-03-11  Bruno Haible  <bruno@clisp.org>
68768
68769         * modules/long-options (Depends-on): Add getopt.
68770
68771 2007-03-11  Bruno Haible  <bruno@clisp.org>
68772
68773         * modules/modechange (Depends-on): Add stdbool.
68774
68775 2007-03-11  Bruno Haible  <bruno@clisp.org>
68776
68777         * modules/i-ring (Depends-on): Add stdbool.
68778
68779 2007-03-11  Bruno Haible  <bruno@clisp.org>
68780
68781         * modules/gc-des (Depends-on): Add stdbool.
68782
68783 2007-03-11  Bruno Haible  <bruno@clisp.org>
68784
68785         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68786
68787 2007-03-11  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68790
68791 2007-03-11  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68794
68795 2007-03-11  Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/vasnprintf.c (sprintf): Undefine.
68798
68799 2007-03-11  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68802         initializers in SunPRO C and Compaq C compilers.
68803
68804 2007-03-11  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68807         decrementing code ANSI C compliant.
68808
68809 2007-03-11  Bruno Haible  <bruno@clisp.org>
68810
68811         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68812         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68813
68814 2007-03-11  Bruno Haible  <bruno@clisp.org>
68815
68816         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68817         <stdbool.h> substitute doesn't pass.
68818
68819 2007-03-11  Bruno Haible  <bruno@clisp.org>
68820
68821         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68822
68823 2007-03-11  Bruno Haible  <bruno@clisp.org>
68824
68825         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68826         script, for submission to autobuild.josefsson.org.
68827
68828 2007-03-10  Bruno Haible  <bruno@clisp.org>
68829
68830         * modules/canonicalize-lgpl-tests: New file.
68831         * tests/test-canonicalize-lgpl.sh: New file.
68832         * tests/test-canonicalize-lgpl.c: New file.
68833
68834         * modules/c-strcase-tests: New file.
68835         * tests/test-c-strcase.sh: New file.
68836         * tests/test-c-strcasecmp.c: New file.
68837         * tests/test-c-strncasecmp.c: New file.
68838
68839         * modules/atexit-tests: New file.
68840         * tests/test-atexit.sh: New file.
68841         * tests/test-atexit.c: New file.
68842
68843 2007-03-10  Bruno Haible  <bruno@clisp.org>
68844
68845         * tests/test-binary-io.sh: Use temporary filenames that are not so
68846         likely to clash with those of other tests (in a parallel make).
68847         * tests/test-binary-io.c: Likewise.
68848
68849 2007-03-10  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68852         fallback; use #error instead.
68853         Suggested by Simon Josefsson.
68854
68855 2007-03-10  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68858         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68859         first and the last.
68860
68861 2007-03-10  Bruno Haible  <bruno@clisp.org>
68862
68863         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68864
68865 2007-03-10  Bruno Haible  <bruno@clisp.org>
68866
68867         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68868         "make distcheck".
68869         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68870         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68871         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68872
68873 2007-03-10  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68876         variable.
68877         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68878         variable.
68879
68880 2007-03-09  Eric Blake  <ebb9@byu.net>
68881         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68882
68883         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68884         types are not being provided by gnulib.
68885         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68886         types are supported.
68887
68888 2007-03-10  Bruno Haible  <bruno@clisp.org>
68889
68890         * lib/stdio_.h (__attribute__): New macro.
68891         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68892         vsprintf): Specify __attribute__ __format__ for GCC.
68893         Suggested by Eric Blake.
68894
68895 2007-03-09  Bruno Haible  <bruno@clisp.org>
68896
68897         * modules/printf-posix-tests: New file.
68898         * tests/test-printf-posix.sh: New file.
68899         * tests/test-printf-posix.c: New file.
68900
68901         * modules/printf-posix: New file.
68902         * lib/printf.c: New file.
68903         * m4/printf-posix-rpl.m4: New file.
68904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68905         REPLACE_PRINTF.
68906         * lib/stdio_.h (printf): New declaration.
68907         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68908         ____strfmon____): New macros.
68909         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68910         REPLACE_PRINTF.
68911
68912 2007-03-09  Bruno Haible  <bruno@clisp.org>
68913
68914         * tests/test-vasnprintf-posix2.sh: New file.
68915         * tests/test-vasnprintf-posix2.c: New file.
68916         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68917         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68918         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68919
68920         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68921         a locale dependent decimal point, rather than always '.'.
68922
68923 2007-03-09  Eric Blake  <ebb9@byu.net>
68924
68925         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68926         spite of platforms like Tandem/NSK that define it to -1.
68927
68928 2007-03-08  Bruno Haible  <bruno@clisp.org>
68929
68930         * modules/vprintf-posix-tests: New file.
68931         * tests/test-vprintf-posix.sh: New file.
68932         * tests/test-vprintf-posix.c: New file.
68933         * tests/test-printf-posix.h: New file.
68934
68935         * modules/vprintf-posix: New file.
68936         * lib/vprintf.c: New file.
68937         * m4/vprintf-posix.m4: New file.
68938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68939         REPLACE_VPRINTF.
68940         * lib/stdio_.h (vprintf): New declaration.
68941         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68942         REPLACE_VPRINTF.
68943
68944 2007-03-08  Bruno Haible  <bruno@clisp.org>
68945
68946         * modules/fprintf-posix-tests: New file.
68947         * tests/test-fprintf-posix.sh: New file.
68948         * tests/test-fprintf-posix.c: New file.
68949
68950         * modules/fprintf-posix: New file.
68951         * lib/fprintf.c: New file.
68952         * m4/fprintf-posix.m4: New file.
68953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68954         REPLACE_FPRINTF.
68955         * lib/stdio_.h (fprintf): New declaration.
68956         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68957         REPLACE_FPRINTF.
68958
68959 2007-03-08  Bruno Haible  <bruno@clisp.org>
68960
68961         * modules/vfprintf-posix-tests: New file.
68962         * tests/test-vfprintf-posix.sh: New file.
68963         * tests/test-vfprintf-posix.c: New file.
68964         * tests/test-fprintf-posix.h: New file.
68965         * tests/test-fprintf-posix.out: New file.
68966
68967         * modules/vfprintf-posix: New file.
68968         * lib/vfprintf.c: New file.
68969         * m4/vfprintf-posix.m4: New file.
68970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68971         REPLACE_VFPRINTF.
68972         * lib/stdio_.h (vfprintf): New declaration.
68973         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68974         REPLACE_VFPRINTF.
68975
68976 2007-03-08  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68979
68980 2007-03-08  Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68983         instead of 'expr' invocations.
68984         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68989         Suggested by Paul Eggert.
68990
68991 2007-03-08  Bruno Haible  <bruno@clisp.org>
68992
68993         * modules/fseterr-tests: New file.
68994         * tests/test-fseterr.c: New file.
68995
68996         * modules/fseterr: New file.
68997         * lib/fseterr.h: New file.
68998         * lib/fseterr.c: New file.
68999
69000 2007-03-08  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69003         * lib/getopt_.h: Likewise.
69004         * lib/mbswidth.h: Likewise.
69005         * lib/setenv.h: Likewise.
69006         * lib/vasnprintf.h: Likewise.
69007         * lib/vasprintf.h: Likewise.
69008         * lib/verror.h: Likewise.
69009         * lib/xsetenv.h: Likewise.
69010         * lib/xvasprintf.h: Likewise.
69011
69012 2007-03-08  Jim Meyering  <jim@meyering.net>
69013
69014         * users.txt: Add parted.
69015
69016         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69017
69018 2007-03-07  Bruno Haible  <bruno@clisp.org>
69019
69020         * m4/printf.m4: Make the shell script snippets copy&pastable.
69021
69022 2007-03-02  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/netinet_in_.h: New file.
69025         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69026         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69027         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69028         (Depends-on): Add absolute-header.
69029         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69030         into netinet/in.h.
69031
69032 2007-03-03  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/sys_select_.h: New file.
69035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69036         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69037         * modules/sys_select (Files): Add lib/sys_select_.h.
69038         (Depends-on): Add absolute-header.
69039         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69040         into sys/select.h.
69041
69042 2007-03-02  Bruno Haible  <bruno@clisp.org>
69043
69044         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69045         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69046         values.
69047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69048         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69049         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69050         * modules/sys_socket (Depends-on): Add absolute-header.
69051         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69052         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69053         (Include): Remove requirement of inclusion of <sys/types.h>.
69054
69055 2007-03-02  Bruno Haible  <bruno@clisp.org>
69056
69057         * lib/byteswap_.h (bswap_32): Fix formula.
69058
69059 2007-03-06  Bruno Haible  <bruno@clisp.org>
69060
69061         * modules/sprintf-posix-tests: New file.
69062         * tests/test-sprintf-posix.c: New file.
69063
69064         * modules/sprintf-posix: New file.
69065         * lib/sprintf.c: New file.
69066         * m4/sprintf-posix.m4: New file.
69067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69068         REPLACE_SPRINTF.
69069         * lib/stdio_.h (sprintf): New declaration.
69070         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69071         REPLACE_SPRINTF.
69072
69073 2007-03-06  Bruno Haible  <bruno@clisp.org>
69074
69075         * modules/vsprintf-posix-tests: New file.
69076         * tests/test-vsprintf-posix.c: New file.
69077         * tests/test-sprintf-posix.h: New file.
69078
69079         * modules/vsprintf-posix: New file.
69080         * lib/vsprintf.c: New file.
69081         * m4/vsprintf-posix.m4: New file.
69082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69083         REPLACE_VSPRINTF.
69084         * lib/stdio_.h (vsprintf): New declaration.
69085         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69086         REPLACE_VSPRINTF.
69087
69088 2007-03-06  Bruno Haible  <bruno@clisp.org>
69089
69090         * modules/vsnprintf (Depend-on): Remove minmax.
69091
69092 2007-03-06  Bruno Haible  <bruno@clisp.org>
69093
69094         * modules/snprintf-posix-tests: New file.
69095         * tests/test-snprintf-posix.c: New file.
69096
69097         * modules/snprintf-posix: New file.
69098         * m4/snprintf-posix.m4: New file.
69099         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69100         gl_FUNC_SNPRINTF.
69101         (gl_FUNC_SNPRINTF): Invoke it.
69102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69103         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69104         is set.
69105         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69106
69107 2007-03-06  Bruno Haible  <bruno@clisp.org>
69108
69109         * modules/vsnprintf-posix-tests: New file.
69110         * tests/test-vsnprintf-posix.c: New file.
69111         * tests/test-snprintf-posix.h: New file.
69112
69113         * modules/vsnprintf-posix: New file.
69114         * m4/vsnprintf-posix.m4: New file.
69115         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69116         gl_FUNC_VSNPRINTF.
69117         (gl_FUNC_VSNPRINTF): Invoke it.
69118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69119         * lib/stdio_.h (vsnprintf): Define as a replacement if
69120         REPLACE_VSNPRINTF is set.
69121         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69122
69123 2007-03-06  Bruno Haible  <bruno@clisp.org>
69124
69125         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69127
69128 2007-03-06  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69131         (asinl): Declare also if HAVE_DECL_ASINL is set.
69132         (atanl): Declare also if HAVE_DECL_ATANL is set.
69133         (ceill): Declare also if HAVE_DECL_CEILL is set.
69134         (cosl): Declare also if HAVE_DECL_COSL is set.
69135         (expl): Declare also if HAVE_DECL_EXPL is set.
69136         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69137         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69138         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69139         (logl): Declare also if HAVE_DECL_LOGL is set.
69140         (sinl): Declare also if HAVE_DECL_SINL is set.
69141         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69142         (tanl): Declare also if HAVE_DECL_TANL is set.
69143         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69146         declaration of frexpl, ldexpl.
69147         * modules/printf-frexpl (Depends-on): Add math.
69148         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69149
69150 2007-03-05  Bruno Haible  <bruno@clisp.org>
69151
69152         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69153         frexpl and ldexpl are declared.
69154         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69155
69156 2007-03-05  Bruno Haible  <bruno@clisp.org>
69157
69158         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69159         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69160
69161 2007-03-05  Bruno Haible  <bruno@clisp.org>
69162
69163         * lib/stdio_.h: Include <stddef.h>.
69164
69165 2007-03-05  Bruno Haible  <bruno@clisp.org>
69166
69167         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69168
69169 2007-03-05  Bruno Haible  <bruno@clisp.org>
69170
69171         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69172         NetBSD 4, from Ralf Wildenhues.
69173
69174 2007-03-04  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/vasprintf.h: Update #if logic for the case when the functions
69177         exist but are overridden.
69178
69179 2007-03-04  Bruno Haible  <bruno@clisp.org>
69180
69181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69182         implementations: glibc-2.4 and MacOS X 10.3.
69183         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69184         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69185         * tests/test-vasprintf-posix.c (test_function): Likewise.
69186
69187 2007-03-04  Bruno Haible  <bruno@clisp.org>
69188
69189         * modules/vasprintf-posix-tests: New file.
69190         * tests/test-vasprintf-posix.c: New file.
69191
69192         * modules/vasprintf-posix: New file.
69193         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69194         defined.
69195         * m4/vasprintf-posix.m4: New file.
69196         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69197         gl_FUNC_VASPRINTF.
69198         (gl_FUNC_VASPRINTF): Invoke it.
69199         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69200         here.
69201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69202
69203 2007-03-04  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69206         REPLACE_GETTIMEOFDAY.
69207         * modules/sys_time (Makefile.am): Likewise.
69208         * m4/sys_time_h.m4: Likewise.
69209         * m4/gettimeofday.m4: Likewise.
69210
69211 2007-03-04  Bruno Haible  <bruno@clisp.org>
69212
69213         * modules/vasnprintf-posix-tests: New file.
69214         * tests/test-vasnprintf-posix.c: New file.
69215
69216         * modules/vasnprintf-posix: New file.
69217         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69218         printf-frexpl.h.
69219         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69220         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69221         REPLACE_VASNPRINTF is defined.
69222         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69223         gl_FUNC_VASNPRINTF.
69224         (gl_FUNC_VASNPRINTF): Invoke it.
69225         * m4/vasnprintf-posix.m4: New file.
69226         * m4/printf.m4: New file.
69227
69228 2007-03-04  Bruno Haible  <bruno@clisp.org>
69229
69230         Compile progreloc.c only if --enable-relocatable is specified.
69231         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69232         if --enable-relocatable was specified.
69233         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69234         lib_SOURCES.
69235
69236 2007-03-04  Jim Meyering  <jim@meyering.net>
69237
69238         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69239         Use it consistently, rather than enumerating errno constants.
69240
69241 2007-03-04  Bruno Haible  <bruno@clisp.org>
69242
69243         * modules/xvasprintf-tests: New file.
69244         * tests/test-xvasprintf.c: New file.
69245
69246         * modules/vasprintf-tests: New file.
69247         * tests/test-vasprintf.c: New file.
69248
69249         * modules/vasnprintf-tests: New file.
69250         * tests/test-vasnprintf.c: New file.
69251
69252         * modules/vsnprintf-tests: New file.
69253         * tests/test-vsnprintf.c: New file.
69254
69255         * modules/snprintf-tests: New file.
69256         * tests/test-snprintf.c: New file.
69257
69258 2007-03-04  Bruno Haible  <bruno@clisp.org>
69259
69260         Compile relocatable.c only if --enable-relocatable is specified.
69261         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69262         gl_RELOCATABLE_LIBRARY.
69263         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69264         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69265         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69266         gl_RELOCATABLE_LIBRARY.
69267         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69268         (Makefile.am): Remove lib_SOURCES.
69269         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69270         gl_RELOCATABLE_LIBRARY.
69271         (Makefile.am): Remove lib_SOURCES.
69272         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69273         always.
69274         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69275         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69276
69277 2007-03-04  Bruno Haible  <bruno@clisp.org>
69278
69279         * modules/argmatch-tests: New file.
69280         * tests/test-argmatch.c: New file.
69281
69282         * tests/test-allocsa.c (main): Halve the number of loop runs.
69283
69284         * modules/alloca-opt-tests: New file.
69285         * tests/test-alloca-opt.c: New file.
69286
69287 2007-03-04  Jim Meyering  <jim@meyering.net>
69288
69289         Work around difference between Linux ACLs and Solaris 10 ZFS.
69290         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69291         for EINVAL.
69292
69293 2007-03-03  Bruno Haible  <bruno@clisp.org>
69294
69295         * modules/relocatable-prog (Depends-on): Add back progreloc's
69296         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69297
69298 2007-03-03  Bruno Haible  <bruno@clisp.org>
69299
69300         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69301         * modules/relocatable-lib: New file.
69302
69303 2007-03-03  Bruno Haible  <bruno@clisp.org>
69304
69305         * modules/relocatable-prog: Renamed from modules/relocatable.
69306         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69307
69308 2007-03-03  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69311         m4/relocatable-lib.m4.
69312         (Depends-on): Remove 'relocatable'.
69313         (configure.ac): Add gl_RELOCATABLE_NOP.
69314
69315 2007-03-03  Bruno Haible  <bruno@clisp.org>
69316
69317         * modules/relocatable-prog-wrapper: New file.
69318         * modules/relocatable (Depends-on): Add it. Remove all other
69319         dependencies except progname.
69320         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69321
69322         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69323         (gl_FUNC_STRERROR): Nop.
69324         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69325
69326         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69327         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69328
69329         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69330         (gl_FUNC_READLINK): Update.
69331
69332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69333
69334 2007-03-03  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69337         * modules/xreadlink (Depends-on): Add unistd.
69338         * modules/xreadlink-with-size (Depends-on): Likewise.
69339
69340 2007-03-03  Bruno Haible  <bruno@clisp.org>
69341
69342         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69343         extracted from gt_FUNC_SETENV.
69344         (gt_FUNC_SETENV): Remove macro.
69345         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69346         remove gt_FUNC_SETENV.
69347
69348 2007-03-03  Bruno Haible  <bruno@clisp.org>
69349
69350         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69351         ENABLE_RELOCATABLE here.
69352         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69353
69354 2007-03-03  Bruno Haible  <bruno@clisp.org>
69355
69356         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69357         * tests/test-rbtreehash_list.c: Include progname.h.
69358         (main): Call set_program_name.
69359
69360         * modules/rbtree-oset-tests (Depends-on): Add progname.
69361         * tests/test-rbtree_oset.c: Include progname.h.
69362         (main): Call set_program_name.
69363
69364         * modules/rbtree-list-tests (Depends-on): Add progname.
69365         * tests/test-rbtree_list.c: Include progname.h.
69366         (main): Call set_program_name.
69367
69368         * modules/linked-list-tests (Depends-on): Add progname.
69369         * tests/test-linked_list.c: Include progname.h.
69370         (main): Call set_program_name.
69371
69372 2007-03-03  Bruno Haible  <bruno@clisp.org>
69373
69374         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69375         All uses of __restrict changed to _Restrict_.
69376         * lib/glob_.h (__restrict): Remove macro.
69377
69378 2007-03-02  Bruno Haible  <bruno@clisp.org>
69379
69380         * modules/gettext (configure.ac): Require gettext infrastructure
69381         from version 0.16.1.
69382
69383 2007-03-02  Bruno Haible  <bruno@clisp.org>
69384
69385         * modules/linkedhash-list-tests (Depends-on): Add progname.
69386         * tests/test-linkedhash_list.c: Include progname.h.
69387         (main): Call set_program_name.
69388
69389         * modules/carray-list-tests (Depends-on): Add progname.
69390         * tests/test-carray_list.c: Include progname.h.
69391         (main): Call set_program_name.
69392
69393         * modules/avltreehash-list-tests (Depends-on): Add progname.
69394         * tests/test-avltreehash_list.c: Include progname.h.
69395         (main): Call set_program_name.
69396
69397         * modules/avltree-oset-tests (Depends-on): Add progname.
69398         * tests/test-avltree_oset.c: Include progname.h.
69399         (main): Call set_program_name.
69400
69401         * modules/avltree-list-tests (Depends-on): Add progname.
69402         * tests/test-avltree_list.c: Include progname.h.
69403         (main): Call set_program_name.
69404
69405         * modules/array-oset-tests (Depends-on): Add progname.
69406         * tests/test-array_oset.c: Include progname.h.
69407         (main): Call set_program_name.
69408
69409         * modules/array-list-tests (Depends-on): Add progname.
69410         * tests/test-array_list.c: Include progname.h.
69411         (main): Call set_program_name.
69412
69413         * modules/argp-tests (Depends-on): Add progname.
69414         * tests/test-argp.c: Include argp.h first. Include progname.h.
69415         (main): Call set_program_name.
69416
69417 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * doc/gnulib-tool.texi (Initial import): Reword description of
69420         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69421         limited effect even if defined after the first system include.
69422
69423 2007-03-01  Bruno Haible  <bruno@clisp.org>
69424
69425         * build-aux/config.libpath: Update to libtool-1.5.22.
69426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69427
69428 2007-03-01  Bruno Haible  <bruno@clisp.org>
69429
69430         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69431         foo_CFLAGS.
69432         Reported by Ralf Wildenhues.
69433
69434 2007-03-01  Bruno Haible  <bruno@clisp.org>
69435
69436         * build-aux/install-reloc: Remove object files left over by some
69437         compilers.
69438         Reported by Ralf Wildenhues.
69439
69440 2007-03-01  Bruno Haible  <bruno@clisp.org>
69441
69442         * build-aux/install-reloc: Break long lines.
69443
69444 2007-03-01  Bruno Haible  <bruno@clisp.org>
69445
69446         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69447         Reported by Ralf Wildenhues.
69448
69449 2007-03-01  Bruno Haible  <bruno@clisp.org>
69450
69451         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69452         include ordering constraints.
69453
69454 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69458         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69459         as another example.
69460         * lib/time_.h: Fix misspelling.
69461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69462         Require gl_HEADER_TIME_H_DEFAULTS.
69463         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69464         * m4/time_r.m4 (gl_TIME_R): Likewise.
69465         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69466
69467 2007-03-01  Bruno Haible  <bruno@clisp.org>
69468
69469         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69470         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69471
69472 2007-03-01  Jim Meyering  <jim@meyering.net>
69473
69474         * modules/xreadlink (Maintainer): Add my name.
69475         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69476
69477 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69478             Bruno Haible  <bruno@clisp.org>
69479
69480         * build-aux/install-reloc: Compile also c-ctype.c.
69481         * build-aux/relocatable.sh.in: New file.
69482         * doc/relocatable.texi: New file.
69483         * doc/relocatable-maint.texi: New file.
69484         * doc/gnulib.texi: Include relocatable-maint.texi.
69485         * lib/progreloc.c: Include unistd.h unconditionally.
69486         * lib/relocwrapper.c: Include unistd.h unconditionally.
69487         Include c-ctype.h.
69488         (add_dotbin): Use c_tolower.
69489         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69490         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69491         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69492         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69493         to m4/relocatable-lib.m4.
69494         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69495         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69496         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69497         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69498         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69499         * modules/relocatable: New file.
69500         * modules/relocatable-lib: New file.
69501         * modules/relocatable-script: New file.
69502
69503 2007-02-28  Bruno Haible  <bruno@clisp.org>
69504
69505         Import --enable-relocatable infrastructure.
69506         * build-aux/config.libpath: New file, from GNU gettext.
69507         * build-aux/install-reloc: New file, from GNU gettext.
69508         * build-aux/reloc-ldflags: New file, from GNU gettext.
69509         * lib/relocatable.h: New file, from GNU gettext.
69510         * lib/relocatable.c: New file, from GNU gettext.
69511         * lib/relocwrapper.c: New file, from GNU gettext.
69512         * m4/relocatable.m4: New file, from GNU gettext.
69513
69514 2007-02-28  Bruno Haible  <bruno@clisp.org>
69515
69516         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69517
69518         * modules/xreadlink: New file, from GNU gettext with modifications.
69519         * lib/xreadlink.c: New file, from GNU gettext.
69520         * lib/xreadlink.h: Add comments.
69521         (xreadlink): New declaration.
69522
69523         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69524         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69525         lib/xreadlink-with-size.c.
69526         (configure.ac): Remove gl_XREADLINK invocation.
69527         (Makefile.am): Augment lib_SOURCES.
69528         * m4/xreadlink.m4: Remove file.
69529         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69530         (xreadlink_with_size): Renamed from xreadink.
69531         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69532         * modules/canonicalize (Depends-on): Replace xreadlink with
69533         xreadlink-with-size.
69534         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69535
69536 2007-02-25  Jim Meyering  <jim@meyering.net>
69537
69538         * build-aux/announce-gen: When complaining about excess arguments,
69539         list them.
69540
69541 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * README: Document signed integer overflow situation more
69544         accurately.
69545
69546 2007-02-25  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69549         'a' or 'A' conversion.
69550
69551 2007-02-25  Bruno Haible  <bruno@clisp.org>
69552
69553         * modules/filename: Renamed from modules/pathname.
69554         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69555         lib/concatpath.c with lib/concat-filename.c.
69556         (Makefile.am): Update.
69557         (Include): Replace pathname.h with filename.h.
69558         * lib/filename.h: Renamed from lib/pathname.h.
69559         (concatenated_filename): Renamed from concatenated_pathname.
69560         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69561         (concatenated_filename): Renamed from concatenated_pathname.
69562         * lib/findprog.c: Include filename.h instead of pathname.h.
69563         (find_in_path): Update.
69564         * lib/javacomp.c: Include filename.h instead of pathname.h.
69565         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69566         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69567         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69568         is_oldgcj_14_13_usable, is_javac_usable): Update.
69569         * lib/javaexec.c: Include filename.h instead of pathname.h.
69570         (execute_java_class): Update.
69571         * modules/findprog: Update.
69572         * modules/javacomp: Update.
69573         * modules/javaexec: Update.
69574         * MODULES.html.sh (File system functions): Add 'filename', remove
69575         'pathname'.
69576
69577 2007-02-25  Bruno Haible  <bruno@clisp.org>
69578
69579         * modules/printf-frexpl-tests: New file.
69580         * tests/test-printf-frexpl.c: New file.
69581
69582         * modules/printf-frexpl: New file.
69583         * lib/printf-frexpl.h: New file.
69584         * lib/printf-frexpl.c: New file.
69585         * m4/printf-frexpl.m4: New file.
69586
69587 2007-02-25  Bruno Haible  <bruno@clisp.org>
69588
69589         * modules/printf-frexp-tests: New file.
69590         * tests/test-printf-frexp.c: New file.
69591
69592         * modules/printf-frexp: New file.
69593         * lib/printf-frexp.h: New file.
69594         * lib/printf-frexp.c: New file.
69595         * m4/printf-frexp.m4: New file.
69596
69597 2007-02-25  Bruno Haible  <bruno@clisp.org>
69598
69599         Assume automake >= 1.10 for the tests.
69600         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69601         * modules/arctwo-tests: Likewise.
69602         * modules/argp-tests: Likewise.
69603         * modules/avltree-list-tests: Likewise.
69604         * modules/avltree-oset-tests: Likewise.
69605         * modules/avltreehash-list-tests: Likewise.
69606         * modules/carray-list-tests: Likewise.
69607         * modules/crc-tests: Likewise.
69608         * modules/des-tests: Likewise.
69609         * modules/gc-arcfour-tests: Likewise.
69610         * modules/gc-arctwo-tests: Likewise.
69611         * modules/gc-des-tests: Likewise.
69612         * modules/gc-hmac-md5-tests: Likewise.
69613         * modules/gc-hmac-sha1-tests: Likewise.
69614         * modules/gc-md2-tests: Likewise.
69615         * modules/gc-md4-tests: Likewise.
69616         * modules/gc-md5-tests: Likewise.
69617         * modules/gc-pbkdf2-sha1-tests: Likewise.
69618         * modules/gc-rijndael-tests: Likewise.
69619         * modules/gc-sha1-tests: Likewise.
69620         * modules/gc-tests: Likewise.
69621         * modules/getaddrinfo-tests: Likewise.
69622         * modules/hmac-md5-tests: Likewise.
69623         * modules/hmac-sha1-tests: Likewise.
69624         * modules/linked-list-tests: Likewise.
69625         * modules/linkedhash-list-tests: Likewise.
69626         * modules/lock-tests: Likewise.
69627         * modules/md2-tests: Likewise.
69628         * modules/md4-tests: Likewise.
69629         * modules/md5-tests: Likewise.
69630         * modules/rbtree-list-tests: Likewise.
69631         * modules/rbtree-oset-tests: Likewise.
69632         * modules/rbtreehash-list-tests: Likewise.
69633         * modules/read-file-tests: Likewise.
69634         * modules/rijndael-tests: Likewise.
69635         * modules/stdint-tests: Likewise.
69636         * modules/tls-tests: Likewise.
69637
69638 2007-02-24  Bruno Haible  <bruno@clisp.org>
69639
69640         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69641         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69642         function; instead check whether isnan with a double argument links.
69643         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69644         function; instead check whether isnan with a 'long double' argument
69645         links.
69646         Reported by Eric Blake <ebb9@byu.net>.
69647
69648 2007-02-24  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69651         defined.
69652         * lib/isnanl.c: Remove all code. Just include isnan.c.
69653         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69654
69655 2007-02-25  Jim Meyering  <jim@meyering.net>
69656
69657         Avoid conflicting types for 'unsetenv' on FreeBSD.
69658         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69659         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69660         in stdlib.h.
69661
69662 2007-02-24  Bruno Haible  <bruno@clisp.org>
69663
69664         * modules/isnanl-nolibm-tests: New file.
69665         * tests/test-isnanl.c: New file.
69666
69667         * modules/isnanl-nolibm: New file.
69668         * lib/isnanl.h: New file.
69669         * lib/isnanl.c: New file.
69670         * m4/isnanl.m4: New file.
69671
69672 2007-02-24  Bruno Haible  <bruno@clisp.org>
69673
69674         * modules/isnan-nolibm-tests: New file.
69675         * tests/test-isnan.c: New file.
69676
69677         * modules/isnan-nolibm: New file.
69678         * lib/isnan.h: New file.
69679         * lib/isnan.c: New file.
69680         * m4/isnan.m4: New file.
69681
69682 2007-02-24  Bruno Haible  <bruno@clisp.org>
69683
69684         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69685         assume that an exponent fits in 20 bits.
69686
69687 2007-02-24  Jim Meyering  <jim@meyering.net>
69688
69689         * m4/regex.m4: Update the description of the configure-time option,
69690         --without-included-regex, to state accurately what the defaults are,
69691         and perhaps to give people an idea why using this option is risky.
69692
69693 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69696         loops on small arguments.  This attempts to avoid the problem
69697         Bruno Haible reported for AIX 4.3.2 in
69698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69699
69700 2007-02-23  Bruno Haible  <bruno@clisp.org>
69701
69702         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69703         Needed for help2man.
69704
69705 2007-02-23  Karl Berry  <karl@gnu.org>
69706
69707         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69708         exists, foo.h should be cvs-ignored, not committed.
69709
69710 2007-02-23  Eric Blake  <ebb9@byu.net>
69711
69712         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69713         * lib/stat-time.h (includes): Likewise.
69714         * lib/utimecmp.c (includes): Likewise.
69715         * lib/utimens.h (includes): Likewise.
69716         * lib/getdate.y (includes): Also include "timespec.h" for use
69717         internal to the module.
69718         * modules/utimens (Depends-on): Revert yesterday's patch.
69719         * modules/nanosleep (Depends-on): Add missing dependency.
69720
69721 2007-02-22  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/glob.c: Don't include getlogin_r.h.
69724
69725 2007-02-22  Jim Meyering  <jim@meyering.net>
69726
69727         * modules/utimens (Depends-on): Add timespec, required for
69728         utimens.h's inclusion of timespec.h.
69729
69730 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69733         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69734         Schwab in
69735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69736         I'll try to think of a better way to fix the Solaris problem.
69737
69738         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69739         like glibc; on Solaris 10, it fails with errno == EINVAL.
69740         POSIX says the behavior is unspecified if the first argument is NULL,
69741         so play it safe and never pass NULL to the system getcwd.
69742
69743 2007-02-21  Jim Meyering  <jim@meyering.net>
69744
69745         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69746         of gettimeofday.  It would conflict with the one now always
69747         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69748         an IRIX 6.5 build failure.
69749
69750 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         Minor fixups to port to Solaris 10 with Sun C 5.8.
69753         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69754         * modules/getcwd (Depends-on): Add dirfd.
69755         * lib/putenv.c (putenv): #undef it.
69756         (rpl_putenv): New decl.
69757         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69758
69759 2007-02-20  Bruno Haible  <bruno@clisp.org>
69760
69761         * modules/stdio-tests: New file.
69762         * tests/test-stdio.c: New file.
69763
69764         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69765         (Depends-on): Add stdio.
69766         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69767         (Include): Use <stdio.h> instead of vsnprintf.h.
69768         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69769         HAVE_DECL_VSNPRINTF.
69770         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69771
69772         * modules/snprintf (Files): Remove lib/snprintf.h.
69773         (Depends-on): Add stdio.
69774         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69775         (Include): Use <stdio.h> instead of snprintf.h.
69776         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69777         HAVE_DECL_SNPRINTF.
69778         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69779         * lib/getaddrinfo.c: Likewise.
69780
69781         * modules/stdio: New file.
69782         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69783         * lib/snprintf.h: Remove file.
69784         * lib/vsnprintf.h: Remove file.
69785         * lib/.cppi-disable: Remove snprintf.h.
69786         * m4/stdio_h.m4: New file.
69787         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69788
69789 2007-02-20  Jim Meyering  <jim@meyering.net>
69790
69791         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69792         used by e.g., mingw.  From Bruno Haible.
69793
69794 2007-02-19  Bruno Haible  <bruno@clisp.org>
69795
69796         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69797         warnings.
69798         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69799
69800 2007-02-19  Bruno Haible  <bruno@clisp.org>
69801
69802         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69803         from mingw users.
69804
69805 2007-02-19  Bruno Haible  <bruno@clisp.org>
69806
69807         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69808         warnings.
69809         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69810
69811 2007-02-19  Jim Meyering  <jim@meyering.net>
69812
69813         Don't use FD after a successful "fdopendir (fd)".
69814         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69815         Reset it by calling dirfd on the just-obtained DIR*.
69816
69817         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69818         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69819
69820 2007-02-18  Bruno Haible  <bruno@clisp.org>
69821
69822         * lib/readlink.c: Include <unistd.h>.
69823         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69824         HAVE_READLINK.
69825         * modules/readlink (Depends-on): Add unistd.
69826         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69827         (Include): Add <unistd.h>.
69828
69829         * lib/getlogin_r.h: Remove file.
69830         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69831         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69832         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69833         HAVE_DECL_GETLOGIN_R.
69834         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69836         (Include): Use <unistd.h> instead of getlogin_r.h.
69837
69838         * lib/getcwd.h: Remove file.
69839         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69840         * lib/xgetcwd.c: Likewise.
69841         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69842         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69843         * modules/getcwd (Files): Remove lib/getcwd.h.
69844         (Depends-on): Add unistd.
69845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69846         (Include): Use <unistd.h> instad of getcwd.h.
69847
69848         * lib/ftruncate.c: Include <unistd.h> first.
69849         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69850         Set HAVE_FTRUNCATE.
69851         * modules/ftruncate (Depends-on): Add unistd.
69852         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69853
69854         * lib/fchdir.c: Include <unistd.h> first.
69855         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69857         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69858         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69859         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69860
69861         * lib/dup2.c: Include <unistd.h> first.
69862         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69863         HAVE_DUP2.
69864         * modules/dup2 (Depends-on): Add unistd.
69865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69866
69867         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69868         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69869         REPLACE_CHOWN. Don't define chown as a macro here.
69870         * modules/chown (Depends-on): Add unistd.
69871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69872
69873         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69874         Add definition for GL_LINK_WARNING.
69875         (chown, dup2): New declarations.
69876         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69877         link warning.
69878         (ftruncate): New declaration.
69879         (getcwd): New declaration, taken from old getcwd.h.
69880         (getlogin_r): New declaration, taken from old getlogin_r.h.
69881         (readlink): New declaration.
69882         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69883         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69884         (gl_PREREQ_UNISTD): Remove macro.
69885         (gl_UNISTD_MODULE_INDICATOR): New macro.
69886         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69887         many new variables. Don't set UNISTD_H.
69888         * modules/unistd (Description): Change.
69889         (Depends-on): Add link-warning.
69890         (configure.ac): Update.
69891         (Makefile.am): Create unistd.h always. Substitute many new variables
69892         into it.
69893
69894 2007-02-18  Bruno Haible  <bruno@clisp.org>
69895
69896         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69897         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69898         HAVE_GETSUBOPT.
69899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69900         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69901         * lib/getsubopt.h: Remove file.
69902         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69903         (Depends-on): Add stdlib.
69904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69905         (Includes): Use <stdlib.h> instead of getsubopt.h.
69906         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69907         Set HAVE_GETSUBOPT.
69908         * lib/getsubopt.c: Don't include getsubopt.h.
69909
69910 2007-02-18  Bruno Haible  <bruno@clisp.org>
69911
69912         * modules/fchdir (Depends-on): Add dup2.
69913
69914 2007-02-18  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/stdlib_.h: Handle glibc's special invocation convention
69917         specially.
69918
69919 2007-02-18  Bruno Haible  <bruno@clisp.org>
69920
69921         * modules/stdlib-tests: New file.
69922         * tests/test-stdlib.c: New file.
69923
69924         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69925         (Depends-on): Add stdlib.
69926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69927         (Includes): Use <stdlib.h> instead of mkstemp.h.
69928         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69929         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69930         * lib/mkstemp.c: Don't include mkstemp.h.
69931         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69932         * lib/stdlib--.h: Don't include mkstemp.h.
69933
69934         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69935         (Depends-on): Add stdlib.
69936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69937         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69938         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69939         HAVE_MKDTEMP.
69940         * lib/mkdtemp.c: Don't include mkdtemp.h.
69941         * lib/clean-temp.c: Don't include mkdtemp.h.
69942
69943         * modules/exit (Files): Remove lib/exit.h.
69944         (Depends-on): Add stdlib.
69945         (Makefile.am): Remove lib_SOURCES.
69946         (Include): Use <stdlib.h> instead of exit.h.
69947         * lib/argmatch.c: Don't include exit.h.
69948         * lib/execute.c: Likewise.
69949         * lib/pagealign_alloc.c: Likewise.
69950         * lib/pipe.c: Likewise.
69951         * lib/wait-process.c: Likewise.
69952         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69953         * lib/exitfail.c: Likewise.
69954         * lib/savewd.c: Likewise.
69955         * lib/xsetenv.c: Likewise.
69956
69957         * modules/stdlib: New file.
69958         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69959         and extra comments about mkstemp().
69960         * lib/exit.h: Remove file.
69961         * lib/mkdtemp.h: Remove file.
69962         * lib/mkstemp.h: Remove file.
69963         * m4/stdlib_h.m4: New file.
69964         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69965
69966 2007-02-18  Bruno Haible  <bruno@clisp.org>
69967
69968         * modules/math-tests: New file.
69969         * tests/test-math.c: New file.
69970
69971         * modules/math: New file.
69972         * modules/mathl (Files): Remove lib/mathl.h.
69973         (Depends-on): Add math.
69974         (Makefile.am): Don't mention mathl.h.
69975         (Include): Use <math.h> instead of mathl.h.
69976         * lib/math_.h: New file.
69977         * lib/mathl.h: Remove file.
69978         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69979         mathl.h.
69980         * lib/asinl.c: Likewise.
69981         * lib/atanl.c: Likewise.
69982         * lib/ceill.c: Likewise.
69983         * lib/cosl.c: Likewise.
69984         * lib/expl.c: Likewise.
69985         * lib/floorl.c: Likewise.
69986         * lib/frexpl.c: Likewise.
69987         * lib/ldexpl.c: Likewise.
69988         * lib/logl.c: Likewise.
69989         * lib/sincosl.c: Likewise.
69990         * lib/sinl.c: Likewise.
69991         * lib/sqrtl.c: Likewise.
69992         * lib/tanl.c: Likewise.
69993         * lib/trigl.c: Likewise.
69994         * m4/math_h.m4: New file.
69995         * MODULES.html.sh (Mathematics): Add math.
69996
69997 2007-02-17  Bruno Haible  <bruno@clisp.org>
69998
69999         * modules/wctype-tests: New file.
70000         * tests/test-wctype.c: New file.
70001
70002         * modules/wchar-tests: New file.
70003         * tests/test-wchar.c: New file.
70004
70005         * modules/unistd-tests: New file.
70006         * tests/test-unistd.c: New file.
70007
70008         * modules/time-tests: New file.
70009         * tests/test-time.c: New file.
70010
70011         * modules/sysexits-tests: New file.
70012         * tests/test-sysexits.c: New file.
70013
70014         * modules/sys_time-tests: New file.
70015         * tests/test-sys_time.c: New file.
70016
70017         * modules/sys_stat-tests: New file.
70018         * tests/test-sys_stat.c: New file.
70019
70020         * modules/sys_socket-tests: New file.
70021         * tests/test-sys_socket.c: New file.
70022
70023         * modules/sys_select-tests: New file.
70024         * tests/test-sys_select.c: New file.
70025
70026         * modules/string-tests: New file.
70027         * tests/test-string.c: New file.
70028
70029         * modules/stdbool-tests: New file.
70030         * tests/test-stdbool.c: New file.
70031
70032         * modules/netinet_in-tests: New file.
70033         * tests/test-netinet_in.c: New file.
70034
70035         * modules/inttypes-tests: New file.
70036         * tests/test-inttypes.c: New file.
70037
70038         * modules/fcntl-tests: New file.
70039         * tests/test-fcntl.c: New file.
70040
70041         * modules/byteswap-tests: New file.
70042         * tests/test-byteswap.c: New file.
70043
70044         * modules/arpa_inet-tests: New file.
70045         * tests/test-arpa_inet.c: New file.
70046
70047 2007-02-17  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70050         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70051         if the corresponding module is not enabled. Emit link warnings if
70052         the function is used nevertheless.
70053         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70054         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70055         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70056         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70057         * modules/inttypes (Depends-on): Add link-warning.
70058         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70059         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70060         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70061         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70062         * modules/imaxdiv (configure.ac): Likewise.
70063         * modules/strtoimax (configure.ac): Likewise.
70064         * modules/strtoumax (configure.ac): Likewise.
70065
70066 2007-02-17  Bruno Haible  <bruno@clisp.org>
70067
70068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70069         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70070         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70071         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70072
70073 2007-02-17  Bruno Haible  <bruno@clisp.org>
70074
70075         * modules/link-warning: New file.
70076         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70077         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70078         * modules/string (Depends-on): Add link-warning.
70079         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70080         string.h.
70081         * MODULES.html.sh (Support for building libraries and executables): Add
70082         link-warning.
70083
70084 2007-02-17  Bruno Haible  <bruno@clisp.org>
70085
70086         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70087         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70088         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70089         long lines.
70090
70091 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70092             Bruno Haible  <bruno@clisp.org>
70093
70094         * modules/tmpfile: New file.
70095         * lib/tmpfile.c: New file.
70096         * m4/tmpfile.m4: New file.
70097         * MODULES.html.sh (func_all_modules): New section "Input/output".
70098
70099 2007-02-15  Bruno Haible  <bruno@clisp.org>
70100
70101         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70102         (supports_delete_on_close): New function.
70103         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70104
70105 2007-02-14  Bruno Haible  <bruno@clisp.org>
70106
70107         * modules/mbspcasecmp-tests: New file.
70108         * tests/test-mbspcasecmp.sh: New file.
70109         * tests/test-mbspcasecmp.c: New file.
70110
70111         New module mbspcasecmp.
70112         * modules/mbspcasecmp: New file.
70113         * lib/mbspcasecmp.c: New file.
70114         * lib/string_.h (strncasecmp): Change warning message.
70115         (mbspcasecmp): New declaration.
70116         * m4/mbspcasecmp.m4: New file.
70117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70118         GNULIB_MBSPCASECMP.
70119         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70120         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70121
70122 2007-02-14  Bruno Haible  <bruno@clisp.org>
70123
70124         * modules/mbsncasecmp-tests: New file.
70125         * tests/test-mbsncasecmp.sh: New file.
70126         * tests/test-mbsncasecmp.c: New file.
70127
70128         New module mbsncasecmp.
70129         * modules/mbsncasecmp: New file.
70130         * lib/mbsncasecmp.c: New file.
70131         * lib/string_.h (mbsncasecmp): New declaration.
70132         * m4/mbsncasecmp.m4: New file.
70133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70134         GNULIB_MBSNCASECMP.
70135         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70136         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70137
70138 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70141         Verify that it doesn't overlap with our flags.
70142         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70143         do not have the desired effect in multibyte locales; instead, use
70144         mbscasecmp.
70145         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70146         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70147         we don't require GNU fnmatch ourselves (if our users require it, they
70148         should do so explicitly).
70149
70150         Fix regex code so it doesn't rely on strcasecmp.
70151         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70152         Otherwise, include gnulib's langinfo.h.
70153         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70154         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70155         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70156         * modules/regex (FILES): Remove m4/codeset.m4.
70157         (Depends-on): Add localcharset.  Remove strcase.
70158
70159 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70160
70161         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70162         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70163
70164 2007-02-13  Bruno Haible  <bruno@clisp.org>
70165
70166         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70167         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70168
70169 2007-02-12  Bruno Haible  <bruno@clisp.org>
70170
70171         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70172         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70173         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70174         time warning rather than a link error.
70175
70176 2007-02-12  Bruno Haible  <bruno@clisp.org>
70177
70178         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70181
70182 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70185         args, not 2.
70186
70187 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         New module 'time', so that apps can include <time.h> as per
70190         POSIX and GNU instead of separate include files like time_r.h
70191         and timegm.h.  This implementation tries out a simpler approach
70192         for replacing decls in standard include files (as compared to
70193         the string module), somewhat as an experiment.
70194
70195         * config/srclist.txt: Comment out mktime.c for now.
70196         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70197         since it doesn't apply any more.  Use generic wording instead.
70198         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70199         'time'.
70200         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70201         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70202         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70203         Don't include <sys/types.h>; no longer needed since we assume C89.
70204         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70205         * lib/strftime.c: Likewise.
70206         * lib/time_r.c: Likewise.
70207         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70208         * lib/nanosleep.c: Include <time.h> first, to check interface.
70209         * lib/strptime.c: Likewise.
70210         * lib/time_r.c: Likewise.
70211         * lib/timegm.c: Likewise.
70212         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70213         needed.
70214         * lib/timegm.c: Don't include timegm.h; no longer needed.
70215         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70216         time.h now handles any problems in that area.
70217         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70218         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70219         that time.h defines struct timespec.
70220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70221         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70222         handles that.
70223         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70224         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70225         needed.  Set REPLACE_LOCALTIME.
70226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70227         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70228         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70229         nanosleep; time_h.m4 now does that.  Don't require
70230         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70231         module handles this now.
70232         * modules/getdate (Depends-on): Remove timespec.  Add time.
70233         * modules/nanosleep (Depends-on): Likewise.
70234         * modules/stat-time (Depends-on): Likewise.
70235         * modules/nanosleep (Include): Include time.h, not timespec.h.
70236         * modules/strptime (Files): Remove lib/strptime.h.
70237         (Depends-on): Add extensions, time.
70238         (Include): Include time.h, not strptime.h.
70239         * modules/time_r (Files): Remove lib/time_r.h.
70240         (Depends-on): Add time.
70241         (Include): Include time.h, not time_r.h.
70242         * modules/timegm: Likewise.
70243         * modules/timespec (Description): Now does timespec-related decls
70244         of our own, instead of struct timespec itself.
70245         (Depends-on): Add time; remove extensions.
70246         (Maintainer): Add self.
70247         * modules/utimecmp (Depends-on): Add time; remove timespec.
70248         * modules/utimens (Depends-on): Likewise.
70249         * modules/xnanosleep (Depends-on): Likewise.
70250
70251 2007-02-11  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/c-strstr.c: Include allocsa.h.
70254         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70255         * lib/c-strcasestr.c: Include allocsa.h.
70256         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70257         * lib/strcasestr.c: Include allocsa.h.
70258         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70259         * lib/mbsstr.c: Include allocsa.h.
70260         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70261         allocsa/freesa instead of malloc/free.
70262         * lib/mbscasestr.c: Include allocsa.h.
70263         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70264         allocsa/freesa instead of malloc/free.
70265         * modules/c-strstr (Depends-on): Add allocsa.
70266         * modules/c-strcasestr (Depends-on): Likewise.
70267         * modules/strcasestr (Depends-on): Likewise.
70268         * modules/mbsstr (Depends-on): Likewise.
70269         * modules/mbscasestr (Depends-on): Likewise.
70270
70271 2007-02-11  Bruno Haible  <bruno@clisp.org>
70272
70273         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70274
70275         * modules/mbsspn-tests: New file.
70276         * tests/test-mbsspn.sh: New file.
70277         * tests/test-mbsspn.c: New file.
70278
70279 2007-02-11  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70282
70283         * modules/mbspbrk-tests: New file.
70284         * tests/test-mbspbrk.sh: New file.
70285         * tests/test-mbspbrk.c: New file.
70286
70287 2007-02-11  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70290         unneeded cast.
70291
70292         * modules/mbscspn-tests: New file.
70293         * tests/test-mbscspn.sh: New file.
70294         * tests/test-mbscspn.c: New file.
70295
70296 2007-02-11  Bruno Haible  <bruno@clisp.org>
70297
70298         * modules/mbscasecmp-tests: New file.
70299         * tests/test-mbscasecmp.sh: New file.
70300         * tests/test-mbscasecmp.c: New file.
70301
70302 2007-02-11  Bruno Haible  <bruno@clisp.org>
70303
70304         Ensure O(n) worst-case complexity of mbscasestr.
70305         * lib/mbscasestr.c: Include stdbool.h.
70306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70307         functions.
70308         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70309         the bookkeeping indicates that it's worth it.
70310         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70311
70312         * modules/mbscasestr-tests: New file.
70313         * tests/test-mbscasestr1.c: New file.
70314         * tests/test-mbscasestr2.sh: New file.
70315         * tests/test-mbscasestr2.c: New file.
70316         * tests/test-mbscasestr3.sh: New file.
70317         * tests/test-mbscasestr3.c: New file.
70318         * tests/test-mbscasestr4.sh: New file.
70319         * tests/test-mbscasestr4.c: New file.
70320         * m4/locale-tr.m4: New file.
70321
70322 2007-02-11  Bruno Haible  <bruno@clisp.org>
70323
70324         Ensure O(n) worst-case complexity of mbsstr.
70325         * lib/mbsstr.c: Include stdbool.h.
70326         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70327         functions.
70328         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70329         bookkeeping indicates that it's worth it.
70330         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70331
70332         * modules/mbsstr-tests: New file.
70333         * tests/test-mbsstr1.c: New file.
70334         * tests/test-mbsstr2.sh: New file.
70335         * tests/test-mbsstr2.c: New file.
70336         * tests/test-mbsstr3.sh: New file.
70337         * tests/test-mbsstr3.c: New file.
70338         * m4/locale-fr.m4: New file.
70339
70340 2007-02-11  Bruno Haible  <bruno@clisp.org>
70341
70342         * lib/mbsrchr.c (mbsrchr): Fix bug.
70343
70344         * modules/mbsrchr-tests: New file.
70345         * tests/test-mbsrchr.sh: New file.
70346         * tests/test-mbsrchr.c: New file.
70347
70348 2007-02-11  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/mbschr.c (mbschr): Fix bug.
70351
70352         * modules/mbschr-tests: New file.
70353         * tests/test-mbschr.sh: New file.
70354         * tests/test-mbschr.c: New file.
70355         * m4/locale-zh.m4: New file.
70356
70357 2007-02-11  Bruno Haible  <bruno@clisp.org>
70358
70359         Support for copying multibyte string iterators.
70360         * lib/mbiter.h: Include <string.h>.
70361         (mbiter_multi_copy): New function.
70362         (mbi_copy): New macro.
70363         * lib/mbuiter.h: Include <string.h>.
70364         (mbuiter_multi_copy): New function.
70365         (mbui_copy): New macro.
70366
70367 2007-02-11  Bruno Haible  <bruno@clisp.org>
70368
70369         New module mbslen.
70370         * modules/mbslen: New file.
70371         * lib/mbslen.c: New file.
70372         * lib/string_.h (mbslen): New declaration.
70373         * m4/mbslen.m4: New file.
70374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70375         GNULIB_MBSLEN.
70376         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70377         * MODULES.html.sh (Internationalization functions): Add mbslen.
70378
70379 2007-02-11  Bruno Haible  <bruno@clisp.org>
70380
70381         Ensure O(n) worst-case complexity of strcasestr substitute.
70382         * lib/strcasestr.c: Include stdbool.h.
70383         (knuth_morris_pratt): New function.
70384         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70385         bookkeeping indicates that it's worth it.
70386         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70387
70388         * modules/strcasestr-tests: New file.
70389         * tests/test-strcasestr.c: New file.
70390
70391 2007-02-11  Bruno Haible  <bruno@clisp.org>
70392
70393         Ensure O(n) worst-case complexity of c_strcasestr.
70394         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70395         (knuth_morris_pratt): New function.
70396         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70397         the bookkeeping indicates that it's worth it.
70398         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70399
70400         * modules/c-strcasestr-tests: New file.
70401         * tests/test-c-strcasestr.c: New file.
70402
70403 2007-02-11  Bruno Haible  <bruno@clisp.org>
70404
70405         Ensure O(n) worst-case complexity of c_strstr.
70406         * lib/c-strstr.c: Include stdbool.h, string.h.
70407         (knuth_morris_pratt): New function.
70408         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70409         bookkeeping indicates that it's worth it.
70410         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70411
70412         * lib/c-strstr.c: Complete rewrite for maintainability.
70413
70414         * modules/c-strstr-tests: New file.
70415         * tests/test-c-strstr.c: New file.
70416
70417 2007-02-11  Bruno Haible  <bruno@clisp.org>
70418
70419         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70420         5.2.1 and earlier, whereby \055 was treated just like the range
70421         delimiter '-'.
70422         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70423
70424 2007-02-08  Bruno Haible  <bruno@clisp.org>
70425
70426         * modules/regex (Depends-on): Add stdbool.
70427         Reported by Dalibor Topic <robilad@kaffe.org>.
70428
70429 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70432         Prefer returning from main to exiting from it.
70433         Remove unnecessary parens after sizeof.
70434
70435 2007-02-05  Bruno Haible  <bruno@clisp.org>
70436
70437         New module mbssep.
70438         * modules/mbssep: New file.
70439         * lib/mbssep.c: New file.
70440         * lib/string_.h (strsep): Add a conditional link warning.
70441         (mbssep): New declaration.
70442         * m4/mbssep.m4: New file.
70443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70444         GNULIB_MBSSEP.
70445         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70446         * MODULES.html.sh (Internationalization functions): Add mbssep.
70447
70448 2007-02-05  Bruno Haible  <bruno@clisp.org>
70449
70450         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70451         Optimize search in case of 1 delimiter.
70452
70453 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70454
70455         * lib/acl.h: Include sys/types.h before sys/acl.h.
70456
70457 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70458
70459         Merge upstream fix for glibc bugzilla #3957:
70460
70461         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70462
70463         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70464         bit for RE_HAT_LISTS_NOT_NEWLINE.
70465         (build_charclass_op): Remove bogus comment.
70466
70467 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70468
70469         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70470
70471 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70474         * lib/memmem.c [!defined _LIBC]: Include config.h.
70475
70476 2007-02-04  Bruno Haible  <bruno@clisp.org>
70477
70478         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70479         warning message.
70480
70481 2007-02-04  Bruno Haible  <bruno@clisp.org>
70482
70483         New module mbstok_r.
70484         * modules/mbstok_r: New file.
70485         * lib/mbstok_r.c: New file.
70486         * lib/string_.h (strtok_r): Change argument names to match the
70487         comments. Add a conditional link warning.
70488         (mbstok_r): New declaration.
70489         * m4/mbstok_r.m4: New file.
70490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70491         GNULIB_MBSTOK_R.
70492         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70493         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70494
70495 2007-02-04  Bruno Haible  <bruno@clisp.org>
70496
70497         New module mbsspn.
70498         * modules/mbsspn: New file.
70499         * lib/mbsspn.c: New file.
70500         * lib/string_.h (strspn): Add a conditional link warning.
70501         (mbsspn): New declaration.
70502         * m4/mbsspn.m4: New file.
70503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70504         GNULIB_MBSSPN.
70505         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70506         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70507
70508 2007-02-04  Bruno Haible  <bruno@clisp.org>
70509
70510         New module mbspbrk.
70511         * modules/mbspbrk: New file.
70512         * lib/mbspbrk.c: New file.
70513         * lib/string_.h (strpbrk): Add a conditional link warning.
70514         (mbspbrk): New declaration.
70515         * m4/mbspbrk.m4: New file.
70516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70517         GNULIB_MBSPBRK.
70518         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70519         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70520
70521 2007-02-04  Bruno Haible  <bruno@clisp.org>
70522
70523         New module mbscspn.
70524         * modules/mbscspn: New file.
70525         * lib/mbscspn.c: New file.
70526         * lib/string_.h (strcspn): Add a conditional link warning.
70527         (mbscspn): New declaration.
70528         * m4/mbscspn.m4: New file.
70529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70530         GNULIB_MBSCSPN.
70531         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70532         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70533
70534 2007-02-04  Bruno Haible  <bruno@clisp.org>
70535
70536         New module mbscasestr, reduced goal of strcasestr.
70537         * modules/mbscasestr: New file.
70538         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70539         (mbscasestr): Renamed from strcasestr.
70540         * lib/strcasestr.c: Don't include mbuiter.h.
70541         (strcasestr): Remove support for multibyte locales.
70542         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70543         Change the conditional link warning.
70544         (mbscasestr): New declaration.
70545         * m4/mbscasestr.m4: New file.
70546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70547         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70548         REPLACE_STRCASESTR.
70549         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70551         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70553         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70554         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70555         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70556         (Depends-on): Remove mbuiter.
70557         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70558
70559 2007-02-04  Bruno Haible  <bruno@clisp.org>
70560
70561         Simplify handling of strncasecmp.
70562         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70563         the conditional link warning.
70564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70565         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70566         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70567         * modules/strcase (configure.ac): Don't invoke
70568         gl_STRING_MODULE_INDICATOR.
70569         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70570
70571 2007-02-04  Bruno Haible  <bruno@clisp.org>
70572
70573         New module mbscasecmp, reduced goal of strcasecmp.
70574         * modules/mbscasecmp: New file.
70575         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70576         (mbscasecmp): Renamed from strcasecmp.
70577         * lib/strcasecmp.c: Don't include mbuiter.h.
70578         (strcasecmp): Remove support for multibyte locales.
70579         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70580         Change the conditional link warning.
70581         (mbscasecmp): New declaration.
70582         * m4/mbscasecmp.m4: New file.
70583         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70584         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70585         REPLACE_STRCASECMP.
70586         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70588         GNULIB_MBSCASECMP.
70589         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70590         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70591         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70592         (Depends-on): Remove mbuiter.
70593         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70594
70595 2007-02-04  Bruno Haible  <bruno@clisp.org>
70596
70597         New module mbsstr. Remove module strstr.
70598         * modules/mbsstr: New file.
70599         * modules/strstr: Remove file.
70600         * lib/mbsstr.c: Renamed from lib/strstr.c.
70601         (mbsstr): Renamed from strstr.
70602         * lib/string_.h (strstr): Remove declaration. Change the conditional
70603         link warning.
70604         (mbsstr): New declaration.
70605         * m4/mbsstr.m4: New file.
70606         * m4/strstr.m4: Remove file.
70607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70608         REPLACE_STRSTR.
70609         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70610         Don't initialize GNULIB_STRSTR.
70611         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70612         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70613         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70614         (Support for systems lacking ANSI C 89): Remove strstr.
70615
70616 2007-02-04  Bruno Haible  <bruno@clisp.org>
70617
70618         New module mbsrchr.
70619         * modules/mbsrchr: New file.
70620         * lib/mbsrchr.c: New file.
70621         * lib/string_.h (strrchr): Add a conditional link warning.
70622         (mbsrchr): New declaration.
70623         * m4/mbsrchr.m4: New file.
70624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70625         GNULIB_MBSRCHR.
70626         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70627         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70628
70629 2007-02-04  Bruno Haible  <bruno@clisp.org>
70630
70631         New module mbschr.
70632         * modules/mbschr: New file.
70633         * lib/mbschr.c: New file.
70634         * lib/string_.h (strchr): Add a conditional link warning.
70635         (mbschr): New declaration.
70636         * m4/mbschr.m4: New file.
70637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70638         GNULIB_MBSCHR.
70639         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70640         * MODULES.html.sh (Internationalization functions): Add mbschr.
70641
70642 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70645
70646         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70647
70648 2007-02-04  Bruno Haible  <bruno@clisp.org>
70649
70650         New module description section 'configure.ac-early'.
70651         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70652         (func_get_autoconf_early_snippet): New function.
70653         (func_import, func_create_testdir): Use it. Remove special cases for
70654         modules 'extensions' and 'lock'.
70655         * modules/extensions (configure.ac-early): Require
70656         gl_USE_SYSTEM_EXTENSIONS.
70657         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70658
70659 2007-02-04  Bruno Haible  <bruno@clisp.org>
70660
70661         Make use of gcj-4.3's -fsource and -ftarget option.
70662         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70663         and if so try the options -fsource and -ftarget.
70664         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70665         source_version, ftarget_option, target_version arguments.
70666         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70667         (is_envjavac_oldgcj_14_14_usable): Renamed from
70668         is_envjavac_gcj_14_14_usable.
70669         (is_envjavac_oldgcj_14_13_usable): Renamed from
70670         is_envjavac_gcj_14_13_usable.
70671         (is_gcj_present): Update.
70672         (is_gcj_43, is_gcj43_usable): New functions.
70673         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70674         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70675         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70676         try the options -fsource and -ftarget.
70677
70678 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70681         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70682         larger value.
70683
70684 2007-02-03  Jim Meyering  <jim@meyering.net>
70685
70686         Give tools a better chance to allocate space for very large buffers.
70687         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70688
70689         Make pwd and readlink work also when run with an unreadable parent dir
70690         on systems with openat support.
70691         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70692         provided getcwd function, even when we have openat support.
70693         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70694
70695 2007-02-02  Bruno Haible  <bruno@clisp.org>
70696
70697         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70698         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70699         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70700         portability problems if one of these functions is only used on specific
70701         platforms.
70702         Reported by Paul Eggert.
70703
70704 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70707         is causing more trouble than it's curing.
70708         * lib/regex_internal.h (__mempcpy): Remove.
70709         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70710         (and make the code a tad smaller to boot).
70711         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70712
70713 2007-02-02  Jim Meyering  <jim@meyering.net>
70714
70715         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70716         section, not in the Makefile.am: one.
70717
70718 2007-02-02  Eric Blake  <ebb9@byu.net>
70719
70720         * lib/strchrnul.c: Always include config.h first.
70721
70722         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70723         gnulib strstr is not necessary here.
70724
70725 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70726
70727         * m4/socklen.m4: Fix typo.
70728
70729 2007-02-02  Eric Blake  <ebb9@byu.net>
70730
70731         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70732         * modules/netinet_in (Makefile.am): Likewise.
70733
70734 2007-02-01  Bruno Haible  <bruno@clisp.org>
70735
70736         * lib/string_.h (GL_LINK_WARNING): New macro.
70737         (strcasecmp, strstr, strcasestr): If provided by the system,
70738         conditionally define as a macro that leads to a warning instead of to
70739         an error.
70740         (strncasecmp): Conditionally define as a macro that leads to a warning.
70741
70742 2007-02-01  Karl Berry  <karl@gnu.org>
70743
70744         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70745
70746 2007-02-01  Bruno Haible  <bruno@clisp.org>
70747
70748         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70749         renamings.
70750
70751 2007-02-01  Eric Blake  <ebb9@byu.net>
70752
70753         * modules/regex (Depends-on): Revert dependence on mempcpy.
70754         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70755         module's definition of mempcpy.
70756         Reported by Paul Eggert.
70757
70758 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70761         the symbol XYZ before redefining it.  This fixes a problem with
70762         programs that don't use XYZ, when compiled on systems that define
70763         XYZ to something else.
70764
70765 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70768         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70769         writeable to group or other and (2) is intended to have a special
70770         mode bit that is set or cleared.  In such a case, the directory
70771         should be neither group- nor other-writeable until the special
70772         mode bits are right.
70773
70774 2007-01-31  Eric Blake  <ebb9@byu.net>
70775
70776         * modules/mountlist (Depends-on): Add strstr.
70777
70778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70779         bug.
70780         * modules/string (Makefile.am): Remove redundant replacement.
70781         * modules/regex (Depends-on): Add mempcpy.
70782
70783 2007-01-31  Bruno Haible  <bruno@clisp.org>
70784
70785         New module description field 'Link'.
70786         * gnulib-tool (func_usage): Document --extract-link-directive.
70787         (sed_extract_prog): Recognize 'Link' directive.
70788         (func_get_link_directive): New function.
70789         (func_import): Show summary of link directives.
70790         Handle --extract-link-directive option.
70791         * modules/acl (Link): New section.
70792         * modules/clock-time (Link): New section.
70793         * modules/euidaccess (Link): New section.
70794         * modules/gettext (Link): New section.
70795         * modules/iconv (Link): New section.
70796         * modules/lock (Link): New section.
70797         * modules/nanosleep (Link): New section.
70798         * modules/readline (Link): New section.
70799
70800 2007-01-27  Bruno Haible  <bruno@clisp.org>
70801
70802         Enforce the use of gnulib modules for unportable <string.h> functions.
70803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70804         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70805         (gl_HEADER_STRING_H_BODY): Require it.
70806         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70807         the symbol XYZ to one that gives a link error.
70808         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70809         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70810         * modules/mempcpy (configure.ac): Likewise.
70811         * modules/memrchr (configure.ac): Likewise.
70812         * modules/stpcpy (configure.ac): Likewise.
70813         * modules/stpncpy (configure.ac): Likewise.
70814         * modules/strcase (configure.ac): Likewise.
70815         * modules/strcasestr (configure.ac): Likewise.
70816         * modules/strchrnul (configure.ac): Likewise.
70817         * modules/strdup (configure.ac): Likewise.
70818         * modules/strndup (configure.ac): Likewise.
70819         * modules/strnlen (configure.ac): Likewise.
70820         * modules/strpbrk (configure.ac): Likewise.
70821         * modules/strsep (configure.ac): Likewise.
70822         * modules/strstr (configure.ac): Likewise.
70823         * modules/strtok_r (configure.ac): Likewise.
70824
70825 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70826
70827         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70828
70829 2007-01-30  Jim Meyering  <jim@meyering.net>
70830
70831         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70832
70833 2007-01-29  Bruno Haible  <bruno@clisp.org>
70834
70835         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70836         * lib/execute.c: Likewise.
70837         * lib/pipe.c: Likewise.
70838         * lib/printf-args.h: Likewise.
70839         * lib/printf-args.c: Likewise.
70840         * lib/printf-parse.c: Likewise.
70841         * lib/vasnprintf.c: Likewise.
70842
70843 2007-01-29  Eric Blake  <ebb9@byu.net>
70844
70845         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70846         declaration.
70847
70848 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         * lib/strptime.h (strptime): Use 'restrict' for args where
70851         POSIX requires this.
70852         * lib/strptime.c (strptime): Likewise.
70853         Change license notice from LGPL to GPL, since gnulib-tool will
70854         change this as needed.
70855         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70856         defined.
70857         Include "strptime.h" first, to check interface.
70858         Do not #undef _LIBC and _NL_CURRENT.
70859         Do not include <stdlib.h>; no longer needed.
70860         Include "time_r.h" and declare ptime_locale_status
70861         only if _LIBC is not defined.
70862         (__P): Remove unused macro.
70863         (match_string): Bring back glibc version, but use it only if _LIBC
70864         is defined.
70865         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70866         Remove unnecessary assertion and abort() call.
70867         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70868         * m4/strptime.m4: Fix serial number comment.
70869         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70870         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70871         (Depends-on): Add time_r.
70872
70873 2007-01-29  Bruno Haible  <bruno@clisp.org>
70874
70875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70876         strptime.
70877         * modules/strptime (Depends-on): Add stdbool.
70878         * lib/strptime.h: Include <time.h> always. Add comments.
70879
70880 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70881
70882         * modules/strptime: New file.
70883         * lib/strptime.h: New file.
70884         * lib/strptime.c: New file.
70885         * m4/strptime.m4: New file.
70886
70887 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70888
70889         * MODULES.html.sh: New module mpsort.
70890         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70891
70892         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70893         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70895         All uses changed.
70896         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70897         All uses changed.
70898         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70899         to _Restrict_.
70900         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70901         the parameter matches the prototype.
70902
70903 2007-01-28  Jim Meyering  <jim@meyering.net>
70904
70905         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70906         sys/time.h here, reverting that part of the previous patch:
70907         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70908
70909 2007-01-28  Bruno Haible  <bruno@clisp.org>
70910
70911         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70912         value of $(SYS_TIME_H).
70913         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70914         remove it conditionally, too. [added by Jim Meyering]
70915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70916         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70917         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70918         GETTIMEOFDAY_REPLACEMENT to 1.
70919
70920 2007-01-28  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70923         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70925         Set UNISTD_H instead of UNISTD_H2.
70926         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70927
70928 2007-01-28  Bruno Haible  <bruno@clisp.org>
70929
70930         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70931         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70932
70933 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70934
70935         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70936         (func_create_testdir): Ensure C locale for `grep' and `tr'
70937         character ranges.
70938         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70939         ACLOCAL_AMFLAGS parsing state machine.
70940
70941 2007-01-27  Bruno Haible  <bruno@clisp.org>
70942
70943         * modules/unistr/base: Update.
70944
70945 2007-01-27  Bruno Haible  <bruno@clisp.org>
70946
70947         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70948         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70949         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70950         modules/unistr/u32-mbtouc.
70951         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70952         * lib/unistr.h: Update.
70953         * lib/linebreak.c: Update.
70954         * modules/unistr/u32-mbtouc: Renamed from
70955         modules/unistr/u32-mbtouc-safe.
70956         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70957         * lib/unistr.h: Update.
70958         * lib/unistr/u32-to-u8.c: Update.
70959         * lib/unistr/u32-to-u16.c: Update.
70960
70961 2007-01-27  Bruno Haible  <bruno@clisp.org>
70962
70963         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70964         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70965         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70966         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70967         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70968         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70969         modules/unistr/u16-mbtouc.
70970         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70971         * lib/unistr.h: Update.
70972         * lib/linebreak.c: Update.
70973         * modules/linebreak: Update.
70974         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70975         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70976         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70977         * modules/unistr/u16-mbtouc: Renamed from
70978         modules/unistr/u16-mbtouc-safe.
70979         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70980         * lib/unistr.h: Update.
70981         * lib/unistr/u16-to-u8.c: Update.
70982         * modules/unistr/u16-to-u8: Update.
70983         * lib/unistr/u16-to-u32.c: Update.
70984         * modules/unistr/u16-to-u32: Update.
70985
70986 2007-01-27  Bruno Haible  <bruno@clisp.org>
70987
70988         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70989         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70990         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70991         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70992         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70993         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70994         modules/unistr/u8-mbtouc.
70995         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70996         * lib/unistr.h: Update.
70997         * lib/striconveh.c: Update.
70998         * modules/striconveh: Update.
70999         * lib/linebreak.c: Update.
71000         * modules/linebreak: Update.
71001         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71002         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71003         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71004         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71005         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71006         * lib/unistr.h: Update.
71007         * lib/striconveh.c: Update.
71008         * modules/striconveh: Update.
71009         * lib/unistr/u8-to-u16.c: Update.
71010         * modules/unistr/u8-to-u16: Update.
71011         * lib/unistr/u8-to-u32.c: Update.
71012         * modules/unistr/u8-to-u32: Update.
71013
71014 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71015
71016         Sync from Libtool.
71017         * lib/argz.c: Do not include strings.h nor memory.h, include
71018         string.h unconditionally.  Patch by Simon Josefsson.
71019
71020 2007-01-27  Bruno Haible  <bruno@clisp.org>
71021
71022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71023         from gl_HEADER_STRING_H_BODY.
71024         (gl_HEADER_STRING_H_BODY): Require it.
71025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71026         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71028         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71030         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71032         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71033         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71034         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71036         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71037         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71038         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71039         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71040
71041 2007-01-27  Bruno Haible  <bruno@clisp.org>
71042
71043         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71044         check_PROGRAMS into noinst_PROGRAMS.
71045         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71046         check_PROGRAMS in this case.
71047         (func_import): Set for_test to false.
71048         (func_create_testdir): Set for_test to true.
71049
71050 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71051             Bruno Haible  <bruno@clisp.org>
71052
71053         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71054         (Depends-on): Add string.
71055         (Includes): Use <string.h> instead of strcasestr.h.
71056         * modules/string (Makefile.am): Also substitute the value of
71057         REPLACE_STRCASESTR.
71058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71059         assume strcasestr is declared in <string.h> not <strings.h>. Also
71060         set REPLACE_STRCASESTR.
71061         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71062         REPLACE_STRCASESTR.
71063         * lib/strcasestr.h: Remove file.
71064         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71065         * lib/string_.h (strcasestr): New declaration.
71066
71067 2007-01-27  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/string_.h: Use 'extern'.
71070
71071 2007-01-27  Jim Meyering  <jim@meyering.net>
71072
71073         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71074         of set-but-not-used local, "q".
71075
71076         * lib/mempcpy.c: Include <config.h> before <string.h>.
71077         This fixes a compilation error on HP-UX, due to the system's
71078         "restrict"-using mempcpy prototype.
71079
71080 2007-01-26  Bruno Haible  <bruno@clisp.org>
71081
71082         Small optimization.
71083         * lib/javacomp.c: Include c-strstr.h.
71084          (is_envjavac_gcj): Use c_strstr instead of strstr.
71085         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71086
71087 2007-01-26  Bruno Haible  <bruno@clisp.org>
71088
71089         * MODULES.html.sh (Unicode string functions): Add the new modules.
71090
71091         * modules/uniconv/u32-strconv-to-locale: New file.
71092         * lib/uniconv/u32-strconv-to-locale.c: New file.
71093
71094         * modules/uniconv/u16-strconv-to-locale: New file.
71095         * lib/uniconv/u16-strconv-to-locale.c: New file.
71096
71097         * modules/uniconv/u8-strconv-to-locale: New file.
71098         * lib/uniconv/u8-strconv-to-locale.c: New file.
71099
71100         * modules/uniconv/u32-strconv-from-locale: New file.
71101         * lib/uniconv/u32-strconv-from-locale.c: New file.
71102
71103         * modules/uniconv/u16-strconv-from-locale: New file.
71104         * lib/uniconv/u16-strconv-from-locale.c: New file.
71105
71106         * modules/uniconv/u8-strconv-from-locale: New file.
71107         * lib/uniconv/u8-strconv-from-locale.c: New file.
71108
71109         * modules/uniconv/u32-strconv-to-enc: New file.
71110         * lib/uniconv/u32-strconv-to-enc.c: New file.
71111         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71112         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71113
71114         * modules/uniconv/u16-strconv-to-enc: New file.
71115         * lib/uniconv/u16-strconv-to-enc.c: New file.
71116         * lib/uniconv/u-strconv-to-enc.h: New file.
71117         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71118         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71119
71120         * modules/uniconv/u8-strconv-to-enc: New file.
71121         * lib/uniconv/u8-strconv-to-enc.c: New file.
71122         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71123         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71124
71125         * modules/uniconv/u32-strconv-from-enc: New file.
71126         * lib/uniconv/u32-strconv-from-enc.c: New file.
71127         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71128         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71129
71130         * modules/uniconv/u16-strconv-from-enc: New file.
71131         * lib/uniconv/u16-strconv-from-enc.c: New file.
71132         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71133         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71134
71135         * modules/uniconv/u8-strconv-from-enc: New file.
71136         * lib/uniconv/u8-strconv-from-enc.c: New file.
71137         * lib/uniconv/u-strconv-from-enc.h: New file.
71138         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71139         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71140
71141         * modules/uniconv/u32-conv-from-enc: New file.
71142         * lib/uniconv/u32-conv-from-enc.c: New file.
71143         * modules/uniconv/u32-conv-from-enc-tests: New file.
71144         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71145
71146         * modules/uniconv/u16-conv-from-enc: New file.
71147         * lib/uniconv/u16-conv-from-enc.c: New file.
71148         * lib/uniconv/u-conv-from-enc.h: New file.
71149         * modules/uniconv/u16-conv-from-enc-tests: New file.
71150         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71151
71152         * modules/uniconv/u8-conv-from-enc: New file.
71153         * lib/uniconv/u8-conv-from-enc.c: New file.
71154         * modules/uniconv/u8-conv-from-enc-tests: New file.
71155         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71156
71157         * modules/uniconv/base: New file.
71158         * lib/uniconv.h: New file.
71159
71160 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * doc/gnulib-tool.texi (Initial import): Update to match current
71163         behavior with strdup module.
71164         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71165         * lib/memmem.h: Remove; all uses removed.  This is now done
71166         by <string.h>.
71167         * lib/mempcpy.h: Likewise.
71168         * lib/memrchr.h: Likewise.
71169         * lib/stpcpy.h: Likewise.
71170         * lib/stpncpy.h: Likewise.
71171         * lib/strcase.h: Likewise.
71172         * lib/strchrnul.h: Likewise.
71173         * lib/strdup.h: Likewise.
71174         * lib/strndup.h: Likewise.
71175         * lib/strnlen.h: Likewise.
71176         * lib/strpbrk.h: Likewise.
71177         * lib/strsep.h: Likewise.
71178         * lib/strstr.h: Likewise.
71179         * lib/strtok_r.h: Likewise.
71180         * lib/string_.h: New file.
71181         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71182         Rely on <string.h> instead.
71183         * lib/canon-host.c: Likewise.
71184         * lib/chdir-long.c: Likewise.
71185         * lib/concatpath.c: Likewise.
71186         * lib/exclude.c: Likewise.
71187         * lib/fchdir.c: Likewise.
71188         * lib/getaddrinfo.c: Likewise.
71189         * lib/getcwd.c: Likewise.
71190         * lib/getsubopt.c: Likewise.
71191         * lib/glob.c: Likewise.
71192         * lib/hard-locale.c: Likewise.
71193         * lib/iconvme.c: Likewise.
71194         * lib/javacomp.c: Likewise.
71195         * lib/mempcpy.c: Likewise.
71196         * lib/memrchr.c: Likewise.
71197         * lib/regex_internal.h: Likewise.
71198         * lib/stpncpy.c: Likewise.
71199         * lib/strcasecmp.c: Likewise.
71200         * lib/strchrnul.c: Likewise.
71201         * lib/strdup.c: Likewise.
71202         * lib/striconv.c: Likewise.
71203         * lib/striconveh.c: Likewise.
71204         * lib/striconveha.c: Likewise.
71205         * lib/strncasecmp.c: Likewise.
71206         * lib/strndup.c: Likewise.
71207         * lib/strnlen.c: Likewise.
71208         * lib/strsep.c: Likewise.
71209         * lib/strstr.c: Likewise.
71210         * lib/strtok_r.c: Likewise.
71211         * lib/userspec.c: Likewise.
71212         * lib/w32spawn.h: Likewise.
71213         * lib/xstrndup.c: Likewise.
71214         * lib/mountlist.c (strstr): Remove decl.
71215         * m4/string_h.m4: New file.
71216         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71217         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71218         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71219         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71220         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71221         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71222         Set REPLACE_STRCASECMP if necessary.
71223         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71224         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71225         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71227         HAVE_DECL_STRDUP if necessary.
71228         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71229         since gl_FUNC_STRNDUP does that now.
71230         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71231         Check for decl here...
71232         (gl_PREREQ_STRNLEN): ... not here.
71233         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71234         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71235         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71236         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71237         necessary.
71238         * modules/string: New file.
71239         * modules/memmem (Files): Remove special-purpose include file.
71240         (Depends-on): Add string.
71241         (Include): Include <string.h>, not the removed file.
71242         * modules/mempcpy: Likewise.
71243         * modules/memrchr: Likewise.
71244         * modules/stpcpy: Likewise.
71245         * modules/stpncpy: Likewise.
71246         * modules/strcase: Likewise.
71247         * modules/strchrnul: Likewise.
71248         * modules/strdup: Likewise.
71249         * modules/strndup: Likewise.
71250         * modules/strnlen: Likewise.
71251         * modules/strpbrk: Likewise.
71252         * modules/strsep: Likewise.
71253         * modules/strstr: Likewise.
71254         * modules/strtok_r: Likewise.
71255         * tests/test-dirname.c: Don't include "strdup.h", since
71256         <string.h> now suffices.
71257         * tests/test-memmem.c: Don't include "memmem.h", since
71258         <string.h> now suffices.
71259
71260 2007-01-25  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71263         *resultp is 0.
71264
71265         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71266         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71267         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71268         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71269
71270         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71271         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71272         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71273         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71274         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71275         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71276
71277 2007-01-24  Bruno Haible  <bruno@clisp.org>
71278
71279         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71280         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71281         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71282         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71283         gl_FUNC_FTS_CORE.
71284         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71285         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71286         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71287         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71288         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71289         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71290         gl_FUNC_FCHOWNAT.
71291         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71292         gl_FUNC_STRFTIME.
71293         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71294         Reported by Ralf Wildenhues.
71295
71296 2007-01-24  Bruno Haible  <bruno@clisp.org>
71297
71298         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71299         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71300         gl_GETADDRINFO.
71301         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71302         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71303         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71304
71305 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71308         Don't use 'exit'; just return from 'main'.
71309         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71310
71311         * lib/fnmatch_.h: Readjust white space and comments to match
71312         glibc, to avoid spurious diffs.
71313
71314 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71315
71316         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71317         2004-12-01 change by Jakub Jelinek, since this code won't compile
71318         if !LIBC.  Problem reported by Bob Proulx.
71319
71320 2007-01-23  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/striconveh.c: Include c-strcaseeq.h.
71323         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71324         * modules/striconveh (Depends-on): Add c-strcaseeq.
71325
71326 2007-01-23  Bruno Haible  <bruno@clisp.org>
71327
71328         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71329
71330         * modules/c-strcaseeq: New file.
71331         * lib/c-strcaseeq.h: New file.
71332
71333         * modules/streq: New file.
71334         * lib/streq.h: New file.
71335
71336 2007-01-23  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/striconveha-tests: New file.
71339         * tests/test-striconveha.c: New file.
71340
71341         * lib/striconveha.h: Include <stdbool.h>.
71342         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71343         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71344         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71345         (mem_iconveha): New function.
71346         (str_iconveha_notranslit): Renamed from str_iconveha.
71347         (str_iconveha): New function.
71348         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71349         c-strcase.
71350
71351 2007-01-23  Bruno Haible  <bruno@clisp.org>
71352
71353         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71354         encodings without forgiving before trying any encoding with handler.
71355         (str_iconveha): Try all encodings without forgiving before trying any
71356         encoding with handler.
71357
71358 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71359
71360         Import the following changes from libc.
71361
71362         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71363
71364         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71365
71366         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71367
71368         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71369         normal_bracket label.
71370
71371         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71372
71373         [BZ #361]
71374         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71375         to normal_bracket after fetching the next character.
71376
71377 2007-01-22  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71380         argument.
71381         * lib/striconveh.c (iconv_carefully_1): New function.
71382         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71383         argument.
71384         (str_cd_iconveh): Update.
71385         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71386         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71387         * tests/test-striconveh.c (MAGIC): New macro.
71388         (new_offsets): New function.
71389         (main): Test call with and without offsets.
71390
71391 2007-01-22  Bruno Haible  <bruno@clisp.org>
71392
71393         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71394         * modules/sys_select (Makefile.am): Likewise.
71395         * modules/sys_socket (Makefile.am): Likewise.
71396         * modules/sys_time (Makefile.am): Likewise.
71397
71398 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * modules/gettimeofday (License): Change from GPL to LGPL, since
71401         gettimeofday is a library function.
71402
71403 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71404
71405         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71406
71407 2007-01-21  Bruno Haible  <bruno@clisp.org>
71408
71409         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71410
71411 2007-01-21  Bruno Haible  <bruno@clisp.org>
71412
71413         * modules/striconveha: New file.
71414         * lib/striconveha.h: New file.
71415         * lib/striconveha.c: New file.
71416         * MODULES.html.sh (Internationalization functions): Add striconveha.
71417         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71418         string.
71419         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71420
71421 2007-01-21  Bruno Haible  <bruno@clisp.org>
71422
71423         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71424         * lib/striconveh.c (str_iconveh): Likewise.
71425
71426 2007-01-21  Bruno Haible  <bruno@clisp.org>
71427
71428         * lib/striconveh.h (mem_iconveh): New declaration.
71429         * lib/striconveh.c (mem_iconveh): New function.
71430         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71431
71432 2007-01-21  Bruno Haible  <bruno@clisp.org>
71433
71434         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71435
71436         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71437         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71438         original result buffer.
71439         (str_cd_iconveh): Update.
71440         * tests/test-striconveh.c (main): Update.
71441
71442         * lib/striconv.h (mem_cd_iconv): Change specification.
71443         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71444         result buffer.
71445         (str_cd_iconv): Update.
71446         * tests/test-striconv.c (main): Update.
71447
71448 2007-01-21  Bruno Haible  <bruno@clisp.org>
71449
71450         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71451
71452 2007-01-20  Jim Meyering  <jim@meyering.net>
71453
71454         * lib/userspec.c (parse_with_separator): If a user or group string
71455         starts with "+", skip the corresponding name-to-ID look-up, since
71456         such a look-up must fail: user and group names may not include "+".
71457
71458 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71459
71460         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71461         since we now assume the sys_time module.
71462         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71463         check for sys/time.h; no longer needed.
71464         * modules/poll (Depends-on): Depend on sys_time.
71465
71466 2007-01-18  Bruno Haible  <bruno@clisp.org>
71467
71468         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71470
71471         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71472         gettimeofday.
71473
71474         * tests/test-gettimeofday.c: Include <time.h>.
71475         (dummy): Remove variable.
71476
71477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71478         gl_HEADER_SYS_TIME_H.
71479         (gl_HEADER_SYS_TIME_H): New macro.
71480
71481         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71482         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71484         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71485         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71486         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71487         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71488         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71489         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71490         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71491         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71492
71493         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71494         last change; it caused a compilation error when cross-compiling to
71495         Cygwin.
71496
71497 2007-01-18  Jim Meyering  <jim@meyering.net>
71498
71499         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71500         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71501         than the race-prone "test -d sys || mkdir sys".
71502         (configure.ac): Use AC_PROG_MKDIR_P.
71503         * modules/sys_select: Likewise.
71504         * modules/sys_socket: Likewise.
71505         * modules/sys_time: Likewise.
71506
71507 2007-01-18  Eric Blake  <ebb9@byu.net>
71508
71509         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71510         replace gettimeofday.
71511         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71512         name, to avoid infinite recursion.
71513
71514 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71517         module sys_time.
71518         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71519         assume timespec.h defines struct timeval.
71520         * lib/settime.c: Likewise.
71521         * lib/utimens.c: Likewise.
71522         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71523         since we now assume the gettimeofday module.
71524         * lib/tempname.c (__gen_tempname): Likewise.
71525         * lib/gettimeofday.h: Remove.
71526         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71527         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71528         Include <time.h>, for 'time()'.
71529         (localtime_buffer_addr): Also use this workaround if
71530         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71531         to simplify the uses.  All uses changed.
71532         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71533         that #undef is inside {}, and 'const' follows type name consistently.
71534         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71535         (gettimeofday): Do not use the maximum possible value for
71536         tv->tv_usec, since that might break usages other than ls.c.
71537         Instead, we'll leave ls.c alone.  This undoes today's patch
71538         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71539         we've never observed the problem but might as well keep the
71540         canary.
71541         * lib/nanosleep.c: Include timespec.h first, for interface check.
71542         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71543         now assume the sys_time module.
71544         * lib/tempname.c: Likewise.
71545         * lib/timespec.h: Likewise.
71546         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71547         needed.
71548         * lib/strftime.c: Likewise.
71549         * lib/timespec.h: Likewise.
71550         * lib/posixtm.c: Include posixtm.h first, for interface check.
71551         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71552         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71553         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71554         * lib/sys_time_.h: New file.
71555         * lib/timespec.h (struct timespec): Use long int, not long.
71556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71557         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71558         Remove obsolescent call to AC_HEADER_TIME.
71559         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71561         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71562         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71563         Likewise.
71564         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71565         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71566         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71567         into the sys_time module.  Check for gettimeofday just once.
71568         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71569         for gettimeofday signature to just check the signature.  Merely
71570         compile it, since linking doesn't test signature.  Improve test for
71571         whether gettimeofday.o is actually needed.
71572         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71573         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71574         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71575         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71576         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71577         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71578         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71579         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71580         than worrying about sys/time.h.
71581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71582         Don't bother worrying about TIME_WITH_SYS_TIME.
71583         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71584         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71585         * m4/sys_time_h.m4: New file.
71586         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71587         Don't include sys/time.h.  Return from main rather than exiting.
71588         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71589         all uses changed.
71590         * modules/gethrxtime (Depends-on): Add sys_time.
71591         * modules/gettime (Depends-on): Likewise.
71592         * modules/gettimeofday (Depends-on): Likewise.
71593         * modules/nanosleep (Depends-on): Likewise.
71594         * modules/settime (Depends-on): Likewise.
71595         * modules/tempname (Depends-on): Likewise.
71596         * modules/utimens (Depends-on): Likewise.
71597         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71598         (Include): Change back to <sys/time.h>.
71599         (Maintainer): Add self.
71600         * modules/sys_time: New file.
71601         * modules/tempname (Depends-on): Add gettimeofday.
71602         * tests/test-gettimeofday.c: Include <sys/time.h>
71603         rather than gettimeofday.h.
71604
71605 2007-01-17  Bruno Haible  <bruno@clisp.org>
71606
71607         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71608         the license default to GPL.
71609         (func_create_testdir): Don't complain if a module is LGPL and its
71610         tests module depends on GPLed modules.
71611
71612 2007-01-17  Bruno Haible  <bruno@clisp.org>
71613
71614         * lib/gettimeofday.c (gettimeofday): Add code for the case
71615         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71616         maximum possible value for tv->tv_usec, rather than the minimum one.
71617
71618 2005-10-08  Martin Lambers  <marlam@marlam.de>
71619 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71620 2007-01-16  Bruno Haible  <bruno@clisp.org>
71621
71622         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71623         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71624         gl_FUNC_GETTIMEOFDAY.
71625         (Include): Add gettimeofday.h.
71626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71627         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71628         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71629         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71630         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71631         * lib/gettimeofday.h: New file.
71632         * lib/gettimeofday.c: Include <sys/timeb.h>.
71633         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71634         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71635         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71636         fall back on time().
71637
71638         * tests/test-gettimeofday.c: New file.
71639         * modules/gettimeofday-tests: New file.
71640
71641 2007-01-16  Eric Blake  <ebb9@byu.net>
71642
71643         * modules/fnmatch (Depends-on): Depend on wchar.
71644         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71645         * m4/fnmatch.m4: Likewise.
71646         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71647         * m4/mbchar.m4: Likewise.
71648         * modules/mbswidth (Depends-on): Depend on wchar.
71649         * lib/mbswidth.c: Assume <wchar.h>.
71650         * m4/mbswidth.m4: Likewise.
71651         * modules/quotearg (Depends-on): Depend on wchar.
71652         * lib/quotearg.c: Assume <wchar.h>.
71653         * m4/quotearg.m4: Likewise.
71654         * modules/regex (Depends-on): Depend on wchar.
71655         * lib/regex_internal.h: Assume <wchar.h>.
71656         * m4/regex.m4: Likewise.
71657         * modules/stdint (Depends-on): Depend on wchar.
71658         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71659         * m4/stdint.m4: Likewise.
71660         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71661         * modules/strftime (Depends-on): Depend on wchar.
71662         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71663         * modules/strtol (Depends-on): Depend on wchar.
71664         * lib/strtol.c: Assume <wchar.h>.
71665         * modules/wcwidth (Depends-on): Depend on wchar.
71666         * lib/wcwidth.h: Assume <wchar.h>.
71667         * m4/wcwidth.m4: Likewise.
71668
71669 2007-01-16  Bruno Haible  <bruno@clisp.org>
71670
71671         * modules/csharpexec-script: New, created from...
71672         * modules/csharpexec: ... this.
71673
71674 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71675
71676         * modules/javaexec-script: New, created from...
71677         * modules/javaexec: ... this.
71678
71679 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71680
71681         * modules/poll (Dependencies): Add sys_select.
71682
71683 2007-01-15  Jim Meyering  <jim@meyering.net>
71684
71685         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71686         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71687         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71688         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71689
71690 2007-01-15  Bruno Haible  <bruno@clisp.org>
71691
71692         * modules/striconveh: New file.
71693         * lib/striconveh.h: New file.
71694         * lib/striconveh.c: New file.
71695         * MODULES.html.sh (Internationalization functions): Add striconveh.
71696
71697         * modules/striconveh-tests: New file.
71698         * tests/test-striconveh.c: New file.
71699
71700 2007-01-15  Bruno Haible  <bruno@clisp.org>
71701
71702         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71703         not from GNU libiconv or GNU libc.
71704
71705 2007-01-15  Bruno Haible  <bruno@clisp.org>
71706
71707         * doc/gnulib-intro.texi (Copyright): Explain the different license
71708         terms for module descriptions, autoconf macros, tests, documentation.
71709
71710 2007-01-14  Bruno Haible  <bruno@clisp.org>
71711
71712         * modules/striconv-tests: New file.
71713         * tests/test-striconv.c: New file.
71714
71715 2007-01-14  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/iconv-tests: New file.
71718         * tests/test-iconv.c: New file.
71719
71720 2007-01-14  Bruno Haible  <bruno@clisp.org>
71721
71722         * gnulib-tool (func_get_license): For test modules, use the license of
71723         the main module.
71724
71725 2007-01-14  Bruno Haible  <bruno@clisp.org>
71726
71727         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71728         if iconv is found to exist.
71729
71730 2007-01-14  Bruno Haible  <bruno@clisp.org>
71731
71732         * modules/c-ctype-tests: New file.
71733         * tests/test-c-ctype.c: New file.
71734
71735 2007-01-14  Bruno Haible  <bruno@clisp.org>
71736
71737         * modules/binary-io-tests: New file.
71738         * tests/test-binary-io.sh: New file.
71739         * tests/test-binary-io.c: New file.
71740
71741 2007-01-14  Bruno Haible  <bruno@clisp.org>
71742
71743         * modules/array-oset-tests: New file.
71744         * tests/test-array_oset.c: New file.
71745
71746 2007-01-14  Bruno Haible  <bruno@clisp.org>
71747
71748         * modules/array-list-tests: New file.
71749         * tests/test-array_list.c: New file.
71750
71751 2007-01-14  Bruno Haible  <bruno@clisp.org>
71752
71753         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71754         and make.
71755         Reported by Simon Josefsson in
71756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71757
71758 2007-01-14  Bruno Haible  <bruno@clisp.org>
71759
71760         * modules/allocsa-tests: New file.
71761         * tests/test-allocsa.c: New file.
71762
71763 2007-01-14  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/fchdir (Depends-on): Add absolute-header.
71766         * modules/unistd (Depends-on): Likewise.
71767
71768 2006-12-30  Bruno Haible  <bruno@clisp.org>
71769
71770         * modules/fchdir: New file.
71771         * modules/unistd (Files): Add lib/unistd_.h.
71772         (Makefile.am): Generate unistd.h from unistd_.h.
71773         * lib/fchdir.c: New file.
71774         * lib/dirent_.h: New file.
71775         * lib/unistd_.h: New file.
71776         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71777         * m4/fchdir.m4: New file.
71778         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71779         (gl_HEADER_UNISTD): Invoke it.
71780         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71781         function.
71782         * lib/backupfile.c (opendir, closedir): Undefine.
71783         * lib/chown.c (open, close): Undefine.
71784         * lib/clean-temp.c (open, close): Undefine.
71785         * lib/copy-file.c (open, close): Undefine.
71786         * lib/execute.c (open, close): Undefine.
71787         * lib/fsusage.c (open, close): Undefine.
71788         * lib/gc-gnulib.c (open, close): Undefine.
71789         * lib/getcwd.c (opendir, closedir): Undefine.
71790         * lib/glob.c (opendir, closedir): Undefine.
71791         * lib/javacomp.c (open, close): Undefine.
71792         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71793         * lib/openat-proc.c (open, close): Undefine.
71794         * lib/pagealign_alloc.c (open, close): Undefine.
71795         * lib/pipe.c (open, close): Undefine.
71796         * lib/progreloc.c (open, close): Undefine.
71797         * lib/savedir.c (opendir, closedir): Undefine.
71798         * lib/utime.c (open, close): Undefine.
71799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71800
71801 2007-01-10  Bruno Haible  <bruno@clisp.org>
71802
71803         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71804
71805 2007-01-12  Eric Blake  <ebb9@byu.net>
71806
71807         Provide a robust <wchar.h>.  Further simplifications are now
71808         possible in other modules, but not included here.
71809         * modules/wchar: New module.
71810         * m4/wchar.m4: New file.
71811         * lib/wchar_.h: Likewise.
71812         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71813         of the new module.
71814         * MODULES.html.sh (Extended multibyte and wide character utilities):
71815         New section.
71816
71817 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71820         to a reasonable default for memory allocation.
71821         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71822         file system that reports garbage st_size values for symlinks.
71823         Problem reported by Liyang Hu.
71824
71825 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71826
71827         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71828         Emacs .#* auto-save files).
71829
71830 2007-01-11  Bruno Haible  <bruno@clisp.org>
71831
71832         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71833         directory.
71834
71835 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71836
71837         Use @...@ consistently in lib/wctype_.h.
71838         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71839         on it being set to 1 or 0.
71840         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71841         go back to AC_SUBSTing it.
71842         * modules/wctype (Makefile.am): Undo previous change.
71843
71844 2007-01-10  Eric Blake  <ebb9@byu.net>
71845
71846         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71847         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71848         * modules/wctype (Makefile.am): Likewise.
71849         Reported by Chris McGuire.
71850
71851 2007-01-10  Jim Meyering  <jim@meyering.net>
71852
71853         fts.c: a small readability/maintainability improvement
71854         * lib/fts.c (fts_read): Make this code slightly more readable and
71855         maintainable by hoisting the "sp->fts_cur = p" assignments to
71856         immediately follow the statements that set P.  Derived from
71857         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71858
71859 2007-01-10  Eric Blake  <ebb9@byu.net>
71860
71861         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71862         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71864         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71865         Reported by Chris McGuire.
71866
71867 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71868
71869         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71870         in sed script.
71871
71872 2007-01-09  Bruno Haible  <bruno@clisp.org>
71873
71874         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71875         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71876         variables.
71877         (func_module): Use them.
71878
71879 2007-01-09  Bruno Haible  <bruno@clisp.org>
71880
71881         * modules/unistr/base: New file.
71882         * lib/unistr.h: New file.
71883
71884         * modules/unistr/u8-to-u16: New file.
71885         * lib/unistr/u8-to-u16.c: New file.
71886
71887         * modules/unistr/u8-to-u32: New file.
71888         * lib/unistr/u8-to-u32.c: New file.
71889
71890         * modules/unistr/u16-to-u8: New file.
71891         * lib/unistr/u16-to-u8.c: New file.
71892
71893         * modules/unistr/u16-to-u32: New file.
71894         * lib/unistr/u16-to-u32.c: New file.
71895
71896         * modules/unistr/u32-to-u8: New file.
71897         * lib/unistr/u32-to-u8.c: New file.
71898
71899         * modules/unistr/u32-to-u16: New file.
71900         * lib/unistr/u32-to-u16.c: New file.
71901
71902         * modules/unistr/u8-check: New file.
71903         * modules/unistr/u16-check: New file.
71904         * modules/unistr/u32-check: New file.
71905         * lib/unistr/u8-check.c: New file.
71906         * lib/unistr/u16-check.c: New file.
71907         * lib/unistr/u32-check.c: New file.
71908
71909         * modules/unistr/u8-chr: New file.
71910         * modules/unistr/u16-chr: New file.
71911         * modules/unistr/u32-chr: New file.
71912         * lib/unistr/u8-chr.c: New file.
71913         * lib/unistr/u16-chr.c: New file.
71914         * lib/unistr/u32-chr.c: New file.
71915
71916         * modules/unistr/u8-cmp: New file.
71917         * modules/unistr/u16-cmp: New file.
71918         * modules/unistr/u32-cmp: New file.
71919         * lib/unistr/u8-cmp.c: New file.
71920         * lib/unistr/u16-cmp.c: New file.
71921         * lib/unistr/u32-cmp.c: New file.
71922
71923         * modules/unistr/u8-cpy: New file.
71924         * modules/unistr/u16-cpy: New file.
71925         * modules/unistr/u32-cpy: New file.
71926         * lib/unistr/u8-cpy.c: New file.
71927         * lib/unistr/u16-cpy.c: New file.
71928         * lib/unistr/u32-cpy.c: New file.
71929         * lib/unistr/u-cpy.h: New file.
71930
71931         * modules/unistr/u8-cpy-alloc: New file.
71932         * modules/unistr/u16-cpy-alloc: New file.
71933         * modules/unistr/u32-cpy-alloc: New file.
71934         * lib/unistr/u8-cpy-alloc.c: New file.
71935         * lib/unistr/u16-cpy-alloc.c: New file.
71936         * lib/unistr/u32-cpy-alloc.c: New file.
71937         * lib/unistr/u-cpy-alloc.h: New file.
71938
71939         * modules/unistr/u8-endswith: New file.
71940         * modules/unistr/u16-endswith: New file.
71941         * modules/unistr/u32-endswith: New file.
71942         * lib/unistr/u8-endswith.c: New file.
71943         * lib/unistr/u16-endswith.c: New file.
71944         * lib/unistr/u32-endswith.c: New file.
71945         * lib/unistr/u-endswith.h: New file.
71946
71947         * modules/unistr/u8-mblen: New file.
71948         * modules/unistr/u16-mblen: New file.
71949         * modules/unistr/u32-mblen: New file.
71950         * lib/unistr/u8-mblen.c: New file.
71951         * lib/unistr/u16-mblen.c: New file.
71952         * lib/unistr/u32-mblen.c: New file.
71953
71954         * modules/unistr/u8-mbtouc: New file.
71955         * modules/unistr/u16-mbtouc: New file.
71956         * modules/unistr/u32-mbtouc: New file.
71957         * lib/unistr/u8-mbtouc.c: New file.
71958         * lib/unistr/u16-mbtouc.c: New file.
71959         * lib/unistr/u32-mbtouc.c: New file.
71960
71961         * modules/unistr/u8-mbtouc-safe: New file.
71962         * modules/unistr/u16-mbtouc-safe: New file.
71963         * modules/unistr/u32-mbtouc-safe: New file.
71964         * lib/unistr/u8-mbtouc-safe.c: New file.
71965         * lib/unistr/u16-mbtouc-safe.c: New file.
71966         * lib/unistr/u32-mbtouc-safe.c: New file.
71967
71968         * modules/unistr/u8-move: New file.
71969         * modules/unistr/u16-move: New file.
71970         * modules/unistr/u32-move: New file.
71971         * lib/unistr/u8-move.c: New file.
71972         * lib/unistr/u16-move.c: New file.
71973         * lib/unistr/u32-move.c: New file.
71974         * lib/unistr/u-move.h: New file.
71975
71976         * modules/unistr/u8-next: New file.
71977         * modules/unistr/u16-next: New file.
71978         * modules/unistr/u32-next: New file.
71979         * lib/unistr/u8-next.c: New file.
71980         * lib/unistr/u16-next.c: New file.
71981         * lib/unistr/u32-next.c: New file.
71982
71983         * modules/unistr/u8-prev: New file.
71984         * modules/unistr/u16-prev: New file.
71985         * modules/unistr/u32-prev: New file.
71986         * lib/unistr/u8-prev.c: New file.
71987         * lib/unistr/u16-prev.c: New file.
71988         * lib/unistr/u32-prev.c: New file.
71989
71990         * modules/unistr/u8-set: New file.
71991         * modules/unistr/u16-set: New file.
71992         * modules/unistr/u32-set: New file.
71993         * lib/unistr/u8-set.c: New file.
71994         * lib/unistr/u16-set.c: New file.
71995         * lib/unistr/u32-set.c: New file.
71996         * lib/unistr/u-set.h: New file.
71997
71998         * modules/unistr/u8-startswith: New file.
71999         * modules/unistr/u16-startswith: New file.
72000         * modules/unistr/u32-startswith: New file.
72001         * lib/unistr/u8-startswith.c: New file.
72002         * lib/unistr/u16-startswith.c: New file.
72003         * lib/unistr/u32-startswith.c: New file.
72004         * lib/unistr/u-startswith.h: New file.
72005
72006         * modules/unistr/u8-stpcpy: New file.
72007         * modules/unistr/u16-stpcpy: New file.
72008         * modules/unistr/u32-stpcpy: New file.
72009         * lib/unistr/u8-stpcpy.c: New file.
72010         * lib/unistr/u16-stpcpy.c: New file.
72011         * lib/unistr/u32-stpcpy.c: New file.
72012         * lib/unistr/u-stpcpy.h: New file.
72013
72014         * modules/unistr/u8-stpncpy: New file.
72015         * modules/unistr/u16-stpncpy: New file.
72016         * modules/unistr/u32-stpncpy: New file.
72017         * lib/unistr/u8-stpncpy.c: New file.
72018         * lib/unistr/u16-stpncpy.c: New file.
72019         * lib/unistr/u32-stpncpy.c: New file.
72020         * lib/unistr/u-stpncpy.h: New file.
72021
72022         * modules/unistr/u8-strcat: New file.
72023         * modules/unistr/u16-strcat: New file.
72024         * modules/unistr/u32-strcat: New file.
72025         * lib/unistr/u8-strcat.c: New file.
72026         * lib/unistr/u16-strcat.c: New file.
72027         * lib/unistr/u32-strcat.c: New file.
72028         * lib/unistr/u-strcat.h: New file.
72029
72030         * modules/unistr/u8-strchr: New file.
72031         * modules/unistr/u16-strchr: New file.
72032         * modules/unistr/u32-strchr: New file.
72033         * lib/unistr/u8-strchr.c: New file.
72034         * lib/unistr/u16-strchr.c: New file.
72035         * lib/unistr/u32-strchr.c: New file.
72036
72037         * modules/unistr/u8-strcmp: New file.
72038         * modules/unistr/u16-strcmp: New file.
72039         * modules/unistr/u32-strcmp: New file.
72040         * lib/unistr/u8-strcmp.c: New file.
72041         * lib/unistr/u16-strcmp.c: New file.
72042         * lib/unistr/u32-strcmp.c: New file.
72043
72044         * modules/unistr/u8-strcpy: New file.
72045         * modules/unistr/u16-strcpy: New file.
72046         * modules/unistr/u32-strcpy: New file.
72047         * lib/unistr/u8-strcpy.c: New file.
72048         * lib/unistr/u16-strcpy.c: New file.
72049         * lib/unistr/u32-strcpy.c: New file.
72050         * lib/unistr/u-strcpy.h: New file.
72051
72052         * modules/unistr/u8-strcspn: New file.
72053         * modules/unistr/u16-strcspn: New file.
72054         * modules/unistr/u32-strcspn: New file.
72055         * lib/unistr/u8-strcspn.c: New file.
72056         * lib/unistr/u16-strcspn.c: New file.
72057         * lib/unistr/u32-strcspn.c: New file.
72058         * lib/unistr/u-strcspn.h: New file.
72059
72060         * modules/unistr/u8-strdup: New file.
72061         * modules/unistr/u16-strdup: New file.
72062         * modules/unistr/u32-strdup: New file.
72063         * lib/unistr/u8-strdup.c: New file.
72064         * lib/unistr/u16-strdup.c: New file.
72065         * lib/unistr/u32-strdup.c: New file.
72066         * lib/unistr/u-strdup.h: New file.
72067
72068         * modules/unistr/u8-strlen: New file.
72069         * modules/unistr/u16-strlen: New file.
72070         * modules/unistr/u32-strlen: New file.
72071         * lib/unistr/u8-strlen.c: New file.
72072         * lib/unistr/u16-strlen.c: New file.
72073         * lib/unistr/u32-strlen.c: New file.
72074         * lib/unistr/u-strlen.h: New file.
72075
72076         * modules/unistr/u8-strmblen: New file.
72077         * modules/unistr/u16-strmblen: New file.
72078         * modules/unistr/u32-strmblen: New file.
72079         * lib/unistr/u8-strmblen.c: New file.
72080         * lib/unistr/u16-strmblen.c: New file.
72081         * lib/unistr/u32-strmblen.c: New file.
72082
72083         * modules/unistr/u8-strmbtouc: New file.
72084         * modules/unistr/u16-strmbtouc: New file.
72085         * modules/unistr/u32-strmbtouc: New file.
72086         * lib/unistr/u8-strmbtouc.c: New file.
72087         * lib/unistr/u16-strmbtouc.c: New file.
72088         * lib/unistr/u32-strmbtouc.c: New file.
72089
72090         * modules/unistr/u8-strncat: New file.
72091         * modules/unistr/u16-strncat: New file.
72092         * modules/unistr/u32-strncat: New file.
72093         * lib/unistr/u8-strncat.c: New file.
72094         * lib/unistr/u16-strncat.c: New file.
72095         * lib/unistr/u32-strncat.c: New file.
72096         * lib/unistr/u-strncat.h: New file.
72097
72098         * modules/unistr/u8-strncmp: New file.
72099         * modules/unistr/u16-strncmp: New file.
72100         * modules/unistr/u32-strncmp: New file.
72101         * lib/unistr/u8-strncmp.c: New file.
72102         * lib/unistr/u16-strncmp.c: New file.
72103         * lib/unistr/u32-strncmp.c: New file.
72104
72105         * modules/unistr/u8-strncpy: New file.
72106         * modules/unistr/u16-strncpy: New file.
72107         * modules/unistr/u32-strncpy: New file.
72108         * lib/unistr/u8-strncpy.c: New file.
72109         * lib/unistr/u16-strncpy.c: New file.
72110         * lib/unistr/u32-strncpy.c: New file.
72111         * lib/unistr/u-strncpy.h: New file.
72112
72113         * modules/unistr/u8-strnlen: New file.
72114         * modules/unistr/u16-strnlen: New file.
72115         * modules/unistr/u32-strnlen: New file.
72116         * lib/unistr/u8-strnlen.c: New file.
72117         * lib/unistr/u16-strnlen.c: New file.
72118         * lib/unistr/u32-strnlen.c: New file.
72119         * lib/unistr/u-strnlen.h: New file.
72120
72121         * modules/unistr/u8-strpbrk: New file.
72122         * modules/unistr/u16-strpbrk: New file.
72123         * modules/unistr/u32-strpbrk: New file.
72124         * lib/unistr/u8-strpbrk.c: New file.
72125         * lib/unistr/u16-strpbrk.c: New file.
72126         * lib/unistr/u32-strpbrk.c: New file.
72127         * lib/unistr/u-strpbrk.h: New file.
72128
72129         * modules/unistr/u8-strrchr: New file.
72130         * modules/unistr/u16-strrchr: New file.
72131         * modules/unistr/u32-strrchr: New file.
72132         * lib/unistr/u8-strrchr.c: New file.
72133         * lib/unistr/u16-strrchr.c: New file.
72134         * lib/unistr/u32-strrchr.c: New file.
72135
72136         * modules/unistr/u8-strspn: New file.
72137         * modules/unistr/u16-strspn: New file.
72138         * modules/unistr/u32-strspn: New file.
72139         * lib/unistr/u8-strspn.c: New file.
72140         * lib/unistr/u16-strspn.c: New file.
72141         * lib/unistr/u32-strspn.c: New file.
72142         * lib/unistr/u-strspn.h: New file.
72143
72144         * modules/unistr/u8-strstr: New file.
72145         * modules/unistr/u16-strstr: New file.
72146         * modules/unistr/u32-strstr: New file.
72147         * lib/unistr/u8-strstr.c: New file.
72148         * lib/unistr/u16-strstr.c: New file.
72149         * lib/unistr/u32-strstr.c: New file.
72150         * lib/unistr/u-strstr.h: New file.
72151
72152         * modules/unistr/u8-strtok: New file.
72153         * modules/unistr/u16-strtok: New file.
72154         * modules/unistr/u32-strtok: New file.
72155         * lib/unistr/u8-strtok.c: New file.
72156         * lib/unistr/u16-strtok.c: New file.
72157         * lib/unistr/u32-strtok.c: New file.
72158         * lib/unistr/u-strtok.h: New file.
72159
72160         * modules/unistr/u8-uctomb: New file.
72161         * modules/unistr/u16-uctomb: New file.
72162         * modules/unistr/u32-uctomb: New file.
72163         * lib/unistr/u8-uctomb.c: New file.
72164         * lib/unistr/u16-uctomb.c: New file.
72165         * lib/unistr/u32-uctomb.c: New file.
72166
72167         * MODULES.html.sh (Unicode string functions): Add the new modules.
72168
72169 2007-01-08  Bruno Haible  <bruno@clisp.org>
72170
72171         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72172         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72173         subdirectories.
72174
72175 2007-01-08  Karl Berry  <karl@gnu.org>
72176
72177         * doc/error.texi: mention that main() fns must set program_name
72178         when progname is used.
72179
72180 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72181
72182         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72183         WCTYPE_H is empty, for the benefit of builds from non-distclean
72184         directories.  Problem reported by Eric Blake in
72185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72186
72187 2007-01-08  Bruno Haible  <bruno@clisp.org>
72188
72189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72190         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72191         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72192         PROVIDE_CANONICALIZE_FILENAME_MODE.
72193         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72194
72195 2007-01-08  Bruno Haible  <bruno@clisp.org>
72196
72197         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72198         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72199         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72200         * lib/fts.c: Likewise.
72201         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72202
72203 2006-12-25  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/utf8-ucs4-safe: New file.
72206         * lib/utf8-ucs4-safe.h: New file.
72207         * lib/unistr/utf8-ucs4-safe.c: New file.
72208
72209         * modules/utf16-ucs4-safe: New file.
72210         * lib/utf16-ucs4-safe.h: New file.
72211         * lib/unistr/utf16-ucs4-safe.c: New file.
72212
72213         * MODULES.html.sh (Unicode string functions): Add the new modules.
72214
72215 2007-01-08  Bruno Haible  <bruno@clisp.org>
72216
72217         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72218         (Depends-on): Add unitypes.
72219         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72220         (u8_mbtouc_aux): Move out to separate file.
72221         (u8_mbtouc): Use ucs4_t, uint8_t types.
72222         * lib/unistr/utf8-ucs4.c: New file.
72223
72224         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72225         (Depends-on): Add unitypes.
72226         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72227         (u16_mbtouc_aux): Move out to separate file.
72228         (u16_mbtouc): Use ucs4_t, uint16_t types.
72229         * lib/unistr/utf16-ucs4.c: New file.
72230
72231         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72232         (Depends-on): Add unitypes.
72233         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72234         (u8_uctomb_aux): Move out to separate file.
72235         (u8_uctomb): Use ucs4_t, uint8_t types.
72236         * lib/unistr/ucs4-utf8.c: New file.
72237
72238         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72239         (Depends-on): Add unitypes.
72240         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72241         (u16_uctomb_aux): Move out to separate file.
72242         (u16_uctomb): Use ucs4_t, uint16_t types.
72243         * lib/unistr/ucs4-utf16.c: New file.
72244
72245 2006-12-25  Bruno Haible  <bruno@clisp.org>
72246
72247         * modules/unitypes: New file.
72248         * lib/unitypes.h: New file.
72249         * MODULES.html.sh (func_all_modules): New section "Unicode string
72250         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72251         this section. Add unitypes.
72252
72253 2007-01-08  Bruno Haible  <bruno@clisp.org>
72254
72255         Avoid variable names that conflict with those from libtool.
72256         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72257         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72258         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72259         library_names_spec to acl_library_names_spec, hardcode_* to
72260         acl_hardcode_*.
72261         Reported by Ralf Wildenhues.
72262
72263 2007-01-08  Bruno Haible  <bruno@clisp.org>
72264
72265         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72266         definition.
72267         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72268         definition.
72269         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72270         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72271         definition.
72272         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72273         definition.
72274         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72275         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72276         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72277         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72278         definition.
72279         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72280         definition.
72281         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72282         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72283         GC_USE_<algorithm>.
72284         * lib/gc-libgcrypt.c: Likewise.
72285         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72286         * modules/gc-arctwo (configure.ac): Likewise.
72287         * modules/gc-des (configure.ac): Likewise.
72288         * modules/gc-hmac-md5 (configure.ac): Likewise.
72289         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72290         * modules/gc-md2 (configure.ac): Likewise.
72291         * modules/gc-md4 (configure.ac): Likewise.
72292         * modules/gc-md5 (configure.ac): Likewise.
72293         * modules/gc-random (configure.ac): Likewise.
72294         * modules/gc-rijndael (configure.ac): Likewise.
72295         * modules/gc-sha1 (configure.ac): Likewise.
72296
72297 2007-01-08  Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72300         macro definition.
72301         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72302         definition.
72303         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72304         definition.
72305         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72306         * modules/fcntl-safer (configure.ac): Likewise.
72307         * modules/fopen-safer (configure.ac): Likewise.
72308         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72309         GNULIB_FWRITEERROR macro definition.
72310
72311 2007-01-08  Bruno Haible  <bruno@clisp.org>
72312
72313         * m4/gnulib-common.m4: New file.
72314         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72315         (func_get_filelist): Add m4/gnulib-common.m4.
72316
72317 2007-01-08  Bruno Haible  <bruno@clisp.org>
72318
72319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72320         command.
72321
72322 2007-01-08  Jim Meyering  <jim@meyering.net>
72323
72324         Use a more robust test for a "can't happen" condition.
72325         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72326         narrowed the st_size value.  Presuming the "can't happen" condition
72327         is true, that narrowing could conceivably convert an invalid st_size
72328         value into a valid one.  Instead, use a change based on Matthew
72329         Woehlke's original patch.
72330
72331         Slight readability improvement: use an assert-like macro
72332         in place of literal "abort ()" uses.
72333         * lib/fts.c (fts_assert): Define.
72334         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72335         Use this macro instead of a bare 'abort'.
72336
72337 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72340         simply work around them.
72341         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72342         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72343         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72344         declaring.
72345         Don't bother to define as macros, since the standard doesn't require it.
72346         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72347         longer worry about IRIX 5.3.
72348         (HAVE_WCTYPE_CTMP_BUG): Remove.
72349
72350 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72353         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72354         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72355         Problems reported by Georg Schwarz for IRIX 5.3.
72356
72357         * gnulib-tool (autoconf_minversion): Take the maximum version number
72358         found, not the minimum.  Problem reported by James Youngman.
72359
72360 2007-01-03  Karl Berry  <karl@gnu.org>
72361
72362         * doc/error.texi: new file, explaining interaction with progname.
72363         * doc/gnulib.texi: include it.  Update copyright.
72364
72365 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72366
72367         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72368         AC_CANONICAL_HOST, to improve autobuild outputs.
72369
72370 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72371             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72372
72373         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72374         sockets, server sockets, and other file descriptors.  Count errors
72375         to compute the return value.  Reorder the code a bit to be easier
72376         to follow.  Don't set event bits that were not requested (except
72377         POLLERR and POLLHUP).
72378
72379 2007-01-01  Bruno Haible  <bruno@clisp.org>
72380
72381         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72382
72383 2007-01-03  Jim Meyering  <jim@meyering.net>
72384
72385         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72386
72387 2007-01-02  Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/settime (Include): Require timespec.h.
72390         * modules/nanosleep (Include): Likewise.
72391
72392 2007-01-01  Bruno Haible  <bruno@clisp.org>
72393
72394         * gnulib-tool (func_emit_copyright_notice): Bump year.
72395         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72396
72397 2007-01-01  Bruno Haible  <bruno@clisp.org>
72398
72399         Improve support for OpenBSD.
72400         * build-aux/config.rpath (libname_spec): Export.
72401         (library_names_spec): New variable. Export.
72402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72403         library_names_spec from the config.rpath output. Locate shared library
72404         through the name pattern in library_names_spec.
72405
72406 2007-01-01  Eric Blake  <ebb9@byu.net>
72407
72408         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72409
72410 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72411
72412         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72413         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72414         assume the C locale, and avoid an "eval" that could cause trouble.
72415         Problem with SORT reported by Bob Proulx.
72416
72417         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72418         Define.  Trivial patch from Henning Nielsen Lund, originally
72419         sent to bug-grep@gnu.org today.
72420
72421 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72424         struct stat.  Problem reported by Henning Nielsen Lund.
72425         * lib/acl.c: Include acl.h first, to check interface.  Don't
72426         bother to include sys/types.h and sys/stat.h again.
72427
72428 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         Import the following change from libc; problem reported by
72431         Sven Verdoolaege.
72432
72433         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72434
72435         [BZ #1373]
72436         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72437
72438 2006-12-28  Jim Meyering  <jim@meyering.net>
72439
72440         * build-aux/announce-gen: Do not assume that the package
72441         builds any of tar.gz, tar.bz2, and .xdelta files.
72442         Suggestion from Simon Josefsson.
72443
72444 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72445
72446         * modules/announce-gen: New file.
72447
72448 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72449
72450         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72451         handles its gotchas now.
72452         * lib/mbswidth.c: Likewise.
72453         * lib/wcwidth.h: Likewise.
72454         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72455         and iswcntrl; the wctype module does this stuff now.
72456         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72458         * modules/mbchar (Depends-on): Add wctype.
72459         * modules/mbswidth (Depends-on): Likewise.
72460         * modules/wcwidth (Depends-on): Likewise.
72461
72462 2006-12-27  Eric Blake  <ebb9@byu.net>
72463
72464         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72465         module uses more than what <wctype.h> is required to provide.
72466
72467 2006-12-26  Eric Blake  <ebb9@byu.net>
72468
72469         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72470
72471 2006-12-26  Eric Blake  <ebb9@byu.net>
72472
72473         * modules/absolute-header: New module.
72474         * modules/fcntl (Depends-on): Depend on it.
72475         * modules/inttypes (Depends-on): Likewise.
72476         * modules/stdint (Depends-on): Likewise.
72477         * modules/sys_stat (Depends-on): Likewise.
72478         * modules/wctype (Depends-on): Likewise.
72479         * MODULES.html.sh (Support for building libraries and
72480         executables): Document it.
72481
72482 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72483
72484         * gnulib-tool (SED): Remove, undoing previous change.
72485         The problem was that it broke coreutils on Solaris, because
72486         "sed --posix" leaked into a makefile.
72487         (sed): New alias, if 'alias' and GNU sed.
72488
72489 2006-12-24  Jim Meyering  <jim@meyering.net>
72490
72491         Work around an fchownat bug in glibc-2.4:
72492         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72493         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72494         in spite of the -P option.
72495         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72496         New macros.
72497         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72498         * modules/openat (Files): Add lib/fchownat.c.
72499         * lib/openat.c (fchownat): Don't define here.  Move to...
72500         * lib/fchownat.c: ...this new file.
72501
72502 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         Fix bug reported by Bruno Haible in
72505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72506         where quotearg.c didn't compile on Mac OS X 10.2 because it
72507         lacks <wchar.h> and wint_t.
72508         * lib/wctype_.h (__wctype_wint_t): New type.
72509         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72510         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72511         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72512         Arg is now of type __wctype_wint_t, not wint_t.
72513         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72514         substitute HAVE_WINT_T.
72515         * modules/wctype (Files): Add m4/wint_t.m4.
72516         (wctype.h): Substitute HAVE_WINT_T.
72517
72518 2006-12-23  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72521
72522 2006-12-23  Bruno Haible  <bruno@clisp.org>
72523
72524         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72525         S_ISLNK.
72526         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72527         mingw.
72528
72529 2006-12-22  Bruno Haible  <bruno@clisp.org>
72530
72531         * lib/copy-file.c: Include acl.h.
72532         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72533         Close the file descriptors only after being done with copy_acl.
72534         * modules/copy-file (Depends-on): Add acl.
72535
72536 2006-12-22  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool (SED): New variable.
72539         Use $SED instead of sed everywhere.
72540
72541 2006-12-22  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/no-c++: New file.
72544         * m4/no-c++.m4: New file.
72545         * MODULES.html.sh (Support for building libraries and executables):
72546         Add no-c++.
72547
72548 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72551         Include <limits.h>, and use its INT_MAX to rewrite the
72552         j loop so that it does not overflow 'int'.  Problem reported by
72553         Ralf Wildenhues in
72554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72555         Play it safe by shifting left by 1 rather than multiplying by 2,
72556         as GCC is less likely to optimize this away when the value
72557         is signed (when it assumes overflow leads to undefined behavior).
72558         Also, don't assume time_t uses two's complement.
72559
72560 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * MODULES.html.sh: New module wctype.
72563         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72564         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72565         <wctype.h>, since the new wctype module should fix this.
72566         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72567         the wctype module should arrange for it.
72568         * lib/regex_internal.h: Likewise.
72569         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72570         since the wctype module should handle this now.
72571         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72572         * modules/fnmatch (Depends-on): Add wctype.
72573         * modules/quotearg (Depends-on): Likewise.
72574         * modules/regex (Depends-on): Likewise.
72575
72576 2006-12-19  Bruno Haible  <bruno@clisp.org>
72577
72578         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72579         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72580
72581 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72582
72583         * modules/savewd (Depends-on): Fix dependency on fcntl.
72584
72585 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72586
72587         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72588         conforms to C99, rather than relying on the user's environment
72589         setting of STDINT_H.
72590
72591 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72592         and Eric Blake  <ebb9@byu.net>
72593
72594         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72595         This is more consistent with the other defines here.
72596         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72597         Port to z/OS.  Problem reported by Paul Gilmartin.
72598         Change local vars to use gl_ prefix rather than ac_.
72599         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72600         with other defines.
72601         * modules/double-slash-root: New module.
72602         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72603         (Depends-on): Add double-slash-root.
72604         * MODULES.html.sh (File system functions): Mention new module.
72605
72606 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72609         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72610         This is for the benefit of gzip, which doesn't do i18n.
72611
72612 2006-12-12  Jim Meyering  <jim@meyering.net>
72613
72614         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72615         Reported by Andreas Schwab <schwab@suse.de>.
72616
72617 2006-12-12  Bruno Haible  <bruno@clisp.org>
72618
72619         Merge these changes.
72620         2006-09-05  Bruno Haible  <bruno@clisp.org>
72621         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72622         iconv_alloc succeeded.
72623         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72624         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72625         test for " && dest " at the end - dest is always != NULL there. Call
72626         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72627         with 2xNULL arguments, also to flush the state storage. Handle the
72628         IRIX iconv behaviour. Realloc the final result, to throw away unused
72629         memory.
72630
72631 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72634         and fchmodat unconditionally, since glibc 2.4 has them.
72635         Problem reported by Arkadiusz Miskiewicz.
72636
72637 2006-12-10  Bruno Haible  <bruno@clisp.org>
72638
72639         * gnulib-tool (func_import): Show the include files only for those
72640         modules that are copied and specified.
72641         Reported by Karl Berry.
72642
72643 2006-12-08  Jim Meyering  <jim@meyering.net>
72644
72645         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72646         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72647
72648         * build-aux/announce-gen: Add two new options, both optional:
72649         --bootstrap-tools=TOOL_LIST
72650               a comma-separated list of tools, e.g.,
72651               autoconf,automake,bison,gnulib
72652         --gnulib-snapshot-date=DATE
72653               if gnulib is in the bootstrap tool list,
72654               then report this as the snapshot date.
72655               If not specified, use the current date/time.
72656               If you specify a date here, be sure it's UTC.
72657
72658 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72659
72660         * tests/test-argp-2.sh: Fix test to match actual output.
72661         (func_compare): Fix sed script to be portable.
72662
72663 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72666         workaround for this case.  It is not autoconfigured now; offhand
72667         it's hard to see how to autoconfigure it.
72668
72669 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72672         a directory that is about to be chowned.  Such a directory's
72673         initial file permissions should permit the owner only and this
72674         should not be changed until after the chown, since the group and
72675         other bits would be incorrect if they granted permission before
72676         the chown.
72677
72678         Fix porting problem for iswctype reported by Georg Schwarz in:
72679         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72680         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72681         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72683         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72684
72685 2006-12-03  Jim Meyering  <jim@meyering.net>
72686
72687         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72688         p->fts_statp may not yet be defined.
72689         (fts_read): Instead, set it in the caller, once p->fts_statp is
72690         sure to be defined, and corresponds to a top-level directory.
72691         This bug made du -x fail.  Here's the coreutils test case:
72692         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72693         Reported by Mike Frysinger.
72694
72695 2006-12-01  Jim Meyering  <jim@meyering.net>
72696
72697         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72698         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72699         Reported by Simon Josefsson.
72700
72701 2006-11-30  Jim Meyering  <jim@meyering.net>
72702
72703         * m4/warning.m4: Use the all-permissive copyright notice
72704         recommended by RMS (rather than LGPL).
72705         * m4/vararrays.m4: Likewise.
72706         * m4/flexmember.m4: Likewise.
72707
72708 2006-11-29  Bruno Haible  <bruno@clisp.org>
72709
72710         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72711         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72712         using +=.
72713         Reported by Simon Josefsson <simon@josefsson.org>.
72714
72715 2006-11-28  James Youngman <jay@gnu.org>
72716
72717         * README: Advise users that they might find the bug-gnulib@gnu.org
72718         and autotools-announce@gnu.org mailing lists useful.
72719
72720 2006-11-28  Bruno Haible  <bruno@clisp.org>
72721
72722         * m4/ptrdiff_max.m4: Remove file.
72723
72724 2006-11-21  Bruno Haible  <bruno@clisp.org>
72725
72726         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72727         _AC_COMPUTE_INT.
72728         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72729         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72730         _AC_COMPUTE_INT.
72731         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72732         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72733         _AC_COMPUTE_INT.
72734         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72735
72736 2006-11-28  Jim Meyering  <jim@meyering.net>
72737
72738         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72739         warning from "gcc -Wshadow" about shadowing the builtin.
72740
72741 2006-11-27  Bruno Haible  <bruno@clisp.org>
72742
72743         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72744         _AC_COMPUTE_INT.
72745         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72746
72747 2006-11-27  Bruno Haible  <bruno@clisp.org>
72748             Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72751
72752 2006-11-26  Bruno Haible  <bruno@clisp.org>
72753
72754         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72755         noinst_LTLIBRARIES.
72756
72757 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72758             Bruno Haible  <bruno@clisp.org>
72759
72760         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72761         if compiling with "gcc -ansi".
72762
72763 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         Fix some incompatibilities with gcc -ansi -pedantic.
72766         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72767         if compiling pedantically with GCC, unless it's C99 or later.
72768         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72769         it mishandles gcc -ansi -pedantic as well.
72770         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72771         if gcc -pedantic.
72772         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72773         initializers for struct if -pedantic, unless it's C99 or later.
72774
72775 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72776
72777         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72778         Don't close an fd more than once. Identical atimes indicate
72779         success, not failure.
72780
72781 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72782
72783         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72784
72785 2006-11-23  Jim Meyering  <jim@meyering.net>
72786
72787         * build-aux/announce-gen: New file.  From coreutils.
72788
72789 2006-11-22  Jim Meyering  <jim@meyering.net>
72790
72791         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72792         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72793         (fts_read): Use a temporary to narrow the overused st_size member
72794         before using it in a switch statement.  Reported by Matthew Woehlke.
72795
72796         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72798
72799 2006-11-20  Bruno Haible  <bruno@clisp.org>
72800
72801         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72802         changequote instead of pairs of brackets.
72803         Reported by Andreas Schwab <schwab@suse.de>.
72804
72805 2006-11-21  Jim Meyering  <jim@meyering.net>
72806
72807         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72808         so as to remain compatible with older compilers.
72809         Patch from Michael Deutschmann.
72810
72811 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72812
72813         * MODULES.html.sh (File system functions): Add openat.
72814
72815         * lib/openat.h (rpl_fstatat): New macro, if
72816         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72817         (fstatat): Define to rpl_fstatat under the same conditions,
72818         unless COMPILING_FSTATAT.
72819         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72820         seems to have the bug.
72821         * lib/fstatat.c: New file.
72822         * modules/openat (Files): Add it.
72823
72824 2006-11-20  Bruno Haible  <bruno@clisp.org>
72825
72826         * Makefile: New file.
72827
72828 2006-11-20  Jim Meyering  <jim@meyering.net>
72829
72830         The beginnings of syntax-related checks for gnulib.
72831         * lib/Makefile: New file.
72832         * lib/t-idcache: New script.  Ensure that the two halves of
72833         idcache.c stay in sync.
72834
72835         * lib/idcache.c: Adjust comments in user- and group- portions to
72836         be more accurate, and to be consistent with one another.
72837
72838 2006-11-20  Jim Meyering  <jim@meyering.net>
72839
72840         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72841         continue using the flexible array member (thus, this module performs
72842         half as many malloc calls), with the addition that...
72843         (getgroup, getuser): Consistently record a non-match via an empty
72844         "name" string, and map an empty string match to a NULL return value.
72845         * modules/idcache (Depends-on): Re-add flexmember.
72846
72847         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72848         (getuidbyname, getgroup, getgidbyname): Likewise.
72849
72850         Use cleaner syntax: NULL rather than 0.
72851         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72852
72853 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72856         It mishandled the case where the group was missing.
72857         Problem reported by Greg Schafer.
72858         * modules/idcache: Likewise.
72859
72860 2006-11-18  Jim Meyering  <jim@meyering.net>
72861
72862         * check-module (%exempt_header): Add exception for some
72863         conditionally-included headers.
72864
72865         * modules/i-ring (Depends-on): Add verify.
72866         (License): Change to LGPL.
72867
72868 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72871         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72872         and inttostr.h.  Use snprintf rather than uinttostr, so that
72873         LGPLed code doesn't depend on GPLed.
72874
72875 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * modules/inline (License): Change from GPL to LGPL.
72878
72879 2006-11-17  Jim Meyering  <jim@meyering.net>
72880
72881         * modules/d-type (License): Switch to LGPL.
72882
72883 2006-11-15  Bruno Haible  <bruno@clisp.org>
72884
72885         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72886
72887 2006-11-15  Eric Blake  <ebb9@byu.net>
72888
72889         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72890         the module dependency.
72891
72892 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72893             Bruno Haible  <bruno@clisp.org>
72894
72895         * gnulib-tool (func_create_testdir): Add license consistency check.
72896
72897 2006-11-15  Eric Blake  <ebb9@byu.net>
72898
72899         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72900         random "(cached)" in configure output.
72901
72902 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72903
72904         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72905         test for conforming inttypes.h is both announced and cached.
72906
72907         * MODULES.html.sh (seen_modules, seen_files): New variables.
72908         (func_module): Rewrite to use a few less gnulib-tool and sed
72909         invocations.  Avoid a couple of quadratic algorithms for ...
72910         (missed_modules, missed_files): ... these, with ...
72911         (func_append, func_tmpdir): ... these new functions, from
72912         gnulib-tool.  Analogously, install traps for cleanup.
72913
72914         * tests/test-gc.c (main): Remove unused variables.
72915         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72916
72917 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72918
72919         * modules/inttostr (License): Change to LGPL.
72920
72921 2006-11-14  Eric Blake  <ebb9@byu.net>
72922
72923         * modules/tempname (License): Change to LGPL.
72924
72925 2006-11-14  Eric Blake  <ebb9@byu.net>
72926
72927         * doc/functions.texi (Function Portability): *printf functions on
72928         Cygwin now understand all POSIX size specifiers.
72929
72930 2006-11-14  Bruno Haible  <bruno@clisp.org>
72931
72932         * modules/c-ctype (License): Change to LGPL.
72933
72934 2006-11-12  Bruno Haible  <bruno@clisp.org>
72935
72936         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72937         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72938         for GNOME libraries, for which the include files are installed in
72939         subdirectories of $prefix/include.
72940
72941 2006-11-12  Bruno Haible  <bruno@clisp.org>
72942
72943         * m4/lib-link.m4: Require at least autoconf-2.54.
72944         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72945         name to underscores for the --with option.
72946
72947 2006-11-13  Bruno Haible  <bruno@clisp.org>
72948
72949         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72950         the tests directory.
72951         Reported by Ralf Wildenhues.
72952
72953 2006-11-13  Bruno Haible  <bruno@clisp.org>
72954
72955         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72956         (func_emit_initmacro_end): Undo the override here.
72957         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72958         Works around the famous automake error in coreutils.
72959
72960 2006-11-13  Eric Blake  <ebb9@byu.net>
72961
72962         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72963         element, not its node.
72964
72965 2006-11-12  Bruno Haible  <bruno@clisp.org>
72966
72967         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72968         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72969
72970 2006-11-12  Bruno Haible  <bruno@clisp.org>
72971
72972         * gnulib-tool: New option --local-symlink.
72973         (func_usage): Document it.
72974         (lsymbolic): New variable.
72975         (func_import, func_create_testdir): If --symlink was not specified,
72976         test whether --local-symlink was specified and the file comes from
72977         the local_gnulib_dir.
72978
72979 2006-11-12  Bruno Haible  <bruno@clisp.org>
72980
72981         * gnulib-tool (func_ln): New function.
72982         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72983
72984 2006-11-12  Bruno Haible  <bruno@clisp.org>
72985
72986         Finish support for source files in subdirectories.
72987         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72988         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72989         AUTOMAKE_OPTIONS.
72990         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72991
72992 2006-11-12  Bruno Haible  <bruno@clisp.org>
72993
72994         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72995         EXTRA_lib_SOURCES augmentation.
72996         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72997
72998 2006-11-12  Jim Meyering  <jim@meyering.net>
72999
73000         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73001         file descriptors.  This also averts a failure on systems with
73002         native openat support when a traversed directory lacks "x" access.
73003         * lib/fts_.h: Include "i-ring.h"
73004         (struct FTS) [fts_fd_ring]: New member.
73005         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73006         (FCHDIR): Add parentheses.
73007         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73008         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73009         When descending, rather than simply closing the previous
73010         fts_cwd_fd value, push that file descriptor onto the ring.
73011         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73012         (fts_open): Initialize the new fd_ring member.
73013         (fts_close): Clear the ring.
73014         (fts_safe_changedir): When possible, use our new fd_ring to skip
73015         the diropen and fstat and dev/ino comparison that would normally
73016         accompany a virtual `chdir ("..")'.
73017
73018         * modules/fts (Depends-on): Add i-ring.
73019         * modules/i-ring: New module.
73020         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73021         * m4/i-ring.m4: New file.
73022
73023 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73024
73025         * gnulib-tool (func_create_testdir): Fix replacement of
73026         `build-aux' in configure.ac.  Run autotools in gltests
73027         subdirectory.
73028         (func_create_testdir, func_create_megatestdir, test): There is
73029         no need for '--force' in most autotool invocations in a new
73030         tree.  Actually fail the whole test if any of the tools, or the
73031         configure or make stages fail.
73032
73033         Sync from Automake.
73034         * build-aux/gnupload: Revert last change.  Add pointer to upload
73035         instructions of the GNU Maintenance Instructions.
73036         Suggestion by Karl Berry.
73037
73038 2006-11-10  Jim Meyering  <jim@meyering.net>
73039
73040         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73041
73042 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73045         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73046         (bind_textdomain_codeset) [! ENABLE_NLS]:
73047         Evaluate all the arguments.  That way, callers get compatible behavior
73048         if the arguments have side effects.  Also, it avoids some GCC
73049         diagnostics in some cases; Joel E. Denny reported problems when Bison
73050         was configured with --enable-gcc-warnigs.
73051
73052 2006-11-10  Jim Meyering  <jim@meyering.net>
73053
73054         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73055         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73056         account.
73057
73058 2006-11-10  Jim Meyering  <jim@meyering.net>
73059
73060         * modules/inline: New file/module.
73061         * modules/xalloc (Files): Remove m4/inline.m4.
73062         (Depends-on): Add inline, instead.
73063         * modules/oset: Likewise.
73064         * modules/list: Likewise.
73065
73066 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73069         Problem reported by Matthew Woehlke.
73070
73071 2006-11-09  Bruno Haible  <bruno@clisp.org>
73072
73073         * lib/tempname.c (gen_tempname): Remove variant that invokes
73074         __gen_tempname.
73075         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73076         __gen_tempname.
73077
73078 2006-11-08  Bruno Haible  <bruno@clisp.org>
73079
73080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73081         to 'yes' instead of 'cross-compiling'.
73082
73083 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73084
73085         * lib/quotearg.h (quotearg_free): New decl.
73086         * lib/quotearg.c (quotearg_free): New function.
73087         (slot0, nslots, slotvec0, slotvec):
73088         Now file-scope so that quotearg_free can get at them.
73089
73090 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73091
73092         Sync from Automake.
73093         * build-aux/gnupload: Add missing 'gnu' to example URL.
73094         Report by Karl Berry.
73095
73096 2006-11-08  Bruno Haible  <bruno@clisp.org>
73097
73098         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73099         Suggested by Paul Eggert.
73100
73101 2006-11-08  Jim Meyering  <jim@meyering.net>
73102
73103         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73104         It's already included if !_LIBC.
73105         (fts_safe_changedir): Add a comment.
73106
73107 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73110         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73111         Matthew Woehlke.
73112
73113         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73114         definitions up, to avoid colliding with change below.
73115         (static_inline) [HAVE_INLINE]: New macro.
73116         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73117         Provide extern decls when !HAVE_INLINE.  Do not define unless
73118         static_inline is defined, either by us or by xmalloc.c.  Use
73119         static_inline rather than static inline.
73120         (XCALLOC): Optimize sizeof(T) = 1 case.
73121         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73122
73123 2006-11-07  Bruno Haible  <bruno@clisp.org>
73124
73125         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73127         AC_C_INLINE.
73128         * modules/xalloc (Files): Add m4/inline.m4.
73129
73130 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73131
73132         * README: Fix typo.
73133         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73134         (Miscellanous Notes): ...from this.
73135
73136 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73139         Mention that offsetof should be used instead of sizeof.
73140         From Bruno Haible.
73141
73142 2006-11-07  Bruno Haible  <bruno@clisp.org>
73143
73144         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73145
73146 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73149         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73150         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73151         (gl_tree_add_before, gl_tree_add_after):
73152         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73153         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73154         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73155         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73156         (gl_linked_add_after, gl_linked_add_at): Likewise.
73157         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73158         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73159         (gl_tree_add_before, gl_tree_add_after): Likewise.
73160         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73161         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73162         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73163
73164 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73165
73166         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73167
73168 2006-11-06  Bruno Haible  <bruno@clisp.org>
73169
73170         * m4/inline.m4: New file.
73171         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73172         * modules/list (Files): Add m4/inline.m4.
73173         * modules/oset (Files): Likewise.
73174
73175 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * lib/idcache.c: Include <stddef.h>, for offsetof.
73178         (struct userid.name): Change from char * to a flexible array member.
73179         All uses changed.
73180         * modules/idcache (Depends-on): Add flexmember.
73181
73182         * MODULES.html.sh (Core language properties): New module flexmember.
73183         * modules/flexmember, m4/flexmember.m4: New files.
73184
73185         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73186         inline functions that are identical with the old xnmalloc_inline,
73187         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73188         that we can avoid some unnecessary integer multiplications and
73189         divisions in the common case where the element size is known at
73190         compile time.
73191         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73192         needed.
73193         (xnboundedmalloc): Remove.
73194         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73195         arguments, for consistency with rest of this header.
73196         (xcharalloc): Rewrite using XNMALLOC.
73197         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73198         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73199         versions have been moved to lib/xalloc.h and renamed to be the
73200         non-*_inline versions.
73201         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73202         and xnrealloc functions, since those functions are now inline and
73203         now call us.
73204         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73205         renaming described above.
73206         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73207         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73208         captures the dependency in AC_C_INLINE.
73209
73210         New module canonicalize-lgpl, proposed by Charles Wilson in
73211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73212         with a few small changes afterwards.
73213         * MODULES.html.sh (File system functions): New module
73214         canonicalize-lgpl.
73215         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73216         and canonicalize_file_name.
73217         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73218         * modules/canonicalize-lgpl: New files.
73219
73220 2006-11-05  Bruno Haible  <bruno@clisp.org>
73221
73222         * gnulib-tool (func_import, func_create_testdir): Create directories
73223         also for files in subdirectories of lib/.
73224
73225 2006-11-05  Bruno Haible  <bruno@clisp.org>
73226
73227         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73228         ANSI C compliant.
73229
73230 2006-11-03  Bruno Haible  <bruno@clisp.org>
73231
73232         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73233         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73234         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73235         (xnboundedmalloc): New inline function.
73236         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73237         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73238         xmalloc.
73239         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73240         xmalloc.
73241         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73242         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73243         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73244         xmalloc.
73245         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73246         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73247         xmalloc.
73248         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73249         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73250         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73251         xmalloc.
73252         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73253         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73254         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73255         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73256         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73257         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73258         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73259
73260 2006-11-03  Bruno Haible  <bruno@clisp.org>
73261
73262         * lib/c-ctype.h [C++]: Define functions without name mangling.
73263         * lib/fwriteerror.h [C++]: Likewise.
73264         * lib/gcd.h [C++]: Likewise.
73265         * lib/linebreak.h [C++]: Likewise.
73266
73267 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73270         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73271         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73273         Check for functions and headers just once.
73274         Check for declaration of canonicalize_file_name.
73275         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73276
73277 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73278
73279         * gnulib-tool (func_import): Fix typo in actioncmd.
73280
73281 2006-11-02  Bruno Haible  <bruno@clisp.org>
73282
73283         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73284         newline sequence in the Makefile.am snippet as a space, like "make"
73285         does.
73286         Reported by Roger Persson <perrog@gmail.com>.
73287
73288 2006-11-01  Bruno Haible  <bruno@clisp.org>
73289
73290         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73291         already declared in <string.h>.
73292         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73293
73294 2006-11-01  Bruno Haible  <bruno@clisp.org>
73295
73296         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73297         * lib/strcase.h: Include <string.h>.
73298         (strcasecmp): Define to rpl_strcasecmp here.
73299
73300 2006-11-01  Bruno Haible  <bruno@clisp.org>
73301
73302         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73303
73304 2006-11-01  Eric Blake  <ebb9@byu.net>
73305
73306         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73307
73308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73309
73310 2006-10-29  Bruno Haible  <bruno@clisp.org>
73311
73312         Make it compile in C++ mode.
73313         * lib/full-write.c (full_rw): Add a cast.
73314
73315 2006-11-01  Bruno Haible  <bruno@clisp.org>
73316
73317         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73318         be POSIX compliant.
73319         Reported by Roger Persson <perrog@gmail.com>.
73320
73321 2006-11-01  Eric Blake  <ebb9@byu.net>
73322
73323         * lib/getopt_.h: Fix comments.
73324
73325 2006-10-31  Eric Blake  <ebb9@byu.net>
73326
73327         * modules/tmpdir (Depends-on): Add sys_stat.
73328         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73329         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73330         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73331         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73332         tempname.
73333
73334 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         Avoid some C++ diagnostics reported by Bruno Haible.
73337         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73338         xmalloc.
73339         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73340         (struct slotvec): Move to top level.
73341         (quotearg_n_options): Rewrite to avoid xmalloc.
73342         * lib/xalloc.h (xcharalloc): New function.
73343         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73344         [defined __cplusplus]: Add function template that provides result
73345         type propagation.  This part of the change is from Bruno Haible.
73346
73347 2006-10-29  Bruno Haible  <bruno@clisp.org>
73348
73349         Make it compile in C++ mode.
73350         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73351         * lib/strnlen1.c (strnlen1): Cast memchr result.
73352         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73353         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73354         (create_temp_dir): Rename local variable 'template'.
73355         (compile_csharp_using_sscli): Add cast.
73356         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73357         * lib/findprog.c (find_in_path): Likewise.
73358         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73359         * lib/wait-process.c (register_slave_subprocess): Likewise.
73360
73361 2006-10-22  Bruno Haible  <bruno@clisp.org>
73362
73363         * modules/tsearch: New file.
73364         * lib/tsearch.h: New file.
73365         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73366         * m4/tsearch.m4: New file.
73367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73368
73369 2006-10-29  Eric Blake  <ebb9@byu.net>
73370
73371         * lib/arcfour.c: Assume config.h.
73372         * lib/arctwo.c: Likewise.
73373         * lib/base64.c: Likewise.
73374         * lib/check-version.c: Likewise.
73375         * lib/crc.c: Likewise.
73376         * lib/des.c: Likewise.
73377         * lib/gc-gnulib.c: Likewise.
73378         * lib/gc-libgcrypt.c: Likewise.
73379         * lib/gc-pbkdf2-sha1.c: Likewise.
73380         * lib/getaddrinfo.c: Likewise.
73381         * lib/getdelim.c: Likewise.
73382         * lib/getline.c: Likewise.
73383         * lib/hmac-md5.c: Likewise.
73384         * lib/hmac-sha1.c: Likewise.
73385         * lib/iconvme.c: Likewise.
73386         * lib/md2.c: Likewise.
73387         * lib/md4.c: Likewise.
73388         * lib/memxor.c: Likewise.
73389         * lib/read-file.c: Likewise.
73390         * lib/readline.c: Likewise.
73391         * lib/rijndael-alg-fst.c: Likewise.
73392         * lib/rijndael-api-fst.c: Likewise.
73393         * lib/xgetdomainname.c: Likewise.
73394
73395 2006-10-28  Eric Blake  <ebb9@byu.net>
73396
73397         * lib/xstrndup.c: Assume config.h.
73398
73399 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73402         stat-macros.h is now for our own macros, whereas stat_h is for
73403         macros in the <sys/stat.h> name space.
73404         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73405         (STAT_MACROS_H): Remove.
73406         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73407         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73408         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73409         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73410         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73411         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73412         Move these macros to ...
73413         * lib/stat_.h: here.  Don't include stat-macros.h.
73414         * lib/canonicalize.c: Don't include stat-macros.h.
73415         * lib/chown.c: Likewise.
73416         * lib/euidaccess.c: Likewise.
73417         * lib/file-type.c: Likewise.
73418         * lib/filemode.c: Likewise.
73419         * lib/glob.c: Likewise.
73420         * lib/isapipe.c: Likewise.
73421         * lib/lchown.c: Likewise.
73422         * lib/lstat.c: Likewise.
73423         * lib/mkdir-p.c: Likewise.
73424         * lib/rmdir.c: Likewise.
73425         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73427         unless mkdir isn't declared, to speed up 'configure'.
73428         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73429         would define all the S_* symbols.
73430         * modules/canonicalize (Depends-on):
73431         Depend on sys_stat, not stat-macros.
73432         * modules/chown: Likewise.
73433         * modules/euidaccess: Likewise.
73434         * modules/filemode: Likewise.
73435         * modules/file-type: Likewise.
73436         * modules/glob: Likewise.
73437         * modules/isapipe: Likewise.
73438         * modules/lchown: Likewise.
73439         * modules/lstat: Likewise.
73440         * modules/mkancesdirs: Likewise.
73441         * modules/rmdir: Likewise.
73442         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73443         * modules/modechange: Likewise.
73444         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73445         (configure.ac): Remove gl_STAT_MACROS.
73446         * modules/sys_stat (Depends-on): Remove stat-macros.
73447
73448 2006-10-27  Bruno Haible  <bruno@clisp.org>
73449
73450         * m4/signed.m4: Remove file.
73451         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73452         invocation.
73453         * modules/vasnprintf (Files): Remove m4/signed.m4.
73454
73455 2006-10-27  Bruno Haible  <bruno@clisp.org>
73456
73457         Update to GNU gettext 0.16.
73458         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73459         m4/inttypes-h.m4, m4/signed.m4.
73460         * m4/gettext.m4: Update to GNU gettext 0.16.
73461         * m4/intl.m4: New file, from GNU gettext.
73462         * m4/intldir.m4: New file, from GNU gettext.
73463         * config/srclist.txt: Update
73464
73465 2006-10-27  Eric Blake  <ebb9@byu.net>
73466
73467         * MODULES.html.sh: Document tempname.
73468         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73469         dependencies.
73470         (Files): Move lib/tempname.c...
73471         * modules/tempname: ...to this new module.
73472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73473         (gl_PREREQ_TEMPNAME): Move...
73474         * m4/tempname.m4: ...to this new file.
73475         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73476         * modules/sys_stat (Depends-on): Add stat-macros.
73477         * lib/stat_.h (includes): Pick up stat macros.
73478         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73479         if stat macros are broken.
73480         * lib/tempname.c (includes): No need to include "stat-macros.h".
73481         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73482         (direxists, __path_search) [!_LIBC]: Don't compile these in
73483         gnulib; the tmpdir module covers that.
73484         * lib/tempname.h: New file.
73485
73486 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * COPYING: Explain how gnulib-tool converts licence headers.
73489         Almost all wording by Eric Blake.
73490
73491 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * lib/mbchar.h (is_basic_table): Make read-only.
73494         * lib/mbchar.c (is_basic_table): Likewise.
73495         Reported by John Darrington.
73496
73497 2006-10-25  Bruno Haible  <bruno@clisp.org>
73498
73499         * lib/progname.h (set_program_name): Undefine before defining.
73500
73501 2006-10-25  Bruno Haible  <bruno@clisp.org>
73502
73503         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73504         false for non-gcc C++ compilers.
73505         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73506
73507 2006-10-24  Bruno Haible  <bruno@clisp.org>
73508
73509         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73510         iconv implementations like Irix iconv.
73511
73512 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * modules/vararrays: New file.
73515         * m4/vararrays.m4: New file, taken from diffutils.
73516         * MODULES.html.sh: New module vararrays.
73517
73518 2006-10-24  Karl Berry  <karl@gnu.org>
73519
73520         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73521         Don't call GNU Unix.
73522
73523 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73524
73525         * users.txt: Add Libtool.
73526
73527         Sync from Libtool:
73528
73529         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73532         to gnulib's policy of including config.h unconditionally.
73533
73534 2006-10-24  Bruno Haible  <bruno@clisp.org>
73535
73536         * modules/wcwidth (Files): Add m4/wint_t.m4.
73537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73538         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73539
73540 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73543         to pacify GCC with some -W flags enabled.  Problem reported by
73544         Bruno Haible.
73545
73546 2006-10-24  Jim Meyering  <jim@meyering.net>
73547
73548         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73549         Reported by Karl Berry.
73550
73551 2006-10-23  Bruno Haible  <bruno@clisp.org>
73552
73553         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73554
73555 2006-10-24  Bruno Haible  <bruno@clisp.org>
73556
73557         * lib/gl_list.h: Use C comment style, not C++ comment style.
73558
73559 2006-10-23  Eric Blake  <ebb9@byu.net>
73560
73561         * lib/getaddrinfo.c (includes): Add missing include.
73562
73563 2006-10-23  Bruno Haible  <bruno@clisp.org>
73564             Paul Eggert  <eggert@cs.ucla.edu>
73565
73566         Ability to rename obstack_free.
73567         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73568         obstack_free.
73569         (obstack_free): Invoke the __obstack_free macro.
73570         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73571
73572 2006-10-23  Bruno Haible  <bruno@clisp.org>
73573             Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73576         __argc, __argv from the declaration. (They are defined as macros on
73577         mingw.)
73578
73579 2006-10-22  Bruno Haible  <bruno@clisp.org>
73580
73581         * doc/gnulib-intro.texi: New file.
73582         * doc/gnulib.texi: Include it.
73583
73584 2006-10-21  Bruno Haible  <bruno@clisp.org>
73585
73586         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73587         "Introduction", "Miscellanous Notes", "Particular Modules".
73588
73589 2006-10-21  Bruno Haible  <bruno@clisp.org>
73590
73591         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73592         Change mostlyclean-local rule to avoid sh syntax error from bash
73593         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73594
73595 2006-10-23  Jim Meyering  <jim@meyering.net>
73596
73597         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73598         in place of snprintf.
73599
73600         * modules/inttostr (Files): Add lib/uinttostr.c.
73601         * lib/uinttostr.c (inttostr): New file/function.
73602         * lib/inttostr.h (uinttostr): Declare.
73603         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73604         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73605         Add uinttostr.
73606         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73607
73608 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * lib/canonicalize.c (ELOOP): Define if not already defined.
73611         Problem reported by Bruno Haible in
73612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73613
73614 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73615
73616         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73617         Problem reported by Perry Smith and Ville Laurikari.
73618
73619         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73620         uses.
73621
73622 2006-10-19  Bruno Haible  <bruno@clisp.org>
73623
73624         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73625         for mingw.
73626
73627 2006-10-19  Bruno Haible  <bruno@clisp.org>
73628
73629         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73630         Needed for mingw.
73631
73632 2006-10-19  Bruno Haible  <bruno@clisp.org>
73633
73634         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73635
73636 2006-10-19  Bruno Haible  <bruno@clisp.org>
73637
73638         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73639         it.
73640
73641 2006-10-19  Bruno Haible  <bruno@clisp.org>
73642
73643         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73644         invocation.
73645
73646 2006-10-19  Bruno Haible  <bruno@clisp.org>
73647
73648         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73649         mountlist by default.
73650
73651 2006-10-16  Bruno Haible  <bruno@clisp.org>
73652
73653         * lib/c-strstr.c: Include c-strstr.h.
73654
73655 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73656
73657         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73658         in a slash.
73659
73660 2006-10-18  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/lock.h [C++]: Wrap definitions in extern "C".
73663
73664 2006-10-18  Bruno Haible  <bruno@clisp.org>
73665
73666         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73667         gl_LIBOBJS list.
73668
73669 2006-10-18  Bruno Haible  <bruno@clisp.org>
73670
73671         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73672
73673 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * lib/xstrtol.h: Include gettext.h.
73676         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73677         Problem reported by Eric Blake.
73678         * modules/xstrtol (Depends-on): Add gettext-h.
73679
73680 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73681
73682         * lib/strftime.c (advance): New macro.
73683         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73684         incomplete type, so you can't add 0 to it.  Problem and patch
73685         reported by Eelco Dolstra for dietlibc.
73686
73687 2006-10-18  Jim Meyering  <jim@meyering.net>
73688
73689         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73690         type for a local, and rename it: s/up/user_proc/.
73691
73692 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73693
73694         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73695         READ_UTMP_USER_PROCESS.
73696         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73697
73698 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73701         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73702
73703 2006-10-17  Eric Blake  <ebb9@byu.net>
73704
73705         * lib/sigprocmask.c (sigprocmask): Fix typo.
73706
73707         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73708
73709         * modules/clean-temp (Makefile.am): Don't add to make output...
73710         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73711         config.h.
73712
73713 2006-10-17  Bruno Haible  <bruno@clisp.org>
73714
73715         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73716         differently if DEFAULT_TEXT_DOMAIN is set.
73717
73718 2006-10-16  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/clean-temp.c: Include fwriteerror.h.
73721
73722 2006-10-16  Bruno Haible  <bruno@clisp.org>
73723
73724         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73725
73726 2006-10-16  Bruno Haible  <bruno@clisp.org>
73727
73728         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73729         * lib/sigprocmask.h: Include <sys/types.h>.
73730         (sigset_t): Use the system's definition if present.
73731
73732 2006-10-17  Eric Blake  <ebb9@byu.net>
73733
73734         * lib/xvasprintf.c (includes): Assume config.h.
73735         * lib/xasprintf.c (includes): Likewise.
73736
73737 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73740         at least as wide as intmax_t.
73741
73742 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73743
73744         (Imported from Automake.)
73745         * build-aux/gnupload: Update to version 1.1 of directive file.
73746
73747 2006-10-16  Eric Blake  <ebb9@byu.net>
73748
73749         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73750         match Automake 1.10a.
73751
73752 2006-10-14  Bruno Haible  <bruno@clisp.org>
73753
73754         * modules/sigprocmask: New file.
73755         * lib/sigprocmask.h: New file.
73756         * lib/sigprocmask.c: New file.
73757         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73758         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73759         request sigprocmask.o.
73760         (gl_PREREQ_SIGPROCMASK): New macro.
73761         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73762         (Depends-on): Add sigprocmask.
73763         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73764         gt_SIGNALBLOCKING. Test for 'raise' only once.
73765         * lib/fatal-signal.c: Include sigprocmask.h.
73766         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73767         unblock_fatal_signals): Define always.
73768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73769         sigprocmask.
73770
73771 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         Sync from Automake.
73774         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73775         which incorrectly sets the mode of an existing destination
73776         directory.  In some cases the unpatched install-sh could do the
73777         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73778         system.  We hope this is rare in practice, but it's clearly worth
73779         fixing.  Problem reported by Alex Unleashed in
73780         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73781         Also, don't bother to check for -m bugs unless we're using -m;
73782         suggested by Stepan Kasal.
73783
73784 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73785
73786         Sync from Automake.
73787         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73788         `-c' flag, so they appear at the same position as in %FASTDEP%
73789         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73790         which ignores unknown options only after the first non-option.
73791         Bug report against M4 by Nelson H. F. Beebe.
73792
73793 2006-10-13  Jim Meyering  <jim@meyering.net>
73794
73795         Fix a bug in yesterday's change.
73796         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73797         p->fts_statp->st_dev would be used uninitialized.
73798         Ensures that we always call fts_stat on the very first entry.
73799         Miklos Szeredi reported that find -xdev stopped working.
73800
73801 2006-10-12  Bruno Haible  <bruno@clisp.org>
73802
73803         * gnulib-tool (func_get_automake_snippet): Append an automatically
73804         computed EXTRA_DIST augmentation.
73805         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73806         * modules/alloca-opt (Makefile.am): Likewise.
73807         * modules/allocsa (Makefile.am): Likewise.
73808         * modules/arcfour (Makefile.am): Likewise.
73809         * modules/arctwo (Makefile.am): Likewise.
73810         * modules/argmatch (Makefile.am): Likewise.
73811         * modules/argz (Makefile.am): Likewise.
73812         * modules/atexit (Makefile.am): Likewise.
73813         * modules/backupfile (Makefile.am): Likewise.
73814         * modules/byteswap (Makefile.am): Likewise.
73815         * modules/c-strtod (Makefile.am): Likewise.
73816         * modules/c-strtold (Makefile.am): Likewise.
73817         * modules/calloc (Makefile.am): Likewise.
73818         * modules/canon-host (Makefile.am): Likewise.
73819         * modules/canonicalize (Makefile.am): Likewise.
73820         * modules/chdir-long (Makefile.am): Likewise.
73821         * modules/chdir-safer (Makefile.am): Likewise.
73822         * modules/check-version (Makefile.am): Likewise.
73823         * modules/chown (Makefile.am): Likewise.
73824         * modules/cloexec (Makefile.am): Likewise.
73825         * modules/close-stream (Makefile.am): Likewise.
73826         * modules/closeout (Makefile.am): Likewise.
73827         * modules/crc (Makefile.am): Likewise.
73828         * modules/csharpexec (Makefile.am): Likewise.
73829         * modules/cycle-check (Makefile.am): Likewise.
73830         * modules/des (Makefile.am): Likewise.
73831         * modules/dev-ino (Makefile.am): Likewise.
73832         * modules/dirfd (Makefile.am): Likewise.
73833         * modules/dirname (Makefile.am): Likewise.
73834         * modules/dup2 (Makefile.am): Likewise.
73835         * modules/eealloc (Makefile.am): Likewise.
73836         * modules/error (Makefile.am): Likewise.
73837         * modules/euidaccess (Makefile.am): Likewise.
73838         * modules/exclude (Makefile.am): Likewise.
73839         * modules/exitfail (Makefile.am): Likewise.
73840         * modules/fcntl-safer (Makefile.am): Likewise.
73841         * modules/fcntl (Makefile.am): Likewise.
73842         * modules/file-type (Makefile.am): Likewise.
73843         * modules/fileblocks (Makefile.am): Likewise.
73844         * modules/filemode (Makefile.am): Likewise.
73845         * modules/filenamecat (Makefile.am): Likewise.
73846         * modules/fnmatch (Makefile.am): Likewise.
73847         * modules/fopen-safer (Makefile.am): Likewise.
73848         * modules/fpending (Makefile.am): Likewise.
73849         * modules/fprintftime (Makefile.am): Likewise.
73850         * modules/free (Makefile.am): Likewise.
73851         * modules/fsusage (Makefile.am): Likewise.
73852         * modules/ftruncate (Makefile.am): Likewise.
73853         * modules/fts (Makefile.am): Likewise.
73854         * modules/gc-arcfour (Makefile.am): Likewise.
73855         * modules/gc-des (Makefile.am): Likewise.
73856         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73857         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73858         * modules/gc-md4 (Makefile.am): Likewise.
73859         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73860         * modules/gc-sha1 (Makefile.am): Likewise.
73861         * modules/gc (Makefile.am): Likewise.
73862         * modules/getaddrinfo (Makefile.am): Likewise.
73863         * modules/getcwd (Makefile.am): Likewise.
73864         * modules/getdelim (Makefile.am): Likewise.
73865         * modules/getdomainname (Makefile.am): Likewise.
73866         * modules/getgroups (Makefile.am): Likewise.
73867         * modules/gethostname (Makefile.am): Likewise.
73868         * modules/gethrxtime (Makefile.am): Likewise.
73869         * modules/getline (Makefile.am): Likewise.
73870         * modules/getloadavg (Makefile.am): Likewise.
73871         * modules/getlogin_r (Makefile.am): Likewise.
73872         * modules/getndelim2 (Makefile.am): Likewise.
73873         * modules/getopt (Makefile.am): Likewise.
73874         * modules/getpagesize (Makefile.am): Likewise.
73875         * modules/getpass-gnu (Makefile.am): Likewise.
73876         * modules/getpass (Makefile.am): Likewise.
73877         * modules/getsubopt (Makefile.am): Likewise.
73878         * modules/gettime (Makefile.am): Likewise.
73879         * modules/gettimeofday (Makefile.am): Likewise.
73880         * modules/getugroups (Makefile.am): Likewise.
73881         * modules/getusershell (Makefile.am): Likewise.
73882         * modules/glob (Makefile.am): Likewise.
73883         * modules/group-member (Makefile.am): Likewise.
73884         * modules/hard-locale (Makefile.am): Likewise.
73885         * modules/hash (Makefile.am): Likewise.
73886         * modules/hmac-md5 (Makefile.am): Likewise.
73887         * modules/hmac-sha1 (Makefile.am): Likewise.
73888         * modules/human (Makefile.am): Likewise.
73889         * modules/idcache (Makefile.am): Likewise.
73890         * modules/imaxabs (Makefile.am): Likewise.
73891         * modules/imaxdiv (Makefile.am): Likewise.
73892         * modules/inet_ntop (Makefile.am): Likewise.
73893         * modules/inet_pton (Makefile.am): Likewise.
73894         * modules/intprops (Makefile.am): Likewise.
73895         * modules/inttostr (Makefile.am): Likewise.
73896         * modules/inttypes (Makefile.am): Likewise.
73897         * modules/isapipe (Makefile.am): Likewise.
73898         * modules/javaversion (Makefile.am): Likewise.
73899         * modules/lchmod (Makefile.am): Likewise.
73900         * modules/lchown (Makefile.am): Likewise.
73901         * modules/localcharset (Makefile.am): Likewise.
73902         * modules/long-options (Makefile.am): Likewise.
73903         * modules/lstat (Makefile.am): Likewise.
73904         * modules/malloc (Makefile.am): Likewise.
73905         * modules/mathl (Makefile.am): Likewise.
73906         * modules/mbchar (Makefile.am): Likewise.
73907         * modules/md2 (Makefile.am): Likewise.
73908         * modules/md4 (Makefile.am): Likewise.
73909         * modules/md5 (Makefile.am): Likewise.
73910         * modules/memcasecmp (Makefile.am): Likewise.
73911         * modules/memchr (Makefile.am): Likewise.
73912         * modules/memcmp (Makefile.am): Likewise.
73913         * modules/memcoll (Makefile.am): Likewise.
73914         * modules/memcpy (Makefile.am): Likewise.
73915         * modules/memmem (Makefile.am): Likewise.
73916         * modules/memmove (Makefile.am): Likewise.
73917         * modules/mempcpy (Makefile.am): Likewise.
73918         * modules/memrchr (Makefile.am): Likewise.
73919         * modules/memset (Makefile.am): Likewise.
73920         * modules/memxor (Makefile.am): Likewise.
73921         * modules/mkancesdirs (Makefile.am): Likewise.
73922         * modules/mkdir-p (Makefile.am): Likewise.
73923         * modules/mkdir (Makefile.am): Likewise.
73924         * modules/mkdtemp (Makefile.am): Likewise.
73925         * modules/mkstemp (Makefile.am): Likewise.
73926         * modules/mktime (Makefile.am): Likewise.
73927         * modules/modechange (Makefile.am): Likewise.
73928         * modules/mountlist (Makefile.am): Likewise.
73929         * modules/nanosleep (Makefile.am): Likewise.
73930         * modules/obstack (Makefile.am): Likewise.
73931         * modules/openat (Makefile.am): Likewise.
73932         * modules/pagealign_alloc (Makefile.am): Likewise.
73933         * modules/pathmax (Makefile.am): Likewise.
73934         * modules/physmem (Makefile.am): Likewise.
73935         * modules/poll (Makefile.am): Likewise.
73936         * modules/posixtm (Makefile.am): Likewise.
73937         * modules/posixver (Makefile.am): Likewise.
73938         * modules/putenv (Makefile.am): Likewise.
73939         * modules/quote (Makefile.am): Likewise.
73940         * modules/quotearg (Makefile.am): Likewise.
73941         * modules/raise (Makefile.am): Likewise.
73942         * modules/read-file (Makefile.am): Likewise.
73943         * modules/readline (Makefile.am): Likewise.
73944         * modules/readlink (Makefile.am): Likewise.
73945         * modules/readtokens (Makefile.am): Likewise.
73946         * modules/readutmp (Makefile.am): Likewise.
73947         * modules/realloc (Makefile.am): Likewise.
73948         * modules/regex (Makefile.am): Likewise.
73949         * modules/rename-dest-slash (Makefile.am): Likewise.
73950         * modules/rename (Makefile.am): Likewise.
73951         * modules/rijndael (Makefile.am): Likewise.
73952         * modules/rmdir (Makefile.am): Likewise.
73953         * modules/rpmatch (Makefile.am): Likewise.
73954         * modules/safe-read (Makefile.am): Likewise.
73955         * modules/safe-write (Makefile.am): Likewise.
73956         * modules/same-inode (Makefile.am): Likewise.
73957         * modules/same (Makefile.am): Likewise.
73958         * modules/save-cwd (Makefile.am): Likewise.
73959         * modules/savedir (Makefile.am): Likewise.
73960         * modules/setenv (Makefile.am): Likewise.
73961         * modules/settime (Makefile.am): Likewise.
73962         * modules/sha1 (Makefile.am): Likewise.
73963         * modules/sig2str (Makefile.am): Likewise.
73964         * modules/snprintf (Makefile.am): Likewise.
73965         * modules/stat-macros (Makefile.am): Likewise.
73966         * modules/stat-time (Makefile.am): Likewise.
73967         * modules/stdbool (Makefile.am): Likewise.
73968         * modules/stdint (Makefile.am): Likewise.
73969         * modules/stdlib-safer (Makefile.am): Likewise.
73970         * modules/stpcpy (Makefile.am): Likewise.
73971         * modules/stpncpy (Makefile.am): Likewise.
73972         * modules/strcase (Makefile.am): Likewise.
73973         * modules/strcasestr (Makefile.am): Likewise.
73974         * modules/strchrnul (Makefile.am): Likewise.
73975         * modules/strcspn (Makefile.am): Likewise.
73976         * modules/strdup (Makefile.am): Likewise.
73977         * modules/strerror (Makefile.am): Likewise.
73978         * modules/strftime (Makefile.am): Likewise.
73979         * modules/strndup (Makefile.am): Likewise.
73980         * modules/strnlen (Makefile.am): Likewise.
73981         * modules/strpbrk (Makefile.am): Likewise.
73982         * modules/strsep (Makefile.am): Likewise.
73983         * modules/strstr (Makefile.am): Likewise.
73984         * modules/strtod (Makefile.am): Likewise.
73985         * modules/strtoimax (Makefile.am): Likewise.
73986         * modules/strtok_r (Makefile.am): Likewise.
73987         * modules/strtol (Makefile.am): Likewise.
73988         * modules/strtoll (Makefile.am): Likewise.
73989         * modules/strtoul (Makefile.am): Likewise.
73990         * modules/strtoull (Makefile.am): Likewise.
73991         * modules/strtoumax (Makefile.am): Likewise.
73992         * modules/strverscmp (Makefile.am): Likewise.
73993         * modules/sys_socket (Makefile.am): Likewise.
73994         * modules/sys_stat (Makefile.am): Likewise.
73995         * modules/sysexits (Makefile.am): Likewise.
73996         * modules/time_r (Makefile.am): Likewise.
73997         * modules/timegm (Makefile.am): Likewise.
73998         * modules/timespec (Makefile.am): Likewise.
73999         * modules/tmpfile-safer (Makefile.am): Likewise.
74000         * modules/trim (Makefile.am): Likewise.
74001         * modules/unistd-safer (Makefile.am): Likewise.
74002         * modules/unlinkdir (Makefile.am): Likewise.
74003         * modules/unlocked-io (Makefile.am): Likewise.
74004         * modules/userspec (Makefile.am): Likewise.
74005         * modules/utime (Makefile.am): Likewise.
74006         * modules/utimecmp (Makefile.am): Likewise.
74007         * modules/utimens (Makefile.am): Likewise.
74008         * modules/vasnprintf (Makefile.am): Likewise.
74009         * modules/vasprintf (Makefile.am): Likewise.
74010         * modules/vsnprintf (Makefile.am): Likewise.
74011         * modules/xalloc (Makefile.am): Likewise.
74012         * modules/xgetcwd (Makefile.am): Likewise.
74013         * modules/xnanosleep (Makefile.am): Likewise.
74014         * modules/xreadlink (Makefile.am): Likewise.
74015         * modules/xstrtod (Makefile.am): Likewise.
74016         * modules/xstrtol (Makefile.am): Likewise.
74017         * modules/xstrtold (Makefile.am): Likewise.
74018         * modules/yesno (Makefile.am): Likewise.
74019         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74020
74021 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * modules/error (Makefile.am): Distribute files through
74024         EXTRA_DIST, not lib_SOURCES.
74025
74026 2006-10-12  Eric Blake  <ebb9@byu.net>
74027
74028         * modules/error (Makefile.am): Distribute files in /lib.
74029         * modules/obstack (Makefile.am): Likewise.
74030
74031 2006-10-12  Bruno Haible  <bruno@clisp.org>
74032
74033         * modules/acl (Makefile.am): Distribute all files in lib/ through
74034         EXTRA_DIST.
74035         * modules/arcfour (Makefile.am): Likewise.
74036         * modules/arctwo (Makefile.am): Likewise.
74037         * modules/argmatch (Makefile.am): Likewise.
74038         * modules/argz (Makefile.am): Likewise.
74039         * modules/atexit (Makefile.am): Likewise.
74040         * modules/backupfile (Makefile.am): Likewise.
74041         * modules/c-strtod (Makefile.am): Likewise.
74042         * modules/c-strtold (Makefile.am): Likewise.
74043         * modules/calloc (Makefile.am): Likewise.
74044         * modules/canon-host (Makefile.am): Likewise.
74045         * modules/canonicalize (Makefile.am): Likewise.
74046         * modules/chdir-long (Makefile.am): Likewise.
74047         * modules/chdir-safer (Makefile.am): Likewise.
74048         * modules/check-version (Makefile.am): Likewise.
74049         * modules/chown (Makefile.am): Likewise.
74050         * modules/cloexec (Makefile.am): Likewise.
74051         * modules/close-stream (Makefile.am): Likewise.
74052         * modules/closeout (Makefile.am): Likewise.
74053         * modules/crc (Makefile.am): Likewise.
74054         * modules/cycle-check (Makefile.am): Likewise.
74055         * modules/des (Makefile.am): Likewise.
74056         * modules/dirfd (Makefile.am): Likewise.
74057         * modules/dirname (Makefile.am): Likewise.
74058         * modules/dup2 (Makefile.am): Likewise.
74059         * modules/euidaccess (Makefile.am): Likewise.
74060         * modules/exclude (Makefile.am): Likewise.
74061         * modules/exitfail (Makefile.am): Likewise.
74062         * modules/fcntl-safer (Makefile.am): Likewise.
74063         * modules/file-type (Makefile.am): Likewise.
74064         * modules/fileblocks (Makefile.am): Likewise.
74065         * modules/filemode (Makefile.am): Likewise.
74066         * modules/filenamecat (Makefile.am): Likewise.
74067         * modules/fnmatch (Makefile.am): Likewise.
74068         * modules/fopen-safer (Makefile.am): Likewise.
74069         * modules/fpending (Makefile.am): Likewise.
74070         * modules/fprintftime (Makefile.am): Likewise.
74071         * modules/free (Makefile.am): Likewise.
74072         * modules/fsusage (Makefile.am): Likewise.
74073         * modules/ftruncate (Makefile.am): Likewise.
74074         * modules/fts (Makefile.am): Likewise.
74075         * modules/gc (Makefile.am): Likewise.
74076         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74077         * modules/getaddrinfo (Makefile.am): Likewise.
74078         * modules/getcwd (Makefile.am): Likewise.
74079         * modules/getdelim (Makefile.am): Likewise.
74080         * modules/getdomainname (Makefile.am): Likewise.
74081         * modules/getgroups (Makefile.am): Likewise.
74082         * modules/gethostname (Makefile.am): Likewise.
74083         * modules/gethrxtime (Makefile.am): Likewise.
74084         * modules/getline (Makefile.am): Likewise.
74085         * modules/getloadavg (Makefile.am): Likewise.
74086         * modules/getlogin_r (Makefile.am): Likewise.
74087         * modules/getopt (Makefile.am): Likewise.
74088         * modules/getpass (Makefile.am): Likewise.
74089         * modules/getpass-gnu (Makefile.am): Likewise.
74090         * modules/getsubopt (Makefile.am): Likewise.
74091         * modules/gettime (Makefile.am): Likewise.
74092         * modules/gettimeofday (Makefile.am): Likewise.
74093         * modules/getugroups (Makefile.am): Likewise.
74094         * modules/getusershell (Makefile.am): Likewise.
74095         * modules/glob (Makefile.am): Likewise.
74096         * modules/group-member (Makefile.am): Likewise.
74097         * modules/hard-locale (Makefile.am): Likewise.
74098         * modules/hash (Makefile.am): Likewise.
74099         * modules/hmac-md5 (Makefile.am): Likewise.
74100         * modules/hmac-sha1 (Makefile.am): Likewise.
74101         * modules/human (Makefile.am): Likewise.
74102         * modules/idcache (Makefile.am): Likewise.
74103         * modules/imaxabs (Makefile.am): Likewise.
74104         * modules/imaxdiv (Makefile.am): Likewise.
74105         * modules/inet_ntop (Makefile.am): Likewise.
74106         * modules/inet_pton (Makefile.am): Likewise.
74107         * modules/inttostr (Makefile.am): Likewise.
74108         * modules/isapipe (Makefile.am): Likewise.
74109         * modules/lchown (Makefile.am): Likewise.
74110         * modules/long-options (Makefile.am): Likewise.
74111         * modules/lstat (Makefile.am): Likewise.
74112         * modules/malloc (Makefile.am): Likewise.
74113         * modules/mathl (Makefile.am): Likewise.
74114         * modules/mbchar (Makefile.am): Likewise.
74115         * modules/md2 (Makefile.am): Likewise.
74116         * modules/md4 (Makefile.am): Likewise.
74117         * modules/md5 (Makefile.am): Likewise.
74118         * modules/memcasecmp (Makefile.am): Likewise.
74119         * modules/memchr (Makefile.am): Likewise.
74120         * modules/memcmp (Makefile.am): Likewise.
74121         * modules/memcoll (Makefile.am): Likewise.
74122         * modules/memcpy (Makefile.am): Likewise.
74123         * modules/memmem (Makefile.am): Likewise.
74124         * modules/memmove (Makefile.am): Likewise.
74125         * modules/mempcpy (Makefile.am): Likewise.
74126         * modules/memrchr (Makefile.am): Likewise.
74127         * modules/memset (Makefile.am): Likewise.
74128         * modules/memxor (Makefile.am): Likewise.
74129         * modules/mkancesdirs (Makefile.am): Likewise.
74130         * modules/mkdir (Makefile.am): Likewise.
74131         * modules/mkdir-p (Makefile.am): Likewise.
74132         * modules/mkdtemp (Makefile.am): Likewise.
74133         * modules/mkstemp (Makefile.am): Likewise.
74134         * modules/mktime (Makefile.am): Likewise.
74135         * modules/modechange (Makefile.am): Likewise.
74136         * modules/mountlist (Makefile.am): Likewise.
74137         * modules/nanosleep (Makefile.am): Likewise.
74138         * modules/openat (Makefile.am): Likewise.
74139         * modules/pagealign_alloc (Makefile.am): Likewise.
74140         * modules/physmem (Makefile.am): Likewise.
74141         * modules/poll (Makefile.am): Likewise.
74142         * modules/posixtm (Makefile.am): Likewise.
74143         * modules/posixver (Makefile.am): Likewise.
74144         * modules/putenv (Makefile.am): Likewise.
74145         * modules/quote (Makefile.am): Likewise.
74146         * modules/quotearg (Makefile.am): Likewise.
74147         * modules/raise (Makefile.am): Likewise.
74148         * modules/read-file (Makefile.am): Likewise.
74149         * modules/readline (Makefile.am): Likewise.
74150         * modules/readlink (Makefile.am): Likewise.
74151         * modules/readtokens (Makefile.am): Likewise.
74152         * modules/readutmp (Makefile.am): Likewise.
74153         * modules/realloc (Makefile.am): Likewise.
74154         * modules/regex (Makefile.am): Likewise.
74155         * modules/rename (Makefile.am): Likewise.
74156         * modules/rename-dest-slash (Makefile.am): Likewise.
74157         * modules/rijndael (Makefile.am): Likewise.
74158         * modules/rmdir (Makefile.am): Likewise.
74159         * modules/rpmatch (Makefile.am): Likewise.
74160         * modules/safe-read (Makefile.am): Likewise.
74161         * modules/safe-write (Makefile.am): Likewise.
74162         * modules/same (Makefile.am): Likewise.
74163         * modules/save-cwd (Makefile.am): Likewise.
74164         * modules/savedir (Makefile.am): Likewise.
74165         * modules/setenv (Makefile.am): Likewise.
74166         * modules/settime (Makefile.am): Likewise.
74167         * modules/sha1 (Makefile.am): Likewise.
74168         * modules/sig2str (Makefile.am): Likewise.
74169         * modules/snprintf (Makefile.am): Likewise.
74170         * modules/stdlib-safer (Makefile.am): Likewise.
74171         * modules/stpcpy (Makefile.am): Likewise.
74172         * modules/stpncpy (Makefile.am): Likewise.
74173         * modules/strcase (Makefile.am): Likewise.
74174         * modules/strcasestr (Makefile.am): Likewise.
74175         * modules/strchrnul (Makefile.am): Likewise.
74176         * modules/strcspn (Makefile.am): Likewise.
74177         * modules/strdup (Makefile.am): Likewise.
74178         * modules/strerror (Makefile.am): Likewise.
74179         * modules/strftime (Makefile.am): Likewise.
74180         * modules/strndup (Makefile.am): Likewise.
74181         * modules/strnlen (Makefile.am): Likewise.
74182         * modules/strpbrk (Makefile.am): Likewise.
74183         * modules/strsep (Makefile.am): Likewise.
74184         * modules/strstr (Makefile.am): Likewise.
74185         * modules/strtod (Makefile.am): Likewise.
74186         * modules/strtoimax (Makefile.am): Likewise.
74187         * modules/strtok_r (Makefile.am): Likewise.
74188         * modules/strtol (Makefile.am): Likewise.
74189         * modules/strtoll (Makefile.am): Likewise.
74190         * modules/strtoul (Makefile.am): Likewise.
74191         * modules/strtoull (Makefile.am): Likewise.
74192         * modules/strtoumax (Makefile.am): Likewise.
74193         * modules/strverscmp (Makefile.am): Likewise.
74194         * modules/time_r (Makefile.am): Likewise.
74195         * modules/timegm (Makefile.am): Likewise.
74196         * modules/tmpfile-safer (Makefile.am): Likewise.
74197         * modules/unistd-safer (Makefile.am): Likewise.
74198         * modules/unlinkdir (Makefile.am): Likewise.
74199         * modules/userspec (Makefile.am): Likewise.
74200         * modules/utime (Makefile.am): Likewise.
74201         * modules/utimecmp (Makefile.am): Likewise.
74202         * modules/utimens (Makefile.am): Likewise.
74203         * modules/vasnprintf (Makefile.am): Likewise.
74204         * modules/vasprintf (Makefile.am): Likewise.
74205         * modules/vsnprintf (Makefile.am): Likewise.
74206         * modules/xalloc (Makefile.am): Likewise.
74207         * modules/xgetcwd (Makefile.am): Likewise.
74208         * modules/xnanosleep (Makefile.am): Likewise.
74209         * modules/xreadlink (Makefile.am): Likewise.
74210         * modules/xstrtod (Makefile.am): Likewise.
74211         * modules/xstrtol (Makefile.am): Likewise.
74212         * modules/xstrtold (Makefile.am): Likewise.
74213         * modules/yesno (Makefile.am): Likewise.
74214
74215 2006-10-12  Jim Meyering  <jim@meyering.net>
74216
74217         * m4/getloadavg.m4: Revert the change below.
74218
74219         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74220         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74221         fail with a symlink, which is what coreutils' ./bootstrap now
74222         creates by default.
74223
74224 2006-10-12  Bruno Haible  <bruno@clisp.org>
74225
74226         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74227         mingw.
74228         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74229         MSVC and mingw explicitly.
74230
74231 2006-10-11  Simon Josefsson  <jas@extundo.com>
74232             Bruno Haible  <bruno@clisp.org>
74233
74234         Add support for multiple gnulib-tool invocations in the scope of a
74235         single configure.ac file.
74236         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74237         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74238         with the same contents as the _LIBADD variable.
74239         (func_emit_initmacro_start, func_emit_initmacro_end,
74240         func_emit_initmacro_done): New functions.
74241         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74242         gl_LIBOBJS and gl_LTLIBOBJS.
74243
74244 2006-10-11  Bruno Haible  <bruno@clisp.org>
74245
74246         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74247         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74248         autoreconf. Instead, invoke autopoint explicitly but move back the
74249         *.m4 files from gnulib.
74250
74251 2006-10-11  Bruno Haible  <bruno@clisp.org>
74252
74253         * gnulib-tool (func_usage): Make module names after --create-testdir
74254         optional.
74255         (func_create_testdir): If no module was specified, use nearly all
74256         modules.
74257
74258 2006-10-12  Jim Meyering  <jim@meyering.net>
74259
74260         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74261         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74262         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74263         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74264         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74265         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74266         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74267         (fts_set_stat_required): New function.
74268         (fts_open): Defer the calls to fts_stat, if possible or requested.
74269         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74270         into fts_stat itself.
74271         (fts_read): Perform any required (deferred) fts_stat call.
74272         (fts_build): Likewise, for the directory we're about to open and read.
74273         In the readdir loop, carefully decide whether each entry will require
74274         an eventual call to fts_stat, using dirent.d_type info if available.
74275         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74276         a command line argument into this function.  Update all callers.
74277         Map a return value of FTS_DOT to FTS_D for a command line argument.
74278         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74279         Thanks to Miklos Szeredi for his tenacity and for the initial
74280         bug report about "find" failing on a FUSE-based file system.
74281
74282         * lib/fts.c (fts_open): Use consistent indentation.
74283
74284 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74287         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74288         reported by Jim Meyering.  All uses of cache variables renamed
74289         to match Autoconf's.
74290         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74291         the other one.
74292
74293         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74294         Fix misspelling in diagnostic.
74295
74296 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74299         defined.  Problem reported by Matthew Woehlke.
74300
74301         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74302         Add support for Tandem NonStop R series.
74303         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74304         Use new macro.
74305
74306         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74307         (has_trailing_slash): Omit size arg; all callers changed.
74308         Omit 'inline', since it doesn't help performance and we'd
74309         need to configure it.
74310         Don't count //, ///, etc. as having a trailing slash.
74311         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74312         (rpl_rename_dest_slash): On failure, use rename's errno rather
74313         than (in some cases) an incorrect or junk errno.
74314         Simplify code by removing need to compute length; this does
74315         cause it to make two passes instead of one over the file name,
74316         but it's worth it.
74317
74318         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74319         change, since Autoconf's version may no longer be appropriate now
74320         that we are using CVS Autoconf's version.  Add support for Tandem.
74321
74322 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74323             Bruno Haible  <bruno@clisp.org>
74324
74325         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74326         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74327         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74328         gl_AC_TYPE_LONG_LONG.
74329
74330         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74331         instead of HAVE_LONG_LONG.
74332         * lib/printf-args.c (printf_fetchargs): Likewise.
74333         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74334         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74335         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74336         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74337         gl_AC_TYPE_LONG_LONG.
74338
74339 2006-10-11  Bruno Haible  <bruno@clisp.org>
74340
74341         * m4/longlong.m4: Add comments.
74342         * m4/ulonglong.m4: Likewise.
74343
74344 2006-10-10  Bruno Haible  <bruno@clisp.org>
74345
74346         Make it possible to #define stpcpy, strdup to aliases.
74347         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74348         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74349
74350 2006-10-10  Bruno Haible  <bruno@clisp.org>
74351
74352         Make it possible to #define gcd to an alias.
74353         * lib/gcd.c: Include config.h.
74354
74355 2006-10-10  Bruno Haible  <bruno@clisp.org>
74356
74357         Make it possible to #define c_isascii to an alias.
74358         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74359         defined. Undefine the macros before defining them, to avoid gcc
74360         warnings.
74361         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74362         define NO_C_CTYPE_MACROS early.
74363
74364 2006-10-10  Bruno Haible  <bruno@clisp.org>
74365
74366         Make it possible to #define set_program_name to an alias.
74367         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74368         ENABLE_RELOCATABLE early.
74369
74370 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74373         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74374         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74375         More generally, don't assume that 64-bit signed int is available
74376         if unsigned int is, and vice versa.
74377         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74378         unsigned symbols, not on their signed counterparts.
74379         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74380         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74381         (UINT64_C, UINTMAX_C):
74382         Likewise.
74383         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74384         unsigned counterparts.
74385         (Have_long_long, Unsigned): New macros.
74386         (Int): Renamed from INT.
74387         (strtoimax): Use the new macros.
74388         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74389         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74390         * modules/inttypes (inttypes.h): Substitute
74391         HAVE_UNSIGNED_LONG_LONG_INT.
74392         * modules/stdint (stdint.h): Likewise.
74393         (Files): Add m4/ulonglong.m4.
74394
74395 2006-10-10  Bruno Haible  <bruno@clisp.org>
74396
74397         Fix a gcc -Wshadow warning.
74398         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74399         to 'bucket'.
74400         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74401         gl_linked_indexof_from_to): Likewise.
74402         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74403         Likewise.
74404         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74405         Likewise.
74406         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74407         Reported by Eric Blake.
74408
74409 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74412         for NetBSD.  Problem reported by Bruno Haible.
74413
74414 2006-10-09  Jim Meyering  <jim@meyering.net>
74415
74416         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74417         Patch from Bruno Haible.
74418
74419 2006-10-09  Jim Meyering  <jim@meyering.net>
74420
74421         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74422         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74423         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74424
74425 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         Don't include <config.h> twice; this doesn't work in some cases,
74428         e.g., when config.h has "#define intmax_t long long int" and
74429         we include <config.h>, <inttypes.h>, <config.h> in that order.
74430         Problem reported by Matthew Woehlke in:
74431         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74432         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74433         * lib/fts-cycle.c: Don't include config.h.
74434         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74435         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74436         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74437         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74438         inttypes.h.
74439         * lib/xstrtoumax.c: Likewise.
74440         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74441         __strtol and the like, so that this module is more like its siblings.
74442         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74443         Remove; no longer needed now that we assume gnulib inttypes.h.
74444
74445 2006-10-08  Bruno Haible  <bruno@clisp.org>
74446
74447         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74448         option.
74449
74450 2006-10-07  Jim Meyering  <jim@meyering.net>
74451
74452         * modules/inttypes (inttypes.h): Revert what seems to have been
74453         an inadvertent part of today's change: use "|", not "/" in the
74454         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74455
74456 2006-10-07  Bruno Haible  <bruno@clisp.org>
74457
74458         * modules/sublist: New file.
74459
74460 2006-10-07  Bruno Haible  <bruno@clisp.org>
74461
74462         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74463         * modules/argz (argz.h): Likewise.
74464         * modules/arpa_inet (arpa/inet.h): Likewise.
74465         * modules/byteswap (byteswap.h): Likewise.
74466         * modules/configmake (configmake.h): Likewise.
74467         * modules/fcntl (fcntl.h): Likewise.
74468         * modules/fnmatch (fnmatch.h): Likewise.
74469         * modules/getopt (getopt.h): Likewise.
74470         * modules/glob (glob.h): Likewise.
74471         * modules/inttypes (inttypes.h): Likewise.
74472         * modules/netinet_in (netinet/in.h): Likewise.
74473         * modules/poll (poll.h): Likewise.
74474         * modules/stdbool (stdbool.h): Likewise.
74475         * modules/stdint (stdint.h): Likewise.
74476         * modules/sys_select (sys/select.h): Likewise.
74477         * modules/sys_socket (sys/socket.h): Likewise.
74478         * modules/sys_stat (sys/stat.h): Likewise.
74479         * modules/sysexits (sysexits.h): Likewise.
74480         * modules/unistd (unistd.h): Likewise.
74481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74482         Add a "DO NOT EDIT" comment to the generated file.
74483         (func_import): Likewise for gnulib-comp.m4.
74484
74485 2006-10-07  Bruno Haible  <bruno@clisp.org>
74486
74487         * lib/gl_sublist.h: New file.
74488         * lib/gl_sublist.c: New file.
74489
74490 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74493         name (relative to the original working directory) and the file
74494         name component (relative to the temporary working directory).  All
74495         callers changed.
74496         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74497         * lib/mkdir-p.c (make_dir_parents): Likewise.
74498         * lib/mkdir-p.h (make_dir_parents): Likewise.
74499
74500 2006-10-06  Eric Blake  <ebb9@byu.net>
74501
74502         Define several macros for use by the clean-temp module.
74503         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74504         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74505         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74506
74507         * lib/clean-temp.h (close_stream_temp): New declaration.
74508         * lib/clean-temp.c (includes): Pull in headers according to what
74509         other modules are in use.
74510         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74511
74512 2006-10-06  Bruno Haible  <bruno@clisp.org>
74513
74514         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74515         instead of fopen, fwriteerror.
74516
74517 2006-10-06  Bruno Haible  <bruno@clisp.org>
74518
74519         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74520         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74521         int.
74522         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74523         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74524         Return an error indicator.
74525         Suggested by Eric Blake.
74526
74527 2006-10-06  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74530         Reported by Eric Blake.
74531
74532 2006-10-06  Bruno Haible  <bruno@clisp.org>
74533
74534         * modules/closeout (Description): Mention stderr too.
74535
74536 2006-10-06  Bruno Haible  <bruno@clisp.org>
74537         and Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * lib/closeout.c (close_stdout): Also close stderr.
74540         * lib/closeout.h: Update comment.
74541
74542 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74543
74544         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74545         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74546         * lib/dirchownmod.c: Include lchown.h.
74547         * lib/lchown.c: Don't include files that lchown.h now includes.
74548         Don't declare chown, since lchown.h now does that.
74549         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74550         (lchown): Define to rpl_chown if lchown is declared but
74551         does not exist.  Declare using a prototype if lchown is not
74552         declared.  Add a copyright notice.
74553         * lib/mkstemp.h: Include <unistd.h>.
74554         * lib/openat.c: Include lchown.h.
74555
74556         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74557         we now test for that separately.
74558         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74559         rather than O_NOFOLLOW, when testing whether it's possible to
74560         avoid a race condition reliably.
74561         * lib/savewd.c (savewd_chdir): Likewise.
74562
74563         Remove macros that are no longer needed now that stdint.h is
74564         reliable.
74565         * lib/fsusage.c (UINTMAX_MAX): Remove.
74566         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74567         * lib/utimecmp.c (SIZE_MAX): Remove.
74568
74569         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74570
74571         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74572         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74573         O_NOATIME works.
74574
74575 2006-10-05  Bruno Haible  <bruno@clisp.org>
74576
74577         * lib/gl_list.h (gl_sortedlist_search_from_to,
74578         gl_sortedlist_indexof_from_to): New declarations.
74579         (gl_list_implementation): New fields sortedlist_search_from_to,
74580         sortedlist_indexof_from_to.
74581         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74582         inline functions.
74583         * lib/gl_list.c (gl_sortedlist_search_from_to,
74584         gl_sortedlist_indexof_from_to): New functions.
74585         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74586         function.
74587         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74588         (gl_array_sortedlist_search_from_to): New function.
74589         (gl_array_list_implementation): Update.
74590         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74591         function.
74592         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74593         (gl_carray_sortedlist_search_from_to): New function.
74594         (gl_carray_list_implementation): Update.
74595         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74596         gl_linked_sortedlist_indexof_from_to): New functions.
74597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74599         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74600         gl_tree_sortedlist_indexof_from_to): New functions.
74601         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74602         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74603         Update.
74604         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74605         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74606         Update.
74607
74608 2006-10-05  Bruno Haible  <bruno@clisp.org>
74609
74610         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74611         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74612         (struct gl_list_implementation): Add fields search_from_to,
74613         indexof_from_to. Remove fields search, indexof.
74614         (gl_list_search): Use the search_from_to method.
74615         (gl_list_search_from, gl_list_search_from_to): New functions.
74616         (gl_list_indexof): Use the indexof_from_to method.
74617         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74618         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74619         (gl_list_search_from, gl_list_search_from_to): New functions.
74620         (gl_list_indexof): Use the indexof_from_to method.
74621         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74622         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74623         gl_array_indexof. Add start_index, end_index arguments.
74624         (gl_array_search_from_to): Renamed from gl_array_search. Add
74625         start_index, end_index arguments.
74626         (gl_array_remove, gl_array_list_implementation): Update.
74627         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74628         gl_carray_indexof. Add start_index, end_index arguments.
74629         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74630         start_index, end_index arguments.
74631         (gl_carray_remove, gl_carray_list_implementation): Update.
74632         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74633         gl_linked_search. Add start_index, end_index arguments.
74634         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74635         start_index, end_index arguments.
74636         (gl_linked_remove): Update.
74637         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74638         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74639         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74640         field to 'size_t'.
74641         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74642         gl_tree_search. Add start_index, end_index arguments.
74643         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74644         start_index, end_index arguments.
74645         (gl_tree_remove): Update.
74646         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74647         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74648         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74649         function.
74650         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74651         gl_tree_search. Add start_index, end_index arguments.
74652         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74653         start_index, end_index arguments.
74654         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74655         Update.
74656         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74657
74658 2006-10-05  Bruno Haible  <bruno@clisp.org>
74659
74660         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74661
74662         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74663         fwriteerror_temp): New declarations.
74664         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74665         (descriptors): New variable.
74666         (cleanup): First, close the descriptors.
74667         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74668         fclose_temp, fwriteerror_temp): New functions.
74669
74670 2006-10-04  Jim Meyering  <jim@meyering.net>
74671
74672         * lib/fts.c (fts_open): Tiny comment change.
74673
74674 2006-10-04  Bruno Haible  <bruno@clisp.org>
74675
74676         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74677         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74678         gl_LOCK_BODY.
74679         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74680         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74681         gl_LOCK_EARLY_BODY.
74682         (gl_LOCK): Require gl_LOCK_BODY.
74683
74684 2006-10-04  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74687         (gl_oset_search_atleast): New declaration.
74688         (struct gl_oset_implementation): Add field 'search_atleast'.
74689         (gl_oset_search_atleast): New inline function.
74690         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74691         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74692         (gl_array_oset_implementation): Update.
74693         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74694         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74695         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74696
74697 2006-10-04  Bruno Haible  <bruno@clisp.org>
74698
74699         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74700
74701 2006-10-03  Bruno Haible  <bruno@clisp.org>
74702
74703         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74704         from gl_avltreehash_list_implementation.
74705
74706 2006-10-03  Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/gl_oset.c (gl_oset_add): Fix return type.
74709
74710 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74711
74712         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74713
74714 2006-10-02  Eric Blake  <ebb9@byu.net>
74715
74716         * modules/strnlen (Depends-on): Add extensions.
74717
74718 2006-10-02  Eric Blake  <ebb9@byu.net>
74719
74720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74721         definition in 2.60+.
74722
74723 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74724
74725         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74726         checks.
74727
74728 2006-10-02  Bruno Haible  <bruno@clisp.org>
74729
74730         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74731         to the AUTOMAKE_OPTIONS.
74732         Reported by Jim Meyering.
74733
74734 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         Work around bug in Solaris 10 /proc file system:
74737         /proc/self/fd/NNN/.. isn't the parent directory of
74738         the directory whose file descriptor is NNN.  This needs to
74739         be worked around at run time, not compile time, since a
74740         program might be built on Solaris 8, where things work, and
74741         run on Solaris 10.
74742         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74743         to use the following interface instead:
74744         (OPENAT_BUFFER_SIZE): New macro.
74745         (openat_proc_name): New function.
74746         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74747         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74748         Likewise.
74749         * lib/openat-proc.c: New file.
74750         * modules/openat (Files): Add lib/openat-proc.c.
74751         (Depends-on): Add same-inode, stdbool.
74752         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74753
74754 2006-09-29  Bruno Haible  <bruno@clisp.org>
74755
74756         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74757         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74758         argument. Set stdout_closed before testing for ferror, not after.
74759         (fwriteerror, fwriteerror_no_ebadf): New functions.
74760
74761 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74762
74763         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74764
74765 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74766
74767         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74768         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74769
74770 2006-09-28  Jim Meyering  <jim@meyering.net>
74771
74772         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74773         Include <unistd.h>.
74774
74775 2006-09-28  Bruno Haible  <bruno@clisp.org>
74776
74777         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74778         * modules/linkedhash-list (Depends-on): Likewise.
74779         * modules/rbtreehash-list (Depends-on): Likewise.
74780
74781 2006-09-28  Bruno Haible  <bruno@clisp.org>
74782
74783         * lib/strndup.h: Simplify the redefinition of strndup.
74784         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74785         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74786
74787 2006-09-28  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74790         * lib/gl_linkedhash_list.c: Likewise.
74791         * lib/gl_rbtreehash_list.c: Likewise.
74792
74793 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74796         getaddrinfo.
74797
74798         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74799         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74800         it causes <stdio_ext.h> to cause a compile-time error.
74801         Problem reported by Nelson H. F. Beebe.
74802         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74803         of HAVE_DECL___PENDING.
74804
74805         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74806         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74807         declaration.
74808
74809 2006-09-27  Jim Meyering  <jim@meyering.net>
74810
74811         This file could end up with a definition for a function
74812         named __strndup, rather than rpl_strndup on a system with
74813         incomplete weak_alias support.
74814         * lib/strndup.c (strndup): Rename from __strndup.
74815         Remove #defines that used to map __strndup to strndup.
74816         Don't use K&R prototypes.
74817         Remove LIBC-related code, since this file is not sync'd with glibc.
74818         * lib/strndup.h: Revamp, accordingly.
74819         * m4/strndup.m4: Modernize.
74820
74821 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * modules/savewd (Depends-on): Add 'raise'.
74824         * lib/savewd.c: Include <signal.h>, for 'raise'.
74825
74826 2006-09-26  Jim Meyering  <jim@meyering.net>
74827
74828         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74829         when we detect Darwin 8.7.0's acl_get_file bug.
74830         Rearrange to perform the new (below) run-test while $LIBS
74831         contains any acl-related library.  Set USE_ACL at the end.
74832         (gl_ACL_GET_FILE): New function.
74833
74834 2006-09-26  Eric Blake  <ebb9@byu.net>
74835
74836         * lib/verror.c: Include <config.h> unconditionally.
74837
74838 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         * modules/clock-time (Maintainer): Add self.
74841         * modules/getlogin_r (Depends-on): Add extensions.
74842
74843 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74844
74845         * modules/clock-time: New module.
74846         * modules/nanosleep (Depends-on): Add clock-time.
74847         * modules/gethrxtime (Depends-on): Likewise.
74848         * modules/gettime (Depends-on): Likewise.
74849         * modules/settime (Depends-on): Likewise.
74850
74851         * modules/fts-lgpl: Depend on openat.
74852         * modules/mkancesdirs: Depend on savewd.
74853         * modules/mkdir-p: Likewise.
74854
74855 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74856
74857         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74858
74859         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74860         `gl_have_arbitrary_file_name_length_limit' to
74861         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74862         actually works between configure runs.
74863
74864 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74865             Bruno Haible  <bruno@clisp.org>
74866
74867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74868
74869 2006-09-25  Jim Meyering  <jim@meyering.net>
74870
74871         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74872         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74873
74874 2006-09-25  Eric Blake  <ebb9@byu.net>
74875
74876         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74877         exec's in 2006-09-18 patch when shuffling fds.
74878
74879 2006-09-25  Bruno Haible  <bruno@clisp.org>
74880
74881         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74882         Reported by Jim Meyering.
74883
74884 2006-09-24  Jim Meyering  <jim@meyering.net>
74885
74886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74887         compare a pointer against a literal "0".  That caused failures with
74888         at least HP-UX's hpcc.
74889
74890 2006-09-22  Simon Josefsson  <jas@extundo.com>
74891
74892         * modules/gc-sha1:
74893         * modules/gc-md4:
74894         * modules/gc-hmac-sha1:
74895         * modules/gc-hmac-md5:
74896         * modules/gc-des:
74897         * modules/gc-arcfour: Distribute more files.
74898
74899 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74900
74901         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74902         (gl_linked_iterator_from_to): Initialize struct completely.
74903         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74904         (gl_tree_iterator_from_to): Likewise
74905         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74906         * lib/gl_array_list.c [lint] (gl_array_iterator)
74907         (gl_array_iterator_from_to): Likewise.
74908         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74909         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74910         (gl_carray_iterator_from_to): Likewise.
74911
74912         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74913         * lib/md4.c (md4_process_block): Remove unused variable.
74914         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74915         parentheses for clarity.
74916
74917 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74918
74919         * modules/bison-i18n (Depends-on): Add gettext.
74920
74921 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74922
74923         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74924         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74925         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74926         also add missing comma that caused broken test.
74927         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74928         stdlib.h, for `abort'.
74929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74930         variables.
74931         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74932         include unistd.h if present, for `rmdir'.
74933         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74934         variables.
74935         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74936         in the process include standard headers for prototypes.
74937         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74938         gets declared on GNU/Linux.
74939         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74940         unistd.h, for `rmdir'.
74941         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74942
74943         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74944         always true.
74945         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74946
74947         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74948
74949 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74950
74951         * gnulib-tool (func_version): Create output all at once.  This
74952         may help avoid triggering unnecessary SIGPIPEs, and at any
74953         rate it doesn't hurt.
74954
74955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74956             Bruno Haible  <bruno@clisp.org>
74957
74958         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74959         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74960         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74961
74962         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74963         (gl_FUNC_VASPRINTF): Invoke it.
74964
74965 2006-09-22  Bruno Haible  <bruno@clisp.org>
74966
74967         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74968         getloadavg.c as first argument.
74969
74970 2006-09-22  Bruno Haible  <bruno@clisp.org>
74971
74972         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74973         at the beginning of the gl_INIT macro.
74974         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74975         gl_GETLOADAVG.
74976
74977 2006-09-22  Bruno Haible  <bruno@clisp.org>
74978
74979         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74980         module.
74981         Suggested by Ralf Wildenhues.
74982
74983 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         Import this patch from libc:
74986
74987         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74988
74989         * lib/regex_internal.c (re_string_reconstruct): Handle
74990         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74991         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74992         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74993         re_string_context_at.
74994
74995         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74996         now requires it.
74997         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74998         gl_REGEX now does it for us.
74999         (gl_REGEX): Add test taken from
75000         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75001
75002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75003         Check that large offsets work.  Modernize Autoconf usages.
75004         Prefer "yes" to mean a good thing rather than a bad.
75005         Don't put "#define mkstemp" in config.h, as this might interfere
75006         with standard system headers that "#define mkstemp mkstemp64".
75007
75008         * modules/mkstemp (Depends-on): Add extensions, so that
75009         mkstemp is visible on some platforms.
75010         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75011         (Include): Change to "mkstemp.h" from <stdlib.h>.
75012         (Files): Add mkstemp.h.
75013
75014         * lib/mkstemp.h: New file, since some standard headers
75015         #define mkstemp.
75016         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75017         Include "mkstemp.h".
75018         Make the _LIBC code resemble glibc original more,
75019         e.g., use K&R style.
75020         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75021         (mkstemp): Remove, since mkstemp.h does this for us.
75022         * lib/stdlib--.h: Include mkstemp.h.
75023
75024         Import this patch from libc:
75025
75026         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75027
75028         * lib/tempname.c (__gen_tempname): Change attempts_min
75029         into a macro.  Use preprocessor to decide how to initialize
75030         attempts [Coverity CID 67].
75031
75032 2006-09-20  Bruno Haible  <bruno@clisp.org>
75033
75034         * lib/mkdtemp.c: Import from libc.
75035         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75036                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75037                 attempts_min into a macro.  Use preprocessor to decide how to
75038                 initialize attempts [Coverity CID 67].
75039         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75040                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75041                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75042
75043 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75044
75045         * gnulib-tool (func_exit): New function, to allow to pass the
75046         exit status portably through the trap.  Use everywhere.
75047         (--help, --version): Signal a write error.
75048         (trap): catch SIGPIPE, for write errors.
75049         Exit at the end of the trap, with the correct exit status.
75050
75051 2006-09-19  Karl Berry  <karl@gnu.org>
75052
75053         * doc/gnulib.texi: note about the license texinfo files.
75054
75055 2006-09-19  Eric Blake  <ebb9@byu.net>
75056
75057         * gnulib-tool: Avoid space-tab.
75058
75059 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75062         that prevented coreutils 6.1 from building.  Problem reported
75063         by Petter Reinholdtsen.
75064
75065 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * gnulib-tool (avoidlist): Fix typo that broke options like
75068         --avoid=lock that are used by coreutils bootstrap.
75069
75070 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75071
75072         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75073         more systematically.
75074
75075 2006-09-18  Jim Meyering  <jim@meyering.net>
75076
75077         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75078
75079 2006-09-18  Bruno Haible  <bruno@clisp.org>
75080
75081         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75082
75083 2006-09-18  Bruno Haible  <bruno@clisp.org>
75084
75085         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75086         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75087         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75088         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75089         * m4/gettext.m4: Require autoconf >= 2.52.
75090         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75091         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75092         of gl_cv_header_inttypes_h.
75093
75094 2006-09-18  Bruno Haible  <bruno@clisp.org>
75095
75096         * lib/javaversion.c: Include configmake.h.
75097
75098 2006-09-18  Bruno Haible  <bruno@clisp.org>
75099
75100         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75101         avoid that the while loops be executed in a subshell.
75102
75103 2006-09-18  Bruno Haible  <bruno@clisp.org>
75104
75105         * MODULES.html.sh (func_module): Break long lines.
75106         Suggested by Bruce Korb <bkorb@gnu.org>.
75107
75108 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75109
75110         Speed up by a factor of 1.12.
75111         * gnulib-tool (nl): New variable.
75112         (func_import): Rewrite include directive extraction to only read each
75113         directive once.
75114
75115 2006-09-17  Bruno Haible  <bruno@clisp.org>
75116
75117         * modules/javaversion (Makefile.am): Remove DEFS setting.
75118         (Depends-on): Add configmake, for PKGDATADIR definition.
75119
75120 2006-09-17  Bruno Haible  <bruno@clisp.org>
75121
75122         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75123
75124 2006-09-17  Bruno Haible  <bruno@clisp.org>
75125
75126         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75127         (func_modules_transitive_closure, func_modules_add_dummy,
75128         func_modules_to_filelist, func_import, func_create_testdir,
75129         func_create_megatestdir, ...): Use it wherever possible.
75130         Suggested by Ralf Wildenhues.
75131
75132 2006-09-16  Karl Berry  <karl@gnu.org>
75133
75134         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75135         to avoid sectioning errors.
75136         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75137         [ifinfo]: blank line after @center-ed titles.
75138         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75139         Spell FSF address consistently with others.
75140         (These changes approved by rms.)
75141
75142 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75143
75144         Speed up by a factor of 1.61.
75145         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75146         already checked module names again.
75147
75148 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75149
75150         Speed up by a factor of 1.13.
75151         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75152         for new_files, and the input to func_add_or_update.
75153
75154 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75155
75156         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75157         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75158
75159 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         * modules/mkancesdirs (Depends-on): Add fcntl.
75162         * modules/savewd: New file.
75163         * MODULES.html.sh (File system functions): Add savewd.
75164
75165         * modules/configmake (Makefile.am): Add support for the
75166         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75167
75168 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * m4/savewd.m4: New file.
75171
75172 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75173
75174         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75175         (dirchownmod): New arg FD.  All callers changed.
75176         Use FD rather than opening the directory ourself, as opening is
75177         now the caller's responsibility.
75178         * lib/dirchownmod.h: Likewise.
75179         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75180         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75181         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75182         (test_dir): Remove.
75183         (mkancesdirs): Return length of prefix of FILE that has already
75184         been made, or -2 if there is a child doing the work.  Redo
75185         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75186         ".", and treat ".." specially since it might stray back into
75187         already-created areas.  Use a subprocess if necessary.  New arg
75188         WD; all users changed.  MAKE_DIR function should now return 1
75189         if it creates a directory that is not readable.  Return -2 if
75190         a child process is spun off.
75191         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75192         Adjust signature to match code.
75193         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75194         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75195         all users changed.
75196         * lib/savewd.c, lib/savewd.h: New files.
75197
75198 2006-09-15  Jim Meyering  <jim@meyering.net>
75199
75200         * modules/rename-dest-slash: New module.
75201         * MODULES.html.sh (posix_compat): Add it here.
75202
75203         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75204
75205 2006-09-15  Jim Meyering  <jim@meyering.net>
75206
75207         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75208         file.
75209
75210         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75211
75212 2006-09-15  Jim Meyering  <jim@meyering.net>
75213
75214         * lib/rename-dest-slash.c (has_trailing_slash): Use
75215         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75216         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75217         test before testing whether SRC is a directory.
75218         Suggestions from Bruno Haible.
75219
75220         Avoid a warning about an unused variable.
75221         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75222         into the #ifdef block where it's used.
75223
75224         * lib/rename-dest-slash.c: New file.
75225
75226 2006-09-14  Bruno Haible  <bruno@clisp.org>
75227
75228         * lib/allocsa.c: Include <config.h> unconditionally.
75229         * lib/asnprintf.c: Likewise.
75230         * lib/asprintf.c: Likewise.
75231         * lib/c-strcasecmp.c: Likewise.
75232         * lib/c-strcasestr.c: Likewise.
75233         * lib/c-strncasecmp.c: Likewise.
75234         * lib/c-strstr.c: Likewise.
75235         * lib/classpath.c: Likewise.
75236         * lib/clean-temp.c: Likewise.
75237         * lib/concatpath.c: Likewise.
75238         * lib/copy-file.c: Likewise.
75239         * lib/csharpcomp.c: Likewise.
75240         * lib/csharpexec.c: Likewise.
75241         * lib/execute.c: Likewise.
75242         * lib/fatal-signal.c: Likewise.
75243         * lib/findprog.c: Likewise.
75244         * lib/fwriteerror.c: Likewise.
75245         * lib/gl_array_list.c: Likewise.
75246         * lib/gl_array_oset.c: Likewise.
75247         * lib/gl_avltree_list.c: Likewise.
75248         * lib/gl_avltree_oset.c: Likewise.
75249         * lib/gl_avltreehash_list.c: Likewise.
75250         * lib/gl_carray_list.c: Likewise.
75251         * lib/gl_linked_list.c: Likewise.
75252         * lib/gl_linkedhash_list.c: Likewise.
75253         * lib/gl_list.c: Likewise.
75254         * lib/gl_oset.c: Likewise.
75255         * lib/gl_rbtree_list.c: Likewise.
75256         * lib/gl_rbtree_oset.c: Likewise.
75257         * lib/gl_rbtreehash_list.c: Likewise.
75258         * lib/imaxabs.c: Likewise.
75259         * lib/imaxdiv.c: Likewise.
75260         * lib/javacomp.c: Likewise.
75261         * lib/javaexec.c: Likewise.
75262         * lib/javaversion.c: Likewise.
75263         * lib/linebreak.c: Likewise.
75264         * lib/localcharset.c: Likewise.
75265         * lib/lock.c: Likewise.
75266         * lib/mbchar.c: Likewise.
75267         * lib/mbswidth.c: Likewise.
75268         * lib/mkdtemp.c: Likewise.
75269         * lib/pipe.c: Likewise.
75270         * lib/printf-args.c: Likewise.
75271         * lib/printf-parse.c: Likewise.
75272         * lib/progname.c: Likewise.
75273         * lib/progreloc.c: Likewise.
75274         * lib/readlink.c: Likewise.
75275         * lib/sh-quote.c: Likewise.
75276         * lib/stpcpy.c: Likewise.
75277         * lib/stpncpy.c: Likewise.
75278         * lib/strcasecmp.c: Likewise.
75279         * lib/strcasestr.c: Likewise.
75280         * lib/strcspn.c: Likewise.
75281         * lib/striconv.c: Likewise.
75282         * lib/strncasecmp.c: Likewise.
75283         * lib/strnlen1.c: Likewise.
75284         * lib/strstr.c: Likewise.
75285         * lib/strtok_r.c: Likewise.
75286         * lib/tls.c: Likewise.
75287         * lib/tmpdir.c: Likewise.
75288         * lib/unicodeio.c: Likewise.
75289         * lib/unsetenv.c: Likewise.
75290         * lib/vasnprintf.c: Likewise.
75291         * lib/vasprintf.c: Likewise.
75292         * lib/wait-process.c: Likewise.
75293         * lib/xallocsa.c: Likewise.
75294         * lib/xsetenv.c: Likewise.
75295         * lib/xstriconv.c: Likewise.
75296
75297 2006-09-13  Simon Josefsson  <jas@extundo.com>
75298
75299         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75300         that internally, suggested by Ralf Wildenhues
75301         <Ralf.Wildenhues@gmx.de>.
75302
75303 2006-09-13  Simon Josefsson  <jas@extundo.com>
75304
75305         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75306         @LIBOBJS@.
75307         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75308
75309 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75312         longer worry about uses that don't define HAVE_CONFIG_H.
75313         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75314         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75315         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75316         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75317         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75318         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75319         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75320         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75321         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75322         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75323         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75324         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75325         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75326         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75327         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75328         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75329         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75330         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75331         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75332         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75333         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75334         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75335         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75336         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75337         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75338         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75339         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75340         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75341         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75342         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75343         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75344         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75345         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75346         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75347         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75348         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75349         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75350         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75351         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75352         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75353         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75354         Likewise.
75355
75356 2006-09-13  Eric Blake  <ebb9@byu.net>
75357
75358         * lib/getopt.c: Fix typo in last commit.
75359
75360 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75361
75362         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75363         dgettext.
75364
75365 2006-09-12  Jim Meyering  <jim@meyering.net>
75366
75367         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75368         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75369         Reported by Nelson H. F. Beebe.
75370
75371 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75372
75373         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75374         program_invocation_name and program_invocation_short_name are
75375         initialized.
75376         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75377         and program_invocation_short_name to argp.h, so they are visible
75378         to user programs.
75379         * lib/argp.h: Likewise
75380
75381 2006-09-10  Bruno Haible  <bruno@clisp.org>
75382
75383         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75384         m4/inttypes_h.m4, m4/uintmax_t.m4.
75385
75386 2006-09-10  Bruno Haible  <bruno@clisp.org>
75387
75388         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75389         gl_AC_TYPE_UINTMAX_T.
75390
75391 2006-09-10  Bruno Haible  <bruno@clisp.org>
75392
75393         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75394
75395 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75396
75397         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75398         convention.  Text proposed by Bruno Haible.
75399         (struct argp_option): Document the use of N_() wrappers.
75400
75401         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75402         '\v', and translate the two parts separately, instead of feeding
75403         the whole string to gettext.  This allows to exclude
75404         '\v' from the strings visible to the translator by writing doc
75405         strings as N_("..") "\v" N_("..").
75406
75407 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         * config/srclist.txt: Undo latest change; the bug was fixed.
75410
75411 2006-09-09  Bruno Haible  <bruno@clisp.org>
75412
75413         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75414         assignments if building a library without libtool.
75415         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75416         in func_emit_lib_Makefile_am.
75417         (func_import): When building a static library libfoo.a, arrange to
75418         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75419         (func_create_testdir): Likewise.
75420         * modules/gc (configure.ac, Makefile.am): If building statically,
75421         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75422         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75423         * modules/striconv (configure.ac, Makefile.am): Likewise.
75424         Based on a suggestion by Ralf Wildenhues.
75425
75426 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75429         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75430         Also:
75431
75432         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75433         Add year_2050_test to catch glibc bug 2821
75434         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75435
75436         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75437         Prefer #ifdef to #if.
75438
75439         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75440         Return from 'main' instead of calling 'exit'.
75441
75442 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75445         returned the maximum time_t value rather than (time_t) -1.
75446         Problem originally reported by William Bardwell
75447         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75448
75449         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75450         Moved to here ...
75451         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75452         ... from here.
75453
75454 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75455
75456         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75457         2821 is fixed.
75458
75459 2006-09-08  Jim Meyering  <jim@meyering.net>
75460
75461         Don't make generated files read-only.  That would bother too many
75462         people.  However, do retain the ability to work when targets are
75463         read-only: remove the destination and temporary files before writing
75464         them (when generated via sed or echo), or by using the -f option for
75465         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75466         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75467         * modules/byteswap, modules/configmake, modules/fcntl:
75468         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75469         * modules/localcharset, modules/netinet_in, modules/poll:
75470         * modules/stdbool, modules/stdint, modules/sys_select:
75471         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75472
75473 2006-09-08  Jim Meyering  <jim@meyering.net>
75474
75475         Avoid new build failure on FreeBSD 6.0.
75476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75477         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75478         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75479
75480 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75481
75482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75483
75484 2006-09-07  Jim Meyering  <jim@meyering.net>
75485
75486         Fix global typo in last change: use chmod u-w, not chmod u-x.
75487         Spotted by Paul Eggert and Bruce Korb.
75488         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75489         * modules/byteswap, modules/configmake, modules/fcntl:
75490         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75491         * modules/localcharset, modules/netinet_in, modules/poll:
75492         * modules/stdbool, modules/stdint, modules/sys_select:
75493         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75494
75495 2006-09-06  Jim Meyering  <jim@meyering.net>
75496
75497         Make generated files be read-only.
75498         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75499         Ensure that each generated file is now read-only.
75500         * modules/argz: Likewise.
75501         * modules/arpa_inet: Likewise.
75502         * modules/byteswap: Likewise.
75503         * modules/configmake: Likewise.
75504         * modules/fcntl: Likewise.
75505         * modules/fnmatch: Likewise.
75506         * modules/getopt: Likewise.
75507         * modules/glob: Likewise.
75508         * modules/inttypes: Likewise.
75509         * modules/netinet_in: Likewise.
75510         * modules/poll: Likewise.
75511         * modules/stdbool: Likewise.
75512         * modules/stdint: Likewise.
75513         * modules/sys_select: Likewise.
75514         * modules/sys_socket: Likewise.
75515         * modules/sys_stat: Likewise.
75516         * modules/sysexits: Likewise.
75517         * modules/localcharset: Same as above, but continue using temporary
75518         file named "t-$@" (why different?) rather than the "$@-t" used
75519         everywhere else.
75520
75521         * modules/sysexits (Makefile.am): Replace literal occurrences
75522         of "sysexit.h" more readable, and more consistent, "$@".
75523
75524 2006-09-06  Bruno Haible  <bruno@clisp.org>
75525
75526         * modules/striconv: New file.
75527         * modules/xstriconv: New file.
75528         * MODULES.html.sh (Internationalization functions): Add striconv,
75529         xstriconv.
75530
75531 2006-09-06  Bruno Haible  <bruno@clisp.org>
75532
75533         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75534         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75535         not using libtool correctly.
75536
75537 2006-09-06  Bruno Haible  <bruno@clisp.org>
75538
75539         * lib/striconv.h: New file.
75540         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75541         iconvstring.c.
75542         * lib/xstriconv.h: New file.
75543         * lib/xstriconv.c: New file.
75544
75545 2006-09-06  Bruno Haible  <bruno@clisp.org>
75546
75547         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75548         lib_..._LDFLAGS.
75549
75550 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75551
75552         * lib/argz_.h: Sync from Libtool.
75553
75554         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75555                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75556
75557         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75558
75559 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75560
75561         * modules/trim: New file.
75562
75563 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75564
75565         * lib/trim.h: New file.
75566         * lib/trim.c: New file.
75567
75568 2006-09-05  Bruno Haible  <bruno@clisp.org>
75569
75570         * MODULES.html.sh (String handling): Add trim.
75571
75572 2006-09-04  Karl Berry  <karl@gnu.org>
75573
75574         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75575         until next release.
75576
75577 2006-09-03  Bruno Haible  <bruno@clisp.org>
75578
75579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75580         correctly.
75581
75582 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75583
75584         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75585         not gl_GETLOADAVG.  Omit unneeded semicolons.
75586         Problems reported by Ralf Wildenhues in
75587         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75588         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75589         at the end, which is the usual gnulib style.
75590
75591         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75592         of doing all the work ourselves.
75593         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75594         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75595
75596 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75599         Problem reported by Ralf Wildenhues in
75600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75601
75602         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75603         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75604
75605 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75608         yesterday's patch by changing test -n to test -z.
75609
75610 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75613         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75614         the former is now obsolescent.
75615
75616         * modules/chdir-long (Depends-on): Add fcntl.
75617
75618 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75621         obsolescent, and programs should use gnulib instead.
75622         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75623         but with prefixes changed.
75624
75625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75628         or stdbool.h, because they might not exist while configuring.
75629
75630         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75631         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75632         does that for us.
75633         (O_DIRECTORY): Remove.
75634
75635 2006-08-31  Eric Blake  <ebb9@byu.net>
75636
75637         * gnulib-tool: Don't let emacs change spaces to TAB.
75638
75639 2006-08-31  Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool: When calling func_import more than once, do it in a
75642         subshell.
75643         Reported by Eric Blake <ebb9@byu.net>.
75644
75645 2006-08-31  Bruno Haible  <bruno@clisp.org>
75646
75647         * gnulib-tool (nl): Remove variable.
75648         (sed_transform_lib_file): Use more robust test for config-h module.
75649         (func_import): Fix typo in 2006-08-25 patch.
75650
75651 2006-08-31  Bruno Haible  <bruno@clisp.org>
75652
75653         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75654         specified, augment Makefile.am variables instead of assigning them.
75655
75656 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75657
75658         Work around a bug in both the Linux and SunOS 64-bit kernels:
75659         nanosleep mishandles sleeps for longer than 2**31 seconds.
75660         Problem reported by Frank v Waveren in
75661         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75663         Check for nanosleep bug.
75664         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75665
75666 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         Work around a bug in both the Linux and SunOS 64-bit kernels:
75669         nanosleep mishandles sleeps for longer than 2**31 seconds.
75670         Problem reported by Frank v Waveren in
75671         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75672         * lib/nanosleep.c (BILLION): New constant.
75673         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75674         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75675         implementation.
75676
75677 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * modules/nanosleep (Depends-on): Add gettime.
75680
75681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75682         and Simon Josefsson  <jas@extundo.com>
75683         and Oskar Liljeblad  <oskar@osk.mine.nu>
75684
75685         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75686         * gnulib-tool (func_import): New license type 'unmodifiable license
75687         text'.
75688         * modules/fdl: Use it.  Longer description.
75689         * module/gpl, module/lgpl: New files.
75690
75691 2006-08-30  Jim Meyering  <jim@meyering.net>
75692
75693         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75694         shadowing the parameter.
75695
75696 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75697
75698         Sync from Libtool:
75699
75700         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75701
75702         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75703         sharing with gnulib.  Report by Eric Blake.
75704
75705 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * modules/isapipe: New file.
75708         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75709
75710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * modules/configmake (Makefile.am): Add a comment, and omit
75713         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75714         by Bruno Haible.
75715
75716 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * m4/isapipe.m4: New file.
75719
75720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * lib/isapipe.c, lib/isapipe.h: New files.
75723
75724 2006-08-29  Jim Meyering  <jim@meyering.net>
75725
75726         * modules/configmake (Makefile.am): Make configmake.h depend on
75727         Makefile.  Otherwise, a stale configmake.h could hang around.
75728
75729 2006-08-29  Eric Blake  <ebb9@byu.net>
75730
75731         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75732         resolution of upstream bug 3044.
75733
75734 2006-08-29  Bruno Haible  <bruno@clisp.org>
75735
75736         * modules/localcharset (Depends-on): Add configmake.
75737         (Makefile.am): Remove setting of LIBDIR through DEFS.
75738
75739 2006-08-29  Bruno Haible  <bruno@clisp.org>
75740
75741         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75742         defined.
75743
75744 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         * modules/fcntl: New file.
75747         * modules/chdir-safer (Depends-on): Add fcntl.
75748         * modules/fts: Likewise.
75749         * modules/mkdir-p: Likewise.
75750
75751         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75752         This undoes the most recent change, since we're now addressing the
75753         problem in a different way.
75754
75755         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75756         into output, since the output might be called Makefile.am even
75757         if $makefile_name is something different.
75758         (func_import): Use $makefile_am rather than
75759         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75760         empty.
75761
75762         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75763
75764 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75767         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75768         recent change to stdint.m4, since we're now addressing the problem in a
75769         different way.
75770
75771 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * m4/fcntl_h.m4: New file.
75774
75775 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75776
75777         * lib/fcntl_.h: New file.
75778         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75779         the fcntl module.
75780         * lib/dirchownmod.c: Likewise.
75781         * lib/fts.c: Likewise.
75782
75783         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75784         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75785         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75786         just before including <inttypes.h>, to avoid circular inclusion.
75787
75788 2006-08-28  Jim Meyering  <jim@meyering.net>
75789
75790         * doc/visibility.texi: Actually read and correct the grammar of the
75791         sentence affected by yesterday's change.
75792
75793 2006-08-28  Eric Blake  <ebb9@byu.net>
75794
75795         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75796         needs wrapper.
75797
75798 2006-08-28  Eric Blake  <ebb9@byu.net>
75799
75800         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75801
75802 2006-08-28  Eric Blake  <ebb9@byu.net>
75803
75804         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75805
75806 2006-08-28  Bruno Haible  <bruno@clisp.org>
75807
75808         * modules/c-strstr: New file, from GNU gettext.
75809         * MODULES.html.sh (String handling): Add c-strstr.
75810
75811 2006-08-28  Bruno Haible  <bruno@clisp.org>
75812
75813         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75814         macros.
75815         Reported by Eric Blake.
75816
75817 2006-08-28  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75820         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75821         * lib/vasprintf.c: Include errno.h, limits.h.
75822         (EOVERFLOW): New fallback definition.
75823         (vasprintf): Test here whether the string length is > INT_MAX.
75824         * lib/vsnprintf.c: Include errno.h, limits.h.
75825         (EOVERFLOW): New fallback definition.
75826         (vsnprintf): Fix bug when generated string was too long for the buffer.
75827         Test here whether the string length is > INT_MAX.
75828
75829 2006-08-28  Bruno Haible  <bruno@clisp.org>
75830
75831         * lib/inttypes_.h (SCNX*): Remove definitions.
75832         Reported by Eric Blake.
75833
75834 2006-08-28  Bruno Haible  <bruno@clisp.org>
75835
75836         * lib/c-strstr.h: New file, from GNU gettext.
75837         * lib/c-strstr.c: New file, from GNU gettext.
75838
75839 2006-08-28  Bruno Haible  <bruno@clisp.org>
75840
75841         * gnulib-tool: Reorder some statements.
75842
75843 2006-08-28  Bruno Haible  <bruno@clisp.org>
75844
75845         * gnulib-tool: New option --makefile-name.
75846         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75847         $makefile_name.
75848         (func_import): Write $makefile_name to the cache file, and read it from
75849         there unless explicitly specified. Use $makefile_name as file name
75850         instead of Makefile.am. Adjust the recommendations accordingly.
75851
75852 2006-08-28  Bruno Haible  <bruno@clisp.org>
75853
75854         * gnulib-tool (func_verify_module): Check against misapplying patch.
75855
75856 2006-08-28  Bruno Haible  <bruno@clisp.org>
75857
75858         * gnulib-tool (func_relativize, func_relconcat): New functions.
75859         Give an error if --local-dir is given with --update.
75860         Remove trailing slashes from $local_gnulib_dir.
75861         (func_import): Store the relativized $local_gnulib_dir in
75862         gnulib-cache.m4, and read it from there if not specified explicitly.
75863
75864 2006-08-28  Bruno Haible  <bruno@clisp.org>
75865
75866         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75867         is the current directory. Respect also $local_gnulib_dir.
75868
75869 2006-08-28  Bruno Haible  <bruno@clisp.org>
75870             Simon Josefsson  <jas@extundo.com>
75871
75872         BeOS portability.
75873         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75874
75875 2006-08-27  Jim Meyering  <jim@meyering.net>
75876
75877         * doc/visibility.texi: Remove duplicate word: "pointer".
75878
75879 2006-08-26  Bruno Haible  <bruno@clisp.org>
75880
75881         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75882         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75883         (Makefile.am): Create inttypes.h from inttypes_.h.
75884         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75885
75886         * modules/imaxabs: New file.
75887
75888         * modules/imaxdiv: New file.
75889
75890 2006-08-26  Bruno Haible  <bruno@clisp.org>
75891
75892         * m4/inttypes.m4: New file.
75893         * m4/_inttypes_h.m4: Remove file.
75894         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75895         PRI_MACROS_BROKEN.
75896         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75897
75898         * m4/imaxabs.m4: New file.
75899
75900         * m4/imaxdiv.m4: New file.
75901
75902 2006-08-26  Bruno Haible  <bruno@clisp.org>
75903
75904         * lib/inttypes_.h: New file.
75905         * lib/inttypes.h: Remove file.
75906         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75907
75908         * lib/imaxabs.c: New file.
75909
75910         * lib/imaxdiv.c: New file.
75911
75912 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         New config-h module, so that "make" output needn't be cluttered
75915         by -DHAVE_CONFIG_H.
75916         * MODULES.html.sh (Support for building libraries and executables):
75917         Add config-h.
75918         * modules/config-h: New file.
75919         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75920         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75921         the config-h module is used.
75922
75923         New configmake module, so that "make" output needn't be cluttered
75924         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75925         * MODULES.html.sh (Support for building libraries and executables):
75926         Add configmake.
75927         * modules/configmake: New file.
75928
75929 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * m4/config-h.m4: New file.
75932
75933 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * config/srclist.txt: Add elisp-comp.
75936
75937 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * MODULES.html.sh (Support for building libraries and executables):
75940         Add elisp-comp.
75941         * build-aux/elisp-comp: New file.
75942         * modules/elisp-comp: New file.
75943
75944 2006-08-24  Bruno Haible  <bruno@clisp.org>
75945
75946         * gnulib-tool (func_create_testdir): Use non-default values of
75947         sourcebase and m4base.
75948
75949 2006-08-24  Bruno Haible  <bruno@clisp.org>
75950
75951         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75952         HTML structure.
75953
75954 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * modules/openat (Depends-on): Add lchown.
75957
75958 2006-08-23  Bruno Haible  <bruno@clisp.org>
75959
75960         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75961         of gl_LOCK_EARLY instead of gl_LOCK.
75962
75963 2006-08-23  Bruno Haible  <bruno@clisp.org>
75964
75965         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75966         on OSF/1 to no.
75967         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75968
75969 2006-08-23  Bruno Haible  <bruno@clisp.org>
75970
75971         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75972         as unusable.
75973
75974         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75975         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75976         (gl_LOCK): New macro.
75977
75978 2006-08-22  Simon Josefsson  <jas@extundo.com>
75979
75980         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75981         to md5 module.
75982
75983 2006-08-22  Simon Josefsson  <jas@extundo.com>
75984
75985         * MODULES.html.sh: Add "Support for maintaining and release
75986         projects".
75987
75988         * build-aux/gnupload: New file, from coreutils.
75989
75990 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         Avoid the need for AC_LIBSOURCES in m4 macros.
75993         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75994         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75995         * modules/check-version (EXTRA_DIST): Add check-version.h.
75996         * modules/crc (EXTRA_DIST): Add crc.h.
75997         * modules/des (EXTRA_DIST): Add des.h.
75998         * modules/gc (EXTRA_DIST): Add gc.h.
75999         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76000         * modules/getline (EXTRA_DIST): Add getline.h.
76001         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76002         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76003         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76004         * modules/md2 (EXTRA_DIST): Add md2.h.
76005         * modules/md4 (EXTRA_DIST): Add md4.h.
76006         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76007         * modules/read-file (EXTRA_DIST): Add read-file.h.
76008         * modules/readline (EXTRA_DIST): Add readline.h.
76009         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76010         rijndael-api-fst.h.
76011
76012 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76013
76014         * m4/rijndael.m4 (gl_ARCFOUR):
76015         * m4/arctwo.m4 (gl_ARCTWO):
76016         * m4/check-version.m4 (gl_CHECK_VERSION):
76017         * m4/crc.m4 (gl_CRC):
76018         * m4/des.m4 (gl_DES):
76019         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76020         * m4/gc.m4 (gl_GC):
76021         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76022         * m4/getline.m4 (gl_FUNC_GETLINE):
76023         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76024         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76025         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76026         * m4/md2.m4 (gl_MD2):
76027         * m4/md4.m4 (gl_MD4):
76028         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76029         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76030         * m4/readline.m4 (gl_FUNC_READLINE):
76031         * m4/rijndael.m4 (gl_RIJNDAEL):
76032         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76033         to get the necessary .h files and whatnot.
76034
76035 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76036
76037         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76038         gnulib rather than the other way around.
76039         * config/srclistvars.sh (COREUTILS): Remove.
76040
76041 2006-08-22  Jim Meyering  <jim@meyering.net>
76042
76043         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76044
76045         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76046
76047 2006-08-22  Eric Blake  <ebb9@byu.net>
76048
76049         * modules/regexprops-generic: New file.
76050         * MODULES.html.sh (Support for building documentation): List it.
76051
76052 2006-08-22  Eric Blake  <ebb9@byu.net>
76053
76054         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76055         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76056         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76057         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76058
76059 2006-08-22  Bruno Haible  <bruno@clisp.org>
76060
76061         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76062         and lib_LTLIBRARIES like the other lib_* variables.
76063
76064 2006-08-22  Bruno Haible  <bruno@clisp.org>
76065
76066         * build-aux/x-to-1.in: New file, from GNU gettext.
76067
76068 2006-08-22  Bruno Haible  <bruno@clisp.org>
76069
76070         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76071         <utmpx.h> exists.
76072
76073 2006-08-22  Bruno Haible  <bruno@clisp.org>
76074
76075         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76076         <utmpx.h> exists.
76077
76078 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         BeOS portability.
76081         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76082         exist.
76083         Problem reported by Bruno Haible.
76084
76085 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         Avoid the need for AC_LIBSOURCES in m4 macros.
76088         * modules/acl (EXTRA_DIST): Add acl.h.
76089         * modules/argmatch (Files): Add m4/argmatch.m4.
76090         (configure.ac): Add gl_ARGMATCH.
76091         (EXTRA_DIST): Renamed from lib_SOURCES, for
76092         consistency with the other modules.  Remove argmatch.c.
76093         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76094         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76095         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76096         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76097         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76098         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76099         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76100         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76101         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76102         * modules/closeout (EXTRA_DIST): Add closeout.h.
76103         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76104         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76105         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76106         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76107         dirname.h; remove basename.c and stripslash.c.
76108         * modules/exclude (EXTRA_DIST): Add exclude.h.
76109         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76110         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76111         * modules/file-type (EXTRA_DIST): Add file-type.h.
76112         * modules/filemode (EXTRA_DIST): Add filemode.h.
76113         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76114         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76115         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76116         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76117         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76118         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76119         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76120         * modules/getdate (EXTRA_DIST): Add getdate.c.
76121         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76122         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76123         * modules/getpass (EXTRA_DIST): Add getpass.h.
76124         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76125         * modules/group-member (EXTRA_DIST): Add group-member.h.
76126         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76127         * modules/hash (EXTRA_DIST): Add hash.h.
76128         * modules/human (EXTRA_DIST): Add human.h.
76129         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76130         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76131         * modules/lchown (EXTRA_DIST): Add lchown.h.
76132         * modules/long-options (EXTRA_DIST): Add long-options.h.
76133         * modules/lstat (EXTRA_DIST): Add lstat.h.
76134         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76135         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76136         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76137         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76138         * modules/memxor (EXTRA_DIST): Add memxor.h.
76139         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76140         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76141         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76142         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76143         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76144         * modules/physmem (EXTRA_DIST): Add physmem.h.
76145         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76146         * modules/posixver (EXTRA_DIST): Add posixver.h.
76147         * modules/quote (EXTRA_DIST): Add quote.h.
76148         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76149         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76150         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76151         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76152         regex_internal.h regexec.c.
76153         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76154         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76155         * modules/same (EXTRA_DIST): Add same.h.
76156         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76157         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76158         * modules/savedir (EXTRA_DIST): Add savedir.h.
76159         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76160         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76161         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76162         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76163         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76164         * modules/strdup (EXTRA_DIST): Add strdup.h.
76165         * modules/strftime (EXTRA_DIST): Add strftime.h.
76166         * modules/strndup (EXTRA_DIST): Add strndup.h.
76167         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76168         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76169         * modules/time_r (EXTRA_DIST): Add time_r.h.
76170         * modules/timespec (EXTRA_DIST): Add timespec.h.
76171         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76172         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76173         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76174         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76175         * modules/userspec (EXTRA_DIST): Add userspec.h.
76176         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76177         * modules/utimens (EXTRA_DIST): Add utimens.h.
76178         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76179         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76180         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76181         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76182         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76183         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76184         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76185         * modules/yesno (EXTRA_DIST): Add yesno.h.
76186
76187 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76190
76191         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76192         * m4/dev-ino.m4, same-inode.m4: Remove.
76193
76194         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76195         * m4/acl.m4 (AC_FUNC_ACL):
76196         * m4/backupfile.m4 (gl_BACKUPFILE):
76197         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76198         * m4/canon-host.m4 (gl_CANON_HOST):
76199         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76201         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76202         * m4/cloexec.m4 (gl_CLOEXEC):
76203         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76204         * m4/closeout.m4 (gl_CLOSEOUT):
76205         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76206         * m4/dirname.m4 (gl_DIRNAME):
76207         * m4/exclude.m4 (gl_EXCLUDE):
76208         * m4/exitfail.m4 (gl_EXITFAIL):
76209         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76210         * m4/file-type.m4 (gl_FILE_TYPE):
76211         * m4/filemode.m4 (gl_FILEMODE):
76212         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76213         * m4/fpending.m4 (gl_FUNC_FPENDING):
76214         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76215         * m4/fts.m4 (gl_FUNC_FTS):
76216         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76217         * m4/getdate.m4 (gl_GETDATE):
76218         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76219         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76220         * m4/getpass.m4 (gl_FUNC_GETPASS):
76221         * m4/gettime.m4 (gl_GETTIME):
76222         * m4/getugroups.m4 (gl_GETUGROUPS):
76223         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76224         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76225         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76226         * m4/hash.m4 (gl_HASH):
76227         * m4/idcache.m4 (gl_IDCACHE):
76228         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76229         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76230         * m4/long-options.m4 (gl_LONG_OPTIONS):
76231         * m4/lstat.m4 (gl_FUNC_LSTAT):
76232         * m4/md5.m4 (gl_MD5):
76233         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76234         * m4/memcoll.m4 (gl_MEMCOLL):
76235         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76236         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76237         * m4/memxor.m4 (gl_MEMXOR):
76238         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76239         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76240         * m4/modechange.m4 (gl_MODECHANGE):
76241         * m4/mountlist.m4 (gl_MOUNTLIST):
76242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76243         * m4/openat.m4 (gl_FUNC_OPENAT):
76244         * m4/pathmax.m4 (gl_PATHMAX):
76245         * m4/physmem.m4 (gl_PHYSMEM):
76246         * m4/posixtm.m4 (gl_POSIXTM):
76247         * m4/posixver.m4 (gl_POSIXVER):
76248         * m4/quote.m4 (gl_QUOTE):
76249         * m4/quotearg.m4 (gl_QUOTEARG):
76250         * m4/readtokens.m4 (gl_READTOKENS):
76251         * m4/readutmp.m4 (gl_READUTMP):
76252         * m4/regex.m4 (gl_REGEX):
76253         * m4/safe-read.m4 (gl_SAFE_READ):
76254         * m4/safe-write.m4 (gl_SAFE_WRITE):
76255         * m4/same.m4 (gl_SAME):
76256         * m4/save-cwd.m4 (gl_SAVE_CWD):
76257         * m4/savedir.m4 (gl_SAVEDIR):
76258         * m4/settime.m4 (gl_SETTIME):
76259         * m4/sha1.m4 (gl_SHA1):
76260         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76261         * m4/stat-macros.m4 (gl_STAT_MACROS):
76262         * m4/stat-time.m4 (gl_STAT_TIME):
76263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76264         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76265         * m4/strdup.m4 (gl_FUNC_STRDUP):
76266         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76267         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76268         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76269         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76270         * m4/time_r.m4 (gl_TIME_R):
76271         * m4/timespec.m4 (gl_TIMESPEC):
76272         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76273         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76274         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76275         * m4/userspec.m4 (gl_USERSPEC):
76276         * m4/utimecmp.m4 (gl_UTIMECMP):
76277         * m4/utimens.m4 (gl_UTIMENS):
76278         * m4/xalloc.m4 (gl_XALLOC):
76279         * m4/xgetcwd.m4 (gl_XGETCWD):
76280         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76281         * m4/xreadlink.m4 (gl_XREADLINK):
76282         * m4/xstrtod.m4 (gl_XSTRTOD):
76283         * m4/yesno.m4 (gl_YESNO):
76284         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76285         to get the necessary .h files and whatnot.
76286
76287 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76288             Bruno Haible  <bruno@clisp.org>
76289
76290         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76291         /bin/sh understanding of '!' conditional negation.
76292
76293 2006-08-21  Jim Meyering  <jim@meyering.net>
76294
76295         * modules/openat (Depends-on): Really alphabetize.
76296
76297         * modules/acl (Depends-on): Add error and quote.
76298
76299         * check-module (find_included_lib_files): Add at-func.c to the
76300         ok-to-include-more-than-once white list.
76301
76302         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76303
76304 2006-08-21  Bruno Haible  <bruno@clisp.org>
76305
76306         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76307         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76308         Reported by Martin Lambers <marlam@marlam.de>.
76309
76310 2006-08-21  Bruno Haible  <bruno@clisp.org>
76311
76312         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76313         specify an installation location, don't emit a noinst_LIBRARIES or
76314         noinst_LTLIBRARIES assignment.
76315
76316 2006-08-21  Bruno Haible  <bruno@clisp.org>
76317
76318         BeOS portability.
76319         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76320         BeOS has mbrtowc() but no <wctype.h>.
76321
76322 2006-08-21  Bruno Haible  <bruno@clisp.org>
76323
76324         BeOS portability.
76325         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76326         exist.
76327
76328 2006-08-21  Bruno Haible  <bruno@clisp.org>
76329
76330         BeOS portability.
76331         * lib/mbchar.h: Include <wctype.h> only if it exists.
76332
76333 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76334
76335         Remove files that are no longer needed by their respective modules.
76336         * m4/obstack.m4: Remove.
76337         * m4/strerror_r.m4: Remove.
76338         * m4/uint32_t.m4: Remove.
76339         * m4/uintptr_t.m4: Remove.
76340         * m4/ullong_max.m4: Remove.
76341         * m4/xstrtoimax.m4: Remove.
76342         * m4/xstrtoumax.m4: Remove.
76343
76344         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76345         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76346         dependencies now capture this.
76347
76348         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76349         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76350         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76351         * m4/human.m4 (gl_HUMAN): Likewise.
76352         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76353         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76354
76355         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76356
76357         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76358         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76359         stdint.
76360         * m4/human.m4 (gl_HUMAN): Likewise.
76361         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76362         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76363         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76364         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76365         * m4/xstrtol (gl_XSTRTOL): Likewise.
76366
76367         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76368         AC_TYPE_LONG_LONG_INT.
76369         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76370         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76371         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76372         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76373
76374         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76375         on stdbool.
76376
76377         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76378         (gl_PREREQ_XSTRTOUL): Remove.
76379
76380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76381
76382         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76383         mode.
76384
76385 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         Add and change modules to make it easier for coreutils to use
76388         gnulib-tool.
76389         * modules/backupfile (Files): Remove m4/d-ino.m4.
76390         (Depends-on): Add d-ino.
76391         * modules/cycle-check (Depends-on): Add stdint.
76392         (lib_SOURCES): Add cycle-check.h.
76393         * modules/d-ino: New module.
76394         * modules/d-type: New module.
76395         * modules/error (Files): Remove m4/strerror_r.m4.
76396         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76397         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76398         m4/inttypes_h.m4, m4/uintmax_t.m4.
76399         (Depends-on): Add stdint.
76400         (lib_SOURCES): Add fsusage.h.
76401         * modules/getcwd (Files): Remove d-ino.m4.
76402         (Depends-on): Add d-ino.
76403         * modules/getndelim2 (Depends-on): Add stdint.
76404         * modules/glob (Files): Remove m4/d-type.m4.
76405         (Depends-on): Add d-type.
76406         * modules/host-os: New module.
76407         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76408         m4/inttypes_h.m4, m4/uintmax_t.m4.
76409         * Depends-on: Add stdint.
76410         (lib_SOURCES): Add human.h.
76411         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76412         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76413         m4/uintmax_t.m4, m4/ulonglong.m4.
76414         (Depends-on): Add stdint.
76415         (EXTRA_DIST): Add inttostr.h.
76416         * modules/lchmod: New module.
76417         * modules/link-follow: New module.
76418         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76419         (Depends-on): Add lchmod.
76420         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76421         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76422         (Depends-on): Add stdint.
76423         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76424         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76425         (Depends-on): Add stdint.
76426         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76427         * modules/perl: New module.
76428         * modules/regex (Depends-on): Add stdint.
76429         * modules/rmdir-errno: New module.
76430         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76431         m4/intmax_t.m4.
76432         (Depends-on): Add stdint.
76433         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76434         m4/uintmax_t.m4.
76435         (Depends-on): Add stdint.
76436         * modules/unlink-busy: New module.
76437         * modules/utimecmp (Depends-on): Add stdint.
76438         * modules/uptime: New module.
76439         * modules/winsz-ioctl: New module.
76440         * modules/winsz-termios: New module.
76441         * modules/xnanosleep (Depends-on): Add nanosleep.
76442         * modules/ullong_max: Remove.
76443         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76444         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76445         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76446         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76447         (Depends-on): Add inttypes.
76448         (lib_SOURCES): Add xstrtol.h.
76449         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76450         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76451         * MODULES.html.sh: Move 'assert' into the assert section.
76452         Move 'dummy' into the linking section.
76453         Remove ullong_max.
76454         Add section for compatibility checks for POSIX:2001 functions,
76455         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76456         winsz-ioctl, and winsz-termios into it.
76457         Add lchmod.
76458         Add top-level Misc section and put host-os, perl, and uptime
76459         into it.
76460
76461 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76464         now assume the stdint module.  Do not include inttypes.h.
76465         * lib/fsusage.h: Likewise.
76466         * lib/getndelim2.c: Likewise.
76467         * lib/human.h: Likewise.
76468         * lib/inttostr.h: Likewise.
76469         * lib/obstack.c: Likewise.
76470         * lib/regex_internal.h: Likewise.
76471         * lib/tempname.c: Likewise.
76472         * lib/utimecmp.c: Likewise.
76473         * lib/xstrtol.h: Likewise.
76474
76475         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76476
76477         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76478         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76479         * lib/xtime.h: Likewise.
76480
76481 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * modules/openat (Files): Add lib/fchmodat.c.
76484         Fixes problem reported by Jay Youngman.
76485
76486 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76489         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76490
76491 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76492             Bruno Haible  <bruno@clisp.org>
76493
76494         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76495         and is a script that invokes bison. Tighten the code. Add comments.
76496
76497 2006-08-18  Jim Meyering  <jim@meyering.net>
76498
76499         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76500         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76501         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76502         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76503
76504 2006-08-18  Bruno Haible  <bruno@clisp.org>
76505
76506         * modules/bison-i18n: New file.
76507         * MODULES.html.sh (Internationalization functions): Add it.
76508
76509 2006-08-18  Bruno Haible  <bruno@clisp.org>
76510
76511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76512         sys/statvfs.h. When getmntinfo was found, check its declaration and
76513         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76514
76515 2006-08-18  Bruno Haible  <bruno@clisp.org>
76516
76517         * m4/bison-i18n.m4: New file, from bison.
76518
76519 2006-08-18  Bruno Haible  <bruno@clisp.org>
76520
76521         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76522         (ME_DUMMY): Treat "kernfs" as a dummy.
76523         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76524
76525 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         Update from coreutils.
76528
76529         2006-08-15  Jim Meyering  <jim@meyering.net>
76530
76531         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76532
76533         2006-01-17  Jim Meyering  <jim@meyering.net>
76534
76535         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76536
76537         2006-01-11  Jim Meyering  <jim@meyering.net>
76538
76539         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76540         Check for the lchmod function.
76541
76542 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         Update from coreutils.
76545
76546         * lib/__fpending.h: Add copyright notice.
76547         * lib/fprintftime.h: Likewise.
76548         * lib/savedir.c: Use (C) in copyright notice.
76549         * lib/savedir.h: Likewise.
76550
76551         2006-08-15  Jim Meyering  <jim@meyering.net>
76552
76553         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76554         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76555         in support of the EXPECTED_ERRNO macro.
76556         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76557         definitions.  Instead, define the appropriate symbols and include
76558         "at-func.c".
76559         * lib/mkdirat.c (mkdirat): Likewise.
76560         * lib/fchmodat.c (fchmodat): Likewise.
76561         (ENOSYS): Remove definition.
76562         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76563         it.  Don't include "unistd--.h" -- it wasn't ever used.
76564
76565         2006-01-17  Jim Meyering  <jim@meyering.net>
76566
76567         Rewrite fts.c not to change the current working directory,
76568         by using openat, fstatat, fdopendir, etc..
76569
76570         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76571         (HAVE_OPENAT_SUPPORT): Define.
76572         [_LIBC] (fchdir): Don't undef or define; no longer used.
76573         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76574         Now, this `function' always succeeds, and consumes its file descriptor
76575         parameter -- so callers must not close such FDs.  Update callers.
76576         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76577         (diropen): Add parameter, SP.  Adjust all callers.
76578         Implement using diropen_fd, rather than open.
76579         (fts_open): Initialize new member, fts_cwd_fd.
76580         Remove fts_rft-setting code.
76581         (fts_close): Close fts_cwd_fd, if necessary.
76582         (__opendir2): Define in terms of opendir or opendirat,
76583         depending on whether the FST_NOCHDIR flag is set.
76584         (fts_build): Since fts_safe_changedir consumes its FD, and since
76585         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76586         and close the dup'd file descriptor upon failure.
76587         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76588         (fts_safe_changedir): Tweak semantics to reflect that this function
76589         now calls cwd_advance_fd and hence consumes its FD argument.
76590         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76591         [struct FTS] (fts_rft): Remove now-unused member.
76592         [struct FTS] (fts_cycle.state): Improve comment.
76593
76594         * lib/openat.c (openat_needs_fchdir): New function.
76595         * lib/openat.h (openat_needs_fchdir): Declare it.
76596
76597 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76600         Problem and fix reported by Pádraig Brady in
76601         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76602
76603 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76606
76607 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76608
76609         * lib/memcoll.c (memcoll): Optimize for the common case where the
76610         arguments are bytewise equal.
76611
76612 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * doc/regexprops-generic.texi: Add a copyright notice.
76615
76616 2006-08-15  Bruno Haible  <bruno@clisp.org>
76617
76618         * modules/tmpdir (License): Change to LGPL.
76619
76620 2006-08-15  Bruno Haible  <bruno@clisp.org>
76621
76622         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76623         module.
76624
76625 2006-08-14  Simon Josefsson  <jas@extundo.com>
76626
76627         * config/srclist.txt: Add gnupload.
76628
76629 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         Change copyright notice from LGPL 2 to GPL 2, since that's the
76632         standard form used in the gnulib repository.
76633         * tests/test-lock.c: Likewise.
76634         * tests/test-stdint.c: Likewise.
76635         * tests/test-tls.c: Likewise.
76636
76637         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76638         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76639         Add copyright notice.
76640
76641         * check-module: Add copyright notice.  Output a copyright
76642         notice if "--version" is specified.
76643         * modules/COPYING: New file.
76644         * tests/test-getaddrinfo.c: Add copyright notice.
76645         * tests/test-verify.c: Likewise.
76646
76647 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         Change copyright notice from LGPL 2 to GPL 2, since that's the
76650         standard form used in the gnulib repository.
76651         * lib/lock.c: LGPL -> GPL.
76652         * lib/lock.h: Likewise.
76653         * lib/strnlen1.c: Likewise.
76654         * lib/strnlen1.h: Likewise.
76655         * lib/tls.c: Likewise.
76656         * lib/tls.h: Likewise.
76657         * lib/tmpdir.c: Likewise.
76658
76659         * lib/TODO: Remove; this belongs only in coreutils.
76660
76661 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         Add copyright notices to long-enough files that lack them, since
76664         otherwise the files aren't clearly free.  Use the same notice that
76665         getdate.texi already uses.
76666         * doc/alloca-opt.texi: Add copyright notice.
76667         * doc/alloca.texi: Likewise.
76668         * doc/ctime.texi: Likewise.
76669         * doc/functions.texi: Likewise.
76670         * doc/gcd.texi: Likewise.
76671         * doc/gnulib-tool.texi: Likewise.
76672         * doc/inet_ntoa.texi: Likewise.
76673         * doc/visibility.texi: Likewise.
76674
76675         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76676         * doc/quote.texi: Add copyright notice.
76677
76678         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76679         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76680         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76681         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76682         is now obsolete, and give a pointer to the Sun list.
76683         Add copyright notice.
76684
76685 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         * config/srclistvars.sh: Add copyright notice.
76688
76689 2006-08-14  Eric Blake  <ebb9@byu.net>
76690
76691         Import the following change from libc:
76692
76693         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76694
76695         Upstream bug 2997.
76696         * lib/misc/error.c: Add space between program name and message if file
76697         name is missing.
76698
76699 2006-08-12  Karl Berry  <karl@gnu.org>
76700
76701         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76702         remove, these originate in gnulib now.
76703
76704 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76705
76706         * doc/Makefile (standards.info standards.html standards.dvi):
76707         Also depend on make-stds.texi.
76708
76709 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76712         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76713
76714         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76715         in wchar_t.  Problem reported by Eric Blake.
76716
76717         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76718         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76719         Also, help the compiler to keep LEN in a register.
76720
76721 2006-08-11  Eric Blake  <ebb9@byu.net>
76722
76723         * users.txt: Sort.  Add tar.
76724
76725 2006-08-11  Bruno Haible  <bruno@clisp.org>
76726
76727         * users.txt: New file.
76728
76729 2006-08-11  Bruno Haible  <bruno@clisp.org>
76730
76731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76732         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76733
76734 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * modules/snprintf (Depends-on): Remove minmax.
76737         (Maintainer): Add self and Bruno.
76738
76739 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76742         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76743         (EOVERFLOW): Define if the system does not.
76744         Do not include "minmax.h"; it wasn't used.
76745         (snprintf): Don't assume size_t promotes to an unsigned type.
76746         Fix bug when generated string was too long for the buffer: the
76747         buffer's contents are supposed to be the initial prefix of the
76748         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76749         exceeds INT_MAX; do the check ourselves.
76750
76751         Import the following changes from libc:
76752
76753         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76754
76755         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76756         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76757         set wc to the byte which couldn't be converted.
76758         (re_string_reconstruct): Don't clear valid_raw_len before calling
76759         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76760         tip_context using re_string_context_at.
76761
76762         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76763
76764         * lib/posix/regex.h: g++ still cannot handled [restrict].
76765
76766         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76767
76768         * lib/posix/regex.h: Remove special handling for VMS.
76769
76770 2006-08-10  Jim Meyering  <jim@meyering.net>
76771
76772         * modules/same-inode: New module.
76773         * modules/dev-ino: New module.
76774         * modules/cycle-check: Depend on these modules, rather than simply
76775         including their .h files.
76776         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76777         required via m4/cycle-check.m4.
76778         * modules/same: Depend on new same-inode module, rather than
76779         including same-inode.h.
76780         * modules/chdir-safer: New file.
76781
76782         * modules/chown (Depends-on): Add stat-macros.
76783
76784 2006-08-10  Jim Meyering  <jim@meyering.net>
76785
76786         * m4/cycle-check.m4: New file.
76787         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76788         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76789
76790 2006-08-10  Eric Blake  <ebb9@byu.net>
76791
76792         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76793         in from original proposal.
76794
76795 2006-08-10  Eric Blake  <ebb9@byu.net>
76796         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76797
76798         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76799         namespace.
76800
76801 2006-08-10  Bruno Haible  <bruno@clisp.org>
76802
76803         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76804         as well.
76805
76806 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         Sync from coreutils.
76809
76810         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76811
76812         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76813         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76814
76815 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * modules/restrict: Remove; no longer needed now that we assume
76818         Autoconf 2.59 or later.
76819         * MODULES.html.sh: Remove 'restrict'.
76820         * modules/argp (Depends-on): Remove 'restrict'.
76821         * modules/base64 (Depends-on): Likewise.
76822         * modules/gc (Depends-on): Likewise.
76823         * modules/getaddrinfo (Depends-on): Likewise.
76824         * modules/glob (Depends-on): Likewise.
76825         * modules/inet_ntop (Depends-on): Likewise.
76826         * modules/inet_pton (Depends-on): Likewise.
76827         * modules/memxor (Depends-on): Likewise.
76828         * modules/regex (Depends-on): Likewise.
76829         * modules/strtok_r (Depends-on): Likewise.
76830         * modules/time_r (Depends-on): Likewise.
76831
76832 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76833
76834         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76835         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76836         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76837         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76838         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76839         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76840         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76841         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76842
76843         Merge from coreutils.
76844         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76845         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76847         * m4/time_r.m4 (gl_TIME_R): Likewise.
76848
76849 2006-08-09  Karl Berry  <karl@gnu.org>
76850
76851         * config/srclist.txt: no more gettext-tools, per Bruno.
76852
76853 2006-08-08  Eric Blake  <ebb9@byu.net>
76854
76855         * modules/verror: New module.
76856         * MODULES.html.sh: Document it.
76857
76858 2006-08-08  Eric Blake  <ebb9@byu.net>
76859
76860         * lib/verror.h, lib/verror.c: New files.
76861
76862 2006-08-08  Eric Blake  <ebb9@byu.net>
76863
76864         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76865         verror_at_line output complies with GNU Coding Standards even when
76866         file is NULL.
76867
76868 2006-08-07  Bruno Haible  <bruno@clisp.org>
76869
76870         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76871         versions of AIX.
76872         Reported by Ralf Wildenhues.
76873
76874 2006-08-07  Bruno Haible  <bruno@clisp.org>
76875
76876         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76877         in an AC_DEFUN. Needed so that the autoconf snippets can use
76878         AC_REQUIRE.
76879
76880 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76881
76882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76883         Initialize pkgdata_DATA.
76884         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76885         overriding it.
76886
76887 2006-08-06  Eric Blake  <ebb9@byu.net>
76888
76889         * lib/error.h: Fold in some upstream changes from glibc.
76890         * lib/error.c: Likewise.
76891
76892 2006-08-04  Bruno Haible  <bruno@clisp.org>
76893
76894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76895         Make the mostlyclean-local rule depend on mostlyclean-generic.
76896         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76897
76898 2006-07-31  Bruno Haible  <bruno@clisp.org>
76899
76900         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76901         <stdlib.h>, <string.h>.
76902
76903 2006-07-30  Bruno Haible  <bruno@clisp.org>
76904
76905         * modules/readlink (License): Change to LGPL.
76906
76907 2006-07-30  Bruno Haible  <bruno@clisp.org>
76908
76909         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76910         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76911         set PKGDATADIR to point to it.
76912
76913 2006-07-30  Bruno Haible  <bruno@clisp.org>
76914
76915         * modules/csharpexec (configure.ac): Comment out macro invocation.
76916         * modules/javaexec (configure.ac): Likewise.
76917         * modules/javacomp-script (configure.ac): Likewise.
76918
76919         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76920
76921 2006-07-30  Bruno Haible  <bruno@clisp.org>
76922
76923         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76924         linked-list.
76925
76926 2006-07-30  Bruno Haible  <bruno@clisp.org>
76927
76928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76929
76930 2006-07-30  Bruno Haible  <bruno@clisp.org>
76931
76932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76933         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76934         get removed.
76935
76936 2006-07-29  Bruno Haible  <bruno@clisp.org>
76937
76938         Make it possible for gnulib-tool to work with locally modified or
76939         augmented gnulib repositories.
76940         * gnulib-tool (func_usage): Document --local-dir option.
76941         (local_gnulib_dir): New variable.
76942         Handle --local-dir option.
76943         (func_lookup_file): New function.
76944         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76945         (func_get_description, func_get_filelist, func_get_description,
76946         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76947         func_get_automake_snippet, func_get_include_directive,
76948         func_get_license, func_get_maintainer): Use func_lookup_file.
76949         (func_import, func_create_testdir): Use func_lookup_file.
76950
76951 2006-07-29  Bruno Haible  <bruno@clisp.org>
76952
76953         * modules/setenv (Depends-on): Add unistd.
76954
76955 2006-07-29  Bruno Haible  <bruno@clisp.org>
76956
76957         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76958
76959 2006-07-29  Bruno Haible  <bruno@clisp.org>
76960
76961         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76962
76963 2006-07-29  Bruno Haible  <bruno@clisp.org>
76964
76965         * gnulib-tool (import, update): If there is no Makefile.am, look at
76966         aclocal.m4, instead of bailing out.
76967
76968 2006-07-29  Bruno Haible  <bruno@clisp.org>
76969
76970         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76971         Categorize the options by when they are useful.
76972
76973 2006-07-29  Bruno Haible  <bruno@clisp.org>
76974
76975         * gnulib-tool (func_usage): Document option --no-libtool.
76976         Handle option --no-libtool.
76977         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76978         for changed semantics of $libtool variable.
76979         (func_import): Likewise. If libtool is not used, show this through
76980         an option --no-libtool.
76981         (func_create_testdir): Update.
76982
76983 2006-07-29  Bruno Haible  <bruno@clisp.org>
76984
76985         * gnulib-tool (func_import): Extend error message about missing
76986         --doc-base.
76987
76988 2006-07-29  Bruno Haible  <bruno@clisp.org>
76989
76990         * gnulib-tool (func_import): Don't create the $docbase directory if
76991         there is no file to store there.
76992
76993 2006-07-29  Bruno Haible  <bruno@clisp.org>
76994
76995         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76996         relevant, look for configure.ac there, not in the current directory.
76997         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76998
76999 2006-07-29  Bruno Haible  <bruno@clisp.org>
77000
77001         * gnulib-tool (SORT): New variable.
77002         (func_usage): Undocument --assume-autoconf option.
77003         Remove --assume-autoconf option handling.
77004         (autoconf_minversion): Determine from the contents of configure.ac.
77005         (func_import): Remove autoconf_minversion handling.
77006         Suggested by Eric Blake.
77007
77008 2006-07-29  Bruno Haible  <bruno@clisp.org>
77009
77010         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77011
77012 2006-07-29  Bruno Haible  <bruno@clisp.org>
77013
77014         * config/srclist.txt (*setenv.[ch]): Remove rules.
77015
77016 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77017
77018         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77019
77020 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77021
77022         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77023         arpa/inet.h.
77024
77025 2006-07-28  Simon Josefsson  <jas@extundo.com>
77026
77027         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77028         * modules/inet_pton (Depends-on): Likewise.
77029
77030 2006-07-28  Simon Josefsson  <jas@extundo.com>
77031
77032         * m4/netinet_in_h.m4: New file.
77033
77034 2006-07-28  Simon Josefsson  <jas@extundo.com>
77035
77036         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77037         #include's.
77038
77039 2006-07-28  Simon Josefsson  <jas@extundo.com>
77040
77041         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77042         #include's.
77043
77044 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77047         setgid on directories only if they set these bits.
77048         * lib/modechange.h: Remove obsolete comment about masks.
77049
77050 2006-07-28  Eric Blake  <ebb9@byu.net>
77051
77052         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77053         macro expansion.
77054
77055 2006-07-28  Bruno Haible  <bruno@clisp.org>
77056
77057         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77058
77059 2006-07-28  Bruno Haible  <bruno@clisp.org>
77060
77061         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77062
77063 2006-07-28  Bruno Haible  <bruno@clisp.org>
77064
77065         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77066         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77067         Define fallbacks.
77068         Avoids link error on FreeBSD 4.x.
77069         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77070
77071         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77072         encoding.
77073         * lib/mbswidth.c (iswcntrl): Likewise.
77074
77075 2006-07-27  Bruno Haible  <bruno@clisp.org>
77076
77077         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77078         test.
77079
77080 2006-07-27  Bruno Haible  <bruno@clisp.org>
77081
77082         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77083         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77084         defined.
77085
77086 2006-07-26  Eric Blake  <ebb9@byu.net>
77087
77088         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77089
77090 2006-07-26  Eric Blake  <ebb9@byu.net>
77091
77092         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77093         like mingw that lack mkstemp.
77094         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77095         avoid compilation warning on mingw.
77096
77097 2006-07-26  Bruno Haible  <bruno@clisp.org>
77098
77099         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77100         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77101         INT_FAST*_MIN, INTPTR_MIN.
77102
77103 2006-07-25  Bruno Haible  <bruno@clisp.org>
77104
77105         * modules/version-etc (Depends-on): Add stdarg.
77106
77107 2006-07-25  Bruno Haible  <bruno@clisp.org>
77108
77109         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77110         complex commands.
77111
77112 2006-07-25  Bruno Haible  <bruno@clisp.org>
77113
77114         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77115         defined in <stdarg.h> or config.h.
77116
77117 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77120         (gl_STDIO_SAFER): Remove.
77121
77122 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * MODULES.html.sh (File stream based Input/Output):
77125         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77126         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77127         * modules/fopen-safer, modules/tmpfile-safer: New files.
77128         * modules/stdio-safer: Remove.
77129
77130 2006-07-24  Bruno Haible  <bruno@clisp.org>
77131
77132         * modules/tmpdir: New file.
77133         * MODULES.html.sh (File system functions): Add it.
77134
77135 2006-07-24  Bruno Haible  <bruno@clisp.org>
77136
77137         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77138         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77139
77140 2006-07-24  Bruno Haible  <bruno@clisp.org>
77141
77142         * modules/clean-temp: New file.
77143
77144 2006-07-24  Bruno Haible  <bruno@clisp.org>
77145
77146         * m4/tmpdir.m4: New file, from GNU gettext.
77147
77148 2006-07-24  Bruno Haible  <bruno@clisp.org>
77149
77150         * lib/tmpdir.h: New file, from GNU gettext.
77151         * lib/tmpdir.c: New file, from GNU gettext.
77152
77153 2006-07-24  Bruno Haible  <bruno@clisp.org>
77154
77155         * lib/clean-temp.h: New file, from GNU gettext.
77156         * lib/clean-temp.c: New file, from GNU gettext.
77157
77158 2006-07-23  Eric Blake  <ebb9@byu.net>
77159
77160         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77161         (Depends-on): Add binary-io.
77162
77163 2006-07-23  Eric Blake  <ebb9@byu.net>
77164
77165         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77166
77167 2006-07-23  Eric Blake  <ebb9@byu.net>
77168
77169         * lib/tmpfile-safer.c: New file.
77170         * lib/stdio-safer.h (fopen_safer): Add prototype.
77171         * lib/stdio--.h (tmpfile): Make safer.
77172
77173 2006-07-23  Bruno Haible  <bruno@clisp.org>
77174
77175         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77176         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77177         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77178         gl_linked_remove_at): Use it.
77179
77180 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77181         and Simon Josefsson <jas@extundo.com>
77182
77183         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77184
77185         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77186
77187 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * modules/close-stream: New file.
77190         * modules/closeout (Description): Make it clear that it exits
77191         with a diagnostic on error.
77192         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77193         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77194
77195 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * m4/close-stream.m4: New file.
77198
77199 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77200
77201         * lib/close-stream.c, lib/close-stream.h: New files.
77202
77203 2006-07-22  Bruno Haible  <bruno@clisp.org>
77204
77205         Merge from GNU gettext 0.15.
77206
77207         2006-05-01  Bruno Haible  <bruno@clisp.org>
77208
77209                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77210
77211         2006-07-22  Bruno Haible  <bruno@clisp.org>
77212
77213                 * modules/javaversion: New file.
77214                 * MODULES.html.sh (Java): Add javaversion.
77215
77216         2006-03-12  Bruno Haible  <bruno@clisp.org>
77217
77218                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77219
77220         2005-12-04  Bruno Haible  <bruno@clisp.org>
77221
77222                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77223                 (untested).
77224
77225         2006-06-21  Bruno Haible  <bruno@clisp.org>
77226
77227                 Avoid warnings from recent versions of mcs.
77228                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77229                 -o, -L, -r any more. Use options documented since mcs-1.0
77230                 instead. Similarly for -g.
77231
77232         2005-12-04  Bruno Haible  <bruno@clisp.org>
77233
77234                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77235                 .resources, not .resource.
77236
77237         2005-07-09  Bruno Haible  <bruno@clisp.org>
77238
77239                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77240                 add a .dll suffix.
77241                 Reported by Mark Junker <mjscod@gmx.de>.
77242
77243         2006-07-22  Bruno Haible  <bruno@clisp.org>
77244
77245                 * modules/gettext: Upgrade to gettext-0.15.
77246                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77247                 m4/visibility.m4.
77248                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77249
77250 2006-07-22  Bruno Haible  <bruno@clisp.org>
77251
77252         Merge from GNU gettext 0.15.
77253
77254         2006-03-25  Bruno Haible  <bruno@clisp.org>
77255
77256                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77257
77258         2006-07-21  Bruno Haible  <bruno@clisp.org>
77259
77260                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77261                 "1.1".
77262
77263         2006-05-09  Bruno Haible  <bruno@clisp.org>
77264
77265                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77266                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77267                 for the conftestver execution.
77268
77269         2006-05-01  Bruno Haible  <bruno@clisp.org>
77270
77271                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77272                 optional target-version argument. Verify that the compiler
77273                 groks source of the specified source-version, or add -source
77274                 option as necessary. Verify that the compiler produces
77275                 bytecode in the specified target-version, or add -target and
77276                 -source options as necessary. Make the result of the test
77277                 available as variable CONF_JAVAC. Also log error output in
77278                 config.log.
77279
77280         2006-03-11  Bruno Haible  <bruno@clisp.org>
77281
77282                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77283
77284         2006-05-09  Bruno Haible  <bruno@clisp.org>
77285
77286                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77287                 CLASSPATH_SEPARATOR to a semicolon.
77288
77289         2006-03-12  Bruno Haible  <bruno@clisp.org>
77290
77291                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77292                 available as variable CONF_JAVA, for subsequent autoconf
77293                 tests. Also log error output in config.log.
77294
77295         2006-07-19  Bruno Haible  <bruno@clisp.org>
77296
77297                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77298                 that getline works on glibc2 systems. Needed to avoid trouble
77299                 in relocatable.c.
77300                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77301
77302         2005-12-04  Bruno Haible  <bruno@clisp.org>
77303
77304                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77305                 launcher (untested).
77306
77307         2005-12-04  Bruno Haible  <bruno@clisp.org>
77308
77309                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77310
77311         2006-07-22  Bruno Haible  <bruno@clisp.org>
77312
77313                 * gettext.m4: Update from GNU gettext-0.15.
77314                 * nls.m4: Likewise.
77315                 * po.m4: Likewise.
77316                 * inttypes-pri.m4: Likewise.
77317                 * inttypes-h.m4: Renamed from inttypes.m4.
77318                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77319
77320 2006-07-22  Bruno Haible  <bruno@clisp.org>
77321
77322         Merge from GNU gettext 0.15.
77323
77324         2005-07-05  Bruno Haible  <bruno@clisp.org>
77325
77326                 * printf-args.c (printf_fetchargs): Work around broken
77327                 definition of wint_t on mingw.
77328
77329         2005-02-12  Bruno Haible  <bruno@clisp.org>
77330
77331                 * xallocsa.h: Add extern "C" for C++.
77332
77333         2006-05-17  Bruno Haible  <bruno@clisp.org>
77334
77335                 Cygwin portability.
77336                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77337
77338         2006-04-30  Bruno Haible  <bruno@clisp.org>
77339
77340                 * progreloc.c: Include <mach-o/dyld.h> if available.
77341                 (find_executable): Use _NSGetExecutablePath when possible.
77342
77343         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77344
77345                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77346                 function.
77347
77348         2005-12-29  Bruno Haible  <bruno@clisp.org>
77349
77350                 * progreloc.c (set_program_name_and_installdir): Fix
77351                 compilation error.
77352
77353         2005-12-04  Bruno Haible  <bruno@clisp.org>
77354
77355                 Cygwin portability.
77356                 * progreloc.c: Include <windows.h> also on Cygwin.
77357                 (find_executable): Add support for Cygwin.
77358                 (set_program_name_and_installdir): Handle also platforms with
77359                 nonempty EXEEXT.
77360
77361         2006-07-11  Bruno Haible  <bruno@clisp.org>
77362
77363                 * javacomp.c: Fix a comment.
77364                 Reported by Jim Meyering.
77365
77366         2006-04-30  Bruno Haible  <bruno@clisp.org>
77367
77368                 * javacomp.h (compile_java_class): Add source_version,
77369                 target_version arguments.
77370                 * javacomp.c: Rewritten to choose only a compiler that
77371                 respects the specified source_version and target_version.
77372
77373         2006-06-27  Bruno Haible  <bruno@clisp.org>
77374
77375                 Assume correct S_ISDIR macro.
77376                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77377
77378         2006-07-22  Bruno Haible  <bruno@clisp.org>
77379
77380                 * javaversion.h: New file, from GNU gettext.
77381                 * javaversion.c: New file, from GNU gettext.
77382                 * javaversion.java: New file, from GNU gettext.
77383                 * javaversion.class: New file, from GNU gettext.
77384
77385         2006-05-17  Bruno Haible  <bruno@clisp.org>
77386
77387                 Cygwin portability.
77388                 * javaexec.c (execute_java_class): Test for jview program
77389                 also on Cygwin.
77390
77391         2006-04-09  Bruno Haible  <bruno@clisp.org>
77392
77393                 * fatal-signal.c: Don't include string.h.
77394                 (at_fatal_signal): Use a copying loop instead of memcpy.
77395
77396         2005-12-04  Bruno Haible  <bruno@clisp.org>
77397
77398                 * csharpexec.c: Add support for 'clix' launcher (untested).
77399                 (execute_csharp_using_sscli): New function.
77400                 (execute_csharp_program): Call it.
77401
77402         2006-06-21  Bruno Haible  <bruno@clisp.org>
77403
77404                 Avoid warnings from recent versions of mcs.
77405                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77406                 -o, -L, -r any more. Use options documented since mcs-1.0
77407                 instead. Similarly for -g.
77408
77409         2005-07-09  Bruno Haible  <bruno@clisp.org>
77410
77411                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77412                 add a .dll suffix.
77413                 Reported by Mark Junker <mjscod@gmx.de>.
77414
77415         2006-06-17  Bruno Haible  <bruno@clisp.org>
77416
77417                 * config.charset: Update for NetBSD 3.0.
77418
77419         2006-05-17  Bruno Haible  <bruno@clisp.org>
77420
77421                 Cygwin portability.
77422                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77423
77424         2006-05-16  Bruno Haible  <bruno@clisp.org>
77425
77426                 * localcharset.c [CYGWIN]: Include <windows.h>.
77427                 (get_charset_aliases): For Cygwin, return the same CPxxx
77428                 aliases list as under WIN32.
77429                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77430                 the environment variables. Fall back to GetACP().
77431
77432         2006-04-05  Bruno Haible  <bruno@clisp.org>
77433
77434                 * config.charset: Update Juan Manuel Guerrero's address.
77435
77436         2005-02-12  Bruno Haible  <bruno@clisp.org>
77437
77438                 * allocsa.h: Add extern "C" for C++.
77439
77440         2005-02-10  Bruno Haible  <bruno@clisp.org>
77441
77442                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77443                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77444
77445         2006-07-22  Bruno Haible  <bruno@clisp.org>
77446
77447                 * gettext.h: Update to GNU gettext-0.15.
77448
77449 2006-07-22  Bruno Haible  <bruno@clisp.org>
77450
77451         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77452         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77453         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77454
77455 2006-07-21  Eric Blake  <ebb9@byu.net>
77456
77457         * modules/stdlib-safer: New file.
77458         * MODULES.html.sh (File stream based Input/Output): Add
77459         stdlib-safer.
77460
77461 2006-07-21  Eric Blake  <ebb9@byu.net>
77462
77463         * lib/stdlib-safer.h: New file from coreutils, required by
77464         stdlib--.h.
77465
77466 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77469
77470 2006-07-20  Bruno Haible  <bruno@clisp.org>
77471
77472         * gnulib-tool: Recognize new option --assume-autoconf.
77473         (autoconf_minversion): New variable.
77474         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77475
77476 2006-07-20  Bruno Haible  <bruno@clisp.org>
77477
77478         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77479
77480 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77481
77482         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77483         Reindent and repaginate.
77484
77485 2006-07-19  Derek Price  <derek@ximbiot.com>
77486
77487         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77488         Correct grammar.
77489
77490 2006-07-17  Bruno Haible  <bruno@clisp.org>
77491
77492         * modules/list: New file.
77493         * modules/array-list: New file.
77494         * modules/carray-list, modules/carray-list-tests: New files.
77495         * modules/linked-list, modules/linked-list-tests: New files.
77496         * modules/avltree-list, modules/avltree-list-tests: New files.
77497         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77498         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77499         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77500         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77501         * modules/oset: New file.
77502         * modules/array-oset: New file.
77503         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77504         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77505         * tests/test-carray_list.c: New file.
77506         * tests/test-linked_list.c: New file.
77507         * tests/test-avltree_list.c: New file.
77508         * tests/test-rbtree_list.c: New file.
77509         * tests/test-linkedhash_list.c: New file.
77510         * tests/test-avltreehash_list.c: New file.
77511         * tests/test-rbtreehash_list.c: New file.
77512         * tests/test-avltree_oset.c: New file.
77513         * tests/test-rbtree_oset.c: New file.
77514         * MODULES.html.sh (Container data structures): New section.
77515
77516 2006-07-17  Bruno Haible  <bruno@clisp.org>
77517
77518         * m4/gl_list.m4: New file.
77519
77520 2006-07-17  Bruno Haible  <bruno@clisp.org>
77521
77522         * lib/gl_list.h: New file.
77523         * lib/gl_list.c: New file.
77524         * lib/gl_array_list.h: New file.
77525         * lib/gl_array_list.c: New file.
77526         * lib/gl_carray_list.h: New file.
77527         * lib/gl_carray_list.c: New file.
77528         * lib/gl_linked_list.h: New file.
77529         * lib/gl_linked_list.c: New file.
77530         * lib/gl_anylinked_list1.h: New file.
77531         * lib/gl_anylinked_list2.h: New file.
77532         * lib/gl_avltree_list.h: New file.
77533         * lib/gl_avltree_list.c: New file.
77534         * lib/gl_anyavltree_list1.h: New file.
77535         * lib/gl_anyavltree_list2.h: New file.
77536         * lib/gl_rbtree_list.h: New file.
77537         * lib/gl_rbtree_list.c: New file.
77538         * lib/gl_anyrbtree_list1.h: New file.
77539         * lib/gl_anyrbtree_list2.h: New file.
77540         * lib/gl_anytree_list1.h: New file.
77541         * lib/gl_anytree_list2.h: New file.
77542         * lib/gl_linkedhash_list.h: New file.
77543         * lib/gl_linkedhash_list.c: New file.
77544         * lib/gl_anyhash_list1.h: New file.
77545         * lib/gl_anyhash_list2.h: New file.
77546         * lib/gl_avltreehash_list.h: New file.
77547         * lib/gl_avltreehash_list.c: New file.
77548         * lib/gl_rbtreehash_list.h: New file.
77549         * lib/gl_rbtreehash_list.c: New file.
77550         * lib/gl_anytreehash_list1.h: New file.
77551         * lib/gl_anytreehash_list2.h: New file.
77552
77553         * lib/gl_oset.h: New file.
77554         * lib/gl_oset.c: New file.
77555         * lib/gl_array_oset.h: New file.
77556         * lib/gl_array_oset.c: New file.
77557         * lib/gl_avltree_oset.h: New file.
77558         * lib/gl_avltree_oset.c: New file.
77559         * lib/gl_rbtree_oset.h: New file.
77560         * lib/gl_rbtree_oset.c: New file.
77561         * lib/gl_anytree_oset.h: New file.
77562
77563 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * m4/mkancesdirs.m4: New file.
77566         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77567         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77568         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77569         it.
77570
77571 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77574         * lib/mkancesdirs.h: New files.
77575         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77576         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77577         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77578         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77579         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77580         callers changed.  Revamp internals significantly, by not
77581         attempting to create directories that are temporarily more
77582         permissive than the final results.  Do not attempt to use
77583         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77584         This removes some race conditions, fixes some bugs, and simplifies
77585         things.  Use new dirchownmod function to do owner and mode changes.
77586         * lib/mkdir-p.h: Likewise.
77587         * lib/modechange.c (octal_to_mode): New function.
77588         (struct mode_change): New member mentioned.
77589         (make_node_op_equals): New arg mentioned.  All callers changed.
77590         (mode_compile): Keep track of which mode bits the user has explicitly
77591         mentioned.
77592         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77593         New arg PMODE_BITS, to keep track of which mode bits the user
77594         mentioned; it treats S_ISUID and S_ISGID speciall.
77595         All callers changed.
77596         * lib/modechange.h: Likewise.
77597
77598 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         * MODULES.html.sh: Add mkancestors.
77601         * modules/mkancesdirs: New module.
77602         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77603         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77604         The chdir-safer and afs files are now orphans; I'll remove them
77605         unless someone speaks up.
77606         Add lib/dirchownmod.c, lib/dirchownmod.h.
77607         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77608         Add lchown, mkancesdirs.
77609         (Maintainer): Add self.
77610
77611 2006-07-15  Karl Berry  <karl@gnu.org>
77612
77613         * gnulib-tool: help message wording/arrangement.
77614
77615 2006-07-14  Simon Josefsson  <jas@extundo.com>
77616
77617         * doc/gnulib.texi (Libtool and Windows): New section.
77618
77619 2006-07-12  Simon Josefsson  <jas@extundo.com>
77620
77621         * modules/gendocs (License): Fix license, approved by Karl.
77622
77623 2006-07-12  Eric Blake  <ebb9@byu.net>
77624
77625         * MODULES.html.sh: Add gendocs.
77626
77627 2006-07-11  Eric Blake  <ebb9@byu.net>
77628
77629         * modules/fdl: New module, to install doc/fdl.texi.
77630         * MODULES.html.sh: Add new section for documentation modules.
77631         * gnulib-tool: Avoid space-tab.
77632         (--doc-base): New option, to manage files from doc.
77633
77634 2006-07-11  Eric Blake  <ebb9@byu.net>
77635
77636         * m4/absolute-header.m4: Fix comments to match recent change.
77637
77638 2006-07-11  Eric Blake  <ebb9@byu.net>
77639
77640         * gnulib-tool: List --doc-base before --tests-base.
77641
77642 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77643
77644         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77645
77646 2006-07-11  Bruno Haible  <bruno@clisp.org>
77647
77648         * README: Mention where to put documentation.
77649
77650 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77651
77652         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77653
77654 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77657         to stdint.m4.
77658
77659 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77660
77661         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77662         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77663         "no/such/file/stdint.h" when there is no such file, so that
77664         the resulting C code can be parsed by dodgy compilers.
77665         Problems reported by Bob Proulx.
77666
77667 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77668
77669         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77670         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77671         macros into the GNU _D_EXACT_NAMLEN.
77672         * lib/savedir.c:  Likewise.
77673         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77674
77675 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77676         and Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77679         * m4/savedir.m4:
77680         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77681         macros into the GNU _D_EXACT_NAMLEN.
77682
77683 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77684
77685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77686         around the absolute name, to work around a problem with the HP-UX
77687         11.23 native C compiler, reported by Bob Proulx.
77688
77689 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * doc/maintain.texi, make-stds.texi: Sync from
77692         <http://savannah.gnu.org/projects/gnustandards>.
77693
77694 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77697
77698 2006-07-09  Jim Meyering  <jim@meyering.net>
77699
77700         * m4/glob.m4: Remove a doubled word in a comment.
77701
77702 2006-07-09  Jim Meyering  <jim@meyering.net>
77703
77704         * lib/argp-pv.c: Remove a doubled word in a comment.
77705         * lib/check-version.c (check_version): Likewise.
77706         * lib/javacomp.c (compile_java_class): Likewise.
77707
77708 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77711         for the benefit of people using Autoconf 2.60.  If you want to
77712         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77713         (or m4/onceonly.m4, if pre-2.57) manually.
77714
77715 2006-07-08  Jim Meyering  <jim@meyering.net>
77716
77717         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77718         comment.
77719         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77720         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77721         comment.
77722
77723 2006-07-08  Jim Meyering  <jim@meyering.net>
77724
77725         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77726
77727 2006-07-07  Simon Josefsson  <jas@extundo.com>
77728
77729         * tests/test-crc.c: Change expected crc value, the test vector
77730         were probably computed using the old broken crc.c?
77731
77732 2006-07-06  Simon Josefsson  <jas@extundo.com>
77733
77734         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77735         now the canonical place for the M4 file).
77736
77737         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77738         from the sys_socket dependency now.
77739
77740         * modules/inet_pton (Files): Ditto.
77741
77742         * modules/inet_ntop (Files): Ditto.
77743
77744 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77745
77746         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77747         not gl_PREREQ_GETUSERSHELL.
77748
77749 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77750
77751         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77752         with only one argument, for Autoconf 2.60.
77753         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77754         expand to nothing, so add a shell command to avoid syntax error.
77755         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77756
77757 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77758
77759         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77760
77761 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77764         no longer needed.  Check for isblank decl.
77765         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77766         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77767         of existence.
77768
77769 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * lib/getloadavg.c: Use __VMS, not VMS.
77772         * lib/getopt.c: Likewise.
77773         * lib/getpagesize.h: Likewise.
77774         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77775         and probably does not work.
77776
77777 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/.cppi-disable: Add wcwidth.
77780         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77781         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77782         (ISGRAPH): Remove.  All uses changed to isgraph.
77783         (FOLD) [!defined _LIBC]: Remove special case.
77784         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77785         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77786         HAVE_ISBLANK.
77787         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77788         case.
77789
77790 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77791
77792         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77793         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77794         brackets.  Other minor changes to suppress some compiler
77795         warnings.
77796
77797 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77798         and Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77801         of invoking obsolescent AC_HEADER_DIRENT macro.
77802         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77803         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77806         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77807         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77808         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77809         * m4/readdir.m4: Remove; no longer needed.
77810
77811 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77812         and Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77815         Don't worry about this obsolete case any more.
77816         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77817         directories.
77818         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77819         worry about this obsolete case any more.
77820         * lib/fts.c: Likewise.
77821         * lib/getcwd.c: Likewise.
77822         * lib/glob.h: Likewise.
77823         * lib/savedir.c: Likewise.
77824
77825 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77826
77827         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77828         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77829         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77830         needed.
77831         All uses removed.
77832         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77833         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77834         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77835         needed.
77836         * m4/getdate.m4 (gl_GETDATE): Likewise.
77837         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77838         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77839         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77840         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77841         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77843         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77844         needed.
77845
77846 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         * lib/memcasecmp.c: Include <limits.h>.
77849         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77850         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77851         Don't assume isdigit succeeds only on '0' through '9'.
77852
77853 2006-07-05  Eric Blake  <ebb9@byu.net>
77854
77855         * modules/getaddrinfo (Depends-on): Add snprintf.
77856
77857 2006-07-05  Eric Blake  <ebb9@byu.net>
77858
77859         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77860         to avoid 'header present but could not be compiled' on cygwin.
77861
77862 2006-07-05  Eric Blake  <ebb9@byu.net>
77863
77864         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77865         missing from netdb.h.
77866         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77867
77868 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77869
77870         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77871         no longer needed.
77872         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77873         * m4/getdate.m4 (gl_GETDATE): Likewise.
77874         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77875         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77876         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77877         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77878         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77879
77880 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77881
77882         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77883         All uses of is_space replaced by isspace.
77884         * lib/exit.h: Don't talk about STDC_HEADERS.
77885         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77886         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77887         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77888         replaced by isprint etc.
77889         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77890         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77891         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77892         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77893         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77894         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77895
77896 2006-07-05  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77899         the function exists, before testing against AIX.
77900         Reported by Martin Lambers <marlam@marlam.de>.
77901
77902 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77905         From Mark D. Baushke.
77906
77907 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77910         to the absolute name, not just one, to bypass Sun C 5.8's
77911         "warning: #include of /usr/include/... may be non-portable".
77912
77913 2006-07-04  Eric Blake  <ebb9@byu.net>
77914
77915         * modules/dirname-tests: New test module.
77916         * tests/test-dirname.c: New file, replacing dirname.c
77917         TEST_DIRNAME section that was recently deleted.
77918
77919 2006-07-04  Bruno Haible  <bruno@clisp.org>
77920
77921         Assume ANSI C header files and <ctype.h> functions.
77922         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77923         (mbsnwidth): Use isprint, iscntrl instead.
77924
77925 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         Merge from coreutils.
77928         * MODULES.html.sh: Add xstrtold.
77929         * modules/xstrtold: New file.
77930         * modules/cycle-check (Files): Add lib/same-inode.h.
77931         * modules/dirname (Files): Add m4/double-slash-root.m4.
77932         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77933         * modules/mkdir-p (Files): Add lib/same-inode.h.
77934         * modules/same (Files): Add lib/same-inode.h.
77935
77936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77939         This is to keep the terminology clean; POSIX talks about
77940         "absolute pathnames", not "full pathnames", but the GNU
77941         Coding Standards say to use "path" for something else;
77942         so use "absolute" to keep both sides happy.
77943         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77944         Set gl_absolute_header, not gl_full_header_path.
77945         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77946         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77947         All uses changed.
77948
77949         Merge from coreutils.
77950
77951         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77954         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77955         want to require the building of c-strtod.o.
77956         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77957         needs -lm directly.
77958         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77959
77960         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77963         --as-needed option if available.  Problem reported by Albert Chin in
77964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77965         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77966         cc merely issues a bunch of annoying warnings for --as-needed
77967         (this problem was reported by Bob Proulx).  Also, try linking with
77968         -lm to detect a bug in binutils 2.16 (this problem was reported
77969         by Ralf Wildenhues).
77970
77971         2006-06-18  Jim Meyering  <jim@meyering.net>
77972
77973         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77974         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77975         macro.
77976         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77977         also check for glibc-2.4's abort-inducing bug.
77978
77979         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77980         Low-probability clean-up should be to use rmdir to get rid of
77981         the just-created directory, not unlink.
77982
77983         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77984         configure fail, and request a bug report to inform us about it.
77985         Add a comment that, barring reports to the contrary, in 2007 we'll
77986         assume ftruncate is universally available.
77987
77988         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77991
77992         2006-03-12  Jim Meyering  <jim@meyering.net>
77993
77994         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77995         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77996         * m4/same.m4 (gl_SAME): Likewise.
77997         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77998
77999         2006-03-11  Eric Blake  <ebb9@byu.net>
78000
78001         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78002         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78003         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78004         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78005
78006 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78009         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78010         reported by Mark D. Baushke, one in
78011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78012
78013         Merge from coreutils.
78014
78015         * lib/.cppi-disable: Add stdint_.h.
78016         * lib/.cvsignore: Add stdint.h.
78017
78018         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78021         both double and long double versions.
78022         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78023         * lib/xstrtold.c: New file.
78024         * lib/xstrtod.h (xstrtold): New decl.
78025
78026         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * lib/filemode.c (setst): Remove.
78029         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78030         (arguably) clearer, and the generated code is a bit smaller on my
78031         Debian GNU/Linux stable x86 host.
78032
78033         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78036         Assume that filemode.h includes sys/types.h and sys/stat.h.
78037         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78038         (ftypelet): Reorder to put common cases first, for efficiency.
78039         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78040         to do 'M'.
78041         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78042         of 10, for compatibility with FreeBSD.  All callers changed.
78043         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78044         types that can't be deduced solely from st_mode.  First arg is now a
78045         const pointer.
78046         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78047         (strmode): Renamed from mode_string.
78048         (filemodestring): New decl.
78049         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78050         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78051         needed.
78052         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78053
78054         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78057         fsusage.h now does that.  Include fsusage.h first, to test interface.
78058         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78059         at most one method (the old code could have generated decls that
78060         didn't conform to C89, not that this was ever exercised).
78061         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78062
78063         2006-03-19  Jim Meyering  <jim@meyering.net>
78064
78065         Work even in a chroot where d_ino values for entries in "/"
78066         don't match the stat.st_ino values for the same names.
78067         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78068         number, iterate through all entries again, using lstat instead.
78069         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78070         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78071
78072         * lib/getcwd.c (__getcwd): Clarify a comment.
78073         Use memcpy in place of a call to strcpy.
78074
78075         2006-03-12  Jim Meyering  <jim@meyering.net>
78076
78077         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78078         matches that of the current directory (which we're about to chdir ".."
78079         out of), then save the dev-ino of the parent, instead.
78080
78081         * lib/same-inode.h (SAME_INODE): New file/macro.
78082         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78083         Include "same-inode.h", instead.
78084         * lib/same.c: Likewise.
78085         * lib/cycle-check.h: Include "same-inode.h".
78086         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78087         * lib/cycle-check.c (SAME_INODE): Remove definition.
78088         * lib/root-dev-ino.h: Include "same-inode.h".
78089
78090         2006-03-11  Eric Blake  <ebb9@byu.net>
78091
78092         * lib/same.c (same_name): s/base_name/last_component/
78093         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78094         * lib/filenamecat.c (file_name_concat): Likewise.
78095
78096         2006-03-11  Eric Blake  <ebb9@byu.net>,
78097                     Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78100         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78101         drive prefix.
78102         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78103         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78104         (last_component): New method.
78105         * lib/dirname.c (dir_len): Determine when drive letters need a
78106         subsequent slash.  Preserve // when it is special.
78107         (dir_name): Don't append dot when drive letter is absolute.
78108         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78109         * lib/basename.c (base_name): New semantics - malloc the result.
78110         Preserve // when it is special.  Preserve relative files that look
78111         like drive letters.
78112         (base_len): Preserve // when it is special.
78113         (last_component): New method, similar to old base_name semantics.
78114         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78115         base_name.  Strip redundant slashes from ///.
78116
78117 2006-07-03  Jim Meyering  <jim@meyering.net>
78118
78119         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78120         macro is used before the first cycle_check call.
78121
78122 2006-07-03  Eric Blake  <ebb9@byu.net>
78123
78124         * modules/dirname (Depends-on): Add xstrndup.
78125
78126 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78127
78128         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78129         test cases, so that config.log is a bit easier to follow.
78130
78131 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78134         both are 64 bits, since this seems to be the tradition, and this
78135         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78136         we ever run into a host that prefers long long to long in this
78137         case, we'll need another configure-time test.  Problem reported by
78138         Jim Meyering.
78139
78140 2006-07-02  Eric Blake  <ebb9@byu.net>
78141
78142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78143
78144 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * modules/inttypes (Depends-on): No longer depends on stdint.
78147         * modules/stdint (Description): Say more about assumptions.
78148         Say that the fast types might differ.  Say macros are used.
78149         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78150         (Makefile.am): Revise list of substituted symbols to match
78151         new stdint.m4.
78152         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78153         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78154         * tests/test-stdint.c (verify_same_types)
78155         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78156         the code conforms to C99/C89.
78157         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78158         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78159
78160 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78163         but fix a bug, by requiring at least 64 bits.
78164         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78165         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78166         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78167         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78168
78169         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78170         changes.  Make 2.59 a prerequisite.  Check and substitute for
78171         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78172         inttypes.h.  Do not use special include files; just use the
78173         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78174         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78175         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78176         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78177         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78178         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78179         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78180         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78181         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78182         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78183         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78184         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78185         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78186         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78187         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78188         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78189         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78190         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78191         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78192         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78193         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78194         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78195         not check for things that C99 does not require, e.g., int8_t.  If
78196         a test isn't needed unless <stdint.h> isn't working, and is
78197         unlikely to be needed for any other reason, then don't do it
78198         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78199         size_t, since we assume C89 freestanding at least.  Do not check
78200         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78201         the right thing even if the types are not defined.  Instead use:
78202         (gl_STDINT_TYPE_PROPERTIES): New macro.
78203         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78204         testing whether <sys/types.h> clashes, as Autoconf does this for
78205         us now.  All uses removed.
78206         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78207         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78208         (gl_CHECK_TYPE_SAME):
78209         Remove; no longer needed.
78210         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78211         exists, since we'll return 0 anyway in that case.
78212         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78213
78214 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78217         possible collision with system files.
78218         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78219         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78220         WCHAR_MIN and WCHAR_MAX in this case.
78221         (<stddef.h>): Do not include; no longer needed.
78222         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78223         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78224         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78225         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78226         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78227         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78228         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78229         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78230         !defined(__c99))]: Include in this case too, since it's harmless
78231         now.
78232         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78233         dangerous to do so.
78234         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78235         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78236         (_STDINT_MIN, _STDINT_MAX): New macros.
78237         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78238         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78239         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78240         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78241         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78242         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78243         macros, not typedefs; this simplifies things quite a bit.
78244         Use long int for all types narrower than int64_t.
78245         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78246         Define in terms of long long int or int64_t or long int,
78247         not int64_t or int32_t.  This saves some compile-time testing.
78248         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78249         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78250         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78251         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78252         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78253         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78254         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78255         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78256         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78257         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78258         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78259         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78260         undef any previous version and define our own version, for
78261         simplicity and consistency with the new macros for types.
78262         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78263         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78264         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78265         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78266         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78267         @WINT_T_SUFFIX@ to keep things simple here.
78268         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78269         Simplify by assuming typical 8/16/32/64 host, since we're
78270         already doing that elsewhere anyway.
78271         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78272         and assume long long int is 64 bits if available.  This
78273         speeds up 'configure'.
78274
78275 2006-07-01  Eric Blake  <ebb9@byu.net>
78276
78277         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78278         Reported by Andreas Buening.
78279
78280 2006-07-01  Eric Blake  <ebb9@byu.net>
78281
78282         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78283
78284 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78285
78286         * lib/getaddrinfo.c: fixed typo
78287
78288 2006-06-29  Jim Meyering  <jim@meyering.net>
78289
78290         * modules/strftime (Maintainer): Add my name, since with the
78291         FPRINTFTIME changes strftime.c has forked from glibc.
78292
78293 2006-06-29  Eric Blake  <ebb9@byu.net>
78294
78295         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78296
78297 2006-06-29  Eric Blake  <ebb9@byu.net>
78298
78299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78300
78301 2006-06-29  Eric Blake  <ebb9@byu.net>
78302
78303         * lib/stat_.h: New file.
78304
78305 2006-06-29  Eric Blake  <ebb9@byu.net>
78306
78307         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78308         unused static function.
78309
78310 2006-06-29  Eric Blake  <ebb9@byu.net>
78311
78312         * doc/functions.texi (Function Portability): Document missing lstat
78313         on mingw.
78314
78315 2006-06-29  Eric Blake  <ebb9@byu.net>
78316
78317         * MODULES.html.sh: Add sys_stat.
78318         * modules/sys_stat: New module.
78319         * modules/mkstemp (Depends-on): Add sys_stat.
78320
78321 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78322
78323         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78324
78325 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78326
78327         * m4/c-bs-a.m4: Removed.
78328
78329 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78330
78331         * lib/strftime.c: Assume strftime() exists.
78332
78333 2006-06-29  Derek Price  <derek@ximbiot.com>
78334
78335         * modules/c-bs-a: Removed - \a is C89.
78336         * MODULES.html.sh: Remove c-bs-a.
78337
78338 2006-06-29  Bruno Haible  <bruno@clisp.org>
78339
78340         * modules/wcwidth (License): Change to LGPL.
78341
78342 2006-06-28  Simon Josefsson  <jas@extundo.com>
78343
78344         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78345         on _WIN32.
78346
78347         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78348         getnameinfo.
78349
78350 2006-06-28  Simon Josefsson  <jas@extundo.com>
78351
78352         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78353
78354 2006-06-28  Simon Josefsson  <jas@extundo.com>
78355
78356         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78357         functions there.  It will succeed on Windows XP, but on Windows
78358         2000 and (presumably) earlier, it will fail, and use the internal
78359         re-implementation.
78360         (use_win32_p): New function.
78361         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78362         Support AI_NUMERICSERV to disable getservbyname.
78363         (getnameinfo): New function, only supports
78364         NI_NUMERICHOST|NI_NUMERICSERV for now.
78365
78366         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78367         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78368         getnameinfo.
78369
78370 2006-06-28  Eric Blake  <ebb9@byu.net>
78371
78372         * modules/wcwidth: New file.
78373         * modules/mbchar (Depends-on): Add wcwidth.
78374         * modules/mbswidth (Depends-on): Add wcwidth.
78375         * MODULES.html.sh: Add wcwidth.
78376
78377 2006-06-28  Eric Blake  <ebb9@byu.net>
78378
78379         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78381
78382 2006-06-28  Eric Blake  <ebb9@byu.net>
78383
78384         * lib/xvasprintf.h: Fix comments.
78385
78386 2006-06-28  Eric Blake  <ebb9@byu.net>
78387
78388         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78389         * lib/mbswidth.c (wcwidth): Move from here...
78390         * lib/wcwidth.h: ...to this new file.
78391
78392 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78393
78394         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78395
78396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78397         it's obsolete.
78398         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78399
78400 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78401
78402         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78403         Autoconf 2.60 says this stuff was obsolete.
78404
78405 2006-06-28  Bruno Haible  <bruno@clisp.org>
78406
78407         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78408
78409 2006-06-28  Bruno Haible  <bruno@clisp.org>
78410
78411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78412         gt_TYPE_WCHAR_T.
78413
78414 2006-06-28  Bruno Haible  <bruno@clisp.org>
78415
78416         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78417         declaration for wcwidth.
78418         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78419
78420 2006-06-28  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78423         (mkdir): Define using _mkdir.
78424
78425 2006-06-28  Bruno Haible  <bruno@clisp.org>
78426
78427         * lib/getaddrinfo.h: Fix POSIX URL.
78428         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78429         _WIN32.
78430         (use_win32_p): Make static.
78431         (getaddrinfo): Reject service name if it is empty or does not consist
78432         solely of decimal digits, or if its value is > 65535.
78433         (getnameinfo): Remove useless casts.
78434
78435 2006-06-27  Simon Josefsson  <jas@extundo.com>
78436
78437         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78438         Eggert and Martin Lambers.
78439
78440 2006-06-27  Simon Josefsson  <jas@extundo.com>
78441
78442         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78443         Eggert and Martin Lambers.
78444
78445 2006-06-27  Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78448         result to 0, not to empty.
78449         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78450
78451 2006-06-27  Bruno Haible  <bruno@clisp.org>
78452
78453         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78454
78455 2006-06-26  Simon Josefsson  <jas@extundo.com>
78456
78457         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78458         present.
78459
78460 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78463         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78464         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78465
78466 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78467
78468         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78469
78470 2006-06-26  Bruno Haible  <bruno@clisp.org>
78471
78472         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78473
78474 2006-06-26  Bruno Haible  <bruno@clisp.org>
78475
78476         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78477
78478 2006-06-26  Bruno Haible  <bruno@clisp.org>
78479
78480         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78481         SGI C compiler in pre-C99 mode.
78482         Suggested by Mark D. Baushke and Larry Jones.
78483
78484 2006-06-26  Bruno Haible  <bruno@clisp.org>
78485
78486         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78487         WCHAR_MAX.
78488         Reported by Mark D. Baushke and Larry Jones.
78489
78490 2006-06-26  Bruno Haible  <bruno@clisp.org>
78491
78492         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78493         in pre-C99 mode.
78494         Suggested by Mark D. Baushke and Larry Jones.
78495
78496 2006-06-23  Simon Josefsson  <jas@extundo.com>
78497             Bruno Haible  <bruno@clisp.org>
78498
78499         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78500         Emit mostlyclean-local rule.
78501         (func_emit_tests_Makefile_am): Likewise.
78502         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78503
78504 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78505
78506         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78507
78508 2006-06-23  Bruno Haible  <bruno@clisp.org>
78509
78510         * tests/test-stdint.c: Update to match ISO C 99 Technical
78511         Corrigendum 1.
78512
78513 2006-06-23  Bruno Haible  <bruno@clisp.org>
78514
78515         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78516
78517 2006-06-23  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/stdint_.h: Treat IRIX like OpenBSD.
78520
78521 2006-06-23  Bruno Haible  <bruno@clisp.org>
78522
78523         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78524         ISO C 99 Technical Corrigendum 1.
78525
78526 2006-06-22  Simon Josefsson  <jas@extundo.com>
78527
78528         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78529         MinGW.
78530
78531 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78534         needed.  Some compiler complained about some of them.  Problem reported
78535         by Larry Jones in
78536         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78537
78538 2006-06-21  Simon Josefsson  <jas@extundo.com>
78539
78540         * tests/test-getaddrinfo.c: New file.
78541
78542         * modules/getaddrinfo-tests: New file.
78543
78544         * MODULES.html.sh: Add inet_pton.
78545
78546         * modules/inet_pton: New file.
78547
78548 2006-06-21  Simon Josefsson  <jas@extundo.com>
78549
78550         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78551         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78552         of using the (limited) gnulib implementation on Windows XP.
78553
78554         * m4/inet_pton.m4: New file.
78555
78556 2006-06-21  Simon Josefsson  <jas@extundo.com>
78557
78558         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78559         variable.
78560
78561         * lib/socket_.h: Don't define WINVER.
78562
78563         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78564         slightly modified to work in gnulib.
78565
78566 2006-06-21  Simon Josefsson  <jas@extundo.com>
78567
78568         * doc/gnulib.texi (Windows sockets): Add.
78569
78570 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * lib/read-file.c (fread_file): Start with buffer allocation of
78573         0 bytes rather than 1 byte; this simplifies the code.
78574         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78575         code to free buffer and save/restore errno.
78576         (internal_read_file): Remove unused local.
78577
78578 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78581         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78582         Problem reported by Denis Excoffier in
78583         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78584
78585 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78586
78587         * modules/sys_socket, modules/socklen: Include sys/types since
78588         FreeBSD 4.x's sys/socket.h needs it.
78589
78590 2006-06-19  Simon Josefsson  <jas@extundo.com>
78591
78592         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78593
78594 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78597
78598 2006-06-19  Bruno Haible  <bruno@clisp.org>
78599
78600         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78601         and FULL_PATH_INTTYPES_H in angle brackets.
78602         Reported by Mark D. Baushke <mdb@gnu.org>.
78603
78604 2006-06-17  Eric Blake  <ebb9@byu.net>
78605
78606         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78607         errno.
78608
78609 2006-06-17  Bruno Haible  <bruno@clisp.org>
78610
78611         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78612         <sys/inttypes.h>.
78613
78614 2006-06-17  Bruno Haible  <bruno@clisp.org>
78615
78616         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78617         whether errno is declared. Assume <errno.h> declares errno.
78618
78619 2006-06-17  Bruno Haible  <bruno@clisp.org>
78620
78621         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78622
78623 2006-06-17  Bruno Haible  <bruno@clisp.org>
78624
78625         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78626         problem on Solaris 2.5.1.
78627
78628 2006-06-16  Eric Blake  <ebb9@byu.net>
78629
78630         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78631         * lib/unicodeio.c [!defined errno]: Likewise.
78632         * lib/strtol.c [!defined errno]: Likewise.
78633         * lib/strtod.c [!defined errno]: Likewise.
78634
78635 2006-06-15  Eric Blake  <ebb9@byu.net>
78636
78637         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78638
78639 2006-06-15  Eric Blake  <ebb9@byu.net>
78640
78641         * config/srclist.txt (ssize_t.m4): Lose sync.
78642
78643 2006-06-15  Bruno Haible  <bruno@clisp.org>
78644
78645         * modules/stdint (Files): Include m4/full-header-path.m4,
78646         m4/size_max.m4, m4/wchar_t.m4.
78647         (Makefile.am): Many more substitutions.
78648         * modules/stdint-tests: New file.
78649         * tests/test-stdint.c: New file.
78650
78651 2006-06-15  Bruno Haible  <bruno@clisp.org>
78652
78653         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78654         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78655         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78656         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78657         gl_CHECK_TYPE_SAME): New macros.
78658
78659 2006-06-15  Bruno Haible  <bruno@clisp.org>
78660
78661         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78662
78663 2006-06-15  Bruno Haible  <bruno@clisp.org>
78664
78665         * lib/stdint_.h: Rewritten to be fully auto-configured.
78666         Fixes bug on HP-UX/IA64.
78667
78668 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78669
78670         * lib/getdate.y (__attribute__): Don't define if already defined.
78671         Problem reported by Larry Jones.
78672         * lib/utimens.c (__attribute__): Likewise.
78673
78674 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78677         reported by Andreas Schwab.
78678
78679 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78680             Bruno Haible  <bruno@clisp.org>
78681
78682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78683         check for the declaration of strnlen and a run test that exposes the
78684         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78685         rpl_strndup.
78686
78687 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78688             Bruno Haible  <bruno@clisp.org>
78689
78690         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78691
78692 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78693
78694         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78695         compile test, for Tru64 4.0D.
78696
78697 2006-05-28  Karl Berry  <karl@gnu.org>
78698
78699         * config/srclist.txt (printf-args.c): lose sync.
78700
78701 2006-05-26  Martin Lambers  <marlam@marlam.de>
78702
78703         * lib/getpass.c: Updates the test for the native W32 API, and adds
78704         missing includes, thus fixing compilation warnings.
78705
78706 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78707
78708         * lib/exclude.c (exclude_fnmatch): New function.
78709         (excluded_file_name): Call exclude_fnmatch.
78710         * lib/exclude.h (excluded_file_name): New prototype
78711
78712 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         * lib/tempname.c (small_open, large_open): New macros.
78715         (__open, __open64) [!_LIBC]: Remove.
78716         (__gen_tempname): Use small_open and large_open instead of __open
78717         and __open64.  This fixes a portability bug on HP-UX 11.11i
78718         reported by Simon Wing-Tang in
78719         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78720
78721 2006-05-24  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78724         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78725         Reported by Thorsten Maerz <torte@netztorte.de> via
78726         Aaron Stone <aaron@serendipity.cx>.
78727
78728 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78731         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78732         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78733         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78734         not really conditional on the cache.
78735         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78736
78737 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78740         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78741         (my_usleep): Don't mishandle maximum value.
78742
78743 2006-05-19  Jim Meyering  <jim@meyering.net>
78744
78745         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78746
78747 2006-05-17  Bruno Haible  <bruno@clisp.org>
78748
78749         Cygwin portability.
78750         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78751
78752 2006-05-17  Bruno Haible  <bruno@clisp.org>
78753
78754         * lib/stdint_.h: Fix recognition of Cygwin.
78755
78756 2006-05-15  Bruno Haible  <bruno@clisp.org>
78757
78758         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78759         on libtool patch by Ralf Wildenhues.
78760
78761 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78764         test for C99 conformance; (bool) 0.5 is an integer constant
78765         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78766         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78767
78768 2006-05-11  Simon Josefsson  <jas@extundo.com>
78769
78770         * m4/xvasprintf.m4: Fix obvious typo.
78771
78772 2006-05-11  Jim Meyering  <jim@meyering.net>
78773
78774         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78775         James Lemley.
78776
78777 2006-05-10  Simon Josefsson  <jas@extundo.com>
78778
78779         * lib/md4.c: Typo fix, update copyright years.
78780         (K1, K2): Don't use L because it turn computations into 64-bit on
78781         64-bit platforms.
78782
78783 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78786         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78787         unwanted sign propagation, e.g., on hosts with 64-bit int.
78788         There still are some problems with reeelly weird theoretical hosts
78789         (e.g., 33-bit int) but it's not worth worrying about now.
78790         * lib/sha1.c (rol): Likewise.
78791         (K1, K2, K3, K4): Remove unnecessary L suffix.
78792
78793 2006-05-10  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/des.c: Cast to avoid warnings.
78796
78797 2006-05-09  Bruno Haible  <bruno@clisp.org>
78798
78799         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78800         (Depends-on): Depend also on xsize, stdarg.
78801         (configure.ac): Add gl_XVASPRINTF.
78802
78803 2006-05-09  Bruno Haible  <bruno@clisp.org>
78804
78805         * m4/xvasprintf.m4: New file.
78806
78807 2006-05-09  Bruno Haible  <bruno@clisp.org>
78808
78809         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78810         (EOVERFLOW): Define fallback value.
78811         (xstrcat): New function.
78812         (xvasprintf): Recognize the special case of a string concatenation.
78813
78814 2006-05-08  Eric Blake  <ebb9@byu.net>
78815
78816         * gnulib-tool (func_version): Base copyright year on CVS date.
78817         (func_emit_copyright_notice): New function.
78818         (func_emit_lib_Makefile_am): Use it.
78819         (func_emit_tests_Makefile_am): Likewise.
78820         (func_import): Likewise.
78821
78822 2006-05-08  Bruno Haible  <bruno@clisp.org>
78823
78824         * modules/stdarg: New file.
78825         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78826
78827 2006-05-08  Bruno Haible  <bruno@clisp.org>
78828
78829         * m4/stdarg.m4: New file, from GNU gettext.
78830
78831 2006-05-08  Bruno Haible  <bruno@clisp.org>
78832
78833         * config/srclist.txt (build-aux/config.rpath): different from latest
78834         release.
78835
78836 2006-05-08  Bruno Haible  <bruno@clisp.org>
78837
78838         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78839
78840 2006-05-05  Jim Meyering  <jim@meyering.net>
78841
78842         * m4/warning.m4: New file, derived from bison's file by the same name.
78843
78844 2006-05-03  Bruno Haible  <bruno@clisp.org>
78845
78846         * lib/stdint_.h: Shorter URL.
78847         * lib/inttypes.h: Likewise.
78848
78849 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78852
78853 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * lib/verify.h: Document the internals better.  Most of this change
78856         was written by Bruno Haible.
78857
78858 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * doc/verify.texi: New file, partly based on a proposal by
78861         Bruno Haible.
78862
78863 2006-05-02  Bruno Haible  <bruno@clisp.org>
78864
78865         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78866         test from here...
78867         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78868
78869 2006-04-29  Bruno Haible  <bruno@clisp.org>
78870
78871         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78872         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78873
78874 2006-04-29  Bruno Haible  <bruno@clisp.org>
78875
78876         * gnulib-tool: Make --update option actually work.
78877
78878 2006-04-29  Bruno Haible  <bruno@clisp.org>
78879
78880         * doc/gcd.texi: New file.
78881         * doc/gnulib.texi: Include it.
78882
78883 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * lib/getdate.y (get_date): When adding relative date, start with the
78886         initial time, not with the result of the first mktime call.
78887
78888 2006-04-25  Bruno Haible  <bruno@clisp.org>
78889
78890         * gnulib-tool (func_import): Output the include directives in three
78891         blocks, sorted separately.
78892         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78893
78894 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78897         to define main with arguments, for C++.  Reported by Eric Blake.
78898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78899         Prefer 'int main ()' to 'int main (void)', for C++.
78900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78902         for 'main', for C99 and C++.
78903
78904 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78905
78906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78907         Don't assume that exit status -1 is valid.
78908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78909         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78910         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78911         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78912         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78913         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78914         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78915         functions can be used without declaring them, or that you can
78916         exit with status -1.
78917         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78918
78919 2006-04-24  Karl Berry  <karl@gnu.org>
78920
78921         * config/srclist.txt (longdouble.m4): sync lost.
78922
78923 2006-04-24  Eric Blake  <ebb9@byu.net>
78924
78925         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78926
78927 2006-04-24  Bruno Haible  <bruno@clisp.org>
78928
78929         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78930         poll() implementation in AIX.
78931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78932
78933 2006-04-24  Bruno Haible  <bruno@clisp.org>
78934
78935         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78936         assigned exactly once.
78937
78938 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78939             Bruno Haible  <bruno@clisp.org>
78940
78941         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78942         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78943         for AM_CPPFLAGS.
78944
78945 2006-04-23  Bruno Haible  <bruno@clisp.org>
78946
78947         * modules/copy-file: Depend on unistd.
78948         * modules/execute: Likewise.
78949         * modules/fatal-signal: Likewise.
78950         * modules/findprog: Likewise.
78951         * modules/mkdtemp : Likewise.
78952         * modules/pipe: Likewise.
78953         * modules/wait-process: Likewise.
78954
78955 2006-04-23  Bruno Haible  <bruno@clisp.org>
78956
78957         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78958         condition was already detected.
78959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78960
78961 2006-04-23  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/copy-file.c: Include <unistd.h> unconditionally.
78964         * lib/execute.c: Likewise.
78965         * lib/fatal-signal.c: Likewise.
78966         * lib/findprog.c: Likewise.
78967         * lib/mkdtemp.c: Likewise.
78968         * lib/pipe.h: Likewise.
78969         * lib/pipe.c: Likewise.
78970         * lib/wait-process.h: Likewise.
78971
78972 2006-04-23  Bruno Haible  <bruno@clisp.org>
78973
78974         * gnulib-tool (func_usage): Fix --import description. Document
78975         --update.
78976         (func_import): Create temporary file in a temporary directory, if
78977         --dry-run is specified. Silence errors from 'grep' when there are no
78978         m4 files in $m4dir.
78979         (func_create_testdir): Silence errors from 'grep' when there are no
78980         m4 files in $m4dir.
78981         Reported by Karl Berry <karl@freefriends.org>.
78982
78983 2006-04-20  Bruno Haible  <bruno@clisp.org>
78984
78985         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78986         one argument, so that the code will be portable to Autoconf 2.60.
78987         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78989         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78990
78991 2006-04-19  Derek Price  <derek@ximbiot.com>
78992             Eric Blake  <ebb9@byu.net>
78993
78994         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78995         rather than "/full/path.h".  Update comment to match.  Shorten &
78996         generalize m4_translit call via AS_TR_CPP.
78997
78998 2006-04-19  Derek Price  <derek@ximbiot.com>
78999             Eric Blake  <ebb9@byu.net>
79000
79001         * lib/inttypes.h: Correct grammar in comment.
79002
79003 2006-04-18  Derek Price  <derek@ximbiot.com>
79004             Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         * modules/inttypes: New file.
79007         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79008
79009 2006-04-18  Derek Price  <derek@ximbiot.com>
79010             Paul Eggert  <eggert@cs.ucla.edu>
79011
79012         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79013         New files.
79014
79015 2006-04-18  Derek Price  <derek@ximbiot.com>
79016             Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * lib/inttypes.h: New file.
79019         * lib/strtoimax.c: Assume <inttypes.h>.
79020
79021 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79024         isn't mounted.  Problem reported by Kir Kolyshkin.
79025
79026 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79029         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79030         Derek R. Price.
79031         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79032         implementation.
79033
79034 2006-04-12  Eric Blake  <ebb9@byu.net>
79035
79036         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79037         is now done automatically by the corresponding Autoconf macro.
79038
79039 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79042         time_r.h.
79043
79044 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         Merge regex changes from libc, removing some of our
79047         POSIX-conformance changes that were rejected and redoing them in a
79048         less-intrusive way.
79049
79050         * lib/regcomp.c (re_compile_internal, init_dfa):
79051         Length arg is now size_t, not Idx.  All uses changed.
79052         (peek_token): Forward decl now says internal_function.
79053         (__re_error_msgid, __re_error_msgid_idx):
79054         Now static rather than extern with attribute_hidden.
79055         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79056         For some reason libc prefers K&R style defns for external functions.
79057         (regerror) [!defined _LIBC]: Likewise.
79058         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79059         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79060         (build_range_exp, build_collating_symbol):
79061         Use K&R-style defn.
79062         (re_compile_fastmap): Use '\0' to memset, not 0.
79063         (utf8_sb_map): Make the calculations more obvious.
79064         (init_dfa, parse_bracket_exp, build_charclass_op):
79065         Call calloc and cast result, as glibc does.
79066         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79067         (build_range_exp, build_collating_symbol):
79068         Now internal functions.
79069
79070         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79071
79072         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79073         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79074         Don't depend on VMS; depend on __VMS instead, for POSIX
79075         namespace cleanness.
79076         (regoff_t): Define to ssize_t, not long int.
79077
79078         Remove the REG_ macros named below.  Instead, make the old names
79079         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79080         __USE_GNU_REGEX.
79081         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79082         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79083         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79084         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79085         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79086         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79087         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79088         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79089         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79090         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79091         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79092         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79093         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79094         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79095         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79096         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79097         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79098         (REG_NREGS):
79099         Remove.  All uses replaced by the old RE_* names.
79100         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79101         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79102         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79103         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79104         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79105         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79106         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79107         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79108         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79109         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79110         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79111         Don't bother having these macros be independent of each others'
79112         values, since they no longer exist in the POSIX name space.
79113
79114         Rename the following member names back to their old names,
79115         unless !__USE_GNU_REGEX.  All uses changed back.
79116         (buffer): Renamed from re_buffer.
79117         (allocated): Renamed from re_allocated.
79118         (used): Renamed from re_used.
79119         (syntax): Renamed from re_syntax.
79120         (fastmap): Renamed from re_fastmap.
79121         (translate): Renamed from re_translate.
79122         (can_be_null): Renamed from re_can_be_null.
79123         (regs_allocated): Renamed from re_regs_allocated.
79124         (fastmap_accurate): Renamed from re_fastmap_accurate.
79125         (no_sub): Renamed from re_no_sub.
79126         (not_bol): Renamed from re_not_bol.
79127         (not_eol): Renamed from re_not_eol.
79128         (newline_anchor): Renamed from re_newline_anchor.
79129         (num_regs): Renamed from rm_num_regs.
79130         (start): Renamed from rm_start.
79131         (end): Renamed from rm_end.
79132
79133         (free_state): Move up a bit.
79134
79135         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79136         #define to be empty.
79137         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79138         when that is what is intended.
79139         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79140         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79141         (MAX): New macro.
79142         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79143         All uses changed back to re_malloc, etc.  It's now the caller's
79144         responsibility to check for overflow; all callers changed.
79145         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79146         (re_x2nrealloc): Remove.
79147         (free_state): Remove decl.
79148
79149         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79150         (re_set_registers, re_exec):
79151         Use K&R-style defn.
79152
79153         2006-01-31  Roland McGrath  <roland@redhat.com>
79154
79155         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79156         Reported by Mike Frysinger <vapier@gentoo.org>.
79157
79158         2006-01-15  Andreas Jaeger  <aj@suse.de>
79159
79160         [BZ #1950]
79161         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79162         build_wcs_upper_buffer change.
79163         (build_wcs_upper_buffer): Change return type.
79164
79165         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79166
79167         * lib/regex_internal.h: Include <stdint.h> if available.
79168
79169         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79170
79171         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79172
79173         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79174
79175         * lib/regcomp.c: Adjust for changed secondary hash function.
79176
79177         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79178
79179         * lib/regex.h: Pretty printing.
79180         Clean up namespace a bit.
79181
79182         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79183
79184         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79185         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79186
79187         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79188                     Ulrich Drepper  <drepper@redhat.com>
79189
79190         [BZ #1302]
79191         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79192         changed.
79193         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79194
79195         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79196
79197         [BZ #281]
79198         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79199         * lib/regcomp.c: Remove unnecessary uses of
79200         unsigned RE_TRANSLATE_TYPE.
79201         * lib/regex_internal.h: Likewise.
79202         * lib/regex_internal.c: Likewise.
79203         * lib/regexec.c: Likewise.
79204         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79205
79206         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79207
79208         * lib/regexec.c (find_recover_state): Remove unnecessary
79209         initialization.
79210         (transit_state_bkref): Make DFA a const pointer.
79211         (get_subexp): Likewise.
79212         (check_arrival): Likewise.
79213         (update_cur_sifted_state): Likewise.
79214         (re_search_internal): Likewise.
79215         (prune_impossible_nodes): Likewise.
79216         (acquire_init_state_context): Likewise.
79217         (proceed_next_node): Likewise.
79218         (set_regs): Likewise.
79219         (free_fail_stack_return): Likewise.
79220         (check_arrival_expand_ecl): Mark DFA parameter as const.
79221         (check_arrival_expand_ecl_sub): Likewise.
79222         (check_subexp_limits): Likewise.
79223         (sub_epsilon_src_nodes):  Likewise.
79224         (add_epsilon_src_nodes):  Likewise.
79225         (merge_state_array): Likewise.
79226         (update_regs): Likewise.
79227         (build_trtable): Likewise.
79228         (sift_states_backward): Mark MCTX parameter as const.
79229         (build_sifted_states): Likewise.
79230         (update_cur_sifted_state): Likewise.
79231         (sift_states_mkref): Likewise.
79232         (check_arrival_expand_ecl): Mark eclosure as const.
79233         (check_dst_limits_calc_pos_1): Likewise.
79234         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79235         pointer.
79236
79237         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79238
79239         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79240         (transit_state_sb): Likewise.
79241         (transit_state_mb): Likewise.
79242         (sift_states_iter_mb): Likewise.
79243         (check_arrival_add_next_nodes): Likewise.
79244         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79245         [_LIBC] (re_search_2_stub): Use mempcpy.
79246
79247         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79248         mbrtowc for very simple UTF-8 case.
79249
79250         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79251         a pointer-to-const.
79252         (re_acquire_state_context): Likewise.
79253         * lib/regex_internal.h: Adjust prototypes.
79254
79255         * lib/regex.c: Prevent using C++ compilers.
79256
79257         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79258         (re_acquire_state_context): Likewise.
79259
79260 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79261
79262         * modules/regex (Depends-on): Add ssize_t.
79263
79264 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79267         translation table.
79268
79269 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79272
79273 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79274             Bruno Haible  <bruno@clisp.org>
79275
79276         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79277         <sys/types.h> and <inttypes.h>.
79278
79279 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79280
79281         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79282         `__error_t_defined', so argp.h will not typedef the former.
79283
79284 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79287         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79288         glibc names.  Even if glibc is changed to conform to POSIX, the
79289         traditional names will be available anyway, since regex depends on
79290         the extensions module.  Also, fix a longstanding typo in the
79291         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79292         reported by Emanuele Giaquinta.  Also, change sense of cached
79293         variable, so that the message makes sense.
79294
79295 2006-03-24  Simon Josefsson  <jas@extundo.com>
79296
79297         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79298         including some doc fixes.
79299         (base64_encode_alloc): Fix +1 bug on allocation failures.
79300
79301 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79302
79303         * lib/base64.c (base64_encode): Do not read past end of array with
79304         unsanitized input on systems with CHAR_BIT > 8.
79305
79306 2006-03-24  Eric Blake  <ebb9@byu.net>
79307
79308         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79309
79310 2006-03-22  Karl Berry  <karl@gnu.org>
79311
79312         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79313         * config/srclistvars.sh (COREUTILS): new var.
79314
79315 2006-03-17  Jim Meyering  <jim@meyering.net>
79316
79317         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79318         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79319
79320 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79323         no longer needs it.  Instead, check that regoff_t is as least
79324         as wide as ptrdiff_t.
79325
79326         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79327         so that our regex.h stays compatible with the installed regex.
79328         This is helpful for installers who configure --without-included-regex.
79329         Problem reported by Emanuele Giaquinta.
79330
79331 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79334         Typedef to long int, not to off_, as POSIX will likely change
79335         in that direction.
79336
79337 2006-03-15  Eric Blake  <ebb9@byu.net>
79338
79339         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79340
79341 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79342
79343         * lib/argp-help.c (validate_uparams): Fix typo
79344         * lib/argp-parse.c (argp_default_options): Consistently begin help
79345         messages with a lowercase letter.
79346
79347 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79350         overrun buffers and shouldn't be used (much as gets shouldn't be
79351         used).
79352         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79353
79354 2006-03-08  Simon Josefsson  <jas@extundo.com>
79355
79356         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79357         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79358
79359 2006-03-08  Simon Josefsson  <jas@extundo.com>
79360
79361         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79362         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79363
79364 2006-03-08  Simon Josefsson  <jas@extundo.com>
79365
79366         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79367         signal that configure disabled the device.
79368
79369 2006-03-08  Simon Josefsson  <jas@extundo.com>
79370
79371         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79372         languages.
79373
79374 2006-03-07  Simon Josefsson  <jas@extundo.com>
79375
79376         * modules/getopt (Depends-on): Add unistd.
79377
79378         * modules/unistd: New file.
79379
79380 2006-03-07  Simon Josefsson  <jas@extundo.com>
79381
79382         * modules/gc-random: New file.
79383
79384 2006-03-07  Simon Josefsson  <jas@extundo.com>
79385
79386         * m4/unistd_h.m4: New file.
79387
79388 2006-03-07  Simon Josefsson  <jas@extundo.com>
79389
79390         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79391         test to be side-effect free by storing the result in the cache
79392         variable gl_cv_lib_readline, and moving the assignment of
79393         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79394         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79395
79396 2006-03-07  Simon Josefsson  <jas@extundo.com>
79397
79398         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79399         error on missing devices (the functions will return an error).
79400
79401         * m4/gc.m4: Move random stuff to gc-random.m4
79402
79403 2006-03-07  Simon Josefsson  <jas@extundo.com>
79404
79405         * lib/unistd_.h: New file.
79406
79407 2006-03-07  Simon Josefsson  <jas@extundo.com>
79408
79409         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79410
79411 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79412
79413         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79414         Problem reported by Juan Manuel Guerrero.
79415
79416 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79419         the unistd module.
79420         * lib/getlogin_r.c: Likewise.
79421         * lib/getlogin_r.h: Likewise.
79422         * lib/glob.c: Likewise.
79423         * lib/pagealign_alloc.c: Likewise.
79424         * lib/unistd_.h: Remove; no longer needed.
79425
79426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79429         Add unistd.
79430         * modules/c-stack (Depends-on): Add unistd.
79431         * modules/getlogin_r: Likewise.
79432         * modules/glob: Likewise.
79433         * modules/pagealign_alloc: Likewise.
79434         * modules/unistd (Files): Remove lib/unistd_.h.
79435         (EXTRA_DIST): Remove.
79436         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79437         need unistd_.h.
79438         (MOSTLYCLEANFILES): Remove unistd.h-t.
79439
79440 2006-03-03  Simon Josefsson  <jas@extundo.com>
79441
79442         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79443
79444 2006-03-03  Simon Josefsson  <jas@extundo.com>
79445
79446         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79447         libidn and bison.
79448
79449 2006-03-03  Simon Josefsson  <jas@extundo.com>
79450
79451         * build-aux/maint.mk: Add indent target.
79452
79453 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79454
79455         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79456         our replacement poll.h in any case, to avoid a differing
79457         declaration from a system header.  Seen on AIX.
79458
79459 2006-03-01  Simon Josefsson  <jas@extundo.com>
79460
79461         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79462         <kasal@ucw.cz>.
79463
79464 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * modules/gettime (Depends-on): Add extensions module.
79467         * modules/nanosleep (Depends-on): Likewise.
79468         * modules/settime (Depends-on): Likewise.
79469
79470 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79473         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79474         pedantically.
79475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79476         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79477
79478         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79479         not "==".  Reported by Ralf Wildenhues.
79480
79481 2006-03-01  Karl Berry  <karl@gnu.org>
79482
79483         * doc/Copyright/request-*: new files, synced from gnuorg.
79484
79485 2006-03-01  Karl Berry  <karl@gnu.org>
79486
79487         * config/srclist.txt (Copyright/*): new entries.
79488
79489 2006-02-28  Simon Josefsson  <jas@extundo.com>
79490
79491         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79492
79493 2006-02-27  Simon Josefsson  <jas@extundo.com>
79494
79495         * lib/base64.h: Indent #define's.  From Jim Meyering
79496         <jim@meyering.net>.
79497
79498 2006-02-27  Jim Meyering  <jim@meyering.net>
79499
79500         Revert the change of 2006-02-24, so these files can continue
79501         to be sync'd from gettext.
79502         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79503         of `config.h'.
79504
79505 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * modules/intprops: New file.
79508         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79509         Add intprops.
79510         * modules/getloadavg (Files): Remove lib/intprops.h.
79511         (Depends-on): Add intprops.
79512         * modules/human: Likewise.
79513         * modules/inttostr: Likewise.
79514         * modules/openat: Likewise.
79515         * modules/sig2str: Likewise.
79516         * modules/userspec: Likewise.
79517         * modules/utimecmp: Likewise.
79518         * modules/xnanosleep: Likewise.
79519         * modules/xstrtol: Likewise.
79520
79521 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79522
79523         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79524         * modules/lock-tests (TESTS): Use $(EXEEXT).
79525         * modules/tls-tests: Likewise.
79526         * modules/argp-tests: Likewise.
79527         (check_PROGRAMS): New var, replacing...
79528         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79529
79530 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79531
79532         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79533         `config.h'.
79534
79535 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79538
79539 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79540
79541         Sync from coreutils.
79542         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79543         gl_CHDIR_SAFER.
79544
79545 2006-02-22  Jim Meyering  <jim@meyering.net>
79546
79547         Sync from coreutils.
79548         * m4/chdir-safer.m4: New file.
79549
79550 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79553         AT_FDCWD exceeds INT_MAX.
79554         * lib/openat.h (AT_FDCWD): Likewise.
79555
79556 2006-02-17  Eric Blake  <address@hidden>
79557
79558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79559
79560 2006-02-16  Simon Josefsson  <jas@extundo.com>
79561
79562         * modules/getaddrinfo (Depends-on): Add sys_socket.
79563
79564 2006-02-15  Simon Josefsson  <jas@extundo.com>
79565
79566         * build-aux/maint.mk: Add dsyntax-check rule.
79567
79568 2006-02-15  Eric Blake  <ebb9@byu.net>
79569
79570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79571         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79572         'present but cannot compile' warnings on cygwin.
79573         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79574         use ws2tcpip.h if sys/socket.h works.
79575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79576         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79577
79578 2006-02-14  Simon Josefsson  <jas@extundo.com>
79579
79580         * modules/maintainer-makefile (Files): Rename.
79581
79582         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79583         and (the local) Makefile.cfg to maint-cfg.mk.
79584
79585         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79586         to the latter.
79587
79588         * modules/maintainer-makefile: New module.
79589
79590         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79591         severaly stripped to make it possible to build it up from scratch
79592         with reliable tests.
79593
79594         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79595         fixes to permit overriding the default actions when configure and
79596         makefile are not available.
79597
79598 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         Sync from coreutils.
79601         * modules/lstat (Depends-on): Don't depend on xalloc.
79602         (License): Change from GPL to LGPL, since this is now simply a
79603         replacement for a libc function.
79604
79605 2006-02-14  Jim Meyering  <jim@meyering.net>
79606
79607         Sync from coreutils.
79608
79609         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79610         failure on deficient systems, and simplify gnulib lgpl dependencies.
79611         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79612         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79613
79614         * lib/xalloc-die.c: Remove unused definition of N_.
79615
79616 2006-02-14  Jim Meyering  <jim@meyering.net>
79617
79618         Sync from coreutils.
79619         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79620         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79621         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79622         double-quote uses of that variable, to accommodate the rare case in
79623         which getmntent is available in none of the libraries checked.  This
79624         happens at least on FreeBSD 5.0.
79625
79626 2006-02-13  Simon Josefsson  <jas@extundo.com>
79627
79628         * gnulib-tool (Usage): Fix --import, from
79629         karl@freefriends.org (Karl Berry).
79630
79631 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79632
79633         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79634
79635 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79636
79637         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79638         "autoupdate" on 2005-12-12.
79639
79640 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * modules/closeout (Depends-on): Remove atexit.
79643
79644 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79647         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79648
79649 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79652         __EXTENSIONS__ if this causes compilation to fail.  Problem
79653         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79654         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79655
79656 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79657
79658         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79659         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79661         All uses changed.
79662
79663 2006-01-26  Simon Josefsson  <jas@extundo.com>
79664
79665         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79666         prototype is visible on mingw32.
79667
79668         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79669         for mingw32.
79670
79671         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79672         mingw32).
79673
79674 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79677         attempt to open for write; this always fails, at least on POSIX
79678         hosts.  This reinstates the 2006-01-09 change, which was
79679         inadvertently removed.
79680
79681 2006-01-26  Bruno Haible  <bruno@clisp.org>
79682
79683         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79684         Reported by Paul Eggert.
79685
79686 2006-01-26  Bruno Haible  <bruno@clisp.org>
79687             Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * lib/stdbool_.h (_Bool)
79690         [(! (defined __cplusplus || defined __BEOS__)
79691           && !defined __GNUC__
79692           && !(defined __HP_cc || defined __xlc__
79693                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79694                || defined __sgi))]:
79695         #define to signed char in these cases too; this simplifies
79696         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79697         etc., separately) and makes it more conservative.
79698
79699 2006-01-25  Simon Josefsson  <jas@extundo.com>
79700
79701         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79702         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79703         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79704
79705 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79706
79707         * lib/argp-namefrob.h: Bugfix. Remove stray #
79708
79709 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79712         so that we test the test.
79713         Check for yet another HP-UX cc bug involving *bool |= bool.
79714
79715 2006-01-25  Karl Berry  <karl@gnu.org>
79716
79717         * config/srclist.txt (vasnprintf.c): sync lost.
79718
79719 2006-01-25  Jim Meyering  <jim@meyering.net>
79720
79721         Sync from the stable (b5) branch of coreutils:
79722
79723         * lib/fts.c (fts_children): Don't let close() clobber errno from
79724         failed fchdir().
79725
79726         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79727         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79728         a dangling symlink.  That can also happen at least for ELOOP.
79729         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79730         FYI, this bug predates the inclusion of fts.c in coreutils.
79731
79732         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79733         in their own block, so pre-c99 compilers don't object.
79734
79735         Avoid the double-free (first in fts_read, second in fts_close) that
79736         would occur when an `active' directory is made inaccessible (e.g.,
79737         via chmod a-x) during a traversal.
79738         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79739         before returning.  Reproduce this failure by
79740         mkdir -p a/b; cd a; chmod a-x . b
79741         Reported by Stavros Passas.
79742
79743 2006-01-25  Jim Meyering  <jim@meyering.net>
79744
79745         * lib/fileblocks.c: Remove more useless parentheses.
79746         * lib/readutmp.h: Likewise.
79747
79748 2006-01-25  Bruno Haible  <bruno@clisp.org>
79749
79750         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79751         warnings.
79752         Reported by Paul Eggert.
79753
79754 2006-01-25  Bruno Haible  <bruno@clisp.org>
79755
79756         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79757         rid of a trap command. For Solaris sh.
79758         Reported by Mark D. Baushke <mdb@gnu.org>.
79759
79760 2006-01-24  Simon Josefsson  <jas@extundo.com>
79761
79762         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79763         Bruno.
79764
79765 2006-01-24  Karl Berry  <karl@gnu.org>
79766
79767         * config/srclist.txt (argp-namefrob.h): sync lost.
79768
79769 2006-01-24  Jim Meyering  <jim@meyering.net>
79770
79771         * modules/openat (Files): Add lib/intprops.h.
79772         From Mark D. Baushke.
79773
79774 2006-01-24  Jim Meyering  <jim@meyering.net>
79775
79776         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79777         Reported by Mark D. Baushke.
79778
79779 2006-01-24  Jim Meyering  <jim@meyering.net>
79780
79781         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79782
79783 2006-01-24  Bruno Haible  <bruno@clisp.org>
79784
79785         * modules/strnlen (Maintainer): Change from glibc to all.
79786
79787 2006-01-24  Bruno Haible  <bruno@clisp.org>
79788
79789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79790         Patch by Paul Eggert.
79791
79792 2006-01-24  Bruno Haible  <bruno@clisp.org>
79793
79794         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79795         already has it.
79796         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79797         2005-11-26.
79798
79799         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79800         'signed char' to avoid problems with the built-in _Bool type.
79801         Reported by Paul Eggert on 2005-11-26.
79802
79803 2006-01-24  Bruno Haible  <bruno@clisp.org>
79804
79805         * gnulib-tool (func_import): Avoid constructing complicated sed
79806         expressions inside backquote.
79807         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79808
79809 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79810
79811         These changes imported from libc.
79812         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79813         test and two separate function calls.
79814         * lib/strndup.c (__strndup): Add libc_hidden_def.
79815
79816 2006-01-23  Simon Josefsson  <jas@extundo.com>
79817
79818         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79819         Remove the test_*_SOURCES variable: automake infers it by default.
79820         * modules/tls-tests: Likewise.
79821
79822 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         Work around porting bugs reported by Dieter in
79825         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79826         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79827         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79828         Include "getopt.h" first, to check interface.
79829         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79830         !HAVE_DECL_GETENV.
79831         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79832         (__strndup): Revert to K&R-style function dfns, the glibc style.
79833         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79834         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79835         Include strnlen.h first, to get prototype properly.
79836         (strnlen): Renamed from __strnlen.
79837         Remove weak alias.
79838
79839 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79840
79841         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79842
79843 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         * config/srclist.txt: Adjust to reflect glibc reorganization.
79846         This affects only comments.
79847
79848 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79849
79850          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79851          Reported by Bruce Korb <bkorb@gnu.org>.
79852
79853 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79856         to pacify gcc -Wswitch-default.
79857
79858 2006-01-22  Bruno Haible  <bruno@clisp.org>
79859
79860         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79861         temporary buffer for sprintf, take into account the precision also
79862         for 'd', 'i', 'u', 'o', 'x', 'X'.
79863
79864 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79865
79866         * modules/argp-tests: New module
79867         * tests/test-argp.c: New file
79868         * tests/test-argp-2.sh: New file
79869
79870 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79871
79872         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79873         (__argp_base_name): Removed
79874         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79875         typo.
79876         (__argp_base_name): Provide macro definition or extern declaration
79877         depending on the configuration
79878
79879 2006-01-20  Simon Josefsson  <jas@extundo.com>
79880
79881         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79882
79883 2006-01-20  Simon Josefsson  <jas@extundo.com>
79884
79885         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79886
79887 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79890         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79891         Suggested by Bruno Haible.
79892
79893 2006-01-20  Karl Berry  <karl@gnu.org>
79894
79895         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79896         until changes propagate, I guess.
79897
79898 2006-01-19  Simon Josefsson  <jas@extundo.com>
79899
79900         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79901
79902 2006-01-19  Simon Josefsson  <jas@extundo.com>
79903
79904         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79905
79906 2006-01-19  Simon Josefsson  <jas@extundo.com>
79907
79908         * gnulib-tool: Set check_PROGRAMS.
79909
79910         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79911         modules/des-tests, modules/gc-arcfour-tests,
79912         modules/gc-arctwo-tests, modules/gc-des-tests,
79913         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79914         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79915         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79916         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79917         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79918         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79919         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79920         test_*_SOURCES.
79921
79922 2006-01-18  Simon Josefsson  <jas@extundo.com>
79923
79924         * modules/socklen (Depends-on): Depend on sys_socket.
79925
79926 2006-01-18  Simon Josefsson  <jas@extundo.com>
79927
79928         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79929         modules/des-tests, modules/gc-arcfour-tests,
79930         modules/gc-arctwo-tests, modules/gc-des-tests,
79931         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79932         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79933         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79934         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79935         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79936         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79937         $(EXEEXT) to automake TESTS variable, for mingw32.
79938
79939 2006-01-17  Simon Josefsson  <jas@extundo.com>
79940
79941         * modules/socklen (Include): Need sys/socket.h.
79942
79943 2006-01-17  Bruno Haible  <bruno@clisp.org>
79944
79945         * modules/ssize_t (Include): Add <sys/types.h>.
79946
79947 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79950         it's not portable and it doesn't work with cross-compiles.
79951         Problem reported by Bruno Haible.  Fix missing-$ typo in
79952         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79953         -zignore from being used with Sun's C compiler.
79954
79955 2006-01-12  Simon Josefsson  <jas@extundo.com>
79956
79957         * lib/base64.c: Fix warning, reported by Bruno Haible
79958         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79959
79960 2006-01-12  Bruno Haible  <bruno@clisp.org>
79961
79962         * modules/ldd: New file.
79963         * build-aux/ldd.sh.in: New file.
79964         * MODULES.html.sh (Support for building libraries and executables): Add
79965         ldd.
79966
79967 2006-01-12  Bruno Haible  <bruno@clisp.org>
79968
79969         * m4/ldd.m4: New file.
79970
79971 2006-01-12  Bruno Haible  <bruno@clisp.org>
79972
79973         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79974         endless loop while replacing $auxdir with build-aux.
79975
79976 2006-01-11  Simon Josefsson  <jas@extundo.com>
79977
79978         * lib/stdint_.h (SIZE_MAX): Add missing (.
79979
79980 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         Sync from coreutils.
79983         * lib/md5.c: Fix commentary typos.
79984         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79985         * lib/md5.h (__attribute__): Remove; unused.
79986         * lib/sha1.c: Fix commentary to match md5 better.
79987         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79988         so that we don't need to worry about alignment.  All uses changed.
79989         This merges the 2005-10-28 md5 change into sha1.
79990
79991 2006-01-11  Jim Meyering  <jim@meyering.net>
79992
79993         Sync from coreutils.
79994         * lib/md5.c (OP): Fix spacing.
79995
79996 2006-01-11  Bruno Haible  <bruno@clisp.org>
79997
79998         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79999         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80000         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80001
80002 2006-01-11  Bruno Haible  <bruno@clisp.org>
80003
80004         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80005         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80006         the "early" section as well.
80007
80008 2006-01-11  Bruno Haible  <bruno@clisp.org>
80009
80010         Avoid "ar: no archive members specified" error on MacOS X.
80011         * gnulib-tool (func_modules_add_dummy): New function.
80012         (func_import, func_create_testdir): Invoke it.
80013
80014 2006-01-11  Bruno Haible  <bruno@clisp.org>
80015
80016         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80017         with $auxdir in AC_CONFIG_FILES statements.
80018
80019 2006-01-11  Bruno Haible  <bruno@clisp.org>
80020
80021         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80022         Initialize also noinst_HEADERS to empty.
80023
80024 2006-01-11  Bruno Haible  <bruno@clisp.org>
80025
80026         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80027         variables.
80028         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80029         autoreconf.
80030
80031 2006-01-11  Bruno Haible  <bruno@clisp.org>
80032
80033         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80034         overridable by the user.
80035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80036
80037 2006-01-10  Simon Josefsson  <jas@extundo.com>
80038
80039         * modules/sys_socket: New file.
80040
80041 2006-01-10  Simon Josefsson  <jas@extundo.com>
80042
80043         * m4/sys_socket_h.m4: New file.
80044
80045 2006-01-10  Simon Josefsson  <jas@extundo.com>
80046
80047         * lib/socket_.h: New file.
80048
80049 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         * modules/readutmp (Maintainer): Add myself.
80052
80053 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80056         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80057         People who are still concerned with buggy memcmp implementations
80058         can invoke gl_FUNC_MEMCMP themselves.
80059
80060 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         * lib/regex_internal.h (BITSET_WORD_BITS):
80063         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80064         preprocessor mishandles large unsigned values as if they were signed.
80065         Problem reported by Claudio Fontana in
80066         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80067
80068 2006-01-10  Jim Meyering  <jim@meyering.net>
80069
80070         Avoid the double-free (first in fts_read, second in fts_close) that
80071         would occur when an `active' directory is made inaccessible (e.g.,
80072         via chmod a-x) during a traversal.
80073         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80074         before returning.  Reproduce this failure by
80075         mkdir -p a/b; cd a; chmod a-x . b
80076         Reported by Stavros Passas.
80077
80078         Sync from coreutils.
80079         * lib/sha1.c: Tweak grammar in a comment.
80080
80081 2006-01-10  Jim Meyering  <jim@meyering.net>
80082
80083         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80084         Patch by Joerg Sonnenberger.
80085
80086 2006-01-10  Bruno Haible  <bruno@clisp.org>
80087
80088         * modules/readutmp: Depend on module free.
80089         * modules/strtok_r: Depend on module restrict.
80090
80091 2006-01-10  Bruno Haible  <bruno@clisp.org>
80092
80093         * modules/gettext (configure.ac): Add an invocation of
80094         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80095
80096 2006-01-10  Bruno Haible  <bruno@clisp.org>
80097
80098         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80099         Reported by Werner Lemberg <wl@gnu.org>.
80100
80101 2006-01-10  Bruno Haible  <bruno@clisp.org>
80102
80103         * lib/localcharset.c: Update from GNU gettext.
80104
80105 2006-01-10  Bruno Haible  <bruno@clisp.org>
80106
80107         * lib/argp.h (__const): Remove macro. Use const instead.
80108         * lib/argp-fmtstream.h (__const): Likewise.
80109         * lib/glob_.h (__const): Remove macro.
80110         * lib/glob-libc.h: Use const instead of __const.
80111
80112 2006-01-10  Bruno Haible  <bruno@clisp.org>
80113
80114         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80115         variable.
80116         Needed to avoid an automake error regarding the 'gettext' module.
80117
80118 2006-01-09  Simon Josefsson  <jas@extundo.com>
80119
80120         * modules/inet_ntop (Depends-on): Add restrict.
80121
80122 2006-01-09  Simon Josefsson  <jas@extundo.com>
80123
80124         * modules/gc-rijndael-tests (License): Put under LGPL.
80125
80126         * modules/gc-des-tests (License): Likewise.
80127
80128         * modules/gc-arcfour-tests (License): Likewise.
80129
80130         * modules/gc-arctwo-tests (License): Likewise.
80131
80132         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80133
80134         * modules/gc-hmac-sha1-tests (Files): Likewise.
80135
80136         * modules/gc-hmac-md5-tests (License): Likewise.
80137
80138         * modules/gc-sha1-tests (License): Likewise.
80139
80140         * modules/gc-md5-tests (License): Likewise.
80141
80142         * modules/gc-md4-tests (License): Likewise.
80143
80144         * modules/gc-md2-tests (License): Likewise.
80145
80146         * modules/gc-tests (License): Likewise.
80147
80148         * modules/des-tests (License): Likewise.
80149
80150         * modules/md4-tests (License): Likewise.
80151
80152         * modules/md2-tests (License): Likewise.
80153
80154 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         Sync from coreutils:
80157
80158         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80159         * modules/lib-ignore: New file.
80160         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80161         chdir-safer.m4, lchmod.m4.
80162         * modules/openat: Add mkdirat.c, openat-priv.h.
80163
80164 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80165
80166         Sync from coreutils.
80167         * m4/lib-ignore.m4: New file.
80168         * m4/lchmod.m4: New file.
80169
80170 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         Sync from coreutils.
80173         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80174         for write access: POSIX says that must fail.
80175         * lib/fts.c (diropen): Likewise.
80176         * lib/save-cwd.c (save_cwd): Likewise.
80177         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80178         well, for minor improvements on hosts that lack O_DIRECTORY.
80179         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80180         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80181         Fall back on chown if open failed with EACCES.
80182
80183         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80184         Report an error at compile-time if only a 1-second nominal clock
80185         resolution is found.
80186
80187         * lib/lchmod.h: New file.
80188         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80189         (make_dir_parents): Use lchown rather than chown, and
80190         lchmod rather than chmod.
80191
80192         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80193         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80194         "proc" reported by n0dalus.
80195
80196         * lib/mountlist.c: Include <limits.h>.
80197         (dev_from_mount_options)
80198         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80199         New function.  It no longer assumes "dev=" has the System V meaning
80200         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80201         (read_file_system_list)
80202         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80203         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80204         dev= in that case.
80205
80206         * lib/posixtm.h (PDS_PRE_2000): New macro.
80207         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80208         allow_century.  All usages changed.  Reject dates outside the range
80209         1969-1999 if PDS_PRE_2000 is used.
80210
80211 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         Sync from coreutils.
80214         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80215         (Time of day items): Mention the possibility of leap seconds.
80216         Problem reported by Dr. David Alan Gilbert.
80217
80218 2006-01-09  Jim Meyering  <jim@meyering.net>
80219
80220         Sync from coreutils.
80221
80222         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80223
80224         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80225
80226         * lib/modechange.c (mode_compile): Reject an invalid mode string
80227         that starts with an octal digit.  From Andreas Gruenbacher.
80228
80229         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80230         and dup to open_safer and dup_safer, respectively.
80231         (openat_permissive): Fix typo in comment.
80232
80233         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80234         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80235         (_): Remove; no longer needed.
80236         (openat): Renamed from rpl_openat; no need for rpl_openat
80237         since openat.h renames openat for us.
80238         Replace most of the body with a call to openat_permissive,
80239         to avoid duplicate code.
80240         Port to (probably hypothetical) environments were mode_t is
80241         wider than int.
80242         (openat_permissive): Require mode arg, so that we can check
80243         types better.  Put it just after flags.  Change cwd failure
80244         indicator from pointer-to-bool to pointer-to-errno-value.
80245         All callers changed.
80246         Invoke openat_save_fail and/or openat_restore_fail if
80247         cwd_errno is null, so that openat can call us.
80248         (openat_permissive, fdopendir, fstatat, unlinkat):
80249         Simplify errno handling to avoid some duplicate code,
80250         as it's OK to set errno on success.
80251         * lib/openat.h: Revamp code so that function macros depend on
80252         __OPENAT_PREFIX only, not also on AT_FDCWD.
80253         (openat_ro): Remove.  Caller changed to use openat_permissive.
80254         (openat_permissive): Now a macro, if not a function.
80255         (openat_restore_fail, openat_save_fail): Now always functions,
80256         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80257
80258         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80259         and openat.c.
80260         * lib/mkdirat.c: Include openat-priv.h.
80261         Remove definitions of macros defined therein.
80262         * lib/openat.c: Likewise.
80263
80264         * lib/mkdirat.c (mkdirat): New file and function.
80265         * lib/openat.h (mkdirat): Declare.
80266
80267         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80268
80269         * lib/openat.h (openat_permissive): Declare.
80270         (openat_ro): Define.
80271
80272         * lib/openat.c (EXPECTED_ERRNO): New macro.
80273         (openat_permissive): New function -- used in remove.c rewrite.
80274         (all functions): Set errno just before returning, only if there
80275         was an actual failure.
80276         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80277
80278         Emulate openat-family functions using Linux's procfs, if possible.
80279         Idea and some code based on Ulrich Drepper's glibc changes.
80280
80281         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80282         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80283         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80284         before falling back on save_cwd and restore_cwd.
80285         (fdopendir, fstatat, unlinkat): Likewise.
80286
80287         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80288         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80289
80290         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80291         as second argument to va_arg.  Otherwise, some versions of gcc
80292         warn that `if this code is reached, the program will abort'.
80293
80294 2006-01-09  Jim Meyering  <jim@meyering.net>
80295
80296         Sync from coreutils.
80297         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80298         Require openat-priv.h.
80299
80300 2006-01-09  Bruno Haible  <bruno@clisp.org>
80301
80302         * modules/strnlen (Include): Use strnlen.h.
80303
80304 2006-01-09  Bruno Haible  <bruno@clisp.org>
80305
80306         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80307
80308 2006-01-09  Bruno Haible  <bruno@clisp.org>
80309
80310         * lib/sysexit_.h (EX_OK): New macro.
80311         Suggested by Martin Lambers <marlam@marlam.de>.
80312
80313 2006-01-09  Bruno Haible  <bruno@clisp.org>
80314
80315         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80316         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80317
80318 2006-01-09  Bruno Haible  <bruno@clisp.org>
80319
80320         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80321         numbers.
80322
80323 2006-01-09  Bruno Haible  <bruno@clisp.org>
80324
80325         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80326         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80327         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80328         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80329
80330 2006-01-09  Bruno Haible  <bruno@clisp.org>
80331
80332         * build-aux/javacomp.sh.in: New file, moved from lib/.
80333         * modules/javacomp-script (Files): Update.
80334         (configure.ac): Add AC_CONFIG_FILES invocation.
80335         (EXTRA_DIST): Remove variable.
80336
80337         * build-aux/javaexec.sh.in: New file, moved from lib/.
80338         * modules/javaexec (Files): Update.
80339         (configure.ac): Add AC_CONFIG_FILES invocation.
80340         (EXTRA_DIST): Remove javaexec.sh.in.
80341
80342         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80343         * modules/csharpcomp-script (Files): Update.
80344         (configure.ac): Add AC_CONFIG_FILES invocation.
80345         (EXTRA_DIST): Remove variable.
80346
80347         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80348         * modules/csharpexec (Files): Update.
80349         (configure.ac): Add AC_CONFIG_FILES invocation.
80350         (EXTRA_DIST): Remove csharpexec.sh.in.
80351
80352 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80353
80354         Sync from coreutils.
80355
80356         Add POSIX ACL support
80357         * lib/acl.h (copy_acl, set_acl): Add declarations.
80358         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80359         systems other than Linux.
80360         (chmod_or_fchmod): New function: use fchmod when possible,
80361         and chmod otherwise.
80362         (file_has_acl): Add a POSIX ACL implementation, with a
80363         Linux-specific subcase.
80364         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80365         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80366         acls are unsupported.
80367         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80368         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80369         are unsupported.
80370
80371 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80372
80373         Sync from coreutils.
80374         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80375
80376 2006-01-07  Bruno Haible  <bruno@clisp.org>
80377
80378         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80379         gl_EARLY.
80380
80381 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80382
80383         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80384         Problem reported for Mingw by Mark Junker.
80385
80386 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80387
80388         * README: Gnulib normally doesn't generate a tarball.
80389
80390 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80393         long int, not int, for nanosecond counts, so that people who are
80394         used to POSIX struct timespec won't be surprised.  Reported by Jim
80395         Meyering.
80396
80397 2005-12-28  Bruno Haible  <bruno@clisp.org>
80398
80399         * build-aux/config.rpath: Update from GNU gettext.
80400
80401 2005-12-16  Jim Meyering  <jim@meyering.net>
80402
80403         * modules/fprintftime: New module.
80404         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80405
80406 2005-12-16  Jim Meyering  <jim@meyering.net>
80407
80408         * m4/fprintftime.m4: New file.
80409
80410 2005-12-16  Jim Meyering  <jim@meyering.net>
80411
80412         * lib/fprintftime.c, lib/fprintftime.h: New files.
80413
80414 2005-12-15  Simon Josefsson  <jas@extundo.com>
80415
80416         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80417         new m4/socklen.m4.
80418
80419 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80420
80421         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80422         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80423
80424 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80425
80426         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80427         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80428         struct uparams is valid. Fall back to the default values if it is
80429         not.
80430
80431 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80432
80433         * modules/argp (Files): Add argp-pin.c
80434         (Depends-on): dirname
80435         (lib_SOURCES): Add argp-pin.c
80436
80437 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80438
80439         * m4/argp.m4:  Check if program_invocation_name and
80440         program_invocation_short_name are declared and define appropriate
80441         macros if they are not.
80442
80443 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80444
80445         * lib/argp-help.c (__argp_base_name): New function
80446         (__argp_short_program_name): Rewrite using __argp_base_name
80447         * lib/argp-namefrob.h: Define program_invocation_name and
80448         program_invocation_short_name if requested
80449         (__argp_base_name): Add prototype
80450         * lib/argp-parse.c (argp_def): Use gettext wrappers
80451         (argp_default_parser): Use __argp_base_name
80452         * lib/argp-pin.c: New file. Defines program_invocation_name and
80453         program_invocation_short_name on systems that lack them.
80454
80455 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80458         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80459         porting problem reported by Georg Schwarz in
80460         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80461
80462 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80465         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80466         porting problem reported by Georg Schwarz in
80467         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80468
80469 2005-12-05  Bruno Haible  <bruno@clisp.org>
80470
80471         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80472         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80473         Reported by Mark Junker <mjscod@gmx.de>.
80474
80475 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80476
80477         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80478         Use implementation from Albert Chin, with some
80479         comments/corrections by Stepan Kasal and myself.
80480
80481 2005-12-02  Bruno Haible  <bruno@clisp.org>
80482
80483         * gnulib-tool (func_import): Accept GPLed build tool modules when
80484         --lgpl is given.
80485         * modules/csharpcomp-script: New file.
80486         * modules/csharpcomp: Depend on it.
80487         * modules/javacomp-script: New file.
80488         * modules/javacomp: Depend on it.
80489         Suggested by Simon Josefsson.
80490
80491 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80492
80493         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80494         statement, to work around an HP-UX 10.20 compiler bug reported by
80495         Peter O'Gorman.
80496
80497 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80498
80499         * modules/savedir (Depends-on): Add openat.
80500
80501 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80504         (uintmax_t) [defined uintmax_t]: Do not declare.
80505         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80506         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80507         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80508         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80509         sake of portability to weird hosts that C allows (though we don't
80510         know of any practical examples).
80511
80512         * lib/savedir.h (fdsavedir): New decl.
80513         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80514         contains most of the former guts of savedir.
80515         (savedir): Use savedirstream.
80516         Include "openat.h".
80517
80518 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * modules/obstack (Files): Add m4/ulonglong.m4.
80521         Problem reported by Davide Angelocola.
80522
80523 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80526         coreutils no longer futzes with rounding modes.
80527
80528 2005-11-14  Jim Meyering  <jim@meyering.net>
80529
80530         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80531         replacement of mkstemp.
80532
80533 2005-11-10  Simon Josefsson  <jas@extundo.com>
80534
80535         * lib/readline.c: Remove EOL.
80536
80537 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * modules/gethrxtime (Depends-on): Add gettime.
80540
80541 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80544         or gettimeofday; no longer needed.
80545
80546 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80549         time business.
80550         (gethrxtime) [! (HAVE_NANOUPTIME
80551         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80552         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80553         our own approximation.
80554
80555 2005-11-08  Eric Blake  <ebb9@byu.net>
80556
80557         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80558
80559 2005-11-08  Eric Blake  <ebb9@byu.net>
80560
80561         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80562
80563 2005-11-04  Bruno Haible  <bruno@clisp.org>
80564
80565         * gnulib-tool: Implement --update mode.
80566
80567 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80568
80569         Fix porting problem reported by Theodoros V. Kalamatianos.
80570         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80571         Don't assume that futimes failing means we must fail.
80572
80573 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80576         variables to suggest the intended function of the PATH_MAX check.
80577
80578 2005-10-30  Kean Johnston  <jkj@sco.com>
80579
80580         Trivial changes to support SCO systems.
80581         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80582         as PATH_MAX.
80583         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80584         where __ptr is null when no I/O is pending.
80585
80586 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80587
80588         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80589         leave errno alone.  Problem reported by Dmitry V. Levin.
80590
80591 2005-10-28  Simon Josefsson  <jas@extundo.com>
80592
80593         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80594         Test more.
80595
80596         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80597
80598         * modules/md2, modules/md2-tests: New files.
80599
80600 2005-10-28  Simon Josefsson  <jas@extundo.com>
80601
80602         * m4/inet_ntop.m4: More tests.
80603
80604         * m4/gc-md2.m4, md2.m4: New file.
80605
80606 2005-10-28  Simon Josefsson  <jas@extundo.com>
80607
80608         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80609         "restrict" keywords, as per POSIX.  Protect the function
80610         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80611         Don't use K&R prototypes.  Check the sprintf return values.
80612         Re-define EAFNOSUPPORT if not present.  Indent.
80613
80614         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80615         suggested by Bruno Haible <bruno@clisp.org>.
80616
80617         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80618
80619         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80620
80621         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80622         libgcrypt).
80623
80624         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80625
80626         * lib/md2.h, lib/md2.c: New files.
80627
80628 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80631         errno alone.  Problem reported by Frederic Jolliton.
80632
80633 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80634
80635         * modules/verify (License): Change from GPL to LGPL.  This is a
80636         tiny module and there are apparently near-equivalents that are
80637         under the BSD license.
80638
80639 2005-10-24  Simon Josefsson  <jas@extundo.com>
80640
80641         * modules/sha1: Relicense to LGPL.
80642
80643 2005-10-24  Simon Josefsson  <jas@extundo.com>
80644
80645         * lib/md4.h: Shrink buffer size, now that we changed the type.
80646
80647 2005-10-23  Simon Josefsson  <jas@extundo.com>
80648
80649         * gnulib-tool (func_import): Fix --tests-base.
80650
80651 2005-10-22  Simon Josefsson  <jas@extundo.com>
80652
80653         * modules/arcfour (Depends-on): Need stdint.
80654
80655 2005-10-22  Simon Josefsson  <jas@extundo.com>
80656
80657         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80658         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80659
80660 2005-10-22  Simon Josefsson  <jas@extundo.com>
80661
80662         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80663         suggested by Bruno Haible <bruno@clisp.org>.
80664
80665 2005-10-22  Simon Josefsson  <jas@extundo.com>
80666
80667         * lib/crc.h: Include stddef.h, for size_t.
80668
80669 2005-10-22  Simon Josefsson  <jas@extundo.com>
80670
80671         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80672         arcfour_context struct (simplify test vector testing in GNU
80673         Shishi).
80674
80675 2005-10-21  Simon Josefsson  <jas@extundo.com>
80676
80677         * modules/des, modules/des-tests: New files.
80678
80679         * modules/gc-des, modules/gc-des-tests: New files.
80680
80681         * tests/test-des.c, tests/test-gc-des.c: New file.
80682
80683 2005-10-21  Simon Josefsson  <jas@extundo.com>
80684
80685         * modules/arctwo, modules/arctwo-tests: New files.
80686
80687         * tests/test-arctwo.c: New file.
80688
80689         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80690
80691         * tests/test-gc-arctwo.c: New file.
80692
80693 2005-10-21  Simon Josefsson  <jas@extundo.com>
80694
80695         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80696         Bruno Haible <bruno@clisp.org>.
80697
80698         * m4/gc-des.m4: New file.
80699
80700 2005-10-21  Simon Josefsson  <jas@extundo.com>
80701
80702         * m4/arctwo.m4: New file.
80703
80704         * m4/gc-arctwo.m4: New file.
80705
80706 2005-10-21  Simon Josefsson  <jas@extundo.com>
80707
80708         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80709         block.
80710
80711 2005-10-21  Simon Josefsson  <jas@extundo.com>
80712
80713         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80714         <bruno@clisp.org>.
80715
80716         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80717
80718         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80719         Bruno Haible <bruno@clisp.org>.
80720
80721         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80722         <bruno@clisp.org>.
80723
80724 2005-10-21  Simon Josefsson  <jas@extundo.com>
80725
80726         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80727
80728 2005-10-21  Simon Josefsson  <jas@extundo.com>
80729
80730         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80731
80732 2005-10-21  Simon Josefsson  <jas@extundo.com>
80733
80734         * lib/des.h, lib/des.c: New files.
80735
80736         * lib/gc-gnulib.c: Support DES.c
80737
80738 2005-10-21  Simon Josefsson  <jas@extundo.com>
80739
80740         * lib/arctwo.h, lib/arctwo.c: New files.
80741
80742         * lib/gc-gnulib.c: Support ARCTWO.
80743
80744 2005-10-21  Simon Josefsson  <jas@extundo.com>
80745
80746         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80747         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80748
80749 2005-10-21  Simon Josefsson  <jas@extundo.com>
80750
80751         * gnulib-tool (func_import, func_create_testdir): Define automake
80752         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80753         Makefile.am snippet),
80754         suggested by Bruno Haible <bruno@clisp.org>.
80755
80756         * modules/gc (Makefile.am): Use it.
80757
80758 2005-10-21  Bruno Haible  <bruno@clisp.org>
80759
80760         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80761         patch.
80762
80763 2005-10-19  Simon Josefsson  <jas@extundo.com>
80764
80765         * tests/test-gc-rijndael.c: New file.
80766
80767         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80768
80769 2005-10-19  Simon Josefsson  <jas@extundo.com>
80770
80771         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80772         interface too.
80773
80774 2005-10-19  Simon Josefsson  <jas@extundo.com>
80775
80776         * tests/test-gc-arcfour.c: New file.
80777
80778         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80779
80780 2005-10-19  Simon Josefsson  <jas@extundo.com>
80781
80782         * modules/gc-md4, modules/gc-md4-tests: New file.
80783
80784         * tests/test-gc-md4.c: New file.
80785
80786 2005-10-19  Simon Josefsson  <jas@extundo.com>
80787
80788         * m4/gc-md4.m4: New file.
80789
80790 2005-10-19  Simon Josefsson  <jas@extundo.com>
80791
80792         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80793         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80794         <kasal@ucw.cz>.
80795
80796 2005-10-19  Simon Josefsson  <jas@extundo.com>
80797
80798         * m4/gc-arcfour.m4: New file.
80799
80800         * m4/gc-rijndael.m4: New file.
80801
80802 2005-10-19  Simon Josefsson  <jas@extundo.com>
80803
80804         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80805
80806 2005-10-19  Simon Josefsson  <jas@extundo.com>
80807
80808         * lib/gc-gnulib.c: Support ARCFOUR.
80809
80810 2005-10-19  Simon Josefsson  <jas@extundo.com>
80811
80812         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80813         support.
80814
80815         * lib/gc.h: Add ECB enum type.
80816
80817         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80818
80819 2005-10-18  Simon Josefsson  <jas@extundo.com>
80820
80821         * tests/test-md5.c: New file.
80822
80823         * modules/md5-tests: New file.
80824
80825 2005-10-18  Simon Josefsson  <jas@extundo.com>
80826
80827         * tests/test-md4.c: New file.
80828
80829         * modules/md4, modules/md4-tests: New files.
80830
80831 2005-10-18  Simon Josefsson  <jas@extundo.com>
80832
80833         * m4/md4.m4: New file.
80834
80835 2005-10-18  Simon Josefsson  <jas@extundo.com>
80836
80837         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80838
80839 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80840
80841         * gnulib-tool (func_create_testdir): Omit the second check whether
80842         BUILT_SOURCES in nonempty.
80843
80844 2005-10-17  Simon Josefsson  <jas@extundo.com>
80845
80846         * tests/test-rijndael.c: New file.
80847
80848 2005-10-17  Simon Josefsson  <jas@extundo.com>
80849
80850         * modules/sha1: Depend on stdint instead of md5.
80851
80852         * modules/md5: Depend on stdint, remove uint32_t.
80853
80854 2005-10-17  Simon Josefsson  <jas@extundo.com>
80855
80856         * modules/gc-sha1-tests: New file.
80857
80858         * tests/test-gc-sha1.c: New file.
80859
80860 2005-10-17  Simon Josefsson  <jas@extundo.com>
80861
80862         * m4/md5.m4: Remove call to uint32_t.m4.
80863
80864 2005-10-17  Simon Josefsson  <jas@extundo.com>
80865
80866         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80867
80868         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80869         md5.h.
80870
80871         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80872
80873         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80874
80875 2005-10-17  Simon Josefsson  <jas@extundo.com>
80876
80877         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80878
80879 2005-10-17  Simon Josefsson  <jas@extundo.com>
80880
80881         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80882
80883 2005-10-17  Simon Josefsson  <jas@extundo.com>
80884
80885         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80886
80887         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80888
80889 2005-10-17  Bruno Haible  <bruno@clisp.org>
80890
80891         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80892         that it can also be used in a test.
80893
80894 2005-10-16  Bruno Haible  <bruno@clisp.org>
80895
80896         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80897         TESTS_ENVIRONMENT, so that individual tests can augment it.
80898
80899         * gnulib-tool (func_create_testdir): Use an intermediate target for
80900         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80901         macros, like $(ALLOCA_H), which cannot be passed through the command
80902         line.
80903
80904 2005-10-15  Simon Josefsson  <jas@extundo.com>
80905
80906         * modules/rijndael-tests: New file.
80907
80908         * modules/rijndael: New file.
80909
80910 2005-10-15  Simon Josefsson  <jas@extundo.com>
80911
80912         * m4/rijndael.m4: New file.
80913
80914 2005-10-15  Simon Josefsson  <jas@extundo.com>
80915
80916         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80917
80918         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80919
80920 2005-10-14  Simon Josefsson  <jas@extundo.com>
80921
80922         * tests/test-arcfour.c: New file.
80923
80924         * modules/arcfour, modules/arcfour-tests: New files.
80925
80926 2005-10-14  Simon Josefsson  <jas@extundo.com>
80927
80928         * m4/arcfour.m4: New file.
80929
80930 2005-10-14  Simon Josefsson  <jas@extundo.com>
80931
80932         * lib/arcfour.h, lib/arcfour.c: New files.
80933
80934 2005-10-14  Roland McGrath  <roland@redhat.com>
80935
80936         Import from libc.  [BZ #1331]
80937         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80938         macro argument.
80939         Reported by Matej Vela <vela@debian.org>.
80940
80941 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80942
80943         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80944         include <wchar.h>; no longer needed.
80945
80946 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80949
80950 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80951         and  Ulrich Drepper  <drepper@redhat.com>
80952
80953         Import from libc.
80954         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80955         instead of inline stream orientation test and two separate
80956         function calls.  Pay no attention to USE_IN_LIBIO.
80957
80958 2005-10-13  Simon Josefsson  <jas@extundo.com>
80959
80960         * modules/gc-hmac-md5-tests: New file.
80961
80962         * tests/test-gc-hmac-sha1.c: New file.
80963
80964         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80965
80966         * modules/gc-hmac-md5-tests: New file.
80967
80968         * tests/test-gc-md5.c: New file.
80969
80970         * modules/gc-md5-tests: New file.
80971
80972 2005-10-13  Simon Josefsson  <jas@extundo.com>
80973
80974         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80975         Move memory allocation outside of loop.
80976
80977 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80978
80979         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80980         intermediate directory is in a read-only file system.  Problem
80981         reported by Eric Blake.
80982
80983 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80984
80985         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80986
80987 2005-10-12  Simon Josefsson  <jas@extundo.com>
80988
80989         * tests/test-hmac-sha1.c: New file.
80990
80991         * modules/hmac-sha1-tests: New file.
80992
80993         * modules/hmac-sha1: New file.
80994
80995 2005-10-12  Simon Josefsson  <jas@extundo.com>
80996
80997         * modules/gc-sha1: New file.
80998
80999 2005-10-12  Simon Josefsson  <jas@extundo.com>
81000
81001         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81002
81003         * tests/test-gc-pbkdf2-sha1.c: New file.
81004
81005 2005-10-12  Simon Josefsson  <jas@extundo.com>
81006
81007         * modules/gc-md5, modules/gc-hmac-md5: New files.
81008
81009         * modules/gc (Files): Remove md5, memxor and hmac files.
81010
81011 2005-10-12  Simon Josefsson  <jas@extundo.com>
81012
81013         * m4/gc-pbkdf2-sha1.m4: New file.
81014
81015         * m4/gc-hmac-sha1.m4: New file.
81016
81017         * m4/gc-sha1: New file.
81018
81019         * m4/hmac-sha1.m4: New file.
81020
81021 2005-10-12  Simon Josefsson  <jas@extundo.com>
81022
81023         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81024
81025         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81026
81027 2005-10-12  Simon Josefsson  <jas@extundo.com>
81028
81029         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81030         suggested by Bruno Haible <bruno@clisp.org>.
81031
81032 2005-10-12  Simon Josefsson  <jas@extundo.com>
81033
81034         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81035
81036 2005-10-12  Simon Josefsson  <jas@extundo.com>
81037
81038         * lib/gc-pbkdf2-sha1.c: New file.
81039
81040         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81041
81042 2005-10-12  Simon Josefsson  <jas@extundo.com>
81043
81044         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81045
81046         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81047
81048 2005-10-12  Simon Josefsson  <jas@extundo.com>
81049
81050         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81051         GC_USE_HMAC_MD5, respectively.
81052
81053         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81054         (gc_md5): Fix typo.
81055
81056         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81057
81058         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81059
81060         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81061
81062 2005-10-12  Bruno Haible  <bruno@clisp.org>
81063
81064         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81065         Reported by Stepan Kasal <kasal@ucw.cz>.
81066
81067 2005-10-11  Simon Josefsson  <jas@extundo.com>
81068
81069         * tests/test-crc.c: New file.
81070
81071         * modules/crc, modules/crc-tests: New files.
81072
81073 2005-10-11  Simon Josefsson  <jas@extundo.com>
81074
81075         * m4/crc.m4: New file.
81076
81077 2005-10-11  Simon Josefsson  <jas@extundo.com>
81078
81079         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81080
81081         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81082
81083         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81084
81085 2005-10-11  Simon Josefsson  <jas@extundo.com>
81086
81087         * lib/crc.h, lib/crc.c: New files.
81088
81089         * lib/gc.h (gc_hash_buffer): Add doc.
81090
81091 2005-10-11  Bruno Haible  <bruno@clisp.org>
81092
81093         * modules/c-strcasestr: New file.
81094         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81095
81096 2005-10-11  Bruno Haible  <bruno@clisp.org>
81097
81098         * modules/c-strcase: New file.
81099         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81100
81101 2005-10-11  Bruno Haible  <bruno@clisp.org>
81102
81103         * lib/strcasecmp.c: Include limits.h.
81104         (strcasecmp): Avoid integer overflow on exotic platforms.
81105         * lib/strncasecmp.c: Include limits.h.
81106         (strncasecmp): Avoid integer overflow on exotic platforms.
81107         Reported by Paul Eggert.
81108
81109 2005-10-11  Bruno Haible  <bruno@clisp.org>
81110
81111         * lib/c-strcasestr.h: New file, from GNU gettext.
81112         * lib/c-strcasestr.c: New file, from GNU gettext.
81113
81114 2005-10-11  Bruno Haible  <bruno@clisp.org>
81115
81116         * lib/c-strcase.h: New file, from GNU gettext.
81117         * lib/c-strcasecmp.c: New file, from GNU gettext.
81118         * lib/c-strncasecmp.c: New file, from GNU gettext.
81119
81120 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81121
81122         * modules/mempcpy (License): GPL -> LGPL.
81123         * modules/strchrnul (License): Likewise.
81124         * modules/sysexits (License): Likewise.
81125
81126 2005-10-08  Simon Josefsson  <jas@extundo.com>
81127
81128         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81129
81130 2005-10-07  Simon Josefsson  <jas@extundo.com>
81131
81132         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81133
81134 2005-10-06  Simon Josefsson  <jas@extundo.com>
81135
81136         * tests/test-hmac-md5.c: New file.
81137
81138         * modules/hmac-md5-tests: New file.
81139
81140         * modules/hmac-md5: New file.
81141
81142 2005-10-06  Simon Josefsson  <jas@extundo.com>
81143
81144         * m4/hmac-md5.m4: New file.
81145
81146         * m4/memxor.m4: Require gl_C_RESTRICT.
81147
81148 2005-10-06  Simon Josefsson  <jas@extundo.com>
81149
81150         * lib/memxor.c (memxor): Avoid casts and warnings.
81151
81152 2005-10-06  Simon Josefsson  <jas@extundo.com>
81153
81154         * lib/hmac-md5.c: New file.
81155
81156         * lib/hmac.h: New file.
81157
81158 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81161         promotes to int, not unsigned int, to catch the AIX 5.3
81162         compiler bug.
81163
81164 2005-10-05  Simon Josefsson  <jas@extundo.com>
81165
81166         * modules/memxor: New file.
81167
81168         * modules/iconv (Files): Move config.rpath to havelib, it is used
81169         there.
81170
81171         * modules/havelib (Files): Add config.rpath.
81172
81173 2005-10-05  Simon Josefsson  <jas@extundo.com>
81174
81175         * m4/memxor.m4: New file.
81176
81177 2005-10-05  Simon Josefsson  <jas@extundo.com>
81178
81179         * lib/memxor.c (memxor): Fix compiler error.
81180
81181         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81182         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81183
81184         * lib/memxor.h, lib/memxor.c: New files.
81185
81186         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81187         we assume all systems have it, suggested by Jim Meyering
81188         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81189         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81190         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81191         same reasons.
81192
81193 2005-10-05  Simon Josefsson  <jas@extundo.com>
81194
81195         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81196
81197 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81198
81199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81200         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81201         needed, since the source code now assumes these .h files.
81202
81203 2005-10-05  Derek Price  <derek@ximbiot.com>
81204
81205         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81206
81207 2005-10-05  Bruno Haible  <bruno@clisp.org>
81208
81209         * modules/stdint (License): Change to LGPL.
81210
81211 2005-10-04  Simon Josefsson  <jas@extundo.com>
81212
81213         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81214         D. Baushke" <mdb@gnu.org>.
81215
81216 2005-10-04  Bruno Haible  <bruno@clisp.org>
81217
81218         * lib/verify.h (verify_true): Provide alternative definition for C++.
81219
81220 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81223         (SSIZE_MAX): New macro, if not already defined.
81224         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81225         than 2 GiB.
81226
81227 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81228
81229         Sync from coreutils.
81230         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81231         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81232         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81233         ULLONG_MAX doesn't work with 2.7.2.1.
81234
81235 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81238         From Ben Pfaff.
81239
81240         * modules/exclude (Depends-on): Depend on verify.
81241         * modules/strtoimax (Depends-on): Likewise.
81242         * modules/utimecmp (Depends-on): Likewise.
81243
81244 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81245
81246         * lib/exclude.c: Include verify.h.
81247         (verify): Remove.  All callers changed to use verify.h's version.
81248         * lib/strtoimax.c: Likewise.
81249         * lib/utimecmp.c: Likewis.e
81250
81251         Sync from coreutils.
81252         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81253         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81254         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81255         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81256         bother returning ENOSYS if settimeofday or stime fails; just let
81257         them return whatever errno they want to return.
81258         * lib/utimens.c: Include unistd.h, for dup2.
81259         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81260         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81261
81262 2005-10-02  Jim Meyering  <jim@meyering.net>
81263
81264         Sync from coreutils.
81265         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81266         from glibc-2.2.5 that fails for read-only files.
81267
81268 2005-10-02  Jim Meyering  <jim@meyering.net>
81269
81270         Sync from coreutils.
81271         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81272         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81273         `#if HAVE_CONFIG_H'.
81274         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81275         Remove AT_FDCWD test.
81276         Do not consume the fd unless successful.
81277         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81278         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81279         block, so that we don't even try to compile it if settimeofday is
81280         available.  This works around a compilation failure on OSF1 V5.1,
81281         due to stime requiring a `long int*' while tv_sec is `int'.
81282
81283 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81284
81285         Sync from coreutils.
81286         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81287         against `yes', rather than just testing for nonempty.
81288
81289 2005-10-01  Simon Josefsson  <jas@extundo.com>
81290
81291         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81292         and Darwin.
81293
81294         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81295         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81296         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81297         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81298         Check if struct addrinfo is declared.
81299
81300 2005-10-01  Simon Josefsson  <jas@extundo.com>
81301
81302         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81303         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81304         AI_* and EAI_* definitions.  Protect function declarations.
81305
81306 2005-10-01  Jim Meyering  <jim@meyering.net>
81307
81308         Sync from coreutils.
81309
81310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81311         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81312         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81314         in the inet and nsl libraries.  Required on Solaris 5.7.
81315
81316 2005-10-01  Jim Meyering  <jim@meyering.net>
81317
81318         Sync from coreutils.
81319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81320         in the inet and nsl libraries.  Required on Solaris 5.7.
81321
81322 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81323
81324         * lib/getdelim.c (getdelim): Remove unused variables.
81325
81326 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81327
81328         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81329         so that the code works even with ancient cpp.  Portability problem
81330         with GCC 2.7.2.1 reported by Thomas M.Ott.
81331
81332 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * modules/regex (Depends-on): Add strcase.
81335
81336         * modules/gethostname (Licence): Change from GPL to LGPL, since
81337         gethostname.c is a trivial implementation of a standard library
81338         function.
81339         * modules/poll (License): Change from GPL to LGPL, since it's
81340         derived from LGPL code.
81341
81342 2005-09-27  Jim Meyering  <jim@meyering.net>
81343
81344         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81345         HAVE_CONFIG_H.
81346
81347         * lib/intprops.h (signed_type_or_expr__): Define.
81348         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81349         for unsigned types.
81350
81351 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * lib/verify.h (verify_expr): Remove, replacing with:
81354         (verify_true): New macro that returns true instead of void.
81355         (verify_type__): Remove.
81356         (verify): Use verify_true rather than verify_type__.
81357
81358 2005-09-26  Bruno Haible  <bruno@clisp.org>
81359
81360         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81361         is necessary.
81362         (lib_SOURCES): Remove mbchar.c.
81363         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81364         (Files): Add m4/mbrtowc.m4.
81365         * modules/mbiter: Likewise.
81366         * modules/mbuiter: Likewise.
81367
81368 2005-09-26  Bruno Haible  <bruno@clisp.org>
81369
81370         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81371         compile mbchar.c if they are not both present.
81372         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81373         * m4/mbiter.m4 (gl_MBITER): Likewise.
81374         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81375         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81376         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81377
81378 2005-09-25  Jim Meyering  <jim@meyering.net>
81379
81380         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81381         also uses socklen_t.
81382
81383 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81384
81385         * lib/utimens.c (ENOSYS): Define if not already defined.
81386         (futimens): Support having a null PATH if the file descriptor
81387         is nonnegative.
81388
81389         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81390         Remove.
81391         (__attribute): Define to empty unless GCC 3.1 or later.
81392         This works around a core dump on OpenBSD 3.4, which has GCC
81393         2.95.3, which dumps core when given __attribute__(()).  It also
81394         simplifies other tests, since we really don't want to bother with
81395         worrying about which ancient version of GCC supported what.
81396         Original problem reported by Yoann Vandoorselaere, with part of
81397         the fix suggested by Derek Price.
81398
81399 2005-09-24  Jim Meyering  <jim@meyering.net>
81400
81401         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81402         so we can once again use a positive bitfield width of 1 -- now we
81403         don't have to explain why we were using a bitfield width of 2.
81404
81405 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81408         and similarly for the other external symbols.  Problem reported
81409         by James Gallager.
81410
81411         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81412         bug reported by Jim Meyering.
81413
81414         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81416         not needed, since socklen is a prerequisite module.
81417
81418 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81421         Problem reported by Eric Blake.
81422         (getaddrinfo): Initialize se so that it's not garbage.
81423         Redo internal storage allocation so that it doesn't make unportable
81424         assumptions about alignment.
81425         Fix a memory leak.
81426
81427         * lib/utimens.c (futimens): Use futimesat if available.
81428         Prefer it to futimes since it doesn't have the futimes bug.
81429
81430         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81431         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81432         Instead, declare a function that returns a pointer to an array,
81433         and use verify_type__ to declare the size of the array.
81434         Problem and germ of a solution reported by Bruno Haible.
81435         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81436         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81437
81438 2005-09-23  Jim Meyering  <jim@meyering.net>
81439
81440         Sync from coreutils.
81441         Correct build failure (socklen_t not defined) on at least
81442         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81444
81445 2005-09-23  Jim Meyering  <jim@meyering.net>
81446
81447         * modules/getaddrinfo (Depends-on): Add socklen.
81448
81449 2005-09-23  Bruno Haible  <bruno@clisp.org>
81450
81451         * tests/test-verify.c: New file.
81452
81453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         Sync from coreutils.
81456
81457         * modules/argmatch (Depends-on): Add verify.
81458         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81459         unistd-safer.
81460         * modules/save-cwd (Depends-on): Likewise.
81461
81462         * modules/openat (Files): Add lib/openat-die.c.
81463         (Depends-on): Remove error, exitfail.
81464         Add dirname.
81465
81466         * modules/verify: New file.
81467         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81468         with "verify" module.
81469
81470 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81471
81472         Sync from coreutils.
81473
81474         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81475         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81476         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81477         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81478         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81479         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81480         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81481         Don't bother checking for string.h, stdlib.h, unistd.h.
81482         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81484         module's job.
81485         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81486         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81487
81488         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81489         (gl_GETDATE): Use it.
81490
81491         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81492
81493 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         Sync from coreutils.
81496
81497         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81498         stat-time.h.
81499         * lib/argmatch.h: Include verify.h
81500         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81501         (ARGMATCH_ASSERT): Remove; unused.
81502         * lib/canonicalize.c: Assume STDC_HEADERS.
81503         * lib/exclude.c: Include "strcase.h".
81504         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81505         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81506         and stdio-safer.h.
81507         (getusershell): Call fopen, not fopen_safer.
81508         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81509         Do not include unistd-safer.h.
81510         (save_cwd): Don't call fd_safer; no longer needed
81511         now that we include fcntl--.h.
81512
81513         * lib/getdate.y (relative_time): New type.
81514         (RELATIVE_TIME_0): New constant.
81515         (parser_control): Use relative_time instead of doing it ourselves.
81516         (%union): Add new relative_time rel member.
81517         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81518         Now typeless.
81519         (relunit, relunit_snumber): Now of type rel.
81520         (zone, rel, relunit, get_date): Adjust to above changes.
81521
81522         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81523         Do not include unistd-safer.h.
81524         (getloadavg): Don't call fd_safer; no longer needed
81525         now that we include fcntl--.h.
81526
81527         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81528         (make_dir_parents): Treat ENOSYS like EEXIST.
81529
81530         Improve quality of diagnostics on restore_cwd failure.
81531         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81532         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81533         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81534         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81535         each time through the loop.  Do not diagnose restore_cwd failure;
81536         that is the caller's job (and perhaps the caller does not care).
81537
81538         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81539         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81540         If the file already exists but is not a directory, don't bother
81541         to try to make its parents.
81542         Close potential file descriptor leak if we can't chdir("/") (!).
81543         Don't always return true if chdir($PWD) fails; return true only
81544         if the requested action was done successfully (except for the
81545         chdir($PWD)).
81546         Don't log final directory unless we actually made it.
81547         Refactor to avoid duplicate code to fix up permissions.
81548         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81549
81550         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81551         to make it a bit faster and (I hope) clearer.
81552         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81553         Fix bug in formats like %2N.
81554
81555         * lib/verify.h: New file.
81556
81557 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         Sync from coreutils.
81560         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81561
81562 2005-09-22  Jim Meyering  <jim@meyering.net>
81563
81564         Sync from coreutils.
81565
81566         * m4/lstat.m4 (gl_FUNC_LSTAT):
81567         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81568         Remove obsolete comment.
81569         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81570         * m4/xstrtod.m4: Likewise.
81571
81572         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81573
81574 2005-09-22  Jim Meyering  <jim@meyering.net>
81575
81576         Sync from coreutils.
81577
81578         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81579
81580         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81581         the .tm_year member, since otherwise gcc-4.0 would now warn about
81582         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81583
81584         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81585         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81586
81587         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81588         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81589         when run in a time zone for which daylight savings time is in effect
81590         for the starting date.
81591
81592         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81593         stop us from restricting permissions of just-created absolute-named
81594         directories.
81595         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81596         to restore initial working directory.
81597         * lib/mkdir-p.c (make_dir_parents): New parameter:
81598         different_working_dir, to tell caller if/when we change the working
81599         directory and are unable to return to the initial one.
81600         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81601         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81602         `return false'.  This fixes a bug introduced on 2004-07-30.
81603
81604         * lib/openat.c (fdopendir): Be sure to close the supplied
81605         file descriptor before returning.  This makes our replacement
81606         implementation a little closer to Solaris's, where fdopendir
81607         ties the file descriptor to the returned DIR* pointer.
81608         * lib/openat.c (unlinkat): New function.
81609         * lib/openat.h (unlinkat): Add prototype.
81610         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81611         (openat_restore_fail): Rename from openat_restore_die.
81612         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81613
81614         Provide an alternative to exiting immediately upon save_cwd or
81615         restore_cwd failure.  Now, an application can arrange e.g.,
81616         to perform a longjump in that case.
81617         * lib/openat.c: Include dirname.h.
81618         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81619         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81620         and openat_restore_die rather than calling error directly.
81621         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81622
81623         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81624         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81625         define.
81626
81627         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81628         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81629                             int utc, int nanoseconds);
81630         Background:
81631         date should not have to allocate a megabyte of virtual memory to
81632         handle a format argument like +%1048575T.  When implemented with
81633         strftime, it must allocate such a buffer, use strftime to fill it
81634         in, print it, then free it.
81635         With fprintftime, it simply prints everything and exits.
81636         With no need for memory allocation, that's one fewer way to fail.
81637         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81638         optional field width, not before, so we accept %9:z, not %:9z.
81639         (my_strftime): Be sure to use L_('x') for literals.
81640
81641         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81642         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81643         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81644         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81645         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81646         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81647         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81648         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81649         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81650         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81651         * lib/xgethostname.c, lib/xreadlink.c:
81652         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81653
81654         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81655         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81656         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81657         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81658         and don't include <sys/file.h>).
81659
81660 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81661
81662         Sync from coreutils.
81663
81664         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81665         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81666         [!LDAV_DONE]: Avoid unused variable warning.
81667
81668 2005-09-21  Bruno Haible  <bruno@clisp.org>
81669
81670         * lib/unicodeio.h (unicode_to_mb): New declaration.
81671
81672 2005-09-20  Derek Price  <derek@ximbiot.com>
81673
81674         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81675         getaddrinfo.h.
81676
81677 2005-09-20  Bruno Haible  <bruno@clisp.org>
81678
81679         * gnulib-tool: Remove trailing slashes from the values specified for
81680         --source-base, --m4-base, --tests-base, --aux-dir.
81681         Suggested by Simon Josefsson <jas@extundo.com>.
81682
81683 2005-09-20  Bruno Haible  <bruno@clisp.org>
81684
81685         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81686         func_modules_to_filelist, func_import, func_create_testdir): Make all
81687         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81688         change when gnulib-tool is invoked in a different locale.
81689
81690 2005-09-19  Simon Josefsson  <jas@extundo.com>
81691
81692         * m4/socklen.m4: Fix typo.
81693
81694 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81695
81696         Use a consistent style for including <config.h>.
81697         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81698         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81699         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81700         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81701         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81702         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81703         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81704         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81705         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81706         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81707         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81708         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81709         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81710         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81711         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81712         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81713         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81714         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81715         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81716         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81717         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81718         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81719         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81720         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81721         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81722         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81723         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81724         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81725         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81726         lib/xstrtoumax.c, lib/yesno.c:
81727         Standardize inclusion of config.h.
81728         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81729         lib/inttostr.h:  Removed inclusion of config.h from header files.
81730         * lib/inttostr.c:  Adjusted in-tree users.
81731         * lib/timespec.h: Remove superfluous warning to include config.h.
81732         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81733         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81734         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81735         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81736         config.h with HAVE_CONFIG_H.
81737
81738 2005-09-19  Jim Meyering  <jim@meyering.net>
81739
81740         * modules/pathmax (License): Change to LGPL.
81741
81742 2005-09-19  Derek Price  <derek@ximbiot.com>
81743
81744         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81745
81746 2005-09-19  Bruno Haible  <bruno@clisp.org>
81747
81748         * gnulib-tool (import): Provide default for --tests-base.
81749
81750 2005-09-19  Bruno Haible  <bruno@clisp.org>
81751
81752         * doc/quote.texi: New file, extracted from gnulib.texi.
81753         * doc/ctime.texi: New file, extracted from gnulib.texi.
81754         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81755         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81756         * doc/gnulib.texi: Include them.
81757
81758 2005-09-18  Bruno Haible  <bruno@clisp.org>
81759
81760         Portability fix.
81761         * gnulib-tool (func_readlink): New function.
81762         (func_ln_if_changed): Use it.
81763
81764 2005-09-18  Bruno Haible  <bruno@clisp.org>
81765
81766         * gnulib-tool: Support --with-tests also with --import.
81767         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81768         (func_import): Use variables $testsbase and $inctests. Emit a
81769         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81770         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81771         SUBDIRS += $testsdir.
81772         (func_create_testdir): Update.
81773
81774 2005-09-18  Bruno Haible  <bruno@clisp.org>
81775
81776         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81777         instead of $dry_run.
81778         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81779         (func_ln_if_changed): Don't handle dry-run here.
81780         (func_import): In dry-run mode, detect more precisely which actions
81781         would be performed, and don't use "...ing" verbs.
81782
81783 2005-09-18  Bruno Haible  <bruno@clisp.org>
81784
81785         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81786         (func_import): Use join on two temporary files instead of three nested
81787         loops, in order to determine which files are new or old.
81788
81789 2005-09-18  Bruno Haible  <bruno@clisp.org>
81790
81791         * gnulib-tool (func_import): Comment out code that spits out the
81792         new files with --dry-run.
81793
81794 2005-09-18  Bruno Haible  <bruno@clisp.org>
81795
81796         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81797
81798 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         * lib/stat-time.h: New file.
81801         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81802         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81803         in a different way.
81804         (timespec_cmp): New function.
81805         * lib/utimecmp.c: Include stat-time.h.
81806         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81807         members exist, not on the obsolescent ST_MTIM_NSEC.
81808         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81809
81810 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81813
81814 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81815
81816         * MODULES.html.sh (File system functions): Add stat-time.
81817         * modules/stat-time: New file.
81818         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81819         is now done in a different way, by the stat-time module.
81820         * modules/utimecmp (Depends-on): Add stat-time.
81821
81822 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * m4/st_mtim.m4: Remove.  Superseded by...
81825         * m4/stat-time.m4: New file.
81826         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81827         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81828
81829 2005-09-15  Derek Price  <derek@ximbiot.com>
81830
81831         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81832
81833 2005-09-15  Derek Price  <derek@ximbiot.com>
81834
81835         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81836         * lib/regex_internal.c: Ditto, using this...
81837         (__GNUC_PREREQ): ...new macro.
81838         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81839         using...
81840         (__GNUC_PREREQ): ...this new macro.
81841
81842         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81843
81844 2005-09-15  Derek Price  <derek@ximbiot.com>
81845             Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81848         changes, consolidating in...
81849         * lib/regex_internal.h: ...this file.
81850
81851 2005-09-13  Jim Meyering  <jim@meyering.net>
81852
81853         * lib/canon-host.c: Filter through gnu indent and reword comments
81854         slightly.
81855         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81856
81857 2005-09-13  Derek Price  <derek@ximbiot.com>
81858
81859         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81860         failure.
81861         Reported by Jim Meyering  <jim@meyering.net>.
81862
81863 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81864
81865         * lib/base64.c: Typo.
81866         (base64_encode): Put b64str in initialized data section.
81867
81868 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         Merge glibc and coreutils changes into gnulib, plus a few
81871         extra fixes.
81872         * lib/md5.c: Use #error rather than a string.
81873         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81874         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81875         (__attribute__): Define to empty for non recent-GCC.
81876         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81877         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81878         Renamed from their non-__ counterparts, with new macros replacing
81879         them if not _LIBC.  Add __THROW attribute.
81880         (rol): Remove.
81881         (struct md5_ctx): Align buffer if using GCC.
81882         * lib/sha1.h (struct sha1_ctx): Likewise.
81883         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81884         The old name was backwards.
81885         (NOTSWAP): Remove; not used.
81886         (rol): New macro, moved here from md5.h.
81887         (sha1_process_block): Remove a FIXME that doesn't make sense.
81888
81889 2005-09-12  Derek Price  <derek@ximbiot.com>
81890
81891         Return usable errors from canon-host.
81892         * lib/canon-host.h: New file.
81893         * lib/canon-host.c (canon_host): Wrap...
81894         (canon_host_r): ...this new function, which now relies exclusively on
81895         getaddrinfo.
81896         (ch_strerror): New function.
81897         (last_cherror): New global.
81898         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81899         interface.
81900         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81901         void *.
81902         (freeaddrinfo): Free ai->ai_canonname when set.
81903
81904 2005-09-12  Derek Price  <derek@ximbiot.com>
81905
81906         Make canon-host require getaddrinfo.
81907         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81908         AC_LIBSOURCE canon-host.h.  Call...
81909         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81910         gl_GETADDRINFO.
81911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81912
81913 2005-09-12  Derek Price  <derek@ximbiot.com>
81914
81915         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81916         LGPL.
81917         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81918
81919 2005-09-12  Derek Price  <derek@ximbiot.com>
81920
81921         * lib/gai_strerror.c: Include config.h when available.  Include
81922         getaddrinfo.h before other headers to test interface.
81923         Reported by Larry Jones <lawrence.jones@ugs.com>.
81924
81925 2005-09-12  Derek Price  <derek@ximbiot.com>
81926             Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * modules/glob (Files): Add glob-libc.h.
81929
81930 2005-09-12  Derek Price  <derek@ximbiot.com>
81931             Paul Eggert  <eggert@cs.ucla.edu>
81932
81933         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81934         glob_.h, glob-libc.h.
81935         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81936
81937 2005-09-12  Derek Price  <derek@ximbiot.com>
81938             Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81941         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81942         protecting things that should be done only in gnulib contexts.
81943         * lib/glob_.h: New file, containing only the glob things needed for
81944         gnulib.
81945         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81946         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81947         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81948         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81949         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81950         and to respect the namespace rules better.
81951
81952 2005-09-08  Simon Josefsson  <jas@extundo.com>
81953
81954         * modules/socklen: New file.
81955
81956 2005-09-08  Simon Josefsson  <jas@extundo.com>
81957
81958         * m4/socklen.m4: New file.
81959
81960 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81961
81962         * modules/utimens (Files): Add m4/utimbuf.m4, since
81963         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81964         Reported by Sergey Poznyakoff.
81965
81966 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81967
81968         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81969         definitions, since that's the preferred style in glibc.
81970         Fix a minor spacing issue, and update copyright notice to match
81971         glibc's.
81972
81973 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81974
81975         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81976
81977 2005-09-06  Simon Josefsson  <jas@extundo.com>
81978
81979         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81980         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81981
81982 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81983
81984         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81985         warning.
81986
81987 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * config/srclist.txt: Add glibc bug 1302.
81990
81991 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81992
81993         Change bitset word type from unsigned int to unsigned long int,
81994         as this has better performance on typical 64-bit hosts.
81995         Port bitset code to hosts with unusual word sizes.
81996         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81997         (build_collating_symbol):
81998         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81999         argument is a bitset.  This is merely a style issue, but it makes
82000         it clearer that an entire array is expected.
82001         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82002         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82003         Port to the case where bitset_word is not the same as unsigned int.
82004         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82005         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82006         Likewise.
82007         * lib/regexec.c (check_dst_limits_calc_pos_1,
82008         check_subexp_matching_top):
82009         (build_trtable, group_nodes_into_DFAstates):
82010         Likewise.
82011         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82012         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82013         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82014         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82015         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82016         * lib/regcomp.c (optimize_subexps, lower_subexp):
82017         Work even if bitset_word has holes in its bitwise representation.
82018         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82019         * lib/regexec.c (check_dst_limits_calc_pos_1,
82020         check_subexp_matching_top):
82021         Likewise.
82022         * lib/regex_internal.c (re_string_reconstruct):
82023         Don't assume UCHAR_MAX == 255.
82024         * lib/regex_internal.h (bitset_set_all): Likewise.
82025         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82026         All uses changed.
82027         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82028         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82029         All uses changed.
82030         (BITSET_WORD_MAX): New macro.
82031         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82032         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82033         (bitset_empty, bitset_copy):
82034         Prefer sizeof (bitset) to multiplying it out ourselves.
82035         (bitset_not_merge): Remove; unused.
82036         (bitset_contain): Return bool, not unsigned int with one bit on.
82037         All callers changed.
82038         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82039         alignment than re_node_set; do this by defining a new internal
82040         type struct dests_alloc and using it to allocate memory.
82041
82042 2005-09-05  Bruno Haible  <bruno@clisp.org>
82043
82044         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82045         links.
82046
82047 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82048
82049         * modules/size_max (Makefile.am): Add size_max.h
82050
82051 2005-09-04  Derek Price  <derek@ximbiot.com>
82052
82053         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82054
82055 2005-09-03  Simon Josefsson  <jas@extundo.com>
82056
82057         * gnulib-tool: Fix typo.
82058
82059 2005-09-03  Simon Josefsson  <jas@extundo.com>
82060
82061         * config/srclist.txt: Add glibc bug 1293.
82062
82063 2005-09-03  Derek Price  <derek@ximbiot.com>
82064
82065         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82066         From Larry Jones <lawrence.jones@ugs.com>.
82067
82068 2005-09-02  Simon Josefsson  <jas@extundo.com>
82069
82070         * modules/socklen: New file.
82071
82072 2005-09-02  Simon Josefsson  <jas@extundo.com>
82073
82074         * modules/havelib: New module.
82075
82076         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82077         Use havelib.
82078
82079 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         Check for arithmetic overflow when calculating sizes, to prevent
82082         some buffer-overflow issues.  These patches are conservative, in the
82083         sense that when I couldn't determine whether an overflow was possible,
82084         I inserted a run-time check.
82085         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82086         macros.
82087         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82088         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82089         (re_xnrealloc, re_x2nrealloc): New inline functions.
82090         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82091         parse_bracket_exp):
82092         (build_equiv_class, build_charclass): Check for arithmetic overflow
82093         in size expression calculations.
82094         * lib/regex_internal.c (re_string_realloc_buffers):
82095         (build_wcs_upper_buffer, re_node_set_add_intersect):
82096         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82097         (re_dfa_add_node, register_state): Likewise.
82098         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82099         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82100         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82101         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82102
82103 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82104
82105         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82106         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82107
82108 2005-09-02  Bruno Haible  <bruno@clisp.org>
82109
82110         Support for lib vs. lib64 distinction on biarch platforms.
82111         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82112         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82114
82115 2005-09-02  Bruno Haible  <bruno@clisp.org>
82116
82117         * gnulib-tool (import): In the other first-use case, provide defaults
82118         as well.
82119
82120 2005-09-02  Bruno Haible  <bruno@clisp.org>
82121
82122         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82123         patches not yet found in the latest gettext release.
82124
82125 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82128         to avoid a collision with bits/local_lim.h in glibc.
82129         All uses changed.  Problem reported by Dmitry V. Levin in
82130         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82131
82132         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82133         bugs in int versus size_t comparisons.
82134         (re_string_context_at): Fix bug where the code assumed that
82135         Idx is signed.
82136
82137         Use bool where appropriate.
82138         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82139         All callers changed.
82140         (calc_eclosure_iter): Likewise, for ROOT arg.
82141         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82142         (build_charclass_op): Likewise, for NON_MATCH arg.
82143         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82144         (re_string_construct_common): Likewise, for ICASE arg.
82145         * lib/regexec.c (re_search_2_stub, re_search_stub):
82146         Likewise, for RET_LEN arg.
82147         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82148         (set_regs): Likewise, for FL_BACKTRACK arg.
82149         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82150         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82151         (calc_eclosure_iter, parse_bracket_exp):
82152         Use bool for internal variables that are booleans.
82153         * lib/regexec.c (re_search_internal, check_matching,
82154         proceed_next_node):
82155         (set_regs, build_sifted_states, sift_states_bkref):
82156         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82157         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82158         (find_collation_sequence_value):
82159         Likewise.
82160         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82161         (re_node_set_compare):
82162         Return bool, not int. All callers changed.
82163         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82164         (build_trtable, check_node_accept): Likewise.
82165         * lib/regex_internal.h: Include stdbool.h.
82166
82167         Fix bugs uncovered when converting to bool.
82168         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82169         failure instead of charging ahead blindly.
82170         * lib/regex_internal.c (register_state): Likewise.
82171         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82172         for freeing internal storage.
82173         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82174         bitset pieces used as boolean, to avoid undefined behavior
82175         on hosts that do int overflow checking.
82176
82177 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82178
82179         * config/srclist.txt: Add glibc bugs 1285-1287.
82180
82181 2005-09-01  Jim Meyering  <jim@meyering.net>
82182
82183         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82184         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82185         Require gl_STAT_MACROS, too.
82186
82187 2005-09-01  Bruno Haible  <bruno@clisp.org>
82188
82189         * gnulib-tool (import): In the first-use case, provide defaults.
82190
82191 2005-09-01  Bruno Haible  <bruno@clisp.org>
82192
82193         * gnulib-tool (func_import): Remove the .tmp files.
82194
82195 2005-09-01  Bruno Haible  <bruno@clisp.org>
82196
82197         * gnulib-tool (func_import): Fix handling of symbolic links.
82198
82199 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82200
82201         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82202         old glibc regex code mishandles strings longer than 2**31 bytes.
82203         This patch fixes this when the regex code is used in gnulib
82204         (i.e., outside glibc).
82205
82206         This patch should not affect the use of the regex code inside
82207         glibc.  No doubt this problem also needs to be handled for glibc
82208         as well, but the result will be an incompatible change to the
82209         glibc ABI, and the old ABI will have to be supported too.  That
82210         can be the the subject for another patch.
82211
82212         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82213         governing whether the rest of this patch is active.  By default,
82214         the macro is disabled and the patch has no effect.
82215         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82216         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82217         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82218         (re_match_2, re_set_registers): Use the new types.
82219         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82220         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82221         New macros.
82222         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82223         (re_string_context_at, bin_tree_t, re_dfastate_t):
82224         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82225         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82226         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82227         (re_string_char_size_at, re_string_wchar_at):
82228         (re_string_elem_size_at):
82229         Use the new types and macros to port to 64-bit hosts.
82230         Use unsigned types for internal values, so that the code
82231         mostly works even for arrays larger than SSIZE_MAX.
82232         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82233         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82234         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82235         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82236         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82237         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82238         (calc_inveclosure, parse_dup_op, build_range_exp):
82239         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82240         (fetch_number, create_token_tree, mark_opt_subexp):
82241         Likewise.
82242         * lib/regex_internal.c (re_string_construct_common,
82243         create_ci_newstate):
82244         (create_cd_newstate, re_string_allocate, re_string_construct):
82245         (re_string_realloc_buffers, build_wcs_upper_buffer):
82246         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82247         (re_string_reconstruct, re_string_peek_byte_case):
82248         (re_string_fetch_byte_case, re_string_context_at):
82249         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82250         (re_node_set_init_copy, re_node_set_add_intersect):
82251         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82252         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82253         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82254         (re_acquire_state, re_acquire_state_context, register_state):
82255         Likewise.
82256         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82257         search_cur_bkref_entry):
82258         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82259         (re_search_internal, re_search_2_stub, re_search_stub)
82260         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82261         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82262         (update_cur_sifted_state, check_dst_limits):
82263         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82264         (check_subexp_limits, sift_states_bkref, merge_state_array):
82265         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82266         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82267         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82268         (expand_bkref_cache, check_node_accept_bytes):
82269         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82270         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82271         (acquire_init_state_context, check_halt_node_context):
82272         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82273         (sift_states_backward, clean_state_log_if_needed):
82274         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82275         (find_recover_state, transit_state_sb, transit_state_mb):
82276         (transit_state_bkref, build_trtable, match_ctx_clean):
82277         Likewise.
82278         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82279         to work around an assumption that REG_MISSING is negative.
82280
82281         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82282         (seek_collating_symbol_entry) [defined _LIBC]:
82283         (lookup_collation_sequence_value) [defined _LIBC]:
82284         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82285         Use prototypes rather than old-style function definitions.
82286         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82287         (transit_state_sb) [0]:
82288         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82289
82290         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82291         rm_eo.
82292
82293         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82294         (optimize_subexps, lower_subexp):
82295         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82296         since the signed shift might overflow.  Use 1u<<31 instead.
82297         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82298         Likewise.
82299         * lib/regexec.c (check_dst_limits_calc_pos_1,
82300         check_subexp_matching_top): Likewise.
82301
82302         * lib/regcomp.c (optimize_subexps, lower_subexp):
82303         Use CHAR_BIT rather than 8, for clarity.
82304         * lib/regexec.c (check_dst_limits_calc_pos_1):
82305         (check_subexp_matching_top): Likewise.
82306         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82307         have to worry about portability issues when shifting it left.
82308         Remove no-longer-needed test for table_size > 0.
82309         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82310         in a word, as the resulting behavior is undefined.
82311         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82312         in one case, a <= should have been an <, and in another case the
82313         whole test was missing.
82314         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82315         the standard name CHAR_BIT.
82316         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82317         this is not true on one's complement and signed-magnitude hosts.
82318
82319         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82320         next_last_offset.
82321         (struct re_dfa_t): Remove unused member states_alloc.
82322         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82323
82324 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82327         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82328         and large-file glibc and in 32-bit large-file Solaris.
82329
82330 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82331
82332         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82333         lengths fit in regoff_t; this isn't true if regoff_t is the same
82334         width as size_t.
82335         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82336         (= START + RANGE) instead of RANGE.  This avoids overflow
82337         problems when regoff_t is the same width as size_t.
82338         All callers changed.
82339         (re_search_2_stub): Check for overflow when adding the
82340         sizes of the two strings.
82341         (re_search_stub): Check for overflow when adding START
82342         to RANGE; if it occurs, substitute the extreme value.
82343
82344 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82347
82348 2005-08-31  Jim Meyering  <jim@meyering.net>
82349
82350         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82351         a pointer-to-const.
82352         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82353         (register_state): Likewise.
82354         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82355         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82356         (group_nodes_into_DFAstates): Likewise.
82357
82358 2005-08-31  Jim Meyering  <jim@meyering.net>
82359
82360         * check-module: Add a FIXME comment.
82361
82362 2005-08-31  Eric Blake  <ebb9@byu.net>
82363
82364         * modules/unistd-safer (Files): Add unistd--.h.
82365         * modules/stdio-safer (Files): Add stdio--.h.
82366
82367 2005-08-31  Derek Price  <derek@ximbiot.com>
82368
82369         * lib/getdelim.c (getdelim): Return EOF on EOF.
82370         Reported by Larry Jones <lawrence.jones@ugs.com>.
82371
82372 2005-08-31  Bruno Haible  <bruno@clisp.org>
82373
82374         Avoid unnecessary diffs in the generated lib/Makefile.am.
82375         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82376         the generated files.
82377         (func_import): Don't set cmd.
82378
82379 2005-08-31  Bruno Haible  <bruno@clisp.org>
82380
82381         * lib/strstr.c: Include <stddef.h>, for NULL.
82382         * lib/strcasestr.c: Likewise.
82383         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82384
82385 2005-08-31  Bruno Haible  <bruno@clisp.org>
82386
82387         * gnulib-tool: New option --macro-prefix.
82388         (func_import): Use macro_prefix.
82389         (import): Handle option --macro-prefix.
82390
82391 2005-08-31  Bruno Haible  <bruno@clisp.org>
82392
82393         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82394         Also use new variables cached_lgpl, cached_libtool.
82395
82396 2005-08-31  Bruno Haible  <bruno@clisp.org>
82397
82398         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82399         always instantiating them.
82400
82401 2005-08-31  Bruno Haible  <bruno@clisp.org>
82402
82403         * gnulib-tool (func_import): Read the previous cached settings
82404         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82405         earlier added by gnulib but are now dropped. Warn when a gnulib file
82406         overwrites a non-gnulib file.
82407
82408 2005-08-31  Bruno Haible  <bruno@clisp.org>
82409
82410         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82411         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82412         projects that don't keep autogenerated files in CVS. Put into
82413         actioncmd only the specified modules, not the transitive closure.
82414
82415 2005-08-31  Bruno Haible  <bruno@clisp.org>
82416
82417         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82418         Create directories that shall be filled.
82419         (import): Don't look for gl_* macros in configure.ac. Recurse across
82420         all directories containing a gnulib-cache.m4 files, if meaningful.
82421
82422 2005-08-31  Bruno Haible  <bruno@clisp.org>
82423
82424         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82425         (import): Set seen_libtool when we see gl_LIBTOOL.
82426
82427 2005-08-31  Bruno Haible  <bruno@clisp.org>
82428
82429         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82430         declaration macro definitions from generated gnulib.m4.
82431
82432 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82433
82434         * lib/iconvme.h: Add prototype for iconv_alloc.
82435
82436 2005-08-29  Simon Josefsson  <jas@extundo.com>
82437
82438         * lib/iconvme.c: Fix errno.
82439
82440 2005-08-29  Bruno Haible  <bruno@clisp.org>
82441
82442         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82443         that it works when the directory contains spaces.
82444
82445 2005-08-29  Bruno Haible  <bruno@clisp.org>
82446
82447         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82448
82449 2005-08-29  Bruno Haible  <bruno@clisp.org>
82450
82451         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82452         Emit more advice.
82453
82454 2005-08-29  Bruno Haible  <bruno@clisp.org>
82455         and Stepan Kasal  <kasal@ucw.cz>
82456
82457         * check-module: If more parameters are given, check each of them
82458         separately; add more exceptions, as noted by Jim Meyering.
82459         (check_module): New procedure.
82460         (%exempt_header): Now contains all exceptions.
82461
82462 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82463
82464         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82465
82466 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82467
82468         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82469
82470 2005-08-28  Bruno Haible  <bruno@clisp.org>
82471
82472         * m4/gnulib-tool.m4: New file.
82473
82474 2005-08-27  Jim Meyering  <jim@meyering.net>
82475
82476         * modules/unistd-safer (Files): Add pipe-safer.c.
82477         * modules/fcntl-safer (Files): Add creat-safer.c.
82478
82479 2005-08-27  Jim Meyering  <jim@meyering.net>
82480
82481         * m4/stdlib-safer.m4: New file.  From coreutils.
82482         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82484         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82485         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82486         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82487
82488 2005-08-27  Jim Meyering  <jim@meyering.net>
82489
82490         * lib/fopen-safer.c: Merge minor changes from coreutils.
82491         * lib/dup-safer.c: Likewise.
82492         * lib/fd-safer.c: Likewise.
82493
82494         Merge from coreutils.
82495         * lib/stdio--.h: New file.
82496         * lib/stdlib--.h: New file.
82497         * lib/mkstemp-safer.c: New file.
82498
82499         GNU tar needs these.
82500         * lib/pipe-safer.c: New file.
82501         * lib/creat-safer.c: New file.
82502         * lib/fcntl--.h (creat): Define to creat_safer.
82503         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82504         * lib/unistd--.h (pipe): Define to pipe_safer.
82505         * lib/unistd-safer.h: Declare pipe_safer.
82506
82507 2005-08-26  Simon Josefsson  <jas@extundo.com>
82508
82509         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82510         Haible <bruno@clisp.org>.
82511
82512 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * lib/regex_internal.h: Remove all references to
82515         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82516         or better.
82517         (bitset_not, bitset_merge, bitset_not_merge):
82518         (bitset_mask, re_string_allocate, re_string_construct):
82519         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82520         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82521         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82522         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82523         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82524         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82525         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82526         (re_acquire_state_context):
82527         Remove unnecessary forward decls.
82528         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82529         Put __attribute at function definition,
82530         now that the function decl has been removed.
82531         * lib/regex_internal.c (re_string_peek_byte_case):
82532         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82533         Likewise.
82534
82535 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82536
82537         * m4/regex.m4: Add AC_PREREQ(2.50).
82538         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82539
82540 2005-08-25  Simon Josefsson  <jas@extundo.com>
82541
82542         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82543         __fsetlocking.
82544
82545 2005-08-25  Simon Josefsson  <jas@extundo.com>
82546
82547         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82548         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82549         GLIBC specific code.
82550
82551 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82552
82553         Make regex safe for g++.  This fixes one real bug (an "err"
82554         that should have been "*err").  g++ problem reported by
82555         Sam Steingold.
82556         * lib/regex_internal.h (re_calloc): New macro, consistent with
82557         re_malloc etc.  All callers of calloc changed to use re_calloc.
82558         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82559         not int.  All callers changed.
82560         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82561         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82562         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82563         (find_recover_state): Change "err" to "*err"; this fixes what
82564         appears to be a real bug.
82565         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82566         versus int.
82567
82568 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         * modules/regex (Depends-on): Add malloc, since the code
82571         assumes that !malloc(0) means failure.
82572
82573 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82576
82577         alloca modernization/simplification for regex.
82578         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82579         needs to be at the start of the file, and can be moved into
82580         regex_internal.h and simplified.
82581         * lib/regex_internal.h: Include <alloca.h>.
82582         (__libc_use_alloca) [!defined _LIBC]: New macro.
82583         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82584         now works outside glibc.
82585
82586 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * config/srclist.txt: Add glibc bugs 1241, 1245.
82589
82590 2005-08-25  Jim Meyering  <jim@meyering.net>
82591
82592         * lib/open-safer.c: Include <config.h>.
82593         Otherwise, we'd lose LARGEFILE support in any file using
82594         e.g. "fcntl--.h"
82595
82596 2005-08-25  Bruno Haible  <bruno@clisp.org>
82597
82598         * m4/minmax.m4: Require autoconf 2.52.
82599         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82600         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82601         alternatives of translit over the alphabet.
82602         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82603
82604 2005-08-24  Simon Josefsson  <jas@extundo.com>
82605
82606         * tests/test-getpass.c: New file.
82607
82608 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82609
82610         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82611         for GNU regex features.
82612
82613 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82614
82615         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82616         * lib/regex.h (regerror): Likewise.
82617
82618         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82619         requires this.  (The code never needed it.)
82620
82621         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82622         All uses of recently-renamed identifiers changed to use the new,
82623         POSIX-compliant names.  The code will build and run just fine
82624         without these changes, but it's better to eat our own dog food
82625         and use the standard-conforming names.
82626
82627         * lib/regex.h: Fix a multitude of POSIX name space violations.
82628         These changes have an effect only for programs that define
82629         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82630         do not change anything for programs compiled in the normal way.
82631         Also, there is no effect on the ABI.
82632
82633         (_REGEX_SOURCE): New macro.
82634         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82635         defined and _GNU_SOURCE is not; this fixes a name space violation.
82636
82637         Rename the following macros to obey POSIX requirements.
82638         The old names are still visible as macros if _REGEX_SOURCE is defined.
82639         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82640         RE_BACKSLASH_ESCAPE_IN_LISTS.
82641         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82642         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82643         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82644         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82645         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82646         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82647         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82648         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82649         (REG_INTERVALS): renamed from RE_INTERVALS.
82650         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82651         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82652         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82653         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82654         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82655         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82656         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82657         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82658         RE_UNMATCHED_RIGHT_PAREN_ORD.
82659         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82660         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82661         (REG_DEBUG): renamed from RE_DEBUG.
82662         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82663         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82664         unusual, since we can't clash with the POSIX REG_ICASE.
82665         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82666         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82667         (REG_NO_SUB): renamed from RE_NO_SUB.
82668         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82669         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82670         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82671         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82672         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82673         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82674         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82675         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82676         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82677         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82678         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82679         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82680         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82681         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82682         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82683         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82684         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82685         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82686         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82687         (REG_FIXED): Renamed from REGS_FIXED.
82688         (REG_NREGS): Renamed from RE_NREGS.
82689
82690         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82691         of other REG_* macros, since POSIX says the user is allowed to
82692         #undef these macros selectively.
82693
82694         (reg_errcode_t): Update comment stating what other tables need
82695         to be consistent.
82696
82697         Rename the following enum values to obey POSIX requirements.
82698         The old names are still visible as macros.
82699         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82700         is not defined, since GNU is supposed to be a superset of POSIX as
82701         much as possible, and since we want reg_errcode_t to be a signed
82702         type for implementation consistency.
82703         (_REG_NOERROR): Renamed from REG_NOERROR.
82704         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82705         (_REG_BADPAT): Renamed from REG_BADPAT.
82706         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82707         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82708         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82709         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82710         (_REG_EBRACK): Renamed from REG_EBRACK.
82711         (_REG_EPAREN): Renamed from REG_EPAREN.
82712         (_REG_EBRACE): Renamed from REG_EBRACE.
82713         (_REG_BADBR): Renamed from REG_BADBR.
82714         (_REG_ERANGE): Renamed from REG_ERANGE.
82715         (_REG_ESPACE): Renamed from REG_ESPACE.
82716         (_REG_BADRPT): Renamed from REG_BADRPT.
82717         (_REG_EEND): Renamed from REG_EEND.
82718         (_REG_ESIZE): Renamed from REG_ESIZE.
82719         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82720         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82721         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82722         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82723         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82724
82725         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82726         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82727         changed.  But support the old name if the new one is not defined
82728         and if _REGEX_SOURCE.
82729
82730         Change the following member names in struct re_pattern_buffer.
82731         The old names are still supported if !_REGEX_SOURCE.
82732         The new names are always supported, regardless of _REGEX_SOURCE.
82733         (re_buffer): Renamed from buffer.
82734         (re_allocated): Renamed from allocated.
82735         (re_used): Renamed from used.
82736         (re_syntax): Renamed from syntax.
82737         (re_fastmap): Renamed from fastmap.
82738         (re_translate): Renamed from translate.
82739         (re_can_be_null): Renamed from can_be_null.
82740         (re_regs_allocated): Renamed from regs_allocated.
82741         (re_fastmap_accurate): Renamed from fastmap_accurate.
82742         (re_no_sub): Renamed from no_sub.
82743         (re_not_bol): Renamed from not_bol.
82744         (re_not_eol): Renamed from not_eol.
82745         (re_newline_anchor): Renamed from newline_anchor.
82746
82747         Change the following member names in struct re_registers.
82748         The old names are still supported if !_REGEX_SOURCE.
82749         The new names are always supported, regardless of _REGEX_SOURCE.
82750         (rm_num_regs): Renamed from num_regs.
82751         (rm_start): Renamed from start.
82752         (rm_end): Renamed from end.
82753
82754         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82755         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82756         Prepend __ to parameter names.
82757
82758         Undo yesterday's changes.
82759
82760 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82761
82762         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82763         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82764         lib/regex.c.
82765
82766 2005-08-24  Jim Meyering  <jim@meyering.net>
82767
82768         Sync from coreutils.
82769         * m4/fcntl-safer.m4: New file.
82770
82771         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82772         and object files for this module.
82773
82774 2005-08-24  Jim Meyering  <jim@meyering.net>
82775
82776         Sync from coreutils.
82777         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82778
82779 2005-08-24  Jim Meyering  <jim@meyering.net>
82780
82781         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82782         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82783
82784 2005-08-24  Jim Meyering  <jim@meyering.net>
82785
82786         * modules/fcntl-safer: New module.
82787         * modules/fts (Depends-on): Add fcntl-safer.
82788         * MODULES.html.sh (File descriptor based Input/Output):
82789         Add fcntl-safer.
82790
82791 2005-08-24  Bruno Haible  <bruno@clisp.org>
82792
82793         Support for unit test modules.
82794         * modules/README: Mention tests modules.
82795         * modules/TEMPLATE-TESTS: New file.
82796         * gnulib-tool: New options --extract-tests-module, --with-tests and
82797         --tests-base (unused for the moment).
82798         (testsbase, inctests): New variables.
82799         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82800         (func_verify_module): Exclude TEMPLATE-TESTS.
82801         (func_verify_nontests_module, func_verify_tests_module): New functions.
82802         (func_get_dependencies): Add implicit dependency for tests modules.
82803         (func_get_tests_module): New function.
82804         (func_modules_transitive_closure): When --with-tests was specified,
82805         include the unit tests as well, unless explicitly avoided.
82806         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82807         (func_emit_tests_Makefile_am): New function.
82808         (func_create_testdir): When --with-tests was specified, emit a
82809         tests/ directory.
82810         * MODULES.html.sh (Future developments): Update.
82811
82812 2005-08-24  Bruno Haible  <bruno@clisp.org>
82813
82814         * modules/tls-tests: New file.
82815         * tests/test-tls.c: New file, from GNU gettext.
82816
82817 2005-08-24  Bruno Haible  <bruno@clisp.org>
82818
82819         * modules/lock-tests: New file.
82820         * tests/test-lock.c: New file, from GNU gettext.
82821
82822 2005-08-24  Bruno Haible  <bruno@clisp.org>
82823
82824         * lib/lock.h: Add multiple inclusion guard.
82825         * lib/tls.h: Add multiple inclusion guard.
82826
82827 2005-08-24  Bruno Haible  <bruno@clisp.org>
82828
82829         * gnulib-tool: Add support for the --aux-dir option to
82830         --create-testdir, --create-megatestdir, --test, --megatest.
82831         (func_create_testdir, func_create_megatestdir): Optionally emit a
82832         AC_CONFIG_AUX_DIR directive.
82833         (create-testdir, create-megatestdir, test, megatest): Provide a
82834         default value for $auxdir.
82835
82836 2005-08-24  Bruno Haible  <bruno@clisp.org>
82837
82838         * gnulib-tool (import): Use compound statement instead of subshell
82839         where possible.
82840
82841 2005-08-24  Bruno Haible  <bruno@clisp.org>
82842
82843         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82844
82845 2005-08-24  Bruno Haible  <bruno@clisp.org>
82846
82847         * gnulib-tool (func_version): Update.
82848
82849 2005-08-24  Bruno Haible  <bruno@clisp.org>
82850
82851         * gnulib-tool (func_import, func_create_testdir,
82852         func_create_megatestdir): Quote all autoconf macro arguments.
82853
82854 2005-08-24  Bruno Haible  <bruno@clisp.org>
82855
82856         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82857         option --force, because --force causes the aclocal.m4 of each
82858         subdirectory to be newer than the corresponding config.h.in.
82859
82860 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82861
82862         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82863         All contents moved to gl_REGEX.
82864         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82865         assume that it does.
82866
82867 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82868
82869         * lib/regex.h (REG_NOSYS)
82870         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82871         Define, since POSIX requires it as of 2001.
82872         (_REG_ENOSYS)
82873         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82874         New private symbol, used to keep the enum signed in all cases.
82875         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82876         Youngman in
82877         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82878
82879         * lib/regex_internal.c (re_string_skip_chars, register_state):
82880         (calc_state_hash):
82881         Remove forward decls; no longer needed now that we use prototypes.
82882         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82883         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82884         (clean_state_log_if_needed): Likewise.
82885
82886 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * config/srclist.txt: Add glibc bugs 1231-1233.
82889
82890 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         Fix problems reported by Sam Steingold in
82893         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82894         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82895         assumed that reg_errcode_t is a signed type, which is not
82896         necessarily true if _XOPEN_SOURCE is not defined.
82897         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82898         since some compilers warn about it otherwise.
82899
82900 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82901
82902         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82903         (init_word_char, create_initial_state, duplicate_node_closure):
82904         (fetch_token, peek_token_bracket, build_range_exp):
82905         (build_collating_symbol): Remove forward decls; no longer needed
82906         now that we use prototypes.
82907
82908         * lib/regcomp.c:
82909         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82910         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82911         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82912         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82913         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82914         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82915         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82916         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82917         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82918         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82919         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82920         (build_charclass, build_charclass_op, fetch_number, create_tree):
82921         (create_token_tree, mark_opt_subexp, duplicate_tree):
82922         Use prototypes rather than old-style definitions.
82923
82924         * lib/regex_internal.c:
82925         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82926         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82927         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82928         (re_string_reconstruct, re_string_peek_byte_case):
82929         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82930         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82931         (re_node_set_init_copy, re_node_set_add_intersect):
82932         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82933         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82934         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82935         (re_acquire_state, re_acquire_state_context, register_state):
82936         (create_ci_newstate, create_cd_newstate, free_state):
82937         Likewise.
82938         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82939         re_search_2):
82940         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82941         (re_search_internal, prune_impossible_nodes):
82942         (acquire_init_state_context, check_matching, static):
82943         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82944         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82945         (update_regs, sift_states_backward, build_sifted_states):
82946         (clean_state_log_if_needed, merge_state_array):
82947         (update_cur_sifted_state, add_epsilon_src_nodes):
82948         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82949         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82950         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82951         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82952         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82953         (check_arrival, check_arrival_add_next_nodes):
82954         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82955         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82956         (check_node_accept_bytes, check_node_accept, extend_buffers):
82957         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82958         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82959         (sift_ctx_init):
82960         Likewise.
82961
82962         * lib/regex_internal.h:
82963         (re_string_allocate, re_string_construct, re_string_reconstruct):
82964         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82965         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82966         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82967         (re_string_context_at, re_string_peek_byte_case):
82968         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82969         is defined, since we now use prototypes always.
82970
82971         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82972         C89 or better.  All uses removed.
82973
82974 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * config/srclist.txt: Add glibc bugs 1220-1227.
82977
82978 2005-08-20  Jim Meyering  <jim@meyering.net>
82979
82980         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82981         of unused local, dfa.
82982
82983 2005-08-20  Bruno Haible  <bruno@clisp.org>
82984
82985         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82986
82987 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82988
82989         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82990         (re_node_set_insert_last, re_dfa_add_node):
82991         Rename local variables to avoid GCC shadowing warnings.
82992
82993 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82996         [defined lint]: Suppress bogus uninitialized-variable warnings.
82997
82998         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82999         and let the caller return REG_ESPACE if out of space.  This
83000         removes an uninitialied-variable warning with GCC 4.0.1, and also
83001         avoids taking the address of a local variable.  All callers
83002         changed.
83003
83004 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83007         $LIBCSRC/posix/regexec.c.
83008         Add glibc bug 1217 for regcomp.c.
83009
83010 2005-08-19  Jim Meyering  <jim@meyering.net>
83011
83012         * lib/regexec.c (proceed_next_node): Redo local variables to
83013         avoid GCC shadowing warnings.
83014
83015 2005-08-18  Bruno Haible  <bruno@clisp.org>
83016
83017         * lib/strstr.c (strstr): Fix return value in multibyte case.
83018         * lib/strcasestr.c (strcasestr): Likewise.
83019
83020 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83021
83022         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83023
83024 2005-08-17  Jim Meyering  <jim@meyering.net>
83025
83026         Make the %s format (seconds since the epoch) work for a negative
83027         number and when used with a zero-padded field width, e.g. %015s.
83028
83029         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83030         label so that it precedes the code to set `digits'.  Otherwise,
83031         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83032         print `00-22'.  Now, it prints `-0022', as it should.
83033
83034 2005-08-17  Bruno Haible  <bruno@clisp.org>
83035
83036         * modules/strstr (Files): Add m4/mbrtowc.m4.
83037         (Depends-on): Add mbuiter.
83038
83039 2005-08-17  Bruno Haible  <bruno@clisp.org>
83040
83041         * modules/strcasestr: New file.
83042         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83043         strcasestr.
83044
83045 2005-08-17  Bruno Haible  <bruno@clisp.org>
83046
83047         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83048
83049 2005-08-17  Bruno Haible  <bruno@clisp.org>
83050
83051         * modules/mbuiter: New file.
83052         * MODULES.html.sh (Extended multibyte and wide character utilities):
83053         Add mbuiter.
83054
83055 2005-08-17  Bruno Haible  <bruno@clisp.org>
83056
83057         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83058         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83059
83060 2005-08-17  Bruno Haible  <bruno@clisp.org>
83061
83062         * m4/strcasestr.m4: New file.
83063
83064 2005-08-17  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83067         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83068
83069 2005-08-17  Bruno Haible  <bruno@clisp.org>
83070
83071         * lib/strcasestr.h: New file.
83072         * lib/strcasestr.c: New file.
83073
83074 2005-08-17  Bruno Haible  <bruno@clisp.org>
83075
83076         * lib/strcasecmp.c: Use mbuiter.h.
83077
83078 2005-08-17  Bruno Haible  <bruno@clisp.org>
83079
83080         * lib/mbuiter.h: New file.
83081
83082 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83085         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83086         and gl_GETOPT are both invoked via different paths (as happens
83087         with GNU tar CVS because it uses both argp and getopt), the former
83088         wins.
83089
83090 2005-08-16  Bruno Haible  <bruno@clisp.org>
83091
83092         * modules/tls: New file.
83093         * MODULES.html.sh (Multithreading): Add tls.
83094
83095 2005-08-16  Bruno Haible  <bruno@clisp.org>
83096
83097         * modules/strnlen1: New file.
83098         * MODULES.html.sh (String handling): Add strnlen1.
83099
83100 2005-08-16  Bruno Haible  <bruno@clisp.org>
83101
83102         * modules/strcase (Files): Add m4/mbrtowc.m4.
83103         (Depends-on): Add strnlen1, mbchar.
83104
83105 2005-08-16  Bruno Haible  <bruno@clisp.org>
83106
83107         * modules/mbiter: New file.
83108         * MODULES.html.sh (Extended multibyte and wide character utilities):
83109         Add mbiter.
83110
83111 2005-08-16  Bruno Haible  <bruno@clisp.org>
83112
83113         * modules/mbfile: New file.
83114         * MODULES.html.sh (Extended multibyte and wide character utilities):
83115         Add mbfile.
83116
83117 2005-08-16  Bruno Haible  <bruno@clisp.org>
83118
83119         * modules/mbchar: New file.
83120         * MODULES.html.sh (Extended multibyte and wide character utilities):
83121         New section.
83122
83123 2005-08-16  Bruno Haible  <bruno@clisp.org>
83124
83125         * m4/tls.m4: New file, from GNU gettext.
83126
83127 2005-08-16  Bruno Haible  <bruno@clisp.org>
83128
83129         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83130         always.
83131         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83132
83133 2005-08-16  Bruno Haible  <bruno@clisp.org>
83134
83135         * m4/mbiter.m4: New file.
83136
83137 2005-08-16  Bruno Haible  <bruno@clisp.org>
83138
83139         * m4/mbfile.m4: New file.
83140
83141 2005-08-16  Bruno Haible  <bruno@clisp.org>
83142
83143         * m4/mbchar.m4: New file.
83144
83145 2005-08-16  Bruno Haible  <bruno@clisp.org>
83146
83147         * lib/tls.h: New file, from GNU gettext.
83148         * lib/tls.c: New file, from GNU gettext.
83149
83150 2005-08-16  Bruno Haible  <bruno@clisp.org>
83151
83152         * lib/strnlen1.h: New file.
83153         * lib/strnlen1.c: New file.
83154
83155 2005-08-16  Bruno Haible  <bruno@clisp.org>
83156
83157         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83158         (mbi_init): Update.
83159         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83160         NUL byte, not after it.
83161
83162 2005-08-16  Bruno Haible  <bruno@clisp.org>
83163
83164         * lib/strcase.h (strcasecmp): Add note in comments.
83165         * lib/strncasecmp.c: Use code from strcasecmp.c.
83166         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83167         (strcasecmp): Work correctly in multibyte locales.
83168
83169 2005-08-16  Bruno Haible  <bruno@clisp.org>
83170
83171         * lib/mbiter.h: New file.
83172
83173 2005-08-16  Bruno Haible  <bruno@clisp.org>
83174
83175         * lib/mbfile.h: New file.
83176
83177 2005-08-16  Bruno Haible  <bruno@clisp.org>
83178
83179         * lib/mbchar.h: New file.
83180         * lib/mbchar.c: New file.
83181
83182 2005-08-16  Bruno Haible  <bruno@clisp.org>
83183
83184         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83185         the valid ones. Makes the comparison operations transitive:
83186         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83187         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83188
83189 2005-08-15  Simon Josefsson  <jas@extundo.com>
83190
83191         * modules/ssize_t (License): Change to 'unlimited'.
83192
83193         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83194
83195 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83198         Add comments for each pending glibc patch.
83199
83200 2005-08-15  Bruno Haible  <bruno@clisp.org>
83201
83202         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83203         __cplusplus is defined.
83204
83205 2005-08-14  Jim Meyering  <jim@meyering.net>
83206
83207         Sync from coreutils.
83208
83209         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83210         Use the hash-table-based cycle-detection code not just when
83211         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83212         Reported by James Youngman in
83213         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83214         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83215         FTS_TIGHT_CYCLE_CHECK.
83216         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83217         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83218         once again.
83219         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83220         * lib/fts.c (fd_safer): Remove decl.
83221         Include fcntl--.h rather than unistd-safer.h
83222         (fts_safe_changedir): Don't call fd_safer; no longer needed
83223         now that we include fcntl--.h.
83224
83225 2005-08-12  Simon Josefsson  <jas@extundo.com>
83226
83227         * modules/getndelim2: Use ssize_t module.
83228         * modules/getnline: Likewise.
83229         * modules/safe-read: Likewise.
83230         * modules/xreadlink: Likewise.
83231
83232         * modules/ssize_t: New file.
83233
83234 2005-08-12  Simon Josefsson  <jas@extundo.com>
83235
83236         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83237
83238 2005-08-12  Simon Josefsson  <jas@extundo.com>
83239
83240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83241         ssize_t.
83242
83243 2005-08-12  Simon Josefsson  <jas@extundo.com>
83244
83245         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83246         readline, getdelim and check_version.
83247         (Support for systems lacking ISO C 99: Sizes of integer types):
83248         Add size_max.
83249
83250 2005-08-12  Bruno Haible  <bruno@clisp.org>
83251
83252         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83253
83254 2005-08-11  Simon Josefsson  <jas@extundo.com>
83255
83256         * modules/readline: New file.
83257
83258         * modules/strnlen (Files): Add strnlen.h.
83259
83260 2005-08-11  Simon Josefsson  <jas@extundo.com>
83261
83262         * m4/readline.m4: New file.
83263
83264 2005-08-11  Simon Josefsson  <jas@extundo.com>
83265
83266         * lib/readline.h, readline.c: New file.
83267
83268 2005-08-11  Simon Josefsson  <jas@extundo.com>
83269
83270         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83271         gl_AVOID.
83272
83273 2005-08-11  Bruno Haible  <bruno@clisp.org>
83274
83275         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83276
83277 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83278
83279         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83280
83281 2005-08-10  Simon Josefsson  <jas@extundo.com>
83282
83283         * tests/test-iconvme.c: New file.
83284
83285 2005-08-10  Simon Josefsson  <jas@extundo.com>
83286
83287         * m4/strnlen.m4: New file.
83288
83289         * m4/strndup.m4: Don't check for strnlen declaration, done in
83290         strnlen.m4.
83291
83292 2005-08-10  Simon Josefsson  <jas@extundo.com>
83293
83294         * lib/strndup.c: Use strnlen.h.
83295
83296         * lib/strnlen.h: New file.
83297
83298 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83299
83300         * README: Typos.
83301
83302 2005-08-02  Simon Josefsson  <jas@extundo.com>
83303
83304         * modules/readline: New file.
83305
83306 2005-08-02  Simon Josefsson  <jas@extundo.com>
83307
83308         * modules/getdelim: New file.
83309
83310         * modules/getline: Rewrite, don't use getndelim2.
83311
83312 2005-08-02  Simon Josefsson  <jas@extundo.com>
83313
83314         * m4/getline.m4: Separate out getdelim stuff into separate module.
83315
83316         * m4/getdelim.m4: New file.
83317
83318 2005-08-02  Simon Josefsson  <jas@extundo.com>
83319
83320         * lib/getline.h, getline.c: Rewrite.
83321
83322         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83323
83324 2005-07-31  Bruno Haible  <bruno@clisp.org>
83325
83326         * lib/lock.h (gl_lock_initializer): New macro.
83327         (gl_lock_define_initialized): Use it.
83328         (gl_rwlock_initializer): New macro.
83329         (gl_rwlock_define_initialized): Use it.
83330         (gl_recursive_lock_initializer): New macro.
83331         (gl_recursive_lock_define_initialized): Use it.
83332
83333 2005-07-30  Karl Berry  <karl@gnu.org>
83334
83335         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83336         Report from Ben Pfaff, regarding getopt.
83337
83338 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83339
83340         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83341         normal way.
83342         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83343         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83344         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83345         (gl_GETOPT): Use the new macros.  Most of the implementation
83346         is moved to the new macros.  This is for programs like Emacs
83347         that don't want all the functionality of gl_GETOPT.
83348
83349 2005-07-26  Bruno Haible  <bruno@clisp.org>
83350
83351         * m4/lock.m4: Update from GNU gettext.
83352
83353 2005-07-26  Bruno Haible  <bruno@clisp.org>
83354
83355         * lib/lock.h: Update from GNU gettext.
83356         * lib/lock.c: Update from GNU gettext.
83357
83358 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83361         obsolescent AC_TRY_RUN.  Include the default includes files, for
83362         'exit'.
83363
83364 2005-07-24  Bruno Haible  <bruno@clisp.org>
83365
83366         * modules/visibility: New file.
83367         * MODULES.html.sh (Misc): Add visibility.
83368
83369 2005-07-24  Bruno Haible  <bruno@clisp.org>
83370
83371         * m4/visibility.m4: New file.
83372
83373 2005-07-24  Bruno Haible  <bruno@clisp.org>
83374
83375         * doc/visibility.texi: New file.
83376
83377 2005-07-22  Bruno Haible  <bruno@clisp.org>
83378
83379         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83380         $(ALLOCA_H), redundant through BUILT_SOURCES.
83381         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83382         redundant through BUILT_SOURCES.
83383         * modules/byteswap (Makefile.am): Remove explicit dependency on
83384         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83385         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83386         $(FNMATCH_H), redundant through BUILT_SOURCES.
83387         * modules/getopt (Makefile.am): Remove explicit dependency on
83388         $(GETOPT_H), redundant through BUILT_SOURCES.
83389         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83390         redundant through BUILT_SOURCES.
83391         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83392         redundant through BUILT_SOURCES.
83393         * modules/stdbool (Makefile.am): Remove explicit dependency on
83394         $(STDBOOL_H), redundant through BUILT_SOURCES.
83395         * modules/stdint (Makefile.am): Remove explicit dependency on
83396         $(STDINT_H), redundant through BUILT_SOURCES.
83397         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83398         Remove explicit dependency on $(SYSEXITS_H).
83399         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83400
83401 2005-07-18  Simon Josefsson  <jas@extundo.com>
83402
83403         * lib/check-version.c (check_version): Accept identical versions too.
83404
83405 2005-07-18  Bruno Haible  <bruno@clisp.org>
83406
83407         * modules/lock: New file.
83408         * MODULES.html.sh (Multithreading): New section.
83409
83410 2005-07-18  Bruno Haible  <bruno@clisp.org>
83411
83412         * m4/lock.m4: New file, from GNU gettext.
83413
83414 2005-07-18  Bruno Haible  <bruno@clisp.org>
83415
83416         * lib/lock.h: New file, from GNU gettext.
83417         * lib/lock.c: New file, from GNU gettext.
83418
83419 2005-07-18  Bruno Haible  <bruno@clisp.org>
83420
83421         * lib/lock.h (gl_once_t): New type.
83422         (gl_once_define, gl_once): New macros.
83423         * lib/lock.c (fresh_once): New variable.
83424         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83425         functions.
83426
83427 2005-07-16  Simon Josefsson  <jas@extundo.com>
83428
83429         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83430         workaround, suggested by Bruno.
83431
83432 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83433
83434         * modules/xalloc (Depends-on): Add xalloc-die.
83435         * modules/xvasprintf (Depends-on): Add xalloc-die.
83436
83437 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83438
83439         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83440         with a minor change.
83441
83442 2005-07-15  Bruno Haible  <bruno@clisp.org>
83443
83444         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83445         When using lib/poll.c, define poll as rpl_poll.
83446
83447 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83448
83449         * modules/argp (Depends-on): Remove unlocked-io.
83450
83451 2005-07-14  Derek Price  <derek@ximbiot.com>
83452
83453         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83454         for glob symlink bug.
83455
83456 2005-07-14  Bruno Haible  <bruno@clisp.org>
83457
83458         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83459         Instead, test for *_unlocked function declarations directly.
83460
83461 2005-07-11  Simon Josefsson  <jas@extundo.com>
83462
83463         * modules/size_max: New file.
83464
83465         * modules/xsize: Depend on size_max module for size_max.m4.
83466
83467 2005-07-11  Simon Josefsson  <jas@extundo.com>
83468
83469         * lib/size_max.h: New file.
83470
83471 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83472
83473         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83474         copyright symbol and the year.
83475         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83476         (version_etc_va): Use parameterized copyright notice.
83477         Reword to conform to the current GNU coding standards.
83478
83479 2005-07-11  Karl Berry  <karl@gnu.org>
83480
83481         * doc/gnulib.texi (Quoting): new node.
83482         (Initial import): more info, from Patrice.
83483
83484 2005-07-11  Bruno Haible  <bruno@clisp.org>
83485
83486         * gnulib-tool (func_usage): Document option --avoid.
83487         (Command line options): Handle --avoid.
83488         (func_acceptable): New function.
83489         (func_modules_transitive_closure): Use it.
83490
83491 2005-07-11  Bruno Haible  <bruno@clisp.org>
83492
83493         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83494         Reported by Jim Meyering.
83495
83496 2005-07-10  Bruno Haible  <bruno@clisp.org>
83497
83498         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83499         Needed when size_t is smaller than 'unsigned int'.
83500         Reported by Paul Eggert.
83501
83502 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83503
83504         * modules/argp (Depends-on): Add unlocked-io
83505
83506 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83507
83508         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83509         block of defines.
83510
83511 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83512
83513         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83514         fix now.
83515
83516 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83517         and Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83520         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83521
83522 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * modules/regex (Files): Add lib/regex_internal.c,
83525         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83526         (Depends-on): Add extensions.
83527         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83528
83529 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83530
83531         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83532         pathconf.
83533         * m4/same.m4 (gl_SAME): Likewise.
83534         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83535
83536         * m4/regex.m4: Adjust to new libc regex implementation.
83537         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83538         all the .c and .h parts of (the new) regex.
83539         Quote the m4 stuff better.
83540         Check for RE_ICASE bug of old gnulib.
83541         Check for REG_STARTEND of recent libc.
83542         Rename local variables from jm_* to gl_*.
83543         Quote operand of "test -f".
83544         Say "recent enough" version of libc, not "version 2".
83545         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83546         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83547         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83548         Remove check for btowc, isascii.
83549         Require AM_LANGINFO_CODESET.
83550
83551 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * lib/regex.c, regex.h: Sync from libc.
83554         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83555         * lib/regexec.c:
83556         New files, synced from libc, except that regex_internal.h
83557         currently has a small porting fix.
83558
83559 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83560
83561         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83562         regex_internal.c, regexec.c.
83563         Add regex_internal.h too, but as a comment, since the libc version
83564         is currently broken in gnulib mode.
83565
83566 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         Support programs like Emacs that use gnulib but not gettext.
83569         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83570         * modules/gettext-h: New file.
83571         * modules/gettext (Files): Remove lib/gettext.h.
83572         (Depends-on): Add gettext-h.
83573         (Makefile.am): Remove lib_SOURCES.
83574         * modules/argmatch, modules/c-stack, modules/closeout:
83575         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83576         * modules/execute, modules/file-type, modules/getaddrinfo:
83577         * modules/getopt, modules/human, modules/javacomp:
83578         * modules/javaexec, modules/mkdir-p, modules/obstack:
83579         * modules/openat, modules/pagealign_alloc, modules/pipe:
83580         * modules/quotearg, modules/regex, modules/rpmatch:
83581         * modules/unicodeio, modules/userspec, modules/version-etc:
83582         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83583         * modules/xsetenv:
83584         Depend on gettext-h, not gettext.
83585
83586 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83587
83588         * gnulib-tool (func_import): Add support for 'public domain' license.
83589         * modules/alloca, modules/atexit, modules/memmove:
83590         Now public domain, not GPL.
83591         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83592         * modules/realloc, modules/strerror, modules/strtod:
83593         Now LGPL, not GPL.
83594
83595 2005-07-05  Bruno Haible  <bruno@clisp.org>
83596
83597         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83598         autoconf CVS. Needed for mingw.
83599
83600 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83601
83602         Remove the dependency of the strftime module on the tzset module.
83603         * modules/strftime (Depends-on): Remove dependency on tzset.
83604
83605 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         Remove the dependency of the strftime module on the tzset module.
83608         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83609         gl_FUNC_TZSET_CLOBBER.
83610
83611 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83612
83613         Remove the dependency of the strftime module on the tzset module.
83614         * lib/strftime.c (my_strftime)
83615         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83616         Copy the input structure, to work around some of the bug with
83617         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83618         Solaris releases, you should also use the tzset module, but we won't
83619         require it as a dependency any more since we don't want LGPLed code
83620         to depend on GPLed code.
83621
83622 2005-07-02  Jim Meyering  <jim@meyering.net>
83623
83624         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83625         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83626         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83627         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83628
83629 2005-07-02  Jim Meyering  <jim@meyering.net>
83630
83631         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83632
83633 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83634
83635         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83636         declares only 'struct timespec;' (!).
83637
83638 2005-07-01  Jim Meyering  <jim@meyering.net>
83639
83640         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83641         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83642         * lib/save-cwd.c, tempname.c:
83643         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83644         and don't include <sys/file.h>).
83645
83646 2005-06-29  Jim Meyering  <jim@meyering.net>
83647
83648         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83649         type name.  Use the variable name instead.
83650         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83651         Likewise.
83652
83653 2005-06-28  Simon Josefsson  <jas@extundo.com>
83654
83655         * modules/check-version (Files): Add check-version.m4.
83656
83657 2005-06-28  Simon Josefsson  <jas@extundo.com>
83658
83659         * m4/check-version.m4: New file, suggested by Jim Meyering
83660         <jim@meyering.net>.
83661
83662 2005-06-28  Simon Josefsson  <jas@extundo.com>
83663
83664         * lib/check-version.h, lib/check-version.c: New files.
83665
83666 2005-06-28  Simon Josefsson  <jas@extundo.com>
83667
83668         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83669         collision with global variable.  Better indentation.  Don't
83670         increment buffer pointer beyond buffer end.  Based on comments
83671         from Paul Eggert <eggert@cs.ucla.edu>.
83672
83673         * lib/base64.h: Indent.
83674
83675 2005-06-28  Simon Josefsson  <jas@extundo.com>
83676
83677         * doc/gnulib.texi (Library version handling): New section.
83678
83679 2005-06-28  Jim Meyering  <jim@meyering.net>
83680
83681         * check-module (find_included_lib_files): Hard-code another
83682         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83683         but modules/fts-lgpl (correctly) does not list those files.
83684
83685         * modules/canonicalize (Files): Add lib/pathmax.h.
83686
83687 2005-06-25  Simon Josefsson  <jas@extundo.com>
83688
83689         * modules/check-version: New file.
83690
83691 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83692
83693         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83694         initializer of struct addrinfo, as an indication that we don't
83695         care how many members the structure has.
83696
83697 2005-06-24  Derek Price  <derek@ximbiot.com>
83698         and Bruno Haible  <bruno@clisp.org>
83699
83700         Remove stat module & update lstat.
83701         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83702         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83703         * m4/stat.m4: Remove this file.
83704
83705 2005-06-24  Derek Price  <derek@ximbiot.com>
83706         and Bruno Haible  <bruno@clisp.org>
83707
83708         Remove stat module & update lstat.
83709         * lib/stat.c: Remove this file...
83710         (slash_aware_lstat): ...moving this content and its support...
83711         * lib/lstat.c (rpl_lstat): ...into here.
83712         * lib/lstat.h: New file.
83713
83714 2005-06-24  Derek Price  <derek@ximbiot.com>
83715         and Bruno Haible  <bruno@clisp.org>
83716
83717         Remove stat module & update lstat.
83718         * config/srclist.txt (libc sources): Remove stat.
83719
83720 2005-06-24  Derek Price  <derek@ximbiot.com>
83721         and Bruno Haible  <bruno@clisp.org>
83722
83723         Remove stat module & update lstat.
83724         * MODULES.html.sh (stat): Remove.
83725         * MODULES.html: Regenerated.
83726         * modules/lstat (Description): Correct function name.
83727         (Files): Add "lstat.h".
83728         (Depends-on): Remove stat, add xalloc, stat-macros.
83729         * modules/stat: Remove this file.
83730         (Include): Add "lstat.h", remove <sys/stat.h>.
83731
83732 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83735         (ranged_convert): Don't save conversion in a temporary struct.
83736         This causes a warning with GCC 4.0.0, and anyway in the typical
83737         case it's not worth the extra 100 bytes or so of code.
83738         (ranged_convert, __mktime_internal): When calling a function via a
83739         pointer P, use P () rather than (*P) (), as we now assume C89 or
83740         better.
83741
83742 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83745         "who -r" failed to give output.  Problem reported by Tim Waugh.
83746
83747         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83748         (xcalloc): Use it to avoid needless tests.
83749         Problem reported by Jim Meyering.
83750
83751 2005-06-20  Derek Price  <derek@ximbiot.com>
83752
83753         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83754         unnecessary for Autoconfs > 2.59c.
83755
83756 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83757
83758         * lib/argp.h (__option_is_short): Check upper limit of
83759         __key. Isprint() requires its argument to have the value
83760         of an unsigned char or EOF.
83761
83762 2005-06-16  Jim Meyering  <jim@meyering.net>
83763
83764         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83765         when either N or S is zero.
83766
83767 2005-06-16  Derek Price  <derek@ximbiot.com>
83768
83769         * m4/bison.m4: Declare YACC & YFLAGS precious.
83770
83771 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83772
83773         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83774         multibyte string or pattern, fall back on unibyte matching.
83775         Problem reported by James Youngman.
83776
83777 2005-06-08  Bruno Haible  <bruno@clisp.org>
83778
83779         * modules/csharpcomp: New file.
83780         * MODULES.html.sh (C#): Add csharpcomp.
83781
83782 2005-06-08  Bruno Haible  <bruno@clisp.org>
83783
83784         * m4/csharpcomp.m4: New file, from GNU gettext.
83785
83786 2005-06-08  Bruno Haible  <bruno@clisp.org>
83787
83788         * lib/csharpcomp.h: New file, from GNU gettext.
83789         * lib/csharpcomp.c: New file, from GNU gettext.
83790         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83791
83792 2005-06-08  Bruno Haible  <bruno@clisp.org>
83793
83794         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83795         warning on mingw.
83796
83797 2005-06-07  Derek Price  <derek@ximbiot.com>
83798
83799         Sync from CVS.
83800         * lib/glob_.h: Indent nested #ifdef.
83801
83802 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83803
83804         Sync from coreutils.
83805         Use "file name" when talking about file names, instead of "filename"
83806         or "path", as per the GNU coding standards.
83807         * lib/mkdir-p.c: Renamed from makepath.c.
83808         (make_dir_parents): Renamed from make_path.  All callers changed.
83809         * lib/mkdir-p.h: Likewise.  All includers changed.
83810         * lib/filenamecat.c: Renamed from path-concat.c.
83811         (file_name_concat): Renamed from path_concat.  All callers changed.
83812         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83813         * lib/filenamecat.h: Likewise.  All includers changed.
83814         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83815         in comments or local variable names.
83816         * lib/basename.c: Likewise.
83817         * lib/canonicalize.c, canonicalize.h: Likewise.
83818         * lib/dirname.c, dirname.h: Likewise.
83819         * lib/euidaccess.c: Likewise.
83820         * lib/exclude.c: Likewise
83821         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83822         * lib/fsusage.c, fsuage.h: Likewise.
83823         * lib/fts.c, fts_.h: Likewise.
83824         * lib/getcwd.c: Likewise.
83825         * lib/getloadavg.c: Likewise.
83826         * lib/mkstemp.c: Likewise.
83827         * lib/mountlist.c, mountlist.h: Likewise.
83828         * lib/openat.c, openat.h: Likewise.
83829         * lib/readlink-stub.c: Likewise.
83830         * lib/readutmp.c, readutmp.h: Likewise.
83831         * lib/rename.c: Likewise.
83832         * lib/rmdir.c: Likewise.
83833         * lib/same.c: Likewise.
83834         * lib/savedir.c: Likewise.
83835         * lib/stripslash.c: Likewise.
83836         * lib/tempname.c: Likewise.
83837         * lib/xreadlink.c: Likewise.
83838         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83839         All uses changed.
83840         * lib/exclude.h: Likewise.
83841
83842         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83843         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83844         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83845         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83846         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83847         files have been getting away with it for years (MORE/BSD 4.3
83848         is extinct now).
83849         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83850         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83851
83852         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83853         Define to 256, not 255, as per modern POSIX.
83854
83855 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         Sync from coreutils.
83858         Use "file name" when talking about file names, instead of "filename"
83859         or "path", as per the GNU coding standards.
83860         * MODULES.html.sh: mkdir-p renamed from makepath.
83861         filenamecat renamed from path-concat.
83862         * modules/filenamecat: Renamed from modules/path-concat.
83863         (Files): filenamecat.h and filenamecat.c renamed from
83864         path-concat.h and path-concat.c.
83865         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83866         (Include): filenamecat.h, not path-concat.h.
83867         * modules/mkdir-p: Renamed from modules/makepath.
83868         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83869         makepath.c.
83870         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83871         (Include): mkdir-p.h, not makepath.h.
83872
83873 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         Sync from coreutils.
83876         * m4/mkdir-p.m4: Renamed from makepath.m4.
83877         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83878         Rename files from makepath.c to mkdir-p.c, and from
83879         makepath.h to mkdir-p.h.
83880         * m4/filenamecat.m4: Renamed from path-concat.m4.
83881         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83882         Rename files from path-concat.c to filenamecat.c,
83883         and from path-concat.h to filenamecat.h.
83884         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83885         "file name" in local variables or comments.
83886         * m4/rename.m4: Likewise.
83887
83888 2005-06-01  Bruno Haible  <bruno@clisp.org>
83889
83890         * modules/csharpexec: New file.
83891         * MODULES.html.sh (C#): New section.
83892
83893 2005-06-01  Bruno Haible  <bruno@clisp.org>
83894
83895         * m4/csharp.m4: New file, from GNU gettext.
83896         * m4/csharpexec.m4: New file, from GNU gettext.
83897
83898 2005-06-01  Bruno Haible  <bruno@clisp.org>
83899
83900         * lib/csharpexec.h: New file, from GNU gettext.
83901         * lib/csharpexec.c: New file, from GNU gettext.
83902         * lib/csharpexec.sh.in: New file, from GNU gettext.
83903
83904 2005-05-31  Derek Price  <derek@ximbiot.com>
83905             Paul Eggert  <eggert@cs.ucla.edu>
83906
83907         Sync from cvs.
83908         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83909
83910 2005-05-31  Derek Price  <derek@ximbiot.com>
83911             Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         Sync from cvs.
83914         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83915
83916 2005-05-29  Derek Price  <derek@ximbiot.com>
83917
83918         * config/srclist.txt (glob_.h, glob.c): Add these files.
83919
83920 2005-05-29  Derek Price  <derek@ximbiot.com>
83921
83922         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83923         * modules/glob: New file.
83924         * modules/getlogin_r: Add link to POSIX spec in description.
83925
83926 2005-05-29  Derek Price  <derek@ximbiot.com>
83927             Paul Eggert  <eggert@cs.ucla.edu>
83928
83929         * m4/glob.m4: New file.
83930
83931 2005-05-29  Derek Price  <derek@ximbiot.com>
83932             Paul Eggert  <eggert@cs.ucla.edu>
83933
83934         * lib/glob_.h, lib/glob.c: New files.
83935
83936 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83939         * modules/fts-lgpl (Depends-on): Remove gettext.
83940
83941 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83942
83943         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83944         and don't require gt_INTTYPES_PRI.
83945
83946 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83947
83948         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83949
83950         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83951         the configuration hassle isn't worth it.
83952         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83953         (LONGEST_MODIFIER, PRIuMAX): Remove.
83954
83955 2005-05-27  Bruno Haible  <bruno@clisp.org>
83956
83957         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83958
83959 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83962         _POSIX_PTHREAD_SEMANTICS for Solaris.
83963
83964 2005-05-25  Derek Price  <derek@ximbiot.com>
83965
83966         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83967
83968 2005-05-25  Derek Price  <derek@ximbiot.com>
83969             Paul Eggert  <eggert@cs.ucla.edu>
83970
83971         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83972         * lib/getlogin_r.c, getlogin_r.h: New files.
83973
83974 2005-05-25  Bruno Haible  <bruno@clisp.org>
83975             Derek Price  <derek@ximbiot.com>
83976
83977         * lib/getlogin_r.h: Simplify API documentation.
83978
83979 2005-05-23  Derek Price  <derek@ximbiot.com>
83980
83981         * modules/minmax (Files): Add m4/minmax.m4.
83982         (configure.ac): Add gl_MINMAX.
83983
83984 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83987         so that unistd-safer.h (GPL'ed code) need not be included.
83988
83989 2005-05-22  Bruno Haible  <bruno@clisp.org>
83990
83991         * m4/minmax.m4: New file.
83992         Based on a patch by Derek Price <derek@ximbiot.com>.
83993
83994 2005-05-22  Bruno Haible  <bruno@clisp.org>
83995
83996         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83997         (INT64_MIN): Fix definition.
83998         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83999
84000         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84001         NEED_SIGNED_INT_TYPES.
84002
84003         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84004         HAVE_SYSTEM_INTTYPES.
84005
84006 2005-05-22  Bruno Haible  <bruno@clisp.org>
84007
84008         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84009         Also include <sys/param.h> if it defines MIN, MAX.
84010         Based on a patch by Derek Price <derek@ximbiot.com>.
84011
84012 2005-05-21  Jim Meyering  <jim@meyering.net>
84013
84014         * modules/fts (Files): Add m4/inttypes-pri.m4.
84015         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84016
84017 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         New fts module.
84020         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84021         (setup_dir, free_dir): New functions.
84022         (enter_dir, leave_dir): Define trivial
84023         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84024         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84025         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84026         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84027         Move to fts-cycle.c.
84028         (fts_open): Use setup_dir.
84029         (fts_close): Use free_dir.
84030         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84031         This adds a label and some gotos, but the alternatives were messier.
84032         Check for memory allocation failure when entering a dir.
84033         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84034         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84035         (FTS): New member fts_cycle, that is a union that contains the
84036         old active_dir_ht and cycle_state.  All uses changed to mention
84037         fts_cycle.ht and fts_cycle.state.
84038         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84039         fts.c, with the following changes:
84040         (setup_dir, free_dir): New functions.
84041         (enter_dir): Now returns bool.  Return true if successful, false
84042         if memory exhausted.  All callers changed.
84043         Do not bother partly cleaning up on
84044         memory allocation failure; that is free_dir's job.
84045         However, free ad if hash_insert fails, to avoid memory leak.
84046         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84047         fts->fts_options to see which union member to use.
84048
84049 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84050
84051         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84052         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84053
84054 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84055
84056         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84057
84058 2005-05-20  Jim Meyering  <jim@meyering.net>
84059
84060         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84061         Now a macro, to pacify GCC.
84062
84063 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84064
84065         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84066         of -1.
84067
84068 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84069
84070         * lib/chown.c (rpl_chown): Return -1 on failure.
84071
84072 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84073
84074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84075         Don't check for stddef.h.
84076         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84077         don't use its results.
84078         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84079         since we include them unconditionally.  Don't require
84080         AM_STDBOOL_H, since stdbool is a prerequisite.
84081         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84082         since we assume C89 or better.
84083         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84084         as we don't use their results.
84085         Don't check for fchdir, memmove, memset, strrchr, as we use
84086         them unconditionally.
84087         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84088         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84089
84090 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84091
84092         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84093         Include <stddef.h> unconditionally, since we assume C89 now.
84094         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84095         * lib/fts.c: Include fts_.h first, to check interface.
84096         Do not include intprops.h; no longer needed.
84097         Include cycle-check.h and hash.h, since fts_.h no longer does.
84098         Remove unnecessary casts of closedir to void.
84099         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84100         decide whether to decrement nlinks.
84101         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84102         (FTS): Use struct hash_table * instead of Hash_table, so that
84103         we no longer need to include hash.h here.
84104
84105 2005-05-18  Jim Meyering  <jim@meyering.net>
84106
84107         * modules/dirfd (License): Change to LGPL.  Most of the code
84108         is already in the public domain.
84109
84110 2005-05-18  Jim Meyering  <jim@meyering.net>
84111
84112         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84113         Reported by Yoann Vandoorselaere.
84114
84115 2005-05-17  Jim Meyering  <jim@meyering.net>
84116
84117         * m4/fts.m4: New file, from coreutils.
84118
84119 2005-05-17  Jim Meyering  <jim@meyering.net>
84120
84121         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84122
84123 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84124
84125         Sync from coreutils.
84126         * m4/unlinkdir.m4: New file.
84127
84128 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84129
84130         Sync from coreutils.
84131         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84132         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84133         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84134         White space changes only.
84135         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84136         special.
84137         * lib/yesno.c: Include getline.h, not ctype.h.
84138         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84139         Use getline to remove arbitrary restriction on response length.
84140
84141 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84142
84143         * config/srclist-update: Spell out "Street" in FSF postal
84144         mail address; this is the style the FSF seems to prefer.
84145
84146         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84147         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84148         this updates FSF postal mail address.
84149
84150         Sync from coreutils.
84151         * modules/unlinkdir: New file.
84152         * modules/yesno (Depends-on): Add getline.
84153         * MODULES.html.sh (File system functions): Add unlinkdir.
84154
84155 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84158         lib/strsep.h:
84159         Change the initial comment to refer to GPL, not LGPL.
84160         gnulib-tool will change it to LGPL as needed.
84161
84162         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84163         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84164         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84165         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84166         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84167         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84168         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84169         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84170         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84171         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84172         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84173         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84174         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84175         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84176         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84177         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84178         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84179         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84180         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84181         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84182         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84183         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84184         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84185         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84186         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84187         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84188         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84189         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84190         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84191         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84192         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84193         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84194         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84195         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84196         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84197         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84198         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84199         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84200         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84201         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84202         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84203         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84204         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84205         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84206         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84207         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84208         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84209         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84210         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84211         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84212         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84213         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84214         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84215         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84216         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84217         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84218         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84219         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84220         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84221         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84222         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84223         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84224         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84225         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84226         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84227         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84228         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84229         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84230         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84231         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84232         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84233         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84234         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84235         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84236         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84237         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84238         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84239         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84240         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84241         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84242         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84243         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84244         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84245         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84246         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84247         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84248         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84249         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84250         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84251         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84252         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84253         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84254         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84255         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84256         lib/yesno.c, lib/yesno.h:
84257         Update FSF postal mail address.
84258
84259 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84262         tests/test-memmem.c, tests/test-stpncpy.c:
84263         Update FSF postal mail address.
84264
84265 2005-05-13  Bruno Haible  <bruno@clisp.org>
84266
84267         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84268         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84269         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84270         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84271         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84272         Add support for 64-bit integers in the MSVC compiler.
84273
84274 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84275
84276         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84277
84278 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84279
84280         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84281
84282 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * doc/getdate.texi (General date syntax): Don't say that date
84285         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84286         Problem reported by Nic Ferrier.
84287
84288 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84289
84290         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84291         specified in ai_socktype. Fix invalid ai_protocol
84292         check. ai_protocol is usually set to 0 or depending on
84293         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84294         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84295         ai_socktype / ai_protocol in the returned addrinfo structure.
84296
84297 2005-05-10  Simon Josefsson  <jas@extundo.com>
84298
84299         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84300         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84301
84302 2005-05-10  Karl Berry  <karl@gnu.org>
84303
84304         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84305         (from http://www.gnu.org/licenses).
84306         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84307         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84308         fdl.texi suffices.
84309
84310 2005-05-10  Karl Berry  <karl@gnu.org>
84311
84312         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84313         (COPYING.DOC): remove.
84314
84315         * config/srclist-update: new FSF address.
84316
84317 2005-05-10  Derek Price  <derek@ximbiot.com>
84318
84319         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84320         possible.
84321
84322 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84323             Bruno Haible  <bruno@clisp.org>
84324
84325         * modules/inet_ntop: New file.
84326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84327         inet_ntop.
84328
84329 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84330             Bruno Haible  <bruno@clisp.org>
84331
84332         * m4/inet_ntop.m4: New file.
84333
84334 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84335             Bruno Haible  <bruno@clisp.org>
84336
84337         * lib/inet_ntop.h: New file.
84338         * lib/inet_ntop.c: New file, from glibc with modifications.
84339
84340 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         * modules/time_r (License): Change to LGPL.
84343         * modules/extensions (License): Change to LGPL.  Actually,
84344         the license is more permissive than that, but currently gnulib-tool
84345         doesn't know how to handle more-permissive licenses.
84346
84347         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84348         Problem reported by Dave Love.
84349
84350 2005-05-08  Jim Meyering  <jim@meyering.net>
84351
84352         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84353         blank.
84354
84355 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * modules/argmatch (Depends-on): Add stdbool.
84358         * modules/backupfile (Depends-on): Likewise.
84359         * modules/chdir-long (Depends-on): Likewise.
84360         * modules/closeout (Depends-on): Likewise.
84361         * modules/cycle-check (Depends-on): Likewise.
84362         * modules/dirname (Depends-on): Likewise.
84363         * modules/fnmatch (Depends-on): Likewise.
84364         * modules/fsusage (Depends-on): Likewise.
84365         * modules/fwriteerror (Depends-on): Likewise.
84366         * modules/getcwd (Depends-on): Likewise.
84367         * modules/getloadavg (Depends-on): Likewise.
84368         * modules/hard-locale (Depends-on): Likewise.
84369         * modules/makepath (Depends-on): Likewise.
84370         * modules/mountlist (Depends-on): Likewise.
84371         * modules/nanosleep (Depends-on): Likewise.
84372         * modules/posixtm (Depends-on): Likewise.
84373         * modules/quotearg (Depends-on): Likewise.
84374         * modules/readtokens (Depends-on): Likewise.
84375         * modules/readtokens0 (Depends-on): Likewise.
84376         * modules/readutmp (Depends-on): Likewise.
84377         * modules/save-cwd (Depends-on): Likewise.
84378         * modules/strftime (Depends-on): Likewise.
84379         * modules/userspec (Depends-on): Likewise.
84380         * modules/utimecmp (Depends-on): Likewise.
84381         * modules/xgetcwd (Depends-on): Likewise.
84382         * modules/xnanosleep (Depends-on): Likewise.
84383         * modules/xstrtod (Depends-on): Likewise.
84384         * modules/yesno (Depends-on): Likewise.
84385
84386 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84389         needless checks.
84390
84391 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84392
84393         Merge from coreutils.  Among other things,
84394         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84395         * lib/fd-safer.c: New file.
84396         * lib/fcntl-safer.h, open-safer.c: Remove.
84397         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84398         * lib/dup-safer.c: Include unistd-safer.h first.
84399         Don't include errno.h.
84400         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84401         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84402         * lib/file-type.c: Rely on file-type.h change.
84403         * lib/getloadavg.c: Include unistd-safer.h.
84404         (getloadavg): Use safer open.
84405         * lib/getusershell.c: Include "stdio-safer.h".
84406         (getusershell): Use safer fopen.
84407         * lib/long-options.c (long_options): Use NULL rather than 0.
84408         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84409         'free'.
84410         * lib/modechange.c: Likewise.
84411         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84412         (MODE_DONE): New constant.
84413         (struct mode_change): Remove 'next' member.
84414         (make_node_op_equals): New function; like the old one of the
84415         same name, except it allocates an array.
84416         (mode_compile, mode_create_from_ref): Use it.
84417         (mode_compile): Allocate result as an array, not a linked list.
84418         Parse octal string ourself, so that we catch mistakes like "+0".
84419         (mode_adjust): Arg is an array, not a linked list.
84420         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84421         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84422         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84423         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84424         Remove.  This is now stat-macros.h's job.
84425         (talloc): Remove.  All callers replaced by xalloc, so that
84426         our invokers don't have to worry about reporting memory failures.
84427         (make_node_op_equals): Remove.
84428         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84429         New constants.
84430         (struct mode_change): Moved here from modechange.h.
84431         (mode_append_entry): Remove.
84432         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84433         apps to have incorrect behavior.  Use simpler algorithm for head
84434         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84435         Detect more invalid usages rather than having somewhat-random behavior.
84436         Don't insert an "a=" action, as that leads to incorrect behavior.
84437         (mode_compile, mode_create_from_ref): Return NULL on error instead
84438         of an enum, since now there's only one way to have an error.  All
84439         callers changed.
84440         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84441         at the correct time.  Simplify calculation of "+u" and its ilk.
84442         Don't mishandle "+X".
84443         (mode_free): Remove "register" and localize decls.
84444         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84445         (struct mode_change): Move to modechange.c; callers don't
84446         need to see this stuff.
84447         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84448         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84449         (mode_change, mode_adjust): Reflect the new signatures noted above.
84450         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84451         that might redefine system include files.
84452         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84453         (my_usleep): Use NULL rather than (void *) 0.
84454         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84455         Use siginterrupt to specify that system calls should be interrupted.
84456         (rpl_nanosleep): Move initialization of suspended closer to call of
84457         my_usleep.
84458         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84459         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84460         (desirable_utmp_entry): New function.
84461         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84462         using x2nrealloc, to simplify logic.
84463         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84464         size calculation.  Do not assume utmp file is a regular file.
84465         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84466         (READ_UTMP_CHECK_PIDS): New constant.
84467         * lib/save-cwd.c: Include unistd-safer.h.
84468         (save_cwd): Use fd_safer.
84469         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84470         [!_LIBC] Include "stat-macros.h" instead.
84471         * lib/unistd-safer.h (fd_safer): New decl.
84472
84473 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84474
84475         * modules/getloadavg (Depends-on): Add unistd-safer.
84476         * modules/getusershell (Depends-on): Add stdio-safer.
84477         * modules/lstat (Depends-on): Remove xalloc.
84478         * modules/mkstemp (Depends-on): Add stat-macros.
84479         * modules/modechange (Depends-on): Remove xstrtol.
84480         Add stat-macros, xalloc.
84481         * modules/save-cwd (Depends-on): Add unistd-safer.
84482         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84483         * modules/unistd-safer (Files): Add lib/fd-safer.c
84484         (Makefile.am): Remove lib_SOURCES.
84485
84486         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84487         Remove fcntl-safer; unistd-safer supersedes it.
84488
84489 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84492         AC_HEADER_STAT.
84493         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84494         (gl_PREREQ_CHOWN): Remove.
84495         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84496         it.  Don't require AC_HEADER_STAT.
84497         (gl_PREREQ_LSTAT): Remove.
84498         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84499         Don't require AC_HEADER_STAT.
84500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84501         (gl_PREREQ_RMDIR): Remove.
84502         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84503         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84504         the stat-macros module a prerequisite.
84505         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84506         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84507         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84508         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84509         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84510         variable names.
84511         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84512         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84513         variable prefixes.
84514         * m4/fcntl-safer.m4: Remove.
84515         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84516         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84517         Invoke gl_PREREQ_FD_SAFER.
84518         (gl_PREREQ_FD_SAFER): New macro.
84519         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84520         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84521         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84522         Remove duplicate call to AC_LIBOBJ(readutmp).
84523         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84524
84525         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84526         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84527
84528 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84529
84530         * MODULES.html.sh (Misc): Add byteswap.
84531
84532 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84533
84534         * modules/getcwd (Depends-on): Add extensions.
84535         * modules/openat (Depends-on): Likewise.
84536
84537 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84538
84539         * modules/byteswap: New file.
84540
84541 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84542
84543         * m4/byteswap.m4: New file.
84544
84545 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84546
84547         * lib/byteswap_.h: New file.
84548
84549 2005-04-25  Karl Berry  <karl@gnu.org>
84550
84551         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84552
84553 2005-04-25  Albert Chin  <china@thewrittenword.com>
84554
84555         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84556         Toolkit C bug.
84557
84558 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84559
84560         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84561         (func_ln_if_changed): Remove forcibly for no error message
84562         in case file does not exist.
84563
84564 2005-04-19  Simon Josefsson  <jas@extundo.com>
84565
84566         * gnulib-tool (Options): Make --symlink mean --symbolic.
84567
84568 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84569
84570         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84571
84572 2005-04-16  Simon Josefsson  <jas@extundo.com>
84573
84574         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84575
84576 2005-04-15  Simon Josefsson  <jas@extundo.com>
84577
84578         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84579
84580 2005-04-15  Simon Josefsson  <jas@extundo.com>
84581
84582         * gnulib-tool: Rename --symlink to --symbolic.
84583
84584 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84585
84586         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84587         symbolic links to files instead of copying/moving.  Add --aux-dir,
84588         specifying directory relative --dir where auxiliary build tools
84589         are placed.
84590
84591 2005-04-14  Bruno Haible  <bruno@clisp.org>
84592
84593         * modules/allocsa (License): Change to LGPL.
84594         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84595
84596 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84597
84598         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84599         that "UTC +1 second" continues to work.  Problem reported
84600         by Dmitry V. Levin.
84601         (relunit_snumber): New rule.
84602         (relunit): Use it.
84603
84604 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * lib/getdate.y (universal_time_zone_table): New constant.
84607         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84608         universal_time_zone_table.
84609         (lookup_zone): Prefer universal_time_zone_table to
84610         local_time_zone_table, so that "GMT" time stamps are allowed in
84611         London during the summer.  Problem reported by Ian Abbott.
84612
84613 2005-04-12  Jim Meyering  <jim@meyering.net>
84614
84615         * lib/human.c (humblock): Set *options even when returning due to
84616         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84617         warning from gcc-4.
84618
84619 2005-04-09  Jim Meyering  <jim@meyering.net>
84620
84621         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84622         -Wuninitialized: initialize tm0.tm_year.
84623
84624 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84625
84626         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84627         count, since there's no maximum.  All uses changed.
84628         Add member dsts_seen.
84629         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84630         not being INT_MAX.
84631         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84632         Use pc_rels_seen to decide whether a date is absolute.
84633
84634         * lib/getdate.y (number): Don't overwrite year.
84635         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84636         check.
84637
84638 2005-04-02  Simon Josefsson  <jas@extundo.com>
84639
84640         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84641         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84642
84643 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84644
84645         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84646         where no absolute path name can be longer than PATH_MAX.
84647
84648 2005-03-27  Jim Meyering  <jim@meyering.net>
84649
84650         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84651
84652 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84653
84654         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84655         "one's complement" -> "ones' complement" in comment, as per Knuth.
84656         "value of type" -> "type or expression" in comment.
84657         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84658
84659 2005-03-26  Jim Meyering  <jim@meyering.net>
84660
84661         Comment nits.
84662         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84663         Correct typos: s/or/of/.
84664
84665 2005-03-26  Jim Meyering  <jim@meyering.net>
84666
84667         * modules/check-include-files: Move to ../ and rename to...
84668         * check-module: ...this.
84669
84670 2005-03-25  Jim Meyering  <jim@meyering.net>
84671
84672         * modules/xvasprintf (Files): Add xalloc.h.
84673
84674 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * modules/gettext (Files): config/config.rpath ->
84677         build-aux/config.rpath
84678         * modules/iconv (Files): Likewise.
84679         Problem reported by Oskar Liljeblad.
84680
84681 2005-03-23  Jim Meyering  <jim@meyering.net>
84682
84683         * modules/check-include-files: New script to check for
84684         missing dependencies, multiple includes, etc.
84685
84686         * modules/c-strtold (Depends-on): Add xalloc.
84687         * modules/c-strtod (Depends-on): Add xalloc.
84688         * modules/hash (Depends-on): Add xalloc.
84689         (Files): Remove lib/xalloc.h.
84690
84691         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84692         * modules/userspec (Files): Add lib/inttostr.h.
84693
84694 2005-03-23  Jim Meyering  <jim@meyering.net>
84695
84696         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84697
84698 2005-03-22  Jim Meyering  <jim@meyering.net>
84699
84700         * modules/stat-macros: New module.
84701         * modules/canonicalize, modules/euidaccess, modules/file-type,
84702         * modules/filemode, modules/lchown, modules/makepath,
84703         * modules/rmdir, modules/stat: Depend on new stat-macros module
84704         rather than listing lib/stat-macros.h manually.
84705         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84706
84707 2005-03-22  Jim Meyering  <jim@meyering.net>
84708
84709         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84710
84711 2005-03-22  Bruno Haible  <bruno@clisp.org>
84712
84713         * config/srclist.txt: Replace target directory 'config' with
84714         'build-aux'.
84715         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84716         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84717         ../build-aux/.
84718
84719 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * modules/chdir-long (Depends-on): Add mempcpy.
84722
84723         * modules/acl, modules/backupfile, modules/c-strtod,
84724         modules/c-strtold, modules/canon-host, modules/canonicalize,
84725         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84726         modules/exclude, modules/exitfail, modules/file-type,
84727         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84728         modules/getdate, modules/getline, modules/getpagesize,
84729         modules/getpass, modules/getugroups, modules/group-member,
84730         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84731         modules/inttostr, modules/long-options, modules/makepath,
84732         modules/md5, modules/memcasecmp, modules/memcoll,
84733         modules/modechange, modules/mountlist, modules/path-concat,
84734         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84735         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84736         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84737         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84738         modules/strftime, modules/strndup, modules/strverscmp,
84739         modules/timespec, modules/unlocked-io, modules/userspec,
84740         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84741         modules/yesno:
84742         Remove lib_SOURCES line from Makefile.am section, as this is now
84743         done automatically by the corresponding Autoconf macro.
84744
84745 2005-03-21  Jim Meyering  <jim@meyering.net>
84746
84747         Changes imported from coreutils.
84748
84749         * lib/cycle-check.c: Don't include xalloc.h.
84750
84751         * lib/path-concat.c: Don't include assert.h.
84752         (path_concat): Remove assertion that would have triggered
84753         for ABASE starting with more than one slash.
84754         Reported by Andreas Schwab.
84755
84756         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84757         properly when ABASE is an absolute file name.
84758         Correct the description of this function.
84759         Include <assert.h>.
84760         Add an assertion and a test driver.
84761         This fixes a bug introduced on 2004-07-02.
84762         Andreas Schwab reported the resulting failure of cp --parents:
84763         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84764
84765 2005-03-21  Jim Meyering  <jim@meyering.net>
84766
84767         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84768         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84769
84770 2005-03-21  Jim Meyering  <jim@meyering.net>
84771         and  Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84774         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84775         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84776         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84777         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84778         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84779         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84780         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84781         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84782         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84783         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84784         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84785         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84786         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84787         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84788         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84789         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84790         for these modules.
84791
84792 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84795         (which shouldn't happen), generate nothing instead of returning 0
84796         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84797
84798 2005-03-16  Bruno Haible  <bruno@clisp.org>
84799
84800         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84801         HAVE_LONGLONG_64BIT.
84802
84803 2005-03-16  Bruno Haible  <bruno@clisp.org>
84804
84805         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84806         HAVE_LONGLONG_64BIT.
84807
84808 2005-03-16  Bruno Haible  <bruno@clisp.org>
84809
84810         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84811         HAVE_LONGLONG_64BIT.
84812
84813 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84816         reliably distinguish strftime failure from empty output on POSIX
84817         hosts.
84818
84819 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84822         (iconv_string): Don't guess a size-zero buffer, as that might cause
84823         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84824         result would be 'too large', where 'too large' is (heuristically)
84825         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84826         overflow concerns.  This will prevent some unwanted malloc failures
84827         when the inputs are very large.
84828
84829 2005-03-15  Karl Berry  <karl@gnu.org>
84830
84831         * config/srclist.txt (config.rpath): from gettext.
84832         * config/config.rpath: update.
84833
84834 2005-03-15  Bruno Haible  <bruno@clisp.org>
84835
84836         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84837         to 'negate'.
84838
84839         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84840         variable.
84841
84842         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84843         results.
84844
84845 2005-03-14  Simon Josefsson  <jas@extundo.com>
84846
84847         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84848         <fx@gnu.org>.
84849
84850 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84853         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84854         intprops.h.
84855         * lib/strtol.c: Likewise.
84856
84857 2005-03-14  Jim Meyering  <jim@meyering.net>
84858
84859         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84860         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84861         to be nonzero so that we (and caller) can detect the difference
84862         between a valid zero-length expansion and an error return, even
84863         when the underlying strftime fails before writing anything into
84864         that location.
84865
84866 2005-03-14  Bruno Haible  <bruno@clisp.org>
84867
84868         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84869         Update from GNU gettext 0.14.3.
84870
84871 2005-03-10  Jim Meyering  <jim@meyering.net>
84872
84873         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84874
84875 2005-03-10  Jim Meyering  <jim@meyering.net>
84876
84877         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84878         so that this module works on systems without fchdir.
84879
84880 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84881
84882         Factor int-properties macros into a single file, except for
84883         glibc-related files.
84884         * lib/intprops.h: New file.
84885         * lib/getloadavg.c: Include it instead of limits.h.
84886         (INT_STRLEN_BOUND): Remove.
84887         * lib/human.c: Include intprops.h.
84888         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84889         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84890         302/1000.
84891         * lib/inttostr.h: Include intprops.h instead of limits.h.
84892         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84893         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84894         for consistency with intprops.h.
84895         (time_t_is_integer, twos_complement_arithmetic): Use them.
84896         * lib/sig2str.h: Include <signal.h>, intprops.h.
84897         (INT_STRLEN_BOUND): Remove.
84898         * lib/strftime.c (TYPE_SIGNED): Remove.
84899         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84900         * lib/strtol.c: Adjust comments to match intprops.h.
84901         * lib/userspec.c: Include intprops.h.
84902         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84903         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84904         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84905         instead of rolling our own expressions.
84906         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84907
84908         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84909         instead of int.
84910         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84911         the right thing even if adding 1900 would overflow.  Similarly
84912         for tm_mon + 1 and tm_yday + 1.
84913         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84914         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84915         (DO_SIGNED_NUMBER): New macro.
84916         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84917
84918 2005-03-07  Bruno Haible  <bruno@clisp.org>
84919
84920         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84921
84922 2005-03-07  Bruno Haible  <bruno@clisp.org>
84923
84924         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84925
84926 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84927
84928         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84929         (func_import): Only replace files via --import when they have actually
84930         changed.
84931
84932 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84933
84934         * m4/mmap-anon.m4: New file.
84935         * m4/pagealign_alloc.m4: New file.
84936
84937 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84938             Bruno Haible  <bruno@clisp.org>
84939
84940         * modules/pagealign_alloc: New file.
84941         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84942
84943 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84944             Bruno Haible  <bruno@clisp.org>
84945
84946         * lib/pagealign_alloc.h: New file.
84947         * lib/pagealign_alloc.c: New file.
84948
84949 2005-03-03  Bruno Haible  <bruno@clisp.org>
84950
84951         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84952         Use an all-permissive copyright notice, recommended by RMS.
84953
84954 2005-03-02  Bruno Haible  <bruno@clisp.org>
84955
84956         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84957         of AIX, the replacement has to be done only after <string.h> is
84958         included, therefore not in config.h. stpncpy.h does the replacement,
84959         and stpncpy.c uses it.
84960
84961 2005-03-02  Bruno Haible  <bruno@clisp.org>
84962
84963         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84964         stpncpy.c uses it.
84965
84966 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84967
84968         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84969         The workaround isn't strictly needed for POSIX conformance, and
84970         it's too much of a pain to configure and maintain.  We'll ask
84971         people to fix their kernels instead.
84972         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84973         (NANOSLEEP_BUG_WORKAROUND): Remove.
84974         (xnanosleep): Remove the workaround.
84975
84976 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84979         Reported by Derek Price.
84980         (Include): Add "timespec.h".
84981
84982         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84983
84984 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84987         to detect nanosleep bug.
84988
84989 2005-03-01  Bruno Haible  <bruno@clisp.org>
84990
84991         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84992
84993 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84994
84995         * modules/gethrxtime: New file.
84996         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84997         (Depends-on): Add gethrxtime.
84998         (configure.ac): Add gl_XNANOSLEEP.
84999         (Makefile.am): Remove lib_SOURCES line.
85000
85001 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85004         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85005
85006 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85007
85008         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85009         * lib/timespec.h (gettime): Return void, since it always
85010         succeeds now.  All uses changed.
85011         * lib/gettime.c (gettime): Likewise.
85012         [HAVE_NANOTIME]: Prefer nanotime.
85013         Assume gettimeofday succeeds, as POSIX requires.
85014         Assime time () succeeds, since other code already does.
85015         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85016         (timespec_subtract): Remove.
85017         (NANOSLEEP_BUG_WORKAROUND): New constant.
85018         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85019         things considerably.  Use it only on GNU/Linux hosts, since the
85020         workaround shouldn't be needed elsewhere.
85021
85022 2005-02-24  Bruno Haible  <bruno@clisp.org>
85023
85024         * modules/gettext (Files): Add m4/glibc2.m4.
85025
85026 2005-02-24  Bruno Haible  <bruno@clisp.org>
85027
85028         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85029         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85030         * m4/progtest.m4:
85031         Update from GNU gettext 0.14.2.
85032         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85033
85034 2005-02-24  Bruno Haible  <bruno@clisp.org>
85035
85036         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85037         * lib/config.charset: Update from GNU gettext 0.14.2.
85038
85039 2005-02-24  Bruno Haible  <bruno@clisp.org>
85040
85041         * lib/gettext.h: Update from GNU gettext 0.14.2.
85042
85043 2005-02-23  Simon Josefsson  <jas@extundo.com>
85044
85045         * m4/iconvme.m4: New file.
85046
85047 2005-02-23  Jim Meyering  <jim@meyering.net>
85048
85049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85050         change.
85051         Thanks to Bruno Haible for catching it.
85052
85053 2005-02-22  Simon Josefsson  <jas@extundo.com>
85054
85055         * modules/iconvme: New file.
85056
85057         * MODULES.html.sh: Add iconvme.
85058
85059 2005-02-22  Simon Josefsson  <jas@extundo.com>
85060
85061         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85062
85063 2005-02-22  Simon Josefsson  <jas@extundo.com>
85064
85065         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85066
85067 2005-02-22  Jim Meyering  <jim@meyering.net>
85068
85069         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85070         s/ifndef/ifdef/.
85071
85072 2005-02-20  Neil Conway  <neilc@samurai.com>
85073
85074         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85075         returned by OSX/Darwin if the specified buffer is not large
85076         enough for the hostname.
85077
85078 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85079
85080         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85081         pass it to _help, otherwise the latter coredumps trying to
85082         dereference state.root_argp.
85083
85084 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * modules/chdir-long (Depends-on): Add memrchr.
85087         * modules/memrchr (Files): Add lib/memrchr.h.
85088         (Include): "memrchr.h".
85089
85090 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85091
85092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85093
85094 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85095
85096         * lib/memrchr.h: New file.
85097         * lib/chdir-long.c: Include it.
85098         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85099         Don't bother including stddef.h.
85100
85101 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85102
85103         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85104         inclusion.
85105         Include <sys/types.h>, for dev_t.
85106         (ME_DUMMY, ME_REMOTE): Move from here....
85107         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85108         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85109         Dmitry V. Levin.
85110         Include mountlist.h first, to test the interface.
85111
85112 2005-01-29  Bruno Haible  <bruno@clisp.org>
85113
85114         * lib/progname.c (program_name): Initialize.
85115         Needed when linking statically on MacOS X.
85116
85117 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85118
85119         Sync from coreutils.
85120         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85121         (Depends-on): Add c-strtod.
85122         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85123
85124 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         Sync from coreutils.
85127         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85128
85129         Remove files that are specific to coreutils.
85130         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85131
85132 2005-01-28  Bruno Haible  <bruno@clisp.org>
85133
85134         * modules/javacomp: New file.
85135         * MODULES.html.sh (Java): Add javacomp.
85136
85137 2005-01-28  Bruno Haible  <bruno@clisp.org>
85138
85139         * m4/javacomp.m4: New file, from GNU gettext.
85140
85141 2005-01-28  Bruno Haible  <bruno@clisp.org>
85142
85143         * lib/javacomp.sh.in: New file, from GNU gettext.
85144         * lib/javacomp.h: New file, from GNU gettext.
85145         * lib/javacomp.c: New file, from GNU gettext.
85146
85147 2005-01-26  Simon Josefsson  <jas@extundo.com>
85148
85149         * lib/gai_strerror.c: Use GPL in header.
85150
85151 2005-01-26  Bruno Haible  <bruno@clisp.org>
85152
85153         * modules/javaexec: New file.
85154         * MODULES.html.sh (Java): Add javaexec.
85155
85156 2005-01-26  Bruno Haible  <bruno@clisp.org>
85157
85158         * m4/javaexec.m4: New file, from GNU gettext.
85159
85160 2005-01-26  Bruno Haible  <bruno@clisp.org>
85161
85162         * lib/javaexec.sh.in: New file, from GNU gettext.
85163         * lib/javaexec.h: New file, from GNU gettext.
85164         * lib/javaexec.c: New file, from GNU gettext.
85165
85166 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85167
85168         * modules/lchown (Depends-on): Remove lchown.h
85169
85170 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85171
85172         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85173         must be defined if the header file was not found, in order
85174         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85175
85176 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85177
85178         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85179         initializers for struct pentry_state.
85180         (__argp_error): Check return value of __asprintf
85181         (__argp_failure): Translate error message
85182
85183         * lib/argp-parse.c: Removed braces around the expansion of N_()
85184
85185 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85186
85187         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85188         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85189         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85190         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85191         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85192         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85193         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85194         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85195         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85196         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85197         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85198         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85199         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85200         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85201         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85202         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85203         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85204         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85205         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85206         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85207         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85208         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85209         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85210         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85211         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85212         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85213         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85214         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85215         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85216         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85217         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85218         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85219         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85220         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85221         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85222         Use an all-permissive copyright notice, recommended by RMS.
85223
85224 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85225
85226         * modules/chdir-long (Depends-on): Remove mempcpy.
85227
85228 2005-01-21  Jim Meyering  <jim@meyering.net>
85229
85230         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85231         same value as for Solaris 9.
85232
85233         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85234         component length.  This included changing the parameter to be
85235         of type `char *' rather than `char const *'.
85236         * lib/chdir-long.h (chdir_long): Update prototype.
85237
85238         * lib/openat.c (fdopendir, fstatat): New functions.
85239         * lib/openat.h: Include headers required for use of DIR and struct
85240         stat.
85241         [AT_SYMLINK_NOFOLLOW]: Define.
85242         (fdopendir, fstatat): Add prototypes.
85243
85244 2005-01-21  Bruno Haible  <bruno@clisp.org>
85245
85246         * modules/classpath: New file.
85247         * MODULES.html.sh (Java): Add classpath.
85248
85249 2005-01-21  Bruno Haible  <bruno@clisp.org>
85250
85251         * lib/classpath.h: New file, from GNU gettext.
85252         * lib/classpath.c: New file, from GNU gettext.
85253
85254 2005-01-20  Simon Josefsson  <jas@extundo.com>
85255
85256         * modules/version-etc-fsf: New file.
85257
85258 2005-01-20  Simon Josefsson  <jas@extundo.com>
85259
85260         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85261         * lib/version-etc.c: Remove version_etc_copyright.
85262         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85263         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85264
85265 2005-01-20  Simon Josefsson  <jas@extundo.com>
85266
85267         * lib/base64.h (isbase64): Add.
85268
85269         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85270         using a unsigned prototype, don't inline.
85271         (base64_decode): Use it.
85272
85273 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85274
85275         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85276         it.
85277
85278 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * lib/save-cwd.c (save_cwd): Remove code to support the case
85281         where fchdir is missing or flaky.
85282
85283 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85284
85285         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85286
85287 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85288
85289         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85290         AC_LIBSOURCES now does this.
85291         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85292         with new ullong_max module.
85293
85294 2005-01-19  Bruno Haible  <bruno@clisp.org>
85295
85296         * modules/sh-quote: New file.
85297         * MODULES.html.sh (Executing programs): Add sh-quote.
85298
85299 2005-01-19  Bruno Haible  <bruno@clisp.org>
85300
85301         * lib/sh-quote.h: New file, from GNU gettext.
85302         * lib/sh-quote.c: New file, from GNU gettext.
85303
85304 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         Merge from coreutils.
85307         * m4/ullong_max.m4: New file.
85308         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85309         (gl_MACROS): Assume localeconv exists.
85310
85311 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         Merge changes from coreutils, as described below in several
85314         changelogs dated today.
85315
85316         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85317         (O_DIRECTORY): Remove; not needed here, since "." must be
85318         a directory.  All uses removed.
85319         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85320         universal on Suns, and we also need to test for IRIX.
85321         Revamp code to use 'if' rather than '#if'.
85322         Avoid unnecessary comparison of cwd->desc to 0.
85323
85324         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85325         for known valid error numbers rather than observed invalid ones.
85326
85327 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85328
85329         * modules/ullong_max: New file.
85330
85331         * modules/chdir-long, modules/openat: New files.
85332         * modules/save-cwd (Depends-on): Depend on chdir-long.
85333         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85334
85335 2005-01-18  Jim Meyering  <jim@meyering.net>
85336
85337         Merge from coreutils.
85338         * m4/chdir-long.m4, m4/openat.m4: New files.
85339         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85340         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85341         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85342         is sane and DOES follow symlinks.  Besides, testing 20 different
85343         systems found no broken chown implementations.
85344         Prompted by a change in rsync's copy of this macro.
85345         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85346
85347         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85348
85349         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85350         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85351         NULL-means-set-to-current-time semantics.
85352         Remove temporary file immediately, rather than waiting
85353         for configure's at-exit trap code to do it.
85354
85355 2005-01-18  Jim Meyering  <jim@meyering.net>
85356
85357         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85358
85359         * lib/utimens.c (futimens): Account for the fact that futimes
85360         can also fail with errno == ENOSYS or errno == ENOENT.
85361         Patch from Dmitry V. Levin.
85362
85363         Change the name of the robust chdir function from chdir to chdir_long.
85364         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85365         (restore_cwd): Use chdir_long, not chdir.
85366         * lib/chdir-long.c: Renamed from chdir.c.
85367         * lib/chdir-long.h: Renamed from chdir.h.
85368         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85369         Hurd.
85370
85371 2005-01-18  Bruno Haible  <bruno@clisp.org>
85372
85373         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85374         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85375         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85376         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85377         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85378         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85379         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85380         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85381         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85382         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85383         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85384         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85385         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85386         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85387         Use an all-permissive copyright notice, recommended by RMS.
85388
85389 2005-01-18  Bob Proulx  <bob@proulx.com>
85390
85391         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85392         simplify offsetof() macro construct to avoid compile failure with
85393         native HP-UX 11.0 ANSI C compiler.
85394
85395 2005-01-17  Bruno Haible  <bruno@clisp.org>
85396
85397         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85398         redundant because stpncpy.m4 takes care of it.
85399
85400 2005-01-17  Bruno Haible  <bruno@clisp.org>
85401
85402         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85403
85404 2005-01-17  Bruno Haible  <bruno@clisp.org>
85405
85406         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85407         used.
85408
85409 2005-01-17  Bruno Haible  <bruno@clisp.org>
85410
85411         * lib/fwriteerror.h (fwriteerror): Change specification to include
85412         fclose.
85413         * lib/fwriteerror.c: Include <stdbool.h>.
85414         (fwriteerror): At the end, close the file stream. Record whether
85415         stdout was already closed.
85416
85417 2005-01-17  Bruno Haible  <bruno@clisp.org>
85418
85419         * lib/execute.c (environ): Declare if needed.
85420         * lib/pipe.c (environ): Likewise.
85421         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85422
85423 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85424
85425         * modules/argp: Depend on vsnprintf
85426
85427 2005-01-10  Jim Meyering  <jim@meyering.net>
85428
85429         * modules/closeout (Depends-on): Add atexit.
85430
85431 2005-01-06  Bruno Haible  <bruno@clisp.org>
85432
85433         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85434
85435 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85436
85437         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85438         definitions to be after all include files, to avoid collisions.
85439         Problem reported by Bob Proulx.
85440
85441 2005-01-04  Jim Meyering  <jim@meyering.net>
85442
85443         Changes imported from coreutils.
85444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85445         as the mkstemp template, use a temporary directory and an
85446         8.3-friendly template to avoid trouble on systems like DJGPP.
85447         Reported by Juan M. Guerrero via Stepan Kasal.
85448         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85449         close. Remove the temporary directory right away, rather than waiting
85450         for configure's at-exit trap code to do it.
85451         Suggestion from Stepan Kasal.
85452
85453 2005-01-01  Simon Josefsson  <jas@extundo.com>
85454
85455         * gnulib-tool: Print #include directives when --import'ing.
85456
85457 2004-12-28  Simon Josefsson  <jas@extundo.com>
85458
85459         * tests/test-base64.c: Include required header files.  Remove
85460         unused variables.
85461
85462 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * modules/error (Depends-on): Remove gettext.
85465
85466 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85467
85468         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85469         not needed.  This removes a dependency on the gettext module.
85470         [defined _LIBC]: Do not include <libintl.h>; not needed.
85471
85472 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85473
85474         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85475         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85476
85477 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85478
85479         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85480         HAVE_DECL_STRTOLD.
85481
85482 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85483
85484         * modules/getdate (Depends-on): Remove alloca-opt.
85485
85486 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85487
85488         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85489
85490 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85491
85492         * lib/argp-parse.c: Include <stddef.h>.
85493         (alignof, alignto): New macros.
85494         (parser_init): Don't assume that void * is aligned sufficiently
85495         for struct option.
85496
85497         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85498         need to extend the stack.
85499         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85500         large.
85501
85502 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85503
85504         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85505
85506 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85507
85508         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85509         (2004-10-24) change.  Apparently this was a false alarm.
85510
85511         * modules/getdate: Depend on alloca-opt, not alloca.
85512
85513 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85514
85515         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85516         Remove now-obsolete comment about AIX.
85517         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85518         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85519         (YYMAXDEPTH): New macro.
85520
85521 2004-12-18  Simon Josefsson  <jas@extundo.com>
85522
85523         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85524
85525 2004-12-18  Bruno Haible  <bruno@clisp.org>
85526
85527         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85528
85529 2004-12-18  Bruno Haible  <bruno@clisp.org>
85530
85531         * lib/fatal-signal.c (fatal_signals): Make non-const.
85532         (init_fatal_signals): New function.
85533         (uninstall_handlers, install_handlers): Ignore signals that were set to
85534         SIG_IGN.
85535         (at_fatal_signal): Call init_fatal_signals.
85536         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85537         SIG_IGN.
85538         Reported by Paul Eggert.
85539
85540 2004-12-18  Bruno Haible  <bruno@clisp.org>
85541
85542         * doc/alloca.texi: New file.
85543         * doc/alloca-opt.texi: New file.
85544
85545 2004-12-17  Jim Meyering  <jim@meyering.net>
85546
85547         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85548         Otherwise, install-sh could exit with improper exit status when
85549         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85550
85551 2004-12-16  Simon Josefsson  <jas@extundo.com>
85552
85553         * tests/test-base64.c: Add license.
85554
85555 2004-12-15  Stepan Kasal  <address@hidden>
85556
85557         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85558
85559 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85560
85561         * modules/getcwd (Files): Add m4/d-ino.m4.
85562         Suggested by Mark D. Baushke.
85563
85564 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85565
85566         * lib/getdate.y (textint): New member "negative".
85567         (time_zone_hhmm): New function.
85568         Expect 14 shift-reduce conflicts, not 13.
85569         (o_colon_minutes): New rule.
85570         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85571         (yylex): Set the "negative" member of signed numbers.
85572
85573 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85574
85575         * doc/getdate.texi (Time of day items, Time zone items):
85576         Describe new formats +00:00, UTC+00:00.
85577
85578 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85579
85580         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85581         spurious "-l"s.  Problem reported by Stepan Kasal.
85582
85583 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85584
85585         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85586         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85587
85588 2004-12-04  Simon Josefsson  <jas@extundo.com>
85589
85590         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85591         Vandoorselaere <yoann@prelude-ids.org>.
85592
85593 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85594
85595         Changes imported from coreutils.
85596         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85597         exist.
85598         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85599
85600 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         Changes imported from coreutils.
85603         * lib/hard-locale.c: Assume <locale.h> exists.
85604         Include "strdup.h".
85605         (GLIBC_VERSION): New macro.
85606         (hard_locale): Assume setlocale exists.
85607         Rewrite to avoid #ifdef.
85608         Use strdup rather than malloc + strcpy.
85609         * lib/human.c: Assume <locale.h> exists.
85610         (human_readable): Assume localeconv exists.
85611
85612 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85613
85614         * modules/hard-locale (Depends-on): Add strdup.
85615
85616 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85617
85618         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85619         convert T2, not T.  (Imported from libc.)
85620
85621 2004-11-30  Simon Josefsson  <jas@extundo.com>
85622
85623         * modules/restrict (License): Change to LGPL.
85624
85625 2004-11-30  Simon Josefsson  <jas@extundo.com>
85626
85627         * m4/restrict.m4: Add copyright and copying conditions.
85628
85629 2004-11-30  Simon Josefsson  <jas@extundo.com>
85630
85631         * m4/base64.m4: New file.
85632
85633 2004-11-30  Simon Josefsson  <jas@extundo.com>
85634
85635         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85636         base64.
85637
85638         * tests/test-base64.c: New file.
85639
85640         * modules/base64: New file.
85641
85642 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85643
85644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85645         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85646
85647         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85648
85649 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85650
85651         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85652         (__getcwd.c): Don't restore errno; glibc doesn't.
85653         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85654         first, falling back to our code only if its results look suspicious.
85655         Ensure that the resulting buffer is only as large as necessary.
85656
85657         * lib/readutmp.c: Include readutmp.h first.
85658         Include <errno.h>, since readutmp.h no longer does that.
85659         * lib/readutmp.h: Don't include <errno.h>,
85660         <sys/param.h>, <time.h>; not needed to establish interface.
85661         (errno): Remove decl.
85662         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85663         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85664         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85665
85666 2004-11-28  Simon Josefsson  <jas@extundo.com>
85667
85668         * lib/base64.h, base64.c: New file.
85669
85670 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85671
85672         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85673
85674 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85677         (Depends-on): Remove pathmax, same.  Add mempcpy.
85678         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85679         (Makefile.am): Append getcwd.h to lib_SOURCES.
85680         (Include): Add getcwd.h.
85681         (Maintainer): Change from Jim Meyering to "all, glibc",
85682         since getdate now uses intended-for-glibc code.
85683         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85684         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85685
85686 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85687
85688         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85689         HP's ANSI C compiler.
85690         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85691         Declaring int functions causes warnings on some modern systems and
85692         shouldn't be needed to compile on ancient ones.
85693         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85694         defined.
85695
85696         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85697         with the following changes.
85698         (__set_errno): Parenthesize properly.
85699         Include <stdbool.h>.
85700         (MIN, MAX, MATCHING_INO): New macros.
85701         (__getcwd): Define with prototype, not K&R form.
85702         Use heuristics to allocate default buffer on stack if possible.
85703         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85704         behavior, and to avoid the PATH_MAX limit when computing
85705         ../../../../...
85706         Use MATCHING_INO to compare inode number to file.
85707         Check for arithmetic overflow in size calculations.
85708         Fix bug in reallocation of dot array that caused getcwd to fail
85709         on directories nested deeper than 75.
85710         Be more careful about saving errno on error.
85711         Do not use realloc; use only free+malloc, as this is a bit
85712         more flexible and avoids a needless copy operation.
85713         Do not inspect st_dev and st_ino for symbolic links; POSIX
85714         doesn't specify the latter.
85715         Check for closedir errors.
85716         Avoid needless casts.
85717         Use "#ifdef weak_alias" around weak_alias, to be like other
85718         glibc code.
85719         The following changes to getcwd.c have effect only when used in
85720         gnulib; they have no effect inside glibc proper.
85721         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85722         as alloca isn't used.
85723         (alloca, __alloca): Likewise.
85724         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85725         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85726         unconditionally, as gnulib assumes C89 or better.
85727         Do not include <sys/param.h>.
85728         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85729         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85730         better.
85731         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85732         Include <dirent.h> in a way that is compatible with modern Autoconf.
85733         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85734         New macros, if not already defined.
85735         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85736         Use "_LIBC", not "defined _LIBC", for consistency.
85737         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85738         a mempcpy module.
85739         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85740         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85741         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85742         credit only to Jim Meyering and adjust the copyright dates.
85743         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85744         <stdlib.h>, <unistd.h>, "pathmax.h".
85745         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85746         (INITIAL_BUFFER_SIZE): Remove.
85747         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85748
85749 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85752         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85753         Use the _ONCE methods, for efficiency.
85754         Check for fcntl.h.  In test program, include <errno.h>
85755         and <fcntl.h> if available.  Remove old K&R cruft from
85756         test program.  Check for common errors in GNU/Linux,
85757         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85758         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85759         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85760         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85761         name accordingly.
85762         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85763         accommodate new getcwd.c.
85764         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85765         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85766         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85767         that's all we need now.
85768
85769 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85770
85771         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85772         argp-parse.c depends on getopt internals, that means we should
85773         always use our getopt, to be on the safe side.
85774         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85775         order not to spoil the result of an eventual previous invocation
85776         of gl_GETOPT_SUBSTITUTE.
85777
85778 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85779
85780         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85781         redefinition warnings. To avoid them, include the defines
85782         in `#if !defined __need_getopt ... #endif'. The only place
85783         where __getopt_argv_const is used is in definitions
85784         of getopt_long and getopt_long_only below, which are as well
85785         protected by `#ifndef __need_getopt'.
85786         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85787         __need_getopt after including <stdio.h> and <unistd.h> These
85788         headers might have defined it.
85789
85790 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85793
85794 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85797         (futimens): New function, which uses futimes if available.
85798         (futimens, utimens): Support timespec==NULL, with same semantics
85799         as utime and utimens.
85800         * lib/utimens.h (futimens): New decl.
85801
85802 2004-11-23  Jim Meyering  <jim@meyering.net>
85803
85804         * lib/getopt_.h: Remove trailing blanks.
85805
85806 2004-11-23  Jim Meyering  <jim@meyering.net>
85807
85808         * lib/__fpending.c: Add comment.
85809
85810 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85811
85812         * modules/canonicalize (Depends-on): Add xreadlink.
85813         Problem reported by James Youngman.
85814
85815 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85818         New macros.
85819         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85820         optopt): Use them instead of invoking ## directly; otherwise, the
85821         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85822
85823 2004-11-19  Bruno Haible  <bruno@clisp.org>
85824
85825         * lib/strtok_r.c: Move comments from here...
85826         * lib/strtok_r.h: ... to here.
85827
85828 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85831         implementations that mishandle size_t overflow.
85832
85833 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85834
85835         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85836         might fail.  Problem reported by Yoann Vandoorselaere.
85837         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85838         implementations that mishandle size_t overflow.
85839
85840 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85841
85842         * modules/canon-host (Depends-on): Add strdup.
85843
85844 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85847
85848 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * lib/canon-host.c: Include "strdup.h".
85851         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85852         Use strdup instead of malloc/strcpy to duplicate strings.
85853
85854         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85855         (human_space_before_unit): New constant.
85856         * lib/human.c (human_readable): Support it.
85857
85858         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85859         (xgetcwd): Set errno correctly when failing.
85860         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85861         the failure is actually due to a PATH_MAX problem.
85862
85863         Further getopt changes to make it more likely that glibc will
85864         buy the changes back.
85865         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85866         (getopt): Use it, so to preserve glibc semantic
85867         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85868         when compiling for libc.
85869         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85870         (getopt_long, getopt_long_only): Use it.
85871
85872         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85873         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85874         (getopt): Argv is now char * const *, as per standard.
85875         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85876         not char *__getopt_argv_const *.
85877         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85878         _getopt_long_only_r): Likewise.
85879         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85880         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85881         _getopt_long_r, _getopt_long_only_r): Likewise.
85882         * lib/getopt_.h (__getopt_argv_const): Remove.
85883         (getopt): Argv is now char * const *, as per standard.
85884
85885         * lib/getdate.y (tORDINAL): New token.
85886         (day, relunit): Allow it for relative times.
85887         (relative_time_table): Use tORDINAL for ordinals.
85888
85889 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85892         Document that "second" isn't allowed as an ordinal number.
85893
85894 2004-11-16  Jim Meyering  <jim@meyering.net>
85895
85896         * modules/closeout (Depends-on): Add fpending.
85897
85898 2004-11-15  Jim Meyering  <jim@meyering.net>
85899
85900         * lib/closeout.c: Include "__fpending.h" once again.
85901         Include <stdbool.h>.
85902         (close_stdout): Don't fail just because stdout was closed initially,
85903         since some programs don't write to stdout in the normal course of
85904         operation (other than --version and --help), and we don't want this
85905         function to make e.g. `touch file >&-' fail.
85906         But do fail if it was closed and someone has tried to write to it.
85907         E.g., `printf foo >&-' must fail.
85908
85909 2004-11-13  Jim Meyering  <jim@meyering.net>
85910
85911         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85912
85913 2004-11-12  Simon Josefsson  <jas@extundo.com>
85914
85915         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85916         small doc fix is still pending.
85917
85918 2004-11-11  Simon Josefsson  <jas@extundo.com>
85919
85920         * modules/strtok_r: New file.
85921
85922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85923         strtok_r.
85924
85925 2004-11-11  Simon Josefsson  <jas@extundo.com>
85926
85927         * m4/strtok_r.m4: New file.
85928
85929         * m4/getopt.m4: Replace opterr.
85930
85931 2004-11-11  Simon Josefsson  <jas@extundo.com>
85932
85933         * lib/strtok_r.h, strtok_r.c: New file.
85934
85935 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85936
85937         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85938         of replacing opterr, getopt, etc.  This should handle the
85939         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85940
85941 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85942
85943         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85944         we can stop lying to compilers about the constness of argv when we
85945         are compiled outside glibc.
85946         (getopt, getopt_long, getopt_long_only): Use it.
85947         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85948         _getopt_internal, getopt): Likewise.
85949         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85950         _getopt_long_only_r): Likewise.
85951         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85952         _getopt_long_r, _getopt_long_only_r): Likewise.
85953
85954         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85955         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85956         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85957         the other external symbols.
85958         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85959         declaration, since the above renaming now works around collisions.
85960
85961 2004-11-11  Jim Meyering  <jim@meyering.net>
85962
85963         * lib/linebreak.c: Remove trailing blanks.
85964         * lib/alloca_.h: Likewise.
85965         * lib/acosl.c: Likewise.
85966         * lib/euidaccess.c: Likewise.
85967         * lib/allocsa.h: Likewise.
85968
85969 2004-11-10  Simon Josefsson  <jas@extundo.com>
85970
85971         * m4/getaddrinfo.m4: New file.
85972
85973 2004-11-10  Simon Josefsson  <jas@extundo.com>
85974
85975         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85976
85977 2004-11-10  Simon Josefsson  <jas@extundo.com>
85978
85979         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85980         getaddrinfo.
85981
85982         * modules/getaddrinfo: New file.
85983
85984 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85987
85988 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85989
85990         * lib/mktime.c (SHR): New macro, which is a portable
85991         substitute for >> that should work even on Crays.
85992         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85993         Problem reported by Mark D. Baushke in
85994         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85995         * lib/getdate.y (SHR): Likewise.
85996         (tm_diff): Use it.
85997         * lib/strftime.c (SHR): Likewise.
85998         (tm_diff): Use it.
85999         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86000         quote_these_too, so that right shifts are well defined.  All uses
86001         changed.
86002
86003 2004-11-10  Jim Meyering  <jim@meyering.net>
86004
86005         Ensure that no close failure goes unreported.
86006         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86007         return early when it seems there's nothing to flush.
86008         Don't include __fpending.h.
86009
86010 2004-11-10  Jim Meyering  <jim@meyering.net>
86011
86012         * modules/closeout (Depends-on): Remove fpending.
86013
86014 2004-11-10  Jim Meyering  <jim@meyering.net>
86015
86016         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86017
86018 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86021         gl_FUNC_STRFTIME.
86022         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86023         and AC_REQUIRE when possible, to avoid duplicate checks.
86024         Check for <wchar.h>.
86025
86026 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86027
86028         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86029
86030 2004-11-09  Bruno Haible  <bruno@clisp.org>
86031
86032         * m4/sockpfaf.m4: New file.
86033
86034 2004-11-05  Bruno Haible  <bruno@clisp.org>
86035
86036         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86037         Reported by Mark D. Baushke <mdb@cvshome.org>.
86038
86039 2004-11-04  Bruno Haible  <bruno@clisp.org>
86040
86041         2004-09-11  Bruno Haible  <bruno@clisp.org>
86042                 * allocsa.valgrind: New file.
86043         2004-02-06  Bruno Haible  <bruno@clisp.org>
86044                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86045                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86046                 Reported by Christopher Seip <chris.seip@hp.com>.
86047
86048 2004-11-04  Bruno Haible  <bruno@clisp.org>
86049
86050         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86051         (Makefile.am): Distribute it.
86052
86053 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86054
86055         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86056         with errno == ERANGE if the buffer is too small.
86057         Problem reported by Mark D. Baushke.
86058
86059 2004-11-03  Albert Chin  <china@thewrittenword.com>
86060             Paul Eggert  <eggert@cs.ucla.edu>
86061
86062         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86063         equivalent, substitute $ac_type for equivalent type rather than
86064         blindly using uint32_t *always* which won't work if uint32_t is not
86065         available.  Define _UINT32_T to work around typedef of uint32_t if
86066         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86067         2.5.1.
86068
86069 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86070
86071         * m4/jm-macros.m4: Sync from coreutils.
86072         (gl_MACROS): Check for mbrlen, for pathchk.
86073         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86074
86075 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86076
86077         * lib/xreadlink.c (MAXSIZE): New macro.
86078         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86079         size does not exceed MAXSIZE.  Avoid cast.
86080         As suggested by Mark D. Baushke in
86081         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86082         if readlink fails with buffer size just under MAXSIZE, try again
86083         with MAXSIZE.
86084
86085 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86086
86087         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86088
86089 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86090         and  Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86093         (get_date): Overparenthesize to avoid GCC warning.
86094
86095 2004-11-02  Bruno Haible  <bruno@clisp.org>
86096
86097         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86098         returns void.
86099
86100 2004-11-02  Bruno Haible  <bruno@clisp.org>
86101
86102         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86103         function returns void.
86104
86105 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86106
86107         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86108         fflush_unlocked, flockfile, funlockfile, funlockfile,
86109         fputs_unlocked, putc_unlocked.
86110
86111 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86112
86113         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86114         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86115         already declared.
86116
86117 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86118
86119         * modules/getdate (Files): Add doc/getdate.texi.
86120         (Depends-on): Add setenv, xalloc.
86121
86122 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86123
86124         * lib/getdate.y: Add support for TZ="foo" within a date string.
86125         Fix some bugs near time_t boundaries.  Reject dates with
86126         out-of-range components, e.g., "Sept 31".
86127         Include <stdlib.h>, "setenv.h", "xalloc.h".
86128         (ISDIGIT_LOCALE): Remove; unused.
86129         Note that the TZ and time functions used here are not reentrant.
86130         (mktime_ok, get_tz): New functions.
86131         (TZBUFSIZE): New constant.
86132         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86133         This requires that we sometimes generate our own TZ="XXX..." setting.
86134
86135 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         * doc/getdate.texi: New file, from coreutils with modifications for
86138         the new TZ parsing.
86139
86140 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86141
86142         * lib/mktime.c (not_equal_tm): Remove redundant check.
86143
86144 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * modules/regex (lib_SOURCES): Add regex.c.
86147         Reported by James Youngman in
86148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86149
86150 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         * lib/getdate.y: Use Bison 1.875 features, and some minor
86153         code cleanups.  This change does not affect semantics.
86154         Don't include <stdlib.h>; no longer needed.
86155         Don't include unlocked-io.h; only the "#if TEST" code uses
86156         stdio, and performance isn't crucial there.
86157         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86158         Bison 1.875 features as described below.
86159         All uses of "PC." replaced by "pc->".
86160         (YYSTYPE): Add a forward declaration.
86161         (yylex, yyerror): Use full prototypes in forward decls.
86162         Use "%pure-parser" rather than obsolescent "%pure_parser".
86163         Use %parse-param and %lex-param instead of obsolescent
86164         YYPARSE_PARAM and YYLEX_PARAM.
86165         (meridian_table, month_and_day_table, time_units_table,
86166         relative_time_table, time_zone_table, military_table,
86167         lookup_zone, lookup_word, get_date):
86168         Use NULL instead of 0 where appropriate.
86169         (to_hour): Avoid abort (), to avoid a dependency on
86170         stdlib.h.
86171         (yyerror, yylex): Now accepts parser_control * arg.
86172         (main) [TEST]: Use '\0' rather than 0 for char.
86173
86174 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86175
86176         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86177
86178 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86179
86180         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86181         It's now the caller's responsibility to handle the case where
86182         !HAVE_GETPAGESIZE && !defined getpagesize.
86183
86184         * lib/mktime.c (leapyear): Arg is long int, not int.
86185
86186 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86187
86188         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86189
86190 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86191
86192         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86193         missing.  Problem reported by James Youngman.
86194
86195 2004-10-16  Simon Josefsson  <jas@extundo.com>
86196
86197         * gnulib-tool: Fix comments.  Fix parse problem.
86198         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86199
86200 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86201
86202         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86203         implementation of getopt_long.  Problem reported by Alexander Taler in:
86204         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86205
86206 2004-10-15  Bruno Haible  <bruno@clisp.org>
86207
86208         * gnulib-tool: Untabify. Initialize supplied_libname.
86209         (func_usage): More homogenous output.
86210         (func_modules_transitive_closure, func_modules_to_filelist,
86211         func_emit_lib_Makefile_am): New functions.
86212         (func_import): New function, extracted from big case statement. Use
86213         func_get_license, func_modules_transitive_closure,
86214         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86215         opt_lgpl. Don't use test -a, as it's not portable.
86216         (func_create_testdir): Use func_modules_transitive_closure,
86217         func_modules_to_filelist, func_emit_lib_Makefile_am.
86218
86219 2004-10-15  Bruno Haible  <bruno@clisp.org>
86220
86221         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86222
86223 2004-10-15  Bruno Haible  <bruno@clisp.org>
86224
86225         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86226         the portions belonging to each module.
86227         Suggested by Derek Robert Price <derek@ximbiot.com>.
86228
86229 2004-10-12  Simon Josefsson  <jas@extundo.com>
86230
86231         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86232         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86233         to real functions.
86234
86235 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86236
86237         * modules/vsnprintf: New file.
86238
86239 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86240
86241         * m4/vsnprintf.m4: New file.
86242
86243 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86244
86245         * lib/vsnprintf.h: New file.
86246         * lib/vsnprintf.c: New file.
86247
86248 2004-10-11  Bruno Haible  <bruno@clisp.org>
86249
86250         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86251         vsnprintf.
86252
86253 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86254
86255         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86256
86257 2004-10-07  Bruno Haible  <bruno@clisp.org>
86258
86259         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86260         fits into the provided buffer.
86261
86262 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86263
86264         * lib/diacrit.c, diacrit.h: Add GPL notice.
86265
86266         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86267         notice.
86268         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86269         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86270         This avoids a potential constant-folding bug.
86271
86272 2004-10-05  Bruno Haible  <bruno@clisp.org>
86273
86274         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86275         for the declaration of strsep.
86276
86277 2004-10-05  Bruno Haible  <bruno@clisp.org>
86278
86279         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86280
86281 2004-10-04  Simon Josefsson  <jas@extundo.com>
86282
86283         * modules/memmem: New file.
86284         * tests/test-memmem.c: New file.
86285         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86286
86287 2004-10-04  Simon Josefsson  <jas@extundo.com>
86288
86289         * m4/memmem.m4: New file.
86290
86291 2004-10-04  Simon Josefsson  <jas@extundo.com>
86292
86293         * lib/memmem.h: New file.
86294         * lib/memmem.c: New file, taken from glibc.
86295
86296 2004-10-04  Simon Josefsson  <jas@extundo.com>
86297
86298         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86299         '#ifdef USE_UNLOCKED_IO'.
86300
86301 2004-10-04  Simon Josefsson  <jas@extundo.com>
86302
86303         * config/srclist.txt: Add memmem from glibc.
86304
86305 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86308
86309         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86310         modules/exclude, modules/getdate, modules/getline,
86311         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86312         modules/getusershell, modules/linebuffer, modules/md5,
86313         modules/mountlist, modules/posixtm, modules/readtokens,
86314         modules/readutmp, modules/regex, modules/sha1,
86315         modules/version-etc, modules/yesno:
86316         Remove dependency on unlocked-io.
86317
86318 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86319
86320         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86321
86322         * m4/unlocked-io.m4: Add copyright notice.
86323         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86324
86325 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86326
86327         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86328         * lib/xmalloc.c (xmemdup): Likewise.
86329         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86330         XFREE): Remove these long-obsolescent macros.
86331         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86332         * lib/xstrdup.c: Remove.
86333
86334         * lib/regex.c (re_comp): Cast gettext return value to char *,
86335         Problem reported by Martin Neitzel via Mark D. Baushke.
86336
86337 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86338
86339         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86340         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86341         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86342         regex.c, sha1.c, version-etc.c, yesno.c:
86343         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86344         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86345         the includer's responsibility.
86346
86347         Sync from coreutils.
86348
86349         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86350         points to the start of a string, as the C Standard says the
86351         resulting behavior is undefined.
86352
86353         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86354         simple -> simple_backups, numbered_existing ->
86355         numbered_existing_backups, numbered -> numbered_backups
86356         to avoid shadowing problems.  All uses changed.
86357         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86358         * lib/backupfile.c (check_extension, numbered_backup):
86359         Rename locals to avoid shadowing 'basename'.
86360         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86361         once.
86362
86363         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86364         * lib/.cvsignore: Add getopt.h.
86365
86366 2004-10-04  Bruno Haible  <bruno@clisp.org>
86367
86368         * modules/README: New file.
86369         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86370         not a module.
86371
86372 2004-10-02  Jim Meyering  <jim@meyering.net>
86373
86374         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86375
86376 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86377
86378         * modules/strsep: New file.
86379
86380 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86381
86382         * m4/strsep.m4: New file.
86383
86384 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86385
86386         * lib/strsep.h: New file.
86387         * lib/strsep.c: New file.
86388
86389 2004-10-01  Simon Josefsson  <jas@extundo.com>
86390
86391         * lib/snprintf.c (snprintf): Handle size==0.
86392
86393 2004-10-01  Simon Josefsson  <jas@extundo.com>
86394             Bruno Haible  <bruno@clisp.org>
86395
86396         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86397         (snprintf): Declare 'args'.
86398
86399 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86400
86401         * lib/snprintf.c: Remove comments as to why each header is needed.
86402
86403 2004-10-01  Bruno Haible  <bruno@clisp.org>
86404
86405         * MODULES.html.sh: Add strsep.
86406
86407 2004-09-30  Simon Josefsson  <jas@extundo.com>
86408
86409         * modules/snprintf: New file.
86410
86411 2004-09-30  Simon Josefsson  <jas@extundo.com>
86412
86413         * m4/snprintf.m4: New file.
86414
86415 2004-09-30  Simon Josefsson  <jas@extundo.com>
86416
86417         * lib/snprintf.h, lib/snprintf.c: New files.
86418
86419 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86420
86421         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86422         (hol_entry_help): Never translate an empty string.
86423         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86424         * lib/argp.h (OPTION_NO_TRANS): New option.
86425
86426 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86427
86428         * modules/argp (Maintainer): Replace Simon Josefsson
86429         by Sergey Poznyakoff.
86430
86431 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86432
86433         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86434         changes merged back into glibc.
86435
86436 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86437
86438         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86439
86440 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86441
86442         * lib/xvasprintf.c: Include xalloc.h.
86443         (xvasprintf): Use xalloc_die, not xmalloc_die.
86444
86445 2004-09-29  Bruno Haible  <bruno@clisp.org>
86446
86447         * modules/alloca-opt: New file, derived from modules/alloca.
86448         * modules/allocsa: Depend on alloca-opt instead of alloca.
86449         * modules/setenv: Likewise.
86450         * modules/vasnprintf: Likewise.
86451         * MODULES.html.sh: Add alloca-opt.
86452
86453 2004-09-28  Simon Josefsson  <jas@extundo.com>
86454
86455         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86456         LGPL, and to replace license template from GPL to LGPL.
86457
86458 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86459
86460         * modules/dummy: Change license to LGPL.
86461
86462 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86463
86464         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86465
86466 2004-09-24  Simon Josefsson  <jas@extundo.com>
86467
86468         * modules/minmax (License): Change from GPL to LGPL.
86469
86470 2004-09-23  Simon Josefsson  <jas@extundo.com>
86471
86472         * gnulib-tool (--import): Typo.
86473
86474 2004-09-23  Simon Josefsson  <jas@extundo.com>
86475
86476         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86477
86478 2004-09-22  Bruno Haible  <bruno@clisp.org>
86479
86480         * modules/*: Add 'License' field.
86481         * gnulib-tool: Accept --extract-license option.
86482         (func_get_license): New function.
86483
86484 2004-09-21  Bruno Haible  <bruno@clisp.org>
86485
86486         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86487         Reported by Simon Josefsson.
86488
86489 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86490
86491         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86492         gl_AC_TYPE_LONG_LONG.
86493
86494 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86495
86496         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86497
86498 2004-09-18  Simon Josefsson  <jas@extundo.com>
86499         and  Paul Eggert  <eggert@cs.ucla.edu>
86500
86501         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86502         calls with autoreconf.  Define GL_LIB.
86503
86504 2004-09-14  Karl Berry  <karl@gnu.org>
86505
86506         * config/srclist.txt: unsync setenv.c, sigh.
86507
86508 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86509
86510         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86511         Problem reported by Bruno Haible in:
86512         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86513
86514 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86515
86516         * config/srclist.txt: Comment out argp-pvh.c.
86517
86518 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86519
86520         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86521         in case some system header has #define'd it.  Problem reported by
86522         Soeren D. Schulze in
86523         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86524
86525 2004-09-09  Karl Berry  <karl@gnu.org>
86526
86527         * regex.[ch]: delete from the root.  These were supposed to be
86528                 synced with emacs cvs, but this has not happened for about
86529                 a year, and anyway nothing else uses emacs regex.[ch].
86530                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86531                 lib/regex[.ch] is untouched.
86532
86533 2004-09-09  Bruno Haible  <bruno@clisp.org>
86534
86535         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86536
86537 2004-09-09  Bruno Haible  <bruno@clisp.org>
86538
86539         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86540         modifications.
86541         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86542
86543 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86544
86545         * modules/xvasprintf: New file.
86546         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86547
86548 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86549
86550         * lib/xvasprintf.h: New file.
86551         * lib/xvasprintf.c: New file.
86552         * lib/xasprintf.c: New file.
86553
86554 2004-09-08  Bruno Haible  <bruno@clisp.org>
86555
86556         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86557
86558 2004-09-08  Bruno Haible  <bruno@clisp.org>
86559
86560         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86561         length is > INT_MAX.
86562         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86563         more.
86564
86565 2004-09-08  Bruno Haible  <bruno@clisp.org>
86566
86567         * lib/stdint_.h: New file, taken from GNU clisp.
86568
86569 2004-09-08  Bruno Haible  <bruno@clisp.org>
86570             Oskar Liljeblad  <oskar@osk.mine.nu>
86571
86572         * modules/stdint: New file.
86573         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86574
86575 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86576
86577         Import from coreutils.
86578         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86579         strings on unbounded length.  alloca's performance benefits aren't
86580         that important here.
86581         (V_STRDUP): Remove.
86582         (parse_with_separator): New function, with most of the internals
86583         of the old parse_user_spec.  Allow user to omit both user and group,
86584         for compatibility with FreeBSD.
86585         Clone only the user name, not the entire spec.
86586         Do not set *uid, *gid unless entirely successful.
86587         Avoid memory leak in some failing cases.
86588         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86589         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86590         (parse_user_spec): Rewrite to use parse_with_separator.
86591
86592 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86593
86594         * modules/userspec: Don't depend on alloca.
86595
86596 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86597
86598         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86599
86600 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86601
86602         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86603         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86604         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86605
86606 2004-08-16  Simon Josefsson  <jas@extundo.com>
86607
86608         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86609         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86610         Add --dry-run for --import.
86611         Let user provided command line parameters override configure.ac
86612         settings.
86613
86614 2004-08-12  Simon Josefsson  <jas@extundo.com>
86615
86616         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86617         as discussed with Paul Eggert in threads rooted at
86618         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86619         and
86620         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86621         Before, the test was empty, and relied on ELIDE_CODE in source
86622         code.)
86623         (gl_PREREQ_GETOPT): New macro.
86624         (gl_GETOPT): Use them.
86625
86626 2004-08-12  Simon Josefsson  <jas@extundo.com>
86627
86628         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86629         * lib/getopt_.h: Renamed from getopt.h.
86630
86631 2004-08-12  Simon Josefsson  <jas@extundo.com>
86632
86633         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86634         Change default library name from libfoo to libgnu.
86635         Now, if you have a configure.ac that says:
86636                 gl_SOURCE_BASE(gl)
86637                 gl_M4_BASE(gl/m4)
86638                 gl_MODULES(error getopt etcetera)
86639                 gl_INIT
86640         you can import all you need by running:
86641                 ../gnulib/gnulib-tool --import
86642
86643         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86644         (Makefile.am): Rewrite, use logic from argz.
86645         (Include): Use <getopt.h> instead of "getopt.h".
86646
86647 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86648
86649         * modules/argp (Files): Add m4/unlocked-io.m4.
86650         (Depends-on): Add extensions.
86651
86652 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86653
86654         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86655         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86656         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86657         Check for program_invocation_name, program_invocation_short_name,
86658         flockfile, funlockfile, features.h, _getopt_long_only_r.
86659
86660 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86663         its complicated substitute.
86664         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86665         and program_invocation_name.
86666         (__argp_basename) [!_LIBC]: Remove; the only use was
86667         replaced by its body.
86668         (__argp_short_program_name): Change condition from
86669         !defined __argp_short_program_name to
86670         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86671         to match argp-namefrob.h.
86672         (__argp_failure): Don't assume strerror_r returns char *.
86673         * lib/argp-parse.c (N_): Define unconditionally.
86674         (argp_default_options): Fill out initializers with 0 to avoid
86675         gcc warnings.
86676
86677 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86678
86679         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86680         getopt1.c.
86681
86682 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86683
86684         Merge from coreutils.
86685
86686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86687
86688         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86689         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86690
86691 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86692
86693         Merge from coreutils.
86694
86695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86696         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86697         for Reliant Unix 5.43.
86698
86699         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86700         (union fooround): Use uintmax_t, not long int.
86701         The rest is a merge from libc:
86702         [defined _LIBC]: Include <shlib-compat.h>.
86703         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86704
86705         * lib/settime.c (settime): Recode to avoid warning with
86706         Sun Forte C 6U2.
86707
86708         * lib/strverscmp.c: Convert to UTF-8.
86709
86710 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86711
86712         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86713         m4/uintmax_t.m4.
86714
86715 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86716
86717         * modules/xalloc-die: New file.
86718         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86719
86720         * modules/md5 (Files): Add m4/uint32_t.m4.
86721         * modules/sha1: Renamed from modules/sha.
86722         (Files):
86723         Rename lib/sha.h to lib/sha1.h.
86724         Rename lib/sha.c to lib/sha1.c.
86725         Rename m4/sha.m4 to m4/sha1.m4.
86726         (lib_SOURCES): Likewise.
86727         (configure.ac): Rename gl_SHA to gl_SHA1.
86728         (Include): sha.h -> sha1.h.
86729
86730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86731
86732         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86733         * m4/sha1.m4: Renamed from sha.m4.
86734         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86735
86736 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86737
86738         * lib/obstack.h (obstack_empty_p):
86739         Don't assume that chunk->contents is suitably aligned.
86740         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86741         Likewise. Problem reported by Benno in
86742         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86743
86744         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86745         readable.  This could be improved further but it'd take some work.
86746
86747 2004-08-08  Simon Josefsson  <jas@extundo.com>
86748
86749         * modules/xgethostname (Depends-on): Remove exit and error (not
86750         used).
86751
86752         * modules/getpass-gnu: Add getpass.h.
86753         (Depends-on): Add stdbool.
86754         * modules/getpass: Add getpass.h.
86755
86756 2004-08-08  Simon Josefsson  <jas@extundo.com>
86757
86758         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86759         Check getpass declaration.
86760
86761 2004-08-08  Simon Josefsson  <jas@extundo.com>
86762
86763         * lib/xgethostname.c: Don't include error.h (not used).
86764
86765         * lib/getpass.h: Add.
86766         * lib/getpass.c: Include getpass.h first.
86767
86768 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86769
86770         * lib/xalloc-die.c: New file.
86771         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86772         All uses removed.
86773         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86774         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86775         xalloc-die.c.
86776         (_, N_, xalloc_die): Move to xalloc-die.c.
86777         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86778         so that we needn't mess with xalloc_msg_memory_exhausted.
86779
86780         * lib/sha1.h: Renamed from sha.h.
86781         (SHA1_H): Renamed from _SHA_H.
86782         (sha1_ctx): Renamed from sha_ctx.
86783         (sha1_init_ctx): Renamed from sha_init_ctx.
86784         (sha1_process_block): Renamed from sha_process_block.
86785         (sha1_process_bytes): Renamed from sha_process_bytes.
86786         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86787         (sha1_read_ctx): Renamed from sha_read_ctx.
86788         (sha1_stream): Renamed from sha_stream.
86789         (sha1_buffer): Renamed from sha_buffer.
86790         * lib/sha1.c: Likewise; renamed from sha.c.
86791         Do not include <sys/types.h>.
86792         Include <stddef.h> rather than <stdlib.h>.
86793
86794 2004-08-08  Bruno Haible  <bruno@clisp.org>
86795
86796         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86797         FILESYSTEM_PREFIX_LEN.
86798         * lib/progreloc.c: Likewise.
86799         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86800
86801 2004-08-06  Simon Josefsson  <jas@extundo.com>
86802
86803         * modules/progname (Depends-on): Don't depend on stdbool.
86804
86805 2004-08-06  Simon Josefsson  <jas@extundo.com>
86806
86807         * modules/getsubopt: New file.
86808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86809         getsubopt.
86810
86811 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         More merge from coreutils.
86814
86815         * m4/utimens.m4, m4/utimecmp.m4: New files.
86816         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86817         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86818         prereq.m4, sha.m4: Import changes from coreutils.
86819
86820 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86821
86822         More merge from coreutils.
86823         * modules/raise, modules/readtokens0, modules/utimens:
86824         * modules/utimecmp, module/xnanosleep: New files.
86825         * modules/strftime: Add lib/strftime.h.
86826         Change include from <time.h> to "strftime.h".
86827         * modules/yesno: Add lib/yesno.h.
86828         * modules/backupfile: Remove lib/addext.c.
86829         * modules/euidaccess: Add stat-macros.h.
86830         * modules/canonicalize, modules/euidaccess,
86831         modules/filemode, modules/lchown, modules/makepath,
86832         modules/rmdir, modules/stat: Likewise.
86833
86834 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86835
86836         Merge from tar.
86837         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86838         SIZE_MAX is a valid preprocessor constant.
86839         (__argp_basename): Change from "#ifndef _LIBC"
86840         to "#ifndef __argp_short_program_name", so that
86841         we don't compile these functions for tar.
86842
86843         More merges from coreutils.
86844         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86845         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86846         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86847         * lib/addext.c: Remove; no longer needed.
86848         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86849         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86850         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86851         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86852         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86853         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86854         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86855         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86856         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86857         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86858         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86859         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86860         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86861         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86862         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86863         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86864         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86865         Import changes from coreutils.
86866
86867 2004-08-05  Simon Josefsson  <jas@extundo.com>
86868
86869         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86870
86871 2004-08-05  Simon Josefsson  <jas@extundo.com>
86872
86873         * m4/getsubopt.m4: New file.
86874
86875 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86876
86877         Merge from coreutils.
86878
86879         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86880         * m4/getcwd-path-max.m4: New files.
86881
86882         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86883         FILESYSTEM_PREFIX_LEN ->
86884         FILE_SYSTEM_PREFIX_LEN.
86885         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86886         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86887         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86888         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86889
86890         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86891         prerequisite modules now handle the DOS stuff.
86892         Don't check for unistd.h.
86893
86894 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86895
86896         Merge from coreutils.
86897
86898         * lib/.gdb-history: Remove; this doesn't belong here.
86899
86900         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86901         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86902         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86903         * lib/getcwd.c: New files.
86904
86905         * lib/dirname.h: Include <stdbool.h>.
86906         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86907         for consistency with POSIX terminology.  All uses changed.
86908         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86909         (strip_trailing_slashes): Use bool for booleans.
86910         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86911
86912         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86913         sometimes returns a positive errno value even when it succeeds.
86914         (print_errno_message) [!LIBC]: Fall back on strerror if
86915         __strerror_r fails.
86916
86917         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86918         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86919         (longest_relative_suffix): New function.
86920         (path_concat): Use it.  Assume first argument is not NULL.
86921         Port to DOS.  Omit redundant separators.
86922         Report an error instead of returning NULL.
86923         Use mempcpy instead of memcpy.
86924         (xpath_concat): Remove: not declared or used.
86925
86926         * lib/same.h: Include <stdbool.h>
86927         (same_name): Return bool, not int.
86928         * lib/same.c (same_name): Likewise.
86929         (errno): Don't declare; we assume C89 or better now.
86930
86931         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86932         if not already defined.
86933
86934         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86935         * lib/dup-safer.c (errno): Likewise.
86936
86937 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86938
86939         Merge from coreutils.
86940         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86941         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86942         * modules/path-concat: Don't depend on strdup.
86943
86944 2004-08-03  Simon Josefsson  <jas@extundo.com>
86945
86946         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86947         * lib/progname.h: Don't include stdbool.h.
86948
86949 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86950
86951         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86952         * MODULES.html.sh (func_all_modules): Remove fatal.
86953
86954 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86955
86956         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86957
86958 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86959
86960         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86961         working.
86962
86963 2004-08-02  Simon Josefsson  <jas@extundo.com>
86964
86965         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86966         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86967         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86968
86969 2004-08-01  Simon Josefsson  <jas@extundo.com>
86970
86971         * lib/xgetdomainname.c: Include stdlib.h, for free().
86972
86973 2004-07-19  Bruno Haible  <bruno@clisp.org>
86974
86975         * MODULES.html.sh (func_all_modules): Add dummy.
86976
86977 2004-07-16  Simon Josefsson  <jas@extundo.com>
86978
86979         * modules/dummy: New file.
86980
86981 2004-07-16  Simon Josefsson  <jas@extundo.com>
86982
86983         * lib/dummy.c: New file.
86984
86985 2004-07-16  Bruno Haible  <bruno@clisp.org>
86986
86987         * lib/backupfile.h: Add extern "C" for C++.
86988         * lib/closeout.h: Likewise.
86989         * lib/copy-file.h: Likewise.
86990         * lib/findprog.h: Likewise.
86991         * lib/full-write.h: Likewise.
86992         * lib/pathname.h: Likewise.
86993         * lib/progname.h: Likewise.
86994         * lib/stpcpy.h: Likewise.
86995         * lib/stpncpy.h: Likewise.
86996         * lib/strcase.h: Likewise.
86997         * lib/strstr.h: Likewise.
86998         * lib/xalloc.h: Likewise.
86999
87000         * lib/mbswidth.h: Add extern "C" for C++.
87001         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87002
87003 2004-07-13  Robert Millan  <robertmh@gnu.org>
87004
87005         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87006
87007 2004-07-09  Simon Josefsson  <jas@extundo.com>
87008
87009         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87010         failed without this.)
87011
87012 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87013
87014         * modules/chown (Files): Add lib/fchown-stub.c, since
87015         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87016
87017 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87018
87019         * lib/fchown-stub.c: New file.
87020
87021 2004-06-24  Jim Meyering  <jim@meyering.net>
87022
87023         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87024
87025 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87026
87027         * modules/argz: Omit "#include".
87028
87029         * MODULES.html.sh (func_all_modules): Add calloc, to match
87030         2004-06-01 addition of calloc module.
87031
87032 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87033
87034         * m4/argz.m4: New file, which is autoupdated from libtool.
87035
87036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87037
87038         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87039         libtool.
87040
87041 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87042
87043         * config/srclist-update: Don't insist on "USA." before the
87044         close-comment, as libtool omits the period and puts the */ on a
87045         separate line.
87046         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87047         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87048
87049 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87050
87051         * modules/argz: New file.
87052         * MODULES.html.sh (func_all_modules): Add argz.
87053
87054 2004-06-12  Jim Meyering  <jim@meyering.net>
87055         and  Paul Eggert  <eggert@cs.ucla.edu>
87056
87057         * modules/hash (Files): Add lib/xalloc.h.
87058         * modules/pipe (Depends-on): Add wait-process.
87059         * modules/stat (Depends-on): Add xalloc.
87060         * modules/userspec (Files): Add lib/userspec.h.
87061         * modules/xstrto
87062
87063         Upgrade from gettext-0.13.
87064         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87065         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87066         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87067
87068 2004-06-10  Jim Meyering  <jim@meyering.net>
87069
87070         * lib/calloc.c: New file.
87071
87072 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87073
87074         * lib/getdate.y (yylex): Allow space between sign and number.
87075         Problem reported by Dan Jacobson.
87076
87077 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87078
87079         Merge from coreutils CVS.
87080
87081         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87082         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87083         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87084         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87085         xstrtol.m4: Fix copyright date and/or serial number.
87086
87087         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87088         See if we need an fchown replacement.
87089         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87090         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87091         and use the replacement function if we detect either defect.
87092
87093         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87094         gl_UTIMECMP.
87095
87096 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87097         and  Jim Meyering  <jim@meyering.net>
87098
87099         Merge from coreutils CVS.
87100
87101         * lib/stat-macros.h: New file, with contents from file-type.h
87102         and coreutils' system.h.
87103         * lib/file-type.c: Include "stat-macros.h".
87104         * lib/file-type.h (file_type): Move all macro definitions to new file,
87105         stat-macros.h.
87106
87107         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87108         Wrap old code with this conditional.
87109         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87110         function that does not dereference symlinks.
87111         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87112
87113         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87114         dependency problems.
87115         (xreadlink): Accept new arg SIZE, for efficiency.
87116         All decls and uses changed.
87117         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87118
87119         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87120         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87121
87122         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87123         sysexits.h.
87124
87125 2004-06-01  Jim Meyering  <jim@meyering.net>
87126
87127         * m4/calloc.m4: New file.
87128
87129 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87130
87131         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87132         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87133         Also, fix a typo in a diagnostic.
87134
87135 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87136
87137         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87138         or AC_FUNC_REALLOC.
87139
87140 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87141
87142         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87143         macros to be defined.
87144         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87145         the allocator returns NULL because the requested size is zero.
87146
87147 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87148
87149         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87150         var.  Add comment explaining why libc still defines it.  This
87151         merges the following patch from glibc:
87152         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87153
87154 2004-05-20  Andreas Schwab  <schwab@suse.de>
87155
87156         * m4/free.m4: Replace free if it not known to work, not the other
87157         way round.
87158
87159 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87160
87161         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87162         present in glibc since revision 1.1 of this file.
87163         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87164         obstack_alignment_mask, obstack_alloc, obstack_base,
87165         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87166         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87167         obstack_grow0, obstack_init, obstack_int_grow,
87168         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87169         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87170         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87171         nonexistent functions.
87172
87173 2004-05-18  Karl Berry  <karl@gnu.org>
87174
87175         * config/srclist.txt: break link for vasnprintf.c.
87176
87177 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87178
87179         Port obstack to the AS/400, where pointers are 16 bytes wide and
87180         you cannot cast an integer to a valid pointer.  This patch is
87181         currently waiting to be integrated into glibc; see
87182         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87183
87184         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87185         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87186         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87187         (struct obstack): temp member is now a union of a pointer and
87188         an integer, instead of an integer.  All integer uses changed.
87189         This does not affect the physical layout of struct obstack,
87190         except on hosts (like the AS/400) where the size or alignment of
87191         void * is greater than that of ptrdiff_t.
87192         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87193         __STDC__)]: Store temporary in pointer member of union, not
87194         integer member.
87195         * lib/obstack.c: Include <stddef.h>, for offsetof.
87196         (struct fooalign): Remove; it doesn't need a name.
87197         (union fooround): Change double to long double, and add void *.
87198         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87199         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87200         not a macro.  Hence the values are always int; so remove all
87201         casts-to-int in uses.
87202
87203 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87204
87205         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87206         we can get this patch merged into glibc.
87207
87208 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87209             Paul Eggert  <eggert@cs.ucla.edu>
87210
87211         * m4/argp: Depend on alloca.
87212
87213 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87214             Paul Eggert  <eggert@cs.ucla.edu>
87215
87216         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87217         freecoding.
87218
87219 2004-05-17  Bruno Haible  <bruno@clisp.org>
87220
87221         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87222         precision that consists of a '.' followed by an empty digit string.
87223         Patch by Tor Lillqvist <tml@iki.fi>.
87224
87225 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87226
87227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87228         for backward compatibility with older code.  We need our own
87229         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87230         it under some other name, and our alloca.h will define it.
87231
87232 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87233             Derek Price  <derek@ximbiot.com>
87234
87235         * lib/alloca.c: Include <alloca.h>, to get our interface.
87236         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87237         include <alloca.h> first.  Use C89 prototype for alloca; this
87238         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87239         Use #elif for simplicity, since we can assume C89 now.
87240         Don't try to source the system alloca.h since it will not be found
87241         and to prevent recursively including its replacement.
87242         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87243         * lib/regex.c: Likewise.
87244
87245 2004-05-16  Derek Price  <derek@ximbiot.com>
87246             Paul Eggert  <eggert@cs.ucla.edu>
87247
87248         getline cleanup.  This changes the getndelim2 API: both order of
87249         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87250         no delimiter).
87251
87252         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87253         interface does that.
87254         (getline): Always use getdelim, so that we don't have two
87255         copies of this code.
87256         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87257         if available.
87258         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87259         (GETNDELIM2_MAXIMUM): New macro.
87260         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87261         instead of the old practice of delim2==0.  All callers changed.
87262         Return -1 on overflow, instead of returning junk.
87263         Do not set *linesize unless allocation succeeds.
87264         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87265         that we include sys/types.h.
87266         * lib/getnline.h: Likewise.
87267         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87268         (getndelim2): Reorder arguments.
87269         * lib/getnline.c (getnline, getndelim):
87270         Don't discard the NMAX argument.
87271         (getnline): Invoke getndelim, to avoid code duplication.
87272         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87273         of (size_t) -1 by callers of the getnline family.
87274
87275 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87276
87277         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87278         Check for gettimeofday.
87279         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87280         Check for settimeofday, stime.
87281
87282 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87283
87284         * lib/nanosleep.c (suspended): Change its type from int to
87285         sig_atomic_t volatile.
87286         (first_call): Make it private to rpl_nanosleep, and have it
87287         be zero initially as that's a bit faster.
87288         (my_usleep): Round up fractional times instead of truncating them,
87289         as this is the usual meaning for 'sleep'.
87290
87291         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87292         doesn't work.
87293         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87294         (ENOSYS): Define if not defined.
87295         (settime): Fall back on stime if it exists and settimeofday fails.
87296         But don't bother with fallbacks if a method fails with errno == EPERM.
87297
87298 2004-05-11  Jim Meyering  <jim@meyering.net>
87299
87300         Prior to this change, the save_cwd caller required read access to the
87301         current directory on most systems (ones with the fchdir function).
87302
87303         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87304         fails, try write-only, and finally, resort to using xgetcwd.
87305
87306 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87307
87308         * lib/obstack.c, obstack.h: Import changes from libc.
87309
87310 2004-04-28  Bruno Haible  <bruno@clisp.org>
87311
87312         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87313         also implicitly appends .exe to executables.
87314         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87315         accepts Windows pathnames.
87316         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87317         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87318         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87319         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87320         Reported by Derek Robert Price <derek@ximbiot.com>.
87321
87322 2004-04-21  Karl Berry  <karl@gnu.org>
87323
87324         * config/srclist.txt (localcharset.c): break sync.
87325
87326 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87327
87328         * m4/host-os.m4: Add a copyright notice.
87329
87330 2004-04-20  Jim Meyering  <jim@meyering.net>
87331
87332         Change UTILS_ to gl_ in AC_DEFINE'd names.
87333         Change utils_- and jm_-prefixed variables, too.
87334         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87335         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87336         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87337
87338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87339         Don't emit trailing blanks.
87340         Also rename jm_-prefixed variables to have gl_ prefix.
87341
87342         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87343         Also rename jm_-prefixed variables to have gl_ prefix.
87344
87345         * m4/jm-macros.m4: Reflect the renamings.
87346         * m4/prereq.m4: Likewise.
87347
87348 2004-04-20  Jim Meyering  <jim@meyering.net>
87349
87350         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87351         memory.
87352
87353 2004-04-20  Jim Meyering  <jim@meyering.net>
87354             Bruno Haible  <bruno@clisp.org>
87355
87356         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87357         memory when realloc fails.
87358
87359 2004-04-19  Jim Meyering  <jim@meyering.net>
87360
87361         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87362         now that readutmp.c may call `free (0)'.
87363
87364 2004-04-19  Bruno Haible  <bruno@clisp.org>
87365
87366         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87367         * m4/inttypes_h.m4: Likewise.
87368         * m4/stdint_h.m4: Likewise.
87369         * m4/intmax_t.m4: Likewise.
87370         * m4/uintmax_t.m4: Likewise.
87371
87372 2004-04-18  Jim Meyering  <jim@meyering.net>
87373
87374         * m4/prereq.m4: Don't forbid jm_ prefix.
87375
87376         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87377         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87378         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87379         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87380         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87381         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87382         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87383         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87384         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87385         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87386         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87387         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87388         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87389         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87390         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87391         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87392         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87393         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87394         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87395
87396 2004-04-18  Jim Meyering  <jim@meyering.net>
87397
87398         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87399         failure, don't leak memory and do call END_UTMP_ENT.
87400
87401 2004-04-16  Jim Meyering  <jim@meyering.net>
87402
87403         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87404         coreutils' stat program.
87405         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87406
87407 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87408
87409         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87410         C89.
87411         (CHAR_BIT): Remove, since we assume C89.
87412         Include <stdint.h> if available, as per current Autoconf CVS advice.
87413
87414 2004-03-31  Jim Meyering  <jim@meyering.net>
87415
87416         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87417         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87418         * m4/xalloc.m4: Likewise.
87419
87420 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87421
87422         Merge from coreutils.
87423
87424         * m4/inttostr.m4: New file.
87425         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87426         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87427         Require gl_CLOCK_TIME.
87428         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87429
87430 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87431
87432         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87433         not bool, to be more consistent with Unix conventions.
87434         Suggested by Bruno Haible.
87435
87436         Merge from coreutils.
87437
87438         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87439         * lib/umaxtostr.c: New files.
87440
87441         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87442         the usual <time.h> dance.
87443         (get_date): Change signature to support fractional time stamps.
87444         All callers changed.
87445         * lib/getdate.y: Include "getdate.h" first, as we can now
87446         assume C89 and don't need to worry about 'const'.
87447         Similarly, include "unlocked-io.h" near start, not in middle.
87448         Include <limits.h>.
87449         (textint.value): Use long int rather than int.
87450         (textint.digits): Use size_t rather than int.
87451         (BILLION, LOG10_BILLION): New constants.
87452         (parser_control): New member rel_ns.  Members day_ordinal,
87453         time_zone, month, day, hour, minutes, rel_year, rel_month,
87454         rel_day, rel_hour, rel_minutes, rel_seconds
87455         are now long int, not int.  Member seconds is now struct timespec,
87456         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87457         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87458         not int.
87459         (%union.intval): Now long int, not int.
87460         New member timespec.
87461         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87462         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87463         (spec): Now is a timespec or an item list.
87464         (timespec, items): New nonterminals.
87465         (time, rel, relunit, number, get_date):
87466         Add support for fractional seconds.
87467         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87468         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87469         (to_hour): First arg is now long int, not int.
87470         (to_year): Returns long int, not int.
87471         Don't treat year -70 like 70.
87472         (tm_diff): Returns long int, not int.
87473         (lookup_word): Use bool instead of int when appropriate.
87474         (yylex): Use size_t for count, not int.
87475         Detect overflow when parsing large integer constants.
87476         Add support for fractions.
87477         (get_date): Make pointers 'const' if possible.
87478         Use more-portable code to detect integer overflow.
87479         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87480         Don't use ctime; it's not reliable if the year has >4 digits.
87481
87482         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87483         This is for compatibility with BSD.
87484
87485         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87486         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87487         From coreutils' system.h.
87488
87489         * lib/userspec.c: Don't include "posixver.h".
87490         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87491         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87492         compatible extension.  Simplify code by removing a boolean int
87493         that was always nonzero if a string was nonnull.
87494
87495 2004-03-30  Jim Meyering  <jim@meyering.net>
87496
87497         Merge from coreutils.
87498
87499         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87500         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87501         on some systems one must include <grp.h> before it.
87502         Reported by Christian Krackowizer.
87503
87504 2004-03-30  Jim Meyering  <jim@meyering.net>
87505
87506         Merge from coreutils.
87507
87508         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87509
87510         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87511         an empty input stream.
87512
87513         * lib/readtokens.c: Include <stdbool.h>.
87514         (readtoken): Use `size_t' rather than int/long.
87515         All callers adjusted.
87516         Use `bool' rather than `int' where appropriate.
87517         Use memset rather than an explicit loop.
87518         Use x2nrealloc rather than xrealloc.
87519         Allow the use of `\0' as a delimiter.
87520         (readtokens): Likewise.
87521         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87522
87523 2004-03-30  Jim Meyering  <jim@meyering.net>
87524
87525         * m4/realloc.m4: Remove file, since now it does no more than
87526         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87527         the `configure.ac' section of module/realloc.
87528         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87529
87530 2004-03-30  Bruno Haible  <bruno@clisp.org>
87531
87532         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87533         nonnull.
87534
87535 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87536
87537         Merge changes to getloadavg.c from coreutils and Emacs.
87538
87539         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87540         Define to an expression, not to the empty string.
87541         Include cloexec.h and xalloc.h.
87542         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87543         Use set_cloexec_flag rather than rolling our own.
87544         * lib/cloexec.c, lib/cloexec.h: New files.
87545
87546 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87547
87548         * m4/cloexec.m4: New file.
87549
87550 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87551
87552         * lib/getopt.h: Sync with libc CVS.
87553
87554 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87555             Bruno Haible  <bruno@clisp.org>
87556
87557         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87558         mbswidth.
87559
87560 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87561             Bruno Haible  <bruno@clisp.org>
87562
87563         * lib/mbswidth.h: Include <wchar.h> only if
87564         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87565         <wchar.h>.
87566         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87567
87568 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87569
87570         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87571         Sync with libc CVS.
87572         * lib/getopt_int.h: New file, also synced from libc.
87573
87574 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87575
87576         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87577         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87578         Bring back getopt.c, getopt.h, getopt1.c.
87579
87580 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87581
87582         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87583         All uses changed.  Check for sa_sigaction member; this fixes
87584         a bug first reported by Jason Andrade in
87585         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87586
87587 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87588
87589         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87590         '#if' expressions.  Unlike the code it replaces, it does not
87591         depend on (defined _SC_PAGESIZE).  However, it does depend on
87592         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87593         first reported by Jason Andrade in
87594         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87595
87596 2004-02-25  Simon Josefsson  <jas@extundo.com>
87597
87598         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87599
87600 2004-02-25  Simon Josefsson  <jas@extundo.com>
87601
87602         * lib/strdup.h: New file.
87603         * lib/strdup.c: Include it.
87604         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87605         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87606
87607 2004-02-23  Karl Berry  <karl@gnu.org>
87608
87609         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87610         (from fencepost.gnu.org:/gd/gnuorg).
87611
87612 2004-02-23  Karl Berry  <karl@gnu.org>
87613
87614         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87615         * config/srclist.txt: add maintain/standards documents.
87616
87617 2004-02-18  Bruno Haible  <bruno@clisp.org>
87618
87619         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87620         Reported by Derek Robert Price <derek@ximbiot.com>.
87621
87622 2004-02-16  Karl Berry  <karl@gnu.org>
87623
87624         * config/mkinstalldirs, install-sh: update from automake.
87625
87626 2004-02-06  Karl Berry  <karl@gnu.org>
87627
87628         * m4/po.m4: update from gettext 0.14.1.
87629
87630 2004-02-06  Karl Berry  <karl@gnu.org>
87631
87632         * lib/config.charset: update from gettext 0.14.1.
87633
87634 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87635
87636         Add comments and code, prompted by suggestions from Bruno Haible
87637         for sh-quote.
87638         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87639         describing the enum quoting_style values.
87640         * lib/quotearg.c (quotearg_alloc): New function.
87641         (quotearg_buffer_restyled): Treat lone { and } as special.
87642         Treat = as special.  Work around bug with older shells
87643         that "see" a '\' that is really the 2nd byte of a multibyte char.
87644         Quote empty string with shell_quoting_style.
87645
87646 2004-02-03  Bruno Haible  <bruno@clisp.org>
87647
87648         * m4/pipe.m4: New file, from GNU gettext.
87649
87650 2004-02-03  Bruno Haible  <bruno@clisp.org>
87651
87652         * lib/pipe.h: New file, from GNU gettext.
87653         * lib/pipe.c: New file, from GNU gettext.
87654
87655 2004-01-27  Bruno Haible  <bruno@clisp.org>
87656
87657         * m4/execute.m4: New file, from GNU gettext.
87658
87659 2004-01-27  Bruno Haible  <bruno@clisp.org>
87660
87661         * lib/execute.h: New file, from GNU gettext.
87662         * lib/execute.c: New file, from GNU gettext.
87663         * lib/w32spawn.h: New file, from GNU gettext.
87664
87665 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87666
87667         Merge from diffutils.
87668
87669         * lib/file-type.c (file_type): Add typed memory objects.
87670         * lib/file-type.h (S_TYPEISTMO): New macro.
87671
87672         * lib/c-stack.h (c_stack_action): Remove argv argument.
87673         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87674         (die): Don't calculate message unless segv_action returns.
87675         (get_stack_location, min_address_from_argv, max_address_from_argv,
87676         volatile stack_base, volatile_stack_size): Remove.
87677         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87678         that every segmentation violation is a stack overflow.  (Ouch!)
87679         See Debian bug 136249 (still outstanding) for more info about why
87680         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87681
87682 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87683
87684         Exit-status fix from coreutils.
87685
87686         Use exit_failure consistently in place of EXIT_FAILURE,
87687         so that program exit statuses are consistent on failure.
87688
87689         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87690         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87691         * lib/argmatch.h: Comment fix to match the above.
87692         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87693         Now a macro referring to exit_failure, instead of a separate
87694         variable.  Include "exitfail.h" to get it.
87695         * lib/xstrtol.h: Include "exitfail.h".
87696         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87697
87698         * lib/long-options.c (parse_long_options): Use prototype
87699         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87700         for clarity.
87701
87702 2004-01-21  Jim Meyering  <jim@meyering.net>
87703
87704         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87705         so as not to conflict with a different-sized __mktime_internal
87706         function in GNU libc.
87707         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87708         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87709
87710 2004-01-20  Karl Berry  <karl@gnu.org>
87711
87712         * config/config.guess: update from config.
87713
87714         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87715
87716 2004-01-20  Bruno Haible  <bruno@clisp.org>
87717
87718         Safer stack allocation.
87719         * lib/setenv.c: Include allocsa.h.
87720         (alloca): Remove fallback definition.
87721         (freea): Remove macro.
87722         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87723         instead of freea.
87724
87725 2004-01-20  Bruno Haible  <bruno@clisp.org>
87726
87727         * m4/eealloc.m4: New file, from GNU gettext.
87728
87729 2004-01-20  Bruno Haible  <bruno@clisp.org>
87730
87731         * m4/allocsa.m4: New file, from GNU gettext.
87732
87733 2004-01-20  Bruno Haible  <bruno@clisp.org>
87734
87735         * lib/xallocsa.h: New file, from GNU gettext.
87736         * lib/xallocsa.c: New file, from GNU gettext.
87737
87738 2004-01-20  Bruno Haible  <bruno@clisp.org>
87739
87740         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87741
87742 2004-01-20  Bruno Haible  <bruno@clisp.org>
87743
87744         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87745         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87746         specially.
87747
87748 2004-01-20  Bruno Haible  <bruno@clisp.org>
87749
87750         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87751         patch.
87752
87753 2004-01-20  Bruno Haible  <bruno@clisp.org>
87754
87755         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87756
87757 2004-01-20  Bruno Haible  <bruno@clisp.org>
87758
87759         * lib/eealloc.h: New file.
87760
87761 2004-01-20  Bruno Haible  <bruno@clisp.org>
87762
87763         * lib/binary-io.h: Avoid warnings on Cygwin.
87764
87765 2004-01-20  Bruno Haible  <bruno@clisp.org>
87766
87767         * lib/allocsa.h: New file, from GNU gettext.
87768         * lib/allocsa.c: New file, from GNU gettext.
87769
87770 2004-01-18  Karl Berry  <karl@gnu.org>
87771
87772         * doc/gpl.texi, doc/lgpl.texi: new files.
87773
87774 2004-01-18  Karl Berry  <karl@gnu.org>
87775
87776         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87777         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87778
87779 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87780
87781         Merge from coreutils.
87782
87783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87784         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87785         (gl_DEFAULT_POSIX2_VERSION): Move
87786         the documentation from 'configure' into 'config.hin',
87787         so that 'configure --help' isn't burdened by it and
87788         we don't have to worry about its formatting there.
87789         Reword the documentation so that it's more succinct
87790         and can be run together into a single paragraph.
87791         * m4/same.m4 (gl_SAME): Check for pathconf.
87792
87793 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87794
87795         Merge from coreutils.
87796
87797         * lib/posixver.c: Include posixver.h.
87798
87799         * lib/same.c: Include <stdbool.h>, <limits.h>.
87800         (_POSIX_NAME_MAX): Define if not defined.
87801         (MIN): New macro.
87802         (same_name): If file names are silently truncated, report
87803         that the file names are the same if they are the same after
87804         the silent truncation.
87805
87806         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87807         conversion function.
87808         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87809         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87810         longer needed.
87811
87812 2004-01-15  Jim Meyering  <jim@meyering.net>
87813
87814         Merge from coreutils.
87815
87816         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87817         if no library is required.
87818         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87819         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87820         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87821         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87822         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87823         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87824         value, $ac_cv_search_crypt, if it's "none required".
87825         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87826         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87827         not gl_FUNC_GETLOADAVG.
87828         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87829         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87830
87831 2004-01-15  Jim Meyering  <jim@meyering.net>
87832
87833         Merge from coreutils.
87834
87835         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87836         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87837         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87838
87839         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87840         optional configure-time default.
87841
87842         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87843
87844         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87845
87846 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87847
87848         Merge from coreutils.
87849
87850         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87851         value, $ac_cv_search_nanosleep, if it's "none required".
87852
87853 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87854
87855         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87856         with like-named macro in fnmatch.c.
87857         (EXT): Use an internal constant instead.
87858
87859         Merge fnmatch patches from glibc.
87860         * lib/fnmatch.c (mbsinit): Remove define.
87861         Add libc_hidden_ver (__fnmatch, fnmatch).
87862         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87863         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87864
87865 2004-01-14  Karl Berry  <karl@gnu.org>
87866
87867         * config/install-sh: update from automake.
87868
87869 2004-01-13  Karl Berry  <karl@gnu.org>
87870
87871         * config/install-sh: update from automake.
87872
87873 2004-01-09  Karl Berry  <karl@gnu.org>
87874
87875         * config/install-sh: update from automake.
87876
87877 2004-01-05  Karl Berry  <karl@gnu.org>
87878
87879         * config/config.{sub,guess}: update from config.
87880
87881 2003-12-31  Karl Berry  <karl@gnu.org>
87882
87883         * config/depcomp: update from automake.
87884
87885 2003-12-14  Karl Berry  <karl@gnu.org>
87886
87887         * lib/config.charset: update from gettext-runtime.
87888
87889 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87890
87891         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87892         Bug reported by Alfred M. Szmidt.
87893
87894 2003-12-03  Bruno Haible  <bruno@clisp.org>
87895
87896         * m4/gettext.m4: Upgrade from gettext-0.13.
87897         * m4/po.m4: Upgrade from gettext-0.13.
87898         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87899         * m4/intmax.m4: New file, from gettext-0.13.
87900         * m4/printf-posix.m4: New file, from gettext-0.13.
87901
87902 2003-11-29  Karl Berry  <karl@gnu.org>
87903
87904         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87905
87906 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87907             Bruno Haible  <bruno@clisp.org>
87908
87909         * lib/printf-parse.h: Don't include sys/types.h.
87910         (ARG_NONE): New macro.
87911         (char_directive): Change type of *arg_index fields to size_t.
87912         * lib/printf-parse.c: Don't include sys/types.h.
87913         (SSIZE_MAX): Remove macro.
87914         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87915         Remove unnecessary overflow check.
87916         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87917         fields.
87918
87919 2003-11-25  Bruno Haible  <bruno@clisp.org>
87920
87921         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87922
87923 2003-11-25  Bruno Haible  <bruno@clisp.org>
87924
87925         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87926         gt_TYPE_SSIZE_T.
87927
87928 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87929
87930         * modules/alloca: Remove dependency on xalloc.
87931
87932 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87933
87934         * lib/alloca.c: Remove dependency on xalloc module.
87935         (xalloc_die): Remove.
87936         (memory_full) [!defined emacs]: New macro.
87937         [!defined emacs]: Don't include xalloc.h.
87938         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87939         address arithmetic overflows.  Change datatypes a bit to avoid
87940         unnecessary casts.
87941
87942 2003-11-22  Jim Meyering  <jim@meyering.net>
87943
87944         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87945         s/size/size_t/.
87946
87947 2003-11-21  Karl Berry  <karl@gnu.org>
87948
87949         * config/config.{sub,guess}: update from config.
87950
87951 2003-11-18  Karl Berry  <karl@gnu.org>
87952
87953         * config/config.{sub,guess}: update from config.
87954
87955         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87956
87957 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87958
87959         * README: Mention that S+T cannot overflow if S is the size of
87960         an existing object and T is sufficiently small.
87961
87962 2003-11-17  Jim Meyering  <jim@meyering.net>
87963
87964         On systems without utime and without a utimes function capable of
87965         dealing with a NULL struct utimbuf* argument, this utime replacement
87966         could -- in unusual circumstances -- leak a file descriptor.
87967         * lib/utime.c: Include <unistd.h> and <errno.h>.
87968         (utime_null): Be sure to close `fd' and to preserve errno.
87969         Reported by Geoff Collyer via Arnold Robbins.
87970
87971 2003-11-17  Bruno Haible  <bruno@clisp.org>
87972
87973         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87974         (Depends-on): Add xsize.
87975
87976 2003-11-17  Bruno Haible  <bruno@clisp.org>
87977
87978         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87979
87980 2003-11-17  Bruno Haible  <bruno@clisp.org>
87981
87982         * lib/vasnprintf.c (alloca): Remove fallback definition.
87983         (freea): Remove definition.
87984         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87985         Reported by Paul Eggert.
87986
87987 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87988             Bruno Haible  <bruno@clisp.org>
87989
87990         Protect against address arithmetic overflow.
87991         * lib/printf-args.h: Include stddef.h.
87992         (arguments): Change type of field 'count' to size_t.
87993         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87994         'unsigned int' where appropriate.
87995         * lib/printf-parse.h: Include sys/types.h.
87996         (char_directive): Change type of *arg_index fields to ssize_t.
87997         (char_directives): Change type of fields 'count', max_*_length to
87998         size_t.
87999         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88000         (SSIZE_MAX): Define fallback value.
88001         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88002         instead of 'int' where appropriate. Check a_allocated, d_allocated
88003         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88004         * lib/vasnprintf.c: Include xsize.h.
88005         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88006         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88007         overflow. Avoid wraparound when converting a width or precision from
88008         decimal to binary.
88009
88010 2003-11-16  Bruno Haible  <bruno@clisp.org>
88011
88012         Update from GNU gettext.
88013         * lib/printf-parse.c: Generalize to it can be compiled for wide
88014         strings.
88015         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88016         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88017         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88018         SNPRINTF): New macros.
88019         Don't include <alloca.h> if the file is used inside libintl.
88020         (local_wcslen): New function, for Solaris 2.5.1.
88021         (VASNPRINTF): Use it instead of wcslen.
88022
88023 2003-11-16  Bruno Haible  <bruno@clisp.org>
88024
88025         * lib/xsize.h (xmax): New function.
88026         (xsum, xsum3, xsum4): Declare as "pure" functions.
88027
88028 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88029
88030         * modules/xalloc (Files): Undo latest change, since xalloc.h
88031         no longer needs SIZE_MAX or PTRDIFF_MAX.
88032
88033 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88034
88035         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88036         gl_PTRDIFF_MAX.
88037
88038 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88039
88040         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88041         "return", to pacify some unknown compiler.  Problem reported
88042         by Joerg Schilling.
88043
88044 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88045
88046         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88047         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88048         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88049         heuristic is just as accurate as far as we know, and it removes a
88050         dependency on size_max.m4 and ptrdiff_max.m4.
88051
88052 2003-11-11  Bruno Haible  <bruno@clisp.org>
88053
88054         * modules/xsize (Files): Add m4/size_max.m4.
88055         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88056
88057 2003-11-11  Bruno Haible  <bruno@clisp.org>
88058
88059         * m4/size_max.m4: New file.
88060         * m4/ptrdiff_max.m4: New file.
88061         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88062         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88063         (gl_XALLOC): Invoke it.
88064
88065 2003-11-11  Bruno Haible  <bruno@clisp.org>
88066
88067         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88068         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88069         defined.
88070
88071 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88072
88073         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88074         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88075         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88076         From Bruno Haible.
88077         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88078         not (size_t) -1, since it's defined here.
88079
88080 2003-11-09  Karl Berry  <karl@gnu.org>
88081
88082         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88083
88084 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88085
88086         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88087         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88088         Reject sizes of exactly SIZE_MAX bytes.
88089         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88090         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88091
88092 2003-11-05  Bruno Haible  <bruno@clisp.org>
88093
88094         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88095         SIZE_MAX defined in <limits.h> on Solaris.
88096
88097 2003-11-04  Jim Meyering  <jim@meyering.net>
88098
88099         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88100         variable names, rather than @VAR@.
88101         * modules/poll: Likewise.
88102
88103 2003-11-04  Bruno Haible  <bruno@clisp.org>
88104
88105         * modules/xsize: New file.
88106         * modules/linebreak: Depend on xsize.
88107         * MODULES.html.sh (func_all_modules): Add xsize.
88108
88109 2003-11-04  Bruno Haible  <bruno@clisp.org>
88110
88111         * m4/xsize.m4: New file.
88112
88113 2003-11-04  Bruno Haible  <bruno@clisp.org>
88114
88115         * lib/xsize.h: New file.
88116         * lib/linebreak.c: Include xsize.h.
88117         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88118         argument for overflow.
88119         Suggested by Paul Eggert.
88120
88121 2003-11-03  Karl Berry  <karl@gnu.org>
88122
88123         * config/config.{guess,sub}: update from config.
88124
88125 2003-11-03  Jim Meyering  <jim@meyering.net>
88126
88127         * modules/userspec (lib_SOURCES): Add userspec.h.
88128         (Include): Add "userspec.h".
88129         Improve description.
88130
88131 2003-11-03  Jim Meyering  <jim@meyering.net>
88132
88133         * lib/userspec.c: Include "userspec.h".
88134         * lib/userspec.h: New file.
88135
88136 2003-11-03  Bruno Haible  <bruno@clisp.org>
88137
88138         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88139
88140 2003-11-03  Bruno Haible  <bruno@clisp.org>
88141
88142         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88143         available, to avoid (extremely rare) race condition.
88144         Suggested by Paul Eggert.
88145
88146 2003-11-02  Karl Berry  <karl@gnu.org>
88147
88148         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88149
88150 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88151
88152         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88153         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88154         (read_filesystem_list): Set and use me_type_malloced.
88155         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88156         whatever the type happens to be), for brevity and consistency.
88157         Check for size calculation overflow on Alphas running OSF/1.
88158
88159 2003-10-31  Jim Meyering  <jim@meyering.net>
88160
88161         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88162
88163         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88164
88165 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88166             Bruno Haible  <bruno@clisp.org>
88167
88168         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88169         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88170
88171 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88172
88173         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88174         netbsd*-gnu*.  Suggested by Robert Millan.
88175
88176 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88177
88178         * modules/group-member: Depend on stdbool.
88179
88180 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88181
88182         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88183
88184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88185
88186         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88187         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88188         after the 'gnu' in these cases.  This fixes some bugs in the
88189         previous change, and is based on suggestions by Robert Millan.
88190
88191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88192
88193         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88194         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88195         no longer needed.
88196         * lib/quotearg.c (quotearg_n_options): Use it.
88197         * lib/group-member.c: Include <stdbool.h>.
88198         (free_group_info): Arg is now const *; don't free arg.
88199         (get_group_info): Now returns bool and accepts struct group_info *,
88200         rather than returning a malloc'ed struct group_info *.
88201         All uses changed.  Check for overflow in internal size calculation.
88202
88203         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88204         rather than xmalloc/xrealloc.
88205         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88206         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88207         conformance bug: the old code used a pointer after freeing the
88208         storage that it addressed.
88209         * lib/hash.c (hash_initialize): Simplify the code by using
88210         xalloc_oversized rather than doing it by hand.
88211         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88212         the buffer preserved.  Use free and xmalloc instead.
88213         * lib/quotearg.c (quotearg_n_options): Likewise.
88214         Use a simpler test for size overflow.  Don't use xalloc_oversized
88215         because unsigned int might be wider than size_t (!); this suggests
88216         that we should switch from unsigned int to size_t for slot numbers.
88217
88218 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88219
88220         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88221         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88222         NetBSD kernels.  Requested by Richard Stallman.
88223
88224 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88225
88226         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88227         to allocate the returned structure.  Do not allocate a subarray,
88228         as x2nrealloc will do that.
88229         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88230         instead of xnrealloc.
88231         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88232
88233 2003-10-27  Bruno Haible  <bruno@clisp.org>
88234
88235         * lib/stdbool_.h: Better support for BeOS.
88236
88237 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88238
88239         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88240         now uses inline.
88241
88242 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88243
88244         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88245         callers that want to do their own size-overflow checking.  Include
88246         <stdbool.h>, since xalloc_oversized returns bool.
88247         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88248         to use xalloc_oversized.
88249
88250         Add two functions x2realloc, x2nrealloc, for programs that grow
88251         arrays dynamically by doubling their sizes.
88252         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88253         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88254         New functions.
88255
88256         Port to C99 semantics for 'inline' of external functions.
88257         Bug reported by Bruno Haible.
88258         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88259         with the old contents of xnmalloc.
88260         (xnmalloc, xmalloc): Use it.
88261         (xnrealloc_inline): New static inline function,
88262         with the old contents of xnrealloc.
88263         (xnrealloc, xrealloc): Use it.
88264
88265         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88266         that.
88267
88268 2003-10-26  Karl Berry  <karl@gnu.org>
88269
88270         * config/srclist.txt (COPYING.DOC): no longer available from
88271         /gd/gnuorg; don't know where the ultimate source is.
88272
88273 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88274
88275         Fix several address-calculation bugs in the hash modules,
88276         plus some minor code cleanup.
88277
88278         * lib/hash.h: Include <stdbool.h>, for bool.
88279         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88280         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88281         hash_get_n_entries, hash_get_max_bucket_length,
88282         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88283         hash_rehash): Use size_t rather than unsigned.
88284         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88285         hash_get_n_buckets_used, hash_get_n_entries,
88286         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88287         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88288         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88289         Likewise.
88290         (SIZE_MAX): Define if not defined.
88291         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88292         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88293         hash_print):
88294         Use const * when possible.
88295         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88296         (check_tuning): Fix bug: if tuning parameters were very close to
88297         0 or 1, rounding errors could have caused subscript violations.
88298         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88299         (hash_initialize): Add 'fail:' label
88300         to free table and return NULL, and use it to simplify code.
88301         Use calloc rather than clearing the storage ourself.
88302         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88303         buffer size calculations.
88304         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88305         Include <stddef.h>, for size_t.
88306         * lib/hash-pjw.c (hash_pjw): Likewise.
88307         Switch to method described by Bruno Haible.
88308         Include <limits.h>, for CHAR_BIT.
88309         (SIZE_BITS): New macro.
88310
88311 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88312
88313         * m4/getline.m4 (AM_FUNC_GETLINE):
88314         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88315         hosts.  Problem reported by Derek Robert Price in
88316         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88317         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88318         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88319
88320 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88321
88322         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88323         ceiling the allocation at NMAX bytes rather than silently
88324         discarding input bytes before NMAX is reached.  This makes
88325         a difference only if NMAX exceeds SIZE_MAX / 2.
88326
88327         * lib/obstack.c: Merge from glibc.
88328         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88329         Add libc_hidden_def (_obstack_newchunk).
88330         (_obstack_free) [! defined _LIBC]: Remove.
88331         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88332         a clone of the function body.
88333         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88334         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88335
88336         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88337         glibc.
88338         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88339         arg to memcpy.
88340
88341         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88342         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88343         Don't use lvalue casts, as GCC plans to remove support for them
88344         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88345         was also present in the non-GCC version, indicating that this
88346         code had always been buggy and had never been widely used.
88347         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88348         Use the fast variant of each macro, rather than copying the
88349         definiens of the fast variant; that way, we'll be more likely to
88350         catch future bugs in the fast variants.
88351
88352 2003-10-20  Bruno Haible  <bruno@clisp.org>
88353
88354         * modules/wait-process: New file.
88355         * MODULES.html.sh (func_all_modules): Add wait-process.
88356
88357 2003-10-20  Bruno Haible  <bruno@clisp.org>
88358
88359         * m4/wait-process.m4: New file.
88360
88361 2003-10-20  Bruno Haible  <bruno@clisp.org>
88362
88363         * lib/wait-process.h: New file, from GNU gettext.
88364         * lib/wait-process.c: New file, from GNU gettext.
88365
88366 2003-10-19  Jim Meyering  <jim@meyering.net>
88367
88368         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88369         HPUX 10.20.
88370
88371 2003-10-18  Karl Berry  <karl@gnu.org>
88372
88373         * config/config.guess: update from config.
88374
88375 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88376
88377         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88378         (getgroups): First arg is int, not size_t.
88379         Don't let 'free' mangle errno.
88380
88381 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88382
88383         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88384
88385 2003-10-16  Karl Berry  <karl@gnu.org>
88386
88387         * config/config.{guess,sub}: update from config.
88388
88389 2003-10-16  Jim Meyering  <jim@meyering.net>
88390
88391         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88392         memcpy.
88393
88394 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88395
88396         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88397         (SIZE_MAX): Remove.
88398         (new_exclude, add_exclude_file): Initial size no longer needs to
88399         be a power of 2.
88400         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88401         our own address arithmetic overflow checking.
88402
88403         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88404         (fnmatch): Do not alloca more than 2000 wide characters;
88405         instead, use malloc for large buffers.
88406         Check for address arithmetic overflow, and return -1
88407         with errno set to ENOMEM in that case.
88408         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88409         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88410         instead, return -1.  Check for address arithmetic overflow.
88411
88412 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88413
88414         Handle invalid suffixes and overflow independently, so that
88415         callers can treat them independently as needed.  Fix some bugs in
88416         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88417         suffix for a human-readable blocksize.  The major caller-visible
88418         change is the addition of a new
88419         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88420         that both overflow and suffix chars were found.
88421
88422         * lib/human.c (humblock): Don't check separately for invalid suffix
88423         char; that is xstrtoumax's job (now that its bug is fixed).
88424         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88425         INTMAX_MAX]: New macros.
88426         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88427         TYPE_MAXIMUM): New macros.
88428         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88429         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88430         if overflow occurs, as it's what __strtol does and it's more useful
88431         in practice.
88432         (__xstrtol): If __strtol reports some error other than ERANGE,
88433         reflect it to the caller as LONGINT_INVALID.  If it reports
88434         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88435         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88436         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88437         value.
88438         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88439         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88440         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88441         [defined UINTMAX_MAX]: New macros.
88442
88443 2003-10-14  Bruno Haible  <bruno@clisp.org>
88444
88445         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88446
88447 2003-10-14  Bruno Haible  <bruno@clisp.org>
88448
88449         * m4/sig_atomic_t: New file, from GNU gettext.
88450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88451
88452 2003-10-14  Bruno Haible  <bruno@clisp.org>
88453
88454         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88455         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88456         Also use volatile where needed.
88457
88458 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88459
88460         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88461         Change maintainer from Bruno Haible to 'all'.
88462
88463 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88464
88465         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88466
88467 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88468
88469         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88470         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88471         and define in terms of the other primitives.
88472         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88473         (SIZE_MAX): Define if not already defined.
88474         (array_size_overflow): New function.
88475         (xalloc_die): Abort instead of exiting if 'error' returns.
88476         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88477         (xmalloc, xrealloc): Use them.
88478         (xcalloc): Check for address arithmetic overflow.
88479         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88480         a bit faster than strcpy.
88481
88482 2003-10-10  Simon Josefsson  <jas@extundo.com>
88483
88484         * modules/argp (Depends-on): Add restrict and strcase.
88485
88486 2003-10-10  Simon Josefsson  <jas@extundo.com>
88487
88488         * m4/argp.m4: Add AC_C_INLINE.
88489
88490 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88491
88492         Merge getpass from libc, plus a few fixes.
88493
88494         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88495         Include <stdbool.h>.
88496         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88497         __fsetlocking to empty.
88498         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88499         do include <bits/libc-lock.h>.
88500         Do not include <fcntl.h>; not needed.
88501         [_LIBC]: Include <wchar.h>.
88502         (NOTCANCEL_MODE): New macro.
88503         (flockfile, funlockfile) [_LIBC]: New macros.
88504         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88505         [!_LIBC]: New macros.
88506         (call_fclose): New function.
88507         (getpass): Use it.  Save tty stream separately; this simplifies the
88508         code and makes it more reliable if stdin happens to equal stdout.
88509         Invoke __fsetlocking on tty.
88510         Handle thread cancellation if needed.
88511         Namespace cleanup (use __tcgetattr, __getline).
88512         Use bool for Booleans.
88513         [USE_IN_LIBIO]: Handle wide streams.
88514         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88515         stream might go where.
88516
88517         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88518         doesn't have to include <stdio.h> before us.
88519         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88520         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88521         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88522         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88523         if not declared, so that we can use getpass.c code from libc without
88524         rewriting it.
88525         (flockfile, ftrylockfile, funlockfile): New macros.
88526
88527 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88528
88529         * modules/getpass: Depend on stdbool.
88530
88531 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88532
88533         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88534
88535 2003-10-07  Karl Berry  <karl@gnu.org>
88536
88537         * config/config.{guess,sub}: update from config.
88538
88539 2003-10-06  Jim Meyering  <jim@meyering.net>
88540             Bruno Haible  <bruno@clisp.org>
88541
88542         This lets translators provide better translations for the
88543         "Written by ..." part of --version output.
88544         * lib/version-etc.h: Include stdarg.h.
88545         (version_etc_copyright): Declare as readonly.
88546         (version_etc): Make this function variadic with a NULL-terminated list
88547         of author name strings.
88548         (version_etc_va): New declaration.
88549         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88550         (version_etc_copyright): Declare as readonly.
88551         (version_etc_va): New function. Provide a different translatable string
88552         for each possible number of authors < 10. Abbreviate when there are 10
88553         authors or more.
88554         (version_etc): Make this function variadic. Call version_etc_va.
88555         Suggestion from Gary V. Vaughan.
88556
88557         * lib/long-options.h (parse_long_options): Change prototype: the
88558         authors string is moved to the end and becomes variadic.
88559         * lib/long-options.c: Include stdarg.h.
88560         (parse_long_options): Make this function variadic, too.
88561         Call version_etc_va, not version_etc.
88562
88563 2003-10-06  Bruno Haible  <bruno@clisp.org>
88564
88565         * modules/version-etc-2: Remove file.
88566         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88567
88568 2003-10-06  Bruno Haible  <bruno@clisp.org>
88569
88570         * modules/fatal-signal: New file.
88571         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88572
88573 2003-10-06  Bruno Haible  <bruno@clisp.org>
88574
88575         * m4/fatal-signal.m4: New file.
88576         * m4/signalblocking.m4: New file, from GNU gettext.
88577
88578 2003-10-06  Bruno Haible  <bruno@clisp.org>
88579
88580         * lib/version-etc-2.h: Remove file.
88581         * lib/version-etc-2.c: Remove file.
88582
88583 2003-10-06  Bruno Haible  <bruno@clisp.org>
88584
88585         * lib/fatal-signal.h: New file, from GNU gettext.
88586         * lib/fatal-signal.c: New file, from GNU gettext.
88587
88588 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88589
88590         * README: Rework advice for preventing empty .o files.
88591         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88592         not <sys/types.h>.
88593
88594 2003-10-04  Karl Berry  <karl@gnu.org>
88595
88596         * lib/argp*: update from libc.
88597
88598 2003-10-04  Karl Berry  <karl@gnu.org>
88599
88600         * config/config.{guess,sub}: update from config.
88601
88602 2003-10-02  Bruno Haible  <bruno@clisp.org>
88603
88604         * modules/lchown (Include): Add lchown.h.
88605         * modules/time_r (Include): Use "..." syntax.
88606         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88607
88608 2003-10-01  Simon Josefsson  <jas@extundo.com>
88609
88610         * MODULES.html.sh (func_all_modules): Move gethostname from section
88611         'based on' to section 'lacking' POSIX:2001.
88612
88613 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88614
88615         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88616         to output mode on the same stream.
88617
88618 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88619
88620         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88621         Fix arg typo in previous patch.
88622
88623 2003-09-28  Jim Meyering  <jim@meyering.net>
88624
88625         * lib/error.c: Correct cpp indentation.
88626
88627 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88628
88629         * modules/free: New file.
88630
88631 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88632
88633         * m4/free.m4: New file.
88634
88635 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88636
88637         * lib/minmax.h (MIN, MAX)
88638         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88639         Omit the special code that used __typeof__, since we worry that
88640         it could be more trouble than it's worth.  See:
88641         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88642         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88643
88644         * lib/free.c: New file.
88645
88646 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88647
88648         Trivial fixes to Makefile.am parts of module listings.
88649         * modules/strstr: Append strstr.h to lib_SOURCES.
88650         * modules/strcase: Likewise, for strcase.h.
88651
88652 2003-09-27  Karl Berry  <karl@gnu.org>
88653
88654         * config/mkinstalldirs: update from automake.
88655
88656 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88657
88658         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88659         (error_tail): Do not loop, reallocating temporary buffer, since
88660         the output cannot contain more wide characters than the input
88661         contains bytes, the size must be big enough already.  This avoids
88662         one potential size overflow calculation.  Check for size overflow
88663         when calculating temporary buffer size.  Free temporary buffer
88664         when done, if it was allocated with malloc; this plugs a memory
88665         leak.  Remove casts from void * to pointers, that are no longer
88666         needed now that we're assuming C89 or better.
88667
88668         Merge error changes from glibc.
88669
88670         * lib/error.c, error.h: Update copyright notice header to match glibc.
88671         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88672         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88673         Disable cancellation while printing error.
88674         * lib/error.h: Prepend __ to parameter names.
88675
88676 2003-09-26  Jim Meyering  <jim@meyering.net>
88677
88678         * lib/error.c (error_tail): Move some declarations
88679         into inner scope where the local variables are used.
88680
88681 2003-09-26  Bruno Haible  <bruno@clisp.org>
88682
88683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88684         stpncpy().
88685         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88686
88687 2003-09-26  Bruno Haible  <bruno@clisp.org>
88688
88689         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88690         (stpncpy): Define as alias for gnu_stpncpy.
88691         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88692
88693 2003-09-25  Simon Josefsson  <jas@extundo.com>
88694
88695         * lib/xgetdomainname.h: New file.
88696         * lib/xgetdomainname.c: New file.
88697
88698 2003-09-25  Simon Josefsson  <jas@extundo.com>
88699             Bruno Haible  <bruno@clisp.org>
88700
88701         * modules/getdomainname: New file.
88702         * modules/xgetdomainname: New file.
88703         * MODULES.html.sh (func_all_modules): Add getdomainname,
88704         xgetdomainname.
88705
88706 2003-09-25  Simon Josefsson  <jas@extundo.com>
88707             Bruno Haible  <bruno@clisp.org>
88708
88709         * m4/getdomainname.m4: New file.
88710
88711 2003-09-25  Simon Josefsson  <jas@extundo.com>
88712             Bruno Haible  <bruno@clisp.org>
88713
88714         * lib/getdomainname.h: New file.
88715         * lib/getdomainname.c: New file.
88716
88717 2003-09-25  Karl Berry  <karl@gnu.org>
88718
88719         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88720
88721 2003-09-25  Karl Berry  <karl@gnu.org>
88722
88723         * config/install-sh: update from automake.
88724
88725 2003-09-25  Bruno Haible  <bruno@clisp.org>
88726
88727         * modules/version-etc-2: New file, from modules/version-etc with
88728         modifications.
88729         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88730
88731 2003-09-25  Bruno Haible  <bruno@clisp.org>
88732
88733         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88734         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88735
88736 2003-09-24  Simon Josefsson  <jas@extundo.com>
88737
88738         * modules/xgethostname: Add xgethostname.h.
88739
88740 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88741
88742         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88743         the buffer associated with the argument.  Bug reported by
88744         Simon Josefsson.
88745
88746 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88747
88748         * README: Document assumptions that 'int' is at least 32 bits
88749         wide, that integer arithmetic is 2's complement without overflow,
88750         that there are no holes in integer values, that adding sizes of
88751         two nonoverlapping objects can't overflow, and that all-bits-zero
88752         yields scalar zero.  Fix spelling and capitalization typos.
88753
88754 2003-09-19  Karl Berry  <karl@gnu.org>
88755
88756         * lib/argp.h: update from libc.
88757
88758 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88759
88760         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88761         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88762         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88763
88764 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88765
88766         * gnulib-tool: Use "test -h", not "test -L", for portability
88767         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88768         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88769         (sed_extract_prog): Issue s commands one-by-one, rather than
88770         using \| in one s command.
88771
88772 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88773
88774         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88775         input error, instead of returning NULL the next time we are called
88776         (and therefore losing track of errno).
88777
88778 2003-09-16  Bruno Haible  <bruno@clisp.org>
88779
88780         * gnulib-tool (func_create_testdir): Warn about duplicated
88781         dependencies.
88782
88783 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88784
88785         * modules/argmatch, modules/fatal, modules/obstack,
88786         modules/xalloc, modules/xgethostname: Sort dependencies by
88787         importance, not alphabetically.
88788
88789 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88790
88791         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88792         fails, so that the caller gets the proper errno.
88793
88794         * lib/readutmp.c (read_utmp): Likewise.
88795         Check for fstat error.  Close stream and free storage
88796         when failing.
88797
88798 2003-09-14  Karl Berry  <karl@gnu.org>
88799
88800         * config/srclist.txt (strdup.c): disable for c89 changes.
88801
88802 2003-09-14  Jim Meyering  <jim@meyering.net>
88803
88804         * lib/getloadavg.c: Correct cpp indentation.
88805         * lib/strdup.c: Likewise.
88806         * lib/vasnprintf.c: Likewise.
88807
88808 2003-09-14  Bruno Haible  <bruno@clisp.org>
88809
88810         * modules/fwriteerror: New file.
88811         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88812
88813 2003-09-14  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/fwriteerror.h: New file.
88816         * lib/fwriteerror.c: New file.
88817
88818 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88819
88820         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88821         modules/xgethostname, modules/xalloc: Depend on exit.
88822
88823 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88824
88825         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88826
88827         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88828         and AC_MINIX, too, so that their extensions are available.
88829
88830         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88831         This macro has been superseded by gl_BACKUPFILE.
88832
88833         More patches to assume C89 or better.
88834
88835         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88836
88837         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88838         unconditionally.
88839         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88840         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88841         Include <string.h>, <stdlib.h> unconditionally.
88842         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88843         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88844         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88845         headers or for string.h.
88846         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88847         or strtoul.
88848
88849         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88850         headers.
88851         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88852         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88853         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88854         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88855         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88856         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88857         memcpy, memset.
88858         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88859         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88860         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88861         strtol.
88862         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88863         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88864         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88865         strtoul.
88866
88867 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88868
88869         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88870         * lib/obstack.c [!defined _LIBC]: Likewise.
88871         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88872         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88873         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88874
88875         More changes to assume C89 or better.
88876
88877         * lib/error.c (error_tail): Assume vprintf.
88878
88879         * lib/argmatch.c (getenv): Remove decl.
88880         * lib/progreloc.c (get_full_program_name): Define via prototype.
88881         * lib/setenv.c (clearenv): Likewise.
88882         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88883         needed.
88884         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88885         (malloc, memcpy): Remove decls.
88886         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88887         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88888         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88889         (memcpy): Remove macro.
88890         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88891         (__P): Remove.  All uses removed.
88892         (PTR): Remove.  All uses changed to void *.
88893         (CHAR_BIT, NULL): Remove.
88894         (spaces, zeros, memset_space, memset_zero)
88895         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88896         Remove.
88897         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88898         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88899         Define with prototype.
88900         Remove now-unnecessary prototype decl.
88901         (extra_args_spec): Assume ANSI C.  All uses changed.
88902         (extra_args_spec_iso): Remove.
88903         (my_strftime, emacs_strftimeu): Define via prototype.
88904         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88905         unconditionally.
88906         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88907         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88908         (strtoul, strtol): Remove decls.
88909         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88910         LONG_MAX): Remove.
88911         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88912         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88913         (LOCALE_PARAM_PROTO): New macro.
88914         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88915         (INTERNAL (strtol), strtol): Define with a prototype.
88916         (PARAMS): Remove.  All uses removed.
88917         * lib/tempname.c: Include <string.h> unconditionally.
88918         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88919         * lib/xgethostname.c (main): Define with a prototype.
88920         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88921         Include <stdlib.h> unconditionally.
88922         (calloc, malloc, realloc, free): Remove decls.
88923         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88924         Include <stdlib.h> unconditionally.  Sort include file names.
88925         (strtod): Remove.
88926         (xstrtod): Define with a prototype.
88927         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88928         (strtol, strtoul): Remove decls.
88929
88930 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88931
88932         More patches to assume C89 or better.
88933         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88934         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88935         string.h, memchr, STDC_HEADERS.
88936
88937 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88938
88939         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88940         Include <stdlib.h>, <string.h> unconditionally.
88941         Remove now-unnecessary cast to char *.
88942         * lib/strnlen.c: Include <string.h> unconditionally.
88943         * lib/yesno.c (yesno): Define with a prototype.
88944
88945 2003-09-11  Bruno Haible  <bruno@clisp.org>
88946
88947         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88948
88949 2003-09-10  Jim Meyering  <jim@meyering.net>
88950
88951         * lib/error.c: Correct indentation of cpp directives.
88952
88953 2003-09-10  Bruno Haible  <bruno@clisp.org>
88954
88955         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88956         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88957         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88958         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88959         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88960         <stdlib.h> and <string.h> checks.
88961         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88962         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88963
88964 2003-09-10  Bruno Haible  <bruno@clisp.org>
88965
88966         * lib/strcspn.c: Include <string.h> unconditionally.
88967         * lib/strpbrk.c: Include <string.h> unconditionally.
88968         * lib/strstr.c: Include <string.h> unconditionally.
88969         * lib/unicodeio.c: Include <string.h> unconditionally.
88970         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88971         * lib/unsetenv.c: Likewise.
88972         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88973         * lib/yesno.c: Include <stdlib.h> unconditionally.
88974         (rpmatch): Add prototype.
88975
88976 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88977
88978         More patches to assume C89 or better.
88979         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88980         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88981         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88982         or for string.h.
88983         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88984         stdlib.h.
88985         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88986         C headers.
88987         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88988         string.h.
88989         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88990         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88991         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88992         or for string.h.
88993         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88994         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88995         C headers.
88996         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88997         memcpy.
88998         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88999         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89000         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89001         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89002         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89003         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89004         string.h, free.
89005         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89006         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89007         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89008         C headers, or for string.h.
89009         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89010         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89011         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89012         headers, memory.h, stdlib.h, string.h, strings.h.
89013         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89014         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89015         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89016         strchr.
89017         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89018         headers, memory.h, string.h.
89019         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89020         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89021         free.
89022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89023         headers.
89024         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89025         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89026         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89027         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89028         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89029
89030 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89031
89032         More K&R removal.
89033
89034         * lib/acosl.c (main): Use a prototype.
89035         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89036         tanl.c: Likewise.
89037
89038         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89039
89040         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89041         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89042         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89043         with a prototype.
89044         * lib/getopt.c (const): Remove macro.
89045         Include <string.h> unconditionally.
89046         (my_index): Remove; all uses changed to strchr.
89047         (strlen): Remove decl.
89048         (exchange): Remove forward decl; no longer needed.
89049         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89050         Define with prototype.
89051         * lib/getopt1.c (const): Remove macro.
89052         (getopt_long, getopt_long_only, main): Define with prototype.
89053
89054         * lib/getugroups.c: Include <string.h> unconditionally.
89055
89056         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89057         (getusershell, setusershell, endusershell, readname, main):
89058         Define with prototypes.
89059
89060         * lib/group-member.c: Include group-member.h first.
89061         Include <stdlib.h> unconditionally.
89062
89063         * lib/hard-locale.c: Include hard-locale.h first.
89064         Include <stdlib.h>, <string.h> unconditionally.
89065
89066         * lib/hash.c (free, malloc): Remove decls.
89067         Include <stdlib.h> unconditionally.
89068
89069         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89070         (getenv): Do not declare.
89071
89072         * lib/idcache.c: Include <string.h> unconditionally.
89073
89074         * lib/long-options.c: Include long-options.h first, to test interface.
89075         Include <stdlib.h> unconditionally.
89076
89077         * lib/makepath.c: Include makepath.h first, to test interface.
89078         Include <stdlib.h> and <string.h> unconditionally.
89079
89080         * lib/linebuffer.c: Include <stdlib.h>.
89081         (free): Remove decl.
89082
89083         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89084         stddef.h. rpl_malloc returns void *, not char *.
89085         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89086         prototype.
89087
89088         * lib/md5.h: Include <limits.h> unconditionally.
89089         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89090         (__P): Remove; all uses removed.
89091         * lib/md5.c: Include "md5.h" first.
89092         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89093         md5_buffer, md5_process_bytes, md5_process_block):
89094         Define with prototypes.
89095         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89096         * lib/sha.c: Include "sha.h" first.
89097         Include <stdlib.h>, <string.h> unconditionally.
89098
89099         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89100         * lib/memcmp.c (__ptr_t): Likewise.
89101         * lib/memrchr.c (__ptr_t): Likewise.
89102         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89103         Include <string.h> unconditionally.
89104         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89105         * lib/memchr.c: Include <stdlib.h> unconditionally.
89106         * lib/memchr.c (LONG_MAX): Remove.
89107         * lib/memrchr.c (LONG_MAX): Likewise.
89108         * lib/memchr.c (__memchr): Define via a prototype.
89109         * lib/memrchr.c (__memrchr): Likewise.
89110         * lib/memcmp.c (__P): Remove, and remove all uses.
89111         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89112         Remove forward decls; no longer needed.
89113         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89114         Use types required by C89 in prototype.
89115
89116         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89117         * lib/savedir.c: Likewise.
89118         * lib/mkdir.c (free): Remove decl.
89119         * lib/rmdir.c (rmdir): Define with a prototype.
89120         * lib/savedir.c: Include savedir.h first, to test interface.
89121
89122         * lib/mktime.c (STDC_HEADERS): Remove.
89123         Include <stdlib.h>, <string.h> unconditionally.
89124
89125         * lib/modechange.c: Include <stdlib.h> unconditionally.
89126         (malloc): Remove decl.
89127
89128         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89129         (free): Remove decl.
89130
89131         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89132         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89133         (This type really should be intptr_t, but that's a C99ism.)
89134         (_obstack_memcpy): Remove: all uses changed to memcpy.
89135         Include <string.h> unconditionally.
89136         (struct obstack): Assume __STDC__ for types of members
89137         chunkfun, freefun, extra_arg.
89138         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89139         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89140         obstack_begin, obstack_specify_allocation,
89141         obstack_specify_allocation_with_arg, obstack_chunkfun,
89142         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89143         Remove unprototyped decls and the macros that use them.
89144         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89145         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89146         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89147         (defined __STDC__ && __STDC__)]:
89148         Remove nonprototyped code.
89149         Include <stdlib.h> unconditionally.
89150         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89151         _obstack_allocated_p, _obstack_free, obstack_free,
89152         _obstack_memory_used, print_and_abort):
89153         Define using prototypes.
89154         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89155         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89156         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89157         obstack_next_free, obstack_object_size, obstack_room) [0]:
89158         Remove unused, unprototyped code.
89159
89160         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89161
89162         * lib/physmem.c (physmem_total, physmem_available, main): Define
89163         with prototypes.
89164
89165         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89166         (main): Define with a prototype.
89167
89168         * lib/posixver.c (getenv): Remove decl.
89169
89170         * lib/putenv.c (malloc): Returns void *, not char *.
89171         Include <string.h> unconditionally.
89172         (strchr, memcpy, NULL): Do not define.
89173
89174         * lib/readtokens.c: Include readtokens.h first, to test interface.
89175         Include <stdlib.h>, <string.h> unconditionally.
89176         (init_tokenbuffer): Define with a prototype.
89177
89178         * lib/regex.c (PARAMS): Remove.  All uses removed.
89179         All uses of _RE_ARGS removed, too.
89180         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89181         unconditionally.
89182         (bzero): Assume memset exists.
89183         (memcmp, memcpy, NULL): Remove.
89184         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89185         char, or assignments to local vars of type signed char.
89186         (init_syntax_once, PREFIX(extract_number_and_incr),
89187         PREFIX(print_partial_compiled_pattern),
89188         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89189         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89190         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89191         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89192         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89193         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89194         wcs_compile_range, byte_compile_range, truncate_wchar,
89195         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89196         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89197         count_mbs_length, wcs_re_match_2_internal,
89198         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89199         PREFIX(alt_match_null_string_p),
89200         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89201         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89202         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89203         now-unnecessary declaration, if any.
89204         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89205         regcomp, regexec):
89206         Remove now-unnecessary casts among pointer types.
89207         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89208
89209         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89210         (free): Remove decl.
89211
89212         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89213
89214         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89215         (free): Remove decl.
89216
89217         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89218         * lib/xgetcwd.c: Likewise.
89219
89220         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89221         (free): Remove decl.
89222
89223         * lib/strchrnul.c (strchrnul): Define with a prototype.
89224         Fix bug: c_in was not converted to char before searching.
89225
89226         The following changes are not K&R related:
89227
89228         * lib/group-member.h: Include <sys/types.h>, so that this file is
89229         self-contained.
89230         * lib/makepath.h: Likewise.
89231
89232         * lib/getusershell.c (readname, default_index, line_size, readname):
89233         Use size_t, not int, for sizes.
89234         (readname): If the size overflows, report an error instead of
89235         looping forever.
89236
89237 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89238
89239         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89240         libc.
89241
89242 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89243
89244         * README: New section: portability guidelines.
89245
89246 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89247
89248         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89249         C89 spec.
89250
89251 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89252
89253         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89254
89255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89256
89257         Assume C89 or better; remove K&R cruft.
89258         A few of these changes were first proposed by Derek Robert Price
89259         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89260
89261         * lib/addext.c: Include <string.h> unconditionally.
89262         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89263         Don't declare getenv or malloc.
89264
89265         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89266         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89267         (NULL): Remove.
89268         (find_stack_direction, alloca): Use prototypes.
89269
89270         * lib/atexit.c (atexit): Define using a prototype.
89271
89272         * lib/basename.c, dirname.c, stripslash.c:
89273         Include <string.h> unconditionally.
89274
89275         * lib/bcopy.c: Include <stddef.h>.
89276         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89277
89278         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89279
89280         * lib/error.h (error, error_at_line, error_print_progname)
89281         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89282         * lib/error.c: Include error.h first, to check interface.
89283         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89284         (VA_START): Remove; all uses changeed to va_start.
89285         (exit, strerror): Remove decls.
89286         (error_print_progname): Prototype uncondionally.
89287         Don't include <errno.h>; no longer needed.
89288         (private_strerror): Remove.
89289         (error_tail): Always define.
89290         (error, error_at_line): Assume C89 or better; always use prototypes.
89291         * lib/fatal.c: Include "fatal.h" first, to test interface.
89292         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89293         (VA_START): Remove; all uses changed to va_start.
89294         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89295         this case.
89296         (exit): Remove decl.
89297         (fatal): Prototype unconditionally.  Assume va_start works.
89298         Abort at end, to pacify gcc.
89299
89300         * lib/euidaccess.c (main): Define with a prototype.
89301
89302         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89303
89304         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89305
89306         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89307         prototypes.
89308         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89309         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89310         (getenv): Remove decl.
89311         (fnmatch): Define using a prototype.
89312         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89313         (FCT): Define using a prototype.
89314
89315         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89316
89317         * lib/gethostname.c: Include <stddef.h>.
89318         (gethostname): Define with prototype.  Length is size_t, not int.
89319
89320 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89321
89322         Assume C89 or better; remove K&R cruft.
89323         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89324         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89325         string.h, getenv, malloc.
89326         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89327         headers.
89328         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89329         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89330         do not check for strerror.
89331         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89332         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89333         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89334         do not check for doprnt or vprintf.
89335         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89336         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89337
89338 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89339
89340         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89341         getversion.c should have been removed then, but was accidentally
89342         preserved.
89343
89344         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89345         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89346
89347 2003-09-08  Karl Berry  <karl@gnu.org>
89348
89349         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89350                 config, forget about prep.
89351
89352         * config/depcomp, missing: update from automake.
89353
89354 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89355
89356         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89357         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89358
89359 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89360
89361         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89362         copy_tm_result.  Bug reported by Simon Josefsson in
89363         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89364
89365 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89366
89367         * m4/time_r.m4: New file.
89368         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89369         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89370         is. Check for timegm declaration.
89371         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89372         Do not check for gmtime_r.
89373         Replace mktime if __mktime_internal does not exist and if mktime
89374         hasn't been replaced already.
89375
89376 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/time_r.c, lib/time_r.h: New files.
89379
89380         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89381         __localtime_r.
89382         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89383         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89384
89385         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89386         __gmtime_r.
89387         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89388         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89389         Include <time_r.h>.
89390
89391         * lib/timegm.c: Switch to glibc implementation, with the following
89392         changes:
89393         [defined HAVE_CONFIG_H]: Include <config.h>.
89394         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89395         (__mktime_internal) [!defined _LIBC]: New decl.
89396         (__gmtime_r) [!defined _LIBC]: New macro and function.
89397         (timegm): Use a prototype, since gnulib assumes C89.
89398         Do not bother declaring tmp to be const, as it's not really usefu.
89399         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89400         (timegm): Declare only if HAVE_DECL_TIMEGM.
89401
89402 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89403
89404         * MODULES.html.sh (func_all_modules): Add time_r.
89405         * modules/time_r: New file.
89406         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89407         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89408
89409 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89410
89411         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89412         Bug reported by Lute Kamstra in
89413         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89414
89415         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89416         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89417         course with correspondingly smaller numbers for tomorrow and
89418         yesterday.  From Tadayoshi Funaba.  Originally installed into
89419         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89420         coreutils merge?).
89421
89422 2003-08-31  Simon Josefsson  <jas@extundo.com>
89423
89424         * modules/timegm: New file.
89425         * MODULES.html.sh (func_all_modules): Add timegm.
89426
89427 2003-08-31  Simon Josefsson  <jas@extundo.com>
89428
89429         * m4/timegm.m4: New file.
89430
89431 2003-08-31  Simon Josefsson  <jas@extundo.com>
89432
89433         * lib/timegm.h: New file.
89434         * lib/timegm.c: New file.  Based on
89435         wget-1.8.2/src/http.c:mktime_from_utc.
89436
89437 2003-08-31  Karl Berry  <karl@gnu.org>
89438
89439         * lib/argp.h: update from libc.
89440
89441 2003-08-28  Bruno Haible  <bruno@clisp.org>
89442
89443         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89444         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89445         followed by '#define fnmatch fnmatch_posix' gives an error.
89446
89447 2003-08-28  Bruno Haible  <bruno@clisp.org>
89448
89449         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89450         warning on QNX, which defines O_BINARY to 000000.
89451
89452 2003-08-27  Jim Meyering  <jim@meyering.net>
89453
89454         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89455         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89456         would fail after 32.  Reported by Danny Levinson.  Details here:
89457         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89458
89459 2003-08-24  Bruno Haible  <bruno@clisp.org>
89460
89461         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89462         MSVC7 <stdio.h> is included later.
89463
89464 2003-08-22  Simon Josefsson  <jas@extundo.com>
89465
89466         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89467
89468 2003-08-20  Karl Berry  <karl@gnu.org>
89469
89470         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89471
89472 2003-08-20  Bruno Haible  <bruno@clisp.org>
89473
89474         * modules/progname: New file.
89475         * MODULES.html.sh (func_all_modules): Add progname.
89476
89477 2003-08-20  Bruno Haible  <bruno@clisp.org>
89478
89479         * lib/progname.h: New file, from GNU gettext.
89480         * lib/progname.c: New file, from GNU gettext.
89481         * lib/progreloc.c: New file, from GNU gettext.
89482
89483 2003-08-19  Jim Meyering  <jim@meyering.net>
89484
89485         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89486         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89487
89488 2003-08-19  Bruno Haible  <bruno@clisp.org>
89489
89490         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89491         more.
89492
89493 2003-08-19  Bruno Haible  <bruno@clisp.org>
89494
89495         * lib/xstrdup.c: Assume <string.h> exists.
89496
89497 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89498
89499         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89500         in makefile rules.
89501
89502 2003-08-18  Jim Meyering  <jim@meyering.net>
89503
89504         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89505         * m4/lib-ld.m4: Likewise.
89506
89507 2003-08-18  Jim Meyering  <jim@meyering.net>
89508
89509         * lib/setenv.h: Indent nested cpp directive.
89510         * lib/vasnprintf.c: Remove trailing blanks.
89511
89512 2003-08-17  Simon Josefsson  <jas@extundo.com>
89513
89514         * modules/xstrndup: New file.
89515         * MODULES.html.sh (func_all_modules): Add xstrndup.
89516
89517 2003-08-17  Simon Josefsson  <jas@extundo.com>
89518
89519         * modules/argp: Fix autoconf macro name. Add more dependencies.
89520
89521 2003-08-17  Simon Josefsson  <jas@extundo.com>
89522
89523         * m4/xstrndup.m4: New file.
89524
89525 2003-08-17  Simon Josefsson  <jas@extundo.com>
89526
89527         * m4/argp.m4: New file.
89528
89529 2003-08-17  Simon Josefsson  <jas@extundo.com>
89530             Bruno Haible  <bruno@clisp.org>
89531
89532         * lib/xstrndup.h: New file.
89533         * lib/xstrndup.c: New file.
89534
89535 2003-08-17  Bruno Haible  <bruno@clisp.org>
89536
89537         * modules/strndup (Files, Include): Add lib/strndup.h.
89538
89539 2003-08-17  Bruno Haible  <bruno@clisp.org>
89540
89541         * modules/euidaccess (Files): Add lib/euidaccess.h.
89542
89543 2003-08-17  Bruno Haible  <bruno@clisp.org>
89544
89545         * lib/strndup.h: New file.
89546
89547 2003-08-17  Bruno Haible  <bruno@clisp.org>
89548
89549         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89550         like AC_GNU_SOURCE.
89551         * modules/extensions (configure.ac): Comment out the invocation of
89552         gl_USE_SYSTEM_EXTENSIONS.
89553
89554 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89555
89556         Merges from coreutils, etc.
89557         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89558         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89559         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89560         fixing a typo.
89561         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89562         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89563
89564 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89565
89566         Document merge from coreutils.
89567         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89568         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89569         * modules/utime: Add m4/utimes-null.m4.
89570
89571 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89572
89573         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89574         space, undoing this 2003-08-12 change:
89575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89576
89577 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89578
89579         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89580         strtoul.c from libc, undoing this 2003-08-12 change:
89581         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89582
89583 2003-08-16  Jim Meyering  <jim@meyering.net>
89584
89585         Merges from coreutils.
89586         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89587         prefix.  Adjust cache variables similarly.  Create 500 rather than
89588         just 300 files, to exercise bug on Darwin6.5, too.
89589         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89590         $missing_dir.
89591         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89592         AM_SYS_POSIX_TERMIOS.
89593         Reported by mkc@mathdogs.com.
89594         Also change use of $am_cv_sys_posix_termios
89595         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89596         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89597         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89598         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89599         in /proc/mounts until it finds one with matching device number.  This
89600         is unnecessary when the FILE argument *is* a mount point.  No stat call
89601         is necessary in that case.  So, disable the statvfs-testing code on
89602         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89603         as RedHat bug# 84846.
89604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89605         to 1MB, so as not to render systems with no stack size limit (e.g.,
89606         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89607         Include <unistd.h>.  On some systems,
89608         it is required for the definition of _SC_PAGESIZE.
89609
89610 2003-08-16  Jim Meyering  <jim@meyering.net>
89611
89612         Merge from coreutils.
89613         * lib/xstrtoimax.c: #else #if -> #elif.
89614         * lib/xstrtoumax.c: Likewise.
89615
89616 2003-08-16  Jim Meyering  <jim@meyering.net>
89617
89618         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89619         * m4/utimes.m4: Removed.
89620         * m4/utimes-null.m4: Renamed from utimes.m4.
89621
89622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89623         to 1MB, so as not to render systems with no stack size limit (e.g.,
89624         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89625         Include <unistd.h>.  On some systems,
89626         it is required for the definition of _SC_PAGESIZE.
89627
89628 2003-08-16  Jim Meyering  <jim@meyering.net>
89629         and Paul Eggert  <eggert@cs.ucla.edu>
89630
89631         Merges from coreutils, etc.
89632
89633         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89634         using the latest version from cvs.  This avoids problems with #line
89635         directives using a vendor (Sun) compiler.
89636         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89637         Don't set GETGROUPS_LIB here; now it's
89638         done via getgroups.m4's wrapper function.
89639         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89640         rather than just in sh-util/configure.in, so that the
89641         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89642         same.
89643         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89644         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89645         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89646         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89647         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89648         Remove code that is now done by the newly-required macros.
89649         Append $(EXEEXT) to DF_PROG.
89650         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89651         Do not invoke or require the following here,
89652         since prereq.m4 or some gnulib .m4 now does this for us:
89653         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89654         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89655         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89656         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89657         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89658         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89659         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89660         AC_FUNC_OBSTACK.
89661         Do not replace the following functions, as this is now the job
89662         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89663         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89664         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89665         atexit getpass, strdup, getpagesize.
89666         Replace 'raise'.
89667         Do not check for the following functions, as this is now the job
89668         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89669         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89670         setregid.
89671         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89672         Check for sys/sysctl.h.
89673         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89674         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89675         of checking for ssize_t ourselves.
89676
89677         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89678         Require every macro that gnulib/modules/* suggests for us.
89679         (jm_PREREQ_ADDEXT): New macro.
89680         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89681         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89682
89683         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89684         (gl_PHYSMEM): Use it.
89685         Also check for `table' function.
89686         Check for new headers and functions.
89687         Add check for sys/sysmp.h.
89688         With suggestions from Kaveh Ghazi.
89689         Ignore headers that are present but cannot be compiled.  This
89690         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89691         C 5.4.
89692
89693 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89694
89695         Document merge from coreutils.
89696         * modules/userspec: Depend on posixver.
89697         * modules/strftime: Depend on tzset.
89698
89699 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89700
89701         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89702         rather than tab, after '#' in shell-script copyright notices.
89703         Suggested by Bruno Haible.
89704
89705 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89706
89707         * config/srclist-update: Use three spaces, rather than tab, after '#'
89708         in shell-script copyright notices.  Suggested by Bruno Haible.
89709         Remove unnecessary parenthesization in regular expression.
89710
89711 2003-08-15  Jim Meyering  <jim@meyering.net>
89712
89713         Merge from coreutils.
89714         * lib/xgethostname.c: Include <stdlib.h>.
89715         (xghostname): Don't exit for anything other than memory-related
89716         failure; just return NULL.
89717         * lib/userspec.c: Include "posixver.h".
89718         (parse_user_spec): Accept `.' as a separator only
89719         in pre-POSIX-200112 mode.
89720         * lib/strtoimax.c: Use #elif rather than #else #if.
89721         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89722         Remove function, now that we can rely on a working tzset function.
89723         [!_LIBC]: Ensure that the required autoconf test has been run.
89724         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89725         Use underlying_strftime for %r.
89726         * lib/sha.c: Merge in some clean-up and optimization changes from
89727         glibc.
89728         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89729         Ensure that it is a multiple of 64.
89730         Rearrange loop exit tests so as to avoid performing an
89731         additional fread after encountering an error or EOF.
89732         * lib/realloc.c: Update copyright date.
89733
89734 2003-08-15  Jim Meyering  <jim@meyering.net>
89735         and Paul Eggert  <eggert@twinsun.com>
89736
89737         Merge from coreutils.
89738         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89739         member but strut utmpx does not.  Needed for AIX 4.3.3.
89740         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89741
89742 2003-08-15  Jim Meyering  <jim@meyering.net>
89743         and Paul Eggert  <eggert@cs.ucla.edu>
89744
89745         Merges from coreutils, etc.
89746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89747         Require gl_FUNC_TZSET_CLOBBER.
89748         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89749         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89750         members.
89751
89752 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89753
89754         Help the merge from coreutils.
89755         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89756         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89757         * m4/tzset.m4: Use it too.
89758
89759 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89760
89761         * modules/tzset: New file.
89762
89763 2003-08-14  Jim Meyering  <jim@meyering.net>
89764
89765         Merges from coreutils.
89766         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89767         variable names, rather than @FNMATCH_H@.
89768         * modules/alloca: Likewise for $(ALLOCA_H).
89769
89770         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89771         the three copies of the literal target, `fnmatch.h'.
89772         * modules/alloca (alloca.h): Likewise.
89773
89774 2003-08-14  Jim Meyering  <jim@meyering.net>
89775
89776         Merge from coreutils.
89777         * m4/tzset.m4: New file.
89778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89779         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89780         otherwise, AIX 5.1 systems would end up using the latter.
89781         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89782         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89783         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89784         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89785
89786 2003-08-14  Jim Meyering  <jim@meyering.net>
89787
89788         Merge from coreutils.
89789         * lib/obstack.h: Whitespace changes.
89790         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89791         and xcalloc return values.
89792         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89793         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89794         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89795         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89796         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89797         error from mntctl.
89798         Use mntctl's return value to drive the entry-processing loop, since
89799         we can't rely on the value of the vmt_length member in the last
89800         entry.  On some systems doing so could result in exhausting
89801         virtual memory.  Based in part on a patch from Mike Jetzer.
89802
89803 2003-08-14  Jim Meyering  <jim@meyering.net>
89804         and Paul Eggert  <eggert@twinsun.com>
89805
89806         Merges from coreutils, plus other fixes.
89807         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89808         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89809         for credits and details.  Thanks to Kaveh Ghazi for helping
89810         to keep these files in sync.
89811         (ARRAY_SIZE): Define it.
89812         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89813         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89814         (memcasecmp): Don't assume size_t fits in unsigned int.
89815         Remove casts and duplicate code.
89816         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89817         (memcpy): Remove definition.
89818         Merge in some clean-up and optimization changes from glibc.
89819         [BLOCKSIZE]: Move definition to top of file.
89820         Ensure that it is a multiple of 64.
89821         Rearrange loop exit tests so as to avoid performing an
89822         additional fread after encountering an error or EOF.
89823         * lib/md5.h (md5_uintptr): Define.
89824         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89825         return to the initial working directory.  Preserve errno
89826         for caller.
89827         * lib/idcache.c: Include "xalloc.h".
89828         (xmalloc, xrealloc): Remove decls.
89829         (getuser): Remove casts no longer required in C89.
89830         * lib/human.c: Include stdio.h, for sprintf.
89831         * lib/group-member.c: Include "xalloc.h".
89832         (xmalloc, xrealloc): Remove decls.
89833         (get_group_info): Remove casts no longer required in C89.
89834         * lib/getusershell.c (readname): Remove casts no longer required in
89835         C89.
89836         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89837         * lib/getline.c: Whitespace fix, from coreutils.
89838
89839 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89840
89841         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89842         Check for isascii.
89843
89844         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89845         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89846         Undo previous (whitespace-only) change.
89847
89848 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89849
89850         * lib/exclude.c: Include <ctype.h>
89851         (IN_CTYPE_DOMAIN): New macro.
89852         (is_space): New fn.
89853         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89854         and empty lines.
89855
89856         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89857         Undo previous (whitespace-only) change.
89858
89859 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89860
89861         * config/srclist-update: Change update back to the old behavior,
89862         leaving whitespace alone.  Use one 'sed' command rather than a
89863         pipeline.
89864         (fixlicense): Now a variable, not a function.
89865         (remove_trailing_blanks): Remove.
89866         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89867         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89868         Undo previous (whitespace-only) change.
89869
89870 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89871
89872         Merge from coreutils.
89873         * modules/euidaccess: Add lib_SOURCES, include for new
89874         file euidaccess.h
89875
89876 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89877
89878         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89879         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89880         Normalize leading white space and remove trailing white space.
89881
89882         Merge from coreutils
89883         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89884
89885         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89886         0.12.1.  These files are now being upgraded automatically by
89887         ../config/srclist-update.
89888
89889 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89890
89891         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89892         Normalize leading white space and remove trailing white space.
89893         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89894         notice, as per ../config/srclist-update.
89895
89896         Merge from coreutils.
89897         * lib/euidaccess.h: New file.
89898         * lib/euidaccess.c: Include it.
89899         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89900         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89901         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89902
89903 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89904
89905         * config/srclist-update: Add copyright notice.
89906         (remove_id_lines, remove_trailing_blanks): New constants.
89907         (fixfile): Use them to normalize spacing a bit in copied files.
89908         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89909         Normalize leading white space and remove trailing white space.
89910
89911         * config/texinfo.tex: Sync with texinfo.
89912
89913         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89914         strtoul.c from libc, to merge coreutils whitespace changes.
89915
89916         * config/srclist.txt: Get the following m4 files from gettext:
89917         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89918         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89919         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89920         wint_t.m4.
89921
89922 2003-08-12  Karl Berry  <karl@gnu.org>
89923
89924         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89925         been made.
89926
89927 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89928
89929         * modules/gnu-source, m4/gnu-source.m4:
89930         Remove; we're assuming Autoconf 2.54 or later now.
89931         Suggested by Bruno Haible.
89932         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89933
89934 2003-08-11  Bruno Haible  <bruno@clisp.org>
89935
89936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89937
89938 2003-08-11  Bruno Haible  <bruno@clisp.org>
89939
89940         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89941         (vasnprintf): Use it instead of wcslen.
89942
89943 2003-08-11  Bruno Haible  <bruno@clisp.org>
89944
89945         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89946         value to ensure that _Bool promotes to int. Use #define for _Bool when
89947         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89948
89949 2003-08-10  Karl Berry  <karl@gnu.org>
89950
89951         * lib/regex.h: update from libc (whitespace fix).
89952
89953 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89954
89955         Merge some files from coreutils.  These changes were
89956         originally made by Jim Meyering.
89957         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89958         many older Unixes require this.
89959         * lib/alloca.c (alloca): Remove cast to argument of free;
89960         no longer needed in C89.
89961         * lib/alloca_.h, regex.h: Fix white space to match
89962         what GNU indent does.
89963
89964 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89965
89966         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89967         apparently Emacs's Unicode mode got confused before my 2003-08-05
89968         checkin.
89969
89970 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89971
89972         * m4/extensions.m4: New file.
89973         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89974         Require gl_USE_SYSTEM_EXTENSIONS.
89975         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89976         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89977
89978 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89979
89980         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89981         * modules/extensions, modules/gnu-source: New files.
89982         * modules/timespec, modules/unlocked-io: Depend on extensions.
89983
89984 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89985
89986         * modules/restrict: New file.
89987         * MODULES.html.sh (func_all_modules): Add restrict.
89988         * modules/regex: Depend on restrict.
89989
89990 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89991
89992         * m4/restrict.m4: New file.
89993         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89994
89995 2003-08-07  Bruno Haible  <bruno@clisp.org>
89996
89997         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89998         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89999
90000 2003-08-07  Bruno Haible  <bruno@clisp.org>
90001
90002         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90003         makes the module 'getndelim2' compatible with the module 'getline'.
90004
90005 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90006
90007         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90008         byte with "\201" to avoid glitches when editing that source file
90009         with multi-gnome-terminal.
90010
90011 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90012
90013         * lib/bumpalloc.h: Remove.
90014
90015 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90016
90017         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90018         * modules/bumpalloc: Remove.
90019
90020 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90021
90022         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90023         GNU coding style.
90024
90025         Merge from coreutils.
90026         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90027         1. From glibc.
90028         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90029         from Karl Berry, implemented by Jim Meyering.
90030         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90031         from Dmitry V. Levin.
90032         Remove anachronistic cast of xrealloc.
90033         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90034         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90035         type. Otherwise, it wouldn't compile with at least /bin/cc on
90036         ymp-cray-unicos9.0.2.X.
90037         Combine two mostly-identical uses of alloca into one.
90038         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90039
90040 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90041
90042         [From Emacs.]
90043
90044         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90045         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90046         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90047         obsolete NLIST_NAME_UNION.
90048         [__GNU__]: Undef BSD and FSCALE.
90049         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90050
90051 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90052
90053         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90054         an enum type, so that it's guaranteed to promote to int.  See:
90055         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90056
90057 2003-08-03  Karl Berry  <karl@gnu.org>
90058
90059         * config/depcomp: update from automake.
90060
90061 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90062
90063         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90064         (strerror): Don't assume that a printable int fits in 14 bytes.
90065
90066 2003-07-31  Bruno Haible  <bruno@clisp.org>
90067
90068         * modules/getpass-gnu: New file.
90069         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90070
90071 2003-07-31  Bruno Haible  <bruno@clisp.org>
90072
90073         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90074
90075 2003-07-24  Karl Berry  <karl@gnu.org>
90076
90077         * config/missing: update from automake.
90078
90079 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90080             Bruno Haible  <bruno@clisp.org>
90081
90082         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90083         * lib/getline.c (getline, getdelim): Likewise.
90084         Remove _GNU_SOURCE define; now it's defined in config.h through
90085         m4/getline.m4.
90086
90087 2003-07-23  Karl Berry  <karl@gnu.org>
90088
90089         * config/config.sub: update from prep.
90090
90091 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90092
90093         * modules/xalloc (Depends-on): Add exitfail.
90094         * modules/xmemcoll: Likewise.
90095
90096 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90097
90098         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90099         over-parenthesization in macros.
90100
90101         Sync with coreutils.
90102
90103         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90104         required by C99.
90105
90106         Use `exit_failure' for xalloc and xmemcoll instead of their own
90107         private exit-failure variables.
90108         * lib/xalloc.h (xalloc_exit_failure): Remove.
90109         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90110         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90111         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90112         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90113         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90114
90115 2003-07-20  Jim Meyering  <jim@meyering.net>
90116
90117         * modules/closeout (Depends-on): Add exitfail.
90118         Suggestion from Bruno Haible.
90119
90120 2003-07-19  Karl Berry  <karl@gnu.org>
90121
90122         * config/config.sub: update from prep.
90123
90124 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90125
90126         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90127         Remove.
90128         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90129         to test that it can stand by itself.  Include "exitfail.h".
90130         Clients should set exit_failure instead.
90131         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90132
90133 2003-07-18  Bruno Haible  <bruno@clisp.org>
90134
90135         * modules/getndelim2: New file.
90136         * modules/getline: Share files with module getndelim2.
90137         * modules/getnline: Depend on getndelim2 instead of sharing files with
90138         it. Add getnline.c to lib_SOURCES.
90139         * MODULES.html.sh (func_all_modules): Add getndelim2.
90140
90141 2003-07-18  Bruno Haible  <bruno@clisp.org>
90142
90143         * m4/getndelim2.m4: New file.
90144         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90145         invoke gl_PREREQ_GETNDELIM2.
90146         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90147         gl_PREREQ_GETNDELIM2.
90148         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90149         gl_GETNDELIM2.
90150
90151 2003-07-18  Bruno Haible  <bruno@clisp.org>
90152
90153         * lib/getndelim2.h: New file.
90154         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90155         getndelim2.h.
90156         (getndelim2): Make non-static. Change return type to ssize_t.
90157         * lib/getline.h: Change argument names.
90158         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90159         * lib/getnline.c: Include getndelim2.h.
90160
90161 2003-07-18  Andreas Schwab  <schwab@suse.de>
90162
90163         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90164
90165 2003-07-17  Karl Berry  <karl@gnu.org>
90166
90167         * config/config.sub: update from prep.
90168
90169 2003-07-17  Bruno Haible  <bruno@clisp.org>
90170
90171         * modules/getnline: New file.
90172         * modules/getline: Add lib/getndelim2.c to source file list.
90173         * MODULES.html.sh (func_all_modules): Add getnline.
90174
90175 2003-07-17  Bruno Haible  <bruno@clisp.org>
90176
90177         * m4/getnline.m4: New file.
90178
90179 2003-07-17  Bruno Haible  <bruno@clisp.org>
90180
90181         * m4/Makefile.am.in: Remove file.
90182         * m4/Makefile.am: Remove file.
90183         * m4/Makefile.in: Remove file.
90184
90185 2003-07-17  Bruno Haible  <bruno@clisp.org>
90186
90187         * lib/getnline.h: New file.
90188         * lib/getnline.c: New file.
90189         * lib/getndelim2.c: New file, extracted from getline.c.
90190         (getndelim2): Renamed from getdelim2, with added nmax argument.
90191         * lib/getline.c: Include getndelim2.c.
90192         (getdelim2): Moved out to getndelim2.c.
90193         (getline, getdelim): Update.
90194
90195 2003-07-17  Bruno Haible  <bruno@clisp.org>
90196
90197         * lib/Makefile.am: Remove file.
90198         * lib/Makefile.in: Remove file.
90199
90200 2003-07-17  Bruno Haible  <bruno@clisp.org>
90201
90202         * configure.in: Remove file.
90203         * Makefile.in: Remove file.
90204
90205 2003-07-17  Bruno Haible  <bruno@clisp.org>
90206
90207         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90208
90209 2003-07-16  Karl Berry  <karl@gnu.org>
90210
90211         * config/srclist-update: was running fixlicense twice, which caused
90212                 texinfo.tex to be nullified for some reason.  Simplify,
90213                 $gplsrc is no longer needed as far as I can see?
90214
90215 2003-07-16  Jim Meyering  <jim@meyering.net>
90216
90217         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90218
90219 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90220
90221         * config/srclist.txt: Get the following files from gettext-runtime/intl
90222         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90223         ref-del.sin.  From Bruno Haible.
90224         * config/srclist-update (fixfile): Change grep pattern again, since the
90225         previous fix didn't work (there was another trailing $).  Use
90226         '[$]' to escape the $s.
90227
90228 2003-07-15  Karl Berry  <karl@gnu.org>
90229
90230         * lib/vasnprintf.c: update from gettext.
90231
90232 2003-07-15  Karl Berry  <karl@gnu.org>
90233
90234         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90235         gets expanded when surrounded by '$'.
90236
90237 2003-07-15  Jim Meyering  <jim@meyering.net>
90238
90239         * modules/save-cwd: Don't depend on error.  From Derek Price.
90240
90241 2003-07-15  Jim Meyering  <jim@meyering.net>
90242
90243         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90244
90245 2003-07-14  Simon Josefsson  <jas@extundo.com>
90246
90247         * modules/mempcpy: New file.
90248         * MODULES.html.sh (func_all_modules): Add mempcpy.
90249
90250 2003-07-14  Simon Josefsson  <jas@extundo.com>
90251
90252         * m4/mempcpy.m4: New file.
90253
90254 2003-07-14  Simon Josefsson  <jas@extundo.com>
90255
90256         * lib/mempcpy.h: New file.
90257         * lib/mempcpy.c: New file.
90258
90259 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90260
90261         * modules/getdate, modules/posixtm: Depend on mktime.
90262
90263 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90264
90265         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90266         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90267         unicodeio.c, unicodeio.h, unlocked-io.h:
90268         Switch from LGPL to GPL.
90269
90270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90271
90272         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90273         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90274         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90275         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90276         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90277         updated automatically by ../config/srclist-update.  This changes
90278         their license from LPGL to GPL.
90279
90280 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90281
90282         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90283         assumed to refer to the root of the most recent stable gettext version.
90284         * config/srclistvars.sh: Add defaults for eggert.
90285         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90286         Match "This program" as well as "The program".  This is needed
90287         for gettext.
90288
90289 2003-07-14  Jim Meyering  <jim@meyering.net>
90290
90291         Don't emit diagnostics.  Let callers do that.
90292         * lib/save-cwd.c: Don't include "error.h".
90293         (save_cwd): Don't call error.  Ensure that errno is valid
90294         when returning nonzero.
90295
90296         * lib/save-cwd.h (restore_cwd): Update prototype.
90297         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90298         Simplify.  Don't call error upon failure.  Let callers do that.
90299         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90300         when auditing is enabled.  But don't bother updating the #if.
90301
90302 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90303
90304         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90305         it breaks C++ compilation.
90306         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90307
90308 2003-07-10  Simon Josefsson  <jas@extundo.com>
90309
90310         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90311
90312 2003-07-10  Jim Meyering  <jim@meyering.net>
90313
90314         * m4/clock_time.m4: Remove trailing blank.
90315         * m4/intmax_t.m4: Likewise.
90316
90317 2003-07-10  Jim Meyering  <jim@meyering.net>
90318
90319         * lib/vasnprintf.c: Remove trailing blanks.
90320         Make cpp indentation consistent.
90321
90322 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90323
90324         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90325         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90326         Switch from LGPL to GPL.
90327
90328 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90329
90330         * config/srclist.txt: Sort sublists.  Add
90331         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90332         that differ from gnulib for one reason or another; we'd like this list
90333         to be smaller but for now let's document what we have.
90334
90335 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90336
90337         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90338         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90339         and sweeter "eval x=$x".
90340         * config/srclist.txt: Get lib/argp* from glibc.
90341
90342 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90343
90344         * lib/mktime.c: Fix some boundary cases and remove need for floating
90345         point.
90346
90347         Issue a compile-time diagnostic if time_t is floating point, or if
90348         two's complement arithmetic is not in effect, or if arithmetic
90349         right shift does not propagate the sign.  These assumptions were
90350         all in the original code but they weren't checked.
90351
90352         (TIME_T_MIDPOINT, verify): New macros.
90353         (__isleap): Remove; it has integer overflow problems.
90354         (leapyear): New function, without those problems.
90355         (ydhms_tm_diff): Remove; splitting into two parts.
90356         (ydhms_diff): New function, containing the arithmetic part of
90357         the old ydhms_tm_diff function.  Issue a compile-time
90358         diagnostic if we are not using C99 integer division.
90359         Avoid casts when possible.
90360         (guess_time_tm): New function, containing the checking part of
90361         the old ydhms_tm_diff function.  Return the new value, rather than
90362         the difference between it and the old.  Accept a new argument T
90363         so that *T specifies the old value.  Check for overflow in the result.
90364
90365         (__mktime_internal): Use a time_t offset, not a long int offset.
90366         This undoes the 2003-06-04 change, which is no longer needed now
90367         that we have better overflow checking.
90368         (localtime_offset): Likewise.
90369
90370         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90371         and long are 64-bit but int is only 32-bit.
90372         (ydhms_diff): Use long int to store year1 and yday1.
90373         Issue a compile-time diagnostic if long int is not wide enough.
90374
90375         (__mktime_internal): Use long int to store adjusted year and yday.
90376         Use plain C rather than preprocessor commands, if that doesn't
90377         affect efficiency.
90378         Check for overflow (and try to repair) after each probe
90379         rather than checking only at the very end.  This avoids some bugs
90380         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90381         does not equal GMT offset at maximum time).
90382         Use integer to check for overflow rather than floating point; this
90383         is more portable to non-IEEE hosts, and is a tad faster.
90384         When we detect that we are oscillating between two values,
90385         don't check whether tm_isdst has the requested value, since
90386         we already know the answer.  When tm_isdst has the wrong value,
90387         use a different heuristic to find the right one, based on the
90388         extreme values actually observed in practice in tz2003a,
90389         rather than the (overly optimistic) "previous 3 calendar quarters".
90390
90391         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90392         "T const" to accommodate glibc style.
90393         (check_result): Use less-confusing report format.  "long" -> "long int.
90394         (main): Likewise.
90395         Don't loop if the iteration overflows time_t.
90396         Allow a negative step in the iteration.
90397
90398 2003-07-06  Karl Berry  <karl@gnu.org>
90399
90400         * config/depcomp: update from automake.
90401         * config/config.sub: update from prep.
90402
90403 2003-07-03  Karl Berry  <karl@gnu.org>
90404
90405         * config/config.guess: update from prep.
90406
90407 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90408
90409         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90410         xreadlink.c now includes it unconditionally.
90411
90412 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90413
90414         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90415         having it depend on HAVE_SYS_TYPES_H.
90416
90417 2003-07-01  Bruno Haible  <bruno@clisp.org>
90418
90419         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90420         <sys/types.h> should be sufficient.
90421         Reported by Paul Eggert.
90422
90423 2003-06-26  Karl Berry  <karl@gnu.org>
90424
90425         * config/depcomp: update from automake.
90426
90427 2003-06-26  Bruno Haible  <bruno@clisp.org>
90428
90429         * modules/human: Depend on module stdbool.
90430
90431 2003-06-25  Bruno Haible  <bruno@clisp.org>
90432
90433         * modules/readlink: New file.
90434         * modules/xreadlink: Depend on it.
90435         * MODULES.html.sh (func_all_modules): Add readlink.
90436
90437 2003-06-25  Bruno Haible  <bruno@clisp.org>
90438
90439         * m4/readlink.m4: New file.
90440
90441 2003-06-25  Bruno Haible  <bruno@clisp.org>
90442
90443         * lib/readlink.c: New file.
90444
90445 2003-06-22  Karl Berry  <karl@gnu.org>
90446
90447         * config/srclist.txt: update mkinstalldirs from automake.
90448         * config/mkinstalldirs: update.
90449
90450 2003-06-22  Bruno Haible  <bruno@clisp.org>
90451
90452         Portability to mingw32.
90453         * m4/ssize_t.m4: New file, from GNU gettext.
90454         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90455         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90456
90457 2003-06-22  Bruno Haible  <bruno@clisp.org>
90458
90459         * modules/safe-read: Add m4/ssize_t.m4.
90460         * modules/xreadlink: Add m4/ssize_t.m4.
90461
90462 2003-06-20  Bruno Haible  <bruno@clisp.org>
90463
90464         Assume C89, so PARAMS isn't needed.
90465         * lib/unicodeio.h (PARAMS): Remove.
90466         * lib/unicodeio.c: Don't use PARAMS.
90467
90468 2003-06-18  Karl Berry  <karl@gnu.org>
90469
90470         * config/config.{guess,sub}: update from prep.
90471
90472 2003-06-18  Jim Meyering  <jim@meyering.net>
90473
90474         Merge changes from coreutils.
90475         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90476         Remove explicit declarations of xmalloc and realloc.
90477         Include xalloc.h.
90478         (read_utmp): Remove anachronistic cast of xmalloc.
90479
90480 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90481
90482         Assume C89, so PARAMS isn't needed.
90483         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90484         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90485         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90486         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90487         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90488         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90489         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90490         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90491         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90492         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90493         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90494         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90495         no longer needed. Anyway, config.h should always be included before any
90496         other file.
90497
90498 2003-06-11  Simon Josefsson  <jas@extundo.com>
90499
90500         * modules/sysexits: New file.
90501         * MODULES.html.sh (func_all_modules): Add sysexits.
90502
90503 2003-06-11  Simon Josefsson  <jas@extundo.com>
90504
90505         * lib/sysexit_.h: New file.
90506
90507 2003-06-11  Derek Price  <derek@ximbiot.com>
90508
90509         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90510         necessary.
90511
90512 2003-06-11  Bruno Haible  <bruno@clisp.org>
90513
90514         * m4/sysexits.m4: New file.
90515
90516 2003-06-10  Simon Josefsson  <jas@extundo.com>
90517
90518         * lib/argp.h: New file, from glibc.
90519         * lib/argp-ba.c: New file, from glibc.
90520         * lib/argp-eexst.c: New file, from glibc.
90521         * lib/argp-fmtstream.c: New file, from glibc.
90522         * lib/argp-fmtstream.h: New file, from glibc.
90523         * lib/argp-fs-xinl.c: New file, from glibc.
90524         * lib/argp-help.c: New file, from glibc.
90525         * lib/argp-namefrob.h: New file, from glibc.
90526         * lib/argp-parse.c: New file, from glibc.
90527         * lib/argp-pv.c: New file, from glibc.
90528         * lib/argp-pvh.c: New file, from glibc.
90529         * lib/argp-xinl.c: New file, from glibc.
90530
90531 2003-06-10  Simon Josefsson  <jas@extundo.com>
90532
90533         * modules/strchrnul: New file.
90534
90535 2003-06-10  Simon Josefsson  <jas@extundo.com>
90536
90537         * modules/argp: New file.
90538
90539 2003-06-10  Simon Josefsson  <jas@extundo.com>
90540
90541         * m4/strchrnul.m4: New file.
90542
90543 2003-06-10  Simon Josefsson  <jas@extundo.com>
90544
90545         * lib/strchrnul.h: New file.
90546         * lib/strchrnul.c: New file.
90547
90548 2003-06-10  Bruno Haible  <bruno@clisp.org>
90549
90550         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90551
90552 2003-06-07  Karl Berry  <karl@gnu.org>
90553
90554         * config/config.{guess,sub}: update from prep.
90555
90556 2003-06-07  Jim Meyering  <jim@meyering.net>
90557
90558         * modules/strtod: Use $(...) notation, not @...@ for
90559         AC_REPLACE'd variables.
90560         * modules/localcharset: Likewise.
90561
90562 2003-06-07  Jim Meyering  <jim@meyering.net>
90563
90564         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90565         in place of my name in the copyright comment.
90566         Remove definition and uses of __P.
90567
90568         From coreutils.
90569         * lib/stat.c: Don't declare xmalloc explicitly.
90570         Instead, include "xalloc.h".
90571         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90572         xrealloc, and xcalloc return values.
90573         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90574         Improve comment.
90575         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90576
90577 2003-06-07  Bruno Haible  <bruno@clisp.org>
90578
90579         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90580         avoid AC_CONFIG_LINKS.
90581         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90582         fnmatch.h, to avoid AC_CONFIG_LINKS.
90583         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90584
90585 2003-06-07  Bruno Haible  <bruno@clisp.org>
90586
90587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90588         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90589         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90590         directory.
90591         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90592         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90593         directory.
90594
90595 2003-06-06  Jim Meyering  <jim@meyering.net>
90596
90597         Merge from coreutils.
90598         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90599         Consolidate declarations and initializations of *_base* locals.
90600
90601         Merge from coreutils.
90602         This avoids a core dump on systems without GNU putenv,
90603         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90604         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90605         (unsetenv): New static function, from GNU libc.
90606         (rpl_putenv): Use it.
90607
90608         * lib/modechange.c: Remove trailing blanks.
90609
90610         Merge from coreutils.
90611         * lib/fsusage.c: Remove declaration of statfs.
90612         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90613
90614         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90615
90616 2003-06-06  Jim Meyering  <jim@meyering.net>
90617
90618         * lib/stdbool_.h: Renamed from stdbool.h.in.
90619
90620 2003-06-06  Jim Meyering  <jim@meyering.net>
90621             Bruno Haible  <bruno@clisp.org>
90622
90623         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90624         Adjust Makefile.am snippet not to redirect directly to target.
90625         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90626
90627 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90628
90629         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90630         mismatch, look in future quarters as well as past.  This fixes a
90631         bug when processing fall-backwards gaps immediately after a long
90632         period of daylight-saving time.
90633
90634         * lib/mktime.c: Assume freestanding C89 or better.
90635         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90636         (__P): Remove; not used.
90637         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90638         (mktime, not_equal_tm, print_tm, check_result,
90639         main): Use prototypes.  Use const * where appropriate.
90640         (main): Fix typo in testing code that uncovered by above changes.
90641         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90642
90643 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90644
90645         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90646         locale.h, localeconv.  This merges changes from coreutils.
90647
90648         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90649         It can be removed after the next Autoconf is released.
90650         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90651         needed.
90652
90653 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90654
90655         * lib/mktime.c: Fix Debian bug 177940
90656         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90657         (localtime_offset): Now long int, not time_t, because we want it
90658         to be guaranteed to be signed.  All uses changed.
90659         (__mktime_internal): If overflow would occur when adding offset,
90660         don't add it.
90661
90662         Merge 'human' changes from coreutils.  Rewrite to support
90663         locale-specific notations like thousands separators.
90664         * lib/human.c: Simplify authorship notice.
90665         Include human.h immediately after config.h.
90666         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90667         <limits.h>: Do not include, since human.h does.
90668         (SIZE_MAX, UINTMAX_MAX): New macros.
90669         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90670         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90671         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90672         (power_letter): Renamed from suffixes.
90673         (generate_suffix_backwards): Remove.
90674         (adjust_value): Now takes int style (because of human.h changes)
90675         and long double value (for greater precision on some platforms).
90676         (group_number): New function.
90677         (human_readable): Use it.  Use integer options, not enum.
90678         Put the options before the sizes in the arg list.
90679         Support all the new options.
90680         The old human_readable function has been removed;
90681         use inttostr.h instead.
90682         (human_readable, default_block_size, humblock):
90683         Use uintmax_t, not int, for block sizes.
90684         (human_readable_inexact, block_size_types): Remove.
90685         (block_size_opts): New constant.
90686         (human_options): Renamed from human_block_size, with new signature
90687         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90688         * lib/human.h: Add copyright and authorship notice.
90689         Include <limits.h> and <stdbool.h> unconditionally.
90690         (PARAMS): Remove.  All uses removed.
90691         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90692         (enum human_inexact_style): Remove tag; now a nameless enum.
90693         (human_floor, human_ceiling, human_round_to_even): Now have
90694         values 2, 0, 1 rather than -1, 1, 0.
90695         (human_group_digits, human_suppress_point_zero, human_autoscale,
90696         human_base_1024, human_SI, human_B): New constants.
90697         (human_readable_inexact, human_block_size): Remove.
90698         (human_readable): Size args are now uintmax_t, not int.
90699         (human_options): New decl.
90700
90701         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90702         unnecessary now that we assume C89 or better.  This change
90703         imported from coreutils.
90704
90705         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90706         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90707         in the 2003-05-30 sync from glibc.
90708
90709         .h files should stand alone, but we shouldn't include <sys/types.h>
90710         if we can get away with just <stddef.h>.
90711
90712         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90713         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90714         rather than <sys/types.h>, as we merely need size_t.
90715         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90716         to get size_t.
90717         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90718         Include <stdio.h>, to get FILE.
90719         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90720         memcasecmp.h has included <stddef.h> and all we need is size_t.
90721         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90722         our interface, instead of including <sys/types.h>
90723
90724 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90725
90726         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90727         now, as glibc mktime is buggy on non-glibc systems.
90728
90729 2003-06-03  Karl Berry  <karl@gnu.org>
90730
90731         * config/config.sub: update from prep.
90732
90733 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90734
90735         [from coreutils]
90736         Fix some minor time-related bugs with POSIX time arguments.
90737         Some valid time stamps were being rejected (notably -1, and
90738         time stamps before 1900 on 64-bit hosts).  And some invalid
90739         time stamps were being accepted, e.g. September 31.
90740
90741         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90742         that we can return (time_t) -1 successfully.
90743         * lib/posixtm.c: Likewise.
90744         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90745         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90746         (t): Remove static var.
90747         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90748         of static var.  All uses changed.
90749         (year): Do not reject years before 1900; they can occur with
90750         64-bit time_t.
90751         (posix_time_parse): Do not check for out-of-range components;
90752         that is now the caller's responsibility, since our checks were
90753         only approximations.
90754         (posixtime): Use mktime to check for out-of-range components,
90755         since it knows them exactly.
90756         If mktime returns (time_t) -1, check whether an error actually occurred
90757         by invoking localtime on -1.
90758         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90759         posixtime failures better.
90760         Improve the test data (in comments only).
90761
90762 2003-06-02  Karl Berry  <karl@gnu.org>
90763
90764         * config/mkinstalldirs (version): new variable.
90765         (--version): new option.
90766         (usage): improve message.
90767
90768 2003-05-30  Karl Berry  <karl@gnu.org>
90769
90770         * lib/mktime.c: update from libc.
90771
90772 2003-05-30  Bruno Haible  <bruno@clisp.org>
90773
90774         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90775         * config/config.rpath: Upgrade to gettext-0.12.1.
90776
90777 2003-05-30  Bruno Haible  <bruno@clisp.org>
90778
90779         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90780         * m4/nls.m4: New file, from gettext-0.12.1.
90781         * m4/po.m4: New file, from gettext-0.12.1.
90782         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90783
90784 2003-05-30  Bruno Haible  <bruno@clisp.org>
90785
90786         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90787         * lib/localcharset.h: Likewise.
90788         * lib/localcharset.c: Likewise.
90789
90790 2003-05-29  Karl Berry  <karl@gnu.org>
90791
90792         * config/config.rpath: update from gettext.
90793
90794 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90795
90796         Assume the headers required for C89 freestanding compilers.
90797         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90798         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90799         * m4/human.m4 (gl_HUMAN): Likewise.
90800         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90801         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90802         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90803         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90804         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90805         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90806
90807 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90808
90809         Assume the headers required for C89 freestanding compilers.
90810         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90811         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90812         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90813         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90814         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90815         define, since <limits.h> is guaranteed to do that.
90816         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90817         * lib/exclude.c: Include <stdbool.h> unconditionally.
90818         * lib/tempname.c: Include <stddef.h> unconditionally.
90819         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90820         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90821         <stddef.h> does that.
90822         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90823         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90824         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90825         needed.
90826         * lib/xstrtol.c: Likewise.
90827         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90828         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90829
90830         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90831         warnings on some platforms.
90832
90833         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90834         arbitrarily.
90835
90836 2003-05-26  Jim Meyering  <jim@meyering.net>
90837
90838         Merge in a change from coreutils:
90839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90840         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90841         that condition, rather than `-1' which is slightly misleading.
90842         Change the name of the cache variable to have the gl_ prefix.
90843         Prompted by a patch from Richard Dawe for DJGPP.
90844
90845 2003-05-24  Karl Berry  <karl@gnu.org>
90846
90847         * config/config.guess: update from prep.
90848
90849 2003-05-22  Karl Berry  <karl@gnu.org>
90850
90851         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90852
90853 2003-05-20  Karl Berry  <karl@gnu.org>
90854
90855         * config/config.guess: update from prep.
90856
90857 2003-05-18  Karl Berry  <karl@gnu.org>
90858
90859         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90860         might actually be set by the user.
90861
90862         * config/depcomp, install-sh, mdate-sh: update from automake.
90863
90864 2003-05-17  Bruno Haible  <bruno@clisp.org>
90865
90866         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90867         invalid expansion for AC_EGREP_CPP.
90868         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90869         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90870         Suggested by Akim Demaille <akim@epita.fr> in
90871         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90872
90873 2003-05-12  Jim Meyering  <jim@meyering.net>
90874
90875         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90876         the space-padded-by-default conversion specifiers, %e, %k, %l.
90877
90878 2003-05-12  Bruno Haible  <bruno@clisp.org>
90879
90880         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90881         the string is longer than 4 KB.
90882
90883 2003-05-11  Karl Berry  <karl@gnu.org>
90884
90885         * config/config.{guess,sub}: update from prep.
90886
90887 2003-05-09  Bruno Haible  <bruno@clisp.org>
90888
90889         * modules/error: Add m4/strerror_r.m4 to file list.
90890
90891 2003-05-03  Bruno Haible  <bruno@clisp.org>
90892
90893         Upgrade to Unicode-4.0.
90894         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90895         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90896         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90897         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90898         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90899         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90900         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90901         Change width of U+E0100..U+E01EF from 1 to 0.
90902
90903 2003-04-25  Jim Meyering  <jim@meyering.net>
90904
90905         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90906         of type size_t, not int.
90907
90908 2003-04-25  Bruno Haible  <bruno@clisp.org>
90909
90910         * lib/copy-file.c: Include <stddef.h>, for size_t.
90911
90912 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90913
90914         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90915         code which expansion is under static control.  Patch imported from
90916         Akim Demaille's patch to Bison; see
90917         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90918
90919 2003-04-14  Bruno Haible  <bruno@clisp.org>
90920
90921         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90922
90923 2003-04-11  Jim Meyering  <jim@meyering.net>
90924
90925         Merge changes from Coreutils.
90926
90927         2003-03-22  Jim Meyering  <jim@meyering.net>
90928
90929         * lib/strftime.c (widen): Cast alloca return value to proper type.
90930
90931         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90932
90933         From GNU libc.
90934         * lib/strftime.c (my_strftime): Handle very large width
90935         specifications for numeric values correctly.  Improve checks for
90936         overflow.
90937
90938         2003-01-19  Jim Meyering  <jim@meyering.net>
90939
90940         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90941         definitions.
90942         (nl_get_alt_digit) [! defined my_strftime]: Define.
90943         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90944         _nl_get_alt_digit and _nl_get_walt_digit.
90945
90946         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90947         libc. These changes have no effect outside of _LIBC.
90948
90949 2003-04-10  Bruno Haible  <bruno@clisp.org>
90950
90951         * modules/findprog: New file.
90952         * MODULES.html.sh (func_all_modules): Add it.
90953
90954 2003-04-10  Bruno Haible  <bruno@clisp.org>
90955
90956         * m4/findprog.m4: New file.
90957         * m4/eaccess.m4: New file.
90958
90959 2003-04-10  Bruno Haible  <bruno@clisp.org>
90960
90961         * lib/findprog.h: New file, from GNU gettext.
90962         * lib/findprog.c: New file, from GNU gettext.
90963
90964 2003-04-05  Jim Meyering  <jim@meyering.net>
90965
90966         Merge changes from Coreutils.
90967
90968         * lib/exclude.h (PARAMS): Remove definition and uses.
90969         * lib/exclude.c: Remove uses of `PARAMS'.
90970
90971         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90972         Add test-cases for DOS filenames. Declare program_name.
90973         (main): Set up program_name.  Patch by Rich Dawe.
90974
90975         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90976         error from mntctl.
90977         Use mntctl's return value to drive the entry-processing loop, since
90978         we can't rely on the value of the vmt_length member in the last
90979         entry.  On some systems doing so could result in exhausting
90980         virtual memory.  Based in part on a patch from Mike Jetzer.
90981
90982 2003-04-04  Bruno Haible  <bruno@clisp.org>
90983
90984         * modules/linebreak: New file.
90985         * MODULES.html.sh (func_all_modules): Add it.
90986
90987 2003-04-04  Bruno Haible  <bruno@clisp.org>
90988
90989         * m4/linebreak.m4: New file.
90990
90991 2003-04-04  Bruno Haible  <bruno@clisp.org>
90992
90993         * lib/linebreak.h: New file, from GNU gettext.
90994         * lib/linebreak.c: New file, from GNU gettext with slight
90995         modifications.
90996         * lib/lbrkprop.h: New file, from GNU gettext.
90997
90998 2003-04-03  Bruno Haible  <bruno@clisp.org>
90999
91000         * modules/utf8-ucs4: New file.
91001         * modules/utf16-ucs4: New file.
91002         * modules/ucs4-utf8: New file.
91003         * modules/ucs4-utf16: New file.
91004         * MODULES.html.sh (func_all_modules): Add them.
91005
91006 2003-04-03  Bruno Haible  <bruno@clisp.org>
91007
91008         * m4/utf-ucs4.m4: New file.
91009         * m4/ucs4-utf.m4: New file.
91010
91011 2003-04-03  Bruno Haible  <bruno@clisp.org>
91012
91013         * lib/utf8-ucs4.h: New file, from GNU gettext.
91014         * lib/utf16-ucs4.h: New file, from GNU gettext.
91015         * lib/ucs4-utf8.h: New file, from GNU gettext.
91016         * lib/ucs4-utf16.h: New file, from GNU gettext.
91017
91018 2003-04-02  Bruno Haible  <bruno@clisp.org>
91019
91020         * modules/binary-io: New file.
91021         * MODULES.html.sh (func_all_modules): Add it.
91022
91023 2003-04-02  Bruno Haible  <bruno@clisp.org>
91024
91025         * lib/binary-io.h: New file, from GNU gettext.
91026
91027 2003-04-01  Bruno Haible  <bruno@clisp.org>
91028
91029         * modules/pathname: New file.
91030         * MODULES.html.sh (func_all_modules): Add it.
91031
91032 2003-04-01  Bruno Haible  <bruno@clisp.org>
91033
91034         * lib/pathname.h: New file, from GNU gettext.
91035         * lib/concatpath.c: New file, from GNU gettext.
91036
91037 2003-03-30  Bruno Haible  <bruno@clisp.org>
91038
91039         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91040
91041 2003-03-30  Bruno Haible  <bruno@clisp.org>
91042
91043         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91044         function chown() doesn't exist.
91045
91046 2003-03-28  Bruno Haible  <bruno@clisp.org>
91047
91048         * modules/copy-file: New file.
91049         * MODULES.html.sh (func_all_modules): Add it.
91050
91051 2003-03-28  Bruno Haible  <bruno@clisp.org>
91052
91053         * m4/copy-file.m4: New file.
91054
91055 2003-03-28  Bruno Haible  <bruno@clisp.org>
91056
91057         * lib/copy-file.h: New file, from GNU gettext.
91058         * lib/copy-file.c: New file, from GNU gettext.
91059
91060 2003-03-18  Jim Meyering  <jim@meyering.net>
91061
91062         * lib/quote.c (quote_n): Fix typo in comment.
91063
91064 2003-03-18  Bruno Haible  <bruno@clisp.org>
91065
91066         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91067         checking.
91068         * m4/onceonly_2_57.m4: Likewise.
91069
91070 2003-03-17  Bruno Haible  <bruno@clisp.org>
91071
91072         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91073         (m4_quote): Remove macro.
91074         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91075
91076 2003-03-14  Jim Meyering  <jim@meyering.net>
91077
91078         Merge changes from Coreutils.
91079         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91080         to be const, in order to avoid warnings.
91081         (obstack_room): Likewise.
91082         (obstack_empty_p): Likewise.
91083
91084 2003-03-14  Bruno Haible  <bruno@clisp.org>
91085
91086         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91087         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91088
91089 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91090
91091         Merge changes from Bison.
91092         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91093         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91094         when compiling Bison 1.875's `bitset bset = obstack_alloc
91095         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91096         * lib/hash.c: Include <stdbool.h> unconditionally.
91097
91098 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91099
91100         * m4/onceonly.m4 (m4_quote): New macro.
91101         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91102         Quote AC_FOREACH variable-expansions properly.
91103
91104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91105
91106         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91107
91108 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91109
91110         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91111         Reported by Bruce Becker; see:
91112         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91113
91114 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91115             Bruno Haible  <bruno@clisp.org>
91116
91117         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91118         Reported by John Hughes, see
91119         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91120
91121 2003-02-20  Bruno Haible  <bruno@clisp.org>
91122
91123         * MODULES.html.sh (func_all_modules): Add poll.
91124
91125 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91126
91127         * modules/poll: New file.
91128
91129 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91130
91131         * lib/poll_.h: New file.
91132         * lib/poll.c: New file.
91133
91134 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91135
91136         * m4/poll.m4: New file.
91137
91138 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91139
91140         * modules/mathl: New file.
91141
91142 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91143
91144         * lib/mathl.h: New file.
91145         * lib/acosl.c: New file.
91146         * lib/asinl.c: New file.
91147         * lib/atanl.c: New file.
91148         * lib/ceill.c: New file.
91149         * lib/cosl.c: New file.
91150         * lib/expl.c: New file.
91151         * lib/floorl.c: New file.
91152         * lib/frexpl.c: New file.
91153         * lib/ldexpl.c: New file.
91154         * lib/logl.c: New file.
91155         * lib/sincosl.c: New file.
91156         * lib/sinl.c: New file.
91157         * lib/sqrtl.c: New file.
91158         * lib/tanl.c: New file.
91159         * lib/trigl.c: New file.
91160         * lib/trigl.h: New file.
91161
91162 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91163
91164         * m4/mathl.m4: New file.
91165
91166 2003-02-18  Bruno Haible  <bruno@clisp.org>
91167
91168         * MODULES.html.sh (func_all_modules): Add mathl.
91169
91170 2003-02-17  Bruno Haible  <bruno@clisp.org>
91171
91172         * modules/mkdtemp: New module.
91173         * MODULES.html.sh (func_all_modules): Add it.
91174
91175 2003-02-17  Bruno Haible  <bruno@clisp.org>
91176
91177         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91178
91179 2003-02-17  Bruno Haible  <bruno@clisp.org>
91180
91181         * lib/mkdtemp.h: New file, from GNU gettext.
91182         * lib/mkdtemp.c: New file, from GNU gettext.
91183
91184 2003-02-02  Jim Meyering  <jim@meyering.net>
91185
91186         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91187         e.g. glibc-2.2.93.
91188
91189 2003-01-31  Bruno Haible  <bruno@clisp.org>
91190
91191         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91192         'rpl_rename'.
91193         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91194         'rpl_strnlen'.
91195         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91196         'rpl_strtod'.
91197         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91198         'rpl_utime'.
91199
91200 2003-01-31  Bruno Haible  <bruno@clisp.org>
91201
91202         * lib/rename.c: #undef rename before defining rpl_rename.
91203         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91204
91205 2003-01-30  Bruno Haible  <bruno@clisp.org>
91206
91207         * modules/vasnprintf, modules/vasprintf: New modules.
91208         * MODULES.html.sh (func_all_modules): Add them.
91209
91210 2003-01-30  Bruno Haible  <bruno@clisp.org>
91211
91212         * m4/signed.m4: New file, from GNU gettext.
91213         * m4/longdouble.m4: New file, from GNU gettext.
91214         * m4/wchar_t.m4: New file, from GNU gettext.
91215         * m4/wint_t.m4: New file, from GNU gettext.
91216         * m4/vasnprintf.m4: New file.
91217         * m4/vasprintf.m4: New file.
91218
91219 2003-01-30  Bruno Haible  <bruno@clisp.org>
91220
91221         * lib/printf-args.h: New file, from GNU gettext.
91222         * lib/printf-args.c: New file, from GNU gettext.
91223         * lib/printf-parse.h: New file, from GNU gettext.
91224         * lib/printf-parse.c: New file, from GNU gettext.
91225         * lib/vasnprintf.h: New file, from GNU gettext.
91226         * lib/vasnprintf.c: New file, from GNU gettext.
91227         * lib/asnprintf.c: New file, from GNU gettext.
91228         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91229         * lib/vasprintf.c: New file, from GNU gettext.
91230         * lib/asprintf.c: New file, from GNU gettext.
91231
91232 2003-01-29  Bruno Haible  <bruno@clisp.org>
91233
91234         * modules/stpncpy: New module.
91235         * MODULES.html.sh (func_all_modules): Add it.
91236
91237 2003-01-29  Bruno Haible  <bruno@clisp.org>
91238
91239         * m4/stpncpy.m4: New file.
91240
91241 2003-01-29  Bruno Haible  <bruno@clisp.org>
91242
91243         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91244         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91245
91246 2003-01-28  Bruno Haible  <bruno@clisp.org>
91247
91248         * modules/c-ctype: New module.
91249         * MODULES.html.sh (func_all_modules): Add it.
91250
91251 2003-01-28  Bruno Haible  <bruno@clisp.org>
91252
91253         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91254         Paul Eggert.
91255         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91256         Paul Eggert.
91257
91258 2003-01-27  Bruno Haible  <bruno@clisp.org>
91259
91260         * modules/xsetenv: New module.
91261         * MODULES.html.sh (func_all_modules): Add it.
91262
91263 2003-01-27  Bruno Haible  <bruno@clisp.org>
91264
91265         * lib/xsetenv.h: New file, from GNU gettext.
91266         * lib/xsetenv.c: New file, from GNU gettext.
91267
91268 2003-01-23  Jim Meyering  <jim@meyering.net>
91269
91270         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91271         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91272
91273 2003-01-23  Bruno Haible  <bruno@clisp.org>
91274
91275         * modules/minmax: New module.
91276         * MODULES.html.sh (func_all_modules): Add it.
91277
91278 2003-01-23  Bruno Haible  <bruno@clisp.org>
91279
91280         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91281         Eggert.
91282
91283 2003-01-22  Bruno Haible  <bruno@clisp.org>
91284
91285         * modules/exit: New module.
91286         * MODULES.html.sh (func_all_modules): Add it.
91287
91288 2003-01-22  Bruno Haible  <bruno@clisp.org>
91289
91290         * lib/exit.h: New file, from GNU gettext.
91291
91292 2003-01-19  Bruno Haible  <bruno@clisp.org>
91293
91294         * gnulib-tool: Recognize option --extract-maintainer.
91295         (func_get_maintainer): New function.
91296         * modules/*: Add Maintainer entry.
91297
91298 2003-01-16  Jim Meyering  <jim@meyering.net>
91299
91300         * m4/regex.m4: The `regex' struct is both input and output.
91301         Initialize it before each use.  Patch by Tim Waugh.
91302
91303 2003-01-16  Bruno Haible  <bruno@clisp.org>
91304
91305         * MODULES.html.sh: Add a table of contents. Add the module name as
91306         leftmost column. Add hyperlinks.
91307
91308 2003-01-15  Bruno Haible  <bruno@clisp.org>
91309
91310         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91311
91312 2003-01-15  Bruno Haible  <bruno@clisp.org>
91313
91314         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91315         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91316         suffix.
91317
91318 2003-01-15  Bruno Haible  <bruno@clisp.org>
91319
91320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91321
91322 2003-01-15  Bruno Haible  <bruno@clisp.org>
91323
91324         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91325         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91326
91327 2003-01-14  Jim Meyering  <jim@meyering.net>
91328
91329         * lib/same.c (same_name): Tweak a comment.
91330
91331 2003-01-14  Bruno Haible  <bruno@clisp.org>
91332
91333         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91334         when a string comparison is sufficient.
91335
91336 2003-01-14  Bruno Haible  <bruno@clisp.org>
91337
91338         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91339         'unsigned int'.
91340
91341 2003-01-14  Bruno Haible  <bruno@clisp.org>
91342
91343         * lib/hash-pjw.c: Add comment about low quality of this function.
91344
91345 2003-01-13  Bruno Haible  <bruno@clisp.org>
91346
91347         * modules/stpcpy: Distribute lib/stpcpy.h.
91348         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91349
91350 2003-01-13  Bruno Haible  <bruno@clisp.org>
91351
91352         * modules/*: Add a description.
91353         * modules/strpbrk: Fix Makefile.am snippet.
91354         * modules/strtoimax: Fix dependencies.
91355         * modules/strtoumax: Likewise.
91356
91357 2003-01-13  Bruno Haible  <bruno@clisp.org>
91358
91359         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91360         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91361         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91362
91363 2003-01-13  Bruno Haible  <bruno@clisp.org>
91364
91365         * gnulib-tool (func_create_testdir): Store config/* files in the main
91366         directory.
91367         * config.rpath: Move to ...
91368         * config/config.rpath: ... here.
91369         * modules/gettext: Contains config/config.rpath, not config.rpath.
91370         * modules/iconv: Likewise.
91371
91372 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91373
91374         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91375         to avoid collisions with libcurses and libreadline.
91376
91377         * m4/getstr.m4: Remove.
91378         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91379
91380 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91381
91382         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91383         to avoid collisions with libcurses and libreadline.
91384
91385         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91386         * lib/getstr.h, getstr.c: Remove.
91387         * lib/getline.c: Include "getline.h", to check interface.
91388         Move body of old getstr.c here: this defines MIN_CHUNK and
91389         declares getdelim2, which is renamed from getstr.
91390         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91391
91392         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91393         All uses changed.
91394         * lib/linebuffer.h: Likewise.
91395         (readline): Remove backward-compatibility macro.
91396
91397 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91398
91399         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91400         to avoid collisions with libcurses and libreadline.
91401         * getstr: Remove.
91402         * MODULES.html.sh: Remove getstr.
91403         * modules/getline: Depend on unlocked-io, not getstr.
91404
91405 2003-01-12  Jim Meyering  <jim@meyering.net>
91406
91407         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91408
91409 2003-01-10  Bruno Haible  <bruno@clisp.org>
91410
91411         * modules/alloca: Change Makefile.am requirements. Simplify Include
91412         requirements. Add lib/alloca_.h to file list.
91413
91414 2003-01-10  Bruno Haible  <bruno@clisp.org>
91415
91416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91417
91418 2003-01-10  Bruno Haible  <bruno@clisp.org>
91419
91420         * lib/alloca_.h: New file.
91421         * lib/getdate.y: Unconditionally include alloca.h.
91422         * lib/makepath.c: Likewise.
91423         * lib/setenv.c: Likewise.
91424         * lib/userspec.c: Likewise.
91425
91426 2003-01-09  Karl Berry  <karl@gnu.org>
91427
91428         * MODULES.html.sh: include `dirname $0` in PATH, to find
91429         gnulib-tool.
91430
91431 2003-01-09  Bruno Haible  <bruno@clisp.org>
91432
91433         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91434         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91435
91436 2003-01-09  Bruno Haible  <bruno@clisp.org>
91437
91438         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91439
91440 2003-01-09  Bruno Haible  <bruno@clisp.org>
91441
91442         * lib/stdbool.h.in: New file.
91443
91444 2003-01-09  Bruno Haible  <bruno@clisp.org>
91445
91446         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91447         * MODULES.html.sh: Likewise.
91448
91449 2003-01-08  Jim Meyering  <jim@meyering.net>
91450
91451         * lib/full-write.c: Undefine and define-away `const' after inclusion
91452         of errno.h, not before.  Suggestion from Bruno Haible.
91453
91454 2003-01-08  Bruno Haible  <bruno@clisp.org>
91455
91456         * modules/full-read: Depend on full-write.
91457
91458 2003-01-08  Bruno Haible  <bruno@clisp.org>
91459
91460         * lib/safe-read.c: Include specification header first, to ensure its
91461         selfcontainedness.
91462         * lib/full-write.c: Likewise.
91463
91464 2003-01-07  Jim Meyering  <jim@meyering.net>
91465
91466         * lib/full-write.c: Rework so that it may serve to define full_read,
91467         too.
91468         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91469
91470 2003-01-07  Bruno Haible  <bruno@clisp.org>
91471
91472         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91473         <inttypes.h>.
91474         * lib/xstrtol.h: Likewise.
91475         * lib/xstrtoimax.c: Likewise.
91476         * lib/xstrtoumax.c: Likewise.
91477         * lib/human.h: Likewise.
91478
91479         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91480         on systems that have <inttypes.h> but not <stdint.h>.
91481
91482 2003-01-07  Bruno Haible  <bruno@clisp.org>
91483
91484         * MODULES.html.sh: Add copyright notice.
91485         (missed_files): Omit CVS directory entries.
91486         (func_module): Make it work with sed-3.02.
91487         * MODULES.txt: Remove file.
91488
91489 2003-01-06  Jim Meyering  <jim@meyering.net>
91490
91491         * lib/version-etc.c: Update year in translatable copyright string.
91492
91493 2003-01-03  Karl Berry  <karl@gnu.org>
91494
91495         * config/config.{guess,sub}: update from prep.
91496
91497 2003-01-02  Karl Berry  <karl@gnu.org>
91498
91499         * doc/COPYING.DOC: belatedly updated to 1.2.
91500
91501 2003-01-01  Karl Berry  <karl@gnu.org>
91502
91503         * gnulib-tool (func_verify_module): report module name $module in
91504         error message, not $1.
91505         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91506         be created, only if it doesn't exist.
91507         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91508
91509 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91510
91511         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91512
91513 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91514
91515         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91516         memcmp if strcoll doesn't work.
91517
91518 2002-12-31  Bruno Haible  <bruno@clisp.org>
91519
91520         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91521         nonempty.
91522
91523 2002-12-31  Bruno Haible  <bruno@clisp.org>
91524
91525         * lib/memcoll.c (STRCOLL): New macro.
91526         (memcoll): Use it.
91527
91528 2002-12-31  Bruno Haible  <bruno@clisp.org>
91529
91530         * lib/localcharset.h: New file.
91531         * lib/localcharset.c: Include it.
91532         * lib/unicodeio.c: Likewise.
91533
91534 2002-12-31  Bruno Haible  <bruno@clisp.org>
91535
91536         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91537         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91538
91539 2002-12-31  Bruno Haible  <bruno@clisp.org>
91540
91541         * lib/getline.h: Include <stddef.h>, for size_t.
91542
91543         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91544         * lib/unicodeio.c: Don't include <stddef.h>.
91545
91546 2002-12-31  Bruno Haible  <bruno@clisp.org>
91547
91548         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91549         HAVE_TM_ZONE.
91550
91551 2002-12-24  Karl Berry  <karl@gnu.org>
91552
91553         * config/config.guess: update from prep.
91554
91555 2002-12-24  Bruno Haible  <bruno@clisp.org>
91556
91557         General infrasructure.
91558         * m4/README: Rewritten.
91559         * m4/onceonly.m4: New file.
91560         * m4/onceonly_2_57.m4: New file.
91561
91562         Module atexit.
91563         * m4/atexit.m4: New file.
91564
91565         Module strtod.
91566         * m4/strtod.m4: New file.
91567
91568         Module strtol.
91569         * m4/strtol.m4: New file.
91570
91571         Module strtoul.
91572         * m4/strtoul.m4: New file.
91573
91574         Module memchr.
91575         * m4/memchr.m4: New file.
91576
91577         Module memcmp.
91578         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91579         (jm_FUNC_MEMCMP): Invoke it.
91580
91581         Module memcpy.
91582         * m4/memcpy.m4: New file.
91583
91584         Module memmove.
91585         * m4/memmove.m4: New file.
91586
91587         Module memset.
91588         * m4/memset.m4: New file.
91589
91590         Module strcspn.
91591         * m4/strcspn.m4: New file.
91592
91593         Module strpbrk.
91594         * m4/strpbrk.m4: New file.
91595
91596         Module strstr.
91597         * m4/strstr.m4: New file.
91598
91599         Module strerror.
91600         * m4/strerror.m4: New file.
91601
91602         Module mktime.
91603         * m4/mktime.m4: Renamed from jm-mktime.m4.
91604         (gl_PREREQ_MKTIME): New macro.
91605         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91606
91607         Module malloc.
91608         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91609         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91610         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91611
91612         Module realloc.
91613         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91614         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91615         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91616
91617         Module strftime.
91618         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91619         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91620         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91621         gl_TM_GMTOFF.
91622         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91623
91624         Module xalloc.
91625         * m4/xalloc.m4: New file.
91626
91627         Module alloca.
91628         * m4/alloca.m4: New file.
91629
91630         Module putenv.
91631         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91632         (jm_FUNC_PUTENV): Invoke it.
91633
91634         Module setenv.
91635         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91636         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91637         when invoked twice.
91638         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91639         gt_FUNC_SETENV.
91640
91641         Module memrchr.
91642         * m4/memrchr.m4: New file.
91643
91644         Module stpcpy.
91645         * m4/stpcpy.m4: New file.
91646
91647         Module strcase.
91648         * m4/strcase.m4: New file.
91649
91650         Module strdup.
91651         * m4/strdup.m4: New file.
91652
91653         Module strnlen.
91654         * m4/strnlen.m4: New file.
91655
91656         Module strndup.
91657         * m4/strndup.m4: New file.
91658
91659         Module xstrtod.
91660         * m4/xstrtod.m4: New file.
91661
91662         Module xstrtol.
91663         * m4/xstrtol.m4: New file.
91664
91665         Module getdate.
91666         * m4/getdate.m4: New file.
91667
91668         Module unlocked-io.
91669         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91670         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91671         * m4/jm-glibc-io.m4n: Remove file.
91672
91673         Module long-options.
91674         * m4/long-options.m4: New file.
91675
91676         Module md5.
91677         * m4/md5.m4: New file.
91678
91679         Module sha.
91680         * m4/sha.m4: New file.
91681
91682         Module getstr.
91683         * m4/getstr.m4: New file.
91684
91685         Module getline.
91686         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91687         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91688         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91689         simply getline. Infoke gl_PREREQ_GETLINE.
91690
91691         Module obstack.
91692         * m4/obstack.m4: New file.
91693
91694         Module hash.
91695         * m4/hash.m4: New file.
91696
91697         Module readtokens.
91698         * m4/readtokens.m4: New file.
91699
91700         Module strverscmp.
91701         * m4/strverscmp.m4: New file.
91702
91703         Module stdbool.
91704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91705         OSF/1.
91706
91707         Module strtoll.
91708         * m4/strtoll.m4: New file.
91709
91710         Module strtoull.
91711         * m4/strtoull.m4: New file.
91712
91713         Module strtoimax.
91714         * m4/strtoimax.m4: New file.
91715
91716         Module strtoumax.
91717         * m4/strtoumax.m4: New file.
91718
91719         Module xstrtoimax.
91720         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91721         jm_AC_PREREQ_XSTRTOIMAX.
91722         Moved the strtol prerequisites to strtol.m4.
91723         Moved the strtoll prerequisites to strtoll.m4.
91724         Moved the strtoimax prerequisites to strtoimax.m4.
91725
91726         Module xstrtoumax.
91727         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91728         jm_AC_PREREQ_XSTRTOUMAX.
91729         Moved the strtoul prerequisites to strtoul.m4.
91730         Moved the strtoull prerequisites to strtoull.m4.
91731         Moved the strtoumax prerequisites to strtoumax.m4.
91732
91733         Module chown.
91734         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91735         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91736
91737         Module dup2.
91738         * m4/dup2.m4: New file.
91739
91740         Module ftruncate.
91741         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91742         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91743
91744         Module getgroups.
91745         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91746         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91747
91748         Module gettimeofday.
91749         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91750         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91751         gl_PREREQ_GETTIMEOFDAY.
91752
91753         Module mkdir.
91754         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91755         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91756
91757         Module mkstemp.
91758         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91759         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91760         jm_AC_TYPE_UINTMAX_T.
91761         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91762
91763         Module stat.
91764         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91765         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91766
91767         Module lstat.
91768         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91769         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91770
91771         Module timespec.
91772         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91773         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91774         * m4/st_mtim.m4: Indentation.
91775
91776         Module nanosleep.
91777         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91778         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91779         gl_PREREQ_NANOSLEEP.
91780
91781         Module regex.
91782         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91783         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91784         (gl_REGEX): New macro.
91785
91786         Module rename.
91787         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91788         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91789
91790         Module rmdir.
91791         * m4/rmdir.m4: New file.
91792
91793         Module utime.
91794         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91795         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91796         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91797
91798         Module dirname.
91799         * m4/dirname.m4: New file.
91800
91801         Module getopt.
91802         * m4/getopt.m4: New file.
91803
91804         Module unistd-safer.
91805         * m4/unistd-safer.m4: New file.
91806
91807         Module fnmatch.
91808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91809         declaration.
91810         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91811         (gl_FUNC_FNMATCH_POSIX): New macro.
91812         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91813         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91814         simply fnmatch.
91815
91816         Module exclude.
91817         * m4/exclude.m4: New file.
91818
91819         Module human.
91820         * m4/human.m4: New file.
91821
91822         Module acl.
91823         * m4/acl.m4: Nop.
91824
91825         Module backupfile.
91826         * m4/backupfile.m4: New file.
91827         * m4/d-ino.m4: Indentation.
91828
91829         Module fsusage.
91830         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91831         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91832         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91833
91834         Module dirfd.
91835         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91836         requirements.
91837
91838         Module euidaccess.
91839         * m4/euidaccess.m4: New file.
91840
91841         Module file-type.
91842         * m4/file-type.m4: New file.
91843
91844         Module fileblocks.
91845         * m4/fileblocks.m4: New file.
91846
91847         Module filemode.
91848         * m4/filemode.m4: New file.
91849
91850         Module isdir.
91851         * m4/isdir.m4: New file.
91852
91853         Module lchown.
91854         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91855         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91856
91857         Module makepath.
91858         * m4/makepath.m4: New file.
91859
91860         Module modechange.
91861         * m4/modechange.m4: New file.
91862
91863         Module mountlist.
91864         * m4/mountlist.m4: New file.
91865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91866         Indentation.
91867
91868         Module path-concat.
91869         * m4/path-concat.m4: New file.
91870
91871         Module pathmax.
91872         * m4/pathmax.m4: New file.
91873
91874         Module same.
91875         * m4/same.m4: New file.
91876
91877         Module save-cwd.
91878         * m4/save-cwd.m4: New file.
91879
91880         Module savedir.
91881         * m4/savedir.m4: New file.
91882
91883         Module xgetcwd.
91884         * m4/xgetcwd.m4: New file.
91885         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91886
91887         Module xreadlink.
91888         * m4/xreadlink.m4: New file.
91889
91890         Module safe-read.
91891         * m4/safe-read.m4: New file.
91892
91893         Module safe-write.
91894         * m4/safe-write.m4: New file.
91895
91896         Module closeout.
91897         * m4/closeout.m4: New file.
91898
91899         Module stdio-safer.
91900         * m4/stdio-safer.m4: New file.
91901
91902         Module getpass.
91903         * m4/getpass.m4: New file.
91904
91905         Module getugroups.
91906         * m4/getugroups.m4: New file.
91907
91908         Module group-member.
91909         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91910         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91911
91912         Module idcache.
91913         * m4/idcache.m4: New file.
91914
91915         Module userspec.
91916         * m4/userspec.m4: New file.
91917
91918         Module gettime.
91919         * m4/clock_time.m4: New file.
91920         * m4/gettime.m4: New file.
91921
91922         Module settime.
91923         * m4/settime.m4: New file.
91924
91925         Module posixtm.
91926         * m4/posixtm.m4: New file.
91927
91928         Module gethostname.
91929         * m4/gethostname.m4: New file.
91930
91931         Module canon-host.
91932         * m4/canon-host.m4: New file.
91933
91934         Module gettext.
91935         * m4/codeset.m4: New file, from gettext-0.11.5.
91936         * m4/gettext.m4: New file, from gettext-0.11.5.
91937         * m4/glibc21.m4: New file, from gettext-0.11.5.
91938         * m4/iconv.m4: New file, from gettext-0.11.5.
91939         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91940         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91941         * m4/inttypes.m4: New file, from gettext-0.11.5.
91942         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91943         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91944         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91945         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91946         * m4/lib-link.m4: New file, from gettext-0.11.5.
91947         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91948         * m4/progtest.m4: New file, from gettext-0.11.5.
91949         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91950         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91951         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91952
91953         Module localcharset.
91954         * m4/localcharset.m4: New file.
91955
91956         Module hard-locale.
91957         * m4/hard-locale.m4: New file.
91958
91959         Module mbswidth.
91960         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91961         onceonly macros.
91962         * m4/mbrtowc.m4: Add comment.
91963
91964         Module memcasecmp.
91965         * m4/memcasecmp.m4: New file.
91966
91967         Module memcoll.
91968         * m4/memcoll.m4: New file.
91969
91970         Module unicodeio.
91971         * m4/unicodeio.m4: New file.
91972
91973         Module rpmatch.
91974         * m4/rpmatch.m4: New file.
91975
91976         Module yesno.
91977         * m4/yesno.m4: New file.
91978
91979         Module exitfail.
91980         * m4/exitfail.m4: New file.
91981
91982         Module c-stack.
91983         * m4/c-stack.m4 (gl_C_STACK): New macro.
91984         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91985
91986         Module error.
91987         * m4/error.m4 (gl_ERROR): New macro.
91988         (jm_PREREQ_ERROR): Use onceonly macros.
91989
91990         Module fatal.
91991         * m4/fatal.m4: New file.
91992
91993         Module getloadavg.
91994         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91995         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91996
91997         Module getpagesize.
91998         * m4/getpagesize.m4: New file.
91999
92000         Module getusershell.
92001         * m4/getusershell.m4: New file.
92002
92003         Module physmem.
92004         * m4/physmem.m4: New file.
92005
92006         Module posixver.
92007         * m4/posixver.m4: New file.
92008
92009         Module quotearg.
92010         * m4/quotearg.m4: New file.
92011
92012         Module quote.
92013         * m4/quote.m4: New file.
92014
92015         Module readutmp.
92016         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92017
92018         Module sig2str.
92019         * m4/sig2str.m4: New file.
92020
92021         Other.
92022         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92023         ulonglong.m4.
92024         * m4/intmax_t.m4: New file.
92025         * m4/d-type.m4: Indentation.
92026         * m4/jm-macros.m4: Update.
92027         * m4/prereq.m4 (jm_PREREQ): Update.
92028         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92029         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92030         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92031         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92032         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92033         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92034         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92035         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92036         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92037         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92038         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92039         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92040         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92041         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92042         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92043         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92044         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92045         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92046         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92047
92048 2002-12-24  Bruno Haible  <bruno@clisp.org>
92049
92050         * MODULES.txt: Update according to m4/ changes.
92051
92052         Module gettext.
92053         * config.rpath: New file, from gettext-0.11.5.
92054
92055         * modules/*: New module descriptions.
92056         * gnulib-tool: New file.
92057         * MODULES.html.sh: New file.
92058
92059 2002-12-21  Karl Berry  <karl@gnu.org>
92060
92061         * doc/fdl.texi: update to version 1.2.
92062
92063 2002-12-19  Karl Berry  <karl@gnu.org>
92064
92065         * config/config.guess: update from prep.
92066
92067 2002-12-18  Bruno Haible  <bruno@clisp.org>
92068
92069         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92070         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92071
92072 2002-12-17  Bruno Haible  <bruno@clisp.org>
92073
92074         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92075         stdlib.h, string.h.
92076
92077 2002-12-17  Bruno Haible  <bruno@clisp.org>
92078
92079         * lib/canon-host.c (strdup): Remove unused declaration.
92080
92081         * lib/fsusage.c: Include full_read.h.
92082         (get_fs_usage): Use full_read instead of safe_read.
92083
92084         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92085
92086 2002-12-12  Karl Berry  <karl@gnu.org>
92087
92088         * config/config.guess: update from prep.
92089
92090 2002-12-11  Bruno Haible  <bruno@clisp.org>
92091
92092         * m4/setenv.m4: New file, from gettext-0.11.5.
92093
92094 2002-12-11  Bruno Haible  <bruno@clisp.org>
92095
92096         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92097         not unsetenv().
92098         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92099         modifications:
92100
92101         2002-12-11  Bruno Haible  <bruno@clisp.org>
92102
92103                 * setenv.c (alloca): Fall back to malloc.
92104                 (freea): New macro.
92105                 (setenv): Use freea() to free memory allocated with alloca().
92106
92107         2002-11-13  Bruno Haible  <bruno@clisp.org>
92108
92109                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92110                 function declarations.
92111                 * unsetenv.c (unsetenv): Likewise.
92112
92113         2002-03-04  Bruno Haible  <bruno@clisp.org>
92114
92115                 Portability to AIX 4.3.3.
92116                 * unsetenv.c: New file, extracted from setenv.c.
92117                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92118
92119         2001-12-20  Bruno Haible  <bruno@clisp.org>
92120
92121                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92122                 use malloc instead. For SunOS 4.
92123
92124         2001-12-11  Bruno Haible  <bruno@clisp.org>
92125
92126                 * setenv.c: Declare alloca.
92127                 (compar_fn_t): New typedef.
92128                 (KNOWN_VALUE, STORE_VALUE): Use it.
92129
92130         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92131         setenv.h.
92132
92133 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92134
92135         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92136         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92137         Choose values that are less likely to collide with system fnmatch
92138         options.
92139         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92140         defined (e.g., a pure POSIX system).
92141         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92142         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92143
92144 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92145
92146         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92147         a pain in practice to deal with generated m4 files.  This change
92148         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92149
92150         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92151         and jm-glibc-io.m4, as they are no longer a special case.
92152         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92153         kludge and the auto-generation stuff.  Check only whether the
92154         functions are declared, not whether they exist, since older hosts
92155         that don't declare the functions can't use the optimization anyway.
92156
92157 2002-12-06  Jim Meyering  <jim@meyering.net>
92158
92159         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92160
92161         Merge in changes from libc's misc/error.c, in preparation
92162         for the merge of gnulib's changes back into libc.
92163
92164         * lib/error.c (_): Define only if not already defined.
92165         Move definition to follow all #include directives.
92166         Include unlocked-io.h only if !_LIBC.
92167         [_LIBC]: Include <libio/libioP.h>.
92168         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92169         (fflush): Tweak definition to use INTUSE.
92170         (putc): Define.
92171
92172 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92173
92174         * lib/alloca.c [defined emacs]: Include "lisp.h".
92175         (xalloc_die) [defined emacs]: New macro.
92176         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92177         [! defined emacs]: Include <xalloc.h>.
92178         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92179         (pointer): Typedef to POINTER_TYPE *.
92180         (malloc): Remove decl; we now always use xmalloc.
92181         (alloca): Use old-style definition, since Emacs needs this.
92182         Check for arithmetic overflow when computing combined size.
92183
92184 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92185
92186         Do not generate unlocked-io.h automatically, since it's easier to
92187         maintain it by hand.
92188
92189         * lib/unlocked-io.h: New file, from GNU diffutils,
92190         but with proper copyright notice and attribution.
92191         * lib/gen-uio: Remove.
92192         * lib/Makefile.am: Add copyright notice.
92193         (libfetish_a_SOURCES): Add unlocked-io.h.
92194         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92195         (DISTCLEANFILES, io_functions): Remove macros.
92196         (EXTRA_DIST): Remove gen_uio.
92197         (unlocked-io.h): Remove rule.
92198
92199 2002-12-04  Jim Meyering  <jim@meyering.net>
92200
92201         Reflect the fact that stat.c and lstat.c are no longer generated.
92202         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92203         (DISTCLEANFILES): Likewise.
92204         (EXTRA_DIST): Likewise.
92205         (all_local): Don't depend on stat.c or lstat.c.
92206         (stat.c, lstat.c): Remove rules.
92207         (EXTRA_DIST): Remove xstat.in.
92208
92209         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92210         * lib/stat.c: New file.  Contents mostly from xstat.in.
92211         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92212         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92213
92214         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92215         too.
92216         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92217
92218 2002-12-03  Jim Meyering  <jim@meyering.net>
92219
92220         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92221         but not semantics, to minimize the differences between these two files.
92222         (safe_read): Change comment to mention SAFE_READ_ERROR.
92223
92224         * lib/safe-read.c (IS_EINTR): Define.
92225         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92226
92227 2002-12-02  Jim Meyering  <jim@meyering.net>
92228
92229         * lib/safe-read.c (EINTR): Define.
92230         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92231         (INT_MAX): Provide fallback.
92232         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92233
92234         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92235
92236 2002-12-02  Bruno Haible  <bruno@clisp.org>
92237
92238         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92239         Define, taken from safe-read.c.
92240         (INT_MAX): Provide fallback.
92241         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92242         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92243
92244         * lib/safe-read.c (EINTR): Remove definition.
92245         (safe_read): Don't use EINTR if it is absent.
92246
92247 2002-12-01  Jim Meyering  <jim@meyering.net>
92248
92249         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92250         zero.
92251         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92252
92253 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92254
92255         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92256         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92257         with `if (! (value < limit)) abort ();', for readability.
92258
92259 2002-11-26  Karl Berry  <karl@gnu.org>
92260
92261         * lib/strdup.c: copy from libc again, with jim's ok.
92262         * lib/.cppi-disable: re-add strdup.c
92263
92264 2002-11-25  Karl Berry  <karl@gnu.org>
92265
92266         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92267         instead of "strtol.c".
92268
92269 2002-11-25  Karl Berry  <karl@gnu.org>
92270
92271         * config/install-sh: update from automake for variable quoting, $0 in
92272         error msgs, etc.
92273
92274         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92275         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92276         entry.
92277
92278 2002-11-25  Jim Meyering  <jim@meyering.net>
92279
92280         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92281
92282 2002-11-24  Karl Berry  <karl@gnu.org>
92283
92284         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92285         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92286
92287 2002-11-24  Jim Meyering  <jim@meyering.net>
92288
92289         Update from coreutils:
92290
92291         * lib/mktime.c: Merge in changes from libc.
92292
92293         Avoid a link-time failure on some Linux systems.
92294         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92295         (otherwise).
92296         (__mon_yday): Declare with the STATIC attribute.
92297         (__mktime_internal): Likewise.
92298         Based on a report from Greg Schafer.
92299
92300 2002-11-23  Jim Meyering  <jim@meyering.net>
92301
92302         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92303         Use `unsigned', not `int', as type of index.
92304
92305         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92306
92307         * lib/fsusage.c: Remove unneeded parentheses around operands of
92308         `defined'.
92309
92310 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92311
92312         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92313         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92314         so that we can be included first.
92315         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92316         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92317         No need to include stddef.h or sys/types.h any more.
92318         Surround local include files with "", not "<>".
92319         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92320         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92321         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92322         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92323         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92324         (ISPRINT): Remove; no longer needed now that we assume C89.
92325
92326         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92327         Preserve errno.
92328
92329         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92330         quotearg_char): Use SIZE_MAX rather than
92331         (size_t) -1 when we are talking about "infinity".
92332
92333         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92334
92335 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92336
92337         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92338         hint that one should use `if (! x) abort ();' rather than `assert
92339         (x);', and anyway it's one less thing to worry about configuring.
92340         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92341         hash_rehash, hash_insert): Use abort rather than assert.
92342
92343 2002-11-22  Bruno Haible  <bruno@clisp.org>
92344
92345         * lib/safe-read.h: Assume C89. Add comments.
92346         (safe_read): Change return type to size_t.
92347         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92348         byte counts > SSIZE_MAX correctly.
92349         * lib/safe-write.h: New file.
92350         * lib/safe-write.c: New file.
92351         * lib/full-read.h: New file.
92352         * lib/full-read.c: New file.
92353         * lib/full-write.h: Assume C89. Add comments.
92354         * lib/full-write.c: Include safe-write.h.
92355         (full_write): Rewritten to use safe_write.
92356         Suggested by Jim Meyering and Paul Eggert.
92357
92358 2002-11-21  Jim Meyering  <jim@meyering.net>
92359
92360         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92361
92362         Merge in changes from the coreutils.
92363
92364         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92365         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92366         <stdint.h>.
92367         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92368         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92369         int.  Work more efficiently if X is the same width as uintmax_t.
92370         Do not compare X to -1, to avoid bogus compiler warning.
92371         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92372         Don't assume that f_frsize and f_bsize are the same type.
92373
92374         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92375         warning on FreeBSD.
92376
92377         * lib/makepath.c (make_path): Restore umask *before* creating the final
92378         component.
92379         (make_path): Minor reformatting.
92380
92381         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92382         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92383         HAVE_MALLOC/HAVE_REALLOC.
92384
92385         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92386         dummy ones.  At least on GNU/Linux systems, `auto' means something
92387         else.
92388         From Michael Stone.
92389
92390 2002-11-21  Bruno Haible  <bruno@clisp.org>
92391
92392         Remove case insensitive option matching.
92393         * lib/argmatch.h (argcasematch): Remove declaration.
92394         (ARGCASEMATCH): Remove macro.
92395         (__xargmatch_internal): Remove case_sensitive argument.
92396         (XARGMATCH): Update.
92397         (XARGCASEMATCH): Remove macro.
92398         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92399         case_sensitive argument.
92400         (argcasematch): Remove function.
92401         (__xargmatch_internal): Remove case_sensitive argument.
92402         (main): Use XARGMATCH instead of XARGCASEMATCH.
92403
92404         * lib/xmalloc.c: Change compile-time error message. Add comment about
92405         required autoconf version.
92406
92407 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92408
92409         Merge argmatch cleanups from Bison.  Assume C89.
92410
92411         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92412         Include stdlib.h, for EXIT_FAILURE.
92413         Always include <string.h>, since we assume C89.
92414         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92415         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92416         Include <stddef.h> instead, since it's all we need for size_t.
92417         (PARAMS): Remove.  All uses removed.
92418         (ARRAY_CARDINALITY): Do not bother to #undef.
92419         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92420         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92421         Remove unnecessary parentheses.
92422         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92423         Insert necessary parentheses.
92424         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92425         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92426
92427 2002-11-19  Bruno Haible  <bruno@clisp.org>
92428
92429         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92430         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92431
92432         * lib/mbswidth.h (PARAMS): Remove macro.
92433         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92434         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92435
92436         * lib/gcd.h (PARAMS): Remove macro.
92437         (gcd): Use ANSI C function declarations.
92438         * lib/gcd.c (gcd): Likewise.
92439
92440 2002-11-15  Bruno Haible  <bruno@clisp.org>
92441
92442         * lib/strcspn.c: Include <stddef.h>.
92443         (strcspn): Use ANSI C function declaration. Change return type to
92444         size_t. Use NULL.
92445         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92446         (strpbrk): Use NULL.
92447         * lib/strpbrk.h (PARAMS): Remove macro.
92448         (strpbrk): Use ANSI C function declaration.
92449         * lib/strstr.c: Don't include <sys/types.h>.
92450         * lib/strstr.h (PARAMS): Remove macro.
92451         (strstr): Use ANSI C function declarations.
92452
92453 2002-11-14  Karl Berry  <karl@gnu.org>
92454
92455         * config/mkinstalldirs: `do' on separate line, instead of
92456         `for var; do'.
92457
92458 2002-11-06  Bruno Haible  <bruno@clisp.org>
92459
92460         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92461         * lib/gcd.c (gcd): Likewise.
92462
92463 2002-11-05  Bruno Haible  <bruno@clisp.org>
92464
92465         * lib/gcd.h: New file, from gettext-0.11.5.
92466         * lib/gcd.c: New file, from gettext-0.11.5.
92467
92468 2002-11-05  Bruno Haible  <bruno@clisp.org>
92469
92470         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92471         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92472         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92473         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92474
92475         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92476         <libintl.h>.
92477         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92478         <libintl.h>.
92479
92480         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92481         * lib/human.c: Include gettext.h instead of <libintl.h>.
92482         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92483         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92484         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92485         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92486         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92487         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92488         (textdomain): Remove definition.
92489         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92490
92491         * lib/long-options.c: Remove include of <libintl.h> and definition of
92492         _.
92493         * lib/same.c: Remove include of <libintl.h> and definition of _.
92494
92495 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92496
92497         * lib/config.charset: A few additions for Solaris.
92498
92499 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92500
92501         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92502         * lib/localcharset.c (locale_charset): Declare as extern "C".
92503
92504 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92505
92506         * lib/config.charset: msdos in uk_UA uses CP1125.
92507
92508 2002-11-04  Bruno Haible  <bruno@clisp.org>
92509
92510         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92511         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92512         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92513         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92514         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92515
92516 2002-11-04  Bruno Haible  <bruno@clisp.org>
92517
92518         * lib/localcharset.c (locale_charset): Don't return an empty string.
92519
92520 2002-11-04  Bruno Haible  <bruno@clisp.org>
92521
92522         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92523         aliases.
92524
92525 2002-11-04  Bruno Haible  <bruno@clisp.org>
92526
92527         * lib/config.charset: Update for newest glibc. Add canonical names
92528         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92529
92530 2002-11-04  Bruno Haible  <bruno@clisp.org>
92531
92532         * lib/config.charset: Add support for NetBSD.
92533
92534 2002-11-04  Bruno Haible  <bruno@clisp.org>
92535
92536         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92537
92538 2002-11-01  Bruno Haible  <bruno@clisp.org>
92539
92540         * configure.in: Add AC_CONFIG_AUX_DIR call.
92541         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92542         test/Makefile.
92543         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92544
92545 2002-09-28  Karl Berry  <karl@gnu.org>
92546
92547         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92548         installed automake until the next release, since changes have been
92549         made.
92550
92551 2002-09-25  Karl Berry  <karl@gnu.org>
92552
92553         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92554         * lib/getopt*: copy from libc/posix.
92555         * lib/gettext.h: copy from gettext.
92556         * lib/.cppi-disable: add strdup.c, gettext.h.
92557
92558 2002-09-25  Karl Berry  <karl@gnu.org>
92559
92560         * config/srclist.txt: enable gettext.h check.
92561         * config/config.{guess,sub}: update from prep.
92562         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92563                 from automake 1.6.3.
92564         See srclist*.
92565
92566 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92567
92568         * regex.c (PATFETCH): Remove the translating fetch.
92569         (PATFETCH_RAW): Rename to PATFETCH.
92570         (set_image_of_range): New fun.
92571         (SET_RANGE_TABLE_WORK_AREA): Use it.
92572         (regex_compile): Don't translate the pattern chars so eagerly.
92573         Only do it when inserting an `exactn' bytecode or when handling
92574         a char-range.
92575         (mutually_exclusive_p): Avoid empty statement.
92576
92577 2002-07-06  Jim Meyering  <meyering@lucent.com>
92578
92579         * m4/README: Don't mention Makefile.am.in.
92580         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92581
92582 2002-07-01  Jim Meyering  <meyering@lucent.com>
92583
92584         * lib/c-stack.c: Include sys/time.h.
92585         From Volker Borchert.
92586
92587 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92588
92589         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92590
92591 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92592
92593         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92594         New macro.  Use it uniformly instead of
92595         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92596         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92597         reported by Vin Shelton.
92598
92599 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92600
92601         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92602         Do not assume SA_SIGINFO behavior.
92603         Bug reported by Jim Meyering on NetBSD 1.5.2.
92604
92605 2002-06-22  Jim Meyering  <meyering@lucent.com>
92606
92607         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92609
92610         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92611         now that configure.ac uses AC_GNU_SOURCE.
92612         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92613         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92614
92615         Update to latest tools.  Suggestions from Paul Eggert.
92616         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92617         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92618         * m4/fnmatch.m4: Likewise.
92619         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92620         to AC_HEADER_STDBOOL
92621
92622 2002-06-22  Jim Meyering  <meyering@lucent.com>
92623
92624         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92625         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92626
92627 2002-06-22  Jim Meyering  <meyering@lucent.com>
92628
92629         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92630
92631         * lib/exitfail.c, exitfail.h: Likewise.
92632         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92633
92634         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92635         of fnmatch.h.
92636         (EXTRA_DIST): Add fnmatch_loop.c.
92637         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92638
92639         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92640         * lib/fnmatch.c: Update from diffutils-2.8.2.
92641         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92642         * lib/fnmatch.h: Remove file.
92643
92644 2002-06-21  Jim Meyering  <meyering@lucent.com>
92645
92646         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92647         * m4/mbrtowc.m4: Likewise.
92648
92649         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92650         * m4/mbswidth.m4: Reflect name change:
92651         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92652         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92653
92654         * m4/lib-link.m4: Update from gettext-0.11.2.
92655         * m4/gettext.m4: Likewise.
92656
92657         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92658         From Alfred M. Szmidt.
92659
92660 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92661
92662         * lib/file-type.h: Report an error if neither S_ISREG nor
92663         S_IFREG is defined, instead of using a test specific to glibc
92664         2.2.  This should be safe, since POSIX requires S_ISREG and
92665         Unix Version 7 had S_IFREG.  We don't need to check for
92666         <sys/types.h> since we don't use any symbols that it defines.
92667
92668 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92669
92670         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92671         $@-t, so that each temporary file name is unique and valid in the first
92672         8 characters, for operation under DOS.
92673
92674 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92675
92676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92677
92678 2002-06-15  Jim Meyering  <meyering@lucent.com>
92679
92680         Work even with DJGPP 2.03, which lacks support for symlinks.
92681         From Richard Dawe.
92682         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92683         is defined.
92684         * lib/lchown.c (S_ISLNK): Likewise.
92685
92686 2002-06-15  Jim Meyering  <meyering@lucent.com>
92687
92688         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92689         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92690         have been included before this file.
92691
92692 2002-06-14  Jim Meyering  <meyering@lucent.com>
92693
92694         * lib/file-type.h: Use the version from diffutils-2.8.2.
92695         * lib/file-type.c: Likewise.
92696
92697 2002-06-07  Jim Meyering  <meyering@lucent.com>
92698
92699         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92700         They're needed at least for NetBSD 1.5.2.
92701         ($statxfs_includes): Include those same headers.
92702         ($statxfs_includes): Include sys/vfs.h if available.
92703         ($statxfs_includes): Likewise for sys/statvfs.h.
92704         Check for the following members in both structs statfs and statvfs:
92705         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92706
92707 2002-06-01  Jim Meyering  <meyering@lucent.com>
92708
92709         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92710         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92711
92712 2002-05-28  Jim Meyering  <meyering@lucent.com>
92713
92714         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92715         Reported by Volker Borchert.
92716
92717 2002-05-27  Jim Meyering  <meyering@lucent.com>
92718
92719         Fix a problem seen only on nonconforming systems whereby ls.c's
92720         use of localtime, and then of gettimeofday would cause trouble:
92721         the localtime call used to initialize rpl_gettimeofday's save
92722         mechanism would clobber ls's current local time information so
92723         that in any long listing the first file would always be listed
92724         with date 1970-01-01.  Analysis by Volker Borchert.
92725
92726         * lib/gettimeofday.c (localtime): Undefine.
92727         (rpl_localtime): New function.
92728
92729 2002-05-27  Jim Meyering  <meyering@lucent.com>
92730
92731         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92732         localtime.
92733
92734         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92735         use the replacement function; it wouldn't resolve at link time.
92736         Reported by Volker Borchert.
92737
92738 2002-05-22  Jim Meyering  <meyering@lucent.com>
92739
92740         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92741         file-type.h.
92742         * lib/file-type.h: New file.
92743         * lib/file-type.c (file_type): New file/function.  Extracted from
92744         diffutils.
92745
92746 2002-04-30  Jim Meyering  <meyering@lucent.com>
92747
92748         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92749
92750 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92751
92752         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92753
92754 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92755
92756         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92757         Do not check for alloca.h (no longer used) or stdbool.h (was never
92758         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92759
92760 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92761
92762         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92763
92764 2002-04-29  Jim Meyering  <meyering@lucent.com>
92765
92766         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92767         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92768         Use AC_FUNC_STRNLEN here instead.
92769
92770         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92771         With autoconf-2.53a, it's part of AC_PROG_CC.
92772
92773 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92774
92775         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92776         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92777
92778 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92779
92780         * lib/sig2str.h, lib/sig2str.c: New files.
92781         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92782
92783 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92784
92785         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92786         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92787         of 127, since 64 is the largest conceivable number for ancient
92788         nonstandard hosts.
92789         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92790
92791 2002-04-28  Jim Meyering  <meyering@lucent.com>
92792
92793         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92794
92795 2002-04-24  Jim Meyering  <meyering@lucent.com>
92796
92797         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92798         (jm_PREREQ): Use it.
92799
92800         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92801         mach/mach.h fcntl.h.
92802         Check for this function: setlocale.
92803
92804 2002-04-24  Jim Meyering  <meyering@lucent.com>
92805
92806         * lib/gettext.h: New file, from Gettext.
92807         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92808         (libfetish_a_SOURCES): Add gettext.h.
92809
92810 2002-04-16  Jim Meyering  <meyering@lucent.com>
92811
92812         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92813         ut_pid, ut_id, ut_exit.
92814
92815 2002-04-16  Jim Meyering  <meyering@lucent.com>
92816
92817         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92818         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92819         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92820
92821 2002-04-12  Jim Meyering  <meyering@lucent.com>
92822
92823         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92824         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92825         existence of the getmntinfo function.  Needed for Darwin 5.3.
92826
92827         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92828         This is necessary at least on Darwin 5.3.
92829
92830         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92831         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92832         strnlen.o in the library, and that makes some versions of ranlib
92833         object.
92834
92835 2002-04-12  Jim Meyering  <meyering@lucent.com>
92836
92837         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92838
92839 2002-04-09  Jim Meyering  <meyering@lucent.com>
92840
92841         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92842         to be more precise.  Rather than saying we're checking whether the
92843         function `works', say what we're testing.
92844         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92845         Reported by Bruno Haible.
92846
92847 2002-03-10  Jim Meyering  <meyering@lucent.com>
92848
92849         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92850         Suggestion from Santiago Vila.
92851
92852 2002-03-08  Jim Meyering  <meyering@lucent.com>
92853
92854         * lib/rename.c: Mention that this wrapper is needed also on
92855         mips-dec-ultrix4.4 systems.
92856
92857 2002-03-02  Jim Meyering  <meyering@lucent.com>
92858
92859         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92860         not HAVE_CLOCK_SETTIME.
92861
92862 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92863
92864         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92865         Check for clock_settime.
92866
92867 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92868
92869         * lib/nanosleep.h: Rename to....
92870         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92871
92872         * lib/gettime.c: New file.
92873         * lib/settime.c: New file.
92874         * lib/stime.c: Remove.
92875
92876         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92877         timespec.h.  Remove nanosleep.h.
92878
92879 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92880
92881         * m4/acl.m4: New file.
92882         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92883         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92884
92885 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92886
92887         * lib/acl.c, lib/acl.h: New files.
92888         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92889
92890 2002-02-24  Jim Meyering  <meyering@lucent.com>
92891
92892         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92893         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92894         cause trouble.  Reported by Nelson Beebe.
92895
92896 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92897
92898         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92899         compilers that don't know that xalloc_die never returns.
92900
92901 2002-02-20  Jim Meyering  <meyering@lucent.com>
92902
92903         * lib/getdate.c: Regenerate using bison-1.33.
92904
92905 2002-02-17  Jim Meyering  <meyering@lucent.com>
92906
92907         * config/config.guess (main): Don't use `head -1'; it's no longer
92908         portable. Use `sed 1q' instead.
92909
92910 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92911
92912         * m4/codeset.m4: Upgrade to gettext-0.11.
92913         * m4/gettext.m4: Upgrade to gettext-0.11.
92914         * m4/glibc21.m4: Upgrade to gettext-0.11.
92915         * m4/iconv.m4: Upgrade to gettext-0.11.
92916         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92917         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92918         * m4/lib-ld.m4: New file, from gettext-0.11.
92919         * m4/lib-link.m4: New file, from gettext-0.11.
92920         * m4/lib-prefix.m4: New file, from gettext-0.11.
92921         * m4/progtest.m4: Upgrade to gettext-0.11.
92922
92923 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92924
92925         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92926         (jm_PREREQ): Use it.
92927
92928 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92929
92930         * lib/posixver.c, lib/posixver.h: New files.
92931         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92932
92933 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92934             Bruno Haible  <bruno@clisp.org>
92935
92936         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92937         (fwrite_success_callback): New declaration.
92938         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92939         print_unicode_char. Call failure callback instead of error.
92940         (fwrite_success_callback): New function.
92941         (exit_failure_callback): New function.
92942         (fallback_failure_callback): New function.
92943         (print_unicode_char): Call unicode_to_mb.
92944
92945 2002-01-26  Jim Meyering  <meyering@lucent.com>
92946
92947         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92948         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92949
92950 2002-01-26  Jim Meyering  <meyering@lucent.com>
92951
92952         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92953
92954 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92955
92956         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92957
92958 2002-01-22  Jim Meyering  <meyering@lucent.com>
92959
92960         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92961         Otherwise, some versions of automake would omit the rule that makes
92962         Makefile from Makefile.in.
92963
92964 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92965
92966         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92967         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92968         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92969         (memcoll): Set errno to zero if there is no error.
92970
92971         * lib/quotearg.c (quotearg_buffer_restyled):
92972         Fix bug with quoting buffers containing NUL when backslashing escapes.
92973         This bug was exposed by the other changes in this patch.
92974         (quotearg_n_options): New arg ARGSIZE.
92975         All callers changed.
92976         (quoting_options_from_style): New function.
92977         (quotearg_n_style): Use it.
92978         (quotearg_n_style_mem): New function.
92979
92980         * lib/quotearg.h (quotearg_n_style_mem): New function.
92981
92982 2002-01-19  Jim Meyering  <meyering@lucent.com>
92983
92984         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92985         Remove useless quotes: DF_PROG="df".
92986         * m4/strnlen.m4: New file.
92987
92988 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92989
92990         * lib/backupfile.c (ISDIGIT): Comment fix.
92991         * lib/getdate.y (ISDIGIT): Likewise.
92992         * lib/posixtm.c (ISDIGIT, year): Likewise.
92993         * lib/strverscmp.c (ISDIGIT): Likewise.
92994         * lib/userspec.c (ISDIGIT): Likewise.
92995
92996 2002-01-16  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/getdate.y: Add three semicolons, each just before a closing
92999         brace. Bison (as of version 1.31) no longer papers over that mistake.
93000
93001 2002-01-05  Jim Meyering  <meyering@lucent.com>
93002
93003         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93004
93005 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93006
93007         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93008         not silently exit merely because the output buffer happens to
93009         have nothing pending.
93010
93011 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93012
93013         See the big note in ../ChangeLog.
93014         * lib/human.c (suffixes): Prefer K to k for 1024.
93015         (generate_suffix_backwards): New function.
93016         (human_readable_inexact): Use it.
93017         * lib/xstrtol.c (__xstrtol): If there is no number but there
93018         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93019         Accept 'K' as well as 'k'.
93020
93021 2001-12-15  Jim Meyering  <meyering@lucent.com>
93022
93023         * lib/regex.h (__restrict_arr): Update from libc.
93024
93025         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93026         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93027         (STREQ): Define.
93028
93029 2001-12-14  Jim Meyering  <meyering@lucent.com>
93030
93031         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93032         Suggestion from Bruno Haible.
93033
93034 2001-12-10  Jim Meyering  <meyering@lucent.com>
93035
93036         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93037         xrealloc, Instead, include "xalloc.h".
93038         (initbuffer): Don't cast xmalloc return value to char*.
93039         (readline): Reword comment.
93040         Don't cast xrealloc return value to char*
93041         Return NULL, not 0.
93042
93043 2001-12-09  Jim Meyering  <meyering@lucent.com>
93044
93045         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93046         about `signed and unsigned type in conditional expression'.
93047         * lib/posixtm.c (posix_time_parse): Likewise.
93048
93049         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93050
93051         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93052         to avoid a pedantic warning.
93053
93054         * lib/getstr.c: Don't include assert.h.
93055         (getstr): Remove warning-evoking assertions.
93056         Return -1 if offset parameter is out of bounds.
93057         Change the type of a local from int to size_t.
93058
93059         * lib/strftime.c (my_strftime_localtime_r): Include this function
93060         definition in the `#if ! HAVE_TM_GMTOFF' block.
93061
93062         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93063         Include xalloc.h instead.
93064
93065 2001-12-02  Jim Meyering  <meyering@lucent.com>
93066
93067         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93068         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93069         included.
93070
93071         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93072         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93073
93074 2001-11-30  Akim Demaille  <akim@epita.fr>
93075
93076         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93077         before being defined.
93078
93079 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93080
93081         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93082         First arg is int, not unsigned.
93083         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93084         (SIZE_MAX, UINT_MAX): New macros.
93085         (quotearg_n_options): Abort if N is negative.
93086         Avoid overflow check on hosts where size_t is 64 bits and int
93087         is 32 bits, as overflow is impossible there.
93088         Fix off-by-one typo that caused unnecessary reallocation.
93089
93090 2001-11-27  Jim Meyering  <meyering@lucent.com>
93091
93092         * lib/tempname.c: Merge with version from libc.
93093         * lib/regex.c: Likewise.
93094
93095         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93096         systems for which STDC_HEADERS is 0, it was not included, resulting in
93097         a warning about an integer-to-pointer conversion problem with getenv.
93098         Reported by Volker Borchert.
93099
93100 2001-11-26  Jim Meyering  <meyering@lucent.com>
93101
93102         * lib/gtod.h: Remove file.
93103         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93104         * lib/gettimeofday.c: Don't include gtod.h.
93105         (GTOD_init): Remove function.
93106         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93107         Suggestion from Volker Borchert.
93108
93109 2001-11-23  Jim Meyering  <meyering@lucent.com>
93110
93111         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93112         it.
93113         * lib/hash.c (struct hash_table): Define it here instead.
93114
93115 2001-11-22  Jim Meyering  <meyering@lucent.com>
93116
93117         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93118
93119 2001-11-20  Jim Meyering  <meyering@lucent.com>
93120
93121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93122         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93123
93124 2001-11-19  Jim Meyering  <meyering@lucent.com>
93125
93126         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93127         directory.  Use "conftestXXXXXX" as the template.
93128         Suggestion from Paul Eggert.
93129
93130         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93131         immediately, so the test doesn't mistakenly hit the max-open-files
93132         limit.
93133
93134 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93135
93136         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93137         (TEMPORARIES): New macro.
93138         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93139         removes an artificial limitation (e.g. HP-UX 10.20, where
93140         TMP_MAX is 17576).
93141
93142 2001-11-18  Jim Meyering  <meyering@lucent.com>
93143
93144         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93145
93146 2001-11-18  Jim Meyering  <meyering@lucent.com>
93147
93148         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93149         on SunOS 4.
93150
93151         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93152         files will be created before anything else.
93153
93154 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93155
93156         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93157         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93158
93159 2001-11-17  Jim Meyering  <meyering@lucent.com>
93160
93161         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93162         Prompted by a report from Bob Proulx.
93163
93164         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93165         Instead, require UTILS_FUNC_MKSTEMP.
93166
93167 2001-11-17  Jim Meyering  <meyering@lucent.com>
93168
93169         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93170         Now, that's done as part of AC_FUNC_STRTOD.
93171
93172 2001-11-17  Jim Meyering  <meyering@lucent.com>
93173
93174         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93175         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93176         rather than group writable.  Patch by Juan F. Codagnone.
93177
93178         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93179         xrealloc, Instead, include "xalloc.h".
93180
93181         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93182         Remove explicit declarations of xmalloc, xrealloc,
93183         and xstrdup.  Instead, include "xalloc.h".
93184
93185         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93186         unlocked-io.h.
93187         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93188         Likewise.
93189         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93190
93191         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93192         Reported by Padraig Brady.
93193
93194         * lib/mkstemp.c: #undef mkstemp.
93195         Include config.h.
93196         (rpl_mkstemp): Rename from mkstemp.
93197         Protoize.
93198
93199 2001-11-16  Jim Meyering  <meyering@lucent.com>
93200
93201         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93202         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93203         determine the amount of total physical memory, use pstat_getstatic.
93204         HPUX-11 doesn't define _SC_PHYS_PAGES.
93205         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93206         If sysconf couldn't be used to determine the amount of available
93207         physical memory, use both pstat_getstatic and pstat_getdynamic.
93208         Based on a patch from Bob Proulx.
93209
93210 2001-11-10  Jim Meyering  <meyering@lucent.com>
93211
93212         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93213         (jm_PREREQ): Use it.
93214
93215 2001-11-09  Jim Meyering  <meyering@lucent.com>
93216
93217         * m4/jm-macros.m4: Require autoconf-2.52f.
93218         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93219         Use these AC_-prefixed names, not the AM_-prefixed ones.
93220
93221         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93222
93223 2001-11-05  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93226
93227 2001-11-04  Jim Meyering  <meyering@lucent.com>
93228
93229         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93230         $DEFS.
93231
93232 2001-11-03  Jim Meyering  <meyering@lucent.com>
93233
93234         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93235         of AC_DEFUN.
93236
93237         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93238         know the name of the variable in the macro definition.
93239
93240 2001-11-03  Jim Meyering  <meyering@lucent.com>
93241
93242         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93243         in argmatch_to_argument call.
93244
93245         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93246         argument.
93247
93248         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93249         e.g., a fault due to an attempt to free a NULL pointer.
93250
93251 2001-11-01  Jim Meyering  <meyering@lucent.com>
93252
93253         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93254         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93255
93256 2001-11-01  Jim Meyering  <meyering@lucent.com>
93257
93258         * lib/dirfd.c, lib/dirfd.h: New files.
93259         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93260
93261         * lib/hash.c (hash_print) [TESTING]: Clean up.
93262
93263 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93264
93265         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93266         to avoid a warning if -Wall.
93267
93268 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93269
93270         * README: New file
93271         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93272         (per RMS's instructions, this is now the canonical source)
93273         * lgpl/, gpl/: New directories.
93274
93275 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93276
93277         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93278
93279 2001-10-21  Jim Meyering  <meyering@lucent.com>
93280
93281         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93282         this code would end up calling gettext even in packages built
93283         with --disable-nls.
93284         * lib/getopt.c (_): Likewise.
93285         * lib/regex.c (_): Likewise.
93286
93287 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93288
93289         * m4/error.m4 (jm_PREREQ_ERROR):
93290         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93291         AC_FUNC_STRERROR_R does that.
93292         Check for strerror declaration.
93293
93294         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93295         are supposed to have them these days.
93296         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93297         Merge changes from latest Autoconf CVS.
93298         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93299         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93300         POSIX decided to standardize on the int flavor of strerror_r.
93301
93302 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93303
93304         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93305         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93306         Use strerror_r that is only a macro, even if it is not a function.
93307         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93308         (private_strerror): Use prototypes, not old-style function definition.
93309         (print_errno_message): New function.
93310         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93311         char*-flavored one.
93312         (error_tail, error, error_at_line): Use it.
93313
93314 2001-10-11  Jim Meyering  <meyering@lucent.com>
93315
93316         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93317         and quote_n (1, ... to avoid clobbering a buffer.
93318
93319 2001-10-05  Jim Meyering  <meyering@lucent.com>
93320
93321         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93322         hash-pjw.h.
93323         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93324         * lib/hash-pjw.h: New file.
93325
93326 2001-09-30  Jim Meyering  <meyering@lucent.com>
93327
93328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93329         `struct fsstat' has the `f_fstypename' member.
93330         Use that to define FS_TYPE, which is now used to make
93331         the getfsstat link test tighter.
93332
93333 2001-09-30  Jim Meyering  <meyering@lucent.com>
93334
93335         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93336         Include <sys/ucred.h>, for Apple Darwin.
93337         Include sys/mount.h and sys/fs_types.h only if available.
93338         (FS_TYPE): Define.
93339         (read_filesystem_list): Use FS_TYPE.
93340
93341 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93342
93343         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93344         a boolean context.
93345
93346 2001-09-29  Jim Meyering  <meyering@lucent.com>
93347
93348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93349         [one-argument getmntent function]): Include stdio.h before mntent.h.
93350         SunOS 4.1.x needs it for the declaration of `FILE'.
93351         Patch by Volker Borchert.
93352
93353         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93354         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93355         sys/fs_types.h, and make the link-test for getfsstat guard #include
93356         directives with appropriate #if HAVE_*_H tests so that we can
93357         detect getfsstat on Apple Darwin1.3.7 systems.
93358         Reported by Nelson Beebe.
93359         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93360
93361 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93362
93363         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93364         #defines strtoimax.  Also treat the other strto* functions
93365         like strtoimax.
93366
93367         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93368         Check for strtoul and strtoumax,
93369         as those declarations are made even in the signed case.
93370         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93371         Likewise, for strtol and strtoimax.
93372
93373 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93374
93375         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93376         #defines strtoimax.  Also treat the other strto* functions
93377         like strtoimax.
93378
93379         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93380         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93381         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93382
93383 2001-09-26  Jim Meyering  <meyering@lucent.com>
93384
93385         Most macros in unlocked-io.h had the wrong number of arguments.
93386         * lib/gen-uio: New script.
93387         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93388         * lib/unlocked-io.hin: Remove file.
93389         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93390         rather than trying to embed it here.
93391         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93392         Reported by Padraig Brady.
93393
93394 2001-09-25  Volker Borchert  <bt@teknon.de>
93395
93396         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93397         `result'.
93398
93399 2001-09-24  Jim Meyering  <meyering@lucent.com>
93400
93401         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93402
93403 2001-09-23  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93406         instead of the mere test for existence of mntent.h.  The latter
93407         would get a false-positive on AIX 3.4 systems.
93408         In the outer getmntent if-block, don't die if neither of the getmntent
93409         tests succeeds.  Instead, just fall through and continue with the
93410         remaining tests.
93411
93412 2001-09-23  Jim Meyering  <meyering@lucent.com>
93413
93414         * lib/mountlist.c: Remove useless parentheses in #if directives.
93415         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93416         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93417
93418 2001-09-22  Jim Meyering  <meyering@lucent.com>
93419
93420         * m4/gettext.m4: New file.  From gettext.
93421         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93422         * m4/progtest.m4: Likewise
93423         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93424         * m4/glibc21.m4: Likewise.
93425
93426         * m4/libintl.m4: Remove.  No longer used.
93427
93428 2001-09-22  Jim Meyering  <meyering@lucent.com>
93429
93430         * lib/localcharset.c: Update from latest gettext.
93431         * lib/config.charset: Likewise.
93432
93433 2001-09-20  Jim Meyering  <meyering@lucent.com>
93434
93435         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93436         strtoimax.
93437         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93438         strtoumax.
93439
93440 2001-09-20  Jim Meyering  <meyering@lucent.com>
93441
93442         * lib/xstrtol.c (strtoimax): Guard declaration with
93443         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93444         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93445         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93446         (strtoumax): Likewise, for completeness (it wasn't necessary).
93447
93448 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93449
93450         * lib/strtoimax.c (HAVE_LONG_LONG):
93451         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93452         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93453         to work around bug in IBM C compiler.
93454
93455 2001-09-17  Jim Meyering  <meyering@lucent.com>
93456
93457         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93458         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93459         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93460         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93461         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93462         whenever the right hand side need not be expanded by the shell.
93463
93464 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93465
93466         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93467         library.  It's not correct, as some older glibcs are buggy.
93468         fnmatch wasn't fixed until glibc 2.2.
93469
93470         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93471         special shell magic here.
93472
93473 2001-09-16  Jim Meyering  <meyering@lucent.com>
93474
93475         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93476         * m4/jm-macros.m4: Require it.
93477
93478 2001-09-16  Jim Meyering  <meyering@lucent.com>
93479
93480         * lib/mkdir.c: New file.
93481
93482 2001-09-15  Jim Meyering  <meyering@lucent.com>
93483
93484         * m4/jm-macros.m4: Check for help2man.
93485
93486 2001-09-11  Jim Meyering  <meyering@lucent.com>
93487
93488         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93489         The body, by Paul Eggert, was moved here from configure.in.
93490         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93491
93492 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93493
93494         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93495         (jm_PREREQ): Use it.
93496
93497 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93498
93499         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93500         Use ssize_t, not int, to store result of readlink.
93501         Check for ssize_t overflow as well as size_t overflow,
93502         as POSIX says the result of readlink is implementation-defined
93503         when ssize_t overflows.
93504         Remove unnecessary cast to char*.
93505         Use free+malloc instead of realloc, as the storage doesn't need
93506         to be preserved and it's clearer and can be more efficient that way.
93507         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93508         * lib/xreadlink.h (xreadlink): Update prototype.
93509
93510 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93511
93512         * lib/xgetcwd.c: Revert some of the previous change; intead,
93513         fix the HAVE_GETCWD_NULL code to behave more like the
93514         !HAVE_GETCWD_NULL code used to.
93515
93516         Include "xalloc.h".
93517         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93518         invoke xalloc_die.
93519
93520 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93521
93522         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93523         sys/param.h, as pathmax.h includes them.
93524
93525 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93526
93527         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93528         (jm_PREREQ_XGETCWD): New macro.
93529
93530         * m4/getcwd.m4: New file.
93531
93532 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93533
93534         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93535         like the HAVE_GETCWD_NULL code.
93536         Include pathmax.h if not HAVE_GETCWD.
93537         Do not include xalloc.h.
93538         (INITIAL_BUFFER_SIZE): New symbol.
93539         Do not use xmalloc / xrealloc, since the caller is responsible for
93540         handling errors.  Preserve errno around `free' during failure.
93541         Do not overrun buffer when using getwd.
93542
93543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93544
93545         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93546         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93547         getcwd (NULL, 0).
93548
93549 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93550
93551         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93552         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93553         spotted by Jim Meyering.
93554
93555 2001-09-03  Jim Meyering  <meyering@lucent.com>
93556
93557         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93558         failure.
93559
93560 2001-09-02  Jim Meyering  <meyering@lucent.com>
93561
93562         * lib/error.c: Update from GNU libc.
93563
93564 2001-09-01  Jim Meyering  <meyering@lucent.com>
93565
93566         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93567         Used by df.
93568
93569 2001-09-01  Jim Meyering  <meyering@lucent.com>
93570
93571         * lib/xreadlink.c: New file.
93572         * lib/xreadlink.h: New file.
93573         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93574         xreadlink.h.
93575
93576         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93577         doesn't conflict with sparc Solaris 7's definition in
93578         /usr/include/sys/int_types.h.
93579
93580         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93581         files.
93582         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93583         and strncasecmp as r-values.  Unixware didn't have declarations.
93584
93585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93586
93587         * lib/xstrtol.h: Add copyright notice.
93588         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93589         LONGINT_INVALID_SUFFIX_CHAR.
93590
93591 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93592
93593         * lib/xstrtol.c (strtoimax): New decl.
93594
93595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93596
93597         * lib/xgetcwd.c: Don't include pathmax.h.
93598         Include stdlib.h and unistd.h if available.
93599         Include xalloc.h.
93600         (xmalloc, xstrdup, free): Remove decls.
93601         (xgetcwd): Don't assume sizes fit in unsigned.
93602         Check for overflow when computing sizes.
93603         Simplify reallocation code.
93604
93605 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93606
93607         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93608         a directory's st_size can have an arbitrary value, so the old
93609         usage could waste an arbitrary amount of memory.  All uses
93610         changed.
93611         * lib/savedir.h: Update prototype.
93612
93613 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93614
93615         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93616
93617         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93618         old strtoimax.c.
93619
93620         Also, make the following further changes to make this file's
93621         configuration more similar to that of strtol.c:
93622         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93623         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93624         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93625         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93626         changed to signed values.
93627
93628         And make the following changes as well:
93629         Fix copyright notice, as 1999 was missing.
93630         (verify): New macro.
93631         (strtoimax): Check sizes at compile-time, not run-time.
93632         Prefer strtol to strtoll if both work.
93633         (main): Remove; it was not that useful and was a pain to maintain.
93634
93635         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93636
93637 2001-08-31  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93640         Use an initial, malloc'd, buffer of length 128 rather than
93641         a statically allocated one of length 1024.
93642
93643 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93644
93645         Simplify code, partly by assuming autoconf 2.52 semantics.
93646
93647         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93648
93649         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93650         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93651         All uses removed.
93652         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93653         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93654         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93655         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93656         jm_AC_HEADER_INTTYPES_H.
93657         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93658
93659         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93660
93661         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93662         Quote first arg of AC_DEFUN.
93663         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93664         since they are needed to parse the include file even if we need
93665         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93667         but with opposite signedness.
93668
93669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93670
93671         Merge 'exclude' changes from tar 1.13.22.
93672         This fixes one or two unlikely storage allocation overflow bugs,
93673         but doesn't change user-visible behavior otherwise.
93674
93675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93676
93677         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93678         (jm_PREREQ_EXCLUDE): New macro.
93679
93680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93681
93682         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93683         tm to be declared.
93684
93685 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93686
93687         * lib/hash.c: Remove '2001' from copyright notice.
93688
93689 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93690
93691         * lib/full-write.h: New file.
93692         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93693         * lib/full-write.c: Correct credits, as cccp.c no longer
93694         exists and anyway it was so heavily changed from the old cccp
93695         code as to be unrecognizable.  Include full-write.h.
93696         (full_write): Return size_t, with short writes meaning failure.
93697         All callers changed.  This fixes a bug with large buffers
93698         on 64-bit hosts.
93699         * lib/utime.c: Include full-write.h.
93700
93701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93702
93703         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93704         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93705         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93706         Include if available.
93707         (<xalloc.h>): Include
93708         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93709         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93710         collide with FNM macros.
93711         (struct patopts): New struct.
93712         (struct exclude): Use it, as exclude patterns now come with options.
93713         (new_exclude): Support above changes.
93714         (new_exclude, add_exclude_file):
93715         Initial size must now be a power of two to simplify overflow checking.
93716         (free_exclude, fnmatch_no_wildcards): New function.
93717         (excluded_filename): No longer requires options arg, as the options
93718         are determined by add_exclude.  Now returns bool, not int.
93719         (excluded_filename, add_exclude):
93720         Add support for the fancy new exclusion options.
93721         (add_exclude, add_exclude_file): Now takes int options arg.
93722         Check for arithmetic overflow when computing sizes.
93723         (add_exclude_file): xrealloc might modify errno, so don't
93724         realloc until after errno might be used.
93725
93726         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93727         New macros.
93728         (free_exclude): New decl.
93729         (add_exclude, add_exclude_file): Now takes int options arg.
93730         (excluded_filename): No longer requires options arg, as the options
93731         are determined by add_exclude.  Now returns bool, not int.
93732
93733 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93734
93735         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93736
93737 2001-08-27  Jim Meyering  <meyering@lucent.com>
93738
93739         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93740
93741         * lib/version-etc.c (N_): Remove definition.
93742         Revert most of last change.
93743         Instead, simply don't mark the `Copyright...' string for translation.
93744         Based on advice from Paul Eggert.
93745
93746         * lib/strtoxmax.c: Tweak comment.
93747
93748 2001-08-26  Jim Meyering  <meyering@lucent.com>
93749
93750         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93751
93752         * m4/xstrtoimax.m4: New file.
93753         * m4/xstrtoumax.m4: Add comments explaining why we
93754         AC_REPLACE_FUNCS(strtol).
93755
93756 2001-08-26  Jim Meyering  <meyering@lucent.com>
93757
93758         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93759         of copyright with `%s' so translators don't get an untranslated
93760         message in 2002.
93761         (COPYRIGHT_YEAR): Define.
93762         (version_etc): Use fprintf rather than fputs.
93763         Suggestion from Ulrich Drepper.
93764
93765         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93766
93767         * lib/strtoll.c: New file, from GNU libc.
93768         * lib/xstrtoimax.c: New file.
93769
93770         * lib/xstrtol.h: Add xstrtoimax.
93771         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93772         * lib/strtoimax.c: New file.  Likewise, but first define
93773         STRTOUXMAX_SIGNED.
93774
93775         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93776         ...
93777         * lib/strtoxmax.c: ... then renamed to this.
93778
93779 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93780
93781         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93782         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93783         (jm_AC_TYPE_INTMAX_T): New macro.
93784         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93785
93786         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93787
93788         * m4/longlong.m4: Renamed from ulonglong.m4.
93789         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93790         * m4/uintmax_t.m4: Removed.
93791
93792 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93793
93794         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93795         Port to Solaris 8, where 'sed' requires a space after the 'r'
93796         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93797         Redirect output to $tmp just once.
93798
93799 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93800
93801         * lib/addext.c (<errno.h>): Include.
93802         (errno): Declare if not defined.
93803         (addext): Work correctly when pathconf returns -1 and leaves
93804         errno alone because there is no limit.  Also, work even if
93805         pathconf returns a value greater than SIZE_MAX.
93806
93807 2001-08-12  Jim Meyering  <meyering@lucent.com>
93808
93809         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93810         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93811         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93812         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93813         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93814         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93815         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93816         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93817         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93818         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93819         utime.m4, utimes.m4, xstrtoumax.m4:
93820         Quote the first argument in each use of AC_DEFUN.
93821
93822 2001-08-12  Jim Meyering  <meyering@lucent.com>
93823
93824         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93825         Simply `return getcwd (NULL, 0);'.
93826         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93827         Use 1300 as initial value for length, not PATH_MAX.
93828
93829         * lib/pathmax.h: Clean up cpp syntax.
93830
93831 2001-08-12  Jim Meyering  <meyering@lucent.com>
93832
93833         * lib/gettimeofday.c: New file.
93834         * lib/gtod.h: New file.
93835         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93836
93837 2001-08-05  Jim Meyering  <meyering@lucent.com>
93838
93839         * m4/jm-macros.m4: Require autoconf-2.52.
93840
93841 2001-08-04  Jim Meyering  <meyering@lucent.com>
93842
93843         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93844         stmt, to get in sync with glibc.
93845
93846 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93847
93848         The following changes are from gettext 0.10.39 as maintained by
93849         Bruno Haible.
93850
93851         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93852         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93853         with inverted sense.  All uses changed.
93854
93855         * lib/mbswidth.c: Don't include <limits.h>.
93856         Include <stdlib.h> and <string.h> unconditionally.
93857         (iswcntrl, mbsinit, ISCNTRL): New macros.
93858         (mbsnwidth): Use K&R style function declarations.
93859         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93860         can optimize it when MB_CUR_MAX == 1.
93861         The width of control characters is zero, not 1.
93862
93863 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93864
93865         The following changes are from gettext 0.10.39 as maintained by
93866         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93867
93868         * m4/codeset.m4: Upgrade to serial AM1.
93869         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93870         all uses changed.  Quote first arg of AC_DEFUN.
93871         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93872
93873         * m4/iconv.m4: Upgrade to serial AM2.
93874         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93875         Add --with-libconv-prefix.
93876         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93877         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93878         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93879         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93880         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93881
93882         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93883         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93884         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93885         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93886         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93887         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93888         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93889         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93890         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93891
93892         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93893         string.h any more.
93894
93895         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93896         not the default value.
93897
93898         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93899         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93900         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93901         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93902         Also check for iswcntrl, used for wcwidth fallback.
93903         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93904         to Autoconf 2.13.
93905
93906 2001-08-03  Jim Meyering  <meyering@lucent.com>
93907
93908         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93909         as it was in the original.  Reported by Paul Eggert.
93910
93911 2001-07-16  Jim Meyering  <meyering@lucent.com>
93912
93913         * m4/gettimeofday.m4: New file.
93914         Prompted by a report from Bernhard Baehr.
93915
93916 2001-07-15  Jim Meyering  <meyering@lucent.com>
93917
93918         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93919         stuff. Now it's in ../Makefile.cfg.
93920
93921 2001-07-15  Jim Meyering  <meyering@lucent.com>
93922
93923         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93924         (BUILT_SOURCES): Add unlocked-io.h.
93925         (io_functions): Define.
93926         (unlocked-io.h): New rule.
93927         (DISTCLEANFILES): Add unlocked-io.h.
93928         (all-local): Depend on unlocked-io.h, to ensure it is created.
93929
93930         * lib/unlocked-io.hin: New file
93931
93932         * lib/regex.c: Update from glibc.
93933
93934 2001-07-05  Jim Meyering  <meyering@lucent.com>
93935
93936         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93937         recommendation.
93938         (libfetish_a_SOURCES): Put all .h files here instead.
93939         Remove a thus-exposed (better checks in automake) duplicate and
93940         two unnecessary .h files.
93941
93942 2001-07-04  Jim Meyering  <meyering@lucent.com>
93943
93944         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93945         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93946         distcheck failure.
93947
93948 2001-07-02  Jim Meyering  <meyering@lucent.com>
93949
93950         The following changes were prompted by suggestions from Bruno Haible.
93951
93952         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93953         is now generated.
93954         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93955         definition of EXTRA_DIST.
93956         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93957         ensure that the generated file is created/updated whenever the list
93958         of $(unlocked_functions) is changed.
93959         (jm-glibc-io.m4): New rule.
93960         (unlocked-io.h): New rule -- currently unused.
93961
93962 2001-06-24  Jim Meyering  <meyering@lucent.com>
93963
93964         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93965         unmatched right bracket, rather than kludging it with an extra,
93966         falsely-matching quote in a comment.  Patch by Akim Demaille.
93967
93968 2001-06-11  Jim Meyering  <meyering@lucent.com>
93969
93970         * lib/regex.c: Update from GNU libc.
93971
93972 2001-05-27  Jim Meyering  <meyering@lucent.com>
93973
93974         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93975         Check for ut_type in struct utmp.
93976
93977 2001-05-27  Jim Meyering  <meyering@lucent.com>
93978
93979         * lib/readutmp.h (UT_TYPE): Define.
93980
93981 2001-05-24  Jim Meyering  <meyering@lucent.com>
93982
93983         * lib/argmatch.c: Include "quote.h".
93984         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93985         quote function.  Reported by Göran Uddeborg.
93986
93987 2001-05-22  Jim Meyering  <meyering@lucent.com>
93988
93989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93990         now that we use the package-supplied version unconditionally.
93991         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93992
93993 2001-05-21  Jim Meyering  <meyering@lucent.com>
93994
93995         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93996         shell syntax errors.
93997
93998 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93999
94000         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94001
94002 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94003
94004         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94005         Don't bother to check library strftime, since
94006         we'll be using our own my_strftime function anyway.
94007         Define my_strftime instead of strftime.
94008
94009 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94010
94011         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94012         which is not yet declared.
94013
94014 2001-05-15  Jim Meyering  <meyering@lucent.com>
94015
94016         * m4/regex.m4: Use proper quoting so brackets appear in the test
94017         program.
94018         Reported by, and with help from, Bruno Haible.
94019
94020 2001-05-13  Jim Meyering  <meyering@lucent.com>
94021
94022         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94023         undefined.
94024
94025 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94026
94027         dirname code cleanup.  base_name now behaves more compatibly
94028         with POSIX basename when given file names that have trailing
94029         slashes, and similarly for dir_name.  Add new primitives
94030         base_len and dir_len.  Put the directory-name-related decls
94031         into dirname.h.
94032
94033         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94034         * lib/backupfile.c (base_name): Likewise.
94035         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94036         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94037         * lib/makepath.c (strip_trailing_slashes): Likewise.
94038         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94039         ISSLASH): Likewise.
94040         * lib/rename.c (strip_trailing_slashes): Likewise.
94041         * lib/same.c (base_name): Likewise.
94042         * lib/stripslash.c (ISSLASH): Likewise.
94043
94044         * lib/addext.c: Include <dirname.h> after size_t is defined.
94045         * lib/backupfile.c: Likewise.
94046
94047         * lib/addext.c (addext): Use base_len to trim redundant
94048         trailing slashes instead of doing it ourselves.
94049         But do not trim the last slash if it is not redundant.
94050
94051         * lib/backupfile.c (find_backup_file_name,
94052         max_backup_version): Use base_len instead of rolling it ourselves.
94053         Handle the case of "" and (on DOS) "C:" correctly.
94054
94055         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94056         needed. Include <string.h>, <dirname.h>.
94057         (base_name): Allow file names ending in slashes, other than names
94058         that are all slashes.  In this case, return the basename followed
94059         by the slashes.  This is more general, and can be used in places
94060         where the original base_name purposely had an assertion failure.
94061         (base_len): New function.
94062
94063         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94064         Do not include <assert.h>; no longer needed.
94065         Include xalloc.h.
94066         (memrchr): Remove decl.
94067         (dir_name_r): Remove.
94068         (dir_len): Renamed from dirlen.  All callers changed.
94069         Rewrite in terms of base_name, for simplicity and consistency.
94070         (dir_name): Never return NULL.  All callers changed.
94071         Do not include <stdlib.h> in test program; no longer needed.
94072         return 0; is fine for test program.
94073
94074         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94075         New macros.
94076         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94077
94078         * lib/path-concat.c (path_concat): Use base_len to compute
94079         base length, not strlen; this means we cannot rely on memcpy
94080         to null-terminate.
94081
94082         * lib/same.c (STREQ): Remove.
94083         (same_name): Handle the case where the basename ends in trailing '/'.
94084
94085         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94086         a slash was stripped.  Do not strip the last slash after a
94087         file system prefix.
94088
94089 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94090
94091         * lib/Makefile.am (libfetish_a_SOURCES):
94092         Add strftime.c, since we now compile it on all hosts.
94093
94094         * lib/strftime.c (my_strftime):
94095         Define to nstrftime if emacs, but only if my_strftime is not defined.
94096         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94097         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94098         Add one more extra argument: a nanoseconds value.
94099         All uses changed.
94100         (ns): New macro.
94101         (my_strftime function): Add %N format.
94102         (emacs_strftimeu): Renamed from emacs_strftime,
94103         with extra ut argument.
94104
94105 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94106
94107         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94108
94109 2001-04-21  Jim Meyering  <meyering@lucent.com>
94110
94111         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94112         doesn't interfere.
94113
94114 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94115
94116         * m4/ftruncate.m4: Check for chsize.
94117         Link with ftruncate.o unconditionally if ftruncate is missing.
94118         This was required when cross-compiling to i586-mingw32msvc.
94119
94120 2001-04-08  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94123         recomputed; that's necessary when the offset spans a DST transition.
94124         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94125
94126 2001-04-02  Jim Meyering  <meyering@lucent.com>
94127
94128         * lib/regex.h, regex.c: Update from GNU libc.
94129
94130 2001-03-24  Jim Meyering  <meyering@lucent.com>
94131
94132         * m4/jm-macros.m4: Require autoconf-2.49d.
94133
94134 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94135
94136         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94137
94138 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94139
94140         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94141
94142 2001-03-17  Jim Meyering  <meyering@lucent.com>
94143
94144         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94145         now that the version in autoconf is equivalent.
94146         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94147
94148         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94149         Suggestion from Akim Demaille.
94150
94151         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94152         (jm_PREREQ_TEMPNAME): New function.
94153
94154 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94155
94156         * lib/tempname.c (uint64_t): Define to uintmax_t if
94157         not defined, and if UINT64_MAX is not defined.
94158         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94159         Reported by John David Anglin.
94160
94161 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94162
94163         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94164         resolve alias if codeset is empty.
94165         * lib/config.charset (BeOS): Use wildcard syntax.
94166
94167 2001-03-13  Jim Meyering  <meyering@lucent.com>
94168
94169         * lib/path-concat.c (path_concat)
94170         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94171         concatenating e.g., `C:' and `foo'.
94172         From Bruno Haible.
94173
94174 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94175
94176         * lib/localcharset.c (locale_charset): Don't use
94177         setlocale(LC_CTYPE,NULL). Don't return NULL.
94178         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94179
94180 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94181
94182         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94183         support for DOS/DJGPP.
94184
94185 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94186
94187         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94188         lacks mkstemp.  Compile our own tempname.c if we compile our own
94189         mkstemp.c, as mkstemp relies on tempname.
94190
94191 2001-03-01  Jim Meyering  <meyering@lucent.com>
94192
94193         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94194         AH_VERBATIM really does output its argument verbatim.
94195
94196 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94197
94198         * lib/Makefile.am (libfetish_a_SOURCES):
94199         Add dup-safer.c, fopen-safer.c.
94200         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94201
94202         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94203         * lib/unistd-safer.h: New files.
94204
94205 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94206
94207         The mkstemp replacement is taken from glibc 2.2.2, with some
94208         portability fixes for use outside glibc, as follows:
94209
94210         * lib/tempname.c (struct_stat64): New macro.
94211         (direxists, __gen_tempname): Use it.
94212         This avoids a portability problem with Solaris 8.
94213
94214         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94215         (<stddef.h>, <stdint.h>, <string.h>):
94216         Include only if STDC_HEADERS || _LIBC.
94217         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94218         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94219         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94220         (__set_errno): Define this macro if <errno.h> doesn't.
94221         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94222         Define these macros if <stdio.h> doesn't.
94223         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94224         Define these macros if <sys/stat.h>
94225         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94226         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94227         __xstat64): Define if not _LIBC.
94228         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94229         (__gen_tempname): Invoke gettimeofday only if
94230         HAVE_GETTIMEOFDAY || _LIBC;
94231         otherwise, fall back on plain "time".
94232         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94233
94234         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94235
94236         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94237
94238 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94239
94240         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94241
94242 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94243
94244         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94245         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94246         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94247         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94248
94249 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94250
94251         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94252         Remove workaround macros for hosts that have mbrtowc but not
94253         mbstate_t, as we now insist on proper declarations for both
94254         before using mbrtowc.
94255
94256 2001-02-17  Jim Meyering  <meyering@lucent.com>
94257
94258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94259         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94260         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94261         UnixWare 7.1.1.
94262
94263         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94264         rather than AC_CACHE_VAL.
94265
94266 2001-02-17  Jim Meyering  <meyering@lucent.com>
94267
94268         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94269         around included file name.
94270
94271         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94272
94273         * lib/strftime.c: Update from GNU libc (the only changes were to
94274         comments).
94275
94276 2001-02-17  Jim Meyering  <meyering@lucent.com>
94277
94278         * lib/regex.c: Update from libc.
94279
94280 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94281
94282         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94283         clash.
94284
94285 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94286
94287         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94288         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94289         Reported by Mark Hounschell via Paul Eggert.
94290
94291 2001-02-07  Jim Meyering  <meyering@lucent.com>
94292
94293         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94294
94295 2001-02-05  Jim Meyering  <meyering@lucent.com>
94296
94297         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94298         it includes the patch required for `large file' support with at least
94299         HP-UX's 10.20 /bin/cc.
94300
94301 2001-02-03  Jim Meyering  <meyering@lucent.com>
94302
94303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94304         AS_IF, now that it works once again (mysteriously).
94305         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94306
94307 2001-01-30  Jim Meyering  <meyering@lucent.com>
94308
94309         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94310         * m4/chown.m4: Rename conftestchown to conftest.chown.
94311         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94312         s/conftestdir2/conftest.d2/.
94313         * m4/utimes.m4: s/conftestdata/conftest.data/
94314         Inspired by Pavel Roskin's change in autoconf.
94315
94316 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94317
94318         * lib/config.charset: Update for FreeBSD 4.2.
94319
94320 2001-01-27  Jim Meyering  <meyering@lucent.com>
94321
94322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94323         a use of AS_IF.
94324         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94325
94326 2001-01-26  Jim Meyering  <meyering@lucent.com>
94327
94328         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94329         quotearg.c includes it.
94330
94331 2001-01-26  Jim Meyering  <meyering@lucent.com>
94332
94333         * lib/quotearg.c: Include stddef.h.
94334         * lib/quote.c: Include stddef.h.
94335         Reported by Axel Kittenberger.
94336
94337         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94338         line in double quotes so that it evokes a better diagnostic.
94339         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94340         Reported by Axel Kittenberger.
94341
94342 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94343
94344         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94345         as if it was a `charset'.
94346
94347 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94348
94349         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94350         has const.
94351
94352 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94353
94354         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94355         to avoid a warning.  Add back 'const' to inptr.
94356
94357 2001-01-20  Jim Meyering  <meyering@lucent.com>
94358
94359         Be sure that headers are checked before used in code compiled
94360         for the type checks.
94361         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94362         In place of that, invoke jm_CHECK_ALL_TYPES.
94363         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94364         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94365         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94366         The check for ssize_t was mistakenly run before the test for unistd.h.
94367
94368         The configure-time check for stdbool.h was missing.
94369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94370         (jm_PREREQ_HASH): New function.
94371
94372 2001-01-17  Jim Meyering  <meyering@lucent.com>
94373
94374         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94375         for autoconf-2.49c.
94376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94377
94378 2001-01-16  Jim Meyering  <meyering@lucent.com>
94379
94380         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94381         From Bruno Haible.
94382
94383 2001-01-14  Jim Meyering  <meyering@lucent.com>
94384
94385         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94386         foo and bar.  Create conftestdir/ in the script, not in the C code.
94387         Remove directories in the script, not in the C code.
94388         Remove conftestdir{,2} before trying to create the directory.
94389         Make the entire configure script fail if the mkdir fails.
94390
94391 2001-01-14  Jim Meyering  <meyering@lucent.com>
94392
94393         * lib/rename.c: New file.  From Volker Borchert.
94394         Include stdlib.h, string.h or strings.h, and xalloc.h.
94395         Use strip_trailing_slashes rather than open-coding it.
94396
94397 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94398
94399         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94400
94401 2001-01-03  Jim Meyering  <meyering@lucent.com>
94402
94403         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94404         of local `inptr' to avoid warning with some system declarations of
94405         iconv.
94406
94407 2001-01-02  Volker Borchert  <bt@teknon.de>
94408
94409         * m4/rename.m4: New file.
94410         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94411
94412 2001-01-01  Jim Meyering  <meyering@lucent.com>
94413
94414         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94415         even on systems with utmpx.h.  It's necessary for the declaration of
94416         utmp's ut_user member.  Reported by Andreas Jaeger.
94417
94418         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94419         available. They are required for the declarations of getgrgid and
94420         getpwuid resp.
94421         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94422         Reported by Andreas Jaeger.
94423
94424 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94425
94426         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94427         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94428         so `make install' also works in VPATH builds.
94429
94430 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94431
94432         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94433         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94434         can be used in subdirectories.
94435
94436 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94437
94438         * lib/modechange.c: Do not assume that mode_t uses the
94439         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94440         the other-execute bit of FOO even if S_IXOTH != 1.
94441
94442         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94443         WOTH, XOTH, ALLM): New macros.
94444         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94445          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94446         Use them.
94447         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94448         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94449         (mode_compile):
94450         No need to use uintmax_t; unsigned long is long enough.
94451         Don't bother to get suffix since we don't use it.
94452
94453 2000-12-26  Jim Meyering  <meyering@lucent.com>
94454
94455         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94456         better with autoheader.
94457
94458 2000-12-24  Jim Meyering  <meyering@lucent.com>
94459
94460         * lib/hash.c (is_prime): Return explicit boolean values.
94461         (hash_get_first): Return NULL to appease Irix5.6's 89.
94462         Reported by Nelson Beebe.
94463
94464 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94465
94466         * lib/localcharset.c (locale_charset): Add support for Win32.
94467
94468 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94469
94470         * lib/physmem.h, lib/physmem.c: New files.
94471
94472         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94473         (noinst_HEADERS): Add physmem.h.
94474
94475         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94476         't' for compatibility with Solaris 8 sort.
94477
94478 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94479
94480         * lib/config.charset: Add support for BeOS.
94481
94482 2000-12-17  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94485         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94486
94487 2000-12-16  Jim Meyering  <meyering@lucent.com>
94488
94489         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94490         N and M) would have treated it like `chown N:N FILE'.
94491
94492         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94493
94494 2000-12-16  Jim Meyering  <meyering@lucent.com>
94495
94496         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94497         SHELLS_FILE to a file name that's useful on djgpp systems.
94498         Include stdlib.h.
94499         (ADDITIONAL_DEFAULT_SHELLS): Define.
94500         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94501         Based mostly on a patch from Prashant TR.
94502
94503 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94504
94505         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94506         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94507         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94508
94509 2000-12-08  Andreas Schwab  <schwab@suse.de>
94510
94511         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94512         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94513
94514 2000-12-07  Jim Meyering  <meyering@lucent.com>
94515
94516         * lib/stripslash.c (ISSLASH): Define.
94517         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94518         `/'.
94519         From Prashant TR.
94520
94521         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94522         (dir_name_r): Declare this function as static.
94523         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94524         manifest itself on a name containing a mix of slashes and
94525         backslashes.
94526         Make this function work with names starting with a DOS-style
94527         drive letter and colon prefix.
94528         (dir_name): Append `.' if necessary.
94529         Based mostly on patches from Prashant TR and Eli Zaretskii.
94530
94531         * lib/dirname.h (dir_name_r): Remove prototype.
94532
94533 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94534
94535         * m4/off_t-format.m4: Remove this file.
94536         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94537
94538 2000-12-06  Jim Meyering  <meyering@lucent.com>
94539
94540         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94541         replacement strtoull, we may well need the replacement strtoul, too.
94542         Check for declarations of strtoul and strtoull.
94543         Check for strtol.  Mainly as a cue to cause automake to include
94544         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94545         Check for limits.h -- strtol.c needs it.
94546
94547 2000-12-05  Jim Meyering  <meyering@lucent.com>
94548
94549         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94550
94551 2000-12-04  Jim Meyering  <meyering@lucent.com>
94552
94553         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94554         Also include memory.h, stdlib.h, unistd.h if appropriate.
94555         Reported by Andreas Jaeger (conflicting declaration of malloc).
94556
94557 2000-12-02  Jim Meyering  <meyering@lucent.com>
94558
94559         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94560         * m4/jm-macros.m4 (jm_MACROS): require it.
94561
94562 2000-12-02  Jim Meyering  <meyering@lucent.com>
94563
94564         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94565
94566 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94567
94568         * lib/memrchr.c: Include <config.h> before any system include file.
94569
94570 2000-11-30  Jim Meyering  <meyering@lucent.com>
94571
94572         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94573
94574 2000-11-30  Jim Meyering  <meyering@lucent.com>
94575
94576         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94577
94578 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94579
94580         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94581
94582 2000-11-26  Jim Meyering  <meyering@lucent.com>
94583
94584         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94585
94586 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94587
94588         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94589         size of (size_t) -1; it's not portable.
94590
94591 2000-11-17  Jim Meyering  <meyering@lucent.com>
94592
94593         * lib/strstr.c: Update from GNU libc.
94594
94595 2000-11-17  Akim Demaille  <akim@epita.fr>
94596
94597         * lib/obstack.h: Formatting changes.
94598         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94599         prevent type checking.
94600         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94601         cast the value to (void *): assigning a `foo *' to a `void *'
94602         variable is valid.
94603         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94604
94605 2000-11-16  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94608
94609 2000-11-11  Jim Meyering  <meyering@lucent.com>
94610
94611         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94612
94613 2000-11-10  Jim Meyering  <meyering@lucent.com>
94614
94615         * lib/obstack.h: Update from GNU libc.
94616         * lib/obstack.c: Likewise.
94617
94618 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94619
94620         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94621
94622 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94623
94624         * lib/getusershell.c (setusershell): Use rewind rather than
94625         fseek/fseeko, to avoid configuration hassles with fseeko.
94626         Don't bother opening SHELLS_FILE if shellstream is NULL;
94627         it's not necessary.
94628
94629 2000-11-05  Jim Meyering  <meyering@lucent.com>
94630
94631         * lib/makepath.h (make_dir): Declare.
94632         * lib/makepath.c (make_dir): Remove `static' attribute.
94633         Tweak a comment.
94634
94635 2000-11-04  Jim Meyering  <meyering@lucent.com>
94636
94637         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94638
94639 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94640
94641         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94642         last one in a bucket, advance to the next bucket.
94643
94644 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94645
94646         * lib/fnmatch.c: Do not comment out all the code if we are using
94647         the GNU C library, because in some cases we are replacing buggy
94648         code in the GNU C library itself.
94649
94650 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94651
94652         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94653         (regex_compile): Catch bogus \(\1\).
94654
94655 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94656
94657         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94658         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94659         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94660
94661 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94662
94663         * lib/error.h, getline.h, modechange.h:
94664         Remove "2000" from Copyright line, as the file hasn't been
94665         changed this year other than in the copyright notice.
94666
94667         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94668         was changed this year.
94669
94670 2000-10-29  Jim Meyering  <meyering@lucent.com>
94671
94672         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94673         renaming.
94674         * m4/ls-mntd-fs.m4: Likewise
94675
94676 2000-10-29  Jim Meyering  <meyering@lucent.com>
94677
94678         * lib/xstat.in: Fix grammar in comment.
94679
94680 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94681
94682         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94683         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94684         doesn't define __restrict_arr.
94685
94686 2000-10-28  Jim Meyering  <meyering@lucent.com>
94687
94688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94689         (jm_PREREQ_MEMCHR): New function.
94690
94691 2000-10-28  Jim Meyering  <meyering@lucent.com>
94692
94693         * lib/memchr.c: Update from libc.
94694         Adjust for portability:
94695         [HAVE_STDLIB_H]: Include stdlib.h.
94696         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94697         Undef __memchr, too.
94698         [!weak_alias]: Define __memchr to memchr.
94699
94700         * lib/regex.c: Update from libc.
94701         * lib/regex.h: Likewise.
94702         * lib/getopt1.c: Likewise.
94703         * lib/memcmp.c: Likewise.
94704
94705         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94706         Avoid using fseek, when possible -- it's broken by design.
94707         Patch by Ulrich Drepper.
94708
94709 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94710
94711         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94712         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94713         Giving in to popular pressure to shut up the compiler with casts.
94714
94715 2000-10-26  Jim Meyering  <meyering@lucent.com>
94716
94717         * lib/strftime.c: Update from libc.
94718
94719 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94720
94721         * regex.c: More `unsigned char' -> `re_char' changes.
94722         Also change several `int' into `re_wchar_t'.
94723         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94724         (PUSH_FAILURE_POINTER): Don't cast any more.
94725         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94726         We want GCC to complain, since this piece of code makes
94727         re_match non-reentrant, which *should* be fixed.
94728         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94729         (EXTEND_BUFFER): Use RETALLOC.
94730         (SET_LIST_BIT): Don't cast.
94731         (re_wchar_t): New type.
94732         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94733         that those two functions will always properly return.
94734         (IMMEDIATE_QUIT_CHECK): Cast to void.
94735         (analyse_first): Use recursion rather than an explicit stack.
94736         (re_compile_fastmap): Can't fail anymore.
94737         (re_search_2): Don't check re_compile_fastmap for failure.
94738         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94739         Now also sets the new value (passed in a new argument).
94740         (re_match_2_internal): Use it.
94741         Also, use a new var `reg' of type size_t when looping through regs
94742         rather than reuse the inappropriate `mcnt'.
94743
94744 2000-10-25  Jim Meyering  <meyering@lucent.com>
94745
94746         * lib/obstack.c: Update from libc.
94747
94748 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94749
94750         * regex.c (regex_compile): Change the way of handling a range from
94751         a char less than 256 to a char not less than 256.
94752
94753 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94754
94755         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94756         NT-Emacs only.
94757         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94758         so that re_search functions only quit when callers expect them to.
94759
94760 2000-10-23  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94763         wrong.  That set_locale call must not have any side effects.
94764         From Paul Eggert.
94765
94766 2000-10-22  Jim Meyering  <meyering@lucent.com>
94767
94768         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94769         [CYCLIC]: Remove now-unused definition.
94770
94771         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94772         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94773         Suggestion from Ulrich Drepper.
94774
94775 2000-10-21  Jim Meyering  <meyering@lucent.com>
94776
94777         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94778         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94780
94781 2000-10-21  Jim Meyering  <meyering@lucent.com>
94782
94783         * lib/dirname.c (memrchr): Declare if necessary.
94784         (dir_name): Remove the restriction that there be no
94785         trailing slashes.  Now, this code skips past them, effectively
94786         ignoring them.
94787         [TEST_DIRNAME] (main): New unit tests.
94788
94789         * lib/memrchr.c: New file from GNU libc.
94790         Undef __memrchr, too.
94791         [!weak_alias]: Define __memrchr to memrchr.
94792         Guard weak_alias use with `#ifdef weak_alias'.
94793
94794 2000-10-21  Jim Meyering  <meyering@lucent.com>
94795
94796         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94797         (dir_name): Use dir_name_r.
94798         * lib/dirname.h (dir_name_r): Declare it.
94799
94800 2000-10-17  Jim Meyering  <meyering@lucent.com>
94801
94802         * lib/quote.h (PARAMS): Define and use.
94803         Reported by Akim Demaille.
94804
94805         * lib/getopt.c: Update from libc.
94806
94807 2000-10-16  Jim Meyering  <meyering@lucent.com>
94808
94809         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94810         setlocale.
94811         From Jan Fedak.
94812
94813 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94814
94815         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94816
94817 2000-09-25  Jim Meyering  <meyering@lucent.com>
94818
94819         * lib/md5.h (rol): Define (from GnuPG).
94820
94821         * lib/sha.c: Give credit (GnuPG) where due.
94822         (M): Use rol rather than open-coding it.
94823         Add a FIXME comment.
94824
94825 2000-09-21  Jim Meyering  <meyering@lucent.com>
94826
94827         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94828         Reported by Michael Stone.
94829
94830 2000-09-20  Jim Meyering  <meyering@lucent.com>
94831
94832         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94833         (noinst_HEADERS): Add sha.h.
94834         Based on code from Scott G. Miller and from GnuPG.
94835
94836 2000-09-18  Jim Meyering  <meyering@lucent.com>
94837
94838         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94839         LIBS. Otherwise, everyone ends up linking with -lelf for some
94840         configurations.
94841         Reported by Mike Stone.
94842
94843 2000-09-15  Jim Meyering  <meyering@lucent.com>
94844
94845         * lib/regex.c: Update from libc.
94846
94847 2000-09-10  Jim Meyering  <meyering@lucent.com>
94848
94849         * lib/getopt.c (_getopt_internal): Update from glibc.
94850
94851 2000-09-09  Jim Meyering  <meyering@lucent.com>
94852
94853         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94854         think it should be used as a general replacement for isascii.
94855         * lib/fnmatch.c: Likewise.
94856         * lib/mbswidth.c: Likewise
94857         * lib/regex.c: Likewise.
94858
94859         Don't use atoi.
94860         * lib/userspec.c: Include sys/param.h and limits.h.
94861         Include xstrtol.h.
94862         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94863         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94864         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94865         UID, GID.  Check range.
94866
94867 2000-09-06  Jim Meyering  <meyering@lucent.com>
94868
94869         * lib/getopt.c (_getopt_internal): Update from glibc.
94870
94871 2000-08-30  Jim Meyering  <meyering@lucent.com>
94872
94873         * lib/strftime.c: Merge in changes from GNU libc.
94874
94875 2000-08-26  Jim Meyering  <meyering@lucent.com>
94876
94877         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94878         * m4/fpending.m4: New file.
94879
94880 2000-08-26  Jim Meyering  <meyering@lucent.com>
94881
94882         * lib/closeout.c: Include "__fpending.h".
94883         (close_stdout_status): Return right away if there's nothing to flush.
94884
94885         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94886         * lib/__fpending.c: New file.
94887         * lib/__fpending.h: New file.
94888
94889 2000-08-20  Jim Meyering  <meyering@lucent.com>
94890
94891         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94892         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94893         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94894
94895 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94896
94897         Improve fileutils installation on systems where running
94898         programs (like install) can't be unlinked.
94899         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94900         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94901
94902 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94903
94904         Standardize on "memory exhausted" instead of "Memory exhausted"
94905         or "virtual memory exhausted".
94906         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94907         "virtual memory exhausted".
94908         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94909         our own message.
94910         * lib/userspec.c (parse_user_spec): Likewise.
94911         * lib/bumpalloc.h: comment fix
94912         * lib/same.c, userspec.c: Include xalloc.h.
94913
94914         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94915         not char *const and pointing to a constant array.
94916         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94917         (xrealloc): Comment fix.
94918
94919         * lib/userspec.c (parse_user_spec):
94920         Don't translate a message until just before returning,
94921         to avoid unnecessary translation.
94922
94923 2000-08-07  Jim Meyering  <meyering@lucent.com>
94924
94925         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94926         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94927         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94928         getgroups.c, gethostname.c, getopt.h, group-member.c,
94929         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94930         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94931         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94932         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94933         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94934         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94935         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94936         yesno.c: Back out Copyright date changes for each file with no change
94937         this year.  This eases coordination with other programs using the same
94938         source code modules.  From Paul Eggert.
94939
94940 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94941
94942         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94943         not char, for compatibility with glibc 2.1.3 strftime.c.
94944
94945 2000-08-03  Greg McGary  <greg@mcgary.org>
94946
94947         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94948         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94949         (EXTEND_BUFFER): Use them.
94950
94951 2000-08-01  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/dirname.c (ISSLASH): Define.
94954         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94955         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94956         both `\' and `/' may be use as path separators.
94957         Based on a patch from Prashant TR.
94958
94959 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94960
94961         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94962         slot vector a constant, since it might get modified.
94963
94964 2000-07-31  Jim Meyering  <meyering@lucent.com>
94965
94966         * lib/xmalloc.c: Use `virtual memory exhausted', not
94967         `Memory exhausted'.
94968         * lib/obstack.c (print_and_abort): Likewise.
94969
94970 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94971
94972         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94973         buffer, so that the caller can always quote one small
94974         component of a "memory exhausted" message in slot 0.
94975         From a suggestion by Jim Meyering.
94976
94977 2000-07-30  Jim Meyering  <meyering@lucent.com>
94978
94979         * lib/makepath.c (make_path): Quote the other instance, too.
94980
94981         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94982         (STATIC_BUF_SIZE): Define.
94983         (quotearg_n_options): Use only statically allocated storage when
94984         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94985         than STATIC_BUF_SIZE.
94986
94987 2000-07-29  Jim Meyering  <meyering@lucent.com>
94988
94989         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94990         * lib/dirname.c (dir_name): Likewise.
94991
94992         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94993         `/'.
94994
94995         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94996         (dir_name): Assert that there are no trailing slashes.
94997
94998 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94999
95000         * lib/mbswidth.h (mbswidth): Add a flags argument.
95001         (mbswidth): New declaration.
95002         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95003         * lib/mbswidth.c (mbswidth): Add a flags argument.
95004         (mbsnwidth): New function.
95005
95006 2000-07-24  Jim Meyering  <meyering@lucent.com>
95007
95008         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95009
95010 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95011
95012         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95013
95014 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95015
95016         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95017         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95018         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95019         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95020         invoke multibyte primitives.
95021
95022 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95023
95024         * lib/quotearg.c:
95025         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95026         so that mbstate_t is always defined.
95027
95028         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95029         be 1 in at least one GCC installation, and this configuration
95030         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95031         performance on hosts that have mbrtowc but have only unibyte
95032         locales, but I assume these hosts are rare.
95033
95034 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95035
95036         * lib/mbswidth.c (_XOPEN_SOURCE):
95037         Don't define; this causes problems on Solaris 7.
95038         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95039
95040 2000-07-23  Jim Meyering  <meyering@lucent.com>
95041
95042         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95043         too: getgrgid, getpwuid, getuid.
95044
95045 2000-07-23  Jim Meyering  <meyering@lucent.com>
95046
95047         * lib/basename.c (base_name): Add an assertion.
95048
95049 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95050
95051         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95052         shadow its mbsinit function.
95053
95054 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95055
95056         * lib/mbswidth.h: New file.
95057         * lib/mbswidth.c: New file.
95058         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95059         (noinst_HEADERS): Add mbswidth.h.
95060
95061 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95062
95063         * lib/config.charset: Add support for FreeBSD. Improve support for
95064         HP-UX and IRIX 6.
95065
95066 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95067
95068         * m4/mbswidth.m4: New file.
95069         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95070
95071 2000-07-15  Jim Meyering  <meyering@lucent.com>
95072
95073         * lib/makepath.c: Include quote.h.
95074         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95075         corresponding argument in a `quote (...)' call.
95076         Give better diagnostics.
95077
95078         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95079         (noinst_HEADERS): Add quote.h.
95080
95081         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95082         from tar's src/misc.c.
95083         * lib/quote.h: New file.  Prototypes for same.
95084
95085 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95086
95087         From a suggestion by Bruno Haible.
95088         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95089         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95090         to decide whether to define the BeOS workaround macro;
95091         this adjusts to the change to AC_MBSTATE_T.
95092
95093 2000-07-14  Jim Meyering  <meyering@lucent.com>
95094
95095         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95096         jm_AC_TYPE_UINTMAX_T.
95097
95098 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95099
95100         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95101
95102         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95103         quotearg_buffer_restyled): Add support for
95104         clocale_quoting_style.  Undo previous change to
95105         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95106         and "{RIGHT QUOTATION MARK}" msgids.
95107
95108 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95109
95110         From a suggestion by Bruno Haible.
95111         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95112         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95113         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95114         and mbstate_t, to a single-part test that simply defines mbstate_t.
95115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95116         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95117
95118 2000-07-10  Jim Meyering  <meyering@lucent.com>
95119
95120         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95121
95122         * m4/gnu-source.m4: Output to confdefs.h directly.
95123         Suggestion from Akim Demaille.
95124
95125 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95126
95127         The old behavior of quoting `like this' doesn't look good with
95128         newer, ISO-style fonts.  See:
95129         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95130
95131         Instead, quote "like this" by default.  Let the translator
95132         tailor the locale-specific quoting behavior by providing
95133         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95134
95135         * lib/quotearg.c (N_): New macro.
95136         (gettext_default): New function.
95137         (quotearg_buffer_restyled): Use
95138         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95139         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95140
95141 2000-07-09  Jim Meyering  <meyering@lucent.com>
95142
95143         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95144         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95145
95146         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95148
95149 2000-07-09  Jim Meyering  <meyering@lucent.com>
95150
95151         * lib/Most files: Update copyright dates to include 2000.
95152
95153 2000-07-08  Jim Meyering  <meyering@lucent.com>
95154
95155         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95156         if not defined.
95157         (xgethostname): Remove now-unnecessary #ifdef.
95158         Move declaration of `err' into loop where it's used.
95159
95160 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95161         and Bruno Haible  <haible@clisp.cons.org>
95162
95163         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95164         only if the test for an object-type mbstate_t fails.  This
95165         prevents us from mistakenly reporting that mbstate_t is a
95166         system object type after we "#define mbstate_t int" to work
95167         around its lack.
95168
95169 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95170         and Bruno Haible  <haible@clisp.cons.org>
95171
95172         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95173
95174 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95175
95176         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95177         to strerror_r.
95178         Include <ctype.h> for use of isalpha.
95179
95180 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95181
95182         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95183         by allocating a larger buffer. Test the gethostname return value for
95184         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95185         returns an error and ENAMETOOLONG isn't defined.
95186
95187 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95188
95189         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95190         dimension.
95191
95192 2000-07-04  Jim Meyering  <meyering@lucent.com>
95193
95194         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95195         of the deprecated AC_CHECKING.
95196
95197 2000-07-04  Jim Meyering  <meyering@lucent.com>
95198
95199         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95200         Reported by Bruno Haible.
95201
95202 2000-07-04  Jim Meyering  <meyering@lucent.com>
95203
95204         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95205         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95206         lacks mbrtowc.
95207
95208 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95209
95210         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95211         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95212
95213 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95214         and Bruno Haible  <haible@clisp.cons.org>
95215
95216         * lib/quotearg.c (mbrtowc):
95217         Assign to *pwc, and return 1 only if result is nonzero.
95218         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95219
95220 2000-07-03  Jim Meyering  <meyering@lucent.com>
95221
95222         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95223
95224 2000-07-03  Jim Meyering  <meyering@lucent.com>
95225
95226         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95227         This is necessary to get a definition of e.g., UTMP_FILE on
95228         HP-UX 10.20.
95229         From Bob Proulx.
95230
95231 2000-07-02  Jim Meyering  <meyering@lucent.com>
95232
95233         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95234
95235         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95236         AC_LIBOBJ(function_name).
95237         * m4/chown.m4: Likewise.
95238         * m4/fnmatch.m4: Likewise.
95239         * m4/ftruncate.m4: Likewise.
95240         * m4/getgroups.m4: Likewise.
95241         * m4/getline.m4: Likewise.
95242         * m4/group-member.m4: Likewise.
95243         * m4/jm-macros.m4: Likewise.
95244         * m4/lstat.m4: Likewise.
95245         * m4/malloc.m4: Likewise.
95246         * m4/memcmp.m4: Likewise.
95247         * m4/nanosleep.m4: Likewise.
95248         * m4/putenv.m4: Likewise.
95249         * m4/realloc.m4: Likewise.
95250         * m4/regex.m4: Likewise.
95251         * m4/stat.m4: Likewise.
95252         * m4/strftime.m4: Likewise.
95253
95254 2000-07-02  Jim Meyering  <meyering@lucent.com>
95255
95256         * lib/quotearg.c (mbstate_t): Don't define here.
95257
95258 2000-07-02  Jim Meyering  <meyering@lucent.com>
95259
95260         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95261
95262 2000-07-01  Jim Meyering  <meyering@lucent.com>
95263
95264         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95265
95266 2000-07-01  Jim Meyering  <meyering@lucent.com>
95267
95268         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95269         problem.
95270
95271 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95272
95273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95274         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95275
95276 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95277
95278         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95279         per change in ../m4/ls-mntd-fs.m4.
95280         (read_filesystem_list): Ignore symbolic links.
95281
95282 2000-06-29  Jim Meyering  <meyering@lucent.com>
95283
95284         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95285         for declaration of strcmp.
95286
95287         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95288
95289         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95290         Avoid warning by casting result to `char *' to remove `const'.
95291
95292 2000-06-28  Jim Meyering  <meyering@lucent.com>
95293
95294         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95295         included by quotearg.c, for which we perform this test.  From
95296         Bruno Haible.
95297
95298 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95299
95300         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95301         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95302         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95303
95304 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95305
95306         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95307
95308 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95309
95310         savedir now sets errno on failure and invokes xmalloc to get memory.
95311         Fix a couple of other minor bugs while we're at it.
95312
95313         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95314         (NAMLEN): Remove macro.
95315         (malloc, realloc): Remove decls.
95316         (stpcpy): Likewise.
95317         ("xalloc.h"): Include.
95318         (NAME_SIZE_DEFAULT): New macro.
95319         (savedir): Use xmalloc / xrealloc to allocate memory.
95320         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95321         Skip "" directory entries.
95322         Use strlen to calculate directory entry length, since the old method
95323         is rarely used these days and isn't worth supporting.
95324         Don't use a pointer after freeing it.
95325         Check for integer overflow when calculating allocation size.
95326         Use memcpy to copy entries, instead of stpcpy.
95327         Set errno properly when returning NULL.
95328         Check for readdir error.
95329
95330 2000-06-26  Jim Meyering  <meyering@lucent.com>
95331
95332         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95333
95334 2000-06-25  Jim Meyering  <meyering@lucent.com>
95335
95336         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95337         Linux header bug when _XOPEN_SOURCE is defined to 500.
95338
95339 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95340
95341         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95342         deficiency.
95343
95344 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95345
95346         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95347         Include xalloc.h.
95348         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95349
95350 2000-06-24  Jim Meyering  <meyering@lucent.com>
95351
95352         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95353         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95354         for which strerror does return char*, but which lacks a conveniently
95355         accessible declaration of the function.  If the compile-test says
95356         strerror_r doesn't work, then resort to a `run'-test that works on
95357         BeOS and segfaults on DEC Unix.
95358
95359 2000-06-24  Jim Meyering  <meyering@lucent.com>
95360
95361         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95362
95363 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95364
95365         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95367
95368 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95369
95370         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95371         (mbrtowc, mbstate_t): Define substitutes if
95372         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95373         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95374         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95375
95376 2000-06-23  Jim Meyering  <meyering@lucent.com>
95377
95378         * m4/afs.m4: Add missing AC_MSG_RESULT.
95379         Reported by Bruno Haible.
95380
95381         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95382         Suggestion from Bruno Haible.
95383
95384 2000-06-23  Jim Meyering  <meyering@lucent.com>
95385
95386         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95387
95388 2000-06-21  Jim Meyering  <meyering@lucent.com>
95389
95390         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95391
95392 2000-06-21  Jim Meyering  <meyering@lucent.com>
95393
95394         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95395         (noinst_HEADERS): Add getstr.h.
95396
95397         * lib/getline.c (getstr): Move into a separate file.
95398         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95399         the following changes: new parameter, delim2; both delim[12]
95400         parameters have type `int', not `char'.  The latter would lose
95401         with 8-bit delimiters.
95402         * lib/getstr.h: New file.
95403
95404 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95405
95406         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95407         than 1024, return a memory chunk of least possible size, instead
95408         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95409         Use free/xmalloc instead of xrealloc to avoid copying for very long
95410         paths.
95411
95412 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95413
95414         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95415         the empty string.
95416
95417 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95418
95419         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95420         address, not strdup.  Include <stdlib.h> and don't declare free().
95421
95422 2000-06-19  Jim Meyering  <meyering@lucent.com>
95423
95424         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95425
95426 2000-06-18  Jim Meyering  <meyering@lucent.com>
95427
95428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95429
95430         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95431         `checking whether...' message to be consistent with that of the
95432         lstat test.
95433
95434 2000-06-18  Jim Meyering  <meyering@lucent.com>
95435
95436         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95437         Besides, these days every porting target provides a mkdir function.
95438
95439         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95440         needed. (this snippet comes from src/system.h).
95441
95442 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95443
95444         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95445
95446 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95447
95448         * lib/human.c (adjust_value): New function.
95449         (human_readable_inexact): Apply rounding style even when
95450         printing approximate values.
95451
95452 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95453
95454         * lib/human.c (human_readable_inexact): Allow an input block
95455         size that is not a multiple of the output block size, and vice versa.
95456         Reported by Piergiorgio Sartor.
95457
95458 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95459
95460         * lib/getdate.y (get_date): Apply relative times after time
95461         zone indicator, not before.  Reported by Todd A. Jacobs.
95462
95463 2000-06-13  Jim Meyering  <meyering@lucent.com>
95464
95465         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95466
95467         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95468
95469 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95470
95471         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95472
95473 2000-06-12  Jim Meyering  <meyering@lucent.com>
95474
95475         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95476         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95477         optional argument.
95478         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95479         the optional argument, `lib'.
95480
95481 2000-06-08  Jim Meyering  <meyering@lucent.com>
95482
95483         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95484
95485 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95486
95487         Rewrite largefile configuration so that we don't need to run
95488         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95489         AC_CANONICAL_HOST in configure.in -- jmm]
95490
95491         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95492         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95493         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95494         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95495         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95496         All uses changed.
95497         Instead of inspecting the output of getconf, try to compile the
95498         test program without and with the macro definition.
95499         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95500         for getconf.  Instead, check for the needed flags by compiling
95501         test programs.
95502
95503 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95504
95505         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95506
95507 2000-06-04  Jim Meyering  <meyering@lucent.com>
95508
95509         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95510         SunOS 4.1.4 for which gid_t is an unsigned type.
95511
95512 2000-06-03  Jim Meyering  <meyering@lucent.com>
95513
95514         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95515         now that autoconf requires that.
95516
95517         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95518         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95519         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95520
95521 2000-06-03  Jim Meyering  <meyering@lucent.com>
95522
95523         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95524
95525 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95526
95527         * m4/glibc21.m4: New file.
95528         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95529
95530 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95531
95532         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95533         newer, don't install charset.alias.
95534         * lib/config.charset: Change the Linux/glibc rules so they become empty
95535         on glibc-2.1 or newer.
95536
95537 2000-06-02  Jim Meyering  <meyering@lucent.com>
95538
95539         * lib/mountlist.c: Back out last change.  Instead, do this...
95540         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95541         me_dummy member using the same `ignore'-testing code.
95542         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95543         fs_type strings.
95544         From Mark D. Roth.
95545
95546 2000-05-29  Jim Meyering  <meyering@lucent.com>
95547
95548         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95549         mounts with the `ignore' attribute.  Based on a patch from
95550         Mark D. Roth.
95551
95552 2000-05-28  Jim Meyering  <meyering@lucent.com>
95553
95554         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95555         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95556         * m4/stat.m4: Likewise.
95557         * m4/lstat.m4: Likewise.
95558         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95559
95560         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95561         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95562
95563 2000-05-26  Jim Meyering  <meyering@lucent.com>
95564
95565         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95566
95567 2000-05-24  Jim Meyering  <meyering@lucent.com>
95568
95569         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95570         autoconf requires that.
95571         * m4/lib-check.m4: Likewise.
95572         * m4/jm-macros.m4: Likewise.
95573         * m4/strftime.m4: Likewise.
95574
95575         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95576         AC_CHECK_DECLS, now that autoconf requires that.
95577
95578 2000-05-22  Jim Meyering  <meyering@lucent.com>
95579
95580         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95581         * m4/lstat.m4: Likewise.
95582
95583 2000-05-22  Jim Meyering  <meyering@lucent.com>
95584
95585         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95586
95587 2000-05-20  Jim Meyering  <meyering@lucent.com>
95588
95589         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95590         (jm_PREREQ): Use it.
95591
95592 2000-05-18  Jim Meyering  <meyering@lucent.com>
95593
95594         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95595         back, too, since it may have been modified by allocate_entry.
95596         (hash_delete): Rewrite to use neither the assignment operator
95597         nor the comma operator in an if-expression.
95598
95599 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95600
95601         * lib/closeout.c:
95602         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95603         Remove; no longer needed.
95604         "quotearg.h": Add include.
95605         (file_name): Do not bother to explicitly initialize to NULL; it's less
95606         efficient on some hosts.
95607         (close_stdout_status): Remove test as to whether stdout was already
95608         closed; it breaks for the case "echo x | sort >&-".
95609         Quote file name colons.
95610         Do not assume that _("write error") lacks format strings.
95611
95612 2000-05-15  Jim Meyering  <meyering@lucent.com>
95613
95614         * lib/version-etc.c (version_etc_copyright): Update the copyright
95615         string used in all --version output.
95616
95617 2000-05-14  Jim Meyering  <meyering@lucent.com>
95618
95619         * lib/closeout.c (close_stdout_set_file_name): New function.
95620         (close_stdout_status): Use new file-scoped global.
95621         Return right away if fstat says the stdout file descriptor is invalid.
95622         * lib/closeout.h (close_stdout_set_file_name): Declare.
95623
95624 2000-05-10  Jim Meyering  <meyering@lucent.com>
95625
95626         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95627         (close_stdout_set_status): New function.
95628         * lib/closeout.h (close_stdout_set_status): Declare.
95629
95630 2000-05-09  Jim Meyering  <meyering@lucent.com>
95631
95632         * m4/gettext.m4: Rename this...
95633         * m4/libintl.m4: ...to this.
95634
95635 2000-05-08  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/long-options.c: Don't include closeout.h.
95638         (parse_long_options): Don't call close_stdout for --version.
95639
95640 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95641
95642         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95643         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95644         2.1.3 bug.  This avoids a clash when files like regex.c define
95645         _GNU_SOURCE.
95646
95647 2000-05-06  Jim Meyering  <meyering@lucent.com>
95648
95649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95650         (AC_REPLACE_FUNCS): Add strnlen.
95651
95652         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95653         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95654
95655         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95656         AC_SEARCH_LIBS call for nanosleep.
95657         (LIB_NANOSLEEP): Set and AC_SUBST.
95658
95659 2000-05-06  Jim Meyering  <meyering@lucent.com>
95660
95661         * lib/strnlen.c: Undefine __strnlen and strnlen.
95662         [!weak_alias]: Define __strnlen to strnlen.
95663
95664         * lib/atexit.c: New file, from libiberty.
95665
95666 2000-05-06  Jim Meyering  <meyering@lucent.com>
95667
95668         * lib/closeout.c (close_stdout_status): Also check for errors on the
95669         stderr stream.
95670
95671 2000-05-05  Jim Meyering  <meyering@lucent.com>
95672
95673         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95674         AC_SEARCH_LIBS call for clock_gettime.
95675         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95676
95677         * m4/search-libs.m4: Update from autoconf.
95678
95679         su doesn't work on Solaris 2.6.
95680         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95681         <shadow.h>.  Reported by Dragos Harabor.
95682
95683 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95684
95685         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95686         memcpy instead of xmalloc, xrealloc, path_concat.
95687         (locale_charset): Treat empty environment variables as absent.
95688         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95689
95690 2000-05-04  Jim Meyering  <meyering@lucent.com>
95691
95692         * lib/getopt.c: Update from glibc.
95693         * lib/obstack.c: Likewise.
95694         * lib/obstack.h: Likewise.
95695         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95696         file
95697
95698         * lib/regex.h: Likewise.
95699         * lib/strndup.c: Likewise.
95700         * lib/strnlen.c: New file, from glibc.
95701
95702 2000-05-03  Jim Meyering  <meyering@lucent.com>
95703
95704         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95705
95706 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95707
95708         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95709         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95710         compile-time test, rather than inspecting host and OS, to
95711         decide whether to define _LARGEFILE_SOURCE.
95712
95713 2000-05-01  Jim Meyering  <meyering@lucent.com>
95714
95715         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95716
95717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95718         Based on a patch from Bruno Haible.
95719
95720 2000-05-01  Jim Meyering  <meyering@lucent.com>
95721
95722         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95723
95724 2000-04-29  Jim Meyering  <meyering@lucent.com>
95725
95726         * lib/path-concat.c: Declare strdup only if it's not defined.
95727         * lib/canon-host.c: Likewise.
95728
95729 2000-04-28  Jim Meyering  <meyering@lucent.com>
95730
95731         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95732         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95733         is included first, then limits.h is included by locale.h by libintl.h.
95734         From John David Anglin.
95735
95736 2000-04-25  Jim Meyering  <meyering@lucent.com>
95737
95738         * lib/makepath.c (S_IRWXUGO): Define.
95739         (make_path): Always perform explicit chmod if MODE specifies any
95740         of the `special' permission bits.  Prompted by a bug report against
95741         install from Mate Wierdl and Joost van Baal.
95742
95743 2000-04-18  Jim Meyering  <meyering@lucent.com>
95744
95745         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95746         (jm_PREREQ): Use it.
95747
95748 2000-04-18  Jim Meyering  <meyering@lucent.com>
95749
95750         * lib/README: New file.
95751
95752         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95753         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95754
95755 2000-04-17  Jim Meyering  <meyering@lucent.com>
95756
95757         Get it right :-)
95758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95759         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95760         Suggestion from Akim Demaille.
95761
95762 2000-04-17  Jim Meyering  <meyering@lucent.com>
95763
95764         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95765         the definition of it to rpl_strftime also defined-away the system's
95766         declaration.
95767
95768 2000-04-15  Jim Meyering  <meyering@lucent.com>
95769
95770         Use `C' to denote so-called `contiguous' files, the same way
95771         that tar does.
95772         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95773         (ftypelet): Use S_ISCTG.
95774         From Michael Deutschmann.
95775
95776 2000-04-14  Jim Meyering  <meyering@lucent.com>
95777
95778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95779         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95780         clobbered.
95781
95782 2000-04-14  Jim Meyering  <meyering@lucent.com>
95783
95784         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95785
95786 2000-04-13  Jim Meyering  <meyering@lucent.com>
95787
95788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95789         AH_VERBATIM to insert required #ifndef into config.h.in.
95790         Suggestion from Akim Demaille.
95791
95792 2000-04-12  Jim Meyering  <meyering@lucent.com>
95793
95794         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95795         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95796         Christian Krackowizer.
95797
95798         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95799         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95800         (AC_SYS_LARGEFILE): Require.
95801         (AM_C_PROTOTYPES): Require.
95802
95803 2000-04-08  Jim Meyering  <meyering@lucent.com>
95804
95805         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95806         names don't conflict.  Reported by Eli Zaretskii.
95807
95808 2000-04-07  Jim Meyering  <meyering@lucent.com>
95809
95810         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95811         sys/types.h, to work around system header problems on AIX 3.2.5.
95812         From Bruno Haible.
95813
95814 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95815
95816         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95817         bug.  Deal with the different error behavior of Irix iconv.
95818
95819 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95820
95821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95822         IRIX if the installer said otherwise.
95823
95824 2000-04-05  Jim Meyering  <meyering@lucent.com>
95825
95826         Portability tweaks required for ultrix4.3.
95827         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95828         (jm_CHECK_DECLS): Add getutent to the list of functions.
95829         (_jm_DECL_HEADERS): Add utmpx.h.
95830         From John David Anglin.
95831
95832         * m4/strftime.m4: Back out the 2000-04-02 change.
95833         Instead of that change, simply undefine putenv in the test program.
95834
95835 2000-04-05  Jim Meyering  <meyering@lucent.com>
95836
95837         Portability tweaks required for ultrix4.3.
95838         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95839         getutent.
95840         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95841         * lib/canon-host.c: Declare strdup.
95842         * lib/path-concat.c: Likewise.
95843         From John David Anglin.
95844
95845 2000-04-04  Jim Meyering  <meyering@lucent.com>
95846
95847         Be more DOS 8.3-friendly.
95848         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95849         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95850         * lib/Makefile.am: Reflect renaming.
95851         Reported by Eli Zaretskii.
95852
95853         Use a temporary file name that won't clash with `charset.alias'
95854         in the DOS 8.3 name space.
95855         * lib/Makefile.am (charset_tmp): Define.
95856         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95857         (uninstall-local): Likewise.
95858         Reported by Eli Zaretskii.
95859
95860 2000-04-03  Jim Meyering  <meyering@lucent.com>
95861
95862         * m4/gettext.m4: Fix typo in comment.
95863
95864         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95865         textutils/configure.in).  Suggestion from Paul Eggert.
95866         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95867
95868 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95869
95870         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95871         variable in the shell rather than using putenv, which isn't
95872         portable.  This avoids the configure-time inter-test dependency
95873         on the potentially-renamed putenv function.
95874
95875 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95876
95877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95878         before checking struct stat.st_blksize, so that
95879         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95880
95881 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95882
95883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95884         since strftime.c uses HAVE_STRFTIME to decide whether to use
95885         the underlying strftime.
95886
95887 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95888
95889         * lib/time/strftime.c (my_strftime): Make sure we call the system
95890         strftime, not ourselves, when invoking the underlying strftime.
95891
95892 2000-03-24  Jim Meyering  <meyering@lucent.com>
95893
95894         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95895         (charset_alias): Define.
95896         (install-exec-local): Factor out common code.
95897         (uninstall-local): Split lines longer than 80.
95898         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95899         (SUFFIXES): Define.
95900         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95901         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95902
95903 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95904
95905         * lib/config.charset: Output a line containing "Packages using this
95906         file".
95907         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95908         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95909         ref-del.sed): New rules.
95910
95911 2000-03-17  Jim Meyering  <meyering@lucent.com>
95912
95913         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95914         Otherwise, include <strings.h>
95915
95916 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95917
95918         * lib/unicodeio.c (utf8_wctomb): New function.
95919         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95920         format instead of in UCS-4 with platform dependent endianness.
95921
95922 2000-03-10  Jim Meyering  <meyering@lucent.com>
95923
95924         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95925         From Marco Franzen.
95926
95927 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95928
95929         * lib/savedir.c (savedir): Work even if directory size is
95930         negative; this can happen with some screwy NFS configurations.
95931
95932 2000-03-06  Jim Meyering  <meyering@lucent.com>
95933
95934         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95935         if it's NULL (because we ran out of memory).  From Bruno Haible.
95936
95937 2000-03-05  Jim Meyering  <meyering@lucent.com>
95938
95939         * lib/localcharset.c ("path-concat.h"): Include.
95940         (get_charset_aliases): Use path_concat instead of ANSI string
95941         concatenation.
95942
95943         * lib/unicodeio.h (PARAMS): Define.
95944         Use it to guard prototype.
95945
95946 2000-03-04  Jim Meyering  <meyering@lucent.com>
95947
95948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95949         for lib/localcharset.c.
95950
95951 2000-03-04  Jim Meyering  <meyering@lucent.com>
95952
95953         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95954         installing into it.
95955         (uninstall-local): Uncomment this rule so `make distcheck' works
95956         once again.
95957
95958         * lib/unicodeio.c (<errno.h>): Include it.
95959         (errno): Declare if not defined.
95960
95961         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95962
95963         * lib/config.charset: New version, incorporating remarks from a linux
95964         i18n mailing list.  From Bruno Haible.
95965
95966 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95967
95968         * m4/codeset.m4: New file.
95969         * m4/iconv.m4: New file.
95970         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95971
95972 2000-03-03  Jim Meyering  <meyering@lucent.com>
95973
95974         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95975
95976 2000-03-02  Jim Meyering  <meyering@lucent.com>
95977
95978         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95979         the messages come out on separate lines.
95980
95981         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95982         rather than jm_CHECK_DECLARATIONS.
95983         * m4/decl.m4: Remove now-unused file.
95984
95985         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95986         geteuid.
95987
95988 2000-03-02  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95991
95992 2000-03-01  Jim Meyering  <meyering@lucent.com>
95993
95994         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95995         * lib/unicodeio.c: Likewise.
95996
95997 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95998
95999         * lib/config.charset: New file.
96000         * lib/localcharset.c: New file.
96001         * lib/unicodeio.h, lib/unicodeio.c: New files.
96002         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96003         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96004         (noinst_HEADERS): Add unicodeio.h.
96005         (all-local, install-exec-local, charset.alias): New targets.
96006
96007 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96008
96009         * lib/quotearg.c (ALERT_CHAR): New macro.
96010         (quotearg_buffer_restyled): Use it.
96011
96012 2000-02-27  Jim Meyering  <meyering@lucent.com>
96013
96014         * m4/check-decl.m4: Add getenv to the list.
96015
96016 2000-02-27  Jim Meyering  <meyering@lucent.com>
96017
96018         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96019         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96020
96021         * lib/backupfile.c: Guard inclusion of stdlib.h with
96022         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96023         Declare malloc if needed.
96024
96025         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96026         `#ifndef HAVE_DECL..'
96027         now that autoconf always defines the HAVE_DECL_ symbols.
96028         * lib/human.c: Likewise.
96029         * lib/same.c: Likewise.
96030         * lib/strtoumax.c: Likewise.
96031
96032         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96033         declaration check was not run.
96034         * lib/hash.c: Likewise.
96035         * lib/human.c: Likewise.
96036         * lib/same.c: Likewise.
96037         * lib/strtoumax.c: Likewise.
96038
96039         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96040         `.', then first look up the entire `.'-containing string as a login
96041         name.
96042
96043 2000-02-23  Jim Meyering  <meyering@lucent.com>
96044
96045         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96046         in place of my hack.
96047
96048 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96049
96050         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96051         (textint): New typedef.
96052         (parser_control): Member year changed from int to textint.
96053         All uses changed.
96054         (YYSTYPE): Removed; replaced by %union with int and textint members.
96055         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96056         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96057         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96058         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96059         (date, number, to_year): Use width of number in digits, not its value,
96060         to determine whether it's a 2-digit year, or a 2-digit time.
96061         (yylex): Store number of digits of numeric tokens.
96062         Reported by John Kendall.
96063
96064         (parser_control): Changed from struct parser_control to typedef (for
96065         consistency).  All uses changed.
96066
96067         (tID): Removed; not used.
96068         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96069
96070 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96071
96072         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96073         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96074
96075 2000-02-12  Jim Meyering  <meyering@lucent.com>
96076
96077         * lib/userspec.c (ISDIGIT): Define it.
96078         (isdigit): Remove definition.
96079         (is_number): Use ISDIGIT, not isdigit.
96080         <libintl.h>: Include.
96081         (_ and N_): Define.
96082         (parse_user_spec): Mark translatable strings.
96083
96084 2000-02-10  Jim Meyering  <meyering@lucent.com>
96085
96086         With these changes, nanosleep.[ch] are finally enough like the other
96087         lib/* replacement files to compile on a few more losing systems.
96088
96089         * lib/nanosleep.h: Don't include config.h.
96090         Remove prototype from declaration of nanosleep.
96091         (PARAMS): Remove now-unneeded definition.
96092         * lib/nanosleep.c: #undef nanosleep.
96093         (rpl_nanosleep): Rename from nanosleep.
96094
96095 2000-02-10  Jim Meyering  <meyering@lucent.com>
96096
96097         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96098         gnu_nanosleep to rpl_nanosleep.
96099
96100 2000-02-09  Jim Meyering  <meyering@lucent.com>
96101
96102         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96103         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96104
96105 2000-02-08  Akim Demaille  <akim@epita.fr>
96106
96107         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96108         `[' and `]' and remove uses of `changequote'.
96109         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96110         (AC_SYS_LARGEFILE): Likewise.
96111         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96112         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96113         of changequote.
96114         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96115         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96116         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96117         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96118
96119 2000-02-05  Jim Meyering  <meyering@lucent.com>
96120
96121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96122         Remove explicit use of AC_HEADER_TIME.  It is required by
96123         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96124         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96125         in autoconf whereby the expansion of the latter ended up preceding
96126         the expansion of its prerequisite, AC_HEADER_TIME.
96127         Reported by Volker Borchert.
96128
96129 2000-02-03  Jim Meyering  <meyering@lucent.com>
96130
96131         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96132
96133 2000-02-03  Jim Meyering  <meyering@lucent.com>
96134
96135         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96136         rather than with `#if HAVE_UTMPNAME'.
96137
96138 2000-02-02  Jim Meyering  <meyering@lucent.com>
96139
96140         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96141         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96142         Reported by Eli Zaretskii.
96143
96144 2000-02-01  Jim Meyering  <meyering@lucent.com>
96145
96146         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96147
96148 2000-01-31  Jim Meyering  <meyering@lucent.com>
96149
96150         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96151         functions.  Add the time.h and sys/time.h headers along with the
96152         AC_REQUIRE'ment of AC_HEADER_TIME.
96153
96154 2000-01-31  Jim Meyering  <meyering@lucent.com>
96155
96156         * lib/nanosleep.h (nanosleep): Guard declaration with
96157         `#if ! HAVE_DECL_NANOSLEEP'.
96158         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96159         the declaration in that vendor's sys/timers.h.
96160         Reported by Christian Krackowizer.
96161
96162         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96163         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96164         (ISPRINT): Likewise.
96165         Reported by Tom Tromey.
96166
96167 2000-01-30  Jim Meyering  <meyering@lucent.com>
96168
96169         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96170
96171         * m4/prereq.m4 (utmp_includes): Define.
96172         Check for ut_user and ut_name members in both struct utmpx
96173         and struct utmp.
96174
96175 2000-01-30  Jim Meyering  <meyering@lucent.com>
96176
96177         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96178         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96179         header files where only utmpx.ut_user is declared.
96180
96181         * lib/readutmp.h (UT_USER): Define.
96182
96183 2000-01-29  Jim Meyering  <meyering@lucent.com>
96184
96185         * m4/lib-check.m4: New file containing library-related checks from
96186         fileutils and sh-utils (textutils had none).
96187
96188 2000-01-28  Jim Meyering  <meyering@lucent.com>
96189
96190         * m4/perl.m4: Change format of warning message to look more like that
96191         from the missing script.  Suggestion from François Pinard.
96192
96193 2000-01-25  Jim Meyering  <meyering@lucent.com>
96194
96195         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96196         well as time.h in the compile check.
96197         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96198         Fix typo in cross-compiling case: s/yes/no/.
96199
96200 2000-01-23  Jim Meyering  <meyering@lucent.com>
96201
96202         * m4/jm-macros.m4: Move df-related tests here from
96203         fileutils/configure.in
96204
96205         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96206         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96207
96208         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96209         s/space/ac_fsusage_space/.
96210         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96211
96212         * m4/ftruncate.m4: New file (derived from part of
96213         fileutils/configure.in).
96214         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96215         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96216
96217         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96218         AC_SUBST these here, rather than just in sh-util/configure.in, so
96219         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96220         all the same.
96221         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96222         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96223         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96224         (AC_SUBST(POW_LIBM)): Likewise.
96225         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96226
96227 2000-01-23  Jim Meyering  <meyering@lucent.com>
96228
96229         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96230         obstack.c.
96231
96232 2000-01-22  Jim Meyering  <meyering@lucent.com>
96233
96234         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96235
96236         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96237
96238         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96239         configure.in
96240         (AC_CHECK_HEADERS): Likewise for sh-utils.
96241         (AC_CHECK_HEADERS): Likewise for textutils.
96242         Merge the three lists of headers.
96243
96244         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96245         from fileutils' configure.in.
96246
96247         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96248         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96249         check-decl.m4.
96250
96251         * m4/check-decl.m4: Use #if rather than #ifdef.
96252         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96253         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96254         (_jm_DECL_HEADERS): Define new function.
96255         (jm_CHECK_DECLARATIONS): Require it.
96256
96257 2000-01-22  Jim Meyering  <meyering@lucent.com>
96258
96259         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96260         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96261         Required for some AIX systems.  Reported by Christian Krackowizer.
96262         [TESTING] (main): New function.
96263
96264         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96265         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96266         letters.
96267
96268         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96269         iswprint.
96270
96271         * lib/strverscmp.c (ISDIGIT): Define.
96272         (strverscmp): Use ISDIGIT, not isdigit.
96273
96274 2000-01-19  Jim Meyering  <meyering@lucent.com>
96275
96276         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96277         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96278         defines `struct timespec' in <sys/time.h>
96279
96280         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96281         Thanks to Akim for explaining.
96282
96283 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96284
96285         * lib/nanosleep.c (nanosleep):
96286         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96287         POSIX.1 doesn't require SA_INTERRUPT and some systems
96288         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96289         it's been part of POSIX.1 since day 1 (in 1988).
96290
96291 2000-01-17  Jim Meyering  <meyering@lucent.com>
96292
96293         * lib/interlock: Remove unused file.  Reported by François Pinard.
96294
96295 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96296
96297         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96298         alert, backslash, formfeed, and vertical tab unnecessarily in
96299         shell quoting style.
96300
96301 2000-01-16  Jim Meyering  <meyering@lucent.com>
96302
96303         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96304         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96305         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96306         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96307
96308 2000-01-16  Jim Meyering  <meyering@lucent.com>
96309
96310         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96311         because the latter didn't work.
96312
96313 2000-01-15  Jim Meyering  <meyering@lucent.com>
96314
96315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96316         (AC_REPLACE_FUNCS): Add memcpy and memset.
96317         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96318         Add strpbrk.
96319         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96320
96321 2000-01-12  Jim Meyering  <meyering@lucent.com>
96322
96323         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96324         (jm_PREREQ): Use it.
96325         (jm_PREREQ_READUTMP): New macro.
96326         (jm_PREREQ): Use it.
96327
96328 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96329
96330         Quote multibyte characters correctly.
96331         * m4/c-bs-a.m4: New file.
96332         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96333         (jm_PREREQ): Use it.
96334
96335 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96336
96337         * m4/uintmax_t.m4: Port to autoconf 2.13.
96338
96339 2000-01-08  Jim Meyering  <meyering@ascend.com>
96340
96341         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96342         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96343
96344 2000-01-04  Jim Meyering  <meyering@ascend.com>
96345
96346         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96347         jm_STRUCT_DIRENT_D_TYPE.
96348         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96349         jm_STRUCT_DIRENT_D_INO.
96350         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96351         jm_STRUCT_UTIMBUF.
96352         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96353         renamings.
96354         * m4/utime.m4: Likewise.
96355
96356         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96357         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96358
96359 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96360
96361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96362         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96363
96364 2000-01-02  Jim Meyering  <meyering@ascend.com>
96365
96366         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96367         remember if this is necessary.
96368
96369 1999-12-26  Jim Meyering  <meyering@ascend.com>
96370
96371         * m4/jm-macros.m4: Use it here.
96372         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96373
96374 1999-12-23  Jim Meyering  <meyering@ascend.com>
96375
96376         * m4/jm-macros.m4: Check for clock_gettime (moved from
96377         fileutils/configure.in)
96378         Check for gettimeofday.
96379
96380 1999-12-20  Jim Meyering  <meyering@ascend.com>
96381
96382         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96383         autoconf-2.14a-1999-12-20.
96384
96385 1999-12-19  Jim Meyering  <meyering@ascend.com>
96386
96387         * m4/lstat-slash.m4: New file.
96388         * m4/jm-macros.m4: Use the new macro:
96389         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96390
96391 1999-12-07  Jim Meyering  <meyering@ascend.com>
96392
96393         * m4/perl.m4: Require that File::Compare be available, too.
96394         Too many systems seem to lack it.
96395
96396         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96397         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96398
96399 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96400
96401         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96402         problem with the QNX 4.25 shell, which doesn't propagate exit
96403         status of failed commands inside shell assignments.
96404
96405 1999-11-17  Jim Meyering  <meyering@ascend.com>
96406
96407         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96408
96409 1999-11-07  Jim Meyering  <meyering@ascend.com>
96410
96411         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96412
96413 1999-11-06  Jim Meyering  <meyering@ascend.com>
96414
96415         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96416         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96417
96418 1999-11-05  Jim Meyering  <meyering@ascend.com>
96419
96420         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96421         configure.in of textutils, fileutils, and sh-utils into this one
96422         (shared between those packages) file.
96423         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96424         AC_STRUCT_ST_BLKSIZE.
96425
96426 1999-11-03  Jim Meyering  <meyering@ascend.com>
96427
96428         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96429         of AC_CHECK_TYPE checks includes unistd.h.
96430         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96431         Suggestion from Akim Demaille.
96432
96433 1999-10-30  Jim Meyering  <meyering@ascend.com>
96434
96435         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96436         m4-quoted string.
96437         * m4/ls-mntd-fs.m4: Likewise.
96438         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96439         * m4/jm-winsz1.m4: Likewise.
96440
96441         * m4/const.m4: Remove file, since the fix made it into the experimental
96442         version of autoconf.
96443         * m4/mktime.m4: Likewise.
96444
96445         * m4/check-type.m4: Remove file, now that the latest version of
96446         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96447
96448         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96449         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96450         AC_CHECK_TYPE.
96451
96452 1999-10-04  Jim Meyering  <meyering@ascend.com>
96453
96454         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96455
96456 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96457
96458         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96459         2.95.1 bug with HP-UX 10.20.
96460
96461 1999-09-17  Jim Meyering  <meyering@ascend.com>
96462
96463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96464         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96465         due to missing strdup (against sh-utils-2.0).
96466
96467 1999-08-29  Jim Meyering  <meyering@ascend.com>
96468
96469         * m4/jm-macros.m4: Require jm_BISON.
96470         * m4/bison.m4: New file.
96471
96472 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96473
96474         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96475         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96476
96477 1999-08-05  Jim Meyering  <meyering@ascend.com>
96478
96479         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96480         to avoid conflicts with `conftest' on 8+3 filesystems.
96481         Suggestion from Eli Zaretskii.
96482
96483 1999-08-04  Jim Meyering  <meyering@ascend.com>
96484
96485         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96486         fileutils and sh-utils (textutils's getline test was inadequate).
96487         (AM_FUNC_GETLINE): Run this test.
96488         (AC_CHECK_FUNCS): Check for getdelim.
96489         Reported by Bob Proulx.
96490
96491 1999-08-02  Jim Meyering  <meyering@ascend.com>
96492
96493         * m4/jm-macros.m4: Add a comment.
96494
96495 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96496
96497         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96498         <inttypes.h> defines strtoumax as a macro (and not as a
96499         function).
96500
96501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96502
96503         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96504         that we can shift, multiply and divide unsigned long long
96505         values; Ultrix cc can't do it.
96506
96507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96508
96509         * m4/mktime.m4: New file, which is a preview of what should appear
96510         in the next public autoconf release.
96511
96512 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96513
96514         * m4/lfs.m4: Remove this file.
96515         * m4/largefile.m4: New file.  It contains the old contents of
96516         lfs.m4, except that all names with prefix AC_LFS have been
96517         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96518         compatible with future autoconf versions.  Also, some minor m4
96519         quoting problems have been fixed.
96520
96521 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96522
96523         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96524         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96525         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96526         and simplify the shell code.
96527
96528 1999-08-01  Jim Meyering  <meyering@ascend.com>
96529
96530         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96531         m4.
96532
96533 1999-07-20  Jim Meyering  <meyering@ascend.com>
96534
96535         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96536
96537 1999-07-15  Jim Meyering  <meyering@ascend.com>
96538
96539         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96540
96541 1999-05-22  Jim Meyering  <meyering@ascend.com>
96542
96543         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96544
96545 1999-05-20  Jim Meyering  <meyering@ascend.com>
96546
96547         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96548         Add a colon after each `then' in case $4 is empty.
96549
96550 1999-05-16  Jim Meyering  <meyering@ascend.com>
96551
96552         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96553
96554 1999-05-10  Jim Meyering  <meyering@ascend.com>
96555
96556         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96557
96558         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96559         AC_FUNC_MKTIME.
96560
96561 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96562
96563         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96564
96565 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96566
96567         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96568         not CPPFLAGS, so that linking works correctly in IRIX.
96569
96570 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96571
96572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96573
96574 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96575
96576         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96577         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96579         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96580         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96581
96582         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96583
96584 1999-04-20  Jim Meyering  <meyering@ascend.com>
96585
96586         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96587         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96588         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96589
96590 1999-04-18  Jim Meyering  <meyering@ascend.com>
96591
96592         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96593         * m4/jm-macros.m4: Use it.
96594
96595 1999-04-06  Jim Meyering  <meyering@ascend.com>
96596
96597         * m4/strftime.m4: Remove test for %f.
96598
96599 1999-03-29  Jim Meyering  <meyering@ascend.com>
96600
96601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96602         superset of the AC_TYPE_* checks in the textutils, fileutils,
96603         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96604         AC_TYPE_PID_T.
96605
96606 1999-03-28  Jim Meyering  <meyering@ascend.com>
96607
96608         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96609         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96610         replaced e.g., in the *.sh files of the sh-utils.
96611
96612 1999-03-20  Jim Meyering  <meyering@ascend.com>
96613
96614         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96615         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96616         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96617
96618 1999-03-19  Jim Meyering  <meyering@ascend.com>
96619
96620         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96621
96622 1999-03-12  Jim Meyering  <meyering@ascend.com>
96623
96624         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96625
96626 1999-03-07  Jim Meyering  <meyering@ascend.com>
96627
96628         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96629         declared.
96630
96631 1999-02-17  Jim Meyering  <meyering@ascend.com>
96632
96633         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96634         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96635
96636 1999-02-07  Jim Meyering  <meyering@ascend.com>
96637
96638         * m4/group-member.m4: New file -- extracted from sh-utils'
96639         configure.in.
96640
96641         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96642         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96643
96644 1999-02-06  Jim Meyering  <meyering@ascend.com>
96645
96646         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96647         * m4/fnmatch.m4: Likewise.
96648         * m4/getgroups.m4: Likewise.
96649         * m4/lstat.m4: Likewise.
96650         * m4/malloc.m4: Likewise.
96651         * m4/putenv.m4: Likewise.
96652         * m4/realloc.m4: Likewise.
96653         * m4/regex.m4: Likewise.
96654         * m4/stat.m4: Likewise.
96655         * m4/strftime.m4: Likewise.
96656         Suggestion from Alain Magloire.
96657
96658         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96659         * m4/fnmatch.m4: Likewise.
96660         * m4/getgroups.m4: Likewise.
96661         * m4/getline.m4: Likewise.
96662         * m4/lstat.m4: Likewise.
96663         * m4/malloc.m4: Likewise.
96664         * m4/memcmp.m4: Likewise.
96665         * m4/putenv.m4: Likewise.
96666         * m4/realloc.m4: Likewise.
96667         * m4/regex.m4: Likewise.
96668         * m4/stat.m4: Likewise.
96669         * m4/strftime.m4: Likewise.
96670         Suggestion from Alain Magloire.
96671
96672         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96673         an argument.
96674
96675         * m4/regex.m4: Add a run-time Test for proper operation of
96676         re_compile_pattern.
96677
96678 1999-01-31  Jim Meyering  <meyering@ascend.com>
96679
96680         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96681
96682 1999-01-30  Jim Meyering  <meyering@ascend.com>
96683
96684         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96685
96686         * m4/jm-mktime.m4: Make this a wrapper around the official
96687         AM_FUNC_MKTIME rather than my private copy, now that the official one
96688         is up to date.
96689         * m4/mktime.m4: Remove file.
96690
96691         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96692         * m4/uptime.m4: Likewise.
96693         * m4/uintmax_t.m4: Likewise.
96694
96695 1999-01-28  Jim Meyering  <meyering@ascend.com>
96696
96697         * m4/jm-macros.m4: Use jm_AFS.
96698         * m4/afs.m4: New file (from fileutils' configure.in).
96699
96700         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96701         * m4/chown.m4: Likewise.
96702         * m4/d-ino.m4: Likewise.
96703         * m4/d-type.m4: Likewise.
96704         * m4/fnmatch.m4: Likewise.
96705         * m4/getgroups.m4: Likewise.
96706         * m4/gettext.m4: Likewise.
96707         * m4/jm-mktime.m4: Likewise.
96708         * m4/jm-winsz2.m4: Likewise.
96709         * m4/lcmessage.m4: Likewise.
96710         * m4/ls-mntd-fs.m4: Likewise.
96711         * m4/malloc.m4: Likewise.
96712         * m4/memcmp.m4: Likewise.
96713         * m4/putenv.m4: Likewise.
96714         * m4/realloc.m4: Likewise.
96715         * m4/st_mtim.m4: Likewise.
96716         * m4/strftime.m4: Likewise.
96717
96718 1999-01-16  Jim Meyering  <meyering@ascend.com>
96719
96720         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96721         (ARGMATCH_DIE_DECL): Define.
96722
96723 1999-01-12  Jim Meyering  <meyering@ascend.com>
96724
96725         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96726         Reported by Lars Hecking.
96727
96728 1999-01-10  Jim Meyering  <meyering@ascend.com>
96729
96730         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96731         gross kludge.
96732         * m4/inttypes_h.m4: Likewise.
96733         * m4/lstat.m4: Likewise.
96734         * m4/malloc.m4: Likewise.
96735         * m4/readdir.m4: Likewise.
96736         * m4/realloc.m4: Likewise.
96737         * m4/st_dm_mode.m4: Likewise.
96738         * m4/stat.m4: Likewise.
96739         * m4/utimbuf.m4: Likewise.
96740         * m4/utimes.m4: Likewise.
96741
96742         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96743         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96744         comments in config.h.in are meaningful.
96745
96746         * m4/jm-macros.m4: Require autoconf-2.13 here.
96747
96748         * m4/regex.m4: By default, don't use the included regex.c on systems
96749         with glibc 2.  Suggestion from Uli Drepper.
96750
96751 1999-01-02  Jim Meyering  <meyering@ascend.com>
96752
96753         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96754
96755 1998-12-18  Jim Meyering  <meyering@ascend.com>
96756
96757         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96758         Based on a suggestion from Lars Hecking.
96759
96760 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96761
96762         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96763
96764 1998-11-16  Jim Meyering  <meyering@ascend.com>
96765
96766         * m4/lfs.m4: Double-quote the `uname...` expression.
96767
96768 1998-11-14  Jim Meyering  <meyering@ascend.com>
96769
96770         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96771         * m4/stat.m4: Likewise.
96772
96773 1998-11-03  Jim Meyering  <meyering@ascend.com>
96774
96775         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96776         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96777
96778 1998-10-18  Jim Meyering  <meyering@ascend.com>
96779
96780         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96781
96782 1998-10-17  Jim Meyering  <meyering@ascend.com>
96783
96784         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96785         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96786         calls for those previously hard-coded headers.  Instead, take a new
96787         parameter.
96788         (jm_CHECK_DECLARATIONS): Reflect interface change.
96789         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96790         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96791
96792         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96793
96794 1998-10-14  Jim Meyering  <meyering@ascend.com>
96795
96796         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96797         instead of "TZ=America/Vancouver".  From Paul Eggert.
96798
96799 1998-10-11  Jim Meyering  <meyering@ascend.com>
96800
96801         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96802         This adds a test for a recently added compatibility fix for mktime.c.
96803         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96804
96805 1998-09-27  Jim Meyering  <meyering@ascend.com>
96806
96807         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96808
96809         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96810         ../configure.in, including a change from Gordon Matzigkeit to allow
96811         cross-compiling for the Hurd.
96812
96813         * m4/glibc.m4: New file/macro to test for the GNU C Library
96814         versions 1 and 2.  From Gordon Matzigkeit.
96815         Indent.
96816
96817 1998-09-21  Jim Meyering  <meyering@ascend.com>
96818
96819         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96820
96821 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96822
96823         Port nanosecond-resolution times to UnixWare 2.1.2 and
96824         pedantic Solaris 2.6.
96825
96826         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96827         AC_STRUCT_ST_MTIM.
96828         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96829         Generate name of ns member, instead of just 1 or undef.
96830         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96831
96832 1998-08-15  Jim Meyering  <meyering@ascend.com>
96833
96834         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96835         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96836         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96837         instead of jm_TYPE_SSIZE_T.
96838
96839 1998-08-12  Jim Meyering  <meyering@ascend.com>
96840
96841         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96842
96843 1998-08-02  Jim Meyering  <meyering@ascend.com>
96844
96845         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96846         in acconfig.h manually.
96847
96848 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96849
96850         * m4/st_mtim.m4: New file.
96851
96852 1998-07-28  Jim Meyering  <meyering@ascend.com>
96853
96854         * m4/utimes.m4: Undef stat.
96855
96856 1998-07-25  Jim Meyering  <meyering@ascend.com>
96857
96858         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96859         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96860
96861 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96862
96863         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96864         uid and gid actually remain unchanged.
96865
96866 1998-07-07  Jim Meyering  <meyering@ascend.com>
96867
96868         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96869
96870 1998-07-04  Jim Meyering  <meyering@ascend.com>
96871
96872         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96873         to prove that this macro can be used in packages without regex.c.
96874
96875 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96876
96877         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96878         is to be used.
96879
96880 1998-07-03  Jim Meyering  <meyering@ascend.com>
96881
96882         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96883
96884         * m4/gettext.m4: New file -- from gettext-0.10.35.
96885         * m4/lcmessage.m4: Likewise.
96886         * m4/progtest.m4: Likewise.
96887
96888         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96889         * m4/jm-macros.m4: Require the new macro.
96890
96891 1998-06-29  Jim Meyering  <meyering@ascend.com>
96892
96893         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96894         for the definition of NGROUPS (used in a system header included
96895         by sys/mount.h).
96896
96897 1998-06-28  Jim Meyering  <meyering@ascend.com>
96898
96899         * m4/ls-mntd-fs.m4: New file.
96900         * m4/fstypename.m4: New file.
96901
96902         * m4/jm-macros.m4: Require the new macro.
96903         * m4/jm-glibc-io.m4: New file.
96904
96905 1998-05-19  Jim Meyering  <meyering@ascend.com>
96906
96907         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96908         * m4/lchown.m4: New file.
96909
96910         * m4/Makefile.am.in: New file.
96911         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96912
96913 1998-05-14  Jim Meyering  <meyering@ascend.com>
96914
96915         * m4/Makefile.am (EXTRA_DIST): Add them.
96916         * m4/jm-macros.m4: New file.
96917         * m4/utimbuf.m4: New file.
96918
96919 1998-05-12  Jim Meyering  <meyering@ascend.com>
96920
96921         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96922
96923 1998-05-11  Jim Meyering  <meyering@ascend.com>
96924
96925         * m4/isc-posix.m4: New file.
96926
96927 1998-05-10  Jim Meyering  <meyering@ascend.com>
96928
96929         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96930
96931 1998-05-09  Jim Meyering  <meyering@ascend.com>
96932
96933         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96934         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96935         with automake.
96936
96937         * m4/ssize_t.m4: New file.
96938         * m4/mktime.m4: Remove file -- the new automake has this now.
96939
96940 1998-04-26  Jim Meyering  <meyering@ascend.com>
96941
96942         * m4/assert.m4: New file.
96943         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96944
96945 1998-04-05  Jim Meyering  <meyering@ascend.com>
96946
96947         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96948         (jm_PREREQ): Use it here.
96949
96950 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96951
96952         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96953         in acconfig.h.
96954
96955 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96956
96957         * m4/prereq.m4: New file.
96958         * m4/error.m4: New file.
96959         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96960
96961 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96962
96963         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96964         cache-check for the same variable -- that defeated the purpose of
96965         the test; the test program was never run.  This was a problem only
96966         on systems with losing getline functions -- HP-UX 10.20 is one.
96967         Reported by Bjorn Helgaas.
96968
96969 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96970
96971         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96972
96973 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96974
96975         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96976
96977         * m4/const.m4: New file.  Use an initializer in this declaration
96978         typedef int charset[2]; const charset x;
96979         Reported by Bob Glickstein.
96980
96981 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96982
96983         * m4/chown.m4: Fix reversed types on -1 args to chown.
96984         From Kaveh Ghazi.
96985
96986 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96987
96988         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96989         Add lseek and memchr.
96990
96991         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96992         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96993         have a 20-character limit on names.
96994
96995 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96996
96997         * m4/inttypes_h.m4: New file.
96998         * m4/uintmax_t.m4: New file.
96999         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97000
97001
97002         -----
97003
97004         Local Variables:
97005         coding: utf-8
97006         End:
97007
97008         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97009
97010         Copying and distribution of this file, with or without
97011         modification, are permitted provided the copyright notice
97012         and this notice are preserved.