fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
[gnulib.git] / ChangeLog
1 2012-07-15  Bruno Haible  <bruno@clisp.org>
2
3         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
5         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
6         Remove exemption for fpending.h.
7         Suggested by Eric Blake.
8
9 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10
11         pthread_sigmask: fix bug on FreeBSD 9
12         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
13         Include string.h.
14         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
15         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
16         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
17         but pthread_sigmask (1729, NULL, NULL) returns zero.
18         See <http://bugs.gnu.org/11884>.
19         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
20         by inspecting whether the main call changed the old mask.
21
22 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
23
24         README-release: make it more legible
25         * top/README-release: Improve typography slightly.
26
27 2012-07-15  Jim Meyering  <meyering@redhat.com>
28
29         maint: require that each sc_... command start with "@"
30         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
31         "make sc_maint" helps us avoid this nit.
32
33 2012-07-15  Jim Meyering  <meyering@redhat.com>
34
35         maint.mk: add leading "@" to quiet new "make syntax-check" rule
36         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37
38 2012-07-13  Eric Blake  <eblake@redhat.com>
39
40         maint.mk: new syntax check for HAVE_DECL checks
41         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
42         * cfg.mk
43         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
44         Exempt some false positives.
45         Based on a report by Karel Zak.
46
47         argp: make HAVE_DECL usage consistent
48         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
49         macros, not whether they are defined.
50         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
51         convention with other declaration checks.
52         Reported by Karel Zak, with suggestions from Paul Eggert.
53
54         stat-time: relax license to LGPLv2+
55         * modules/stat-time (License): Relax, with consent of all authors.
56
57         strndup: fix m4 usage error
58         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
59         defined, to either 0 or 1.
60         Reported by Karel Zak.
61
62 2012-07-11  Jim Meyering  <meyering@redhat.com>
63
64         maint: enable the sc_avoid_if_before_free syntax-check rule
65         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
66         (if_before_free_offenders_): Define.
67         (if_before_free_basename_re_): Define.
68         Exempt current files with useless if-before-free.
69
70 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71
72         gettext: do not assume '#define ... defined ...' behavior
73         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
74         Do not use '#define FOO ... defined BAR ...', as the C standard says
75         it's not portable to expect that this works after macro expansion.
76         Problem reported for gzip by Steven M. Schweda in
77         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
78
79 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80
81         getloadavg: clean out old Emacs and Autoconf cruft
82         See Glenn Morris in <http://bugs.gnu.org/11905>.
83         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
84         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
85         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
86         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
87
88 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
89
90         bootstrap: let warn be like tests/init.sh's warn_
91         Reported by Jim Meyering.
92         * build-aux/bootstrap (warn): Remove, replaced by...
93         (warnf_, warn_): these.
94         Adjust callers.
95         Shorten messages that no longer fit in 80 columns.
96
97 2012-07-09  Bruno Haible  <bruno@clisp.org>
98
99         getopt: Simplify after Emacs changed.
100         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
101         (gl_GETOPT_IFELSE): Remove macro.
102
103 2012-07-09  Jim Meyering  <meyering@redhat.com>
104
105         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
106         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
107
108         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
109         Bugs in both of those conspired to make the
110         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
111         _sc_search_regexp's handling of non-empty $in_files would filter
112         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
113         choice of in_files value meant there would be no match in most
114         projects, due to the presence of two or more Makefile.in files.
115         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
116         Fix a bug in how a non-empty $$in_files was processed:
117         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
118         in spite of the name, it's a regexp, not a list of file names.
119
120 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121
122         getloadavg, getopt: fix commentary re configure.in
123         Autoconf is deprecating the name 'configure.in', so change it to
124         to the new name 'configure.ac' in a couple of places.
125         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
126         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
127         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
128         Emacs has renamed it to configure.ac, and it no longer refers
129         to these macros anyway.
130
131         timespec: mark functions with const attributes
132         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
133         Mark with _GL_ATTRIBUTE_CONST.
134
135 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
136
137         canonicalize[-lgpl]: handle "guessing" values when cross-building
138         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
139         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
140         matches "*yes" instead of just "yes".  Regression introduced in commit
141         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
142
143 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
144             Bruno Haible  <bruno@clisp.org>
145
146         canonicalize: make the right guess when cross-compiling to GNU
147         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
148         determine whether cross-compiling to glibc systems, so as to
149         include GNU/Hurd.
150
151 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
152
153         timespec-sub: avoid duplicate include
154         * lib/timespec-sub.c: Do not include <config.h> twice.
155         Reported by Juanma Barranquero.
156
157 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
158
159         bootstrap: use a more consistent error reporting scheme
160         * build-aux/bootstrap (warn, die): New.
161         Use them.
162
163 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
164
165         sys_time: allow too-wide tv_sec
166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
167         timeval even if tv_sec is wider than time_t.  This allows
168         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
169         as without this patch gnulib replaces struct timeval
170         and OpenBSD futimes therefore has a type mismatch.
171         * doc/posix-headers/sys_time.texi: Mention this.
172
173         pthread: check for both pthread_create and pthread_join
174         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
175         alter the check so that it tests for both pthread_create and
176         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
177         Suggested by Bruno Haible and Richard Yao in
178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
179
180         parse-datetime: doc tuneup
181         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
182         spacing issues.
183
184 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
185
186         do-release-commit-and-tag: fix the previous commit
187         * build-aux/do-release-commit-and-tag: Actually the test was right,
188         but the comment and the error message were misleading.
189         Fix comment, and improve error message.
190         Perform check first, so that NEWS is not modified uselessly.
191
192         do-release-commit-and-tag: fix typo
193         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
194         _not_ start with a stub.
195
196 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
197
198         pthread: check for pthread_create, not pthread_join
199         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
200         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
201         pthread_join in libc.  I hope this removes the need for all the
202         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
203         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
204
205 2012-07-04  Jim Meyering  <meyering@redhat.com>
206
207         parse-datetime: fix failure to diagnose invalid input
208         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
209         rather than diagnosing the invalid input.  Now it reports this:
210         date: invalid date '\260'
211         * lib/parse-datetime.y (to_uchar): Define.
212         (yylex): Don't sign-extend "other" bytes.
213         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
214         Thanks to Bruno Haible for the patch to this file.
215         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
216         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
217
218 2012-07-03  Jim Meyering  <meyering@redhat.com>
219
220         bootstrap: do not require now-removed build-aux/missing
221         Now that build-aux/missing is, er, missing, bootstrap would
222         silently fail.
223         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
224         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
225         no longer part of gnulib.
226         Diagnose the failure.
227
228 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
229
230         alloca: add support for HP NonStop TNS/E native
231         * lib/alloca.in.h (alloca): Support the new host.
232         From a suggestion by Joachim Schmitz in
233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
234
235 2012-07-02  Pádraig Brady  <P@draigBrady.com>
236
237         fsusage: remove code not needed on non GNU/Linux systems.
238
239         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
240         Don't include headers no longer needed in this case.
241         * lib/fsusage.c [STAT_STATVFS &&
242         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
243         STAT_STATFS2_FRSIZE to exclude code not used in this case.
244
245 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
246
247         fsusage: include files needed for glibc 2.6 fallback
248         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
249         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
250         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
251         Problem reported by Ludovic Courtès in
252         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
253
254         fsusage: avoid needless check on GNU/Linux
255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
256         on GNU/Linux systems, since it can't possibly work.
257
258 2012-07-01  Bruno Haible  <bruno@clisp.org>
259
260         log: Fix an autoconf >= 2.64 warning.
261         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
262         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
263
264 2012-06-28  Bruno Haible  <bruno@clisp.org>
265
266         log10f: Fix possible configuration problem.
267         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
268         $LOGF_LIBM.
269         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
270
271 2012-06-28  Bruno Haible  <bruno@clisp.org>
272
273         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
274         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
275         not gl_cv_func_unlink_works.
276         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
277
278 2012-06-27  Eric Blake  <eblake@redhat.com>
279
280         config: drop scripts that automake says are not independent
281         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
282         * build-aux/elisp-comp: Delete.
283         * build-aux/missing: Likewise.
284         * build-aux/ylwrap: Likewise.
285         * modules/elisp-comp: Likewise.
286         * MODULES.html.sh: Drop mention of elisp-comp.
287         * NEWS: Mention this.
288
289 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
290
291         root-uid: new module
292         This is for portability to Tandem's NonStop Kernel.
293         * lib/root-uid.h, modules/root-uid: New files.
294         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
295         * lib/write-any-file.c, tests/test-sethostname2.c:
296         Include "root-uid.h".
297         * lib/euidaccess.c (euidaccess):
298         * lib/pt_chown.c (main):
299         * lib/unlinkdir.c (cannot_unlink_dir):
300         * lib/write-any-file.c (can_write_any_file):
301         * m4/mknod.m4 (gl_FUNC_MKNOD):
302         * tests/test-sethostname2.c (geteuid, main):
303         Don't assume ROOT_UID == 0.
304         * modules/euidaccess (Depends-on):
305         * modules/pt_chown (Depends-on):
306         * modules/sethostname-tests (Depends-on):
307         * modules/unlinkdir (Depends-on):
308         * modules/write-any-file (Depends-on):
309         Add root-uid.
310
311         regex: use locale-independent comparison for codeset name
312         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
313         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
314         for codeset name.
315         * lib/regex_internal.h: Do not include <strings.h>, since we
316         no longer use strcasecmp.
317         * modules/regex (Depends-on): Remove strcase.
318
319 2012-06-23  Bruno Haible  <bruno@clisp.org>
320
321         getopt-posix: No longer guarantee that option processing is resettable.
322         * doc/posix-functions/getopt.texi: Drop description of problem with
323         internal state. Fix info about mingw and msvc9.
324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
325         option processing by getopt(). Run three test programs instead of one.
326         Simplify cross-compilation guess.
327         * NEWS: Mention the change.
328         Reported by Rich Felker <dalias@aerifal.cx>.
329
330 2012-06-26  Bruno Haible  <bruno@clisp.org>
331
332         argp, regex: Ensure strcasecmp gets declared.
333         * lib/argp-help.c: Include <strings.h>.
334         * lib/regex_internal.h: Likewise.
335         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
336
337 2012-06-24  Bruno Haible  <bruno@clisp.org>
338
339         ptsname_r: Make it consistent with ptsname on AIX.
340         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
341         implementation as for OSF/1.
342         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
343         a pty master.
344
345         ptsname_r: Make it consistent with ptsname on OSF/1.
346         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
347         OSF/1.
348
349 2012-06-24  Bruno Haible  <bruno@clisp.org>
350
351         ttyname_r: Fix result on OSF/1, Solaris.
352         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
353
354 2012-06-24  Bruno Haible  <bruno@clisp.org>
355
356         ptsname_r: Add support for Solaris.
357         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
358         Solaris.
359
360         ptsname_r: Fix test failure on native Windows.
361         * modules/ptsname_r (Depends-on): Add isatty.
362
363         ptsname_r: Fix test failures on IRIX, Solaris.
364         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
365         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
366         accordingly.
367         * lib/ptsname_r.c: Include <fcntl.h>.
368         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
369         set errno if fd is invalid.
370         * tests/test-isatty.c (main): Update comments.
371
372 2012-06-24  Bruno Haible  <bruno@clisp.org>
373
374         ptsname test: Extend test.
375         * tests/test-ptsname.c: Include <errno.h>.
376         (main): Test behaviour with invalid file descriptor.
377
378 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
379
380         time: fix obsolete comment
381         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
382         reference to HAVE_STRUCT_TIMESPEC in comment.
383
384 2012-06-23  Bruno Haible  <bruno@clisp.org>
385
386         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
388         does not handle abbreviated long options with equivalent
389         disambiguations, set gl_replace_getopt to yes.
390         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
391
392 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
393
394         time_r: fix typo that always overrode localtime_r decl
395         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
396         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
397         not in a standard include.
398
399 2012-06-22  Bruno Haible  <bruno@clisp.org>
400
401         Write "Mac OS X" instead of "MacOS X".
402         * README: Write "Mac OS X" instead of "MacOS X".
403         * build-aux/bootstrap: Likewise.
404         * build-aux/install-reloc: Likewise.
405         * lib/acl-internal.h: Likewise.
406         * lib/acl_entries.c: Likewise.
407         * lib/argp-ba.c: Likewise.
408         * lib/argp-pv.c: Likewise.
409         * lib/config.charset: Likewise.
410         * lib/copy-acl.c: Likewise.
411         * lib/csharpexec.c: Likewise.
412         * lib/euidaccess.c: Likewise.
413         * lib/fbufmode.c: Likewise.
414         * lib/fflush.c: Likewise.
415         * lib/file-has-acl.c: Likewise.
416         * lib/filemode.h: Likewise.
417         * lib/fpurge.c: Likewise.
418         * lib/freadable.c: Likewise.
419         * lib/freadahead.c: Likewise.
420         * lib/freading.c: Likewise.
421         * lib/freadptr.c: Likewise.
422         * lib/freadseek.c: Likewise.
423         * lib/fseeko.c: Likewise.
424         * lib/fseterr.c: Likewise.
425         * lib/fsusage.c: Likewise.
426         * lib/fwritable.c: Likewise.
427         * lib/fwriting.c: Likewise.
428         * lib/get-rusage-as.c: Likewise.
429         * lib/get-rusage-data.c: Likewise.
430         * lib/getdomainname.c: Likewise.
431         * lib/idpriv-drop.c: Likewise.
432         * lib/idpriv-droptemp.c: Likewise.
433         * lib/localcharset.c: Likewise.
434         * lib/locale.in.h: Likewise.
435         * lib/localename.c: Likewise.
436         * lib/mbsrtowcs-state.c: Likewise.
437         * lib/nproc.c: Likewise.
438         * lib/passfd.c: Likewise.
439         * lib/posix_openpt.c: Likewise.
440         * lib/printf-parse.c: Likewise.
441         * lib/progreloc.c: Likewise.
442         * lib/safe-read.h: Likewise.
443         * lib/safe-write.h: Likewise.
444         * lib/sched.in.h: Likewise.
445         * lib/set-mode-acl.c: Likewise.
446         * lib/signal.in.h: Likewise.
447         * lib/stdint.in.h: Likewise.
448         * lib/stdio-impl.h: Likewise.
449         * lib/stdlib.in.h: Likewise.
450         * lib/strtod.c: Likewise.
451         * lib/sys_select.in.h: Likewise.
452         * lib/tcgetsid.c: Likewise.
453         * lib/unistd.in.h: Likewise.
454         * lib/unlockpt.c: Likewise.
455         * lib/vasnprintf.c: Likewise.
456         * lib/vma-iter.c: Likewise.
457         * lib/wcsrtombs-state.c: Likewise.
458         * m4/acl.m4: Likewise.
459         * m4/acosl.m4: Likewise.
460         * m4/asinl.m4: Likewise.
461         * m4/atanl.m4: Likewise.
462         * m4/c-stack.m4: Likewise.
463         * m4/cosl.m4: Likewise.
464         * m4/expl.m4: Likewise.
465         * m4/extensions.m4: Likewise.
466         * m4/fdatasync.m4: Likewise.
467         * m4/fmal.m4: Likewise.
468         * m4/frexp.m4: Likewise.
469         * m4/frexpf.m4: Likewise.
470         * m4/frexpl.m4: Likewise.
471         * m4/fsusage.m4: Likewise.
472         * m4/getdomainname.m4: Likewise.
473         * m4/getloadavg.m4: Likewise.
474         * m4/getopt.m4: Likewise.
475         * m4/gettext.m4: Likewise.
476         * m4/gnulib-common.m4: Likewise.
477         * m4/intdiv0.m4: Likewise.
478         * m4/intlmacosx.m4: Likewise.
479         * m4/largefile.m4: Likewise.
480         * m4/ldexpl.m4: Likewise.
481         * m4/link-follow.m4: Likewise.
482         * m4/locale-ar.m4: Likewise.
483         * m4/locale-fr.m4: Likewise.
484         * m4/locale-ja.m4: Likewise.
485         * m4/locale-tr.m4: Likewise.
486         * m4/locale-zh.m4: Likewise.
487         * m4/locale_h.m4: Likewise.
488         * m4/lock.m4: Likewise.
489         * m4/logl.m4: Likewise.
490         * m4/mathfunc.m4: Likewise.
491         * m4/minus-zero.m4: Likewise.
492         * m4/mktime.m4: Likewise.
493         * m4/mmap-anon.m4: Likewise.
494         * m4/multiarch.m4: Likewise.
495         * m4/nanosleep.m4: Likewise.
496         * m4/nocrash.m4: Likewise.
497         * m4/poll.m4: Likewise.
498         * m4/printf-frexpl.m4: Likewise.
499         * m4/printf.m4: Likewise.
500         * m4/signbit.m4: Likewise.
501         * m4/sinl.m4: Likewise.
502         * m4/sqrtl.m4: Likewise.
503         * m4/strerror_r.m4: Likewise.
504         * m4/tanl.m4: Likewise.
505         * m4/threadlib.m4: Likewise.
506         * m4/ttyname_r.m4: Likewise.
507         * m4/unlink.m4: Likewise.
508         * m4/visibility.m4: Likewise.
509         * m4/wcwidth.m4: Likewise.
510         * tests/minus-zero.h: Likewise.
511         * tests/test-alloca-opt.c: Likewise.
512         * tests/test-copy-acl.sh: Likewise.
513         * tests/test-copy-file.sh: Likewise.
514         * tests/test-fdatasync.c: Likewise.
515         * tests/test-file-has-acl.sh: Likewise.
516         * tests/test-flock.c: Likewise.
517         * tests/test-fsync.c: Likewise.
518         * tests/test-localename.c: Likewise.
519         * tests/test-malloca.c: Likewise.
520         * tests/test-nonblocking-pipe.h: Likewise.
521         * tests/test-nonblocking-socket.h: Likewise.
522         * tests/test-openpty.c: Likewise.
523         * tests/test-posix_openpt.c: Likewise.
524         * tests/test-ptsname.c: Likewise.
525         * tests/test-ptsname_r.c: Likewise.
526         * tests/test-sameacls.c: Likewise.
527         * tests/test-select.h: Likewise.
528         * tests/test-set-mode-acl.sh: Likewise.
529         * tests/test-snprintf-posix.h: Likewise.
530         * tests/test-sprintf-posix.h: Likewise.
531         * tests/test-strtod.c: Likewise.
532         * tests/test-time.c: Likewise.
533         * tests/test-vasnprintf-posix.c: Likewise.
534         * tests/test-vasprintf-posix.c: Likewise.
535         * doc/acl-resources.txt: Likewise.
536         * doc/**/*.texi: Likewise.
537         Reported by Max Horn <max@quendi.de>.
538
539 2012-06-22  Bruno Haible  <bruno@clisp.org>
540
541         grantpt: Relax requirement regarding invalid file descriptors.
542         * lib/grantpt.c: Don't include <fcntl.h>.
543         (grantpt): Don't verify the validity of the file descriptor.
544         * modules/grantpt (Depends-on): Remove fcntl-h.
545         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
546         file descriptors.
547         * doc/posix-functions/grantpt.texi: Document more platforms on which
548         grantpt succeeds for invalid file descriptors.
549         Reported by Rich Felker <dalias@aerifal.cx>.
550
551 2012-06-22  Bruno Haible  <bruno@clisp.org>
552
553         fbufmode test: Don't test unportable behaviour.
554         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
555         (main): Invoke it three times.
556         Reported by Szabolcs Nagy <nsz@port70.net>
557         and Rich Felker <dalias@aerifal.cx>.
558
559 2012-06-21  Bruno Haible  <bruno@clisp.org>
560
561         gnulib-tool: Refactor inctests variable.
562         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
563         (func_modules_transitive_closure,
564         func_modules_transitive_closure_separately,
565         func_import, func_create_testdir): Update.
566
567         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
568         * gnulib-tool: Accept option --without-tests.
569         (func_usage): Document --without-tests option. Rearrange.
570         (inctests): Normalize according to the mode.
571         * NEWS: Mention the change.
572         Suggested by Simon Josefsson.
573
574 2012-06-21  Bruce Korb  <bkorb@gnu.org>
575
576         parse-duration test: Avoid spurious output.
577         * tests/test-parse-duration.sh: Reindent with leading tabs.
578
579 2012-06-21  Jim Meyering  <meyering@redhat.com>
580
581         maint: disable the strncpy prohibition
582         * cfg.mk: Do not prohibit strncpy here.
583
584 2012-06-21  Bruno Haible  <bruno@clisp.org>
585
586         nonblocking: Avoid compilation error on mingw64.
587         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
588         fscanf.
589         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
590         * modules/vfscanf (configure.ac): Likewise.
591         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
592         definition only if stdio.h has prepared it.
593         Reported by Daniel P. Berrange <berrange@redhat.com>.
594
595 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
596
597         gnulib-tool: Use readlink if it is available.
598         * gnulib-tool (func_readlink): Choose function more appropriately.
599
600 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
601
602         posixtm-tests: port to buggy compiler
603         Problem reported by Simon Josefsson in
604         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
605         * modules/posixtm-tests (Depends-on): Add stdint.
606         * tests/test-posixtm.c (struct posixtm_test.t_expected):
607         Now of type int_least64_t, not int64_t, both because that's
608         what INT64_C returns and because int_least64_t works even
609         on 72-bit hosts.
610         (T): Use INT64_C on constants outside the traditional int range,
611         to work around compiler bug noted by Simon.
612
613         mktime: fix integer overflow in 'configure'-time test
614         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
615         after integer overflow.  Problem reported by Rich Felker in
616         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
617         Also, don't look for further instances of a bug if we've already
618         found one instance; this helps 'configure' run faster.
619
620 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
621
622         tmpfile, clean-temp: Fix invocation of GetVersionEx.
623         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
624         GetVersionEx correctly.
625         * lib/clean-temp.c (supports_delete_on_close): Likewise.
626
627 2012-06-20  Bruno Haible  <bruno@clisp.org>
628
629         fdopen: Allow implementations that don't reject invalid fd arguments.
630         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
631         succeeds.
632         Reported by Rich Felker <dalias@aerifal.cx>.
633
634 2012-06-20  Simon Josefsson  <simon@josefsson.org>
635
636         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
637         bring in LIBINTL.
638
639 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
640
641         init.sh: do not rely on autoupated PWD
642         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
643         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
644         Although Nelson's bug was not necessarily fixed by this patch,
645         it seems wise to make the change for safety.
646         * tests/init.sh (path_prepend_): Do not rely on PWD updating
647         automagically after 'cd'; this is not reliable on older shells.
648         (setup_): Fail if we cannot cd to temporary directory.
649
650 2012-06-19  Bruno Haible  <bruno@clisp.org>
651
652         stat, fstat: Avoid warnings on mingw64.
653         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
654         redefining.
655         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
656         Reported by Daniel P. Berrange <berrange@redhat.com>.
657
658 2012-06-19  Bruno Haible  <bruno@clisp.org>
659
660         stdioext: Add support for musl libc.
661
662         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
663         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
664
665         * m4/fseterr.m4: New file.
666         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
667         function exists.
668         * modules/fseterr (Files): Add m4/fseterr.m4.
669         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
670         __fseterr does not exist.
671         (Makefile.am): Remove fseterr.c from lib_SOURCES.
672
673         * lib/freadable.h: Update comment.
674
675         * lib/fwritable.h: Update comment.
676
677         * lib/freading.h: Update comment.
678
679         * lib/fwriting.h: Update comment.
680
681         * m4/freadahead.m4: New file.
682         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
683         that function exists.
684         * modules/freadahead (Files): Add m4/freadahead.m4.
685         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
686         __freadahead does not exist.
687         (Makefile.am): Remove freadahead.c from lib_SOURCES.
688
689         * m4/freadptr.m4: New file.
690         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
691         function exists.
692         * modules/freadptr (Files): Add m4/freadptr.m4.
693         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
694         __freadptr does not exist.
695         (Makefile.am): Remove freadptr.c from lib_SOURCES.
696
697         * m4/freadseek.m4: New file.
698         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
699         exists.
700         * modules/freadseek (Files): Add m4/freadseek.m4.
701         (configure.ac): Invoke gl_FUNC_FREADSEEK.
702
703         * lib/fpurge.c (fpurge): Update comment.
704
705         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
706
707 2012-06-19  Bruno Haible  <bruno@clisp.org>
708
709         *printf-posix: Put more info into config.log.
710         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
711         exit code into config.log.
712
713 2012-06-19  Bruno Haible  <bruno@clisp.org>
714
715         getopt-gnu: Fix exit code overflow in autoconf test.
716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
717         to keep them below < 128.
718
719 2012-06-17  Jim Meyering  <meyering@redhat.com>
720
721         maint.mk: fix typo in code to derive GPG key at release time
722         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
723
724 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
725
726         regex: avoid warning when pointers are not long
727         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
728         and uintptr_t, not long, for portability to hosts where pointers and
729         long have different sizes.  Issue noted by Daniel P. Berrange in
730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
731         and fix suggested by Bruno Haible in
732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
733
734 2012-06-17  Bruno Haible  <bruno@clisp.org>
735
736         dummy: Relicense into the public domain.
737         * modules/dummy (License): Set to "public domain".
738         Suggested by Reuben Thomas.
739
740 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
741
742         announce-gen: VPATH issues
743         * build-aux/announce-gen (--srcdir): New option, used to trim the
744         $srcdir part of the path from $builddir to NEWS.
745         * top/maint.mk (announcement): Adjust.
746
747 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
748
749         gnu-web-doc-update: VPATH builds
750         * build-aux/gnu-web-doc-update (--builddir): New option.
751         Revamp the handling of options.
752         Prefer $(...) to `...`.
753         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
754         the template, and it is GNU mktemp specific.
755         Prefer set -e to long series of &&.
756         Restore the initial git branch, not "master".
757         Properly initialize submodules (don't rely only on bootstrap).
758         Do not reconfigure blindly, use config.status.
759         * top/README-release: Update instructions for gnu-web-doc-update.
760
761 2012-06-11  Jim Meyering  <meyering@redhat.com>
762
763         maint.mk: revert most of the previous change re "all these"
764         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
765         For rationale, see the discussion at
766         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
767
768 2012-06-10  Karl Berry  <karl@gnu.org>
769
770         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
771
772         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
773
774 2012-06-10  Bruce Korb  <bkorb@gnu.org>
775
776         parse-duration: Relicense under LGPLv2+.
777         * modules/parse-duration (License): Change to LGPLv2+.
778
779 2012-06-10  Jim Meyering  <meyering@redhat.com>
780
781         maint.mk: prohibit common grammar error: "all these"
782         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
783         the list of prohibited word sequences.  It should be "all of these".
784         * lib/tempname.c (__gen_tempname): Fix one of them.
785
786 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
787
788         do-release-commit-and-tag: support VPATH builds
789         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
790         (noteworthy): Defined earlier to factor its value.
791         (noteworthy_stub): New.
792         Use it to factor.
793         (help_version): Split into...
794         (help, version): these.
795         Adjust the option processing part.
796         Support "--option=value" in addition to "--option value".
797         (builddir): New.
798         (--builddir): New option.
799         * top/README-release: Document this.
800         Reword slightly so that the reader cannot understand that he
801         has to do these steps before calling do-release-commit-and-tag.
802
803 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
804
805         readme-release: also require announce-gen and maintainer-makefile
806         * modules/readme-release (Depends-on): here.
807         * modules/announce-gen, modules/do-release-commit-and-tag,
808         modules/gnu-web-doc-update, modules/maintainer-makefile
809         (Description): Point to readme-release.
810
811 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
812
813         maint.mk: fix VPATH issues.
814         * top/maint.mk (news-check): GNU Make understand $< very well.
815         (release-prep): NEWS is in $(srcdir).
816
817 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
818
819         readme-release: require the promoted modules.
820         * modules/readme-release (Depends-on): Add
821         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
822         in this text.
823
824 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
825             Bruno Haible  <bruno@clisp.org>
826
827         error, strerror-override: Support mingw64 from Fedora 17.
828         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
829         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
830         EINPROGRESS.
831         * lib/strerror-override.h (strerror_override): Test it.
832         * lib/strerror-override.c (strerror_override): Likewise.
833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
834
835 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
836             Bruno Haible  <bruno@clisp.org>
837
838         error, strerror-override: Support mingw64 from Fedora 17.
839         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
840         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
841         * lib/strerror-override.h (strerror_override): Test it.
842         * lib/strerror-override.c (strerror_override): Likewise.
843
844 2012-06-03  Bruno Haible  <bruno@clisp.org>
845
846         error, strerror-override: Support new errno values from POSIX:2008.
847         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
848         ENOTRECOVERABLE.
849         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
850         platforms.
851         * lib/strerror-override.c (strerror_override): Conditionalize the
852         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
853         * lib/strerror-override.h (strerror_override): Declare also if
854         GNULIB_defined_EOWNERDEAD is defined.
855         * tests/test-errno.c (e130, e131): New variables.
856         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
857         ENOTRECOVERABLE.
858         Reported by Paolo Bonzini.
859
860 2012-05-31  Jim Meyering  <meyering@redhat.com>
861
862         savewd: add missing dependency on sys_wait module
863         * modules/savewd (Depends-on): Add sys_wait, needed at least
864         for MSVC.  Report and suggested change by Michael Goffioul.
865
866 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
867
868         system-quote-tests: port to CentOS 5
869         Problem reported by Tom G. Christensen in
870         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
871         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
872
873 2012-05-29  Jim Meyering  <meyering@redhat.com>
874
875         maint: fix typos in comments and ChangeLog
876         Culprits identified and fixed mostly automatically using these commands:
877         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
878         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
879         using http://github.com/lyda/misspell-check
880         * ChangeLog: Fix typos.
881         * doc/solaris-versions: Likewise.
882         * lib/regexec.c (re_search_stub): Likewise.
883         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
884
885 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
886
887         manywarnings: remove duplicate -Wmultichar entry
888         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
889         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
890         so keep the entry marked as documented.
891
892 2012-05-27  Karl Berry  <karl@gnu.org>
893
894         * config/srclist.txt (mktime.c): remove last libc sync,
895         perhaps just temporarily.
896
897 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
898
899         regex: don't assume uint64_t or uint32_t
900         * lib/regcomp.c (init_word_char): Don't assume that the types
901         uint64_t and uint32_t exist.  The C standard doesn't guarantee
902         them, and on some 32-bit compilers there is no uint64_t.
903         Problem reported by Gianluigi Tiesi in
904         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
905
906 2012-05-25  Jim Meyering  <meyering@redhat.com>
907
908         maint.mk: add strncpy-prohibiting syntax-check rule
909         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
910
911 2012-05-24  Jim Meyering  <meyering@redhat.com>
912
913         maint.mk: compute $(gpg_key_ID) more portably
914         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
915         That use of sed is not portable to some fringe systems.
916         Reported by Paul Eggert in
917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
918
919 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
920
921         mktime: sync from glibc
922         * config/srclist.txt: Uncomment mktime.c.
923         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
924         First, indent with tabs, since glibc uses tabs and doesn't want to
925         change and we'd rather be identical to glibc.  Also, two small
926         coding changes:
927         (isdst_differ): Use &&, not &, as && is the usual style.
928         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
929         for clarity.
930
931 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
932
933         announce-gen: du -h is more portable than du --human
934         * build-aux/announce-gen (sizes): Invoke du with -h instead
935         of --human.  Accept leading white space in its output.
936
937 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
938
939         announce-gen: Improve diagnostics.
940         * build-aux/announce-gen: When parsing command line options,
941         prefer "announce-gen: option --release-type requires an argument"
942         to "Option release-type requires an argument".
943
944 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
945
946         maint.mk: gpg_key_ID: use sed more portably
947         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
948         the closing brace.
949         (refresh-po): Fuse two sed invocations into one.
950
951 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
952
953         gitlog-to-changelog: support the log message format used in Bison.
954         * build-aux/gitlog-to-changelog: Support --strip-tab and
955         --strip-cherry-picked.
956
957 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
958
959         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
960         the rest of the current time slice to another thread in the current
961         process. So if the thread that feeds the file decscriptor we're
962         polling is not in the current process, we get busy-waiting.
963         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
964         Patch from Theodore Leblond.
965         * lib/select.c: Split polling out of the loop that sets the output
966         fd_sets.  Check for zero result and loop if the wait timeout is
967         infinite.
968
969 2012-05-21  Simon Josefsson  <simon@josefsson.org>
970
971         select: Fix build error on IRIX 6.5.
972         * lib/select.c: Include stddef.h for NULL.
973
974 2012-05-21  Simon Josefsson  <simon@josefsson.org>
975
976         gc: fix libgcrypt detection on older machines.
977         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
978         copyright years because the file has been distributed every year
979         since it was created.
980
981 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
982
983         crypto: fix bug in large buffer handling
984         Problem reported by Serge Belyshev for glibc in
985         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
986         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
987         * lib/md4.c (md4_process_block):
988         * lib/md5.c (md5_process_block):
989         * lib/sha1.c (sha1_process_block):
990         * lib/sha256.c (sha256_process_block):
991         Don't assume the buffer length is less than 2**32.
992         * lib/sha512.c (sha512_process_block): Likewise.
993         Here, the bug is present only in the rare case where the host does
994         not support uint64_t or where size_t is wider than 64 bits.
995         Use u64size to work around the problems.
996         * lib/u64.h (u64size): New macro.
997
998 2012-05-15  Pádraig Brady  <P@draigBrady.com>
999
1000         fsusage: fix block size returned on older Linux 2.6
1001
1002         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1003         which is available since Linux 2.6.
1004         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1005         when the member is available so it can be used as a fallback.
1006         * doc/posix-functions/statvfs.texi: Mention the hang issue
1007         on Linux < 2.6.36.
1008
1009 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1010
1011         bootstrap: suppress stderr chatter
1012         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1013         Omit unnecessary chatter to stderr.  The main program chatter
1014         was there only inadvertantly.
1015
1016         bootstrap: .gitignore files created by autopoint, libtool
1017         I ran into this problem when bootstrapping the latest diffutils.
1018         After './bootstrap', 'git status' reported lots of untracked files
1019         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1020         autopoint and do not need to be version-controlled.
1021         * build-aux/bootstrap: Put into .gitignore the files that
1022         autopoint and libtool create, by keeping track of files that exist
1023         after but not before these programs are run.
1024         (version_controlled_file): Move up.  2nd arg is now full file
1025         name, not base name; this is more convenient.  Put CVS at the end,
1026         as it's now somewhat deprecated.
1027
1028 2012-05-14  Jim Meyering  <meyering@redhat.com>
1029
1030         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1031         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1032         definition.  Reported by Bruno Haible.
1033
1034 2012-05-13  Bruno Haible  <bruno@clisp.org>
1035             Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         binary-io: Define set_binary_mode function.
1038         * lib/binary-io.h (set_binary_mode): New function.
1039         (SET_BINARY): Define in terms of set_binary_mode.
1040         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1041         * tests/test-binary-io.c (main): Accept an argument, and test either
1042         set_binary_mode or SET_BINARY depending on the argument.
1043         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1044         argument. Clean up also t-bin-out0.tmp.
1045
1046 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1047
1048         bootstrap: take advantage of POSIX shell features
1049
1050         The 'bootstrap' script offered by Gnulib script already uses POSIX
1051         shell features (like $((...)) arithmetic expansions) that are not
1052         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1053         means that bootstrap must already be run using a proper POSIX shell,
1054         which will thus provide more features, like ${var#pattern} parameter
1055         expansion or inversion of a command exit status with '!'.  We can
1056         thus use these features to improve the clarity and the performances
1057         of the bootstrap script.
1058
1059         Suggested by Eric Blake.
1060
1061         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1062         of sed/expr plus command substitutions, to save some forks.  While
1063         we are at it, prefer the POSIX $(...) form of command substitution,
1064         rather than the legacy form `...` (since the former is visually
1065         clearer and interacts better with quoting), and prefer the idiom:
1066           "if ! CMD; then ACTION ..."
1067         over the idiom:
1068           "if CMD; then :; else ACTION ..."
1069         which was required by legacy Bourne shells not supporting '!'.
1070
1071 2012-05-12  Bruno Haible  <bruno@clisp.org>
1072
1073         system-quote: Add more comments.
1074         * lib/system-quote.h: Add more comments about wilcards and limitations.
1075         Suggested by Eli Zaretskii <eliz@gnu.org>.
1076
1077         sh-quote, system-quote: Add comments about wildcards.
1078         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1079         * lib/system-quote.h: Likewise.
1080         Reported by Eli Zaretskii <eliz@gnu.org>.
1081
1082 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         fsusage: check for GNU/Linux statvfs problem dynamically
1085         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1086         Define STAT_STATFS2_BSIZE too, since in this case the code now
1087         checks dynamically whether statvfs is reliable, falling back on
1088         Linux-style statfs otherwise.
1089         (statvfs_works): New function, for dynamically testing statvfs.
1090         (get_fs_usage) [STAT_STATVFS]: Use it.
1091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1092         statvfs on GNU/Linux hosts, since it's now done dynamically.
1093
1094 2012-05-10  Bruno Haible  <bruno@clisp.org>
1095
1096         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1097         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1098         '?' character.
1099         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1100         * tests/test-system-quote-main.c (check_all): Check also strings like
1101         "??????????".
1102         Reported by Eli Zaretskii <eliz@gnu.org>.
1103
1104 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         _Noreturn: port config.h to gcc -Wundef
1107         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1108         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1109         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1110
1111 2012-05-10  Bruno Haible  <bruno@clisp.org>
1112
1113         system-quote: Refactor.
1114         * lib/system-quote.h (system_quote_copy): Fix comment.
1115         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1116         New functions, extracted from system_quote_copy.
1117         (system_quote_length, system_quote_copy): Use these functions.
1118         Reported by Paul Eggert.
1119
1120 2012-05-08  Bruno Haible  <bruno@clisp.org>
1121
1122         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1123         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1124
1125 2012-05-08  Bruno Haible  <bruno@clisp.org>
1126
1127         Tests for module 'system-quote'.
1128         * modules/system-quote-tests: New file.
1129         * tests/test-system-quote.sh: New file.
1130         * tests/test-system-quote-main.c: New file.
1131         * tests/test-system-quote-child.c: New file.
1132
1133         New module 'system-quote'.
1134         * lib/system-quote.h: New file.
1135         * lib/system-quote.c: New file.
1136         * modules/system-quote: New file.
1137
1138 2012-05-08  Bruno Haible  <bruno@clisp.org>
1139
1140         sh-quote: Make C++ safe and allow multiple inclusion.
1141         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1142         declarations in extern "C".
1143
1144 2012-05-08  Bruno Haible  <bruno@clisp.org>
1145
1146         sh-quote tests: Make tests stricter.
1147         * tests/test-sh-quote.c (check_one): Check the return value of
1148         shell_quote_copy.
1149         (main): Check a string with a CR character. Check a string that
1150         contains UCHAR_MAX.
1151
1152 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1153
1154         warnings.m4: provide a means to specify the program to compile.
1155         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1156         (gl_WARN_ADD): here.
1157         Use gl_AS_VAR_APPEND.
1158         Support an argument to specify the program to compile.
1159         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1160         AC_SUBST the WARN_CFLAGS when they are used.
1161         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1162         leave this to gl_WARN_ADD.
1163
1164 2012-05-08  Eric Blake  <eblake@redhat.com>
1165
1166         doc: recommendations on gettext version
1167         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1168         choice between versions.
1169         * DEPENDENCIES (gettext): Cover both approaches.
1170
1171 2012-05-08  Jim Meyering  <meyering@redhat.com>
1172
1173         init.sh: explain why EXEEXT support uses aliases rather than functions
1174         * tests/init.sh: Add a comment.
1175
1176         init.sh: don't let bash aliases interfere with tests
1177         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1178         is bash.  This avoids problems for those who alias standard commands to
1179         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1180         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1181
1182 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1183
1184         stdint: be more consistent with glibc, SunOS libc
1185         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1186         (gl_int_fast16_t, gl_uint_fast16_t)
1187         (gl_int_fast32_t, gl_uint_fast32_t)
1188         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1189         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1190         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1191         Be consistent with glibc by default, and with SunOS 5.10 and later
1192         if __sun is defined.  This lessens the likelihood of clashes if
1193         code compiled for older hosts is combined with code compiled for
1194         newer ones.  Problem reported by Niels Möller in
1195         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1196
1197 2012-05-07  Eric Blake  <eblake@redhat.com>
1198
1199         isatty: relax license to LGPLv2+
1200         * modules/isatty (License): Relax license.
1201
1202 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1203
1204         stat-size: comment fix
1205         * lib/stat-size.h: Remove obsolete comment about indenting.
1206
1207 2012-05-06  Bruno Haible  <bruno@clisp.org>
1208
1209         Tests for module 'sh-quote'.
1210         * modules/sh-quote-tests: New file.
1211         * tests/test-sh-quote.c: New file.
1212
1213 2012-05-06  Bruno Haible  <bruno@clisp.org>
1214
1215         sh-quote: Improve shell_quote_argv's signature.
1216         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1217         * lib/sh-quote.c (shell_quote_argv): Likewise.
1218
1219 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1220
1221         stdint: document issues with int_fast8_t etc.
1222         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1223         stdint.h substitutes may define these types differently.  See
1224         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1225
1226 2012-05-05  Bruno Haible  <bruno@clisp.org>
1227
1228         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1230         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1231         or 'guessing no (mishandles large arguments)'.
1232
1233 2012-05-05  Bruno Haible  <bruno@clisp.org>
1234
1235         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1236         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1237         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1238         set gl_cv_func_link_follows_symlink to "guessing no".
1239
1240 2012-05-05  Bruno Haible  <bruno@clisp.org>
1241
1242         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1243         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1244         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1245         "guessing no".
1246         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1247
1248 2012-05-05  Bruno Haible  <bruno@clisp.org>
1249
1250         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1251         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1252         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1253         set gl_cv_struct_dirent_d_ino to "guessing yes".
1254
1255 2012-05-05  Bruno Haible  <bruno@clisp.org>
1256
1257         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1258         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1259         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1260         "guessing yes".
1261
1262 2012-05-05  Bruno Haible  <bruno@clisp.org>
1263
1264         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1265         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1266         compiling to a glibc system, set gl_cv_func_signbit and
1267         gl_cv_func_signbit_gcc to "guessing yes".
1268
1269 2012-05-05  Bruno Haible  <bruno@clisp.org>
1270
1271         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1272         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1273         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1274         to "guessing yes".
1275         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1276         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1277
1278 2012-05-05  Bruno Haible  <bruno@clisp.org>
1279
1280         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1281         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1282         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1283         gl_cv_func_realpath_works to "guessing yes".
1284
1285 2012-05-05  Bruno Haible  <bruno@clisp.org>
1286
1287         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1288         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1289         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1290
1291 2012-05-04  Bruno Haible  <bruno@clisp.org>
1292
1293         Tweak last commit.
1294         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1295         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1296
1297 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         unistd_h: make it easier to avoid sys_types_h
1300         This is useful for Emacs, which has its own method of porting to
1301         Windows, and which therefore does not need the sys_types_h module.
1302         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1303         code moved here from gl_SYS_TYPES_H.
1304         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1305         using the code directly.
1306         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1307         gl_SYS_TYPES_H.
1308         * modules/sys_types (Files):
1309         * modules/unistd (Files): Add m4/off_t.m4.
1310
1311 2012-05-03  Bruno Haible  <bruno@clisp.org>
1312
1313         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1314         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1315         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1316         "guessing yes" or "guessing no".
1317         (gl_FUNC_LSTAT): Update.
1318         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1319         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1320         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1321
1322 2012-05-03  Bruno Haible  <bruno@clisp.org>
1323
1324         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1325         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1326         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1327         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1328         cross-compiling, choose the first alternative on glibc systems.
1329         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1330
1331 2012-05-03  Bruno Haible  <bruno@clisp.org>
1332
1333         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1334         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1335         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1336
1337 2012-05-03  Bruno Haible  <bruno@clisp.org>
1338
1339         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1340         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1341
1342 2012-05-03  Bruno Haible  <bruno@clisp.org>
1343
1344         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1345         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1346         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1347         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1348         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1349         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1350         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1351         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1352         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1353         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1354         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1355         gl_cv_func_chown_ctime_works to "guessing yes".
1356         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1357         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1358         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1359         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1360         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1362         compiling to glibc systems, set gl_cv_func_open_directory_works to
1363         "guessing yes".
1364         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1365         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1366         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1367         "guessing yes".
1368         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1369         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1370         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1371         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1372         "guessing yes".
1373         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1374         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1375         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1376         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1377         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1378         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1379         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1380         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1381         "guessing yes".
1382         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1383         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1384         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1385         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1386         "guessing yes".
1387         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1388         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1389         "guessing yes".
1390         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1391         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1392         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1393         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1394         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1395         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1396         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1397         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1398         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1399         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1400         "guessing yes".
1401         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1402         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1403         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1404         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1405         "guessing yes".
1406         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1407         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1408         "guessing yes".
1409         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1410         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1411         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1412         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1413         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1414         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1415         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1416         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1417         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1418         "guessing yes".
1419         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1420         compiling to glibc systems, set gl_cv_func_mknod_works to
1421         "guessing yes".
1422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1423         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1424         "guessing yes".
1425         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1426         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1427         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1428         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1429         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1430         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1431         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1432         compiling to glibc systems, set gl_cv_func_svid_putenv to
1433         "guessing yes".
1434         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1435         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1436         "guessing yes".
1437         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1438         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1439         "guessing yes".
1440         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1441         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1442         to "guessing yes".
1443         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1444         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1445         to "guessing yes".
1446         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1447         compiling to glibc systems, set gl_cv_func_rmdir_works to
1448         "guessing yes".
1449         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1450         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1451         gl_cv_func_unlink_parent_fails to "guessing yes".
1452         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1453         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1454         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1455         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1456         gl_cv_func_rename_dest_works to "guessing yes".
1457         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1458         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1460         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1461         "guessing yes".
1462         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1463         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1464         "guessing yes".
1465         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1466         compiling to glibc systems, set gl_cv_func_setenv_works to
1467         "guessing yes".
1468         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1469         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1470         "guessing yes".
1471         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1472         compiling to glibc systems, set gl_cv_func_sleep_works to
1473         "guessing yes".
1474         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1475         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1476         "guessing yes".
1477         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1478         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1479         "guessing yes".
1480         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1481         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1482         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1483         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1484         "guessing yes".
1485         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1486         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1487         "guessing yes".
1488         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1489         compiling to glibc systems, set gl_cv_func_usleep_works to
1490         "guessing yes".
1491         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1492         compiling to glibc systems, set gl_cv_func_futimesat_works to
1493         "guessing yes".
1494
1495 2012-05-03  Bruno Haible  <bruno@clisp.org>
1496
1497         Say "guessing yes" or "guessing no" when cross-compiling.
1498         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1499         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1500         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1501         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1502         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1503         am_cv_func_working_getline to "guessing yes" or "guessing no".
1504         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1505         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1506         (gl_FUNC_MEMMEM): When cross-compiling, set
1507         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1509         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1511         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1512         "guessing no".
1513         (gl_FUNC_STRCASESTR): When cross-compiling, set
1514         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1515         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1516         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1517         (gl_FUNC_STRSTR): When cross-compiling, set
1518         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1519         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1520         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1521         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1522         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1523
1524 2012-05-01  Bruno Haible  <bruno@clisp.org>
1525
1526         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1527         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1528         * build-aux/reloc-ldflags: Likewise.
1529         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1530
1531 2012-05-01  Bruno Haible  <bruno@clisp.org>
1532
1533         gnulib-tool: Remove transitional code.
1534         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1535         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1536
1537 2012-05-01  Bruno Haible  <bruno@clisp.org>
1538
1539         getcwd: Fix misindentation.
1540         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1541
1542 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1543
1544         exclude: process exclude and include directives in order
1545         This restores the pre-2009 behavior, and is part of a fix of a
1546         grep bug reported by Quentin Arce in
1547         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1548         * lib/exclude.c (struct exclude): Remove 'tail' member.
1549         (new_exclude_segment): Prepend the new segment instead of appending.
1550         Return void, since that's now more convenient.
1551         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1552         (file_name_matches): Renamed from excluded_file_name_p.
1553         (file_pattern_matches, file_name_matches):
1554         Return true if the pattern matches, not if it excludes.
1555         All callers changed.
1556         (excluded_file_name): Process the list in reverse order;
1557         since the list is now reversed this restores the pre-2009 behavior.
1558         (add_exclude): Adjust to new reversed-order list.  Use local var
1559         rather than macro, for clarity.
1560         * tests/test-exclude7.sh: Adjust to corrected behavior.
1561
1562         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1563         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1564         it's not possible here.  Handle the case of \ at end of pattern
1565         without dumping core.
1566         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1567
1568         _Noreturn: future-proof non-GNU and non-MSVC compilers
1569         * build-aux/snippet/_Noreturn.h (_Noreturn):
1570         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1571         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1572         C11 or later.  This is more likely to work with random future C
1573         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1575
1576         exclude: handle wildcards with FNM_EXTMATCH
1577         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1578         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1579         comment that "has wildcards" really means "has or may have
1580         wildcards".  Simplify by avoiding the need to call strcspn.
1581
1582 2012-04-29  Bruno Haible  <bruno@clisp.org>
1583
1584         gnulib-tool: Fix list of authors.
1585         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1586
1587 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1588
1589         bootstrap: support Automake-NG in $buildreq
1590         * bootstrap (check_versions): Handle automake and aclocal from
1591         Automake-NG specially.  They can be specified as respectively
1592         the "automake-ng" and "aclocal-ng" requirements.
1593
1594 2012-04-25  Eric Blake  <eblake@redhat.com>
1595
1596         bootstrap: only force latest Makefile.in.in for gettext module
1597         * build-aux/bootstrap (with_gettext): Only install latest
1598         Makefile.in.in for projects requesting bleeding edge gettext.
1599
1600 2012-04-22  Bruno Haible  <bruno@clisp.org>
1601
1602         doc: Mention reason for replacement on glibc/Linux systems.
1603         * doc/posix-functions/dprintf.texi: Mention the problem with special
1604         'long double' values.
1605         * doc/posix-functions/fprintf.texi: Likewise.
1606         * doc/posix-functions/printf.texi: Likewise.
1607         * doc/posix-functions/snprintf.texi: Likewise.
1608         * doc/posix-functions/sprintf.texi: Likewise.
1609         * doc/posix-functions/vdprintf.texi: Likewise.
1610         * doc/posix-functions/vfprintf.texi: Likewise.
1611         * doc/posix-functions/vprintf.texi: Likewise.
1612         * doc/posix-functions/vsnprintf.texi: Likewise.
1613         * doc/posix-functions/vsprintf.texi: Likewise.
1614         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1615         platforms with F_DUPFD_CLOEXEC problems.
1616         * doc/posix-functions/glob.texi: Mention which platforms are affected
1617         by the problem with symbolic links.
1618         * doc/posix-functions/linkat.texi: Mention the problem with
1619         AT_SYMLINK_FOLLOW on Linux.
1620
1621 2012-04-22  Bruno Haible  <bruno@clisp.org>
1622
1623         pwrite: Don't replace on all platforms.
1624         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1625
1626 2012-04-22  Bruno Haible  <bruno@clisp.org>
1627
1628         rint* tests: Avoid gcc warnings.
1629         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1630         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1631         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1632
1633 2012-04-21  Bruno Haible  <bruno@clisp.org>
1634
1635         users.txt: Update.
1636         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1637         switched from CVS to git, bzr, or svn.
1638
1639 2012-04-21  Bruno Haible  <bruno@clisp.org>
1640
1641         Large File Support for native Windows platforms.
1642
1643         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1644         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1645
1646         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1647         type.
1648         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1649         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1650         * doc/posix-headers/sys_types.texi: Mention the effect of the
1651         'largefile' module.
1652
1653         * lib/fcntl.in.h: Add comments about off_t.
1654         * modules/fcntl-h (Depends-on): Add sys_types.
1655
1656         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1657         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1658         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1659         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1660         * modules/unistd (Depends-on): Add sys_types.
1661         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1662
1663         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1664         instead of lseek.
1665         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1666         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1667         * modules/lseek (Depends-on): Add sys_types.
1668
1669         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1670         msvc-nothrow.h.
1671         (SetFileSize): New function.
1672         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1673         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1674         if Large File Support is requested.
1675         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1676         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1677
1678         * lib/stdio.in.h: Add comments about off_t.
1679         * modules/stdio (Depends-on): Add sys_types.
1680
1681         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1682         instead of ftello.
1683         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1684         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1685         (gl_PREREQ_FTELLO): New macro.
1686         * modules/ftello (Depends-on): Add sys_types.
1687         (configure.ac): Incoke gl_PREREQ_FTELLO.
1688
1689         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1690         instead of fseeko.
1691         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1692         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1693         (gl_PREREQ_FSEEKO): New macro.
1694         * modules/fseeko (Depends-on): Add sys_types.
1695         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1696
1697         * lib/sys_stat.in.h: Add comments about off_t.
1698         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1699         64-bit integer for st_size in 'struct stat'.
1700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1701         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1702         * modules/sys_stat (Depends-on): Add sys_types.
1703         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1704
1705         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1706         instead of stat or _stat.
1707
1708         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1709         'struct _stati64' instead of fstat and 'struct stat'.
1710         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1711         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1712
1713         Reported by Ray Satiro <raysatiro@yahoo.com>.
1714
1715 2012-04-19  Eric Blake  <eblake@redhat.com>
1716
1717         bootstrap: accommodate older libtool
1718         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1719         Reported by Daniel P. Berrange.
1720
1721 2012-04-19  Jim Meyering  <meyering@redhat.com>
1722
1723         announce-gen: avoid failure due to lack of Digest::SHA1
1724         Even with the preferred Digest::SHA available, this script
1725         would fail when the backup module, Digest::SHA1, was not installed.
1726         * build-aux/announce-gen: Quote the conditional use of "use".
1727         Reported by Reuben Thomas in:
1728         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1729
1730         bootstrap: don't let a user's CDPATH setting affect this script
1731         When CDPATH is set, cd will sometimes generate output.
1732         When "cd" is run in a subshell whose output matters, that
1733         surprising-to-some output can cause malfunction.
1734         Unsetting CDPATH turns off this shell "feature."
1735         * build-aux/bootstrap (CDPATH): Unset.
1736         Reported by Reuben Thomas in:
1737         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1738         and inspired by his patch here:
1739         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1740
1741 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1742         and Jim Meyering  <meyering@redhat.com>
1743
1744         maint.mk: catch "see @xref{}" and similar
1745         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1746         prohibit "See also @xref{", "Also see @pxref{", and similar.
1747
1748 2012-04-16  Jim Meyering  <meyering@redhat.com>
1749
1750         bootstrap: really use gnulib's po/Makefile.in.in
1751         * build-aux/bootstrap: Correct the source file name in previous change.
1752         Reported by Akim Demaille.
1753
1754         configmake: correct minor inconsistency in Makefile rule
1755         * modules/configmake (Makefile.am): All other rules like this one
1756         run the final "mv -f ..." in the same backslash-continued command
1757         as the one that does everything else.  This one put the mv -f ...
1758         command on a separate, non-backslash-continued line.
1759         Make it like the others.
1760
1761         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1762         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1763         the one from gettext.  Reported by Akim Demaille.
1764
1765 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1766
1767         Fix recursion of install-* into po directories.
1768         Bison's install-pdf bug reported by Hans Aberg at
1769         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1770         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1771         (install-info, install-pdf, install-ps): New targets.
1772
1773 2012-04-16  Jim Meyering  <meyering@redhat.com>
1774
1775         maint: avoid spurious "make sc_maint" failure
1776         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1777         exempt all *.class file names, for lib/javaversion.class.
1778
1779 2012-04-15  Bruno Haible  <bruno@clisp.org>
1780
1781         lseek: Make configure test independent of environment.
1782         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1783         Windows, we know that lseek() on pipes is broken; skip the runtime
1784         test.
1785
1786 2012-04-14  Bruno Haible  <bruno@clisp.org>
1787
1788         stat: Bypass buggy override in mingw64.
1789         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1790         * lib/stat.c (stat) [mingw64]: Define to _stat.
1791         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1792
1793 2012-04-14  Bruno Haible  <bruno@clisp.org>
1794
1795         pathmax: Fix compilation error on MSVC 9.
1796         * modules/pathmax (Depends-on): Add unistd.
1797
1798 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1799
1800         README: document pointer comparison assumption
1801         * README (Portability guidelines): Document assumption about
1802         pointer comparisons, in response to a recent bug-gnulib comment by
1803         Jeffrey Kegler.
1804
1805 2012-04-12  Bruno Haible  <bruno@clisp.org>
1806
1807         Tests for module 'getrusage'.
1808         * modules/getrusage-tests: New file.
1809         * tests/test-getrusage.c: New file.
1810
1811         New module 'getrusage'.
1812         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1813         warn-on-use.h.
1814         (getrusage): New declaration.
1815         * lib/getrusage.c: New file.
1816         * m4/getrusage.m4: New file.
1817         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1818         is declared.
1819         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1820         HAVE_GETRUSAGE.
1821         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1822         snippet/c++defs, snippet/warn-on-use.
1823         (Makefile.am): Update generation of sys/resource.h. Substitute
1824         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1825         * modules/getrusage: New file.
1826         * doc/posix-functions/getrusage.texi: Mention the new module.
1827
1828 2012-04-12  Bruno Haible  <bruno@clisp.org>
1829
1830         Tests for module 'sys_resource'.
1831         * modules/sys_resource-tests: New file.
1832         * tests/test-sys_resource.c: New file.
1833
1834         New module 'sys_resource'.
1835         * lib/sys_resource.in.h: New file.
1836         * m4/sys_resource_h.m4: New file.
1837         * modules/sys_resource: New file.
1838         * doc/posix-headers/sys_resource.texi: Mention the new module.
1839
1840 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1841
1842         ioctl: Fix compilation error on mingw.
1843         * lib/ioctl.c: Include <windows.h>.
1844         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1845
1846 2012-04-04  Jim Meyering  <meyering@redhat.com>
1847
1848         regex: correct #pragma guard expression
1849         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1850         not 4.3.  Correct its cpp guard expression.
1851
1852 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1853
1854         regex: remove unnecessary type punning
1855         Problem reported by Vladimir Serbinenko in
1856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1857         * lib/regex.h (struct re_pattern_buffer): Change the type of
1858         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1859         Fix comment to match code.
1860         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1861         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1862         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1863         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1864         (set_regs):
1865         Omit no-longer-necessary casts.
1866
1867 2012-04-03  Bruno Haible  <bruno@clisp.org>
1868
1869         Tests for module 'ilogbl'.
1870         * modules/ilogbl-tests: New file.
1871         * tests/test-ilogbl.c: New file.
1872
1873         New module 'ilogbl'.
1874         * lib/math.in.h (ilogbl): New declaration.
1875         * lib/ilogbl.c: New file.
1876         * m4/ilogbl.m4: New file.
1877         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1879         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1880         Split sed invocation, to avoid the limit of 100 substitutions of
1881         HP-UX 'sed'.
1882         * modules/ilogbl: New file.
1883         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1884         * doc/posix-functions/ilogbl.texi: Mention the new module.
1885
1886 2012-04-03  Bruno Haible  <bruno@clisp.org>
1887
1888         Tests for module 'ilogbf'.
1889         * modules/ilogbf-tests: New file.
1890         * tests/test-ilogbf.c: New file.
1891
1892         New module 'ilogbf'.
1893         * lib/math.in.h (ilogbf): New declaration.
1894         * lib/ilogbf.c: New file.
1895         * m4/ilogbf.m4: New file.
1896         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1898         REPLACE_ILOGBF.
1899         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1900         REPLACE_ILOGBF.
1901         * modules/ilogbf: New file.
1902         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1903         * doc/posix-functions/ilogbf.texi: Mention the new module.
1904
1905 2012-04-03  Bruno Haible  <bruno@clisp.org>
1906
1907         Tests for module 'ilogb'.
1908         * modules/ilogb-tests: New file.
1909         * tests/test-ilogb.c: New file.
1910         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1911         tests/test-logb-ieee.h.
1912
1913         New module 'ilogb'.
1914         * lib/math.in.h (ilogb): New declaration.
1915         * lib/ilogb.c: New file.
1916         * m4/ilogb.m4: New file.
1917         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1919         REPLACE_ILOGB.
1920         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1921         REPLACE_ILOGB.
1922         * modules/ilogb: New file.
1923         * tests/test-math-c++.cc: Check the declaration of ilogb.
1924         * doc/posix-functions/ilogb.texi: Mention the new module.
1925
1926 2012-04-03  Bruno Haible  <bruno@clisp.org>
1927
1928         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1929         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1930         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1931         (main): Check their values.
1932         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1933         problem.
1934
1935 2012-04-03  Bruno Haible  <bruno@clisp.org>
1936
1937         Tests for module 'logbl-ieee'.
1938         * modules/logbl-ieee-tests: New file.
1939         * tests/test-logbl-ieee.c: New file.
1940
1941         New module 'logbl-ieee'.
1942         * modules/logbl-ieee: New file.
1943
1944         Tests for module 'logb-ieee'.
1945         * modules/logb-ieee-tests: New file.
1946         * tests/test-logb-ieee.c: New file.
1947
1948         New module 'logb-ieee'.
1949         * modules/logb-ieee: New file.
1950
1951         Tests for module 'logbf-ieee'.
1952         * modules/logbf-ieee-tests: New file.
1953         * tests/test-logbf-ieee.c: New file.
1954         * tests/test-logb-ieee.h: New file.
1955
1956         New module 'logbf-ieee'.
1957         * modules/logbf-ieee: New file.
1958
1959 2012-04-03  Bruno Haible  <bruno@clisp.org>
1960
1961         Tests for module 'logbl'.
1962         * modules/logbl-tests: New file.
1963         * tests/test-logbl.c: New file.
1964
1965         New module 'logbl'.
1966         * lib/math.in.h (logbl): New declaration.
1967         * lib/logbl.c: New file.
1968         * m4/logbl.m4: New file.
1969         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1971         REPLACE_LOGBL.
1972         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1973         REPLACE_LOGBL.
1974         * modules/logbl: New file.
1975         * tests/test-math-c++.cc: Check the declaration of logbl.
1976         * doc/posix-functions/logbl.texi: Mention the new module.
1977
1978 2012-04-02  Bruno Haible  <bruno@clisp.org>
1979
1980         Tests for module 'logbf'.
1981         * modules/logbf-tests: New file.
1982         * tests/test-logbf.c: New file.
1983
1984         New module 'logbf'.
1985         * lib/math.in.h (logbf): New declaration.
1986         * lib/logbf.c: New file.
1987         * m4/logbf.m4: New file.
1988         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1990         REPLACE_LOGBF.
1991         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1992         REPLACE_LOGBF.
1993         * modules/logbf: New file.
1994         * tests/test-math-c++.cc: Check the declaration of logbf.
1995         * doc/posix-functions/logbf.texi: Mention the new module.
1996
1997 2012-04-02  Bruno Haible  <bruno@clisp.org>
1998
1999         logb tests: More tests.
2000         * tests/test-logb.h: New file, based on tests/test-logb.c and
2001         tests/test-frexp.h.
2002         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2003         (main): Just invoke test_function.
2004         * modules/logb-tests (Files): Add tests/test-logb.h,
2005         tests/minus-zero.h, tests/randomd.c.
2006         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2007
2008         logb: Provide replacement and workarounds.
2009         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2010         is 1.
2011         * lib/logb.c: New file.
2012         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2013         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2015         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2016         * modules/logb (Files): Add lib/logb.c.
2017         (Depends-on): Add isfinite, frexp, isnand.
2018         (configure.ac): Compile the replacement code logb.c if needed.
2019         * tests/test-math-c++.cc: Check the declaration of logb.
2020         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2021         with subnormal numbers.
2022
2023 2012-04-02  Bruno Haible  <bruno@clisp.org>
2024
2025         log10* tests: Speed up.
2026         * tests/test-log10.h (test_function): Reduce amount of random numbers
2027         to test.
2028
2029 2012-04-01  Bruno Haible  <bruno@clisp.org>
2030
2031         logf-ieee: Fix test whether logf works.
2032         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2033
2034 2012-04-01  Bruno Haible  <bruno@clisp.org>
2035
2036         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2037         * lib/log10l.c: Include <float.h>
2038         (log10l): On IRIX, normalize the +Infinity value.
2039         * modules/log10l (Depends-on): Add 'float'.
2040         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2041         +Infinity.
2042
2043         log10f-ieee: Work around test failure on NetBSD 5.1.
2044         * m4/log10f-ieee.m4: New file.
2045         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2046         test whether log10f works with a negative argument. Replace it if not.
2047         * lib/log10f.c (log10f): For negative arguments, return NaN.
2048         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2049         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2050         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2051
2052         log10f-ieee: Work around test failure on Solaris 9.
2053         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2054         (configure.ac): Require gl_FUNC_LOG10F.
2055
2056         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2057         * m4/log10-ieee.m4: New file.
2058         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2059         whether log10 works with a negative argument. Replace it if not.
2060         * lib/log10.c (log10): For negative arguments, return NaN.
2061         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2062         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2063         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2064
2065         Tests for module 'log10l-ieee'.
2066         * modules/log10l-ieee-tests: New file.
2067         * tests/test-log10l-ieee.c: New file.
2068
2069         New module 'log10l-ieee'.
2070         * modules/log10l-ieee: New file.
2071
2072         Tests for module 'log10-ieee'.
2073         * modules/log10-ieee-tests: New file.
2074         * tests/test-log10-ieee.c: New file.
2075
2076         New module 'log10-ieee'.
2077         * modules/log10-ieee: New file.
2078
2079         Tests for module 'log10f-ieee'.
2080         * modules/log10f-ieee-tests: New file.
2081         * tests/test-log10f-ieee.c: New file.
2082         * tests/test-log10-ieee.h: New file.
2083
2084         New module 'log10f-ieee'.
2085         * modules/log10f-ieee: New file.
2086
2087 2012-04-01  Bruno Haible  <bruno@clisp.org>
2088
2089         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2090         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2091         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2092         workaround.
2093         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2094         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2096         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2097         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2098         (Depends-on): Update conditions.
2099         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2100         IRIX 6.5, OSF/1 5.1 problems.
2101
2102 2012-04-01  Bruno Haible  <bruno@clisp.org>
2103
2104         log10f: Work around OSF/1 5.1 bug.
2105         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2106         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2107         workaround.
2108         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2109         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2111         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2112         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2113         (Depends-on): Update conditions.
2114         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2115
2116 2012-04-01  Bruno Haible  <bruno@clisp.org>
2117
2118         log10: Work around OSF/1 5.1 bug.
2119         * lib/math.in.h (log10): New declaration.
2120         * lib/log10.c: New file.
2121         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2122         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2123         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2125         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2126         * modules/log10 (Files): Add lib/log10.c.
2127         (Depends-on): Add math.
2128         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2129         * tests/test-math-c++.cc: Check the declaration of log10.
2130         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2131
2132 2012-03-31  Bruno Haible  <bruno@clisp.org>
2133
2134         log10l tests: More tests.
2135         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2136         tests/minus-zero.h, tests/randoml.c.
2137         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2138         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2139         (main): Invoke test_function.
2140
2141         log10f tests: More tests.
2142         * modules/log10f-tests (Files): Add tests/test-log10.h,
2143         tests/minus-zero.h, tests/randomf.c.
2144         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2145         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2146         (main): Invoke test_function.
2147
2148         log10 tests: More tests.
2149         * tests/test-log10.h: New file.
2150         * modules/log10-tests (Files): Add tests/test-log10.h,
2151         tests/minus-zero.h, tests/randomd.c.
2152         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2153         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2154         (main): Invoke test_function.
2155
2156 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2157
2158         fflush: Fix syntax error.
2159         * lib/fflush.c: Include unused-parameter.h, needed for
2160         _GL_UNUSED_PARAMETER.
2161         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2162
2163 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         regex: pacify GCC when compiling GRUB
2166         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2167         a diagnostic.  Reported by Vladimir Serbinenko in
2168         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2169
2170 2012-03-29  Eric Blake  <eblake@redhat.com>
2171
2172         stdio: don't assume gets any more
2173         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2174         support.
2175         * modules/stdio (Makefile.am): Likewise.
2176         * lib/stdio-read.c (gets): Likewise.
2177         * tests/test-stdio-c++.cc: Likewise.
2178         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2179         * lib/stdio.in.h (gets): Make warning occur in more places.
2180         * doc/posix-functions/gets.texi (gets): Update documentation.
2181         Reported by Christer Solskogen.
2182
2183         maint.mk: fix syntax checks without exclusions
2184         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2185         Reported by Daniel P. Berrange.
2186
2187         strerror_r: avoid compiler warning
2188         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2189         level.
2190
2191         fflush: avoid compiler warning
2192         * lib/fflush.c (update_fpos_cache): Mark variables that are
2193         potentially unused.
2194
2195 2012-03-25  Bruno Haible  <bruno@clisp.org>
2196
2197         Tests for module 'localeconv'.
2198         * modules/localeconv-tests: New file.
2199         * tests/test-localeconv.c: New file.
2200
2201         New module 'localeconv'.
2202         * lib/locale.in.h (localeconv): New declaration.
2203         * lib/localeconv.c: New file.
2204         * m4/localeconv.m4: New file.
2205         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2206         REPLACE_LOCALECONV.
2207         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2208         REPLACE_LOCALECONV.
2209         * modules/localeconv: New file.
2210         * modules/nl_langinfo (Depends-on): Add localeconv.
2211         * modules/human (Depends-on): Likewise.
2212         * doc/posix-functions/localeconv.texi: Mention the new module.
2213
2214 2012-03-25  Bruno Haible  <bruno@clisp.org>
2215
2216         locale: Provide a complete 'struct lconv'.
2217         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2218         'struct lconv' does not contain int_p_cs_precedes.
2219         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2220         * doc/posix-headers/locale.texi: Update.
2221
2222         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2223         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2224         * doc/posix-headers/locale.texi: Update.
2225
2226         locale: Provide a working 'struct lconv'.
2227         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2228         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2229         'struct lconv' does not even contain decimal_point.
2230         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2231         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2232         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2233         * doc/posix-headers/locale.texi: Mention the problems with
2234         'struct lconv'.
2235         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2236
2237 2012-03-24  Bruno Haible  <bruno@clisp.org>
2238
2239         Enable common subexpression optimization in GCC.
2240         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2241         macros.
2242         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2243         GCC attribute 'const'.
2244         (uc_locale_language): Declare with GCC attribute 'pure'.
2245         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2246         with GCC attribute 'const'.
2247         * lib/unictype.in.h (uc_is_general_category_withtable,
2248         uc_combining_class, uc_combining_class_name,
2249         uc_combining_class_long_name, uc_bidi_class_name,
2250         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2251         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2252         uc_decimal_value, uc_digit_value, uc_numeric_value,
2253         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2254         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2255         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2256         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2257         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2258         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2259         Declare with GCC attribute 'const'.
2260         (uc_general_category_name, uc_general_category_long_name,
2261         uc_general_category_byname, uc_general_category,
2262         uc_is_general_category, uc_combining_class_byname,
2263         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2264         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2265         Declare with GCC attribute 'pure'.
2266         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2267         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2268         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2269         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2270         with GCC attribute 'pure'.
2271         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2272         'const'.
2273         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2274         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2275         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2276         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2277         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2278         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2279         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2280         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2281         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2282         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2283         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2284         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2285         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2286         GCC attribute 'pure'.
2287         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2288         'const'.
2289         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2290         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2291         u32_strwidth): Declare with GCC attribute 'pure'.
2292
2293         Enable common subexpression optimization in GCC.
2294         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2295         (alphasort): Declare with GCC attribute 'pure'.
2296         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2297         (atoll): Declare with GCC attribute 'pure'.
2298         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2299         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2300         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2301         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2302         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2303         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2304         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2305
2306 2012-03-24  Bruno Haible  <bruno@clisp.org>
2307
2308         gnulib-tool: Avoid unintended error output from 'cmp'.
2309         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2310         "cmp -s", not "cmp > /dev/null".
2311
2312 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2313
2314         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2315
2316         It's not just Automake versions < 1.9b that creates an empty
2317         pkgdatadir at installation time if pkgdata_DATA is specified
2318         to empty; modern automake versions do this as well, at least
2319         until automake 1.11.4 (not yet released at the moment of writing,
2320         but soon to appear).  That behaviour was generally considered a
2321         feature rather than a bug, at least until this discussion:
2322         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2323
2324         See also automake bugs #10997 and #11030.
2325
2326         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2327         reference to relevant automake bug numbers.
2328         (func_emit_tests_Makefile_am): Likewise.
2329
2330 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2331
2332         announce-gen: use Digest::SHA when possible
2333         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2334         back to Digest::SHA1 if necessary.
2335
2336 2012-03-20  Jim Meyering  <meyering@redhat.com>
2337
2338         tests: avoid gcc warnings about argv vs. const initializers
2339         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2340         warnings about discarding 'const' qualifier from pointer target type.
2341         * tests/test-posix_spawn2.c (main): Likewise.
2342
2343 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2344
2345         README-release: simplify slightly
2346         * top/README-release: Run "git checkout master" only once.
2347
2348 2012-03-15  Mark Wielaard  <mark@klomp.org>
2349
2350         git-merge-changelog: add specific example on how to use with hg.
2351         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2352
2353 2012-03-18  Mark Wielaard  <mark@klomp.org>
2354
2355         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2356
2357 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2358
2359         git-version-gen: don't let "prefix" envvar cause trouble
2360         * build-aux/git-version-gen (prefix): Initialize properly,
2361         so as not to use a value specified via the environment.
2362         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2363
2364 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2365
2366         regex: diagnose too-large repeat counts in EREs
2367         Previously, the code did not diagnose the too-large repeat count
2368         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2369         as if it were 'b\{1000000000}', which is unexpected.
2370         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2371         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2372         is a reasonable one for this problem.  Another option would be to
2373         create a new REG_OVERFLOW error for repeat counts that are too large.
2374         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2375         count is too large, so that the caller can distinguish the two cases.
2376         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2377         "Too large" return code, and that repeat counts are one example of this.
2378
2379 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2380
2381         doc: some glibc x32 integer width issues
2382         * doc/posix-headers/sys_types.texi (sys/types.h):
2383         * doc/posix-headers/time.texi (time.h):
2384         Mention that glibc x32 does not conform to POSIX in a couple of
2385         areas related to integer widths.
2386
2387 2012-03-15  Bruno Haible  <bruno@clisp.org>
2388
2389         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2390         * lib/fma.c (VOLATILE): New macro.
2391         (FUNC): Use it to work around a GCC compiler bug.
2392
2393 2012-03-13  Bruno Haible  <bruno@clisp.org>
2394
2395         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2396         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2397         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2398         REPLACE_HYPOTL to 1.
2399         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2400
2401 2012-03-13  Bruno Haible  <bruno@clisp.org>
2402
2403         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2404         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2405         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2406         REPLACE_REMAINDERL to 1.
2407         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2408         bug.
2409
2410 2012-03-13  Bruno Haible  <bruno@clisp.org>
2411
2412         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2413         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2414         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2415         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2416         too big rounding errors.
2417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2418         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2419         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2420         (Depends-on): Update conditions.
2421         * tests/test-sqrtl.c (my_ldexpl): New function.
2422         (main): Add test of a particular value.
2423         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2424
2425 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2426
2427         doc: Update timer_* platform portability notes.
2428         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2429         that always return ENOSYS.
2430         * doc/posix-functions/timer_delete.texi: Likewise.
2431         * doc/posix-functions/timer_gettime.texi: Likewise.
2432         * doc/posix-functions/timer_settime.texi: Likewise.
2433
2434 2012-03-13  Bruno Haible  <bruno@clisp.org>
2435
2436         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2437         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2438         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2439         REPLACE_CBRTL to 1.
2440         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2441
2442 2012-03-13  Bruno Haible  <bruno@clisp.org>
2443
2444         remainderl: Avoid compilation error on AIX >= 5.2.
2445         * lib/math.in.h (remainderl): Undefine macro from the system header.
2446
2447 2012-03-13  Bruno Haible  <bruno@clisp.org>
2448
2449         Avoid compilation errors with MSVC option -fp:strict.
2450         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2451         * lib/cbrtf.c: Likewise.
2452         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2453
2454 2012-03-12  Bruno Haible  <bruno@clisp.org>
2455
2456         uninorm: Don't crash in out-of-memory conditions.
2457         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2458         gracefully.
2459         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2460         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2461
2462 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2463
2464         quote: fix syntax-check
2465         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2466         also exports quote_quoting_options.
2467
2468 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2469
2470         Collapse list of copyright years to ranges.  See
2471         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2472         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2473         build-aux/csharpexec.sh.in, build-aux/gnupload,
2474         build-aux/install-reloc, build-aux/javacomp.sh.in,
2475         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2476         build-aux/move-if-change, build-aux/reloc-ldflags,
2477         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2478
2479 2012-03-11  Bruno Haible  <bruno@clisp.org>
2480
2481         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2482         * m4/log2f-ieee.m4: New file.
2483         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2484         whether log2f works with a minus zero argument. Replace it if not.
2485         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2486         (Depends-on): Add log2-ieee.
2487         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2488         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2489
2490         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2491         * m4/log2-ieee.m4: New file.
2492         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2493         whether log2 works with a minus zero argument. Replace it if not.
2494         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2495         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2496         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2497
2498         Tests for module 'log2l-ieee'.
2499         * modules/log2l-ieee-tests: New file.
2500         * tests/test-log2l-ieee.c: New file.
2501
2502         New module 'log2l-ieee'.
2503         * modules/log2l-ieee: New file.
2504
2505         Tests for module 'log2-ieee'.
2506         * modules/log2-ieee-tests: New file.
2507         * tests/test-log2-ieee.c: New file.
2508
2509         New module 'log2-ieee'.
2510         * modules/log2-ieee: New file.
2511
2512         Tests for module 'log2f-ieee'.
2513         * modules/log2f-ieee-tests: New file.
2514         * tests/test-log2f-ieee.c: New file.
2515         * tests/test-log2-ieee.h: New file.
2516
2517         New module 'log2f-ieee'.
2518         * modules/log2f-ieee: New file.
2519
2520 2012-03-11  Bruno Haible  <bruno@clisp.org>
2521
2522         Tests for module 'log2l'.
2523         * modules/log2l-tests: New file.
2524         * tests/test-log2l.c: New file.
2525
2526         New module 'log2l'.
2527         * lib/math.in.h (log2l): New declaration.
2528         * lib/log2l.c: New file.
2529         * m4/log2l.m4: New file.
2530         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2532         REPLACE_LOG2L.
2533         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2534         REPLACE_LOG2L.
2535         * modules/log2l: New file.
2536         * tests/test-math-c++.cc: Check the declaration of log2l.
2537         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2538         and OSF/1 problems.
2539
2540 2012-03-11  Bruno Haible  <bruno@clisp.org>
2541
2542         Tests for module 'log2f'.
2543         * modules/log2f-tests: New file.
2544         * tests/test-log2f.c: New file.
2545
2546         New module 'log2f'.
2547         * lib/math.in.h (log2f): New declaration.
2548         * lib/log2f.c: New file.
2549         * m4/log2f.m4: New file.
2550         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2552         REPLACE_LOG2F.
2553         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2554         REPLACE_LOG2F.
2555         * modules/log2f: New file.
2556         * tests/test-math-c++.cc: Check the declaration of log2f.
2557         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2558         and OSF/1 and Cygwin problems.
2559
2560 2012-03-11  Bruno Haible  <bruno@clisp.org>
2561
2562         Tests for module 'log2'.
2563         * modules/log2-tests: New file.
2564         * tests/test-log2.c: New file.
2565         * tests/test-log2.h: New file.
2566
2567         New module 'log2'.
2568         * lib/math.in.h (log2): New declaration.
2569         * lib/log2.c: New file.
2570         * m4/log2.m4: New file.
2571         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2573         REPLACE_LOG2.
2574         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2575         REPLACE_LOG2.
2576         * modules/log2: New file.
2577         * tests/test-math-c++.cc: Check the declaration of log2.
2578         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2579         and OSF/1 and Cygwin problems.
2580
2581 2012-03-11  Bruno Haible  <bruno@clisp.org>
2582
2583         exp2* tests: More tests.
2584         * tests/test-exp2.h (test_function): Test all integral arguments that
2585         don't need to overflow or denormalized numbers.
2586         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2587         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2588         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2589
2590 2012-03-10  Bruno Haible  <bruno@clisp.org>
2591
2592         log1pl-ieee: Work around test failure on AIX 7.1.
2593         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2594
2595         log1pl-ieee: Work around test failure on IRIX 6.5.
2596         * m4/log1pl-ieee.m4: New file.
2597         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2598         test whether log1pl works with a minus zero argument. Replace it if
2599         not.
2600         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2602         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2603         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2604         (Depends-on): Update conditions.
2605         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2606         m4/signbit.m4.
2607         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2608         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2609
2610         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2611         * m4/log1pf-ieee.m4: New file.
2612         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2613         test whether log1pf works with a minus zero argument. Replace it if
2614         not.
2615         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2616         m4/signbit.m4.
2617         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2618         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2619
2620         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2621         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2622         (configure.ac): Require gl_FUNC_LOG1PF.
2623
2624         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2625         * m4/log1p-ieee.m4: New file.
2626         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2627         whether log1p works with a minus zero argument. Replace it if not.
2628         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2630         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2631         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2632         (Depends-on): Update conditions.
2633         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2634         m4/signbit.m4.
2635         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2636         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2637
2638         Tests for module 'log1pl-ieee'.
2639         * modules/log1pl-ieee-tests: New file.
2640         * tests/test-log1pl-ieee.c: New file.
2641
2642         New module 'log1pl-ieee'.
2643         * modules/log1pl-ieee: New file.
2644
2645         Tests for module 'log1p-ieee'.
2646         * modules/log1p-ieee-tests: New file.
2647         * tests/test-log1p-ieee.c: New file.
2648
2649         New module 'log1p-ieee'.
2650         * modules/log1p-ieee: New file.
2651
2652         Tests for module 'log1pf-ieee'.
2653         * modules/log1pf-ieee-tests: New file.
2654         * tests/test-log1pf-ieee.c: New file.
2655         * tests/test-log1p-ieee.h: New file.
2656
2657         New module 'log1pf-ieee'.
2658         * modules/log1pf-ieee: New file.
2659
2660 2012-03-10  Bruno Haible  <bruno@clisp.org>
2661
2662         Tests for module 'log1pl'.
2663         * modules/log1pl-tests: New file.
2664         * tests/test-log1pl.c: New file.
2665
2666         New module 'log1pl'.
2667         * lib/math.in.h (log1pl): New declaration.
2668         * lib/log1pl.c: New file.
2669         * m4/log1pl.m4: New file.
2670         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2672         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2673         * modules/log1pl: New file.
2674         * tests/test-math-c++.cc: Check the declaration of log1pl.
2675         * doc/posix-functions/log1pl.texi: Mention the new module.
2676
2677 2012-03-10  Bruno Haible  <bruno@clisp.org>
2678
2679         Tests for module 'log1pf'.
2680         * modules/log1pf-tests: New file.
2681         * tests/test-log1pf.c: New file.
2682
2683         New module 'log1pf'.
2684         * lib/math.in.h (log1pf): New declaration.
2685         * lib/log1pf.c: New file.
2686         * m4/log1pf.m4: New file.
2687         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2689         REPLACE_LOG1PF.
2690         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2691         REPLACE_LOG1PF.
2692         * modules/log1pf: New file.
2693         * tests/test-math-c++.cc: Check the declaration of log1pf.
2694         * doc/posix-functions/log1pf.texi: Mention the new module.
2695
2696 2012-03-10  Bruno Haible  <bruno@clisp.org>
2697
2698         log1p tests: More tests.
2699         * tests/test-log1p.h: New file.
2700         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2701         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2702         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2703         (main): Invoke test_function.
2704
2705         log1p: Provide replacement for Minix and MSVC.
2706         * lib/math.in.h (log1p): New declaration.
2707         * lib/log1p.c: New file.
2708         * m4/log1p.m4: New file.
2709         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2711         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2712         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2713         (Depends-on): Add math, isnand, log, round.
2714         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2715         HAVE_LOG1P is 0.
2716         * tests/test-math-c++.cc: Check the declaration of log1p.
2717         * doc/posix-functions/log1p.texi: Mention the replacement.
2718
2719 2012-03-10  Bruno Haible  <bruno@clisp.org>
2720
2721         math tests: Small simplification.
2722         * tests/test-exp.h (test_function): Use the same err_bound for
2723         'double' on platforms with sizeof (long double) == sizeof (double)
2724         than on platforms with sizeof (long double) > sizeof (double).
2725         * tests/test-exp2.h (test_function): Likewise.
2726         * tests/test-expm1.h (test_function): Likewise.
2727         * tests/test-log.h (test_function): Likewise.
2728
2729 2012-03-10  Bruno Haible  <bruno@clisp.org>
2730
2731         Fix some comments.
2732         * lib/expl.c: Fix an ambiguous comment.
2733         * lib/expm1.c: Likewise.
2734         * lib/expm1l.c: Likewise.
2735         * lib/exp2.c: Likewise.
2736         * lib/exp2l.c: Likewise.
2737
2738 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2739
2740         regex: allow inclusion of <regex.h> before <limits.h>
2741         Without this patch, portable programs had to include <limits.h> before
2742         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2743         I ran into this problem with a test version of GNU grep on Solaris 8.
2744         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2745         This is done conditionally so that this change can be merged
2746         back to glibc.
2747         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2748         using the included regex.
2749
2750         fts: depend on fdopendir
2751         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2752         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2753         problem was introduced when fdopendir was split out.
2754
2755 2012-03-10  Bruno Haible  <bruno@clisp.org>
2756
2757         Remove unused variables.
2758         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2759         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2760
2761 2012-03-10  Bruno Haible  <bruno@clisp.org>
2762
2763         isnanf-nolibm: Fix last commit.
2764         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2765
2766         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2767         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2768
2769 2012-03-10  Bruno Haible  <bruno@clisp.org>
2770
2771         logf-ieee: Work around test failure on NetBSD 5.1.
2772         * m4/logf-ieee.m4: New file.
2773         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2774         whether logf works with a negative argument. Replace it if not.
2775         * lib/logf.c (logf): For negative arguments, return NaN.
2776         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2777         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2778         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2779
2780         logf-ieee: Work around test failure on Solaris 9.
2781         * modules/logf-ieee (Depends-on): Add log-ieee.
2782         (configure.ac): Require gl_FUNC_LOGF.
2783
2784         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2785         * m4/log-ieee.m4: New file.
2786         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2787         log works with a negative argument. Replace it if not.
2788         * lib/log.c (log): For negative arguments, return NaN.
2789         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2790         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2791         * doc/posix-functions/log.texi: Mention the log-ieee module.
2792
2793         Tests for module 'logl-ieee'.
2794         * modules/logl-ieee-tests: New file.
2795         * tests/test-logl-ieee.c: New file.
2796
2797         New module 'logl-ieee'.
2798         * modules/logl-ieee: New file.
2799
2800         Tests for module 'log-ieee'.
2801         * modules/log-ieee-tests: New file.
2802         * tests/test-log-ieee.c: New file.
2803
2804         New module 'log-ieee'.
2805         * modules/log-ieee: New file.
2806
2807         Tests for module 'logf-ieee'.
2808         * modules/logf-ieee-tests: New file.
2809         * tests/test-logf-ieee.c: New file.
2810         * tests/test-log-ieee.h: New file.
2811
2812         New module 'logf-ieee'.
2813         * modules/logf-ieee: New file.
2814
2815 2012-03-10  Bruno Haible  <bruno@clisp.org>
2816
2817         log: Fix bug introduced on 2012-03-09.
2818         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2819
2820 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2821
2822         timer-time: link explicitly with pthreads on glibc
2823         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2824         to support static linking, when newer glibc is
2825         detected, as that contains pthread emulation of
2826         POSIX timer functions where required.
2827         * modules/timer-time: Depend on threadlib to
2828         pull in the appropriate library to link.
2829
2830 2012-03-10  Bruno Haible  <bruno@clisp.org>
2831
2832         log* tests: More tests.
2833         * tests/test-log.h: New file.
2834         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2835         (main): Invoke test_function.
2836         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2837         (main): Invoke test_function.
2838         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2839         (main): Invoke test_function.
2840         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2841         tests/randomd.c.
2842         (Makefile.am): Add randomd.c to test_log_SOURCES.
2843         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2844         tests/randomf.c.
2845         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2846         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2847         tests/randoml.c.
2848         (Depends-on): Add 'float'.
2849         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2850
2851 2012-03-09  Bruno Haible  <bruno@clisp.org>
2852
2853         logl: Work around OSF/1 5.1 bug.
2854         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2855         * lib/logl.c (logl): If logl exists, use it and provide just the
2856         workaround.
2857         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2858         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2860         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2861         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2862         (Depends-on): Update conditions.
2863         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2864
2865 2012-03-09  Bruno Haible  <bruno@clisp.org>
2866
2867         logf: Work around OSF/1 5.1 bug.
2868         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2869         * lib/logf.c (logf): If logf exists, use it and provide just the
2870         workaround.
2871         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2872         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2874         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2875         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2876         (Depends-on): Update conditions.
2877         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2878
2879 2012-03-09  Bruno Haible  <bruno@clisp.org>
2880
2881         log: Work around OSF/1 5.1 bug.
2882         * lib/math.in.h (log): New declaration.
2883         * lib/log.c: New file.
2884         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2885         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2886         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2888         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2889         * modules/log (Files): Add lib/log.c.
2890         (Depends-on): Add math.
2891         (configure.ac): If REPLACE_LOG is 1, compile an override.
2892         * tests/test-math-c++.cc: Check the declaration of log.
2893         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2894
2895 2012-03-09  Jim Meyering  <meyering@redhat.com>
2896
2897         readtokens.c: adjust wording in a comment
2898         * lib/readtokens.c: Insert omitted "that" in a comment.
2899
2900 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2901
2902         modechange: add notations +40, 00440, etc.
2903         * lib/modechange.c (mode_compile): Support new notations
2904         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2905
2906 2012-03-08  Bruno Haible  <bruno@clisp.org>
2907
2908         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2909         * m4/exp2l-ieee.m4: New file.
2910         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2911         test whether exp2l works with a NaN argument and with a negative
2912         infinity argument. Replace it if not.
2913         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2915         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2916         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2917         (Depends-on): Update conditions.
2918         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2919         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2920         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2921
2922         Tests for module 'exp2l-ieee'.
2923         * modules/exp2l-ieee-tests: New file.
2924         * tests/test-exp2l-ieee.c: New file.
2925
2926         New module 'exp2l-ieee'.
2927         * modules/exp2l-ieee: New file.
2928
2929         Tests for module 'exp2-ieee'.
2930         * modules/exp2-ieee-tests: New file.
2931         * tests/test-exp2-ieee.c: New file.
2932
2933         New module 'exp2-ieee'.
2934         * modules/exp2-ieee: New file.
2935
2936         Tests for module 'exp2f-ieee'.
2937         * modules/exp2f-ieee-tests: New file.
2938         * tests/test-exp2f-ieee.c: New file.
2939         * tests/test-exp2-ieee.h: New file.
2940
2941         New module 'exp2f-ieee'.
2942         * modules/exp2f-ieee: New file.
2943
2944 2012-03-08  Bruno Haible  <bruno@clisp.org>
2945
2946         Tests for module 'exp2l'.
2947         * modules/exp2l-tests: New file.
2948         * tests/test-exp2l.c: New file.
2949
2950         New module 'exp2l'.
2951         * lib/math.in.h (exp2l): New declaration.
2952         * lib/exp2l.c: New file.
2953         * lib/expl-table.c: New file, extracted from lib/expl.c.
2954         * lib/expl.c (gl_expl_table): New declaration.
2955         (expl): Remove expl_table. Update reference.
2956         * m4/exp2l.m4: New file.
2957         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2959         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2960         * modules/exp2l: New file.
2961         * modules/expl (Files): Add lib/expl-table.c.
2962         (configure.ac): Compile also expl-table.c.
2963         * tests/test-math-c++.cc: Check the declaration of exp2l.
2964         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2965         problem.
2966
2967 2012-03-08  Bruno Haible  <bruno@clisp.org>
2968
2969         Tests for module 'exp2f'.
2970         * modules/exp2f-tests: New file.
2971         * tests/test-exp2f.c: New file.
2972
2973         New module 'exp2f'.
2974         * lib/math.in.h (exp2f): New declaration.
2975         * lib/exp2f.c: New file.
2976         * m4/exp2f.m4: New file.
2977         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2979         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2980         * modules/exp2f: New file.
2981         * tests/test-math-c++.cc: Check the declaration of exp2f.
2982         * doc/posix-functions/exp2f.texi: Mention the new module and the
2983         IRIX problem.
2984
2985 2012-03-08  Bruno Haible  <bruno@clisp.org>
2986
2987         Tests for module 'exp2'.
2988         * modules/exp2-tests: New file.
2989         * tests/test-exp2.c: New file.
2990         * tests/test-exp2.h: New file.
2991
2992         New module 'exp2'.
2993         * lib/math.in.h (exp2): New declaration.
2994         * lib/exp2.c: New file.
2995         * m4/exp2.m4: New file.
2996         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2998         REPLACE_EXP2.
2999         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3000         REPLACE_EXP2.
3001         * modules/exp2: New file.
3002         * tests/test-math-c++.cc: Check the declaration of exp2.
3003         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3004         and OpenBSD problems.
3005
3006 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3007
3008         savedir: fix comment typo
3009         * lib/savedir.c (savedirstream): Fix typo in comment.
3010
3011 2012-03-08  Bruno Haible  <bruno@clisp.org>
3012
3013         test-readtokens.c: use const; remove unwarranted cast
3014         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3015
3016 2012-03-08  Bruno Haible  <bruno@clisp.org>
3017
3018         fmal: Avoid compilation error on AIX.
3019         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3020         AIX 5.2..7.1.
3021
3022 2012-03-08  Bruno Haible  <bruno@clisp.org>
3023
3024         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3025         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3026         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3027         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3028         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3029         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3030         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3031
3032 2012-03-08  Bruno Haible  <bruno@clisp.org>
3033
3034         remainderf: Override buggy system function on IRIX 6.5.
3035         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3036         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3037         when it exists.
3038         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3039
3040 2012-03-08  Jim Meyering  <meyering@redhat.com>
3041
3042         test-readtokens.c: avoid const-related compilation warnings
3043         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3044
3045 2012-03-07  Jim Meyering  <meyering@redhat.com>
3046             Bruno Haible  <bruno@clisp.org>
3047
3048         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3049         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3050         tests/randomd.c.
3051         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3052         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3053         tests/randoml.c.
3054         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3055
3056 2012-03-07  Bruno Haible  <bruno@clisp.org>
3057
3058         expm1l: Avoid compilation error on AIX.
3059         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3060         AIX 5.2..7.1.
3061
3062 2012-03-07  Bruno Haible  <bruno@clisp.org>
3063
3064         expm1l: Don't override undeclared system function on IRIX 6.5.
3065         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3066         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3067         it exists. Set HAVE_DECL_EXPM1L.
3068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3069         HAVE_EXPM1L.
3070         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3071         HAVE_EXPM1L.
3072         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3073
3074 2012-03-07  Bruno Haible  <bruno@clisp.org>
3075
3076         remainderl: Don't override undeclared system function on IRIX 6.5.
3077         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3078         HAVE_REMAINDERL.
3079         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3080         declared when it exists. Set HAVE_DECL_REMAINDERL.
3081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3082         not HAVE_REMAINDERL.
3083         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3084         HAVE_REMAINDERL.
3085         * doc/posix-functions/remainderl.texi: Mention missing declaration
3086         problem.
3087
3088 2012-03-07  Bruno Haible  <bruno@clisp.org>
3089
3090         rintf: Don't override undeclared system function on IRIX 6.5.
3091         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3092         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3093         exists. Set HAVE_DECL_RINTF.
3094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3095         HAVE_RINTF.
3096         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3097         HAVE_RINTF.
3098         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3099
3100 2012-03-07  Bruno Haible  <bruno@clisp.org>
3101
3102         roundl: Avoid compilation error on AIX.
3103         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3104         AIX 5.2..7.1.
3105
3106 2012-03-07  Bruno Haible  <bruno@clisp.org>
3107
3108         roundl: Don't override undeclared system function on IRIX 6.5.
3109         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3110         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3111         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3112         * modules/roundl (configure.ac): For replacement code, test
3113         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3114         (Depends-on): Update conditions.
3115         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3116
3117 2012-03-07  Bruno Haible  <bruno@clisp.org>
3118
3119         roundf: Don't override undeclared system function on IRIX 6.5.
3120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3121         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3122         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3123         * modules/roundf (configure.ac): For replacement code, test
3124         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3125         (Depends-on): Update conditions.
3126         * modules/roundf-ieee (Depends-on): Update conditions.
3127         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3128
3129 2012-03-07  Bruno Haible  <bruno@clisp.org>
3130
3131         round: Don't override undeclared system function on IRIX 6.5.
3132         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3133         argument.
3134         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3135         also when it is not declared. Set HAVE_ROUND. For replacement code,
3136         test HAVE_ROUND, not HAVE_DECL_ROUND.
3137         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3138         not HAVE_DECL_ROUND.
3139         (Depends-on): Update conditions.
3140         * modules/round-ieee (Depends-on): Update conditions.
3141         * doc/posix-functions/round.texi: Mention the IRIX problem.
3142
3143 2012-03-07  Bruno Haible  <bruno@clisp.org>
3144
3145         copysignf: Don't override undeclared system function on IRIX 6.5.
3146         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3147         HAVE_COPYSIGNF.
3148         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3149         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3151         not HAVE_COPYSIGNF.
3152         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3153         HAVE_COPYSIGNF.
3154         * doc/posix-functions/copysignf.texi: Mention missing declaration
3155         problem.
3156
3157 2012-03-07  Jim Meyering  <meyering@redhat.com>
3158
3159         readtokens: add tests
3160         * modules/readtokens-tests: New file.
3161         * tests/test-readtokens.c: New file.
3162
3163 2012-03-07  Jim Meyering  <meyering@redhat.com>
3164
3165         quotearg: the module must now include quote.h
3166         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3167         So must the module.
3168         * modules/quotearg (Files): Add quote.h.
3169
3170 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3171
3172         readtokens: avoid core dumps with unusual calling patterns
3173         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3174         * lib/readtokens.c: Include limits.h.
3175         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3176         (readtoken): Don't cache the delimiters; the cache code was buggy
3177         if !delim && saved_delim, or if the new n_delim differs from the old.
3178         Also, it wasn't thread-safe.
3179
3180 2012-03-07  Bruno Haible  <bruno@clisp.org>
3181
3182         quote: Adhere to common module description layout.
3183         * modules/quote (Makefile.am): Add back empty section.
3184
3185 2012-03-06  Akim Demaille  <demaille@gostai.com>
3186
3187         quote: fuse into quotearg
3188         This patch is made for the benefit of Bison.
3189         quote does not leave the choice of the quoting style to the user.
3190         quoting_style provides poor customizability, yet quoting_options,
3191         which is very rich, is hidden inside quotearg.c.  So in order to
3192         allow quote customization, move its implementation to quotearg.c.
3193         * lib/quote.c: Remove.
3194         * modules/quote: Adjust.
3195         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3196         warning: provide all the members of literal structs.
3197         (quote_quoting_options): New.
3198         (quote, quote_n): Import implementation from quote.c.
3199         * lib/quote.h: Import the comments from quote.c.
3200         (quote_quoting_options): New.
3201
3202 2012-03-06  Bruno Haible  <bruno@clisp.org>
3203
3204         Tests for module 'expm1l-ieee'.
3205         * modules/expm1l-ieee-tests: New file.
3206         * tests/test-expm1l-ieee.c: New file.
3207
3208         New module 'expm1l-ieee'.
3209         * modules/expm1l-ieee: New file.
3210
3211         Tests for module 'expm1f-ieee'.
3212         * modules/expm1f-ieee-tests: New file.
3213         * tests/test-expm1f-ieee.c: New file.
3214
3215         New module 'expm1f-ieee'.
3216         * modules/expm1f-ieee: New file.
3217
3218         Tests for module 'expm1-ieee'.
3219         * modules/expm1-ieee-tests: New file.
3220         * tests/test-expm1-ieee.c: New file.
3221         * tests/test-expm1-ieee.h: New file.
3222
3223         New module 'expm1-ieee'.
3224         * modules/expm1-ieee: New file.
3225         * m4/expm1-ieee.m4: New file.
3226         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3227         whether expm1 works with a minus zero argument. Replace it if not.
3228         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3230         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3231         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3232         (Depends-on): Update conditions.
3233         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3234         AIX problem.
3235
3236 2012-03-06  Bruno Haible  <bruno@clisp.org>
3237
3238         Work around expm1f bug on IRIX 6.5.
3239         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3240         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3241         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3242         not work.
3243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3244         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3245         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3246         (Depends-on): Update conditions.
3247         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3248
3249 2012-03-06  Bruno Haible  <bruno@clisp.org>
3250
3251         Tests for module 'expm1l'.
3252         * modules/expm1l-tests: New file.
3253         * tests/test-expm1l.c: New file.
3254
3255         New module 'expm1l'.
3256         * lib/math.in.h (expm1l): New declaration.
3257         * lib/expm1l.c: New file.
3258         * m4/expm1l.m4: New file.
3259         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3261         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3262         * modules/expm1l: New file.
3263         * tests/test-math-c++.cc: Check the declaration of expm1l.
3264         * doc/posix-functions/expm1l.texi: Mention the new module.
3265
3266 2012-03-06  Bruno Haible  <bruno@clisp.org>
3267
3268         Tests for module 'expm1f'.
3269         * modules/expm1f-tests: New file.
3270         * tests/test-expm1f.c: New file.
3271
3272         New module 'expm1f'.
3273         * lib/math.in.h (expm1f): New declaration.
3274         * lib/expm1f.c: New file.
3275         * m4/expm1f.m4: New file.
3276         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3278         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3279         * modules/expm1f: New file.
3280         * tests/test-math-c++.cc: Check the declaration of expm1f.
3281         * doc/posix-functions/expm1f.texi: Mention the new module.
3282
3283 2012-03-06  Bruno Haible  <bruno@clisp.org>
3284
3285         Tests for module 'expm1'.
3286         * modules/expm1-tests: New file.
3287         * tests/test-expm1.c: New file.
3288         * tests/test-expm1.h: New file.
3289
3290         New module 'expm1'.
3291         * lib/math.in.h (expm1): New declaration.
3292         * lib/expm1.c: New file.
3293         * m4/expm1.m4: New file.
3294         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3296         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3297         * modules/expm1: New file.
3298         * tests/test-math-c++.cc: Check the declaration of expm1.
3299         * doc/posix-functions/expm1.texi: Mention the new module.
3300
3301 2012-03-06  Bruno Haible  <bruno@clisp.org>
3302
3303         math: Ensure declarations of math functions.
3304         * modules/acosf (Depends-on): Add 'extensions'.
3305         * modules/asinf (Depends-on): Likewise.
3306         * modules/atan2f (Depends-on): Likewise.
3307         * modules/atanf (Depends-on): Likewise.
3308         * modules/cbrt (Depends-on): Likewise.
3309         * modules/cbrtf (Depends-on): Likewise.
3310         * modules/cbrtl (Depends-on): Likewise.
3311         * modules/copysignf (Depends-on): Likewise.
3312         * modules/copysignl (Depends-on): Likewise.
3313         * modules/cosf (Depends-on): Likewise.
3314         * modules/coshf (Depends-on): Likewise.
3315         * modules/expf (Depends-on): Likewise.
3316         * modules/fabsf (Depends-on): Likewise.
3317         * modules/fabsl (Depends-on): Likewise.
3318         * modules/fmaf (Depends-on): Likewise.
3319         * modules/fmal (Depends-on): Likewise.
3320         * modules/fmodf (Depends-on): Likewise.
3321         * modules/fmodl (Depends-on): Likewise.
3322         * modules/frexpf (Depends-on): Likewise.
3323         * modules/frexpl (Depends-on): Likewise.
3324         * modules/hypot (Depends-on): Likewise.
3325         * modules/hypotf (Depends-on): Likewise.
3326         * modules/hypotl (Depends-on): Likewise.
3327         * modules/ldexpf (Depends-on): Likewise.
3328         * modules/ldexpl (Depends-on): Likewise.
3329         * modules/log10f (Depends-on): Likewise.
3330         * modules/log10l (Depends-on): Likewise.
3331         * modules/log1p (Depends-on): Likewise.
3332         * modules/logb (Depends-on): Likewise.
3333         * modules/logf (Depends-on): Likewise.
3334         * modules/modff (Depends-on): Likewise.
3335         * modules/modfl (Depends-on): Likewise.
3336         * modules/powf (Depends-on): Likewise.
3337         * modules/remainderf (Depends-on): Likewise.
3338         * modules/remainderl (Depends-on): Likewise.
3339         * modules/rintf (Depends-on): Likewise.
3340         * modules/rintl (Depends-on): Likewise.
3341         * modules/sinf (Depends-on): Likewise.
3342         * modules/sinhf (Depends-on): Likewise.
3343         * modules/sqrtf (Depends-on): Likewise.
3344         * modules/tanf (Depends-on): Likewise.
3345         * modules/tanhf (Depends-on): Likewise.
3346         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3347         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3348         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3349         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3350         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3351         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3352         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3353         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3354         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3355         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3356         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3357         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3358         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3359         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3360         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3361         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3362         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3363         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3364         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3365         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3366         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3367         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3368         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3369         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3370         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3371         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3372         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3373         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3374         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3375         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3376         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3377         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3378         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3379         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3380         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3381         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3382         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3383         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3384         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3385         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3386         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3387
3388 2012-03-06  Bruno Haible  <bruno@clisp.org>
3389
3390         math: Update module names in warnings.
3391         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3392         tanl): Use specific module name in warn-on-use warning.
3393
3394 2012-03-06  Bruno Haible  <bruno@clisp.org>
3395
3396         expl: Simplify computation.
3397         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3398
3399 2012-03-05  Bruno Haible  <bruno@clisp.org>
3400
3401         exp* tests: More tests.
3402         * tests/test-exp.h: New file.
3403         * tests/test-exp.c: Include <float.h> and test-exp.h.
3404         (main): Invoke test_function.
3405         * tests/test-expf.c: Include <float.h> and test-exp.h.
3406         (main): Invoke test_function.
3407         * tests/test-expl.c: Include <float.h> and test-exp.h.
3408         (main): Invoke test_function.
3409         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3410         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3411         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3412         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3413         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3414         (Depends-on): Add 'float'.
3415         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3416
3417         expl: Fix precision of computed result.
3418         * lib/expl.c: Completely rewritten.
3419         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3420         (Maintainer): Add me.
3421         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3422
3423 2012-03-05  Bruno Haible  <bruno@clisp.org>
3424
3425         cbrt* tests: More tests.
3426         * tests/test-cbrt.h: New file.
3427         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3428         (main): Invoke test_function.
3429         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3430         (main): Invoke test_function.
3431         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3432         (main): Invoke test_function.
3433         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3434         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3435         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3436         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3437         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3438         (Depends-on): Add 'float'.
3439         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3440
3441 2012-03-05  Bruno Haible  <bruno@clisp.org>
3442
3443         hypot* tests: More tests.
3444         * tests/test-hypot.h: New file, partially extracted from
3445         tests/test-hypotl.c.
3446         * tests/test-hypot.c: Include test-hypot.h.
3447         (main): Invoke test_function.
3448         * tests/test-hypotf.c: Include test-hypot.h.
3449         (main): Invoke test_function.
3450         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3451         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3452         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3453         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3454         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3455         tests/randomf.c.
3456         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3457         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3458         tests/randoml.c.
3459         (Depends-on): Add 'fpucw', 'float'.
3460         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3461
3462 2012-03-05  Bruno Haible  <bruno@clisp.org>
3463
3464         fpucw: Doc about FreeBSD.
3465         * lib/fpucw.h: Mention FreeBSD in comments.
3466
3467 2012-03-04  Bruno Haible  <bruno@clisp.org>
3468
3469         sqrt* tests: More tests.
3470         * tests/test-sqrt.h: New file.
3471         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3472         (main): Invoke test_function.
3473         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3474         (main): Invoke test_function.
3475         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3476         (main): Invoke test_function.
3477         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3478         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3479         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3480         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3481         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3482         (Depends-on): Add 'float'.
3483         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3484
3485 2012-03-04  Bruno Haible  <bruno@clisp.org>
3486
3487         remainder* tests: More tests.
3488         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3489         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3490         (main): Invoke test_function.
3491         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3492         (main): Invoke test_function.
3493         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3494         (main): Invoke test_function.
3495         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3496         tests/randomd.c.
3497         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3498         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3499         tests/randomf.c.
3500         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3501         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3502         tests/randoml.c.
3503         (Depends-on): Add 'float'.
3504         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3505
3506 2012-03-04  Bruno Haible  <bruno@clisp.org>
3507
3508         remainder, remainderf, remainderl: Fix computation for large quotients.
3509         * lib/remainder.c: Completely rewritten.
3510         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3511         USE_FLOAT.
3512         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3513         USE_LONG_DOUBLE.
3514         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3515         isnand, isinf. Remove round, fma.
3516         * modules/remainderf (Files): Add lib/remainder.c.
3517         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3518         Remove roundf, fmaf.
3519         * modules/remainderl (Files): Add lib/remainder.c.
3520         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3521         isinf. Remove roundl, fmal.
3522         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3523         REMAINDER_LIBM.
3524         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3525         REMAINDERF_LIBM.
3526         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3527         REMAINDERL_LIBM.
3528
3529 2012-03-04  Bruno Haible  <bruno@clisp.org>
3530
3531         fmod* tests: More tests.
3532         * tests/test-fmod.h (my_ldexp): New function.
3533         (test_function): Reduce amount of random numbers to test. Add tests
3534         of very large quotients x / y.
3535         * tests/test-fmod.c (MAX_EXP): New macro.
3536         * tests/test-fmodf.c (MAX_EXP): Likewise.
3537         * tests/test-fmodl.c (MAX_EXP): Likewise.
3538
3539 2012-03-04  Bruno Haible  <bruno@clisp.org>
3540
3541         fmod, fmodl: Fix computation for large quotients x / y.
3542         * lib/fmod.c: Completely rewritten.
3543         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3544         USE_LONG_DOUBLE.
3545         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3546         isnand. Remove fma.
3547         * modules/fmodl (Files): Add lib/fmod.c.
3548         (Depends-on): Add float, isfinite, signbit, fabsl,
3549         frexpl, ldexpl, isnanl. Remove fma.
3550         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3551         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3552
3553 2012-03-03  Bruno Haible  <bruno@clisp.org>
3554
3555         fmod* tests: More tests.
3556         * tests/test-fmod.h: New file.
3557         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3558         (main): Invoke test_function.
3559         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3560         (main): Invoke test_function.
3561         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3562         (main): Invoke test_function.
3563         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3564         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3565         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3566         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3567         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3568         (Depends-on): Add 'float'.
3569         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3570
3571 2012-03-03  Bruno Haible  <bruno@clisp.org>
3572
3573         rint* tests: More tests.
3574         * tests/test-rint.h: New file, partially extracted from
3575         tests/test-rintl.c.
3576         * tests/test-rint.c: Include test-rint.h.
3577         (main): Invoke test_function.
3578         * tests/test-rintf.c: Include test-rint.h.
3579         (main): Invoke test_function.
3580         * tests/test-rintl.c: Include test-rint.h.
3581         (main): Invoke test_function.
3582         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3583         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3584         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3585         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3586         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3587         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3588
3589 2012-03-03  Bruno Haible  <bruno@clisp.org>
3590
3591         modf* tests: More tests.
3592         * tests/test-modf.h: New file.
3593         * tests/test-modf.c: Include <float.h> and test-modf.h.
3594         (main): Invoke test_function.
3595         * tests/test-modff.c: Include <float.h> and test-modf.h.
3596         (main): Invoke test_function.
3597         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3598         (main): Invoke test_function.
3599         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3600         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3601         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3602         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3603         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3604         (Depends-on): Add 'float'.
3605         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3606
3607 2012-03-03  Bruno Haible  <bruno@clisp.org>
3608
3609         fabs* tests: More tests.
3610         * tests/test-fabs.h: New file, partially extracted from
3611         tests/test-fabsl.c.
3612         * tests/test-fabs.c (RANDOM): New macro.
3613         * tests/test-fabsf.c (RANDOM): New macro.
3614         * tests/test-fabsl.c (RANDOM): New macro.
3615         * modules/fabs-tests (Files): Add tests/randomd.c.
3616         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3617         * modules/fabsf-tests (Files): Add tests/randomf.c.
3618         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3619         * modules/fabsl-tests (Files): Add tests/randoml.c.
3620         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3621
3622 2012-03-03  Bruno Haible  <bruno@clisp.org>
3623
3624         ldexp* tests: More tests.
3625         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3626         * tests/test-ldexp.c (RANDOM): New macro.
3627         * tests/test-ldexpf.c (RANDOM): New macro.
3628         * tests/test-ldexpl.c (RANDOM): New macro.
3629         * modules/ldexp-tests (Files): Add tests/randomd.c.
3630         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3631         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3632         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3633         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3634         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3635
3636 2012-03-03  Bruno Haible  <bruno@clisp.org>
3637
3638         frexp* tests: More tests.
3639         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3640         * tests/test-frexp.c (RANDOM): New macro.
3641         * tests/test-frexpf.c (RANDOM): New macro.
3642         * tests/test-frexpl.c (RANDOM): New macro.
3643         * modules/frexp-tests (Files): Add tests/randomd.c.
3644         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3645         * modules/frexpf-tests (Files): Add tests/randomf.c.
3646         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3647         * modules/frexpl-tests (Files): Add tests/randoml.c.
3648         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3649
3650 2012-03-03  Bruno Haible  <bruno@clisp.org>
3651
3652         Support for pseudo-random numbers in tests.
3653         * tests/randomf.c: New file.
3654         * tests/randomd.c: New file.
3655         * tests/randoml.c: New file.
3656         * tests/macros.h (randomf, randomd, randoml): New declarations.
3657
3658 2012-03-03  Bruno Haible  <bruno@clisp.org>
3659
3660         frexp* tests: Refactor.
3661         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3662         * tests/test-frexp.c: Include and use it.
3663         * tests/test-frexpf.c: Likewise.
3664         * tests/test-frexpl.c: Likewise.
3665         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3666         * modules/frexpf-tests (Files): Likewise.
3667         * modules/frexpl-tests (Files): Likewise.
3668
3669 2012-03-02  Jim Meyering  <meyering@redhat.com>
3670
3671         maint: don't specify XZ_OPT=-9ev in dist-related rule
3672         Using xz's -9 option is warranted only if you have a very large
3673         tarball (see xz's documentation for the sizes vs. presets), and
3674         requires 64MiB of memory at decompression time.
3675         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3676         Automake's default of just "-e" is fine.  Override on a
3677         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3678
3679 2012-03-01  Eric Blake  <eblake@redhat.com>
3680
3681         maint.mk: allow announcement for non-gnulib project
3682         * maint.mk (announcement): Skip gnulib version if not used.
3683
3684 2012-03-01  Jim Meyering  <meyering@redhat.com>
3685
3686         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3687         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3688         envvar settings cannot interfere.  Otherwise, setting envvars like
3689         prohibit=foo require=bar, etc. would cause spurious test failures.
3690
3691 2012-03-01  Eric Blake  <eblake@redhat.com>
3692
3693         maint.mk: add per-line exclusions to prohibitions
3694         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3695         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3696         (sc_const_long_option): Use it.
3697
3698 2012-03-01  Bruno Haible  <bruno@clisp.org>
3699
3700         Tests for module 'expl-ieee'.
3701         * modules/expl-ieee-tests: New file.
3702         * tests/test-expl-ieee.c: New file.
3703
3704         New module 'expl-ieee'.
3705         * modules/expl-ieee: New file.
3706
3707         Tests for module 'exp-ieee'.
3708         * modules/exp-ieee-tests: New file.
3709         * tests/test-exp-ieee.c: New file.
3710
3711         New module 'exp-ieee'.
3712         * modules/exp-ieee: New file.
3713
3714         Tests for module 'expf-ieee'.
3715         * modules/expf-ieee-tests: New file.
3716         * tests/test-expf-ieee.c: New file.
3717         * tests/test-exp-ieee.h: New file.
3718
3719         New module 'expf-ieee'.
3720         * modules/expf-ieee: New file.
3721
3722 2012-02-29  Bruno Haible  <bruno@clisp.org>
3723
3724         cbrtl-ieee: Work around test failure on IRIX 6.5.
3725         * m4/cbrtl-ieee.m4: New file.
3726         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3727         test whether cbrtl works with a minus zero argument. Replace it if not.
3728         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3730         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3731         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3732         (Depends-on): Update conditions.
3733         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3734         m4/signbit.m4.
3735         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3736         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3737         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3738
3739         Tests for module 'cbrtl-ieee'.
3740         * modules/cbrtl-ieee-tests: New file.
3741         * tests/test-cbrtl-ieee.c: New file.
3742
3743         New module 'cbrtl-ieee'.
3744         * modules/cbrtl-ieee: New file.
3745
3746         Tests for module 'cbrt-ieee'.
3747         * modules/cbrt-ieee-tests: New file.
3748         * tests/test-cbrt-ieee.c: New file.
3749
3750         New module 'cbrt-ieee'.
3751         * modules/cbrt-ieee: New file.
3752
3753         Tests for module 'cbrtf-ieee'.
3754         * modules/cbrtf-ieee-tests: New file.
3755         * tests/test-cbrtf-ieee.c: New file.
3756         * tests/test-cbrt-ieee.h: New file.
3757
3758         New module 'cbrtf-ieee'.
3759         * modules/cbrtf-ieee: New file.
3760
3761 2012-02-29  Bruno Haible  <bruno@clisp.org>
3762
3763         cbrtf: Work around bug in IRIX 6.5 system function.
3764         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3765         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3766         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3767         work.
3768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3769         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3770         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3771         (Depends-on): Update conditions.
3772         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3773
3774 2012-02-29  Bruno Haible  <bruno@clisp.org>
3775
3776         Tests for module 'cbrtl'.
3777         * modules/cbrtl-tests: New file.
3778         * tests/test-cbrtl.c: New file.
3779
3780         New module 'cbrtl'.
3781         * lib/math.in.h (cbrtl): New declaration.
3782         * lib/cbrtl.c: New file.
3783         * m4/cbrtl.m4: New file.
3784         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3786         HAVE_DECL_CBRTL.
3787         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3788         HAVE_DECL_CBRTL.
3789         * modules/cbrtl: New file.
3790         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3791         * doc/posix-functions/cbrtl.texi: Mention the new module.
3792
3793 2012-02-29  Bruno Haible  <bruno@clisp.org>
3794
3795         Tests for module 'cbrtf'.
3796         * modules/cbrtf-tests: New file.
3797         * tests/test-cbrtf.c: New file.
3798
3799         New module 'cbrtf'.
3800         * lib/math.in.h (cbrtf): New declaration.
3801         * lib/cbrtf.c: New file.
3802         * m4/cbrtf.m4: New file.
3803         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3805         HAVE_DECL_CBRTF.
3806         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3807         HAVE_DECL_CBRTF.
3808         * modules/cbrtf: New file.
3809         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3810         * doc/posix-functions/cbrtf.texi: Mention the new module.
3811
3812 2012-02-29  Bruno Haible  <bruno@clisp.org>
3813
3814         cbrt: Provide replacement on MSVC and Minix.
3815         * lib/math.in.h (cbrt): New declaration.
3816         * lib/cbrt.c: New file.
3817         * m4/cbrt.m4: New file.
3818         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3820         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3821         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3822         (Depends-on): Add dependencies.
3823         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3824         * tests/test-math-c++.cc: Check the declaration of cbrt.
3825         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3826         replacement.
3827
3828 2012-02-29  Bruno Haible  <bruno@clisp.org>
3829
3830         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3831         * m4/hypotl-ieee.m4: New file.
3832         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3833         test whether hypotl works with mixed NaN and Infinity arguments.
3834         Replace it if not.
3835         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3837         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3838         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3839         (Depends-on): Update conditions.
3840         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3841         (Depends-on): Add hypot-ieee.
3842         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3843         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3844
3845         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3846         * m4/hypotf-ieee.m4: New file.
3847         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3848         test whether hypotf works with mixed NaN and Infinity arguments.
3849         Replace it if not.
3850         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3851         (Depends-on): Add hypot-ieee.
3852         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3853         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3854
3855         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3856         * lib/math.in.h (hypot): New declaration.
3857         * lib/hypot.c: New file.
3858         * m4/hypot-ieee.m4: New file.
3859         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3860         whether hypot works with mixed NaN and Infinity arguments. Replace it
3861         if not.
3862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3863         REPLACE_HYPOT.
3864         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3865         * modules/hypot (Files): Add lib/hypot.c.
3866         (Depends-on): Add dependencies.
3867         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3868         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3869         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3870         * tests/test-math-c++.cc: Check the declaration of hypot.
3871         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3872
3873         Tests for module 'hypotl-ieee'.
3874         * modules/hypotl-ieee-tests: New file.
3875         * tests/test-hypotl-ieee.c: New file.
3876
3877         New module 'hypotl-ieee'.
3878         * modules/hypotl-ieee: New file.
3879
3880         Tests for module 'hypot-ieee'.
3881         * modules/hypot-ieee-tests: New file.
3882         * tests/test-hypot-ieee.c: New file.
3883
3884         New module 'hypot-ieee'.
3885         * modules/hypot-ieee: New file.
3886
3887         Tests for module 'hypotf-ieee'.
3888         * modules/hypotf-ieee-tests: New file.
3889         * tests/test-hypotf-ieee.c: New file.
3890         * tests/test-hypot-ieee.h: New file.
3891
3892         New module 'hypotf-ieee'.
3893         * modules/hypotf-ieee: New file.
3894
3895 2012-02-29  Bruno Haible  <bruno@clisp.org>
3896
3897         Remove unused variables.
3898         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3899         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3900         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3901         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3902
3903 2012-02-29  Eric Blake  <eblake@redhat.com>
3904
3905         termios: fix pid_t always, not just for tcgetsid
3906         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3907         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3908         just when building tcgetsid.
3909
3910 2012-02-29  Bruno Haible  <bruno@clisp.org>
3911
3912         Tests for module 'hypotl'.
3913         * modules/hypotl-tests: New file.
3914         * tests/test-hypotl.c: New file.
3915
3916         New module 'hypotl'.
3917         * lib/math.in.h (hypotl): New declaration.
3918         * lib/hypotl.c: New file.
3919         * m4/hypotl.m4: New file.
3920         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3922         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3923         * modules/hypotl: New file.
3924         * tests/test-math-c++.cc: Check the hypotl declaration.
3925         * doc/posix-functions/hypotl.texi: Mention the new module.
3926
3927 2012-02-29  Eric Blake  <eblake@redhat.com>
3928
3929         tcgetsid: fix cygwin header bug
3930         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3931
3932         docs: update cygwin progress
3933         * doc/posix-functions/llround.texi (llround): Added in cygwin
3934         1.7.8.
3935         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3936         * doc/glibc-functions/program_invocation_name.texi
3937         (program_invocation_name): Likewise.
3938         * doc/glibc-functions/program_invocation_short_name.texi
3939         (program_invocation_short_name): Likewise.
3940         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3941         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3942         Likewise.
3943         * doc/posix-functions/pthread_spin_destroy.texi
3944         (pthread_spin_destroy): Added in cygwin 1.7.10.
3945         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3946         Likewise.
3947         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3948         Likewise.
3949         * doc/posix-functions/pthread_spin_trylock.texi
3950         (pthread_spin_trylock): Likewise.
3951         * doc/posix-functions/pthread_spin_unlock.texi
3952         (pthread_spin_unlock): Likewise.
3953         * doc/posix-functions/pthread_setschedprio.texi
3954         (pthread_setschedprio): Likewise.
3955         * doc/posix-functions/pthread_attr_getstack.texi
3956         (pthread_attr_getstack): Likewise.
3957         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3958         (pthread_attr_getstackaddr): Likewise.
3959         * doc/glibc-functions/pthread_getattr_np.texi
3960         (pthread_getattr_np): Likewise.
3961         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3962         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3963         * doc/posix-functions/clock_settime.texi (clock_settime):
3964         Likewise.
3965         * doc/posix-functions/pthread_attr_getguardsize.texi
3966         (pthread_attr_getguardsize): Likewise.
3967         * doc/posix-functions/pthread_attr_setguardsize.texi
3968         (pthread_attr_setguardsize): Likewise.
3969         * doc/posix-functions/pthread_attr_setstack.texi
3970         (pthread_attr_setstack): Likewise.
3971         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3972         (pthread_attr_setstackaddr): Likewise.
3973         * doc/posix-functions/clock_getcpuclockid.texi
3974         (clock_getcpuclockid): Likewise.
3975         * doc/posix-functions/pthread_getcpuclockid.texi
3976         (pthread_getcpuclockid): Likewise.
3977         * doc/glibc-functions/error.texi (error): Likewise.
3978         * doc/glibc-functions/error_at_line.texi (error_at_line):
3979         Likewise.
3980         * doc/glibc-functions/error_message_count.texi
3981         (error_message_count): Likewise.
3982         * doc/glibc-functions/error_one_per_line.texi
3983         (error_one_per_line): Likewise.
3984         * doc/glibc-functions/error_print_progname.texi
3985         (error_print_progname): Likewise.
3986         * doc/posix-functions/pthread_condattr_getclock.texi
3987         (pthread_condattr_getclock): Likewise.
3988         * doc/posix-functions/pthread_condattr_setclock.texi
3989         (pthread_condattr_setclock): Likewise.
3990         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3991         Likewise.
3992         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3993         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3994         * doc/glibc-functions/get_current_dir_name.texi
3995         (get_current_dir_name): Likewise.
3996         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3997         Likewise.
3998         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3999         wrong return type.
4000         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4001         1.7.11.
4002
4003 2012-02-29  Bruno Haible  <bruno@clisp.org>
4004
4005         Tests for module 'hypotf'.
4006         * modules/hypotf-tests: New file.
4007         * tests/test-hypotf.c: New file.
4008
4009         New module 'hypotf'.
4010         * lib/math.in.h (hypotf): New declaration.
4011         * lib/hypotf.c: New file.
4012         * m4/hypotf.m4: New file.
4013         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4015         REPLACE_HYPOTF.
4016         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4017         REPLACE_HYPOTF.
4018         * modules/hypotf: New file.
4019         * tests/test-math-c++.cc: Check the hypotf declaration.
4020         * doc/posix-functions/hypotf.texi: Mention the new module.
4021
4022         hypot: Prepare for hypotf module.
4023         * m4/hypot.m4: New file.
4024         * modules/hypot (Files): Add m4/hypot.m4.
4025         (configure.ac): Invoke gl_FUNC_HYPOT.
4026
4027 2012-02-29  Bruno Haible  <bruno@clisp.org>
4028
4029         hypot tests: More tests.
4030         * tests/test-hypot.c: Include <float.h>.
4031         (main): Add tests about overflow and underflow.
4032
4033 2012-02-29  Bruno Haible  <bruno@clisp.org>
4034
4035         math code: Add comments.
4036         * lib/acosl.c: Add comment about related glibc source files.
4037         * lib/asinl.c: Likewise.
4038         * lib/atanl.c: Likewise.
4039         * lib/expl.c: Likewise.
4040         * lib/logl.c: Likewise.
4041         * lib/sincosl.c: Likewise.
4042         * lib/sinl.c: Likewise.
4043         * lib/tanl.c: Likewise.
4044         * lib/trigl.c: Likewise.
4045         * lib/cosl.c: Likewise. Fix comments.
4046
4047 2012-02-28  Bruno Haible  <bruno@clisp.org>
4048
4049         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4050         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4051         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4052         HUGE_VALL are defined.
4053         (numeric_equald): Renamed from numeric_equal.
4054         (numeric_equalf, numeric_equall): New functions.
4055         (main): Check also HUGE_VALF, HUGE_VALL.
4056         * modules/math-tests (Files): Add tests/macros.h.
4057         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4058         HUGE_VALL.
4059
4060 2012-02-28  Bruno Haible  <bruno@clisp.org>
4061
4062         doc: Move ISO C11 feature notes into POSIX chapters.
4063         * doc/posix-functions/aligned_alloc.texi: Renamed from
4064         doc/glibc-functions/aligned_alloc.texi.
4065         * doc/posix-functions/quick_exit.texi: Renamed from
4066         doc/glibc-functions/quick_exit.texi.
4067         * doc/posix-headers/uchar.texi: Renamed from
4068         doc/glibc-headers/uchar.texi.
4069         * doc/posix-functions/c16rtomb.texi: Renamed from
4070         doc/glibc-functions/c16rtomb.texi.
4071         * doc/posix-functions/c32rtomb.texi: Renamed from
4072         doc/glibc-functions/c32rtomb.texi.
4073         * doc/posix-functions/mbrtoc16.texi: Renamed from
4074         doc/glibc-functions/mbrtoc16.texi.
4075         * doc/posix-functions/mbrtoc32.texi: Renamed from
4076         doc/glibc-functions/mbrtoc32.texi.
4077         * doc/gnulib.texi: Update.
4078         (Glibc uchar.h): Remove section.
4079         Suggested by Eric Blake.
4080
4081 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4082
4083         stdnoreturn: port to MSVC better
4084         MSVC standard headers use __declspec(noreturn), so #define noreturn
4085         to empty on that platform.  Reported by Bruno Haible in
4086         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4087         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4088         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4089
4090 2012-02-28  Bruno Haible  <bruno@clisp.org>
4091
4092         doc: Mention new glibc headers and functions.
4093         * doc/glibc-headers/uchar.texi: New file.
4094         * doc/glibc-functions/aligned_alloc.texi: New file.
4095         * doc/glibc-functions/c16rtomb.texi: New file.
4096         * doc/glibc-functions/c32rtomb.texi: New file.
4097         * doc/glibc-functions/clock_adjtime.texi: New file.
4098         * doc/glibc-functions/fanotify_init.texi: New file.
4099         * doc/glibc-functions/fanotify_mark.texi: New file.
4100         * doc/glibc-functions/inet6_opt_append.texi: New file.
4101         * doc/glibc-functions/inet6_opt_find.texi: New file.
4102         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4103         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4104         * doc/glibc-functions/inet6_opt_init.texi: New file.
4105         * doc/glibc-functions/inet6_opt_next.texi: New file.
4106         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4107         * doc/glibc-functions/inet6_rth_add.texi: New file.
4108         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4109         * doc/glibc-functions/inet6_rth_init.texi: New file.
4110         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4111         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4112         * doc/glibc-functions/inet6_rth_space.texi: New file.
4113         * doc/glibc-functions/login.texi: New file.
4114         * doc/glibc-functions/mbrtoc16.texi: New file.
4115         * doc/glibc-functions/mbrtoc32.texi: New file.
4116         * doc/glibc-functions/name_to_handle_at.texi: New file.
4117         * doc/glibc-functions/ntp_gettimex.texi: New file.
4118         * doc/glibc-functions/open_by_handle_at.texi: New file.
4119         * doc/glibc-functions/prlimit.texi: New file.
4120         * doc/glibc-functions/process_vm_readv.texi: New file.
4121         * doc/glibc-functions/process_vm_writev.texi: New file.
4122         * doc/glibc-functions/recvmmsg.texi: New file.
4123         * doc/glibc-functions/scandirat.texi: New file.
4124         * doc/glibc-functions/sendmmsg.texi: New file.
4125         * doc/glibc-functions/setns.texi: New file.
4126         * doc/glibc-functions/timespec_get.texi: New file.
4127         * doc/gnulib.texi: Include them.
4128         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4129         sections.
4130         Reported by Eric Blake.
4131
4132 2012-02-28  Bruno Haible  <bruno@clisp.org>
4133
4134         Avoid compilation errors with MSVC option -fp:strict.
4135         * lib/floor.c: Use MSVC specific pragma fenv_access.
4136         * lib/ceil.c: Likewise.
4137         * lib/trunc.c: Likewise.
4138         * lib/round.c: Likewise.
4139         * lib/rint.c: Likewise.
4140         * lib/fma.c: Likewise.
4141         * lib/integer_length.c: Likewise.
4142         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4144         * tests/test-floor2.c: Likewise.
4145         * tests/test-floorf2.c: Likewise.
4146         * tests/test-ceil2.c: Likewise.
4147         * tests/test-ceilf2.c: Likewise.
4148         * tests/test-trunc2.c: Likewise.
4149         * tests/test-truncf2.c: Likewise.
4150         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4151
4152 2012-02-27  Bruno Haible  <bruno@clisp.org>
4153
4154         Tests for module 'sqrtl-ieee'.
4155         * modules/sqrtl-ieee-tests: New file.
4156         * tests/test-sqrtl-ieee.c: New file.
4157
4158         New module 'sqrtl-ieee'.
4159         * modules/sqrtl-ieee: New file.
4160
4161         Tests for module 'sqrt-ieee'.
4162         * modules/sqrt-ieee-tests: New file.
4163         * tests/test-sqrt-ieee.c: New file.
4164
4165         New module 'sqrt-ieee'.
4166         * modules/sqrt-ieee: New file.
4167
4168         Tests for module 'sqrtf-ieee'.
4169         * modules/sqrtf-ieee-tests: New file.
4170         * tests/test-sqrtf-ieee.c: New file.
4171         * tests/test-sqrt-ieee.h: New file.
4172
4173         New module 'sqrtf-ieee'.
4174         * modules/sqrtf-ieee: New file.
4175
4176 2012-02-27  Bruno Haible  <bruno@clisp.org>
4177
4178         remainderl-ieee: Work around test failure on OSF/1.
4179         * m4/remainderl-ieee.m4: New file.
4180         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4181         present, test whether remainderl works with a zero second argument.
4182         Replace it if not.
4183         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4185         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4186         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4187         (Depends-on): Update conditions.
4188         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4189         (Depends-on): Add remainder-ieee.
4190         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4191         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4192         module.
4193
4194         remainderf-ieee: Work around test failure on OSF/1.
4195         * m4/remainderf-ieee.m4: New file.
4196         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4197         present, test whether remainderf works with a zero second argument.
4198         Replace it if not.
4199         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4201         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4202         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4203         (Depends-on): Update conditions.
4204         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4205         (Depends-on): Add remainder-ieee.
4206         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4207         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4208         module.
4209
4210         remainder-ieee: Work around test failure on OSF/1.
4211         * m4/remainder-ieee.m4: New file.
4212         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4213         present, test whether remainder works with a zero second argument.
4214         Replace it if not.
4215         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4217         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4218         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4219         (Depends-on): Update dependencies.
4220         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4221         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4222         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4223
4224         Tests for module 'remainderl-ieee'.
4225         * modules/remainderl-ieee-tests: New file.
4226         * tests/test-remainderl-ieee.c: New file.
4227
4228         New module 'remainderl-ieee'.
4229         * modules/remainderl-ieee: New file.
4230
4231         Tests for module 'remainder-ieee'.
4232         * modules/remainder-ieee-tests: New file.
4233         * tests/test-remainder-ieee.c: New file.
4234
4235         New module 'remainder-ieee'.
4236         * modules/remainder-ieee: New file.
4237
4238         Tests for module 'remainderf-ieee'.
4239         * modules/remainderf-ieee-tests: New file.
4240         * tests/test-remainderf-ieee.c: New file.
4241         * tests/test-remainder-ieee.h: New file.
4242
4243         New module 'remainderf-ieee'.
4244         * modules/remainderf-ieee: New file.
4245
4246 2012-02-27  Bruno Haible  <bruno@clisp.org>
4247
4248         modff, modfl: Fix configure syntax error.
4249         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4250         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4251
4252 2012-02-27  Bruno Haible  <bruno@clisp.org>
4253
4254         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4255         * m4/fmodl-ieee.m4: New file.
4256         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4257         whether fmodl works with zero arguments. Replace it if not.
4258         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4259         (Depends-on): Add fmod-ieee.
4260         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4261         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4262
4263         fmodf-ieee: Work around test failure on OSF/1.
4264         * m4/fmodf-ieee.m4: New file.
4265         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4266         whether fmodf works with zero arguments. Replace it if not.
4267         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4269         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4270         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4271         (Depends-on): Update dependencies.
4272         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4273         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4274         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4275
4276         fmodf-ieee: Work around test failure on MSVC 9.
4277         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4278         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4279
4280         fmod-ieee: Work around test failures on OSF/1, mingw.
4281         * m4/fmod-ieee.m4: New file.
4282         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4283         whether fmod works with zero arguments. Replace it if not.
4284         * lib/math.in.h (fmod): New declaration.
4285         * lib/fmod.c: New file.
4286         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4288         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4289         * modules/fmod (Files): Add lib/fmod.c.
4290         (Depends-on): Add math, isinf, trunc, fma.
4291         (configure.ac): Arrange to compile lib/fmod.c if needed.
4292         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4293         m4/signbit.m4.
4294         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4295         * tests/test-math-c++.cc: Check the declaration of fmod.
4296         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4297
4298         fmodl-ieee: Fix test failures.
4299         * lib/fmodl.c (fmodl): Treat Inf specially.
4300         * modules/fmodl (Depends-on): Add isinf.
4301
4302         Tests for module 'fmodl-ieee'.
4303         * modules/fmodl-ieee-tests: New file.
4304         * tests/test-fmodl-ieee.c: New file.
4305
4306         New module 'fmodl-ieee'.
4307         * modules/fmodl-ieee: New file.
4308
4309         Tests for module 'fmod-ieee'.
4310         * modules/fmod-ieee-tests: New file.
4311         * tests/test-fmod-ieee.c: New file.
4312
4313         New module 'fmod-ieee'.
4314         * modules/fmod-ieee: New file.
4315
4316         Tests for module 'fmodf-ieee'.
4317         * modules/fmodf-ieee-tests: New file.
4318         * tests/test-fmodf-ieee.c: New file.
4319         * tests/test-fmod-ieee.h: New file.
4320
4321         New module 'fmodf-ieee'.
4322         * modules/fmodf-ieee: New file.
4323
4324 2012-02-27  Bruno Haible  <bruno@clisp.org>
4325
4326         Tests for module 'rintl-ieee'.
4327         * modules/rintl-ieee-tests: New file.
4328         * tests/test-rintl-ieee.c: New file.
4329
4330         New module 'rintl-ieee'.
4331         * modules/rintl-ieee: New file.
4332
4333         Tests for module 'rint-ieee'.
4334         * modules/rint-ieee-tests: New file.
4335         * tests/test-rint-ieee.c: New file.
4336
4337         New module 'rint-ieee'.
4338         * modules/rint-ieee: New file.
4339
4340         Tests for module 'rintf-ieee'.
4341         * modules/rintf-ieee-tests: New file.
4342         * tests/test-rintf-ieee.c: New file.
4343         * tests/test-rint-ieee.h: New file.
4344
4345         New module 'rintf-ieee'.
4346         * modules/rintf-ieee: New file.
4347
4348 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         regex: re_search etc. should return -2 when memory exhausted
4351         This bug was uncovered when testing 'grep'.  Without the fix,
4352         re_search and friends return -1 when memory is exhausted, but -1
4353         means no match, and this causes grep to falsely report no-match
4354         instead of memory-exhaustion.  See
4355         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4356         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4357         trouble; this can occur if re_search_internal ran out of memory.
4358
4359 2012-02-26  Bruno Haible  <bruno@clisp.org>
4360
4361         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4362         * m4/modfl-ieee.m4: New file.
4363         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4364         whether modfl works with Inf. Replace it if not.
4365         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4367         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4368         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4369         (Depends-on): Update dependencies.
4370         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4371         m4/signbit.m4.
4372         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4373         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4374
4375         modfl-ieee: Fix dependencies.
4376         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4377
4378         modfl-ieee: Fix test failures.
4379         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4380         * modules/modfl (Depends-on): Add isfinite, isinf.
4381
4382         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4383         * m4/modff-ieee.m4: New file.
4384         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4385         whether modff works with NaN and Inf. Replace it if not.
4386         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4388         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4389         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4390         (Depends-on): Update dependencies.
4391         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4392         m4/signbit.m4.
4393         (Depends-on): Add modf-ieee.
4394         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4395         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4396
4397         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4398         * m4/modf-ieee.m4: New file.
4399         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4400         whether modf works with NaN and Inf. Replace it if not.
4401         * lib/math.in.h (modf): New declaration.
4402         * lib/modf.c: New file.
4403         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4405         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4406         * modules/modf (Files): Add lib/modf.c.
4407         (Depends-on): Add math, isfinite, trunc, isinf.
4408         (configure.ac): Addrange to compile lib/modf.c if needed.
4409         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4410         m4/signbit.m4.
4411         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4412         * tests/test-math-c++.cc: Check the declaration of modf.
4413         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4414
4415         Tests for module 'modfl-ieee'.
4416         * modules/modfl-ieee-tests: New file.
4417         * tests/test-modfl-ieee.c: New file.
4418
4419         New module 'modfl-ieee'.
4420         * modules/modfl-ieee: New file.
4421
4422         Tests for module 'modf-ieee'.
4423         * modules/modf-ieee-tests: New file.
4424         * tests/test-modf-ieee.c: New file.
4425
4426         New module 'modf-ieee'.
4427         * modules/modf-ieee: New file.
4428
4429         Tests for module 'modff-ieee'.
4430         * modules/modff-ieee-tests: New file.
4431         * tests/test-modff-ieee.c: New file.
4432         * tests/test-modf-ieee.h: New file.
4433
4434         New module 'modff-ieee'.
4435         * modules/modff-ieee: New file.
4436
4437 2012-02-26  Bruno Haible  <bruno@clisp.org>
4438
4439         Tests for module 'fabsl-ieee'.
4440         * modules/fabsl-ieee-tests: New file.
4441         * tests/test-fabsl-ieee.c: New file.
4442
4443         New module 'fabsl-ieee'.
4444         * modules/fabsl-ieee: New file.
4445
4446         Tests for module 'fabs-ieee'.
4447         * modules/fabs-ieee-tests: New file.
4448         * tests/test-fabs-ieee.c: New file.
4449
4450         New module 'fabs-ieee'.
4451         * modules/fabs-ieee: New file.
4452
4453         Tests for module 'fabsf-ieee'.
4454         * modules/fabsf-ieee-tests: New file.
4455         * tests/test-fabsf-ieee.c: New file.
4456         * tests/test-fabs-ieee.h: New file.
4457
4458         New module 'fabsf-ieee'.
4459         * modules/fabsf-ieee: New file.
4460
4461 2012-02-26  Bruno Haible  <bruno@clisp.org>
4462
4463         Tests for module 'fmal-ieee'.
4464         * modules/fmal-ieee-tests: New file.
4465         * tests/test-fmal-ieee.c: New file.
4466
4467         New module 'fmal-ieee'.
4468         * modules/fmal-ieee: New file.
4469
4470         Tests for module 'fma-ieee'.
4471         * modules/fma-ieee-tests: New file.
4472         * tests/test-fma-ieee.c: New file.
4473
4474         New module 'fma-ieee'.
4475         * modules/fma-ieee: New file.
4476
4477         Tests for module 'fmaf-ieee'.
4478         * modules/fmaf-ieee-tests: New file.
4479         * tests/test-fmaf-ieee.c: New file.
4480         * tests/test-fma-ieee.h: New file.
4481
4482         New module 'fmaf-ieee'.
4483         * modules/fmaf-ieee: New file.
4484
4485 2012-02-26  Bruno Haible  <bruno@clisp.org>
4486
4487         Tests for module 'ldexpl-ieee'.
4488         * modules/ldexpl-ieee-tests: New file.
4489         * tests/test-ldexpl-ieee.c: New file.
4490
4491         New module 'ldexpl-ieee'.
4492         * modules/ldexpl-ieee: New file.
4493
4494         Tests for module 'ldexp-ieee'.
4495         * modules/ldexp-ieee-tests: New file.
4496         * tests/test-ldexp-ieee.c: New file.
4497
4498         New module 'ldexp-ieee'.
4499         * modules/ldexp-ieee: New file.
4500
4501         Tests for module 'ldexpf-ieee'.
4502         * modules/ldexpf-ieee-tests: New file.
4503         * tests/test-ldexpf-ieee.c: New file.
4504         * tests/test-ldexp-ieee.h: New file.
4505
4506         New module 'ldexpf-ieee'.
4507         * modules/ldexpf-ieee: New file.
4508
4509 2012-02-26  Bruno Haible  <bruno@clisp.org>
4510
4511         Refactor frexp*-ieee tests.
4512         * tests/test-frexp-ieee.h: New file.
4513         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4514         (main): Just call test_function.
4515         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4516         (main): Just call test_function.
4517         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4518         (main): Just call test_function.
4519         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4520         * modules/frexp-ieee-tests (Files): Likewise.
4521         * modules/frexpl-ieee-tests (Files): Likewise.
4522
4523         Tests for module 'frexpl-ieee'.
4524         * modules/frexpl-ieee-tests: New file.
4525         * tests/test-frexpl-ieee.c: New file.
4526
4527         New module 'frexpl-ieee'.
4528         * modules/frexpl-ieee: New file.
4529
4530         Tests for module 'frexp-ieee'.
4531         * modules/frexp-ieee-tests: New file.
4532         * tests/test-frexp-ieee.c: New file.
4533
4534         New module 'frexp-ieee'.
4535         * modules/frexp-ieee: New file.
4536
4537         Tests for module 'frexpf-ieee'.
4538         * modules/frexpf-ieee-tests: New file.
4539         * tests/test-frexpf-ieee.c: New file.
4540
4541         New module 'frexpf-ieee'.
4542         * modules/frexpf-ieee: New file.
4543
4544 2012-02-26  Bruno Haible  <bruno@clisp.org>
4545
4546         roundl-ieee tests: More tests.
4547         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4548         (main): Add tests for [MX] shaded specification in POSIX.
4549         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4550         (Depends-on): Add isnanl-nolibm.
4551
4552         round-ieee tests: More tests.
4553         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4554         (main): Add tests for [MX] shaded specification in POSIX.
4555         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4556         (Depends-on): Add isnand-nolibm.
4557
4558         roundf-ieee tests: More tests.
4559         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4560         (main): Add tests for [MX] shaded specification in POSIX.
4561         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4562         (Depends-on): Add isnanf-nolibm.
4563
4564         truncl-ieee tests: More tests.
4565         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4566         (main): Add tests for [MX] shaded specification in POSIX.
4567         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4568         (Depends-on): Add isnanl-nolibm.
4569
4570         trunc-ieee tests: More tests.
4571         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4572         (main): Add tests for [MX] shaded specification in POSIX.
4573         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4574         (Depends-on): Add isnand-nolibm.
4575
4576         truncf-ieee tests: More tests.
4577         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4578         (main): Add tests for [MX] shaded specification in POSIX.
4579         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4580         (Depends-on): Add isnanf-nolibm.
4581
4582         ceill-ieee tests: More tests.
4583         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4584         (main): Add tests for [MX] shaded specification in POSIX.
4585         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4586         (Depends-on): Add isnanl-nolibm.
4587
4588         ceil-ieee tests: More tests.
4589         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4590         (main): Add tests for [MX] shaded specification in POSIX.
4591         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4592         (Depends-on): Add isnand-nolibm.
4593
4594         ceilf-ieee tests: More tests.
4595         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4596         (main): Add tests for [MX] shaded specification in POSIX.
4597         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4598         (Depends-on): Add isnanf-nolibm.
4599
4600         floorl-ieee tests: More tests.
4601         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4602         (main): Add tests for [MX] shaded specification in POSIX.
4603         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4604         (Depends-on): Add isnanl-nolibm.
4605
4606         floor-ieee tests: More tests.
4607         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4608         (main): Add tests for [MX] shaded specification in POSIX.
4609         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4610         (Depends-on): Add isnand-nolibm.
4611
4612         floorf-ieee tests: More tests.
4613         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4614         (main): Add tests for [MX] shaded specification in POSIX.
4615         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4616         (Depends-on): Add isnanf-nolibm.
4617
4618 2012-02-26  Bruno Haible  <bruno@clisp.org>
4619
4620         fpieee: More comments.
4621         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4622
4623 2012-02-25  Bruno Haible  <bruno@clisp.org>
4624
4625         Tests for module 'log10l'.
4626         * modules/log10l-tests: New file.
4627         * tests/test-log10l.c: New file.
4628         * tests/test-math-c++.cc: Check the declaration of log10l.
4629
4630         New module 'log10l'.
4631         * lib/math.in.h (log10l): New declaration.
4632         * lib/log10l.c: New file.
4633         * m4/log10l.m4: New file.
4634         * modules/log10l: New file.
4635         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4637         HAVE_DECL_LOG10L.
4638         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4639         HAVE_DECL_LOG10L.
4640         * doc/posix-functions/log10l.texi: Mention the new module.
4641
4642 2012-02-25  Bruno Haible  <bruno@clisp.org>
4643
4644         fmodl, remainder*: Avoid wrong results due to rounding errors.
4645         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4646         expected bounds.
4647         * lib/remainderf.c (remainderf): Likewise.
4648         * lib/remainder.c (remainder): Likewise.
4649         * lib/remainderl.c (remainderl): Likewise.
4650
4651 2012-02-25  Bruno Haible  <bruno@clisp.org>
4652
4653         Tests for module 'remainderl'.
4654         * modules/remainderl-tests: New file.
4655         * tests/test-remainderl.c: New file.
4656         * tests/test-math-c++.cc: Check the declaration of remainderl.
4657
4658         New module 'remainderl'.
4659         * lib/math.in.h (remainderl): New declaration.
4660         * lib/remainderl.c: New file.
4661         * m4/remainderl.m4: New file.
4662         * modules/remainderl: New file.
4663         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4665         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4666         HAVE_REMAINDERL.
4667         * doc/posix-functions/remainderl.texi: Mention the new module.
4668
4669 2012-02-25  Bruno Haible  <bruno@clisp.org>
4670
4671         Tests for module 'remainderf'.
4672         * modules/remainderf-tests: New file.
4673         * tests/test-remainderf.c: New file.
4674         * tests/test-math-c++.cc: Check the declaration of remainderf.
4675
4676         New module 'remainderf'.
4677         * lib/math.in.h (remainderf): New declaration.
4678         * lib/remainderf.c: New file.
4679         * m4/remainderf.m4: New file.
4680         * modules/remainderf: New file.
4681         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4683         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4684         HAVE_REMAINDERF.
4685         * doc/posix-functions/remainderf.texi: Mention the new module.
4686
4687 2012-02-25  Bruno Haible  <bruno@clisp.org>
4688
4689         remainder: Support for MSVC.
4690         * lib/math.in.h (remainder): New declaration.
4691         * lib/remainder.c: New file.
4692         * m4/remainder.m4: New file.
4693         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4694         (Depends-on): Add math, round, fma.
4695         (configure.ac): Use results of gl_FUNC_REMAINDER.
4696         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4698         HAVE_DECL_REMAINDER.
4699         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4700         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4701         * tests/test-math-c++.cc: Check the declaration of remainder.
4702         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4703         problems are fixed.
4704
4705 2012-02-25  Bruno Haible  <bruno@clisp.org>
4706
4707         Tests for module 'fmodl'.
4708         * modules/fmodl-tests: New file.
4709         * tests/test-fmodl.c: New file.
4710         * tests/test-math-c++.cc: Check the declaration of fmodl.
4711
4712         New module 'fmodl'.
4713         * lib/math.in.h (fmodl): New declaration.
4714         * lib/fmodl.c: New file.
4715         * m4/fmodl.m4: New file.
4716         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4718         REPLACE_FMODL.
4719         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4720         REPLACE_FMODL.
4721         * modules/fmodl: New file.
4722         * doc/posix-functions/fmodl.texi: Mention the new module.
4723
4724 2012-02-25  Bruno Haible  <bruno@clisp.org>
4725
4726         Tests for module 'modfl'.
4727         * modules/modfl-tests: New file.
4728         * tests/test-modfl.c: New file.
4729         * tests/test-math-c++.cc: Check the declaration of modfl.
4730
4731         New module 'modfl'.
4732         * lib/math.in.h (modfl): New declaration.
4733         * lib/modfl.c: New file.
4734         * m4/modfl.m4: New file.
4735         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4737         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4738         * modules/modfl: New file.
4739         * doc/posix-functions/modfl.texi: Mention the new module.
4740
4741 2012-02-25  Bruno Haible  <bruno@clisp.org>
4742
4743         Tests for module 'fabsl'.
4744         * modules/fabsl-tests: New file.
4745         * tests/test-fabsl.c: New file.
4746         * tests/test-math-c++.cc: Check the declaration of fabsl.
4747
4748         New module 'fabsl'.
4749         * lib/math.in.h (fabsl): New declaration.
4750         * lib/fabsl.c: New file.
4751         * m4/fabsl.m4: New file.
4752         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4754         REPLACE_FABSL.
4755         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4756         REPLACE_FABSL.
4757         * modules/fabsl: New file.
4758         * doc/posix-functions/fabsl.texi: Mention the new module.
4759
4760 2012-02-25  Bruno Haible  <bruno@clisp.org>
4761
4762         fabs tests: More tests.
4763         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4764         (zero): New variable.
4765         (main): Add tests for signed zero.
4766         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4767
4768         fabsf tests: More tests.
4769         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4770         (zero): New variable.
4771         (main): Add tests for signed zero.
4772         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4773
4774 2012-02-24  Bruno Haible  <bruno@clisp.org>
4775
4776         atanl: Provide function definition on MSVC.
4777         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4778         function pointer.
4779         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4780
4781 2012-02-24  Bruno Haible  <bruno@clisp.org>
4782
4783         acosl: Provide function definition on MSVC.
4784         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4785         function pointer.
4786         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4787
4788 2012-02-24  Bruno Haible  <bruno@clisp.org>
4789
4790         asinl: Provide function definition on MSVC.
4791         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4792         function pointer.
4793         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4794
4795 2012-02-24  Bruno Haible  <bruno@clisp.org>
4796
4797         tanl: Provide function definition on MSVC.
4798         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4799         function pointer.
4800         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4801
4802 2012-02-24  Bruno Haible  <bruno@clisp.org>
4803
4804         cosl: Provide function definition on MSVC.
4805         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4806         function pointer.
4807         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4808
4809 2012-02-24  Bruno Haible  <bruno@clisp.org>
4810
4811         sinl: Provide function definition on MSVC.
4812         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4813         function pointer.
4814         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4815
4816 2012-02-24  Bruno Haible  <bruno@clisp.org>
4817
4818         logl: Provide function definition on MSVC.
4819         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4820         function pointer.
4821         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4822
4823 2012-02-24  Bruno Haible  <bruno@clisp.org>
4824
4825         expl: Provide function definition on MSVC.
4826         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4827         function pointer.
4828         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4829
4830 2012-02-24  Bruno Haible  <bruno@clisp.org>
4831
4832         sqrtl: Provide function definition on MSVC.
4833         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4834         a function pointer.
4835         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4836
4837 2012-02-24  Bruno Haible  <bruno@clisp.org>
4838
4839         ceill: Provide function definition on MSVC.
4840         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4841         used as a function pointer.
4842         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4843
4844 2012-02-24  Bruno Haible  <bruno@clisp.org>
4845
4846         floorl: Provide function definition on MSVC.
4847         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4848         used as a function pointer.
4849         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4850
4851 2012-02-24  Bruno Haible  <bruno@clisp.org>
4852
4853         ceilf: Provide function definition on MSVC.
4854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4855         used as a function pointer.
4856         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4857
4858 2012-02-24  Bruno Haible  <bruno@clisp.org>
4859
4860         floorf: Provide function definition on MSVC.
4861         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4862         used as a function pointer.
4863         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4864
4865 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         stdnoreturn: new module
4868         This implements a replacement for C11's <stdnoreturn.h>.
4869         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4870         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4871         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4872         * tests/test-stdnoreturn.c: New files.
4873
4874 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4875
4876         regex: fix false multibyte matches in some regular expressions
4877         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4878         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4879         * lib/regex_internal.c (re_string_skip_chars):
4880         Fix miscomputation of remain_len that may cause incomplete
4881         multi-byte character and false match.
4882
4883 2012-02-24  Jim Meyering  <meyering@redhat.com>
4884
4885         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4886         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4887         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4888         Remove now-unnecessary str''cmp obfuscation.
4889         Suggested by Akim Demaille.
4890
4891 2012-02-24  Bruno Haible  <bruno@clisp.org>
4892
4893         streq: Rename macro.
4894         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4895         * NEWS: Mention the change.
4896         * lib/mbrtowc.c (mbrtowc): Update.
4897         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4898         * lib/wcwidth.c (wcwidth): Update.
4899         Suggested by Akim Demaille and Jim Meyering.
4900
4901 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         regex: fix typo in definition of MIN
4904         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4905         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4906
4907 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4908             Bruno Haible  <bruno@clisp.org>
4909
4910         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4911         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4912         entries into a stack-allocated buffer directly.
4913         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4914
4915 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4916             Bruno Haible  <bruno@clisp.org>
4917
4918         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4919
4920          - There were several instances of this pattern:
4921
4922              for (;;) {
4923                n = acl (f, GETACLCNT, 0, NULL);
4924                [ allocate an array A of size N ]
4925                if (acl (f, GETACL, n, a) == n)
4926                  break;
4927              }
4928
4929            This loop might never terminate if some other process is constantly
4930            manipulating the file's ACL.  The loop should be rewritten to
4931            terminate.
4932
4933          - The acl (... GETACLNT ...) call is merely an optimization; its value
4934            is merely a hint as to how big to make the array.  A better
4935            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4936            and just guess a reasonably-big size, growing the size and trying
4937            again if it's not large enough.  This guarantees termination, and
4938            saves a system call.
4939
4940         * lib/acl-internal.h: Include <limits.h>.
4941         (MIN, SIZE_MAX): New macros.
4942         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4943         a stack-allocated buffer, and use malloc if it does not fit. Don't
4944         use GETACLCNT.
4945         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4946
4947 2012-02-19  Bruno Haible  <bruno@clisp.org>
4948
4949         acl: Fix endless loop on Solaris with vxfs.
4950         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4951         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4952         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4953         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4954         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4955         Reported by Bill Jones in
4956         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4957
4958 2012-02-19  Bruno Haible  <bruno@clisp.org>
4959
4960         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4961         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4962         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4963         that this function returns 0 in some more cases.
4964
4965 2012-02-19  Bruno Haible  <bruno@clisp.org>
4966
4967         acl: Update doc references.
4968         * doc/acl-resources.txt: Update links to Solaris documentation.
4969
4970 2012-02-19  Bruno Haible  <bruno@clisp.org>
4971
4972         Fix test failure in many locales on Solaris 11.
4973         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4974         'tr' arguments.
4975         * tests/test-pipe-filter-ii1.c (main): Likewise.
4976         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4977         expressions in the C locale.
4978         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4979         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4980
4981 2012-02-19  Bruno Haible  <bruno@clisp.org>
4982
4983         gnulib-tool: Improve usage message.
4984         * gnulib-tool (func_usage): Move doc of --help and --version to the
4985         section "Operation modes".
4986
4987 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4988
4989         README-release: make it easier to execute commands
4990         * top/README-release: break commands out on to separate lines.
4991
4992 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4993
4994         GNUmakefile: simplify detection of unconfigured trees
4995         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4996         whether the tree make is being run from is already configured or
4997         not.  Related simplifications.
4998
4999 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5000
5001         * gnulib-tool (func_usage): Document --help and --version.
5002
5003 2012-02-11  Jim Meyering  <meyering@redhat.com>
5004
5005         bootstrap: don't exit 0 upon gnulib-tool failure
5006         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5007         its exit status, not 0.
5008
5009 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5010
5011         README-release: various improvements
5012         * top/README-release: Give a command to push changes for the
5013         release.  Add "distcheck" to list of other pre-release checks.
5014         Fix instance of "make stable" which should be "make TYPE".
5015
5016 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5017
5018         maint: replace FSF snail-mail addresses with URLs
5019         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5020         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5021         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5022         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5023         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5024         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5025         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5026         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5027         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5028         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5029         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5030         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5031         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5032         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5033         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5034         * lib/glthread/thread.c, lib/glthread/thread.h:
5035         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5036         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5037         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5038         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5039         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5040         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5041         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5042         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5043         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5044         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5045         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5046         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5047         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5048         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5049         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5050         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5051         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5052         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5053         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5054         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5055         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5056         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5057         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5058         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5059         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5060         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5061         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5062         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5063         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5064         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5065         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5066         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5067         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5068         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5069         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5070         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5071         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5072         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5073         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5074         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5075         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5076         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5077         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5078         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5079         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5080         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5081         * tests/test-poll.c, tests/test-quotearg-simple.c:
5082         * tests/test-quotearg.c, tests/test-quotearg.h:
5083         * tests/test-round-ieee.c, tests/test-round1.c:
5084         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5085         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5086         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5087         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5088         * tests/test-strerror.c, tests/test-strerror_r.c:
5089         * tests/test-strsignal.c, tests/test-strverscmp.c:
5090         * tests/test-xmemdup0.c:
5091         Replace FSF snail mail addresses with URLs, as per GNU coding
5092         standards.  See glibc bug
5093         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5094
5095 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5096
5097         README-release: capitalize a word and split a line
5098         * top/README-release: Fix punctuation and spacing.
5099
5100 2012-02-08  Akim Demaille  <demaille@gostai.com>
5101
5102         fatal-signal: use C prototypes (with explicit void).
5103         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5104         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5105
5106 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         regex: spelling fix
5109         * lib/regexec.c: spelling fix
5110
5111         regex: rely on stdint.h for SIZE_MAX
5112         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5113
5114 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         regex: merge glibc changes
5117
5118         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5119         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5120         (init_word_char): Work even if bitset words are not exactly 32 or
5121         64 bits wide.  Don't assume there are no padding bits.
5122         * lib/regex.c [_LIBC]: Do not include <config.h>.
5123         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5124         and -Wtype-limits.
5125         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5126         needless disagreement with glibc.  All uses changed.  Define it to
5127         1 only if _GNU_SOURCE, to match glibc.
5128         (_REG_RM_NAME): Remove; no longer needed, since the names in
5129         question are now all protected by __USE_GNU.
5130         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5131         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5132         * lib/regex_internal.h (MIN): New macro.
5133
5134         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5135         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5136
5137         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5138         * lib/regex_internal.c (re_string_fetch_byte_case):
5139         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5140         is miscompiled, and it turns out it is because of an incorrect
5141         attribute on re_string_fetch_byte_case.  Unlike
5142         re_string_peek_byte_case, this one is really not pure, it modifies
5143         memory (increments pstr->cur_idx), and with the pure attribute GCC
5144         assumed it doesn't and it cached the presumed value of
5145         regexp->cur_idx in a variable across the
5146          for (;; ++i)
5147            {
5148              if (i >= BRACKET_NAME_BUF_SIZE)
5149                return REG_EBRACK;
5150              if (token->type == OP_OPEN_CHAR_CLASS)
5151                ch = re_string_fetch_byte_case (regexp);
5152              else
5153                ch = re_string_fetch_byte (regexp);
5154              if (re_string_eoi(regexp))
5155                return REG_EBRACK;
5156              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5157                break;
5158              elem->opr.name[i] = ch;
5159            }
5160
5161         2011-11-29 Andreas Schwab <schwab@redhat.com>
5162         * lib/regcomp.c (build_equiv_class):
5163         Fix access after end of search string in regex matcher.
5164
5165         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5166         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5167
5168         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5169         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5170
5171         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5172         * lib/regcomp.c (parse_branch, parse_sub_exp):
5173         More regex memory leak fixes and tests.
5174         (parse_sub_exp, parse_bracket_exp):
5175         Fix memory leak for some invalid regular expressions.
5176
5177         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5178         * lib/regex_internal.c, lib/regexec.c:
5179         Fix unnecessary overallocation due to incomplete character.  When
5180         incomplete characters are found at the end of a string the code
5181         ran amok and allocated lots of memory.  Stricter limits are now in
5182         place.
5183
5184         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5185         * lib/regex.h: Update documentation.
5186
5187         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5188         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5189
5190         2010-05-05 Andreas Schwab <schwab@redhat.com>
5191         * lib/regexec.c (find_collation_sequence_value):
5192         Fix lookup of collation sequence value during regexp matching.
5193
5194         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5195         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5196
5197         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5198         * lib/regex.h: Cleanup namespace.
5199
5200         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5201         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5202
5203         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5204         * lib/regex_internal.h: Prevent some declarations and definitions
5205         to be seen when used in tests.
5206
5207         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5208         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5209         __libc_lock_* macros if not _LIBC.
5210         (struct re_dfa_t): Add lock.
5211
5212 2012-02-07  Eric Blake  <eblake@redhat.com>
5213
5214         maint.mk: also prohibit lower-case @var@
5215         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5216         lower case, like @top_srcdir@.
5217
5218 2012-02-04  Eric Blake  <eblake@redhat.com>
5219
5220         canonicalize: avoid uninitialized memory use
5221         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5222         random '/' left in dest.
5223         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5224
5225 2012-02-04  Bruno Haible  <bruno@clisp.org>
5226
5227         isatty: Fix test failure of ptsname_r on native Windows.
5228         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5229         and don't set errno.
5230         (isatty): Test first whether fd is valid. Set errno when returning 0.
5231
5232 2012-02-04  Bruno Haible  <bruno@clisp.org>
5233
5234         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5235         * tests/test-spawn-pipe-main.c: Include progname.h.
5236         (main): Invoke set_program_name.
5237         * modules/spawn-pipe-tests (Depends-on): Add progname.
5238
5239         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5240         * tests/test-nonblocking-socket-main.c: Include progname.h.
5241         (main): Invoke set_program_name.
5242         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5243
5244         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5245         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5246         (main): Invoke set_program_name.
5247         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5248
5249 2012-02-04  Eric Blake  <eblake@redhat.com>
5250
5251         canonicalize-lgpl: fix // handling
5252         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5253
5254         canonicalize: fix // handling
5255         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5256         /// to //, since only // is special.
5257
5258 2012-02-04  Bruno Haible  <bruno@clisp.org>
5259
5260         ioctl: Fix test failure on native Windows.
5261         * lib/ioctl.c: Include msvc-nothrow.h.
5262         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5263
5264 2012-02-04  Bruno Haible  <bruno@clisp.org>
5265
5266         fsync: Avoid test failure on native Windows.
5267         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5268         read-only.
5269
5270 2012-02-04  Bruno Haible  <bruno@clisp.org>
5271
5272         sys_select: Avoid syntax error on OpenBSD 5.0.
5273         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5274         currently being included, just include the system's <sys/select.h>.
5275
5276 2012-02-04  Bruno Haible  <bruno@clisp.org>
5277
5278         sys_select: Avoid syntax error on OpenBSD 5.0.
5279         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5280         <sys/select.h>, not before.
5281         Reported by Jiri B <jirib@devio.us>.
5282
5283 2012-02-04  Bruno Haible  <bruno@clisp.org>
5284
5285         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5286         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5287         global variables.
5288         * tests/test-get-rusage-data.c (main): Likewise.
5289         Reported by Jim Meyering.
5290
5291 2012-02-04  Bruno Haible  <bruno@clisp.org>
5292
5293         stdioext: Fix last commit.
5294         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5295
5296 2012-02-03  Bruno Haible  <bruno@clisp.org>
5297
5298         stdioext: Add tentative support for Plan9.
5299         * lib/stdio-impl.h: Include <errno.h>.
5300         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5301         * lib/freadable.c (freadable): Likewise.
5302         * lib/fwritable.c (fwritable): Likewise.
5303         * lib/fbufmode.c (fbufmode): Likewise.
5304         * lib/freading.c (freading): Likewise.
5305         * lib/fwriting.c (fwriting): Likewise.
5306         * lib/freadptr.c (freadptr): Likewise.
5307         * lib/freadseek.c (freadptrinc): Likewise.
5308         * lib/freadahead.c (freadahead): Likewise.
5309         * lib/fpurge.c (fpurge): Likewise.
5310         * lib/fseeko.c (rpl_fseeko): Likewise.
5311         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5312         Reported by Jens Staal <staal1978@gmail.com>.
5313
5314 2012-02-02  Jim Meyering  <meyering@redhat.com>
5315
5316         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5317         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5318         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5319         not even to try to add the attribute.  Instead, add a pragma to suppress
5320         the suggestion/warning.
5321
5322 2012-01-31  Karl Berry  <karl@gnu.org>
5323
5324         setstate doc: typo.
5325         * doc/posix-functions/setstate.texi (setstate): { not (.
5326
5327 2012-01-31  Bruno Haible  <bruno@clisp.org>
5328
5329         popen: Make more robust on Windows.
5330         * lib/popen.c: On native Windows, use the _popen based code even if
5331         HAVE_POPEN is set.
5332         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5333         environment variable on native Windows.
5334
5335 2012-01-30  Bruno Haible  <bruno@clisp.org>
5336
5337         pclose: Fix typo.
5338         * lib/stdio.in.h (pclose): Fix typo in warning message.
5339
5340 2012-01-30  Bruno Haible  <bruno@clisp.org>
5341
5342         doc about getlogin_r, setstate.
5343         * doc/posix-functions/getlogin_r.texi: List the incompatible
5344         declaration problem under "not fixed by gnulib".
5345         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5346         problem on Solaris 11 and other platforms.
5347
5348 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5349             Bruno Haible  <bruno@clisp.org>
5350
5351         poll tests: Make test more robust.
5352         * tests/test-poll.c: Include macros.h.
5353         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5354         return value of various I/O operations.
5355         * modules/poll-tests (Files): Add tests/macros.h.
5356
5357 2012-01-30  Bruno Haible  <bruno@clisp.org>
5358
5359         sys_stat: Fix support for mingw64 and MSVC.
5360         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5361         header files already do it.
5362         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5363         stat itself.
5364         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5365
5366 2012-01-30  Bruno Haible  <bruno@clisp.org>
5367
5368         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5370         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5371
5372 2012-01-29  Bruno Haible  <bruno@clisp.org>
5373
5374         quotearg: Fix test failure on MacOS X 10.5.
5375         * tests/test-quotearg-simple.c: Include localcharset.h.
5376         (main): If the locale encoding is not ASCII, bypass the tests of
5377         locale_quoting_style and clocale_quoting_style.
5378         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5379
5380 2012-01-29  Jim Meyering  <meyering@redhat.com>
5381
5382         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5383         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5384         detect uses of canonicalize_file_name.
5385
5386 2012-01-28  Bruno Haible  <bruno@clisp.org>
5387
5388         test-framework-sh: Fix test failure with AIX 7.1 diff.
5389         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5390         in column 1, like 'diff -c' does.
5391         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5392         whether 'diff -u' is used. Instead, test whether the output contains
5393         some '@' character.
5394
5395 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5396
5397         strtoimax: eliminate need for stdint.h, inttypes.h checks
5398         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5399         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5400         the prerequisites for a recently-introduced strtoimax test.
5401         I guess this might cause strtoimax to be replaced when not
5402         strictly necessary on older hosts, but this shouldn't introduce
5403         any bugs and it should make Emacs 'configure' faster on typical
5404         modern hosts.  Problem discovered when importing the latest gnulib
5405         to an Emacs test version.
5406         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5407
5408 2012-01-28  Bruno Haible  <bruno@clisp.org>
5409
5410         sys_time: Override 'struct timeval' on some native Windows platforms.
5411         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5412         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5413         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5414         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5415         needs to be overridden.
5416         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5417         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5418         * tests/test-sys_select.c: Check that the tv_sec member has the same
5419         size as a 'time_t'.
5420         * tests/test-sys_time.c: Likewise.
5421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5422         is set, set also REPLACE_GETTIMEOFDAY.
5423         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5424         convert the resulting 'struct timeval' before returning.
5425         * lib/select.c: Include <sys/time.h>.
5426         (select, timeval): Undefine at the right place.
5427         * modules/select (Depends-on): Add sys_time.
5428         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5429         some Windows platforms.
5430         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5431
5432 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5433
5434         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5435         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5436         an integer.
5437         * lib/fcntl.c (dupfd): Likewise.
5438         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5439
5440 2012-01-28  Bruno Haible  <bruno@clisp.org>
5441
5442         fcntl: Avoid compilation error on native Windows.
5443         * modules/fcntl (Depends-on): Add 'close'.
5444
5445 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5446
5447         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5448         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5449         pointer to an integer.
5450         * lib/poll.c (IsConsoleHandle): Likewise.
5451         * lib/isatty.c (IsConsoleHandle): Likewise.
5452
5453 2012-01-28  Jim Meyering  <meyering@redhat.com>
5454
5455         doc: clarify README-release
5456         * top/README-release: Clarify: you should make a point to have
5457         the latest stable versions of build tools in your PATH, and the
5458         reference to buildreq is solely for its list of tool names, not
5459         for its minimal-functional version numbers.
5460         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5461
5462         maint.mk: use more readable (yet functionally equivalent) quoting
5463         It is common to quote a single quote in a single quoted string like
5464         this:  '...'\''...'.  Unless you know the idiom, that looks like
5465         gibberish, so prefer to double-quote the string when possible.
5466         Then you can use a more readable, lone single quote: "...'..."
5467         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5468         "don't" is more readable than the equivalent 'don'\''t'.
5469         (sc_cast_of_x_alloc_return_value): Likewise.
5470         (sc_cast_of_alloca_return_value): Likewise.
5471         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5472         rather than '\'':'\''.
5473
5474 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5475
5476         stdalign: relax _Alignof and tighten _Alignas test
5477         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5478         as it was too strict: alignof must divide offsetof, but it need
5479         not equal offsetof.  Inspired by Joseph S. Myers's comment
5480         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5481         Conversely, tighten the _Alignas test a bit, as the resulting
5482         alignment must be exactly 8.
5483
5484 2012-01-27  Bruno Haible  <bruno@clisp.org>
5485
5486         stdalign: Document the last change.
5487         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5488
5489 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5490
5491         stdalign: check that alignof and offsetof are consistent
5492         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5493         Problem reported for gnulib by Richard W.M. Jones in
5494         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5495
5496 2012-01-27  Jim Meyering  <meyering@redhat.com>
5497
5498         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5499         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5500         convert a sequence with gaps to the minimal containing range.
5501         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5502         * tests/test-update-copyright.sh: Test for this.
5503         The FSF confirmed it is ok to do this, assuming there is at
5504         least one significant change per year in the affected range:
5505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5506
5507 2012-01-26  Bruno Haible  <bruno@clisp.org>
5508
5509         pipe2: refine doc about thread-safety
5510         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5511         multithread-safety problem.
5512         * doc/glibc-functions/accept4.texi: Likewise.
5513
5514 2012-01-26  Bruno Haible  <bruno@clisp.org>
5515
5516         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5517         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5518         In the test program, include <fcntl.h>, for O_RDONLY.
5519
5520 2012-01-26  Eric Blake  <eblake@redhat.com>
5521
5522         pipe2: document lack of thread-safety in replacement
5523         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5524         issue in replacement.
5525         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5526         Based on a report by Eric Wong.
5527
5528 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5529             Bruno Haible  <bruno@clisp.org>
5530
5531         malloca: Avoid warnings on x86_64 mingw64.
5532         * lib/malloca.c: Include <stdint.h>.
5533         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5534         * modules/malloca (Depends-on): Add stdint.
5535         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5536
5537 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5538
5539         obstack: remove __STDC__ conditionals
5540         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5541         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5542         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5543         m4/include_next.m4 as the only gnulib-maintained places that still
5544         refer to __STDC__.
5545
5546 2012-01-24  Bruno Haible  <bruno@clisp.org>
5547
5548         havelib: Modern quoting.
5549         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5550         the recent change to the GNU coding standards.
5551
5552 2012-01-24  Bruno Haible  <bruno@clisp.org>
5553
5554         stdint: Improve support for Android.
5555         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5556         Reported by Simon Josefsson <simon@josefsson.org>.
5557
5558 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         doc: omit trailing empty lines from INSTALL etc.
5561         * doc/Makefile (INSTALL): Omit trailing empty lines.
5562         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5563         omit trailing empty lines.  This simplifies the build procedure.
5564
5565 2012-01-23  Jim Meyering  <meyering@redhat.com>
5566
5567         tests: avoid spurious warnings about gl_sockets_startup
5568         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5569         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5570         reporting a "statement with no effect".
5571         * tests/test-accept.c (main): Mark as "(void)".
5572         * tests/test-accept4.c (main): Likewise.
5573         * tests/test-bind.c (main): Likewise.
5574         * tests/test-connect.c (main): Likewise.
5575         * tests/test-getpeername.c (main): Likewise.
5576         * tests/test-getsockname.c (main): Likewise.
5577         * tests/test-getsockopt.c (main): Likewise.
5578         * tests/test-listen.c (main): Likewise.
5579         * tests/test-recv.c (main): Likewise.
5580         * tests/test-recvfrom.c (main): Likewise.
5581         * tests/test-send.c (main): Likewise.
5582         * tests/test-sendto.c (main): Likewise.
5583         * tests/test-setsockopt.c (main): Likewise.
5584         * tests/test-shutdown.c (main): Likewise.
5585
5586 2012-01-21  Bruno Haible  <bruno@clisp.org>
5587
5588         locale-fr.m4: Fix for Android.
5589         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5590         failure of the test program on Bionic libc.
5591
5592 2012-01-21  Jim Meyering  <meyering@redhat.com>
5593
5594         bootstrap: fail when bootstrap_post_import_hook fails
5595         Otherwise, it's far too easy to miss diagnostics emitted
5596         between gnulib-tool's output and that of running configure.
5597         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5598
5599 2012-01-17  Jim Meyering  <meyering@redhat.com>
5600
5601         maint: enable sc_trailing_blank
5602         * build-aux/pmccabe.css: Remove trailing blanks.
5603         * doc/acl-cygwin.txt: Likewise.
5604         * doc/gnu-oids.texi: Likewise
5605         * cfg.mk: Enable sc_trailing_blank.
5606         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5607
5608 2012-01-17  Jim Meyering  <meyering@redhat.com>
5609
5610         maint: enable sc_prohibit_openat_without_use
5611         * cfg.mk: Enable sc_prohibit_openat_without_use.
5612         Exempt lib/selinux-at.c.
5613
5614 2012-01-17  Jim Meyering  <meyering@redhat.com>
5615
5616         maint: enable sc_prohibit_cloexec_without_use
5617         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5618         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5619
5620 2012-01-17  Jim Meyering  <meyering@redhat.com>
5621
5622         maint: enable sc_prohibit_intprops_without_use
5623         * cfg.mk: Enable sc_prohibit_intprops_without_use
5624         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5625
5626 2012-01-17  Jim Meyering  <meyering@redhat.com>
5627
5628         maint: enable sc_prohibit_hash_pjw_without_use
5629         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5630         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5631         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5632         following " (".
5633
5634 2012-01-17  Jim Meyering  <meyering@redhat.com>
5635
5636         maint: enable double-word-prohibiting rule
5637         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5638         Exempt three files.
5639
5640 2012-01-17  Jim Meyering  <meyering@redhat.com>
5641
5642         maint: remove empty lines at EOF, but excluding modules/*
5643         Apply syntax rules at home as well as abroad.  Most changes
5644         were induced by running this:
5645           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5646             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5647             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5648         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5649         Exempt modules/* and two binary files.
5650         Also exempt doc/INSTALL*, per request from Bruno Haible.
5651         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5652         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5653         * doc/Copyright/request-assign.future: Likewise.
5654         * doc/Copyright/request-disclaim.changes: Likewise.
5655         * doc/INSTALL: Likewise.
5656         * doc/INSTALL.ISO: Likewise.
5657         * doc/INSTALL.UTF-8: Likewise.
5658         * doc/acl-cygwin.txt: Likewise.
5659         * doc/acl-resources.txt: Likewise.
5660         * doc/fdl-1.2.texi: Likewise.
5661         * doc/fdl-1.3.texi: Likewise.
5662         * doc/fdl.texi: Likewise.
5663         * lib/argp-pin.c: Likewise.
5664         * lib/round.c: Likewise.
5665         * lib/unicase/u16-totitle.c: Likewise.
5666         * lib/unictype/block_test.c: Likewise.
5667         * lib/uninorm/canonical-decomposition.c: Likewise.
5668         * m4/README: Likewise.
5669         * m4/relocatable-lib.m4: Likewise.
5670         * tests/test-isnand-nolibm.c: Likewise.
5671         * tests/test-isnand.c: Likewise.
5672         * tests/uninorm/NormalizationTest.txt: Likewise.
5673
5674 2012-01-17  Jim Meyering  <meyering@redhat.com>
5675
5676         maint: add framework to run syntax-check rules against gnulib sources
5677         * cfg.mk: New file, to disable all currently-failing tests.
5678         We'll enable them one by one, as they are made to pass.
5679         * Makefile (sc_maint): New rule.
5680
5681 2012-01-21  Bruno Haible  <bruno@clisp.org>
5682
5683         stdint: Add support for Android.
5684         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5685         include the system's <stdint.h>.
5686         Reported by Simon Josefsson <simon@josefsson.org>.
5687
5688 2012-01-19  Jim Meyering  <meyering@redhat.com>
5689
5690         bootstrap: add bootstrap_post_import_hook
5691         Bison does still need something like the gnulib_mk_hook whose
5692         invocation I had to remove along with slurp in commit 767ccd40.
5693         Technically, we could get along without it, but doing so would
5694         have required living with a warning and a mandatory post-bootstrap
5695         automake rerun.
5696         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5697         (bootstrap_post_import_hook): New function.
5698         Invoke it after gnulib-tool --import and before autoreconf.
5699
5700 2012-01-18  Jim Meyering  <meyering@redhat.com>
5701
5702         gitlog-to-changelog: don't use "no_"-prefixed variable name
5703         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5704         to enable both --cluster and --no-cluster.  Change variable name,
5705         s/\$no_cluster/$cluster/, and reverse usage to match.
5706
5707         gitlog-to-changelog: use "||", not "or" in expressions
5708         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5709         expressions.
5710
5711 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5712
5713         gitlog-to-changelog: new option --no-cluster
5714         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5715         clustering of adjacent commit messages.
5716
5717 2012-01-17  Jim Meyering  <meyering@redhat.com>
5718
5719         maint: spell file systems with two words, not one
5720         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5721         two words, not one.
5722
5723 2012-01-16  Jim Meyering  <meyering@redhat.com>
5724
5725         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5726         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5727
5728 2012-01-16  Eric Blake  <eblake@redhat.com>
5729
5730         bootstrap: cater to autoconf 2.59
5731         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5732         is not available.
5733
5734         bootstrap: properly check for libtool
5735         * build-aux/bootstrap (libtoolize): Also run libtool when older
5736         usage is detected.
5737
5738 2012-01-15  Bruno Haible  <bruno@clisp.org>
5739
5740         Improve support for MSVC 9.
5741         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5742         clashes on MSVC.
5743         * lib/fcntl.in.h: Likewise.
5744         * lib/stdlib.in.h: Likewise.
5745         * lib/sys_stat.in.h: Likewise.
5746
5747 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5748
5749         gnupload: we hold the master copy of this script now
5750         For motivation and more information, see:
5751         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5752         * build-aux/gnupload: Make it clear in the heading comments that the
5753         master copy of this file is maintained by gnulib.  Since we are at
5754         it, bump its copyright year and ...
5755         ($scriptversion): ... the date in its version.
5756         ($usage): Patches and bug reports should be sent to the gnulib list,
5757         not the automake one.
5758         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5759         anymore.
5760
5761 2012-01-15  Bruno Haible  <bruno@clisp.org>
5762
5763         Fix module 'random'.
5764         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5765         initstate, setstate are declared.
5766
5767 2012-01-14  Bruno Haible  <bruno@clisp.org>
5768
5769         Tests for module 'random'.
5770         * modules/random-tests: New file.
5771         * tests/test-random.c: New file, based on tests/test-random_r.c.
5772
5773         New module 'random'.
5774         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5775         declarations.
5776         * lib/random.c: New file, based on glibc/stdlib/random.c.
5777         * m4/random.m4: New file.
5778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5779         HAVE_RANDOM.
5780         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5781         * modules/random: New file.
5782         * config/srclist.txt: Add an entry for random.c.
5783         * doc/posix-functions/random.texi: Mention the 'random' module.
5784         * doc/posix-functions/initstate.texi: Likewise.
5785         * doc/posix-functions/setstate.texi: Likewise.
5786         * doc/posix-functions/srandom.texi: Likewise.
5787
5788 2012-01-12  Bruno Haible  <bruno@clisp.org>
5789
5790         random_r: Use common idioms.
5791         * lib/random_r.c: Include <stdlib.h> first.
5792
5793         random_r: Override incompatible API on AIX, OSF/1.
5794         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5795         Override the system function if REPLACE_RANDOM_R is 1.
5796         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5797         and OSF/1, set REPLACE_RANDOM_R.
5798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5799         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5800         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5801         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5802         * doc/glibc-functions/random_r.texi: Likewise.
5803         * doc/glibc-functions/setstate_r.texi: Likewise.
5804
5805         random_r: Support for MSVC 9.
5806         * lib/random_r.c: Include stdint.h, not inttypes.h.
5807
5808 2012-01-12  Eric Blake  <eblake@redhat.com>
5809
5810         inet_ntop: guard extra work by IF_LINT
5811         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5812         better code generation when not checking for warnings.
5813         Suggested by Paul Eggert and Jim Meyering.
5814
5815         strptime: fix regression on mingw
5816         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5817         Fix regression.  Reported by Bruno Haible.
5818
5819 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5820             Bruno Haible  <bruno@clisp.org>
5821
5822         copy-file: add error-code-returning variant.
5823         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5824         (qcopy_file_preserving): New declaration.
5825         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5826         copy_file_preserving. Change return type to 'int'. Don't emit an error
5827         message here.
5828         (copy_file_preserving): New function.
5829         * tests/test-copy-file.c: Include <stdlib.h>.
5830         (main): Test qcopy_file_preserving if the environment variable
5831         NO_STDERR_OUTPUT is set.
5832         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5833         with NO_STDERR_OUTPUT
5834         * tests/test-copy-file-2.sh: Likewise.
5835
5836 2012-01-10  Bruno Haible  <bruno@clisp.org>
5837
5838         copy-file: Use 'quote' module consistently.
5839         * lib/copy-file.c (copy_file_preserving): Use quote().
5840
5841         copy-file: Refactor.
5842         * lib/copy-file.c: Include quote.h.
5843         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5844         message here.
5845         * modules/copy-file (Depends-on): Add quote.
5846
5847         acl: Export qcopy_acl.
5848         * lib/acl.h (qcopy_acl): New declaration.
5849         * lib/copy-acl.c (qcopy_acl): Make non-static.
5850
5851         acl: Rename a local variable.
5852         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5853
5854         acl: Align return values of copy_acl and qcopy_acl.
5855         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5856         maybe < -1.
5857
5858 2012-01-11  Eric Blake  <eblake@redhat.com>
5859
5860         strptime: silence gcc warnings
5861         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5862         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5863         Reported by Daniel P. Berrange.
5864
5865         inet_ntop: silence gcc warning
5866         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5867         Reported by Daniel P. Berrange.
5868
5869 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5870
5871         getloadavg test: skip the test on GNU/Linux without /proc mounted
5872         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5873         file.  When /proc is not mounted, it always fails with ENOENT.
5874         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5875         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5876
5877 2012-01-10  Bruno Haible  <bruno@clisp.org>
5878
5879         regex: Avoid link error on MSVC 9.
5880         * modules/regex (Depends-on): Add wctype.
5881
5882 2012-01-10  Bruno Haible  <bruno@clisp.org>
5883
5884         doc: Mention --with-tests option.
5885         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5886         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5887         --with-tests.
5888         Reported by Reuben Thomas.
5889
5890 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5891
5892         users.txt: order package names lexicographically.
5893         * users.txt: Order package names lexicographically.
5894
5895 2012-01-10  Jim Meyering  <meyering@redhat.com>
5896
5897         maint.mk: fix description in comment
5898         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5899
5900         ignore-value: remove deprecated ignore_ptr function
5901         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5902         * NEWS: Note this.
5903
5904 2012-01-09  Jim Meyering  <meyering@redhat.com>
5905
5906         test-init.sh: avoid a subshell
5907         * tests/test-init.sh: Remove protective subshell.
5908         Suggested by Bernhard Voelker.  While a subshell is normally
5909         required to protect against older shells (Solaris, FreeBSD) that
5910         warn about a missing program before performing redirection, the
5911         shell-selection tests performed by init.sh probably exclude any
5912         offending shell.
5913
5914 2012-01-08  Bruno Haible  <bruno@clisp.org>
5915
5916         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5917         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5918         variable.
5919
5920 2012-01-08  Bruno Haible  <bruno@clisp.org>
5921
5922         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5923         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5924         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5925         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5926         macro.
5927         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5929         * lib/spawn_faction_addopen.c: Add workaround implementation if
5930         HAVE_WORKING_POSIX_SPAWN.
5931         * modules/spawn (Makefile): Substitute
5932         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5933         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5934         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5935         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5936         (Depends-on): Update conditions.
5937         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5938         the Solaris 11 bug.
5939
5940 2012-01-08  Bruno Haible  <bruno@clisp.org>
5941
5942         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5943         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5944         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5945         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5946         macro.
5947         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5948         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5949         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5950         HAVE_WORKING_POSIX_SPAWN.
5951         * modules/spawn (Makefile): Substitute
5952         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5953         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5954         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5955         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5956         (Depends-on): Update conditions.
5957         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5958         the Solaris 11 bug.
5959
5960 2012-01-08  Bruno Haible  <bruno@clisp.org>
5961
5962         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5963         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5964         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5966         HAVE_WORKING_POSIX_SPAWN.
5967         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5968         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5969         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5970         * lib/spawn_faction_addclose.c: Add workaround implementation if
5971         HAVE_WORKING_POSIX_SPAWN.
5972         * modules/spawn (Makefile): Substitute
5973         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5974         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5975         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5976         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5977         (Depends-on): Update conditions.
5978         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5979         the Solaris 11 bug.
5980
5981 2012-01-08  Bruno Haible  <bruno@clisp.org>
5982
5983         doc: Update for Solaris 11 2011-11.
5984         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5985         * m4/printf.m4: Update comments.
5986
5987 2012-01-08  Bruno Haible  <bruno@clisp.org>
5988
5989         mktime: Avoid compilation error on Solaris 11.
5990         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5991
5992 2012-01-08  Bruno Haible  <bruno@clisp.org>
5993
5994         doc: Small fix.
5995         * doc/posix-headers/nl_types.texi: Correct platforms list.
5996
5997 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5998
5999         Add lgpl-3.0 module.
6000         * MODULES.html.sh (Support for building documentation): Add
6001         lgpl-3.0.
6002         * modules/lgpl-3.0: New file.
6003
6004 2012-01-08  Jim Meyering  <meyering@redhat.com>
6005
6006         select.c: indent with spaces, not TABs
6007         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6008
6009 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6010
6011         quotearg: do not use grave accent for left quote
6012         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6013         locale_quoting_style.
6014         (quotearg_buffer_restyled): Fix example.
6015         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6016
6017 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6018
6019         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6020         Most programs do not have translation catalogs for English and much
6021         less separate catalogs for British and American English.  Drop the
6022         suggestion to translators about these two, and provide it
6023         automatically for Unicode locales.  Like most programs, even those
6024         using American English, we use single quotation marks.  This conflicts
6025         with the American typographic convention, but works better when you
6026         cite the entire error message within double quotes.  It also tries not
6027         to clash with established practice and with what non-gnulib programs
6028         will usually do.
6029         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6030         using an UTF-8 or GB-18030 locale.  The list of other locales with
6031         quotes was provided by Bruno Haible.
6032         (quotearg_buffer_restyled): Adjust instructions to translators.
6033         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6034         text, since this would be wrong when using Unicode.
6035         * modules/quotearg: Depend on c-strcaseeq.
6036
6037 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6038
6039         quotearg: fix Wikipedia link
6040         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6041
6042 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6043
6044         Fix for mingw with MSVC9.
6045         * m4/ld-version-script.m4: Check that compiler rejects version
6046         scripts with syntax errors.  Reported by Bruno Haible
6047         <bruno@clisp.org>.
6048
6049 2012-01-06  Bruno Haible  <bruno@clisp.org>
6050
6051         Talk about "native Windows API", not "Woe32".
6052         * lib/accept4.c: Update comments to mention native Windows.
6053         * lib/execute.c: Likewise.
6054         * lib/fatal-signal.c: Likewise.
6055         * lib/localcharset.c: Likewise.
6056         * lib/nanosleep.c: Likewise.
6057         * lib/nl_langinfo.c: Likewise.
6058         * lib/pclose.c: Likewise.
6059         * lib/pipe-filter-gi.c: Likewise.
6060         * lib/pipe-filter-ii.c: Likewise.
6061         * lib/pipe.c: Likewise.
6062         * lib/pipe2.c: Likewise.
6063         * lib/popen.c: Likewise.
6064         * lib/progreloc.c: Likewise.
6065         * lib/relocatable.c: Likewise.
6066         * lib/sigaction.c: Likewise.
6067         * lib/sigprocmask.c: Likewise.
6068         * lib/spawn-pipe.h: Likewise.
6069         * lib/spawn-pipe.c: Likewise.
6070         * lib/spawni.c: Likewise.
6071         * lib/stat-time.h: Likewise.
6072         * lib/w32spawn.h: Likewise.
6073         * tests/test-isatty.c: Likewise.
6074         * lib/config.charset: More comments.
6075         * doc/gnulib-intro.texi: Mention native Windows.
6076         * doc/posix-functions/_Exit_C99.texi: Likewise.
6077         * doc/posix-headers/fcntl.texi: Likewise.
6078
6079 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6080
6081         argp: Avoid crash if translator uses % characters in a translation.
6082         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6083         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6084
6085 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         doc: C11 and C++11 are now official
6088         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6089         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6090         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6091         * modules/stdalign:
6092         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6093
6094 2012-01-06  Bruno Haible  <bruno@clisp.org>
6095
6096         uc-is-grapheme-break tests: Tweak.
6097         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6098         message.
6099
6100 2012-01-06  Bruno Haible  <bruno@clisp.org>
6101
6102         test-init.sh: correct the test for diff -u
6103         * tests/test-init.sh: Also redirect stdout to /dev/null.
6104
6105 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6106
6107         Use ', not `, for quoting output.
6108         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6109         (print_changelog_deltas, get_tool_versions, main program):
6110         * build-aux/git-version-gen:
6111         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6112         * build-aux/move-if-change (help):
6113         * build-aux/useless-if-before-free (usage, main program):
6114         * check-module (parse_module_file, usage)
6115         (find_included_lib_files, check_module):
6116         * lib/argmatch.c (main) [TEST]:
6117         * lib/argp-help.c (_help):
6118         * lib/getopt1.c (main) [TEST]:
6119         * lib/git-merge-changelog.c (usage):
6120         * lib/xstrtol-error.c (xstrtol_error):
6121         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6122         * m4/argz.m4 (gl_FUNC_ARGZ):
6123         * m4/bison.m4 (gl_BISON):
6124         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6126         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6127         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6128         * m4/gc-random.m4 (gl_GC_RANDOM):
6129         * m4/intl.m4 (gt_CHECK_DECL):
6130         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6131         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6132         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6134         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6135         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6136         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6137         * tests/test-dirname.c (main):
6138         * tests/test-getpass.c (main):
6139         * tests/test-iconvme.c (main):
6140         * tests/test-parse-datetime.c (LOG):
6141         * tests/test-xstrtoimax.sh:
6142         * tests/test-xstrtol.sh:
6143         * tests/test-xstrtoll.sh:
6144         * tests/test-xstrtoumax.sh:
6145         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6146         * top/GNUmakefile (abort-due-to-no-makefile):
6147         Quote 'like this', not `like this', as per the recent change to
6148         the GNU coding standards.
6149
6150 2012-01-05  Bruno Haible  <bruno@clisp.org>
6151
6152         strtoimax: Don't force a replacement on systems where intmax_t is int.
6153         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6154         'intmax_t' is not larger than 'int'.
6155         Reported by Pádraig Brady <P@draigBrady.com>.
6156
6157 2012-01-05  Bruno Haible  <bruno@clisp.org>
6158
6159         doc: Mention NetBSD bugs.
6160         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6161         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6162
6163 2012-01-05  Bruno Haible  <bruno@clisp.org>
6164
6165         strtoumax tests: Enhance tests.
6166         * tests/test-strtoumax.c (main): Add tests for large values.
6167
6168 2012-01-05  Bruno Haible  <bruno@clisp.org>
6169
6170         strtoimax: Work around AIX 5.1 bug.
6171         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6172         definition.
6173         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6174         Set HAVE_STRTOIMAX.
6175         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6176         REPLACE_STRTOIMAX.
6177         * modules/inttypes-incomplete (Makefile.am): Substitute
6178         REPLACE_STRTOIMAX.
6179         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6180         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6181         (Depends-on): Update conditions.
6182         * tests/test-strtoimax.c (main): Add tests for large values.
6183         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6184
6185 2012-01-05  Bruno Haible  <bruno@clisp.org>
6186
6187         inttypes: Modernize.
6188         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6189         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6190         (Makefile.am): Update inttypes.h rule.
6191
6192 2012-01-05  Jim Meyering  <meyering@redhat.com>
6193
6194         init.sh: don't waste a subshell just to redirect stderr
6195         * tests/init.sh: In testing for diff -u and diff -c, use a
6196         stderr-redirecting exec inside `...` rather than a subshell.
6197
6198         test-init.sh: avoid failure on HP-UX 11.00
6199         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6200         resolves to diff -c or cmp.  Reported by Bruno Haible.
6201
6202 2012-01-05  Bruno Haible  <bruno@clisp.org>
6203
6204         Tests for module 'strtoull'.
6205         * modules/strtoull-tests: New file.
6206         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6207
6208 2012-01-05  Bruno Haible  <bruno@clisp.org>
6209
6210         Tests for module 'strtoll'.
6211         * modules/strtoll-tests: New file.
6212         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6213
6214 2012-01-05  Bruno Haible  <bruno@clisp.org>
6215
6216         Tests for module 'strtoul'.
6217         * modules/strtoul-tests: New file.
6218         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6219
6220 2012-01-05  Bruno Haible  <bruno@clisp.org>
6221
6222         Tests for module 'strtol'.
6223         * modules/strtol-tests: New file.
6224         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6225
6226 2012-01-04  Jim Meyering  <meyering@redhat.com>
6227
6228         test-init.sh: accommodate Solaris 5.10's different diff -u output
6229         * tests/test-init.sh: Also exempt @@ lines from the comparison
6230         of diff output, since Solaris 5.10 and GNU diff formats differ.
6231         Reported by Stefano Lattarini.
6232
6233 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6234
6235         test-posixtm: don't assume signed integer wraparound
6236         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6237         after signed integer overflow.  Inspired by (though it may not
6238         fix) Bruno Haible's bug report in
6239         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6240
6241         Spell out "Windows 9x" and "Windows XP".
6242         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6243         "Windows 9x" and "WinXP" with "Windows XP".
6244
6245 2012-01-04  Jim Meyering  <meyering@redhat.com>
6246
6247         test-vc-list-files-cvs.sh: remove obsolete comment
6248         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6249         double exit.  Now that's all encapsulated via skip_ and Exit.
6250
6251 2012-01-04  Bruno Haible  <bruno@clisp.org>
6252
6253         Talk about "native Windows API", not "Win32".
6254         * lib/classpath.c: Update comments to mention native Windows.
6255         * lib/csharpexec.c: Likewise.
6256         * lib/dup2.c: Likewise.
6257         * lib/error.c: Likewise.
6258         * lib/fcntl.c: Likewise.
6259         * lib/filename.h: Likewise.
6260         * lib/findprog.c: Likewise.
6261         * lib/get-rusage-as.c: Likewise.
6262         * lib/get-rusage-data.c: Likewise.
6263         * lib/getpagesize.c: Likewise.
6264         * lib/javaexec.c: Likewise.
6265         * lib/msvc-inval.c: Likewise.
6266         * lib/msvc-nothrow.c: Likewise.
6267         * lib/nanosleep.c: Likewise.
6268         * lib/nonblocking.c: Likewise.
6269         * lib/printf-parse.c: Likewise.
6270         * lib/setlocale.c: Likewise.
6271         * lib/sigaction.c: Likewise.
6272         * lib/strerror_r.c: Likewise.
6273         * lib/tmpdir.c: Likewise.
6274         * lib/vasnprintf.c: Likewise.
6275         * lib/w32spawn.h: Likewise.
6276         * lib/waitpid.c: Likewise.
6277         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6278         * m4/locale-ar.m4: Likewise.
6279         * m4/locale-fr.m4: Likewise.
6280         * m4/locale-ja.m4: Likewise.
6281         * m4/locale-tr.m4: Likewise.
6282         * m4/locale-zh.m4: Likewise.
6283         * m4/printf.m4: Likewise.
6284         * tests/test-cloexec.c: Likewise.
6285         * tests/test-copy-acl.sh: Likewise.
6286         * tests/test-copy-file.sh: Likewise.
6287         * tests/test-file-has-acl.sh: Likewise.
6288         * tests/test-set-mode-acl.sh: Likewise.
6289         * tests/test-dup-safer.c: Likewise.
6290         * tests/test-dup2.c: Likewise.
6291         * tests/test-dup3.c: Likewise.
6292         * tests/test-fcntl.c: Likewise.
6293         * tests/test-nonblocking-pipe.h: Likewise.
6294         * tests/test-nonblocking-socket.h: Likewise.
6295         * tests/test-pipe.c: Likewise.
6296         * tests/test-pipe2.c: Likewise.
6297         * tests/test-spawn-pipe-child.c: Likewise.
6298         * doc/acl-resources.txt: Likewise.
6299         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6300         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6301         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6302         * lib/localcharset.c: Update comments to mention native Windows.
6303         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6304         * lib/localename.c: Likewise.
6305         * lib/progreloc.c: Likewise.
6306         * lib/relocatable.c: Likewise.
6307         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6308         (windows_compute_revents): Renamed from win32_compute_revents.
6309         (windows_compute_revents_socket): Renamed from
6310         win32_compute_revents_socket.
6311         * lib/select.c: Update comments to mention native Windows.
6312         (windows_poll_handle): Renamed from win32_poll_handle.
6313         * m4/threadlib.m4: Update comments to mention native Windows.
6314         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6315         --enable-threads=windows instead of --enable-threads=win32. Set
6316         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6317         * lib/glthread/lock.h: Update comments to mention native Windows.
6318         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6319         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6320         USE_WIN32_THREADS.
6321         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6322         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6323         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6324         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6325         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6326         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6327         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6328         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6329         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6330         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6331         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6332         * tests/test-tls.c: Likewise.
6333         Rationale:
6334         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6335         on both 32-bit and 64-bit Windows systems.
6336         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6337         line of distinction is between "native Windows" on one side and Unix/
6338         POSIX systems on the other side. More details in
6339         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6340         Suggested by Paul Eggert.
6341
6342 2012-01-03  Bruno Haible  <bruno@clisp.org>
6343
6344         isatty: Support for MSVC 9.
6345         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6346         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6347         (_isatty_nothrow): New function.
6348         (isatty): Use it instead of _isatty.
6349         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6350         * lib/poll.c (IsConsoleHandle): Likewise.
6351         * lib/select.c (IsConsoleHandle): Likewise.
6352         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6353         (gl_PREREQ_ISATTY): New macro.
6354         * modules/isatty (Depends-on): Add msvc-inval.
6355         (configure.ac): Invoke gl_PREREQ_ISATTY.
6356
6357 2012-01-03  Jim Meyering  <meyering@redhat.com>
6358
6359         maint.mk: remove temporary transition aid from over 1.5 years ago
6360         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6361         purpose was to aid in the transition (avoiding silent malfunction)
6362         from that old name to the new _sc_search_regexp.  This shim was
6363         added by commit 219c504b.
6364
6365         init.sh: do not try to accommodate compare arguments starting with "-"
6366         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6367         compare arguments that start with "-".  Besides, we do not worry
6368         about this when invoking diff or cmp; why start now with sed?
6369         Using "--" to separate options from argument would trigger sed
6370         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6371         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6372
6373 2012-01-02  Bruno Haible  <bruno@clisp.org>
6374
6375         Enhance tests for module 'isatty'.
6376         * modules/isatty-tests (Depends-on): Add pipe-posix.
6377         * tests/test-isatty.c: Include <fcntl.h>.
6378         (DEV_NULL): New macro.
6379         (main): Test the resut of isatty() also on regular files, pipes, and
6380         /dev/null.
6381
6382         New module 'isatty'.
6383         * lib/unistd.in.h (isatty): New declaration.
6384         * lib/isatty.c: New file, based on an idea of
6385         Bastien Roucariès <roucaries.bastien@gmail.com>.
6386         * m4/isatty.m4: New file.
6387         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6388         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6389         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6390         REPLACE_ISATTY.
6391         * modules/isatty: New file.
6392         * doc/posix-functions/isatty.texi: Mention the new module.
6393         Suggested by Paolo Bonzini.
6394
6395 2012-01-02  Bruno Haible  <bruno@clisp.org>
6396
6397         canonicalize: Tweak 2011-12-29 commit.
6398         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6399         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6400
6401 2012-01-02  Jim Meyering  <meyering@redhat.com>
6402
6403         gitlog-to-changelog: describe input syntax in --help output
6404         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6405
6406         gitlog-to-changelog: fix typo in --help: show backslash before email @
6407         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6408         in sources, but not in actual output.
6409
6410 2011-12-30  Jim Meyering  <meyering@redhat.com>
6411
6412         gitlog-to-changelog: don't malfunction when name contains %-directive
6413         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6414         in a name string cause trouble.  E.g., with a user name of "%s",
6415         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6416
6417 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6418
6419         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6420         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6421         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6422         the "  (tiny change)" notation that is appended to the standard
6423         ChangeLog "date  name  email" header line.
6424
6425 2012-01-01  Jim Meyering  <meyering@redhat.com>
6426
6427         test-framework-sh: init.sh: fix "make dist" failure
6428         When using gnulib-tool's --with-tests option and any module that
6429         depends on test-framework-sh, "make dist" would fail due to the
6430         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6431         in the gltests directory, and not in the gllib/ directory.
6432         One way to work around that is to move the EXTRA_DIST += init.sh
6433         from the primary module to the -tests one:
6434         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6435         * modules/test-framework-sh (Makefile.am): ...not here.
6436         Reported by Tom G. Christensen in
6437         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6438
6439         version-etc: update copyright year reported by --version
6440         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6441
6442 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6443
6444         canonicalize: only stat() if required
6445         * lib/canonicalize.c (canonicalize_filename_mode):
6446         Avoid calling l?stat() when both CAN_MISSING,
6447         and CAN_NOLINKS are set, as we neither need
6448         to resolve symlinks or test component existence.
6449
6450 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6451
6452         doc: cover st_ino issues once; add OpenVMS etc.
6453         * doc/posix-functions/stat.texi (stat):
6454         * doc/posix-functions/lstat.texi (lstat):
6455         * doc/posix-functions/fstatat.texi (fstatat):
6456         * doc/posix-functions/fstat.texi (fstat):
6457         Move general 'struct stat' stuff to sys_stat.texi,
6458         leaving behind a pointer.
6459         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6460         Merge duplicate info about 'struct stat' problems into here.
6461         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6462         and suggest partial workarounds.
6463
6464         same-inode: port to OpenVMS
6465         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6466         three st_ino values.
6467
6468 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6469
6470         canonicalize: fix references to stat() and lstat()
6471         * lib/canonicalize.c (canonicalize_filename_mode):
6472         Ensure references always resolve to a replacement
6473         function if required (even via a macro).
6474
6475 2011-12-30  Jim Meyering  <meyering@redhat.com>
6476
6477         gitlog-to-changelog: remove a little duplication
6478         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6479         rather than twice.
6480
6481 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6482
6483         canonicalize: add support for not resolving symlinks
6484         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6485         indicate we don't want to follow symlinks.  Also
6486         provide CAN_MODE_MASK to aid setting these existing
6487         mutually exclusive values.
6488         * lib/canonicalize.c (canonicalize_filename_mode):
6489         Extract the flags from can_mode parameter, which
6490         are currently just used to select between stat()
6491         and lstat().  Also ensure that mutually exclusive
6492         values are flagged immediately as invalid.
6493         * tests/test-canonicalize.c: Verify symlinks are
6494         not followed, and that invalid flag combinations
6495         are diagnosed.
6496
6497 2011-12-25  Jim Meyering  <meyering@redhat.com>
6498
6499         gitlog-to-changelog: do not clump multi-paragraph entries
6500         Identical header lines (date,name,email+coauthors) are suppressed,
6501         thus putting all entries with those same characteristics under
6502         a single header.  However, when a log entry consists of two or
6503         more paragraphs, it may not be clear where it starts and ends.
6504         This change makes it so that such an entry is always separated
6505         from others by a header line, even when that header would
6506         otherwise be suppressed.
6507         * build-aux/gitlog-to-changelog: Implement the above.
6508         Inspired by a related request from Stefano Lattarini in
6509         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6510
6511 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6512
6513         announce-gen: fix `cmd' typo in diagnostic
6514         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6515         diagnostic: a missing '$' meant that the command was not output.
6516
6517 2011-12-23  Jim Meyering  <meyering@redhat.com>
6518
6519         test-framework-sh: distribute init.sh
6520         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6521         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6522         fail due to the lack of init.sh.
6523
6524         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6525         * modules/atexit-tests: Rather than listing tests/init.sh,
6526         now that there's a module for it, simply depend on that new module.
6527         * modules/closein-tests: Likewise.
6528         * modules/exclude-tests: Likewise.
6529         * modules/getcwd-tests: Likewise.
6530         * modules/perror-tests: Likewise.
6531         * modules/pread-tests: Likewise.
6532         * modules/pwrite-tests: Likewise.
6533         * modules/vc-list-files-tests: Likewise.
6534         * modules/verify-tests: Likewise.
6535         * modules/xalloc-die-tests: Likewise.
6536         * modules/xstrtoimax-tests: Likewise.
6537         * modules/xstrtol-tests: Likewise.
6538         * modules/xstrtoll-tests: Likewise.
6539         * modules/xstrtoumax-tests: Likewise.
6540         * modules/yesno-tests: Likewise.
6541
6542 2011-12-22  Jim Meyering  <meyering@redhat.com>
6543
6544         test-framework-sh: add minimal tests of init.sh's compare function
6545         * modules/test-framework-sh-tests: New file.
6546         * tests/test-init.sh: New file.
6547
6548         test-framework-sh: new module
6549         * modules/test-framework-sh: New file.
6550         * MODULES.html.sh (Support for maintaining and releasing projects):
6551         List it.
6552
6553         init.sh: do not emit simulated diff output to stderr
6554         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6555
6556 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6557
6558         .gitignore: ignore gnulib.dvi and regex.info
6559         * doc/.gitignore:add gnulib.dvi and regex.info
6560
6561 2011-12-22  Jim Meyering  <meyering@redhat.com>
6562
6563         init.sh: correct previous change
6564         * tests/init.sh (compare): My previous change was wrong.
6565         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6566
6567         init.sh: avoid unwarranted test failure when using "set -e"
6568         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6569         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6570         a use like "compare exp out" would get evoke an unconditional failure.
6571
6572 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6573
6574         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6575         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6576         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6577         autoreconf that did not.
6578         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6579         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6580
6581 2011-12-17  Jim Meyering  <meyering@redhat.com>
6582
6583         bootstrap: remove some now-unneeded code
6584         This script arose back when gnulib-tool was young.
6585         Since then, it has seen improvements that render much of this
6586         script unnecessary.  In particular, it can now make symlinks
6587         to the files it uses.  Also, I no longer see as much value in
6588         marking files as read-only via comments.
6589         If you relied on the symlink-creation feature of the preceding
6590         version of this script, you can get most of that functionality
6591         by adding the --symlink option to the definition of
6592         gnulib_tool_option_extras in your bootstrap.conf file.
6593         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6594         Run autopoint and libtoolize *before* gnulib-tool.
6595         After it, run an abbreviated autoreconf, rather than a loop around
6596         all tools.
6597         (slirp, bt_mark_as_generated): Remove functions.
6598
6599 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6600
6601         ftoastr: fix typo
6602         * lib/ftoastr.h: Fix misspelling in comment.
6603
6604 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6605
6606         * top/README-release: fix punctuation.
6607
6608 2011-12-17  Jim Meyering  <meyering@redhat.com>
6609
6610         bootstrap: correct the recent buildreq change
6611         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6612         had no effect.
6613         * build-aux/bootstrap (buildreq): Bracket each search term with
6614         "*...*", so that the shell "case" statement works as intended.
6615         Add comments.
6616
6617 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6618
6619         build: let bootstrap resort to wget when downloading .po files
6620         * build-aux/bootstrap (download_po_files): Fallback to wget when
6621         downloading the .po files via rsync fails.  This is necessary to
6622         bootstrap from behind a strict firewall.
6623
6624 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6625
6626         stdint: don't assume C++11 when compiling with g++
6627         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6629         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6630         work also in C++ before C++11, as that improperly inhibits
6631         generating a substitute stdint.h for that case.
6632
6633 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6634
6635         alloca: protect comment from gnulib-tool
6636         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6637         that gnulib-tool doesn't think it's a license, and munge it to
6638         say "GCC version 3".
6639
6640 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6641
6642         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6643         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6644         $(abs_top_builddir) instead of $(top_builddir).
6645
6646 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6647
6648         strftime-tests: also test nanoseconds
6649         * tests/test-strftime.c (T): Add a test of %N.
6650
6651 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6652
6653         inttypes, stdint: add C++11 support
6654         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6655         when including inttypes.h and stdint.h.  Support this change to
6656         the standard.
6657         * doc/posix-headers/inttypes.texi (inttypes.h):
6658         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6659         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6660         Define if not defined already, for the benefit of pre-C++11 hosts.
6661         Define the standard format macros (e.g., PRId8) always.
6662         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6663         Likewise, if __cpluspus.  Define the standard constant and limit
6664         macros (e.g., INT8_C, INT8_MAX) always.
6665         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6666         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6667         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6668         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6669         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6670         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6671         Likewise.
6672
6673 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         nonblocking tests: Fix test failure on Linux/PPC.
6676         Suggested by Prerna Saxena in
6677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6678         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6679         Set to 1100000.
6680
6681 2011-12-12  Jim Meyering  <meyering@redhat.com>
6682
6683         argmatch: don't hard-code `' when listing valid option arguments
6684         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6685         use the quote function to add quotes.  Use fputs rather than
6686         fprintf for the format string with no format directive.
6687
6688 2011-12-07  Eric Blake  <eblake@redhat.com>
6689
6690         bootstrap: detect tools required by gnulib-tool
6691         * build-aux/bootstrap (buildreq): Provide minimum implicit
6692         dependencies.
6693         * DEPENDENCIES: Mention patch as a prereq.
6694
6695 2011-12-04  Bruno Haible  <bruno@clisp.org>
6696
6697         sethostname: Port to Windows platforms.
6698         * lib/sethostname.c: Provide an alternate implementation for Windows
6699         platforms.
6700         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6701         (main): Skip the test if sethostname() fails with EPERM. On Windows
6702         platforms, don't check the result of gethostname().
6703
6704 2011-12-04  Bruno Haible  <bruno@clisp.org>
6705             Jim Meyering  <meyering@redhat.com>
6706
6707         tests: Avoid spurious error message on platforms without mktemp program.
6708         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6709
6710 2011-12-04  Bruno Haible  <bruno@clisp.org>
6711
6712         sethostname: Fix documentation.
6713         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6714         "not fixed" section.
6715
6716 2011-12-03  Bruno Haible  <bruno@clisp.org>
6717
6718         gnulib-tool: Verify that the License field is present and non-empty.
6719         * gnulib-tool (func_get_license_raw): New function, extracted from
6720         func_get_license.
6721         (func_get_license): Use it. Warn if the module is not a test module and
6722         has no license.
6723         Suggested by Jim Meyering.
6724
6725 2011-12-03  Bruno Haible  <bruno@clisp.org>
6726
6727         sethostname tests: Fix link error on mingw.
6728         * tests/test-sethostname1.c: New file, extracted from
6729         tests/test-sethostname.c.
6730         * tests/test-sethostname2.c: New file, extracted from
6731         tests/test-sethostname.c.
6732         * tests/test-sethostname.c: Remove file.
6733         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6734         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6735         (Depends-on): Add gethostname.
6736         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6737         Link the latter with $(GETHOSTNAME_LIB).
6738
6739         sethostname tests: Fix compilation error on mingw.
6740         * tests/test-sethostname.c: Don't include <sys/types.h>.
6741         (geteuid): Use a dummy value without uid_t.
6742         * modules/sethostname-tests (Depends-on): Remove sys_types.
6743
6744         sethostname tests: Avoid a gcc warning.
6745         * tests/test-sethostname.c (main): Remove an unused variable.
6746
6747         Tweak last commit.
6748         * modules/sethostname-tests (Files): Sort by decreasing importance.
6749         (configure.ac): Check for geteuid.
6750         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6751         the test when there's nothing to test. Drop an unnecessary cast.
6752         Improve an error message. Verify that the final sethostname() call
6753         succeeds.
6754
6755 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6756
6757         Add a test suite for the sethostname module.
6758         * modules/sethostname-tests: New file.  A test program
6759         for the sethostname module.
6760         * tests/test-sethostname.c: Likewise.
6761
6762 2011-12-03  Bruno Haible  <bruno@clisp.org>
6763
6764         Tweak last commit.
6765         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6766         Fix preprocessor directives indentation. Fix typos.
6767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6768         * modules/unistd (Makefile): Likewise.
6769
6770 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6771
6772         Integrate the sethostname module into unistd.
6773         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6774         into the unistd.h header.
6775         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6776         preprocessor directives.
6777         * modules/unistd: Setup the Makefile substitutions of the
6778         SETHOSTNAME preprocessor directives.
6779
6780 2011-12-03  Bruno Haible  <bruno@clisp.org>
6781
6782         Tweak last commit.
6783         * lib/sethostname.c: Don't include <string.h>.
6784         (sethostname): No need to copy the argument string to the stack. Don't
6785         call clearerr. Preserve errno when fprintf failed.
6786         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6787         Don't invoke AC_REPLACE_FUNCS.
6788         * modules/sethostname (Link): Remove empty section.
6789         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6790         failure problem.
6791
6792 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6793
6794         New module 'sethostname'.
6795         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6796         for systems that lack it.
6797         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6798         sethostname declaration and function.
6799         * modules/sethostname: New file.  Define the sethostname module.
6800
6801 2011-12-03  Bruno Haible  <bruno@clisp.org>
6802
6803         Tweak last commit.
6804         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6805
6806 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6807
6808         Split the HOST_NAME_MAX detection into a separate m4 macro.
6809         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6810         macro so it can be used by the pending sethostname module.
6811
6812 2011-12-03  Bruno Haible  <bruno@clisp.org>
6813
6814         Fix module descriptions syntax.
6815         * modules/argv-iter (License): Fix syntax.
6816         * modules/di-set (License): Likewise.
6817         * modules/ino-map (License): Likewise.
6818         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6819
6820 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6821
6822         stdalign: port to Clang 3.0
6823         Problem reported by Simon Josefsson in
6824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6825         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6826         which has <stdalign.h> but which does not define alignof.
6827         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6828
6829 2011-12-01  Eric Blake  <eblake@redhat.com>
6830
6831         mktempd: silence dd usage
6832         * build-aux/mktempd (rand_bytes): Silence dd.
6833
6834 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6835
6836         manywarnings: Don't mention gcc version in docstring.
6837         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6838         Jim Meyering <meyering@redhat.com>.
6839
6840 2011-11-30  Jim Meyering  <meyering@redhat.com>
6841
6842         hash: mark a few floating point constants with "f" suffix
6843         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6844         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6845         floating point constants with "f", since they're destined to be
6846         saved/used as "float"s.
6847
6848 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6849
6850         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6851         * tests/test-float.c (test_long_double): Correct and re-enable the
6852         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6853
6854 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6855
6856         Avoid subtracting two pointers that don't point into the same block.
6857         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6858         only pointers into the same memory block are subtracted. We cannot
6859         assume that sizeof (ptrdiff_t) == sizeof (void *).
6860
6861 2011-11-29  Eric Blake  <eblake@redhat.com>
6862
6863         maint.mk: add syntax check for use of compare from init.sh
6864         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6865         moved here from coreutils.
6866
6867         manywarnings: drop -Wunsuffixed-float-constants
6868         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6869         '1.0D', which is the only way to silence this warning for 'double'.
6870
6871 2011-11-29  Jim Meyering  <meyering@redhat.com>
6872
6873         hash: mark compute_bucket_size with the pure attribute
6874         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6875
6876         quotearg, propername: correct pragma guard expression
6877         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6878         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6879
6880 2011-11-28  Jim Meyering  <meyering@redhat.com>
6881
6882         propername: do not mark proper_name with the const attribute
6883         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6884         since it examines data pointed to by its parameter.
6885         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6886         the suggestion from -Wsuggest-attribute=const.
6887
6888         propername: mark one more function as const
6889         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6890
6891 2011-11-27  Jim Meyering  <meyering@redhat.com>
6892
6893         mark functions with const and pure attributes
6894
6895         Mark functions per suggestions from gcc-4.6 when using these options:
6896         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6897         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6898         Follow these guidelines: when possible, apply the attribute to
6899         an extern declaration, not to its definition.  Apply it to the
6900         definition only when the definition is static.
6901         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6902         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6903         * lib/base64.h (isbase64): Likewise.
6904         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6905         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6906         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6907         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6908         (c_tolower, c_toupper): Likewise.
6909         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6910         * lib/chdir-long.c (find_non_slash): Likewise.
6911         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6912         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6913         * lib/file-type.h (file_type): Likewise.
6914         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6915         * lib/filevercmp.c (verrevcmp): Likewise.
6916         * lib/freadahead.h (freadahead): Likewise.
6917         * lib/fts.c (fts_maxarglen): Likewise.
6918         * lib/hash-pjw.h (hash_pjw): Likewise.
6919         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6920         * lib/hash.c (is_prime, next_prime): Likewise.
6921         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6922         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6923         (hash_table_ok, hash_get_first, hash_string): Likewise.
6924         (compute_bucket_size): Likewise.
6925         * lib/i-ring.h (i_ring_empty): Likewise.
6926         * lib/isnan.c (isnanl): Likewise.
6927         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6928         * lib/memcasecmp.h (memcasecmp): Likewise.
6929         * lib/memchr2.h (memchr2): Likewise.
6930         * lib/memcmp2.h (memcmp2): Likewise.
6931         * lib/parse-datetime.y (lookup_zone): Likewise.
6932         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6933         [!WINDOWS_SOCKETS]: Likewise.
6934         * lib/strnlen1.h (strnlen1): Likewise.
6935         * lib/uniwidth.in.h (uc_width): Likewise.
6936         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6937         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6938         (quoting_options_from_style): Add a comment.
6939         * lib/propername.h (proper_name): Add a comment.
6940
6941 2011-11-27  Bruno Haible  <bruno@clisp.org>
6942
6943         Remove unused macros from !_LIBC code in glibc-borrowed files.
6944         * lib/fnmatch.c (STRCOLL): Remove macro.
6945         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6946         * lib/glob.c (__stat, __readdir64): Remove macros.
6947         * lib/tempname.c (__open64, __xstat64): Remove macros.
6948         Suggested by Paul Eggert.
6949
6950 2011-11-27  Bruno Haible  <bruno@clisp.org>
6951
6952         getcwd: Fix link error on MSVC 9.
6953         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6954
6955 2011-11-27  Bruno Haible  <bruno@clisp.org>
6956
6957         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6958         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6959         HAVE_OPENDIR is 0.
6960         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6961         HAVE_CLOSEDIR is 0.
6962         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6963         is 0.
6964         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6965
6966 2011-11-27  Bruno Haible  <bruno@clisp.org>
6967
6968         getcwd: Fix bug from 2011-08-17.
6969         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6970         platforms that need it.
6971         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6972         code of 4 to be a failure, not a success. This ensures that
6973         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6974
6975 2011-11-27  Bruno Haible  <bruno@clisp.org>
6976
6977         binary-io tests: Avoid test failure on mingw when libtool is used.
6978         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6979         Don't verify the size of t-bin-out1.tmp here.
6980         * tests/test-binary-io.sh: Verify it here.
6981         Reported by Simon Josefsson.
6982
6983 2011-11-26  Bruno Haible  <bruno@clisp.org>
6984
6985         Fix conflict between two instantiations of module 'unistd'.
6986         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6987         ${include_guard_prefix} also in the autoconf snippet.
6988         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6990         GNULIB_UNISTD_H_GETOPT.
6991         * modules/getopt-posix (configure.ac): Set the
6992         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6993         * modules/getopt-gnu (configure.ac): Likewise.
6994         * modules/unistd (Makefile.am): Change the substitution value of
6995         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6996         Reported by Simon Josefsson.
6997
6998 2011-11-25  Bruno Haible  <bruno@clisp.org>
6999
7000         pagealign_alloc: Doc and comments.
7001         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7002         module.
7003         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7004
7005 2011-11-25  Jim Meyering  <meyering@redhat.com>
7006
7007         test-update-copyright.sh: avoid false-positive failure
7008         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7009         around false positive failure on Cygwin/Windows.  The latter was
7010         matching erroneously-created files with names like
7011         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7012
7013 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7014
7015         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7016         * m4/valgrind-tests.m4: Check that the parameters that will be
7017         used works, not just a subset of them.  Reported by Bruno Haible
7018         <bruno@clisp.org>.
7019
7020 2011-11-24  Jim Meyering  <meyering@redhat.com>
7021
7022         test-stdalign.c: comment out long double tests
7023         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7024         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7025         error: '_Alignas' specifiers cannot reduce alignment of \
7026         'static_longdouble_alignas'.
7027
7028 2011-11-22  Jim Meyering  <meyering@redhat.com>
7029
7030         init.sh: make "compare /dev/null FILE" output more readable
7031         * tests/init.sh (compare_): Document the preferred order of arguments.
7032         (emit_diff_u_header_): New function.
7033         (compare_dev_null_): Emit a simulated diff, rather than just the
7034         contents of the unexpected file.  Suggestion from Bruno Haible.
7035
7036 2011-11-21  Jim Meyering  <meyering@redhat.com>
7037             Eric Blake  <eblake@redhat.com>
7038
7039         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7040         * tests/init.sh: Make our compare function slightly more portable.
7041         Reported by Bruno Haible in
7042         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7043
7044 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7045
7046         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7047         before using it, in code that ends up in config.h.
7048
7049 2011-11-20  Bruno Haible  <bruno@clisp.org>
7050
7051         getcwd: Work around getcwd bug on AIX 5..7.
7052         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7053         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7054         Use a different value for gl_cv_func_getcwd_path_max. Move the
7055         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7056         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7057         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7058         Define HAVE_MINIMALLY_WORKING_GETCWD.
7059         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7060         where it is not even minimally working, that is, on AIX.
7061         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7062         m4/getcwd-path-max.m4.
7063         (main): Update exit code computation.
7064         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7065         getcwd does not handle long file names.
7066
7067 2011-11-20  Bruno Haible  <bruno@clisp.org>
7068
7069         getcwd: Fix bug from 2009-09-10.
7070         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7071         like "no".
7072
7073 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7074
7075         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7076
7077 2011-11-20  Bruno Haible  <bruno@clisp.org>
7078
7079         fma tests: Avoid shadowing local variables.
7080         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7081         expected.
7082
7083 2011-11-20  Bruno Haible  <bruno@clisp.org>
7084
7085         copysignf tests: Fix.
7086         * tests/test-copysignf.c: Fix signature check.
7087
7088 2011-11-20  Bruno Haible  <bruno@clisp.org>
7089
7090         fma: Remove unused code.
7091         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7092         unused macros.
7093
7094 2011-11-20  Bruno Haible  <bruno@clisp.org>
7095
7096         sethostname: Fix doc about AIX.
7097         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7098         sethostname; it has it.
7099
7100         sethostname: Mention more portability problems.
7101         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7102         problem.
7103         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7104
7105 2011-11-19  Bruno Haible  <bruno@clisp.org>
7106
7107         Depend on module fcntl-h when AT_FDCWD is used.
7108         * modules/utimens (Depends-on): Add fcntl-h.
7109         * modules/areadlinkat (Depends-on): Likewise.
7110         * modules/areadlinkat-with-size (Depends-on): Likewise.
7111         * modules/faccessat (Depends-on): Likewise.
7112         * modules/fchmodat (Depends-on): Likewise.
7113         * modules/fchownat (Depends-on): Likewise.
7114         * modules/getcwd (Depends-on): Likewise.
7115         * modules/mkdirat (Depends-on): Likewise.
7116         * modules/mkfifoat (Depends-on): Likewise.
7117         * modules/readlinkat (Depends-on): Likewise.
7118         * modules/symlinkat (Depends-on): Likewise.
7119         * modules/dup2-tests (Depends-on): Likewise.
7120         * modules/fdutimensat-tests (Depends-on): Likewise.
7121         * modules/futimens-tests (Depends-on): Likewise.
7122
7123 2011-11-19  Bruno Haible  <bruno@clisp.org>
7124
7125         euidaccess: Update a comment.
7126         * lib/euidaccess.c: Update comment about platforms with faccessat.
7127
7128 2011-11-19  Bruno Haible  <bruno@clisp.org>
7129
7130         openat: Fix file list.
7131         * modules/openat (Files): Remove lib/at-func.c.
7132
7133 2011-11-19  Bruno Haible  <bruno@clisp.org>
7134
7135         fstatat: Simplify.
7136         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7137         gnulib should define rpl_fstatat, there is a
7138         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7139
7140 2011-11-19  Bruno Haible  <bruno@clisp.org>
7141
7142         Ensure 'inline' can be used in tests/test-utimens-common.h.
7143         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7144         * modules/futimens-tests (configure.ac): Likewise.
7145         * modules/utimens-tests (configure.ac): Likewise.
7146         * modules/utimensat-tests (configure.ac): Likewise.
7147
7148 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7149
7150         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7151         not hash_insert0.
7152         (hash_insert_if_absent): Doc fix.
7153
7154 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7155
7156         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7157
7158 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7159
7160         test-getcwd: disambiguate exit status
7161         * tests/test-getcwd.c (test_long_name): Return 0..7.
7162         (main): Exit with an unambiguous exit status.  The old
7163         code yielded a mysterious mixture of two failure codes.
7164
7165         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7166         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7167         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7168         rpl_fstatat or fstatat.  This should fix the other problem
7169         reported by Kai Habel in
7170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7171         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7173         and I reproduced it on a Solaris 8 host we still have in production.
7174
7175 2011-11-18  Jim Meyering  <meyering@redhat.com>
7176
7177         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7178         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7179         Add a sentence to the comment.
7180         (hash_insert0): New function that simply calls hash_insert_if_absent.
7181         * lib/hash.h (hash_insert_if_absent): Declare it.
7182         (hash_insert0): Add deprecation attribute.
7183         (_GL_ATTRIBUTE_DEPRECATED): Define.
7184         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7185         not hash_insert0.
7186         * NEWS: Mention it, even though it's not really an incompatible change.
7187
7188 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7189
7190         openat: avoid compilation failure due to lack of <errno.h> inclusion
7191         * lib/openat.c: Include <errno.h>.
7192
7193 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7194
7195         * modules/getcwd (Depends-on): Add fdopendir.
7196         This fixes one of the two problems reported by Kai Habel in
7197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7198
7199         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7200         stdalign problem reported by Ian Beckwith in
7201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7202         * modules/crypto/gc-arcfour (Depends-on):
7203         Depend conditionally on crypto/arcfour.
7204         * modules/crypto/gc-arctwo (Depends-on):
7205         Depend conditionally on crypto/arctwo.
7206         * modules/crypto/gc-des (Depends-on):
7207         Depend conditionally on crypto/des.
7208         * modules/crypto/gc-hmac-md5 (Depends-on):
7209         Depend conditionally on crypto/hmac-md5.
7210         * modules/crypto/gc-hmac-sha1 (Depends-on):
7211         Depend conditionally on crypto/hmac-sha1.
7212         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7213         * modules/crypto/gc-md4 (Depends-on):
7214         Depend conditionally on crypto/md4.
7215         * modules/crypto/gc-md5 (Depends-on):
7216         Depend conditionally on crypto/md5.
7217         * modules/crypto/gc-rijndael (Depends-on):
7218         Depend conditionally on crypto/rijndael.
7219         * modules/crypto/gc-sha1 (Depends-on):
7220         Depend conditionally on crypto/sha1.
7221         * modules/crypto/gc-arcfour:
7222         * modules/crypto/gc-arctwo:
7223         * modules/crypto/gc-des:
7224         * modules/crypto/gc-hmac-md5:
7225         * modules/crypto/gc-hmac-sha1:
7226         * modules/crypto/gc-md2:
7227         * modules/crypto/gc-md4:
7228         * modules/crypto/gc-md5:
7229         * modules/crypto/gc-rijndael:
7230         * modules/crypto/gc-sha1:
7231         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7232         now that the conditional dependencies do the work for us.
7233
7234 2011-11-17  Jim Meyering  <meyering@redhat.com>
7235
7236         tests: factor st_ctime-comparison out of two headers
7237         * tests/test-utimens-common.h (ctime_compare): Define.
7238         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7239         * tests/test-lutimens.h (test_lutimens): Likewise.
7240         * tests/test-utimens.h (test_utimens): Likewise.
7241
7242         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7243         Invoke the test program via an init.sh-using wrapper.
7244         * tests/test-getcwd.sh: New file.
7245         * modules/getcwd-tests (Files): Add it.
7246         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7247
7248 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7249
7250         gitlog-to-changelog: support multi-author commits.
7251         The FSF cares about keeping track of all authors of patches to its
7252         projects, but Git doesn't provide obvious support for multi-author
7253         changesets. Consensus seems to be forming around the use of extra
7254         Signed-off-by inspired lines in the log message formatted as
7255         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7256         multi-author commits between version control systems.
7257         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7258         log message and output in standard ChangeLog multi-author format.
7259         Reported by Peter Rosin <peda@lysator.liu.se>
7260
7261 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7262             Bruno Haible  <bruno@clisp.org>
7263
7264         Fix some modules' file list.
7265         * modules/fstatat (Files): Add m4/lstat.m4.
7266         * modules/openat (Files): Likewise.
7267         * modules/unlinkat (Files): Likewise.
7268
7269 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7270
7271         maint.mk: fix tight-scope.mk generation in VPATH builds.
7272         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7273         reference with $(srcdir) so that the file is found correctly even
7274         when running `make syntax-check' in a VPATH build.
7275
7276 2011-11-13  Bruno Haible  <bruno@clisp.org>
7277             Jim Meyering  <meyering@redhat.com>
7278
7279         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7280         * tests/init.sh (compare): Remove "No differences encountered" or
7281         synonymous output from the 'diff' program.
7282
7283 2011-11-13  Bruno Haible  <bruno@clisp.org>
7284
7285         Makefile: Tweak indentation.
7286         * Makefile: Use tab as first character in every line that contains rule
7287         commands.
7288
7289 2011-11-13  Bruno Haible  <bruno@clisp.org>
7290
7291         Syntax check for copyright statements.
7292         * check-copyright: New file.
7293         * Makefile (sc_check_copyright): New rule.
7294
7295 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7296
7297         * build-aux/git-version-gen: Add --prefix to configure the tag
7298         match string.
7299
7300 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7301
7302         * build-aux/git-version-gen: Add --help and --version.
7303
7304 2011-11-12  Jim Meyering  <meyering@redhat.com>
7305
7306         revamp the other test-exclude?.sh scripts to use init.sh, too
7307         * tests/test-exclude1.sh: Use init.sh.
7308         * tests/test-exclude2.sh: Likewise.
7309         * tests/test-exclude3.sh: Likewise.
7310         * tests/test-exclude4.sh: Likewise.
7311         * tests/test-exclude5.sh: Likewise.
7312         * tests/test-exclude6.sh: Likewise.
7313         * tests/test-exclude7.sh: Likewise.
7314         * tests/test-exclude8.sh: Likewise.
7315         * modules/exclude-tests (Files): List init.sh.
7316
7317         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7318         These shell scripts ignored failure of the binary test-exclude,
7319         so making the latter return 77 didn't cause them to be skipped.
7320         * tests/test-exclude5.sh: Exit with test-exclude's error status
7321         when that program fails.  Revamp to use init.sh.
7322         * tests/test-exclude2.sh: Likewise.
7323
7324         test-exclude: fix a typo
7325         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7326
7327 2011-11-11  Bruno Haible  <bruno@clisp.org>
7328
7329         obstack: Fix compilation error on MSVC 9.
7330         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7331
7332 2011-11-11  Jim Meyering  <meyering@redhat.com>
7333
7334         test-exclude: skip tests rather than failing on deficient systems
7335         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7336         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7337         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7338         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7339
7340 2011-11-10  Bruno Haible  <bruno@clisp.org>
7341
7342         ptsname_r test: Avoid gcc warning on glibc systems.
7343         * tests/test-ptsname_r.c (null_ptr): New function.
7344         (test_errors): Use it.
7345
7346 2011-11-10  Bruno Haible  <bruno@clisp.org>
7347
7348         ptsname_r: Avoid compilation error on OSF/1 5.1.
7349         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7351         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7352         function is not declared or incompatibly declared.
7353         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7354         * modules/ptsname_r (Depends-on, configure.ac): Update.
7355         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7356
7357 2011-11-10  Bruno Haible  <bruno@clisp.org>
7358
7359         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7360         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7361         When cross-compiling, guess yes on all platforms except AIX.
7362         Reported by Ludovic Courtès <ludo@gnu.org>.
7363
7364 2011-11-09  Bruno Haible  <bruno@clisp.org>
7365
7366         ptsname_r tests: Fix bugs.
7367         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7368         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7369
7370 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7371
7372         fstatat: work with cross-compilation
7373         Problem reported by Ludovic Courtès in
7374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7375         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7376         "cross-compiling" and assume the bug is present.  Replace
7377         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7378         an inverted sense, to be more conservative about our assumptions.
7379         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7380
7381 2011-11-09  Bruno Haible  <bruno@clisp.org>
7382
7383         Improve MODULES.html output.
7384         * modules/mkfifoat (Description): Use the word "function".
7385         * modules/readlinkat (Description): Likewise.
7386         * modules/symlinkat (Description): Likewise.
7387
7388 2011-11-09  Eric Blake  <eblake@redhat.com>
7389
7390         ptsname_r-tests: new test module
7391         * modules/ptsname_r-tests: New module.
7392         * tests/test-ptsname_r.c: New file.
7393
7394         ptsname_r: new module
7395         * modules/ptsname_r: New module.
7396         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7397         * lib/ptsname.c (__ptsname_r): Split...
7398         * lib/ptsname_r.c: ...into new file.
7399         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7400         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7401         * modules/stdlib (Makefile.am): Substitute witnesses.
7402         * lib/stdlib.in.h (ptsname_r): Declare it.
7403         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7404         * MODULES.html.sh (Misc): Likewise.
7405         * modules/ptsname (Depends-on): Alter dependency.
7406         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7407
7408 2011-11-09  Jim Meyering  <meyering@redhat.com>
7409
7410         announce-gen: be more concise when there's only one URL+tarball
7411         * build-aux/announce-gen (get_tool_versions): When you distribute
7412         only one type of tarball, combine the first two "Here are..."
7413         sections and make the key-checking grammar independent of
7414         how many tarballs there are.
7415
7416 2011-11-09  Eric Blake  <eblake@redhat.com>
7417
7418         openpty: provide a stub on mingw
7419         * lib/pty.in.h (includes): Provide forward declarations.
7420         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7421
7422         raise: fix mingw handling of SIGPIPE
7423         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7424
7425 2011-11-08  Bruno Haible  <bruno@clisp.org>
7426
7427         More conditional dependencies.
7428         * modules/faccessat (Depends-on): Add conditions.
7429         * modules/fchmodat (Depends-on): Likewise.
7430         * modules/fchownat (Depends-on): Likewise.
7431         * modules/fstatat (Depends-on): Likewise.
7432         * modules/mkfifoat (Depends-on): Likewise.
7433         * modules/readlinkat (Depends-on): Likewise.
7434         * modules/symlinkat (Depends-on): Likewise.
7435         * modules/unlinkat (Depends-on): Likewise.
7436         * modules/utimensat (Depends-on): Likewise.
7437         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7438         * modules/linkat (Depends-on): Refine the conditions.
7439         * modules/renameat (Depends-on): Likewise.
7440
7441 2011-11-08  Bruno Haible  <bruno@clisp.org>
7442
7443         faccessat: Move AC_LIBOBJ invocation to module description.
7444         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7445         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7446         invocation from here...
7447         * modules/faccessat (configure.ac): ... to here. Invoke
7448         gl_PREREQ_FACCESSAT.
7449
7450 2011-11-08  Bruno Haible  <bruno@clisp.org>
7451
7452         faccessat: Simplify autoconf macro.
7453         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7454         gl_FUNC_EUIDACCESS.
7455
7456 2011-11-08  Bruno Haible  <bruno@clisp.org>
7457
7458         renameat: Fix dependencies.
7459         * modules/renameat (Depends-on): Add stdbool.
7460
7461 2011-11-08  Bruno Haible  <bruno@clisp.org>
7462
7463         mkfifoat: Fix module description.
7464         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7465         not gl_UNISTD_MODULE_INDICATOR.
7466
7467 2011-11-08  Bruno Haible  <bruno@clisp.org>
7468
7469         fstatat: Remove unused dependency.
7470         * modules/fstatat (Depends-on): Remove fstat.
7471
7472 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7473
7474         GNUmakefile: behave when Makefile is missing.
7475         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7476
7477 2011-11-08  Bruno Haible  <bruno@clisp.org>
7478
7479         openat: Conditionalize dependencies.
7480         * lib/openat.c: Reduce the scope of some #includes.
7481         * modules/openat (Depends-on): Add conditions.
7482
7483 2011-11-07  Jim Meyering  <meyering@redhat.com>
7484
7485         maint.mk: extract GPG key ID without using a temporary file
7486         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7487         without using a temporary file.  Based on a suggestion from Werner Koch
7488         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7489
7490 2011-11-07  Eric Blake  <eblake@redhat.com>
7491
7492         grantpt: fix typo
7493         * lib/stdlib.in.h (grantpt): Check correct function.
7494
7495         maint.mk: silence new syntax check
7496         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7497
7498 2011-11-06  Bruno Haible  <bruno@clisp.org>
7499
7500         Doc about floating-point and math API.
7501         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7502         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7503
7504 2011-11-06  Bruno Haible  <bruno@clisp.org>
7505
7506         stdalign tests: Skip the test when compiled by Sun C.
7507         * tests/test-stdalign.c (main): Skip the test on Sun C.
7508
7509 2011-11-06  Bruno Haible  <bruno@clisp.org>
7510
7511         ansi-c++-opt: Complete the 2011-06-05 change.
7512         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7513         does not support namespaces, set the variable to "no", not to ":".
7514
7515 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7516
7517         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7518
7519 2011-11-06  Bruno Haible  <bruno@clisp.org>
7520
7521         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7522         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7523         (minus_zerol) [HP-UX]: New macro.
7524         (unary_minus) [HP-UX]: New function.
7525         (copysignl) [HP-UX]: Use unary_minus function.
7526
7527 2011-11-06  Bruno Haible  <bruno@clisp.org>
7528
7529         ldexp, ldexpf, ldexpl: Enhance tests.
7530         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7531         and tests/test-ldexpl.c.
7532         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7533         LDEXP, MIN_EXP, MAX_EXP): New macros.
7534         Include test-ldexp.h.
7535         (main): Just call test_function.
7536         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7537         infinity.h, nan.h.
7538         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7539         MAX_EXP): New macros.
7540         Include test-ldexp.h.
7541         (x, y): Remove variables.
7542         (main): Just call test_function.
7543         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7544         infinity.h, nan.h.
7545         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7546         MAX_EXP): New macros.
7547         Include test-ldexp.h.
7548         (x, y): Remove variables.
7549         (main): Just call test_function.
7550         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7551         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7552         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7553         (Depends-on): Add isnand-nolibm, signbit, float.
7554         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7555         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7556         (Depends-on): Add isnanf-nolibm, signbit, float.
7557
7558 2011-11-06  Bruno Haible  <bruno@clisp.org>
7559
7560         math tests: Cosmetics.
7561         * tests/test-math-c++.cc: Reorder declarations.
7562
7563 2011-11-05  Bruno Haible  <bruno@clisp.org>
7564
7565         fma*: Simplify test.
7566         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7567         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7568
7569         Tests for module 'fmal'.
7570         * modules/fmal-tests: New file.
7571         * tests/test-fmal1.c: New file.
7572         * tests/test-fmal2.c: New file.
7573
7574         New module 'fmal'.
7575         * lib/math.in.h (fmal): New declaration.
7576         * lib/fmal.c: New file.
7577         * m4/fmal.m4: New file.
7578         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7580         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7581         REPLACE_FMAL.
7582         * modules/fmal: New file.
7583         * doc/posix-functions/fmal.texi: Mention the new module and the various
7584         bugs.
7585
7586         Tests for module 'fmaf'.
7587         * modules/fmaf-tests: New file.
7588         * tests/test-fmaf1.c: New file.
7589         * tests/test-fmaf2.c: New file.
7590
7591         New module 'fmaf'.
7592         * lib/math.in.h (fmaf): New declaration.
7593         * lib/fmaf.c: New file.
7594         * m4/fmaf.m4: New file.
7595         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7597         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7598         REPLACE_FMAF.
7599         * modules/fmaf: New file.
7600         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7601         bugs.
7602
7603         Tests for module 'fma'.
7604         * modules/fma-tests: New file.
7605         * tests/test-fma1.c: New file.
7606         * tests/test-fma1.h: New file.
7607         * tests/test-fma2.c: New file.
7608         * tests/test-fma2.h: New file.
7609
7610         New module 'fma'.
7611         * lib/math.in.h (fma): New declaration.
7612         * lib/fma.c: New file.
7613         * m4/fma.m4: New file.
7614         * m4/fegetround.m4: New file.
7615         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7617         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7618         REPLACE_FMA.
7619         * modules/fma: New file.
7620         * doc/posix-functions/fma.texi: Mention the new module and the various
7621         bugs.
7622
7623         Extend gl_MATHFUNC.
7624         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7625         Support 'void' as argument type.
7626         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7627
7628 2011-11-05  Jim Meyering  <meyering@redhat.com>
7629
7630         maint.mk: also prohibit inclusion of dirent.h without use
7631         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7632
7633 2011-11-05  Bruno Haible  <bruno@clisp.org>
7634
7635         ldexpl tests: Avoid test failure on MSVC 9.
7636         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7637         value. Needed in order to enforce the conversion from a value greater
7638         than LDBL_MAX to Infinity.
7639
7640 2011-11-05  Bruno Haible  <bruno@clisp.org>
7641
7642         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7643         * modules/at-internal: New file, extracted from modules/openat.
7644         * modules/openat-h: New file.
7645         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7646         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7647         * modules/openat (Description): Add reference to POSIX function.
7648         (Files): Remove lib/openat.h, lib/openat-proc.c.
7649         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7650         intprops, unistd.
7651         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7652         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7653         gl_FCNTL_MODULE_INDICATOR.
7654         (Include): Remove unistd.h, openat.h.
7655         * modules/areadlinkat (Files): Add lib/at-func.c.
7656         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7657         openat-die, openat-h, save-cwd.
7658         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7659         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7660         openat-die, openat-h, save-cwd, unistd.
7661         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7662         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7663         openat-h, save-cwd. Remove fcntl-h, openat.
7664         * modules/fchmodat (Files): Remove lib/openat.h.
7665         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7666         openat, stdbool, unistd.
7667         * modules/fchownat (Files): Remove lib/openat.h.
7668         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7669         openat, stdbool, sys_stat.
7670         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7671         lib/openat-proc.c.
7672         (Depends-on): Add at-internal.
7673         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7674         * modules/fstatat (Files): Remove lib/openat.h.
7675         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7676         stdbool, unistd.
7677         * modules/fts (Depends-on): Add openat-h.
7678         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7679         openat.
7680         * modules/mkdirat (Files): Remove lib/openat.h.
7681         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7682         openat, stdbool, sys_stat.
7683         * modules/mkfifoat (Files): Add lib/at-func.c.
7684         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7685         openat-h, save-cwd. Remove fcntl-h, openat.
7686         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7687         * modules/readlinkat (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/renameat (Depends-on): Add at-internal, openat-h. Remove
7691         openat.
7692         * modules/selinux-at (Files): Add lib/at-func.c.
7693         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7694         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7695         * modules/symlinkat (Files): Add lib/at-func.c.
7696         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7697         openat-h, save-cwd. Remove fcntl-h, openat.
7698         * modules/unlinkat (Files): Remove lib/openat.h.
7699         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7700         stdbool.
7701         * modules/utimensat (Files): Add lib/at-func.c.
7702         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7703         openat-die, openat-h, save-cwd.
7704         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7705         * modules/fdutimensat-tests (Depends-on): Add openat.
7706         * modules/fstatat-tests (Depends-on): Add openat-h.
7707         * modules/readlinkat-tests (Depends-on): Add openat.
7708         * modules/symlinkat-tests (Depends-on): Add openat.
7709
7710 2011-11-05  Bruno Haible  <bruno@clisp.org>
7711
7712         openat: Include <stdbool.h>.
7713         * lib/openat.c: Include <stdbool.h>.
7714
7715 2011-11-04  Bruno Haible  <bruno@clisp.org>
7716
7717         fchownat, renameat, unlinkat: Fix dependencies.
7718         * modules/fchownat (Depends-on): Add fstatat.
7719         * modules/renameat (Depends-on): Likewise.
7720         * modules/unlinkat (Depends-on): Likewise.
7721
7722 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7723
7724         openat: remove direct dependency on dirent
7725         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7726         and hasn't been needed ever since fdopendir was split into its own
7727         module on 2009-08-31.
7728         * modules/openat (Depends-on): Remove dirent.
7729
7730 2011-11-04  Bruno Haible  <bruno@clisp.org>
7731
7732         renameat: Optimize code size.
7733         * modules/renameat (configure.ac): Don't compile at-func2.c if
7734         REPLACE_RENAMEAT is 1.
7735
7736 2011-11-04  Bruno Haible  <bruno@clisp.org>
7737
7738         openat tests: Fix file list.
7739         * modules/openat-tests (Files): Add tests/test-open.h.
7740
7741 2011-11-04  Bruno Haible  <bruno@clisp.org>
7742
7743         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7744         * modules/fchmodat (Depends-on): Add openat-die.
7745         * modules/fchownat (Depends-on): Likewise.
7746         * modules/linkat (Depends-on): Likewise.
7747         * modules/renameat (Depends-on): Likewise.
7748         * modules/openat (Depends-on): Add dirent.
7749
7750 2011-11-04  Jim Meyering  <meyering@redhat.com>
7751
7752         at-func*.c: fix comments
7753         * lib/at-func2.c: Correct/improve first-line comment.
7754         * lib/at-func.c: Correct grammar in first-line comment.
7755
7756 2011-11-04  Bruno Haible  <bruno@clisp.org>
7757
7758         New module 'mkdirat', split off from module 'openat'.
7759         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7760         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7761         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7762         * modules/mkdirat: New file, extracted from modules/openat.
7763         * modules/openat (Files): Remove lib/mkdirat.c.
7764         (Depends-on): Remove mkdir.
7765         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7766         (Include): Remove <sys/stat.h>.
7767         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7768         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7769         tests/test-mkdir.h.
7770         (Depends-on): Remove ignore-value.
7771         (Makefile.am): Remove rules for test-mkdirat.
7772         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7773         of module 'openat'.
7774         * NEWS: Mention the change.
7775
7776 2011-11-04  Bruno Haible  <bruno@clisp.org>
7777
7778         closedir: Avoid warning on mingw.
7779         * lib/closedir.c: Include <unistd.h>.
7780
7781 2011-11-04  Bruno Haible  <bruno@clisp.org>
7782
7783         New module 'fstatat', split off from module 'openat'.
7784         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7785         defined.
7786         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7787         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7788         gl_FUNC_FSTATAT.
7789         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7790         * modules/fstatat: New file, extracted from modules/openat.
7791         * modules/openat (Files): Remove lib/fstatat.c.
7792         (Depends-on): Remove lstat.
7793         (configure.ac): Remove AC_LIBOBJ of fstatat.
7794         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7795         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7796         tests/test-lstat.h, tests/test-stat.h.
7797         (Depends-on): Remove getcwd-lgpl.
7798         (Makefile.am): Remove rules for test-fstatat.
7799         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7800         of module 'openat'.
7801         * NEWS: Mention the change.
7802         * modules/getcwd (Depends-on): Add fstatat.
7803         * modules/linkat (Depends-on): Likewise.
7804         * modules/mkfifoat-tests (Depends-on): Likewise.
7805         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7806
7807 2011-11-03  Bruno Haible  <bruno@clisp.org>
7808
7809         New module 'unlinkat', split off from module 'openat'.
7810         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7811         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7812         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7813         * modules/unlinkat: New file, extracted from modules/openat. Correct
7814         the dependency conditions.
7815         * modules/openat (Files): Remove lib/unlinkat.c.
7816         (Depends-on): Remove rmdir, unlink.
7817         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7818         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7819         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7820         tests/test-rmdir.h, tests/test-unlink.h.
7821         (Depends-on): Remove unlinkdir.
7822         (Makefile.am): Remove rules for test-unlinkat.
7823         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7824         of module 'openat'.
7825         * NEWS: Mention the change.
7826         * modules/linkat-tests (Depends-on): Add unlinkat.
7827         * modules/mkfifoat-tests (Depends-on): Likewise.
7828         * modules/readlinkat-tests (Depends-on): Likewise.
7829
7830 2011-11-02  Bruno Haible  <bruno@clisp.org>
7831
7832         New module 'fchmodat', split off from module 'openat'.
7833         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7834         defined.
7835         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7836         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7837         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7838         * modules/fchmodat: New file, extracted from modules/openat.
7839         * modules/openat (Files): Remove lib/fchmodat.c.
7840         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7841         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7842         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7843         (Makefile.am): Remove rules for test-fchmodat.
7844         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7845         of module 'openat'.
7846         * NEWS: Mention the change.
7847
7848 2011-11-02  Jim Meyering  <meyering@redhat.com>
7849
7850         putenv: indent #definition of "environ" to placate cppi
7851         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7852
7853         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7854         Git logs are often treated as immutable, because editing them
7855         changes the SHA1 checksums of all descendants.  Thus, errors in
7856         git logs tend to stay there forever.  However, when we generate
7857         a ChangeLog file -- typically for distribution -- from that git log,
7858         we can actually make corrections in the generated file.  The key
7859         lies in recording in machine-readable/applicable form the desired
7860         corrections.  See --help for description and an example.
7861         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7862         (usage): Describe it; alphabetize option descriptions.
7863         (main): Honor the new option, carefully.
7864
7865 2011-11-01  Jim Meyering  <meyering@redhat.com>
7866
7867         gitlog-to-changelog: avoid an infloop
7868         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7869         that ends up being empty.
7870
7871 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7874         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7875         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7876         contains (possibly-quoted) backslashes.  This should avoid
7877         all-too-common shell bugs if COMPLICATED contains backslashes in
7878         the "wrong" places.  Reported by David Evans in
7879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7880         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7881         because we want ASCII ranges.  Is there some reason we don't use
7882         the C locale everywhere in this script?
7883         (func_module, top level): Avoid unwanted pathname expansion when
7884         $repo_url_prefix or $repo_url_suffix_repl contain shell
7885         metacharacters like '?' and '*'.
7886
7887 2011-11-01  Bruno Haible  <bruno@clisp.org>
7888
7889         fchownat: Improve description.
7890         * modules/fchownat (Description): Add link to function.
7891
7892 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7893
7894         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7895         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7897         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7898
7899 2011-11-01  Bruno Haible  <bruno@clisp.org>
7900
7901         alignof: Avoid collision with stdalign module.
7902         * lib/alignof.h (alignof): Remove macro.
7903         * NEWS: Mention the change.
7904         Reported by Paul Eggert.
7905
7906 2011-11-01  Bruno Haible  <bruno@clisp.org>
7907
7908         New module 'fchownat', split off from module 'openat'.
7909         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7910         defined.
7911         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7912         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7913         invoke gl_FUNC_FCHOWNAT.
7914         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7915         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7916         * modules/fchownat: New file, extracted from modules/openat.
7917         * modules/openat (Files): Remove lib/fchownat.c.
7918         (Depends-on): Remove lchown.
7919         (configure.ac): Remove AC_LIBOBJ of fchownat.
7920         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7921         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7922         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7923         (Depends-on): Remove mgetgroups, usleep, stat-time.
7924         (configure.ac): Remove test for getegid.
7925         (Makefile.am): Remove rules for test-fchownat.
7926         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7927         of module 'openat'.
7928         * NEWS: Mention the change.
7929
7930 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7931
7932         stdalign: port better to MSVC and to Sun C 5.11
7933         This fixes some of the problems reported by Bruno Haible in
7934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7935         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7936         shortcomings of MSVC and of Sun C 5.11.
7937         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7938         around __declspec arg.
7939         * modules/stdalign-tests (Files): Add tests/macros.h.
7940         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7941         Include macros.h, for ASSERT.
7942         (DECLARE_ALIGNED): Remove.
7943         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7944         to catch bug), and to 1 if not (simplifies the rest of the code).
7945         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7946         (CHECK_AUTO): Remove.
7947         (CHECK_ALIGNED): Check only the alignment of the static vars,
7948         since auto var alignment isn't supported by Sun C 5.11.
7949         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7950         ASSERT failures are easier to diagnose.
7951
7952 2011-10-31  Bruno Haible  <bruno@clisp.org>
7953
7954         doc about some IRIX 5.3 problems.
7955         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7956         on IRIX 5.3.
7957         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7958         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7959         5.3.
7960         * doc/posix-functions/grantpt.texi: Likewise.
7961         * doc/posix-functions/unlockpt.texi: Likewise.
7962         * doc/posix-functions/lgamma.texi: Likewise.
7963         * doc/posix-functions/nextafter.texi: Likewise.
7964         * doc/posix-functions/remainder.texi: Likewise.
7965         * doc/posix-functions/select.texi: Mention misplaced declaration on
7966         IRIX 5.3.
7967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7968
7969 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7970
7971         gitlog-to-changelog: fix git-log invocation.
7972         git-log mishandles date strings before 1970-01-01 UTC, and there is
7973         no use to specify --since=1970-01-01 by default anyway.
7974         * build-aux/gitlog-to-changelog: By default, when no --since option
7975         was given, do not specify explicit --since option to git-log.
7976
7977 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7978
7979         gitlog-to-changelog: new option --append-dot.
7980         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7981         first non-blank line of each commit message terminated with a dot.
7982
7983 2011-10-30  Bruno Haible  <bruno@clisp.org>
7984
7985         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7986         * lib/ffsl.h: Include <config.h>.
7987         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7988
7989 2011-10-30  Jim Meyering  <meyering@redhat.com>
7990
7991         GNUmakefile: reenable "make syntax-check" for most projects
7992         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7993         build-aux variable", "syntax-check" would do nothing but succeed with
7994         the "No version control files detected..." diagnostic (unless you
7995         happened to override _build-aux via cfg.mk).
7996         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7997         to precede inclusion of maint.mk.  Otherwise, these variables would
7998         be used undefined in any project that does not override the default.
7999
8000 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8001
8002         gitlog-to-changelog: treat a message with only blank lines as empty.
8003         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8004         trailing blank lines before the code that issues a warning about an
8005         empty commit message.
8006
8007 2011-10-30  Jim Meyering  <meyering@redhat.com>
8008
8009         test-parse-datetime.c: avoid new DST-related false positive test failure
8010         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8011         based on the time/date we'll convert, not the current time.
8012         Otherwise, the moment we cross a DST boundary like today's in
8013         Europe, (CEST to CET), that offset ends up being one hour off.
8014
8015 2011-10-27  Bruno Haible  <bruno@clisp.org>
8016
8017         fstat: Tweak documentation.
8018         * modules/fstat (Description): More precise description.
8019
8020 2011-10-27  Bruno Haible  <bruno@clisp.org>
8021
8022         Update documentation regarding 'largefile' module.
8023         * doc/posix-functions/fstat.texi: Tweak wording.
8024         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8025         problems with huge directories and/or small ino_t types.
8026         * doc/posix-functions/readdir.texi: Likewise.
8027         * doc/posix-functions/rewinddir.texi: Likewise.
8028
8029 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8030
8031         maint.mk: don't maintain a second build-aux variable.
8032         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8033         depends on GNUmakefile, which already maintains a cfg.mk
8034         overridable $(_build-aux) for projects with a non-standard
8035         build-aux directory location, although without the $(srcdir)
8036         prefix.  Use that variable consistently instead of introducing a
8037         second one.  Adjust all call sites.
8038
8039 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8040
8041         Add stdalign module and use it in other modules.
8042         This is based on a previous proposal by Bruno Haible
8043         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8044
8045         stdalign: new module
8046         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8047         * modules/stdalign: New files.
8048         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8049         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8050
8051         stdalign-tests: new module
8052         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8053
8054         argp: use stdalign
8055         * lib/argp-parse.c: Include <stdalign.h>.
8056         (alignof): Remove.
8057         * modules/argp (Depends-on): Add stdalign.
8058
8059         crypto libraries: use stdalign
8060         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8061         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8062         Do not include <stdlib.h> twice, in md4.c.
8063         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8064         because we are accessing a pointer's bit-pattern, not a size.
8065         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8066         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8067         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8068         * modules/crypto/sha512: Likewise.
8069
8070         sys_socket: use stdalign, not alignof
8071         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8072         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8073
8074 2011-10-27  Bruno Haible  <bruno@clisp.org>
8075
8076         raise test: Avoid a test failure on Linux/MIPS.
8077         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8078         because 99 is a valid signal on Linux/MIPS.
8079
8080 2011-10-27  Bruno Haible  <bruno@clisp.org>
8081
8082         nonblocking tests: Fix test failure on Linux/MIPS.
8083         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8084         Set to 270000.
8085
8086 2011-10-27  Bruno Haible  <bruno@clisp.org>
8087
8088         utimensat: Work around problem on Linux/hppa.
8089         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8090         values.
8091         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8092
8093 2011-10-25  Jim Meyering  <meyering@redhat.com>
8094
8095         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8096         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8097         after symbols like NULL, size_t, etc.
8098         Reported by Alfred M. Szmidt.
8099
8100         maint.mk: exempt ENODATA from a syntax-check rule
8101         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8102         from the sc_prohibit_always-defined_macros syntax-check rule.
8103         Add a comment.  See this for more details:
8104         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8105
8106 2011-10-23  Jim Meyering  <meyering@redhat.com>
8107
8108         fts: close parent dir FD before returning from post-traversal fts_read
8109         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8110         unlink A, even though an FD open on A remained.  This is suboptimal
8111         (holding a file descriptor open longer than needed), but otherwise not
8112         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8113         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8114         that represents a real problem: it causes the removal of A to fail
8115         with e.g., "rm: cannot remove `A': Device or resource busy"
8116
8117         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8118         directory file descriptors.  After completing the final, FTS_DP,
8119         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8120         cache, but then proceeded to add a new FD to it via the subsequent
8121         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8122         final file descriptor would be closed only via fts_close's call to
8123         fd_ring_clear.  Now, it is usually closed earlier, via the final
8124         FTS_DP-returning fts_read call.
8125         * lib/fts.c (restore_initial_cwd): New function, converted from
8126         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8127         Update callers.
8128         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8129         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8130
8131 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8132             Bruno Haible  <bruno@clisp.org>
8133             Jim Meyering  <jim@meyering.net>
8134
8135         readme-release: improve safety of release prep instructions.
8136         * README-release: Don't git pull all branches when only master
8137         is needed for the release process.
8138         Run make maintainer-clean before changing trees and merging.
8139         Don't try to run ./configure right after git pull in case files
8140         that influence the bootstrap process have changed, move the
8141         ./configure step to after running ./bootstrap.
8142         Don't bootstrap "one last time"... it's the first time!
8143
8144 2011-10-22  Bruno Haible  <bruno@clisp.org>
8145
8146         errno, strerror-override: Support for MSVC 10.
8147         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8148         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8149         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8150         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8151         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8152         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8153         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8154         Assign values compatible with MSVC 10.
8155         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8156         New macros.
8157         (GNULIB_defined_EWINSOCK): New macro.
8158         * lib/strerror-override.c (strerror_override): Update accordingly.
8159         * lib/strerror-override.h: Likewise.
8160         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8161         longer equal to the corresponding errno value.
8162         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8163
8164 2011-10-22  Bruno Haible  <bruno@clisp.org>
8165
8166         perror: Recognize when test program crashes.
8167         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8168         strerror, set gl_cv_func_perror_works to no.
8169         Reported by Daniel Richard G. <skunk@iskunk.org>.
8170
8171         perror: Fix indentation.
8172         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8173
8174 2011-10-22  Bruno Haible  <bruno@clisp.org>
8175
8176         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8177         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8178         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8179         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8180         functions, not as a macro.
8181         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8182         macros.
8183         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8184         absence of macro.
8185         Suggested by Eric Blake.
8186         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8187
8188 2011-10-21  Bruno Haible  <bruno@clisp.org>
8189
8190         relocatable-prog-wrapper: Don't leave object files behind.
8191         * build-aux/install-reloc: Re-synchronize list of .o files to be
8192         removed with list of compilation units.
8193
8194 2011-10-20  Bruno Haible  <bruno@clisp.org>
8195
8196         openpty, posix_openpt: Remove code duplication.
8197         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8198         * lib/openpty.c: Include <stdlib.h>.
8199         (openpty): Use posix_openpt on all platforms except IRIX.
8200         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8201
8202 2011-10-20  Bruno Haible  <bruno@clisp.org>
8203
8204         unlockpt: Detect invalid argument.
8205         * lib/unlockpt.c: Include <fcntl.h>.
8206         (unlockpt): Check whether fd is valid, using fcntl().
8207         * modules/unlockpt (Depends-on): Add fcntl-h.
8208
8209 2011-10-20  Bruno Haible  <bruno@clisp.org>
8210
8211         openpty: Avoid compilation error on AIX 6.1.
8212         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8213
8214 2011-10-20  Bruno Haible  <bruno@clisp.org>
8215
8216         posix_openpt: Support for OpenBSD.
8217         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8218         (posix_openpt) [OpenBSD]: New code.
8219         * lib/grantpt.c: Include <fcntl.h>.
8220         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8221         * modules/grantpt (Depends-on): Add fcntl-h.
8222
8223 2011-10-20  Bruno Haible  <bruno@clisp.org>
8224
8225         posix_openpt test: Coding style.
8226         * tests/test-posix_openpt.c: Use GNU coding style.
8227
8228 2011-10-20  Bruno Haible  <bruno@clisp.org>
8229
8230         grantpt: Support --avoid=pt_chown.
8231         * modules/grantpt (Files): Add lib/pty-private.h.
8232
8233 2011-10-20  Bruno Haible  <bruno@clisp.org>
8234
8235         posix_openpt: Fix autoconf macro.
8236         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8237         unneeded check for _getpty.
8238
8239 2011-10-20  Bruno Haible  <bruno@clisp.org>
8240
8241         openpty: Update comments.
8242         * lib/openpty.c: Add comments about Minix.
8243
8244 2011-10-19  Eric Blake  <eblake@redhat.com>
8245
8246         openpty: relax license
8247         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8248
8249         pt_chown: use configmake to simplify build
8250         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8251
8252         ptsname and others: relax license
8253         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8254         * modules/unlockpt (License): Likewise.
8255         * modules/pt_chown (License): Likewise.
8256         * modules/ptsname (License): Likewise.
8257         * modules/ttyname_r (License): Likewise.
8258
8259 2011-10-19  Jim Meyering  <meyering@redhat.com>
8260
8261         posix_openpt: remove spurious #endif
8262         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8263
8264 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8265
8266         maint.mk: Respect $(build_aux) in web-manual rule.
8267         * top/maint.mk (web-manual): Find gen-announce script in user's
8268         $(build_aux) directory instead of hard-coding 'build-aux'.
8269
8270 2011-10-19  Bruno Haible  <bruno@clisp.org>
8271
8272         posix_openpt: Fix compilation error.
8273         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8274         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8275         Mention the openpty module as an alternative.
8276
8277 2011-10-19  Bruno Haible  <bruno@clisp.org>
8278
8279         Support for old NeXTstep 3.3 frexp().
8280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8281         execution time of the test to 5 seconds.
8282         Reported by Daniel Richard G. <skunk@iskunk.org>.
8283
8284 2011-10-19  Bruno Haible  <bruno@clisp.org>
8285
8286         Support for old NeXTstep 3.3 sed.
8287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8288         part, use /.../, not \|...|. Escape periods in the header file name.
8289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8290         Reported by Daniel Richard G. <skunk@iskunk.org>.
8291
8292 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8293
8294         Support for old NeXTstep 3.3 gcc.
8295         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8296         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8297         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8298         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8299         * lib/regex.h (_Restrict_arr_): Likewise.
8300         * lib/regex_internal.h (re_token_t): Likewise.
8301         * lib/regexec.c (check_node_accept_bytes): Likewise.
8302         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8303
8304 2011-10-18  Eric Blake  <eblake@redhat.com>
8305
8306         posix_openpt: new module
8307         * modules/posix_openpt: New module.
8308         * m4/posix_openpt.m4: New file.
8309         * lib/posix_openpt.c: Likewise.
8310         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8311         (gl_STDLIB_H_DEFAULTS): Set defaults.
8312         * modules/stdlib (Makefile.am): Substitute macros.
8313         * lib/stdlib.in.h (posix_openpt): Declare.
8314         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8315         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8316         * modules/posix_openpt-tests: New test module.
8317         * tests/test-posix_openpt.c: New test.
8318
8319 2011-10-15  Bruno Haible  <bruno@clisp.org>
8320
8321         xstrtoll: Fix compilation failure.
8322         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8323         from lib/strtol.c.
8324         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8325         some platforms.
8326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8327
8328 2011-10-15  Bruno Haible  <bruno@clisp.org>
8329
8330         vasnprintf: Optimize bit search operation.
8331         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8333         gl_DOUBLE_EXPONENT_LOCATION.
8334         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8335         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8336         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8337         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8338         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8339         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8340         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8341         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8342         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8343
8344 2011-10-15  Bruno Haible  <bruno@clisp.org>
8345
8346         vasnprintf: Fix comments.
8347         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8348
8349 2011-10-14  Bruno Haible  <bruno@clisp.org>
8350
8351         Tests for module 'integer_length_ll'.
8352         * modules/integer_length_ll-tests: New file.
8353         * tests/test-integer_length_ll.c: New file.
8354
8355         New module 'integer_length_ll'.
8356         * lib/integer_length_ll.c: New file.
8357         * modules/integer_length_ll: New file.
8358
8359 2011-10-14  Bruno Haible  <bruno@clisp.org>
8360
8361         Tests for module 'integer_length_l'.
8362         * modules/integer_length_l-tests: New file.
8363         * tests/test-integer_length_l.c: New file.
8364
8365         New module 'integer_length_l'.
8366         * lib/integer_length_l.c: New file.
8367         * modules/integer_length_l: New file.
8368
8369 2011-10-14  Bruno Haible  <bruno@clisp.org>
8370
8371         Tests for module 'integer_length'.
8372         * modules/integer_length-tests: New file.
8373         * tests/test-integer_length.c: New file.
8374
8375         New module 'integer_length'.
8376         * lib/integer_length.h: New file.
8377         * lib/integer_length.c: New file.
8378         * modules/integer_length: New file.
8379
8380 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8381
8382         popen: Fix dependency conditions.
8383         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8384
8385 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8386
8387         perror: Fix autoconf test.
8388         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8389         <stdlib.h> and <string.h>.
8390
8391 2011-10-14  Bruno Haible  <bruno@clisp.org>
8392
8393         ffsl: Optimize on 64-bit platforms.
8394         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8395         unrolling.
8396
8397 2011-10-13  Bruno Haible  <bruno@clisp.org>
8398
8399         ffsl: Optimize on 32-bit platforms.
8400         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8401         use ffs() without a loop.
8402
8403         ffsl, ffsll: Optimize for GCC.
8404         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8405         * lib/ffsl.c (GCC_BUILTIN): New macro.
8406         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8407
8408 2011-10-13  Bruno Haible  <bruno@clisp.org>
8409
8410         ffs, bcopy, memset: Support symbol renaming via config.h.
8411         * lib/ffs.c: Include <config.h>.
8412         * lib/bcopy.c: Likewise.
8413         * lib/memset.c: Likewise.
8414
8415 2011-10-10  Bruno Haible  <bruno@clisp.org>
8416
8417         atanl: Simplify for platforms where 'long double' == 'double'.
8418         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8419         alternative implementation.
8420         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8421         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8422         * modules/atanl (Depends-on): Add atan. Update conditions.
8423
8424 2011-10-10  Bruno Haible  <bruno@clisp.org>
8425
8426         acosl: Simplify for platforms where 'long double' == 'double'.
8427         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8428         alternative implementation.
8429         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8430         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8431         * modules/acosl (Depends-on): Add acos. Update conditions.
8432
8433 2011-10-10  Bruno Haible  <bruno@clisp.org>
8434
8435         asinl: Simplify for platforms where 'long double' == 'double'.
8436         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8437         alternative implementation.
8438         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8439         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8440         * modules/asinl (Depends-on): Add asin. Update conditions.
8441
8442 2011-10-10  Bruno Haible  <bruno@clisp.org>
8443
8444         tanl: Simplify for platforms where 'long double' == 'double'.
8445         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8446         implementation.
8447         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8448         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8449         * modules/tanl (Depends-on): Add tan. Update conditions.
8450         (configure.ac): Don't compile trigl.c if
8451         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8452
8453 2011-10-10  Bruno Haible  <bruno@clisp.org>
8454
8455         cosl: Simplify for platforms where 'long double' == 'double'.
8456         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8457         implementation.
8458         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8459         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8460         * modules/cosl (Depends-on): Add cos. Update conditions.
8461         (configure.ac): Don't compile sincosl.c and trigl.c if
8462         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8463
8464 2011-10-10  Bruno Haible  <bruno@clisp.org>
8465
8466         sinl: Simplify for platforms where 'long double' == 'double'.
8467         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8468         implementation.
8469         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8470         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8471         * modules/sinl (Depends-on): Add sin. Update conditions.
8472         (configure.ac): Don't compile sincosl.c and trigl.c if
8473         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8474
8475 2011-10-10  Bruno Haible  <bruno@clisp.org>
8476
8477         logl: Simplify for platforms where 'long double' == 'double'.
8478         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8479         implementation.
8480         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8481         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8482         * modules/logl (Depends-on): Add log. Update conditions.
8483
8484 2011-10-10  Bruno Haible  <bruno@clisp.org>
8485
8486         expl: Simplify for platforms where 'long double' == 'double'.
8487         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8488         implementation.
8489         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8490         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8491         * modules/expl (Depends-on): Add exp. Update conditions.
8492
8493 2011-10-10  Bruno Haible  <bruno@clisp.org>
8494
8495         sqrtl: Simplify for platforms where 'long double' == 'double'.
8496         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8497         alternative implementation.
8498         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8499         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8500         * modules/sqrtl (Depends-on): Update conditions.
8501
8502 2011-10-10  Bruno Haible  <bruno@clisp.org>
8503
8504         ldexpl: Simplify for platforms where 'long double' == 'double'.
8505         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8506         alternative implementation.
8507         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8508         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8509         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8510
8511 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8512
8513         ffsll: set correct witness
8514         * modules/ffsll (configure.ac): Fix typo.
8515
8516 2011-10-10  Bruno Haible  <bruno@clisp.org>
8517
8518         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8519         * lib/printf-frexpl.c: Include <config.h>.
8520         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8521         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8522         second time.
8523         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8524         gl_LONG_DOUBLE_VS_DOUBLE.
8525         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8526         conditions.
8527
8528 2011-10-10  Bruno Haible  <bruno@clisp.org>
8529
8530         frexpl: Simplify for platforms where 'long double' == 'double'.
8531         * lib/frexpl.c: Include <config.h>.
8532         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8533         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8534         time.
8535         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8536         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8537         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8538         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8539         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8540         conditions.
8541
8542 2011-10-10  Jim Meyering  <meyering@redhat.com>
8543
8544         test-renameat: don't leave behind a temporary file
8545         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8546           ERROR: files left in build directory after distclean:
8547           ./gltests/test-renameat.too
8548           make[1]: *** [distcleancheck] Error 1
8549         Reported by Tom G. Christensen.
8550
8551 2011-10-09  Bruno Haible  <bruno@clisp.org>
8552
8553         rint: Determine RINT_LIBM correctly on AIX 7.
8554         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8555         directly, not only through a function pointer. Also accept an optional
8556         4th argument with extra code.
8557         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8558         rintf() call by gcc when optimizing.
8559
8560         mathfunc.m4: Refactor.
8561         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8562         m4 variable.
8563
8564 2011-10-09  Bruno Haible  <bruno@clisp.org>
8565
8566         rintl: Simplify for platforms where 'long double' == 'double'.
8567         * lib/rintl.c: Include <config.h>.
8568         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8569         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8570         time.
8571         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8572         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8573         * modules/rintl (Depends-on): Add rint. Update conditions.
8574
8575 2011-10-09  Bruno Haible  <bruno@clisp.org>
8576
8577         roundl: Simplify for platforms where 'long double' == 'double'.
8578         * lib/roundl.c: Include <config.h>.
8579         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8580         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8581         time.
8582         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8583         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8584         * modules/roundl (Depends-on): Add round. Update conditions.
8585
8586 2011-10-09  Bruno Haible  <bruno@clisp.org>
8587
8588         truncl: Simplify for platforms where 'long double' == 'double'.
8589         * lib/truncl.c: Include <config.h>.
8590         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8591         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8592         time.
8593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8594         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8595         * modules/truncl (Depends-on): Add trunc. Update conditions.
8596
8597 2011-10-09  Bruno Haible  <bruno@clisp.org>
8598
8599         ceill: Simplify for platforms where 'long double' == 'double'.
8600         * lib/ceill.c: Include <config.h>.
8601         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8602         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8603         time.
8604         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8605         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8606         * modules/ceill (Depends-on): Add ceil. Update conditions.
8607
8608 2011-10-09  Bruno Haible  <bruno@clisp.org>
8609
8610         floorl: Simplify for platforms where 'long double' == 'double'.
8611         * lib/floorl.c: Include <config.h>.
8612         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8613         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8614         time.
8615         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8616         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8617         * modules/floorl (Depends-on): Add floor. Update conditions.
8618
8619 2011-10-09  Bruno Haible  <bruno@clisp.org>
8620
8621         rint: Fix ordering constraints.
8622         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8623         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8624         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8625
8626 2011-10-09  Bruno Haible  <bruno@clisp.org>
8627
8628         copysignl: Simplify for platforms where 'long double' == 'double'.
8629         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8630         alternative.
8631         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8632         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8633         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8634
8635 2011-10-09  Bruno Haible  <bruno@clisp.org>
8636
8637         Tests for module 'rintl'.
8638         * modules/rintl-tests: New file.
8639         * tests/test-rintl.c: New file.
8640
8641         New module 'rintl'.
8642         * lib/math.in.h (rintl): New declaration.
8643         * lib/rintl.c: New file.
8644         * m4/rintl.m4: New file.
8645         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8647         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8648         * modules/rintl: New file.
8649         * tests/test-math-c++.cc: Check the declaration of rintl.
8650         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8651         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8652         * doc/posix-functions/rintl.texi: Mention the new module.
8653
8654 2011-10-09  Bruno Haible  <bruno@clisp.org>
8655
8656         Tests for module 'rintf'.
8657         * modules/rintf-tests: New file.
8658         * tests/test-rintf.c: New file.
8659
8660         New module 'rintf'.
8661         * lib/math.in.h (rintf): New declaration.
8662         * lib/rintf.c: New file.
8663         * m4/rintf.m4: New file.
8664         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8666         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8667         * modules/rintf: New file.
8668         * tests/test-math-c++.cc: Check the declaration of rintf.
8669         * doc/posix-functions/rintf.texi: Mention the new module.
8670
8671 2011-10-09  Bruno Haible  <bruno@clisp.org>
8672
8673         rint: Support for MSVC.
8674         * lib/math.in.h (rint): New declaration.
8675         * lib/rint.c: New file.
8676         * m4/rint.m4: New file.
8677         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8679         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8680         * modules/rint (Description): Fix.
8681         (Files): Add lib/rint.c, m4/rint.m4.
8682         (Depends-on): Add math.
8683         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8684         gl_MATH_MODULE_INDICATOR.
8685         * tests/test-math-c++.cc: Check the declaration of rint.
8686         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8687         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8688         * doc/posix-functions/rint.texi: Mention the replacement provided by
8689         the module.
8690
8691         rint tests: More tests.
8692         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8693         minus-zero.h, infinity.h, nan.h.
8694         (main): Skip the test if the current rounding mode is not standard. Add
8695         tests for negative numbers, minus zero, infinity, NaN.
8696         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8697         tests/nan.h.
8698         (Depends-on): Add isnand-nolibm.
8699
8700 2011-10-09  Bruno Haible  <bruno@clisp.org>
8701
8702         Tests for module 'copysignl'.
8703         * modules/copysignl-tests: New file.
8704         * tests/test-copysignl.c: New file.
8705
8706         New module 'copysignl'.
8707         * lib/math.in.h (copysignl): New declaration.
8708         * lib/copysignl.c: New file.
8709         * m4/copysignl.m4: New file.
8710         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8712         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8713         HAVE_COPYSIGNL.
8714         * modules/copysignl: New file.
8715         * tests/test-math-c++.cc: Check the declaration of copysignl.
8716         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8717         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8718         * doc/posix-functions/copysignl.texi: Mention the new module.
8719
8720 2011-10-09  Bruno Haible  <bruno@clisp.org>
8721
8722         Tests for module 'copysignf'.
8723         * modules/copysignf-tests: New file.
8724         * tests/test-copysignf.c: New file.
8725
8726         New module 'copysignf'.
8727         * lib/math.in.h (copysignf): New declaration.
8728         * lib/copysignf.c: New file.
8729         * m4/copysignf.m4: New file.
8730         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8732         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8733         HAVE_COPYSIGNF.
8734         * modules/copysignf: New file.
8735         * tests/test-math-c++.cc: Check the declaration of copysignf.
8736         * doc/posix-functions/copysignf.texi: Mention the new module.
8737
8738 2011-10-09  Bruno Haible  <bruno@clisp.org>
8739
8740         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8741         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8742         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8743         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8744         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8745         gl_SIGNAL_H_DEFAULTS.
8746
8747 2011-10-09  Bruno Haible  <bruno@clisp.org>
8748
8749         poll: Make macro safer.
8750         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8751         ac_cv_header_poll_h is not set.
8752
8753 2011-10-09  Bruno Haible  <bruno@clisp.org>
8754
8755         copysign: Provide replacement.
8756         * lib/math.in.h (copysign): New declaration.
8757         * lib/copysign.c: New file.
8758         * m4/copysign.m4: New file.
8759         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8761         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8762         HAVE_COPYSIGN.
8763         * modules/copysign (Description): Clarify.
8764         (Files): Add lib/copysign.c, m4/copysign.m4.
8765         (Depends-on): Add math, signbit.
8766         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8767         gl_MATH_MODULE_INDICATOR.
8768         * tests/test-math-c++.cc: Check the declaration of copysign.
8769         * doc/posix-functions/copysign.texi: Mention the effects of the module
8770         on Minix and MSVC.
8771
8772 2011-10-09  Bruno Haible  <bruno@clisp.org>
8773
8774         isinf: Ensure macro on AIX 5.1.
8775         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8776         macro.
8777         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8778
8779 2011-10-09  Bruno Haible  <bruno@clisp.org>
8780
8781         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8782         * modules/snprintf-posix-tests (configure.ac): Require
8783         gl_LONG_DOUBLE_VS_DOUBLE.
8784         * modules/sprintf-posix-tests (configure.ac): Likewise.
8785         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8786         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8787         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8788         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8789         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8790         tests on platforms where 'long double' is the same as 'double'.
8791         * tests/test-sprintf-posix.h (test_function): Likewise.
8792         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8793         * tests/test-vasprintf-posix.c (test_function): Likewise.
8794
8795         *printf: Fix for platforms where 'long double' == 'double'.
8796         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8797         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8798         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8799         * modules/fprintf-posix (Files): Likewise.
8800         * modules/obstack-printf-posix (Files): Likewise.
8801         * modules/snprintf-posix (Files): Likewise.
8802         * modules/sprintf-posix (Files): Likewise.
8803         * modules/vasnprintf (Files): Likewise.
8804         * modules/vasnprintf-posix (Files): Likewise.
8805         * modules/vasprintf-posix (Files): Likewise.
8806         * modules/vdprintf-posix (Files): Likewise.
8807         * modules/vfprintf-posix (Files): Likewise.
8808         * modules/vsnprintf-posix (Files): Likewise.
8809         * modules/vsprintf-posix (Files): Likewise.
8810         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8811         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8812         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8813         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8814         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8815         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8816         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8817
8818         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8819         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8820         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8821         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8822         'long double'.
8823         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8824
8825         isinf: Fix for platforms where 'long double' == 'double'.
8826         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8827         Don't blindly assume 80-bit 'long double'.
8828
8829         isfinite: Fix for platforms where 'long double' == 'double'.
8830         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8831         Don't blindly assume 80-bit 'long double'.
8832
8833         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8834         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8835         * modules/isfinite-tests (configure.ac): Require
8836         gl_LONG_DOUBLE_VS_DOUBLE.
8837         * modules/isinf-tests (configure.ac): Likewise.
8838         * modules/isnan-tests (configure.ac): Likewise.
8839         * modules/isnanl-tests (configure.ac): Likewise.
8840         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8841         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8842         tests on platforms where 'long double' is the same as 'double'.
8843         * tests/test-isinf.c (test_isinfl): Likewise.
8844         * tests/test-isnan.c (test_long_double): Likewise.
8845         * tests/test-isnanl.h (main): Likewise.
8846
8847 2011-10-08  Bruno Haible  <bruno@clisp.org>
8848
8849         Tests for module 'tanhf'.
8850         * modules/tanhf-tests: New file.
8851         * tests/test-tanhf.c: New file.
8852
8853         New module 'tanhf'.
8854         * lib/math.in.h (tanhf): New declaration.
8855         * lib/tanhf.c: New file.
8856         * m4/tanhf.m4: New file.
8857         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8859         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8860         * modules/tanhf: New file.
8861         * tests/test-math-c++.cc: Check the declaration of tanhf.
8862         * doc/posix-functions/tanhf.texi: Mention the new module.
8863
8864         tanh: Use a .m4 file.
8865         * m4/tanh.m4: New file.
8866         * modules/tanh (Files): Add it.
8867         (configure.ac): Just invoke gl_FUNC_TANH.
8868
8869 2011-10-08  Bruno Haible  <bruno@clisp.org>
8870
8871         Tests for module 'coshf'.
8872         * modules/coshf-tests: New file.
8873         * tests/test-coshf.c: New file.
8874
8875         New module 'coshf'.
8876         * lib/math.in.h (coshf): New declaration.
8877         * lib/coshf.c: New file.
8878         * m4/coshf.m4: New file.
8879         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8881         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8882         * modules/coshf: New file.
8883         * tests/test-math-c++.cc: Check the declaration of coshf.
8884         * doc/posix-functions/coshf.texi: Mention the new module.
8885
8886         cosh: Use a .m4 file.
8887         * m4/cosh.m4: New file.
8888         * modules/cosh (Files): Add it.
8889         (configure.ac): Just invoke gl_FUNC_COSH.
8890
8891 2011-10-08  Bruno Haible  <bruno@clisp.org>
8892
8893         Tests for module 'sinhf'.
8894         * modules/sinhf-tests: New file.
8895         * tests/test-sinhf.c: New file.
8896
8897         New module 'sinhf'.
8898         * lib/math.in.h (sinhf): New declaration.
8899         * lib/sinhf.c: New file.
8900         * m4/sinhf.m4: New file.
8901         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8903         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8904         * modules/sinhf: New file.
8905         * tests/test-math-c++.cc: Check the declaration of sinhf.
8906         * doc/posix-functions/sinhf.texi: Mention the new module.
8907
8908         sinh: Use a .m4 file.
8909         * m4/sinh.m4: New file.
8910         * modules/sinh (Files): Add it.
8911         (configure.ac): Just invoke gl_FUNC_SINH.
8912
8913 2011-10-08  Bruno Haible  <bruno@clisp.org>
8914
8915         Tests for module 'atan2f'.
8916         * modules/atan2f-tests: New file.
8917         * tests/test-atan2f.c: New file.
8918
8919         New module 'atan2f'.
8920         * lib/math.in.h (atan2f): New declaration.
8921         * lib/atan2f.c: New file.
8922         * m4/atan2f.m4: New file.
8923         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8925         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8926         * modules/atan2f: New file.
8927         * tests/test-math-c++.cc: Check the declaration of atan2f.
8928         * doc/posix-functions/atan2f.texi: Mention the new module.
8929
8930         atan2: Use a .m4 file.
8931         * m4/atan2.m4: New file.
8932         * modules/atan2 (Files): Add it.
8933         (configure.ac): Just invoke gl_FUNC_ATAN2.
8934
8935 2011-10-08  Bruno Haible  <bruno@clisp.org>
8936
8937         Tests for module 'atanf'.
8938         * modules/atanf-tests: New file.
8939         * tests/test-atanf.c: New file.
8940
8941         New module 'atanf'.
8942         * lib/math.in.h (atanf): New declaration.
8943         * lib/atanf.c: New file.
8944         * m4/atanf.m4: New file.
8945         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8947         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8948         * modules/atanf: New file.
8949         * tests/test-math-c++.cc: Check the declaration of atanf.
8950         * doc/posix-functions/atanf.texi: Mention the new module.
8951
8952         atan: Use a .m4 file.
8953         * m4/atan.m4: New file.
8954         * modules/atan (Files): Add it.
8955         (configure.ac): Just invoke gl_FUNC_ATAN.
8956
8957 2011-10-08  Bruno Haible  <bruno@clisp.org>
8958
8959         Tests for module 'acosf'.
8960         * modules/acosf-tests: New file.
8961         * tests/test-acosf.c: New file.
8962
8963         New module 'acosf'.
8964         * lib/math.in.h (acosf): New declaration.
8965         * lib/acosf.c: New file.
8966         * m4/acosf.m4: New file.
8967         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8969         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8970         * modules/acosf: New file.
8971         * tests/test-math-c++.cc: Check the declaration of acosf.
8972         * doc/posix-functions/acosf.texi: Mention the new module.
8973
8974         acos: Use a .m4 file.
8975         * m4/acos.m4: New file.
8976         * modules/acos (Files): Add it.
8977         (configure.ac): Just invoke gl_FUNC_ACOS.
8978
8979 2011-10-08  Bruno Haible  <bruno@clisp.org>
8980
8981         Tests for module 'asinf'.
8982         * modules/asinf-tests: New file.
8983         * tests/test-asinf.c: New file.
8984
8985         New module 'asinf'.
8986         * lib/math.in.h (asinf): New declaration.
8987         * lib/asinf.c: New file.
8988         * m4/asinf.m4: New file.
8989         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8991         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8992         * modules/asinf: New file.
8993         * tests/test-math-c++.cc: Check the declaration of asinf.
8994         * doc/posix-functions/asinf.texi: Mention the new module.
8995
8996         asin: Use a .m4 file.
8997         * m4/asin.m4: New file.
8998         * modules/asin (Files): Add it.
8999         (configure.ac): Just invoke gl_FUNC_ASIN.
9000
9001 2011-10-08  Bruno Haible  <bruno@clisp.org>
9002
9003         Tests for module 'tanf'.
9004         * modules/tanf-tests: New file.
9005         * tests/test-tanf.c: New file.
9006
9007         New module 'tanf'.
9008         * lib/math.in.h (tanf): New declaration.
9009         * lib/tanf.c: New file.
9010         * m4/tanf.m4: New file.
9011         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9013         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9014         * modules/tanf: New file.
9015         * tests/test-math-c++.cc: Check the declaration of tanf.
9016         * doc/posix-functions/tanf.texi: Mention the new module.
9017
9018         tan: Use a .m4 file.
9019         * m4/tan.m4: New file.
9020         * modules/tan (Files): Add it.
9021         (configure.ac): Just invoke gl_FUNC_TAN.
9022
9023 2011-10-08  Bruno Haible  <bruno@clisp.org>
9024
9025         Tests for module 'cosf'.
9026         * modules/cosf-tests: New file.
9027         * tests/test-cosf.c: New file.
9028
9029         New module 'cosf'.
9030         * lib/math.in.h (cosf): New declaration.
9031         * lib/cosf.c: New file.
9032         * m4/cosf.m4: New file.
9033         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9035         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9036         * modules/cosf: New file.
9037         * tests/test-math-c++.cc: Check the declaration of cosf.
9038         * doc/posix-functions/cosf.texi: Mention the new module.
9039
9040         cos: Use a .m4 file.
9041         * m4/cos.m4: New file.
9042         * modules/cos (Files): Add it.
9043         (configure.ac): Just invoke gl_FUNC_COS.
9044
9045 2011-10-08  Bruno Haible  <bruno@clisp.org>
9046
9047         Tests for module 'sinf'.
9048         * modules/sinf-tests: New file.
9049         * tests/test-sinf.c: New file.
9050
9051         New module 'sinf'.
9052         * lib/math.in.h (sinf): New declaration.
9053         * lib/sinf.c: New file.
9054         * m4/sinf.m4: New file.
9055         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9057         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9058         * modules/sinf: New file.
9059         * tests/test-math-c++.cc: Check the declaration of sinf.
9060         * doc/posix-functions/sinf.texi: Mention the new module.
9061
9062         sin: Use a .m4 file.
9063         * m4/sin.m4: New file.
9064         * modules/sin (Files): Add it.
9065         (configure.ac): Just invoke gl_FUNC_SIN.
9066
9067 2011-10-08  Bruno Haible  <bruno@clisp.org>
9068
9069         Tests for module 'powf'.
9070         * modules/powf-tests: New file.
9071         * tests/test-powf.c: New file.
9072
9073         New module 'powf'.
9074         * lib/math.in.h (powf): New declaration.
9075         * lib/powf.c: New file.
9076         * m4/powf.m4: New file.
9077         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9079         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9080         * modules/powf: New file.
9081         * tests/test-math-c++.cc: Check the declaration of powf.
9082         * doc/posix-functions/powf.texi: Mention the new module.
9083
9084         pow: Use a .m4 file.
9085         * m4/pow.m4: New file.
9086         * modules/pow (Files): Add it.
9087         (configure.ac): Just invoke gl_FUNC_POW.
9088
9089 2011-10-08  Bruno Haible  <bruno@clisp.org>
9090
9091         Tests for module 'log10f'.
9092         * modules/log10f-tests: New file.
9093         * tests/test-log10f.c: New file.
9094
9095         New module 'log10f'.
9096         * lib/math.in.h (log10f): New declaration.
9097         * lib/log10f.c: New file.
9098         * m4/log10f.m4: New file.
9099         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9101         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9102         * modules/log10f: New file.
9103         * tests/test-math-c++.cc: Check the declaration of log10f.
9104         * doc/posix-functions/log10f.texi: Mention the new module.
9105
9106         log10: Use a .m4 file.
9107         * m4/log10.m4: New file.
9108         * modules/log10 (Files): Add it.
9109         (configure.ac): Just invoke gl_FUNC_LOG10.
9110
9111 2011-10-08  Bruno Haible  <bruno@clisp.org>
9112
9113         Tests for module 'logf'.
9114         * modules/logf-tests: New file.
9115         * tests/test-logf.c: New file.
9116
9117         New module 'logf'.
9118         * lib/math.in.h (logf): New declaration.
9119         * lib/logf.c: New file.
9120         * m4/logf.m4: New file.
9121         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9123         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9124         * modules/logf: New file.
9125         * tests/test-math-c++.cc: Check the declaration of logf.
9126         * doc/posix-functions/logf.texi: Mention the new module.
9127
9128         log: Use a .m4 file.
9129         * m4/log.m4: New file.
9130         * modules/log (Files): Add it.
9131         (configure.ac): Just invoke gl_FUNC_LOG.
9132
9133 2011-10-08  Bruno Haible  <bruno@clisp.org>
9134
9135         Tests for module 'expf'.
9136         * modules/expf-tests: New file.
9137         * tests/test-expf.c: New file.
9138
9139         New module 'expf'.
9140         * lib/math.in.h (expf): New declaration.
9141         * lib/expf.c: New file.
9142         * m4/expf.m4: New file.
9143         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9145         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9146         * modules/expf: New file.
9147         * tests/test-math-c++.cc: Check the declaration of expf.
9148         * doc/posix-functions/expf.texi: Mention the new module.
9149
9150         exp: Use a .m4 file.
9151         * m4/exp.m4: New file.
9152         * modules/exp (Files): Add it.
9153         (configure.ac): Just invoke gl_FUNC_EXP.
9154
9155 2011-10-08  Bruno Haible  <bruno@clisp.org>
9156
9157         Tests for module 'sqrtf'.
9158         * modules/sqrtf-tests: New file.
9159         * tests/test-sqrtf.c: New file.
9160
9161         New module 'sqrtf'.
9162         * lib/math.in.h (sqrtf): New declaration.
9163         * lib/sqrtf.c: New file.
9164         * m4/sqrtf.m4: New file.
9165         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9167         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9168         * modules/sqrtf: New file.
9169         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9170         * doc/posix-functions/sqrtf.texi: Mention the new module.
9171
9172 2011-10-08  Bruno Haible  <bruno@clisp.org>
9173
9174         Tests: Avoid link failures w.r.t. libintl.
9175         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9176         $(LIBINTL).
9177         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9178         $(LIBINTL).
9179         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9180         against $(LIBINTL).
9181         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9182         $(LIBINTL).
9183         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9184         $(LIBINTL).
9185         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9186
9187 2011-10-08  Bruno Haible  <bruno@clisp.org>
9188
9189         pow tests: Defeat compiler optimizations.
9190         * tests/test-pow.c (main): Assign arguments to x and y before use.
9191
9192 2011-10-08  Bruno Haible  <bruno@clisp.org>
9193
9194         gnulib-tool: Improve last commit.
9195         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9196         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9197         ignore dependencies that are not among the modules list.
9198
9199 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9200
9201         gnulib-tool: don't follow dependencies to avoided modules
9202         This fixes a bug that is related to the previous one.
9203         * gnulib-tool (func_modules_transitive_closure)
9204         (func_emit_autoconf_snippets):
9205         Check whether a dependency is acceptable before using it.
9206         (--extract-dependencies): Report an error if --avoid is also used,
9207         since this combination of options is not yet supported.
9208
9209         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9210         Problem reported by Peter Dyballa in
9211         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9212         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9213         when echoing "$condition".
9214
9215 2011-10-07  Bruno Haible  <bruno@clisp.org>
9216
9217         Fix documentation about math functions on MacOS X.
9218         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9219         MacOS X 10.5.
9220         * doc/posix-functions/fdim.texi: Likewise.
9221         * doc/posix-functions/feclearexcept.texi: Likewise.
9222         * doc/posix-functions/fegetenv.texi: Likewise.
9223         * doc/posix-functions/fegetround.texi: Likewise.
9224         * doc/posix-functions/feholdexcept.texi: Likewise.
9225         * doc/posix-functions/feraiseexcept.texi: Likewise.
9226         * doc/posix-functions/fesetenv.texi: Likewise.
9227         * doc/posix-functions/fesetround.texi: Likewise.
9228         * doc/posix-functions/fetestexcept.texi: Likewise.
9229         * doc/posix-functions/feupdateenv.texi: Likewise.
9230         * doc/posix-functions/fmax.texi: Likewise.
9231         * doc/posix-functions/fmin.texi: Likewise.
9232         * doc/posix-functions/log2.texi: Likewise.
9233         * doc/posix-functions/modff.texi: Likewise.
9234         * doc/posix-functions/nan.texi: Likewise.
9235         * doc/posix-functions/nanf.texi: Likewise.
9236         * doc/posix-functions/nextafterf.texi: Likewise.
9237         * doc/posix-functions/remquo.texi: Likewise.
9238
9239 2011-10-07  Bruno Haible  <bruno@clisp.org>
9240
9241         modff: Drop assumption about library that defines modff.
9242         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9243         AC_CHECK_FUNCS.
9244         * modules/modff (Files): Add m4/mathfunc.m4.
9245
9246 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9247
9248         raise tests: Avoid a GCC warning.
9249         * tests/test-raise.c (handler): Use _Noreturn.
9250
9251 2011-10-07  Bruno Haible  <bruno@clisp.org>
9252
9253         Tests for module 'ldexpf'.
9254         * modules/ldexpf-tests: New file.
9255         * tests/test-ldexpf.c: New file.
9256
9257         New module 'ldexpf'.
9258         * lib/math.in.h (ldexpf): New declaration.
9259         * lib/ldexpf.c: New file.
9260         * m4/ldexpf.m4: New file.
9261         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9263         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9264         * modules/ldexpf: New file.
9265         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9266         * doc/posix-functions/ldexpf.texi: Mention the new module.
9267
9268 2011-10-06  Bruno Haible  <bruno@clisp.org>
9269
9270         frexpf: Work around problems on IRIX and mingw.
9271         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9273         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9274         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9275         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9276         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9277         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9278
9279 2011-10-06  Bruno Haible  <bruno@clisp.org>
9280
9281         fabsf: Drop assumption about library that defines fabsf.
9282         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9283         AC_CHECK_FUNCS.
9284         * modules/fabsf (Files): Add m4/mathfunc.m4.
9285
9286 2011-10-06  Bruno Haible  <bruno@clisp.org>
9287
9288         frexpf: Drop assumption about library that defines frexpf.
9289         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9290         'int *', 'float *', 'long double *', 'float', 'long double'.
9291         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9292         AC_CHECK_FUNCS.
9293         * modules/frexpf (Files): Add m4/mathfunc.m4.
9294
9295         Tests for module 'frexpf'.
9296         * modules/frexpf-tests: New file.
9297         * tests/test-frexpf.c: New file.
9298
9299         New module 'frexpf'.
9300         * lib/math.in.h (frexpf): New declaration.
9301         * lib/frexpf.c: New file.
9302         * m4/frexpf.m4: New file.
9303         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9305         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9306         * modules/frexpf: New file.
9307         * tests/test-math-c++.cc: Check the declaration of frexpf.
9308         * doc/posix-functions/frexpf.texi: Mention the new module.
9309
9310 2011-10-06  Bruno Haible  <bruno@clisp.org>
9311
9312         math: Sort function declarations of math.in.h.
9313         * lib/math.in.h (frexp, logb): Move declarations.
9314
9315 2011-10-05  Bruno Haible  <bruno@clisp.org>
9316
9317         Tests for module 'modff'.
9318         * modules/modff-tests: New file.
9319         * tests/test-modff.c: New file.
9320
9321         New module 'modff'.
9322         * lib/math.in.h (modff): New declaration.
9323         * lib/modff.c: New file.
9324         * m4/modff.m4: New file.
9325         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9327         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9328         * modules/modff: New file.
9329         * tests/test-math-c++.cc: Check the declaration of modff.
9330         * doc/posix-functions/modff.texi: Mention the new module.
9331
9332         modf tests: Make test sharper.
9333         * tests/test-modf.c (main): Strengthen upper bound.
9334
9335         modf: Use a .m4 file.
9336         * m4/modf.m4: New file.
9337         * modules/modf (Files): Add it.
9338         (configure.ac): Just invoke gl_FUNC_MODF.
9339
9340 2011-10-05  Bruno Haible  <bruno@clisp.org>
9341
9342         Tests for module 'fmodf'.
9343         * modules/fmodf-tests: New file.
9344         * tests/test-fmodf.c: New file.
9345
9346         New module 'fmodf'.
9347         * lib/math.in.h (fmodf): New declaration.
9348         * lib/fmodf.c: New file.
9349         * m4/fmodf.m4: New file.
9350         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9352         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9353         * modules/fmodf: New file.
9354         * tests/test-math-c++.cc: Check the declaration of fmodf.
9355         * doc/posix-functions/fmodf.texi: Mention the new module.
9356
9357         fmod: Use a .m4 file.
9358         * m4/fmod.m4: New file.
9359         * modules/fmod (Files): Add it.
9360         (configure.ac): Just invoke gl_FUNC_FMOD.
9361
9362 2011-10-05  Bruno Haible  <bruno@clisp.org>
9363
9364         Tests for module 'fabsf'.
9365         * modules/fabsf-tests: New file.
9366         * tests/test-fabsf.c: New file.
9367
9368         New module 'fabsf'.
9369         * lib/math.in.h (fabsf): New declaration.
9370         * lib/fabsf.c: New file.
9371         * m4/fabsf.m4: New file.
9372         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9374         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9375         * modules/fabsf: New file.
9376         * tests/test-math-c++.cc: Check the declaration of fabsf.
9377         * doc/posix-functions/fabsf.texi: Mention the new module.
9378
9379         fabs: Use a .m4 file.
9380         * m4/fabs.m4: New file.
9381         * modules/fabs (Files): Add it.
9382         (configure.ac): Just invoke gl_FUNC_FABS.
9383
9384 2011-10-05  Jim Meyering  <meyering@redhat.com>
9385
9386         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9387         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9388         ls -lL regression introduced in coreutils-8.12, it does so at the
9389         cost of an additional stat call in the common case.  Besides, now
9390         that the kernel change that prompted commit 95f7c57f has been reverted
9391         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9392         we have no use for commit 95f7c57f, "file-has-acl: use
9393         acl_extended_file_nofollow if available".
9394
9395 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9396
9397         file-has-acl: revert unintended change in behavior of ls -L
9398         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9399         derived from...
9400         (file_has_acl): ...code here.  Call it.
9401         This problem was introduced with 2011-07-22 commit 95f7c57f,
9402         "file-has-acl: use acl_extended_file_nofollow if available".
9403         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9404
9405 2011-10-03  Bruno Haible  <bruno@clisp.org>
9406
9407         poll: Avoid link errors on MSVC.
9408         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9409         * modules/poll (Depends-on): Add sockets.
9410         (Link): New section.
9411         * NEWS: Mention the change.
9412         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9413         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9414         $(LIB_POLL) instead of $(LIBSOCKET).
9415
9416 2011-10-03  Bruno Haible  <bruno@clisp.org>
9417
9418         sys_select tests: Fix link error on MSVC 9.
9419         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9420         with $(LIB_SELECT) instead of $(LIBSOCKET).
9421
9422 2011-10-03  Bruno Haible  <bruno@clisp.org>
9423
9424         sys_select: Fix compilation error on mingw.
9425         * lib/sys_select.in.h: On native Windows, include <io.h>.
9426
9427 2011-10-03  Bruno Haible  <bruno@clisp.org>
9428
9429         wmemset: Support for MSVC.
9430         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9431         whether wmemset() exists.
9432
9433 2011-10-03  Bruno Haible  <bruno@clisp.org>
9434
9435         wmemmove: Support for MSVC.
9436         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9437         whether wmemmove() exists.
9438
9439 2011-10-03  Bruno Haible  <bruno@clisp.org>
9440
9441         wmemcpy: Support for MSVC.
9442         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9443         whether wmemcpy() exists.
9444
9445 2011-10-03  Bruno Haible  <bruno@clisp.org>
9446
9447         wmemcmp: Support for MSVC.
9448         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9449         whether wmemcmp() exists.
9450
9451 2011-10-03  Bruno Haible  <bruno@clisp.org>
9452
9453         wmemchr: Support for MSVC.
9454         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9455         whether wmemchr() exists.
9456
9457 2011-10-03  Bruno Haible  <bruno@clisp.org>
9458
9459         glthread/*, strsignal: Support for MSVC.
9460         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9461         including <winsock.h> on MSVC 9.
9462         * lib/glthread/lock.h: Likewise.
9463         * lib/glthread/thread.h: Likewise.
9464         * lib/glthread/tls.h: Likewise.
9465         * lib/glthread/yield.h: Likewise.
9466         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9467         if HAVE_UNISTD_H is false.
9468         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9469
9470 2011-10-03  Bruno Haible  <bruno@clisp.org>
9471
9472         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9473         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9474         Set to 100000.
9475
9476 2011-10-03  Bruno Haible  <bruno@clisp.org>
9477
9478         acl: Fix specification.
9479         * lib/file-has-acl.c (file_has_acl): Fix specification.
9480
9481 2011-10-03  Bruno Haible  <bruno@clisp.org>
9482
9483         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9484         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9485         (compute_curr_prefix, shared_library_fullname,
9486         find_shared_library_fullname, get_shared_library_fullname, relocate):
9487         Use it together with PIC && INSTALLDIR.
9488         Reported by <jojelino@gmail.com>
9489         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9490
9491 2011-10-01  Jim Meyering  <meyering@redhat.com>
9492
9493         maint.mk: adjust a release-related rule not to require use of gzip
9494         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9495         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9496         projects that build only .tar.xz files.  Also fix an erroneous test.
9497
9498         test-linkat: don't leave behind a temporary file
9499         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9500         Otherwise, coreutils' "make distcheck" would fail with this:
9501           Only in /c/cu/tests/torture/coreutils/test/\
9502             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9503           make[2]: *** [my-distcheck] Error 1
9504
9505         float, math: add omitted file
9506         * lib/itold.c: Add file, required for yesterday's float change.
9507
9508 2011-10-01  Bruno Haible  <bruno@clisp.org>
9509
9510         isinf: Fix for OpenBSD/x86.
9511         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9512         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9513         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9514
9515 2011-10-01  Bruno Haible  <bruno@clisp.org>
9516
9517         isfinite: Fix syntax error in configure test.
9518         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9519
9520         isfinite: Fix typo.
9521         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9522         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9523
9524 2011-10-01  Bruno Haible  <bruno@clisp.org>
9525
9526         nonblocking tests: Fix test failure on Linux/IA-64.
9527         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9528         Set to 270000.
9529
9530 2011-10-01  Bruno Haible  <bruno@clisp.org>
9531
9532         mkfifoat tests: Fix a test failure on mingw.
9533         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9534         with error ENOSYS.
9535
9536 2011-09-30  Bruno Haible  <bruno@clisp.org>
9537
9538         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9539         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9540         'long double'. Set REPLACE_ITOLD.
9541         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9542         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9543         * lib/itold.c: New file.
9544         * modules/float (Files): Add lib/itold.c.
9545         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9546         (Makefile.am): Substitute REPLACE_ITOLD.
9547         * modules/math (Depends-on): Add float.
9548         (Makefile.am): Substitute REPLACE_ITOLD.
9549         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9550         * doc/posix-headers/math.texi: Likewise.
9551         * doc/posix-functions/logl.texi: Likewise.
9552
9553 2011-09-30  Bruno Haible  <bruno@clisp.org>
9554
9555         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9556         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9557         Set to 140000.
9558
9559 2011-09-30  Bruno Haible  <bruno@clisp.org>
9560
9561         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9562         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9563         invocation, say "right after AC_PROG_CC_STDC", not "right after
9564         AC_PROG_CC".
9565         Reported by Gary V. Vaughan <gary@gnu.org>.
9566
9567 2011-09-30  Bruno Haible  <bruno@clisp.org>
9568
9569         Centralize C99 requirement.
9570         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9571         * modules/stdarg (configure.ac-early): Invoke it instead of
9572         AC_PROG_CC_STDC.
9573         Reported by Gary V. Vaughan and Paul Eggert.
9574
9575 2011-09-29  Bruno Haible  <bruno@clisp.org>
9576
9577         float: Fix LDBL_MAX value on Linux/PowerPC.
9578         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9579         on Linux/PowerPC.
9580         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9581         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9582         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9583         platform.
9584         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9585
9586 2011-09-29  Bruno Haible  <bruno@clisp.org>
9587
9588         doc: Improve doc about gl_EARLY.
9589         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9590         AC_PROG_CC_STDC invocation.
9591         Reported by Gary V. Vaughan <gary@gnu.org>.
9592
9593 2011-09-28  Bruno Haible  <bruno@clisp.org>
9594
9595         fgetc, fputc, fread, fwrite tests: Fix link error.
9596         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9597         on non-MSVC platforms.
9598         * tests/test-fputc.c (main): Likewise.
9599         * tests/test-fread.c (main): Likewise.
9600         * tests/test-fwrite.c (main): Likewise.
9601         Reported by Jim Meyering.
9602
9603 2011-09-27  Bruno Haible  <bruno@clisp.org>
9604
9605         fputc, fwrite tests: Avoid test failure on MSVC.
9606         * tests/test-fgetc.c: Include msvc-inval.h.
9607         (main): Invoke gl_msvc_inval_ensure_handler.
9608         * tests/test-fputc.c: Include msvc-inval.h.
9609         (main): Invoke gl_msvc_inval_ensure_handler.
9610         * tests/test-fread.c: Include msvc-inval.h.
9611         (main): Invoke gl_msvc_inval_ensure_handler.
9612         * tests/test-fwrite.c: Include msvc-inval.h.
9613         (main): Invoke gl_msvc_inval_ensure_handler.
9614         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9615         * modules/fputc-tests (Depends-on): Likewise.
9616         * modules/fread-tests (Depends-on): Likewise.
9617         * modules/fwrite-tests (Depends-on): Likewise.
9618
9619 2011-09-27  Bruno Haible  <bruno@clisp.org>
9620
9621         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9622         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9623         (raise): Remove older, duplicated declaration.
9624         (_gl_raise_SIGPIPE): New declaration.
9625         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9626         (rpl_raise): Remove function.
9627         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9628         a gnulib-defined SIGPIPE here.
9629         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9630         'sigprocmask' has detected missing signal-blocking and the module
9631         'sigpipe' is enabled.
9632         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9633
9634 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9635
9636         base64-tests: avoid memory leak
9637         * tests/test-base64.c (main): Plug memory leak.
9638
9639         base32: new module
9640         * modules/base32: New module.
9641         * lib/base32.c: New file.
9642         * lib/base32.h: Likewise.
9643         * m4/base32.m4: Likewise.
9644         * modules/base32-tests: New test.
9645         * tests/test-base32.c: Likewise.
9646         * MODULES.html.sh (Misc): Mention it.
9647
9648 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9649
9650         gnulib: use more-standard license notice wording
9651         * gnulib-tool (func_emit_copyright_notice): When emitting a
9652         license notice into a file, use the standard wording as suggested
9653         by the current information for GNU maintainers, except say "file"
9654         rather than "program".  The new wording gives a license version
9655         number, which addresses an issue raised by Glenn Morris in
9656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9657         * m4/onceonly.m4: Use that same wording here, too.
9658
9659         dup2: minor simplification
9660         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9661         as lib/dup2.c no longer uses 'inline'.
9662
9663 2011-09-25  Bruno Haible  <bruno@clisp.org>
9664
9665         strings: Fix compilation error on MSVC.
9666         * lib/strings.in.h: Include <stddef.h> for size_t.
9667
9668 2011-09-25  Bruno Haible  <bruno@clisp.org>
9669
9670         fflush et al.: Document limitation on MSVC.
9671         * doc/posix-functions/fflush.texi: Document possible crash in handling
9672         mode other than DEFAULT_HANDLING.
9673         * doc/posix-functions/fgetc.texi: Likewise.
9674         * doc/posix-functions/fputc.texi: Likewise.
9675         * doc/posix-functions/fread.texi: Likewise.
9676         * doc/posix-functions/fwrite.texi: Likewise.
9677
9678 2011-09-25  Bruno Haible  <bruno@clisp.org>
9679
9680         msvc-inval: Allow three invalid parameter handling modes.
9681         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9682         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9683         macros.
9684         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9685         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9686         SANE_LIBRARY_HANDLING as a no-op.
9687         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9688         <stdlib.h>.
9689         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9690
9691 2011-09-25  Bruno Haible  <bruno@clisp.org>
9692
9693         msvc-inval: Make handler multithread-safe.
9694         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9695         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9696         declarations.
9697         (gl_msvc_inval_current): New declaration.
9698         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9699         Operate on the structure returned by gl_msvc_inval_current().
9700         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9701         Remove varaiables.
9702         (tls_index, tls_initialized): New variables.
9703         (not_per_thread): New variable.
9704         (gl_msvc_inval_current): New function.
9705         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9706         returned by gl_msvc_inval_current().
9707
9708 2011-09-25  Bruno Haible  <bruno@clisp.org>
9709
9710         msvc-inval: Install handler globally.
9711         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9712         !_MSC_VER.
9713         (gl_msvc_invalid_parameter_handler): Remove declaration.
9714         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9715         declarations.
9716         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9717         Install the handler globally, don't uninstall it.
9718         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9719         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9720         currently valid, call RaiseException instead.
9721         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9722         for !_MSC_VER.
9723
9724 2011-09-25  Bruno Haible  <bruno@clisp.org>
9725
9726         strerror_r-posix: Fix for MSVC 9.
9727         * lib/strerror_r.c (local_snprintf): New function.
9728         (snprintf): Define to local_snprintf, not to _snprintf.
9729
9730 2011-09-25  Bruno Haible  <bruno@clisp.org>
9731
9732         ftruncate: Support for MSVC 9.
9733         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9734         (chsize_nothrow): New function.
9735         (chsize): Redefine as a macro.
9736         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9737         * modules/ftruncate (Depends-on): Add msvc-inval.
9738
9739 2011-09-25  Bruno Haible  <bruno@clisp.org>
9740
9741         New module 'fstat'.
9742         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9743         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9744         * lib/fchdir.c (rpl_fstat): Remove function.
9745         * m4/fstat.m4: New file.
9746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9748         declared.
9749         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9750         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9751         * modules/fstat: New file.
9752         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9753         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9754         is set.
9755         * doc/posix-functions/fstat.texi: Mention the new module and the
9756         problem on MSVC.
9757         * NEWS: Mention the change.
9758         * modules/acl (Depends-on): Add fstat.
9759         * modules/chdir-safer (Depends-on): Likewise.
9760         * modules/chown (Depends-on): Likewise.
9761         * modules/copy-file (Depends-on): Likewise.
9762         * modules/fchdir (Depends-on): Likewise.
9763         * modules/fdopendir (Depends-on): Likewise.
9764         * modules/fopen (Depends-on): Likewise.
9765         * modules/fts (Depends-on): Likewise.
9766         * modules/getcwd (Depends-on): Likewise.
9767         * modules/isapipe (Depends-on): Likewise.
9768         * modules/linkat (Depends-on): Likewise.
9769         * modules/lseek (Depends-on): Likewise.
9770         * modules/mkdir-p (Depends-on): Likewise.
9771         * modules/open (Depends-on): Likewise.
9772         * modules/openat (Depends-on): Likewise.
9773         * modules/read-file (Depends-on): Likewise.
9774         * modules/renameat (Depends-on): Likewise.
9775         * modules/utimens (Depends-on): Likewise.
9776
9777 2011-09-25  Bruno Haible  <bruno@clisp.org>
9778
9779         linkat: Fix compilation on MSVC 9.
9780         * lib/linkat.c: Don't include <stdint.h>.
9781
9782 2011-09-25  Bruno Haible  <bruno@clisp.org>
9783
9784         fclose: Support for MSVC 9.
9785         * lib/fclose.c: Include msvc-inval.h.
9786         (fclose_nothrow): New function.
9787         (rpl_fclose): Use it.
9788         * modules/fclose (Depends-on): Add msvc-inval.
9789         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9790
9791 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9792
9793         dup2: minor simplifications
9794         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9795         that it's a performance win.
9796         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9797         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9798
9799 2011-09-24  Jim Meyering  <meyering@redhat.com>
9800
9801         test-futimens: avoid a warning from gcc -Wshadow
9802         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9803         to avoid a shadowing warning.
9804
9805 2011-09-24  Bruno Haible  <bruno@clisp.org>
9806
9807         fdopen: Support for MSVC 9.
9808         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9809         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9810         * lib/fdopen.c: Include msvc-inval.h.
9811         (fdopen_nothrow): New function.
9812         (rpl_fdopen): Use it.
9813         * modules/fdopen (Depends-on): Add msvc-inval.
9814         * modules/fclose-tests (Depends-on): Add fdopen.
9815         * modules/fflush-tests (Depends-on): Likewise.
9816         * modules/fgetc-tests (Depends-on): Likewise.
9817         * modules/fputc-tests (Depends-on): Likewise.
9818         * modules/fread-tests (Depends-on): Likewise.
9819         * modules/freopen-tests (Depends-on): Likewise.
9820         * modules/fseeko-tests (Depends-on): Likewise.
9821         * modules/ftello-tests (Depends-on): Likewise.
9822         * modules/fwrite-tests  (Depends-on): Likewise.
9823         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9824
9825 2011-09-24  Bruno Haible  <bruno@clisp.org>
9826
9827         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9828         * modules/fgetc-tests (Depends-on): Add unistd.
9829         * modules/fputc-tests (Depends-on): Likewise.
9830         * modules/fread-tests (Depends-on): Likewise.
9831         * modules/fwrite-tests (Depends-on): Likewise.
9832
9833 2011-09-24  Bruno Haible  <bruno@clisp.org>
9834
9835         dup: Simplify autoconf test.
9836         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9837         on gl_MSVC_INVAL's result.
9838
9839 2011-09-24  Bruno Haible  <bruno@clisp.org>
9840
9841         Tests for function fwrite().
9842         * modules/fwrite-tests: New file.
9843         * tests/test-fwrite.c: New file.
9844         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9845
9846         Tests for function fread().
9847         * modules/fread-tests: New file.
9848         * tests/test-fread.c: New file.
9849         * modules/stdio-tests (Depends-on): Add fread-tests.
9850
9851         Activate fputc tests.
9852         * modules/stdio-tests (Depends-on): Add fputc-tests.
9853
9854         Enhance fgetc, fputc tests.
9855         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9856         * tests/test-fputc.c (main): Likewise.
9857
9858 2011-09-24  Bruno Haible  <bruno@clisp.org>
9859
9860         write: Support for MSVC 9.
9861         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9862         is not 1.
9863         * lib/write.c (write_nothrow): New function.
9864         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9865         not 1. Use write_nothrow.
9866         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9867         invalid parameter handler.
9868         (gl_PREREQ_WRITE): New macro.
9869         * modules/write (Depends-on): Add msvc-inval.
9870         (configure.ac): Invoke gl_PREREQ_WRITE.
9871         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9872
9873 2011-09-24  Bruno Haible  <bruno@clisp.org>
9874
9875         read: Fix last commit.
9876         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9877
9878 2011-09-24  Bruno Haible  <bruno@clisp.org>
9879
9880         dup2: Fix last commit.
9881         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9882         (rpl_dup2): Disable fcntl workaround on native Windows.
9883
9884         sigprocmask: Make code safer.
9885         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9886         section that changes macro definitions for this compilation unit.
9887
9888 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9889
9890         dup2: clarify by coalescing Windows-specific material
9891         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9892         "msvc-nothrow.h"' to the Windows-specific section, so that the
9893         Emacs source need not contain these include files.
9894         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9895         Windows-specific fixes into this function rather than just the
9896         nothrow fix, as this shortens and clarifies the code.  Always
9897         define as a function, as that's a bit cleaner than having it be
9898         sometimes a function and sometimes a macro.
9899         (rpl_dup2): Move the Windows-specific stuff out of here and into
9900         ms_windows_dup2.  Don't protect the Haiku-related fix with
9901         "#if !defined __linux__", as the same code also works around
9902         a Linux kernel bug, and it doesn't add any system calls on any
9903         platform.  Add comment about FreeBSD 6.1.
9904
9905         sigprocmask: move #include directive
9906         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9907         Windows-specific section, so that the Emacs source need not
9908         contain msvc-inval.h.
9909
9910 2011-09-23  Bruno Haible  <bruno@clisp.org>
9911
9912         read: Support for MSVC 9.
9913         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9914         is not 1.
9915         * lib/read.c (read_nothrow): New function.
9916         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9917         read_nothrow.
9918         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9919         invalid parameter handler.
9920         (gl_PREREQ_READ): New macro.
9921         * modules/read (Depends-on): Add msvc-inval.
9922         (configure.ac): Invoke gl_PREREQ_READ.
9923         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9924
9925 2011-09-23  Bruno Haible  <bruno@clisp.org>
9926
9927         close: Support for MSVC 9.
9928         * lib/close.c: Include <errno.h>, msvc-inval.h.
9929         (close_nothrow): New function.
9930         (rpl_close): Use it.
9931         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9932         invalid parameter handler.
9933         * modules/close (Depends-on): Add msvc-inval.
9934         * modules/dup2-tests (Depends-on): Add close.
9935         * modules/dup3-tests (Depends-on): Likewise.
9936         * modules/fcntl-tests (Depends-on): Likewise.
9937         * modules/spawn-pipe-tests (Depends-on): Likewise.
9938         * modules/unistd-safer-tests (Depends-on): Likewise.
9939         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9940
9941 2011-09-23  Bruno Haible  <bruno@clisp.org>
9942
9943         New module 'dup'.
9944         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9945         Allow replacement.
9946         * lib/dup.c: New file.
9947         * lib/fchdir.c (rpl_dup): Remove function.
9948         * m4/dup.m4: New file.
9949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9950         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9951         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9952         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9953         * modules/dup: New file.
9954         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9955         'dup' module is in use.
9956         * modules/fdopendir (Depends-on): Add dup.
9957         * modules/fdutimensat-tests (Depends-on): Likewise.
9958         * modules/fts (Depends-on): Likewise.
9959         * modules/futimens-tests (Depends-on): Likewise.
9960         * modules/posix_spawnp-tests (Depends-on): Likewise.
9961         * modules/unistd-safer-tests (Depends-on): Likewise.
9962         * modules/utimens-tests (Depends-on): Likewise.
9963         * doc/posix-functions/dup.texi: Mention the new module and the problem
9964         on MSVC.
9965
9966 2011-09-23  Bruno Haible  <bruno@clisp.org>
9967
9968         getdtablesize: Support for MSVC 9.
9969         * lib/getdtablesize.c: Include msvc-inval.h.
9970         (_setmaxstdio_nothrow): New function.
9971         (_setmaxstdio): Redefine it.
9972         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9973         * modules/getdtablesize (Depends-on): Add msvc-inval.
9974         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9975
9976 2011-09-23  Bruno Haible  <bruno@clisp.org>
9977
9978         signal-h: Rename from signal.
9979         * modules/signal-h: Renamed from modules/signal.
9980         * modules/pthread_sigmask (Depends-on): Update.
9981         * modules/raise (Depends-on): Likewise.
9982         * modules/sigaction (Depends-on): Likewise.
9983         * modules/sigpipe (Depends-on): Likewise.
9984         * modules/sigprocmask (Depends-on): Likewise.
9985         * modules/sys_select (Depends-on): Likewise.
9986         * modules/signal-h-tests: Renamed from modules/signal-tests.
9987         (Files, Depends-on, Makefile.am): Update.
9988         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9989         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9990         (Files, Makefile.am): Update.
9991         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9992         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9993         * modules/signal: New placeholder file.
9994         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9995         * doc/posix-headers/signal.texi: Update.
9996         * NEWS: Mention the change.
9997
9998 2011-09-23  Bruno Haible  <bruno@clisp.org>
9999
10000         sigprocmask: Avoid crashes through signal() on MSVC 9.
10001         * lib/sigprocmask.c: Include msvc-inval.h.
10002         (signal_nothrow): New function.
10003         (signal): Redefine it.
10004         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10005         * modules/sigprocmask (Depends-on): Add msvc-inval.
10006         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10007
10008 2011-09-23  Bruno Haible  <bruno@clisp.org>
10009
10010         Tests for module 'raise'.
10011         * modules/raise-tests: New file.
10012         * tests/test-raise.c: New file.
10013
10014         raise: Support for MSVC.
10015         * lib/signal.in.h (raise): New declaration.
10016         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10017         for native Windows platforms.
10018         * m4/raise.m4: New file.
10019         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10020         HAVE_RAISE, REPLACE_RAISE.
10021         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10022         REPLACE_RAISE.
10023         * modules/raise (Status, Notice): Remove fields.
10024         (Files): Add m4/raise.m4.
10025         (Depends-on): Add signal, msvc-inval.
10026         (configure.ac): Use the common idioms.
10027         (Maintainer): Add me.
10028         * tests/test-signal-c++.cc: Check the signature of raise.
10029         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10030
10031 2011-09-23  Bruno Haible  <bruno@clisp.org>
10032
10033         pipe2: Fix compilation on pre-C99 compilers.
10034         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10035
10036 2011-09-23  Bruno Haible  <bruno@clisp.org>
10037
10038         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10039         * lib/msvc-nothrow.h: New file.
10040         * lib/msvc-nothrow.c: New file.
10041         * m4/msvc-nothrow.m4: New file.
10042         * modules/msvc-nothrow: New file.
10043         * lib/dup2.c: Include msvc-nothrow.h.
10044         (rpl_dup2): No need to protect _get_osfhandle call here.
10045         * lib/accept4.c: Include msvc-nothrow.h.
10046         * lib/error.c: Likewise.
10047         * lib/fcntl.c: Likewise.
10048         * lib/lseek.c: Likewise.
10049         * lib/nonblocking.c: Likewise.
10050         * lib/poll.c: Likewise.
10051         * lib/read.c: Likewise.
10052         * lib/select.c: Likewise.
10053         * lib/sockets.h: Likewise.
10054         * lib/sockets.c: Likewise.
10055         * lib/stdio-read.c: Likewise.
10056         * lib/stdio-write.c: Likewise.
10057         * lib/write.c: Likewise.
10058         * lib/w32sock.h: Likewise.
10059         * lib/w32spawn.h: Likewise.
10060         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10061         * lib/fsync.c: Likewise.
10062         * lib/isapipe.c: Likewise.
10063         * modules/dup2 (Depends-on): Add msvc-nothrow.
10064         * modules/accept4 (Depends-on): Likewise.
10065         * modules/error (Depends-on): Likewise.
10066         * modules/fcntl (Depends-on): Likewise.
10067         * modules/lseek (Depends-on): Likewise.
10068         * modules/nonblocking (Depends-on): Likewise.
10069         * modules/poll (Depends-on): Likewise.
10070         * modules/read (Depends-on): Likewise.
10071         * modules/select (Depends-on): Likewise.
10072         * modules/sockets (Depends-on): Likewise.
10073         * modules/sigpipe (Depends-on): Likewise.
10074         * modules/write (Depends-on): Likewise.
10075         * modules/accept (Depends-on): Likewise.
10076         * modules/bind (Depends-on): Likewise.
10077         * modules/connect (Depends-on): Likewise.
10078         * modules/gethostname (Depends-on): Likewise.
10079         * modules/getpeername (Depends-on): Likewise.
10080         * modules/getsockname (Depends-on): Likewise.
10081         * modules/getsockopt (Depends-on): Likewise.
10082         * modules/ioctl (Depends-on): Likewise.
10083         * modules/listen (Depends-on): Likewise.
10084         * modules/recv (Depends-on): Likewise.
10085         * modules/recvfrom (Depends-on): Likewise.
10086         * modules/send (Depends-on): Likewise.
10087         * modules/sendto (Depends-on): Likewise.
10088         * modules/setsockopt (Depends-on): Likewise.
10089         * modules/shutdown (Depends-on): Likewise.
10090         * modules/socket (Depends-on): Likewise.
10091         * modules/execute (Depends-on): Likewise.
10092         * modules/spawn-pipe (Depends-on): Likewise.
10093         * modules/flock (Depends-on): Likewise.
10094         * modules/fsync (Depends-on): Likewise.
10095         * modules/isapipe (Depends-on): Likewise.
10096         * tests/test-cloexec.c: Include msvc-nothrow.h.
10097         * tests/test-dup-safer.c: Likewise.
10098         * tests/test-dup2.c: Likewise.
10099         * tests/test-dup3.c: Likewise.
10100         * tests/test-fcntl.c: Likewise.
10101         * tests/test-pipe.c: Likewise.
10102         * tests/test-pipe2.c: Likewise.
10103         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10104         * modules/unistd-safer-tests (Depends-on): Likewise.
10105         * modules/dup2-tests (Depends-on): Likewise.
10106         * modules/dup3-tests (Depends-on): Likewise.
10107         * modules/fcntl-tests (Depends-on): Likewise.
10108         * modules/pipe-posix-tests (Depends-on): Likewise.
10109         * modules/pipe2-tests (Depends-on): Likewise.
10110
10111 2011-09-23  Bruno Haible  <bruno@clisp.org>
10112
10113         dup2: Make code more maintainable.
10114         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10115         (rpl_dup2): Use it.
10116         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10117         * modules/dup2 (configure.ac): Invoke it.
10118         Reported by Paul Eggert.
10119
10120 2011-09-23  Bruno Haible  <bruno@clisp.org>
10121
10122         msvc-inval: Fix compilation error.
10123         * lib/msvc-inval.h: Include <excpt.h>.
10124
10125 2011-09-23  Bruno Haible  <bruno@clisp.org>
10126
10127         mkdir: Tweak for MSVC 9.
10128         * lib/sys_stat.in.h: Update comments.
10129         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10130
10131         Tests for module 'chdir'.
10132         * modules/chdir-tests: New file.
10133         * tests/test-chdir.c: New file.
10134
10135         New module 'chdir'.
10136         * modules/chdir: New file.
10137         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10138         (chdir): New declaration.
10139         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10140         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10141         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10142         * tests/test-unistd-c++.cc: Check signature of chdir.
10143         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10144         * modules/chdir-long (Depends-on): Add chdir.
10145         * modules/fchdir (Depends-on): Likewise.
10146         * modules/rename (Depends-on): Likewise.
10147         * modules/savewd (Depends-on): Likewise.
10148
10149         rmdir: Support for mingw, MSVC 9.
10150         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10151         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10152
10153         getcwd: Tweak for MSVC 9.
10154         * lib/unistd.in.h: Update comments.
10155         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10156
10157 2011-09-22  Bruno Haible  <bruno@clisp.org>
10158
10159         strerror_r-posix: Avoid a link error on MSVC.
10160         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10161         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10162
10163 2011-09-22  Bruno Haible  <bruno@clisp.org>
10164
10165         select: Avoid link errors on MSVC.
10166         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10167         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10168         * modules/pselect (Link): Likewise.
10169         * NEWS: Mention the change.
10170         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10171         test-select-stdin against $(LIB_SELECT).
10172         * modules/pselect-tests (Makefile.am): Link test-pselect against
10173         $(LIB_SELECT).
10174
10175 2011-09-22  Bruno Haible  <bruno@clisp.org>
10176
10177         select: Avoid compilation error on MSVC.
10178         * lib/select.c: Don't include <stdbool.h>.
10179
10180 2011-09-21  Bruno Haible  <bruno@clisp.org>
10181
10182         Consolidate all uses of PATH_MAX in *.m4 files.
10183         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10184         macros.
10185         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10186         and gl_PATHMAX_SNIPPET.
10187         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10189         * modules/chdir-long (Files): Add m4/pathmax.m4.
10190         * modules/getcwd (Files): Likewise.
10191
10192 2011-09-21  Bruno Haible  <bruno@clisp.org>
10193
10194         ftruncate: Un-deprecate, concentrate on Win32 support.
10195         * modules/ftruncate (Status, Notice): Remove sections.
10196         (Depends-on): Add largefile.
10197         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10198         non-mingw platforms.
10199         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10200         include <io.h>.
10201         * modules/perror-tests (Depends-on): Add ftruncate.
10202         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10203         'ftruncate' module.
10204
10205 2011-09-21  Bruno Haible  <bruno@clisp.org>
10206
10207         Add dependencies to new dirent related modules.
10208         * modules/opendir (Depends-on): Add closedir.
10209         * modules/getcwd (Depends-on): Add opendir, closedir.
10210         * modules/dirent-safer-tests (Depends-on): Likewise.
10211         * modules/fdopendir-tests (Depends-on): Likewise.
10212         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10213         * modules/renameat-tests (Depends-on): Likewise.
10214
10215 2011-09-21  Bruno Haible  <bruno@clisp.org>
10216
10217         opendir: Avoid compilation error on mingw.
10218         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10219         * modules/opendir (Depends-on): Add unistd.
10220
10221 2011-09-21  Bruno Haible  <bruno@clisp.org>
10222
10223         ftruncate tests: Avoid a test failure on mingw.
10224         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10225
10226 2011-09-21  Bruno Haible  <bruno@clisp.org>
10227
10228         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10229         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10230         native Windows.
10231
10232 2011-09-21  Bruno Haible  <bruno@clisp.org>
10233
10234         New module 'fdopen'.
10235         * lib/stdio.in.h (fdopen): New declaration.
10236         * lib/fdopen.c: New file.
10237         * m4/fdopen.m4: New file.
10238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10239         REPLACE_FDOPEN.
10240         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10241         REPLACE_FDOPEN.
10242         * modules/fdopen: New file.
10243         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10244         * tests/test-stdio-c++.cc: Check signature of fdopen.
10245         * doc/posix-functions/fdopen.texi: Mention the new module.
10246
10247 2011-09-21  Bruno Haible  <bruno@clisp.org>
10248
10249         unlockpt tests: Avoid test failure on NetBSD 5.1.
10250         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10251         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10252
10253 2011-09-21  Bruno Haible  <bruno@clisp.org>
10254
10255         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10256         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10257         * tests/test-getlogin_r.c (main): Likewise.
10258
10259 2011-09-20  Bruno Haible  <bruno@clisp.org>
10260
10261         time tests: Don't require pid_t.
10262         * doc/posix-headers/time.texi: Revert last change.
10263         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10264         * tests/test-time.c: Comment out the check for pid_t.
10265
10266 2011-09-20  Bruno Haible  <bruno@clisp.org>
10267
10268         fsync tests: Avoid a test failure on mingw.
10269         * tests/test-fsync.c (main): Allow a failure with EIO.
10270
10271 2011-09-20  Bruno Haible  <bruno@clisp.org>
10272
10273         euidaccess: Update comments.
10274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10275
10276 2011-09-20  Bruno Haible  <bruno@clisp.org>
10277
10278         Ensure EBADF returns for socket functions on mingw.
10279         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10280         descriptor is invalid.
10281         * lib/bind.c (rpl_bind): Likewise.
10282         * lib/connect.c (rpl_connect): Likewise.
10283         * lib/getpeername.c (rpl_getpeername): Likewise.
10284         * lib/getsockname.c (rpl_getsockname): Likewise.
10285         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10286         * lib/listen.c (rpl_listen): Likewise.
10287         * lib/recv.c (rpl_recv): Likewise.
10288         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10289         * lib/send.c (rpl_send): Likewise.
10290         * lib/sendto.c (rpl_sendto): Likewise.
10291         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10292         * lib/shutdown.c (rpl_shutdown): Likewise.
10293
10294 2011-09-20  Bruno Haible  <bruno@clisp.org>
10295
10296         select tests: EBADF tests.
10297         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10298         test_bad_fd): New functions.
10299         (test_function): Invoke also test_bad_fd.
10300
10301 2011-09-20  Bruno Haible  <bruno@clisp.org>
10302
10303         Tests for module 'posix_spawn_file_actions_addopen.
10304         * modules/posix_spawn_file_actions_addopen-tests: New file.
10305         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10306
10307         Tests for module 'posix_spawn_file_actions_adddup2'.
10308         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10309         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10310
10311         Tests for module 'posix_spawn_file_actions_addclose'.
10312         * modules/posix_spawn_file_actions_addclose-tests: New file.
10313         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10314
10315 2011-09-20  Bruno Haible  <bruno@clisp.org>
10316
10317         Tests for module 'unlockpt'.
10318         * modules/unlockpt-tests: New file.
10319         * tests/test-unlockpt.c: New file.
10320         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10321
10322         Tests for module 'grantpt'.
10323         * modules/grantpt-tests: New file.
10324         * tests/test-grantpt.c: New file.
10325         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10326
10327 2011-09-20  Bruno Haible  <bruno@clisp.org>
10328
10329         freopen tests: EBADF tests.
10330         * tests/test-freopen.c: Include errno.h, unistd.h.
10331         (main): Add tests for EBADF, commented out for the moment.
10332
10333         fclose tests: EBADF tests.
10334         * tests/test-fclose.c (main): Add tests for EBADF.
10335
10336         fflush tests: EBADF tests.
10337         * tests/test-fflush.c: Include errno.h, macros.h.
10338         (main): Add tests for EBADF.
10339
10340         ftello tests: EBADF tests.
10341         * tests/test-ftello4.sh: New file.
10342         * tests/test-ftello4.c: New file.
10343         * modules/ftello-tests (Files): Add them.
10344         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10345
10346         fseeko tests: EBADF tests.
10347         * tests/test-fseeko4.sh: New file.
10348         * tests/test-fseeko4.c: New file.
10349         * modules/fseeko-tests (Files): Add them.
10350         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10351
10352         Tests for function fputc().
10353         * modules/fputc-tests: New file.
10354         * tests/test-fputc.c: New file.
10355         * modules/stdio-tests (Depends-on): Add fputc-tests.
10356
10357         Tests for function fgetc().
10358         * modules/fgetc-tests: New file.
10359         * tests/test-fgetc.c: New file.
10360         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10361
10362         Tests for function fdopen().
10363         * modules/fdopen-tests: New file.
10364         * tests/test-fdopen.c: New file.
10365         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10366
10367         Tests for module 'vdprintf'.
10368         * modules/vdprintf-tests: New file.
10369         * tests/test-vdprintf.c: New file.
10370
10371         Tests for module 'dprintf'.
10372         * modules/dprintf-tests: New file.
10373         * tests/test-dprintf.c: New file.
10374
10375 2011-09-20  Bruno Haible  <bruno@clisp.org>
10376
10377         Tests for module 'ioctl'.
10378         * modules/ioctl-tests: New file.
10379         * tests/test-ioctl.c: New file.
10380
10381 2011-09-20  Bruno Haible  <bruno@clisp.org>
10382
10383         fcntl tests: EBADF tests.
10384         * tests/test-fcntl.c (main): Add more tests for EBADF.
10385
10386 2011-09-20  Bruno Haible  <bruno@clisp.org>
10387
10388         utimensat tests: EBADF tests.
10389         * tests/test-utimensat.c (main): Add tests for EBADF.
10390
10391         renameat tests: EBADF tests.
10392         * tests/test-renameat.c (main): Add tests for EBADF.
10393
10394         mkfifoat tests: EBADF tests.
10395         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10396
10397         readlinkat tests: EBADF tests.
10398         * tests/test-readlinkat.c (main): Add tests for EBADF.
10399
10400         symlinkat tests: EBADF tests.
10401         * tests/test-symlinkat.c (main): Add tests for EBADF.
10402
10403         linkat tests: EBADF tests.
10404         * tests/test-linkat.c (main): Add tests for EBADF.
10405
10406         Tests for module 'faccessat'.
10407         * modules/faccessat-tests: New file.
10408         * tests/test-faccessat.c: New file.
10409
10410         fdopendir tests: EBADF tests.
10411         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10412
10413         openat tests: EBADF tests.
10414         * tests/test-fchownat.c (main): Add tests for EBADF.
10415         * tests/test-fstatat.c (main): Likewise.
10416         * tests/test-mkdirat.c (main): Likewise.
10417         * tests/test-openat.c (main): Likewise.
10418         * tests/test-unlinkat.c (main): Likewise.
10419         * tests/test-fchmodat.c: New file.
10420         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10421         (Makefile.am): Also run 'test-fchmodat'.
10422
10423 2011-09-20  Bruno Haible  <bruno@clisp.org>
10424
10425         utimens, futimens, fdutimensat tests: EBADF tests.
10426         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10427
10428         Tests for function fstat().
10429         * modules/fstat-tests: New file.
10430         * tests/test-fstat.c: New file.
10431         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10432
10433 2011-09-20  Bruno Haible  <bruno@clisp.org>
10434
10435         test-ttyname_r tests: EBADF tests.
10436         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10437
10438         Tests for module 'isatty'.
10439         * modules/isatty-tests: New file.
10440         * tests/test-isatty.c: New file.
10441
10442         Tests for module 'write'.
10443         * modules/write-tests: New file.
10444         * tests/test-write.c: New file.
10445
10446         Tests for module 'read'.
10447         * modules/read-tests: New file.
10448         * tests/test-read.c: New file.
10449
10450         pwrite tests: EBADF tests.
10451         * tests/test-pwrite.c (main): Add tests for EBADF.
10452
10453         pread tests: EBADF tests.
10454         * tests/test-pread.c (main): Add tests for EBADF.
10455
10456         lseek tests: EBADF tests.
10457         * tests/test-lseek.c (main): Add more tests for EBADF.
10458
10459         Tests for module 'ftruncate'.
10460         * modules/ftruncate-tests: New file.
10461         * tests/test-ftruncate.sh: New file.
10462         * tests/test-ftruncate.c: New file.
10463
10464         fsync tests: EBADF tests.
10465         * tests/test-fsync.c (main): Add more tests for EBADF.
10466
10467         fdatasync tests: EBADF tests.
10468         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10469
10470         Tests for module 'fchown'.
10471         * modules/fchown-tests: New file.
10472         * tests/test-fchown.c: New file.
10473
10474         Tests for module 'fchmod'.
10475         * modules/fchmod-tests: New file.
10476         * tests/test-fchmod.c: New file.
10477
10478         fchdir tests: EBADF tests.
10479         * tests/test-fchdir.c (main): Add more tests for EBADF.
10480
10481         dup2 tests: EBADF tests.
10482         * tests/test-dup2.c (main): Add more tests for EBADF.
10483
10484         Tests for module 'dup'.
10485         * modules/dup-tests: New file.
10486         * tests/test-dup.c: New file.
10487
10488         Tests for module 'close'.
10489         * modules/close-tests: New file.
10490         * tests/test-close.c: New file.
10491
10492 2011-09-20  Bruno Haible  <bruno@clisp.org>
10493
10494         Tests for module 'shutdown'.
10495         * modules/shutdown-tests: New file.
10496         * tests/test-shutdown.c: New file.
10497
10498         Tests for module 'setsockopt'.
10499         * modules/setsockopt-tests: New file.
10500         * tests/test-setsockopt.c: New file.
10501
10502         Tests for module 'sendto'.
10503         * modules/sendto-tests: New file.
10504         * tests/test-sendto.c: New file.
10505
10506         Tests for module 'send'.
10507         * modules/send-tests: New file.
10508         * tests/test-send.c: New file.
10509
10510         Tests for module 'recvfrom'.
10511         * modules/recvfrom-tests: New file.
10512         * tests/test-recvfrom.c: New file.
10513
10514         Tests for module 'recv'.
10515         * modules/recv-tests: New file.
10516         * tests/test-recv.c: New file.
10517
10518         Tests for module 'listen'.
10519         * modules/listen-tests: New file.
10520         * tests/test-listen.c: New file.
10521
10522         Tests for module 'getsockopt'.
10523         * modules/getsockopt-tests: New file.
10524         * tests/test-getsockopt.c: New file.
10525
10526         Tests for module 'getsockname'.
10527         * modules/getsockname-tests: New file.
10528         * tests/test-getsockname.c: New file.
10529
10530         Tests for module 'getpeername'.
10531         * modules/getpeername-tests: New file.
10532         * tests/test-getpeername.c: New file.
10533
10534         Tests for module 'connect'.
10535         * modules/connect-tests: New file.
10536         * tests/test-connect.c: New file.
10537
10538         Tests for module 'bind'.
10539         * modules/bind-tests: New file.
10540         * tests/test-bind.c: New file.
10541
10542         accept4 tests: Fix for native Windows.
10543         * tests/test-accept4.c: Include sockets.h.
10544         (main): Invoke gl_sockets_startup.
10545         * modules/accept4-tests (Depends-on): Add sockets.
10546
10547         accept tests: Fix for native Windows.
10548         * tests/test-accept.c: Include sockets.h.
10549         (main): Invoke gl_sockets_startup.
10550         * modules/accept-tests (Depends-on): Add sockets.
10551
10552 2011-09-19  Bruno Haible  <bruno@clisp.org>
10553
10554         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10555         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10556         do...while(0).
10557         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10558         Suggested by Paul Eggert.
10559
10560 2011-09-19  Bruno Haible  <bruno@clisp.org>
10561
10562         sched: Ensure pid_t is defined.
10563         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10564         not define pid_t.
10565         * lib/sched.in.h: Include <sys/types.h>.
10566         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10568
10569 2011-09-19  Bruno Haible  <bruno@clisp.org>
10570
10571         msvc-inval: Ensure the entire expansion is a single statement.
10572         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10573         of braces.
10574
10575 2011-09-19  Jim Meyering  <meyering@redhat.com>
10576
10577         tests: use printf, not echo in init.sh's warn_ function
10578         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10579         misbehave when given strings containing a backslash or starting
10580         with e.g., -n.  James Youngman suggested setting IFS.
10581
10582 2011-09-19  Eric Blake  <eblake@redhat.com>
10583
10584         futimens: enhance test
10585         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10586         closed non-negative fd.
10587
10588         date: accept 'hence' as opposite of 'ago'
10589         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10590         * tests/test-parse-datetime.c (main): Enhance test.
10591         Suggested by Jesse Wilson.
10592
10593 2011-09-19  Jim Meyering  <meyering@redhat.com>
10594
10595         getcwd: don't fail in a deep directory on a system without openat
10596         Before this change, getcwd would fail when called from a directory
10597         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10598         the non-openat implementation used "..", "../..", "../../..", etc.
10599         to access ancestor directories.  With too many, that string would
10600         be longer than PATH_MAX.
10601         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10602         using gnulib's openat replacement.
10603         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10604         we're using the replacement function.
10605
10606 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10607
10608         maint.mk: avoid warnings from perl about missing files
10609         * top/maint.mk (def_sym_regex): Ignore files listed in
10610         $(gl_other_headers_) that do not exist, say because a project
10611         does not use a corresponding module.
10612
10613 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10614
10615         stat: use pathmax.h only if needed
10616         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10617         This is better for Emacs, which does not have a mingw port and
10618         therefore can avoid the pathmax module.
10619
10620         utimens: remove dependency on dup2
10621         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10622         to work around the Linux kernel bug.
10623         * modules/utimens (Depends-on): Remove dup2.
10624
10625 2011-09-18  Bruno Haible  <bruno@clisp.org>
10626
10627         inet_ntop, inet_pton: Look for it also in libresolv.
10628         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10629         libnsl, search for it in libresolv.
10630         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10631         Needed on Solaris 7.
10632
10633 2011-09-18  Bruno Haible  <bruno@clisp.org>
10634
10635         accept, accept4 tests: Avoid link error on Solaris.
10636         * modules/accept-tests (Makefile.am): Link test-accept against
10637         $(LIBSOCKET).
10638         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10639         $(LIBSOCKET).
10640
10641         accept4: Avoid link error on Solaris.
10642         * modules/accept4 (Link): New section.
10643
10644         socket functions: Avoid link errors on Solaris.
10645         * modules/accept (Depends-on): Add socketlib.
10646         (Link): New section.
10647         * modules/bind (Depends-on): Add socketlib.
10648         (Link): New section.
10649         * modules/connect (Depends-on): Add socketlib.
10650         (Link): New section.
10651         * modules/getpeername (Depends-on): Add socketlib.
10652         (Link): New section.
10653         * modules/getsockname (Depends-on): Add socketlib.
10654         (Link): New section.
10655         * modules/getsockopt (Depends-on): Add socketlib.
10656         (Link): New section.
10657         * modules/listen (Depends-on): Add socketlib.
10658         (Link): New section.
10659         * modules/recv (Depends-on): Add socketlib.
10660         (Link): New section.
10661         * modules/recvfrom (Depends-on): Add socketlib.
10662         (Link): New section.
10663         * modules/send (Depends-on): Add socketlib.
10664         (Link): New section.
10665         * modules/sendto (Depends-on): Add socketlib.
10666         (Link): New section.
10667         * modules/setsockopt (Depends-on): Add socketlib.
10668         (Link): New section.
10669         * modules/shutdown (Depends-on): Add socketlib.
10670         (Link): New section.
10671         * modules/socket (Depends-on): Add socketlib.
10672         (Link): New section.
10673
10674 2011-09-18  Bruno Haible  <bruno@clisp.org>
10675
10676         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10677         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10678         than 5 seconds.
10679         * modules/ptsname-tests (configure.ac): Test for alarm.
10680
10681 2011-09-18  Bruno Haible  <bruno@clisp.org>
10682
10683         posix_spawn_file_actions_add*: Fix module dependencies.
10684         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10685         posix_spawn_file_actions_init.
10686         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10687         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10688
10689 2011-09-18  Bruno Haible  <bruno@clisp.org>
10690
10691         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10692         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10693         * tests/test-renameat.c (main): Likewise.
10694
10695 2011-09-18  Bruno Haible  <bruno@clisp.org>
10696
10697         Tests for module 'accept4'.
10698         * modules/accept4-tests: New file.
10699         * tests/test-accept4.c: New file.
10700
10701 2011-09-18  Bruno Haible  <bruno@clisp.org>
10702
10703         Tests for module 'accept'.
10704         * modules/accept-tests: New file.
10705         * tests/test-accept.c: New file.
10706
10707 2011-09-18  Bruno Haible  <bruno@clisp.org>
10708
10709         dup2: Support for MSVC.
10710         * lib/dup2.c: Include msvc-inval.h.
10711         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10712         _get_osfhandle calls.
10713         * modules/dup2 (Depends-on): Add msvc-inval.
10714         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10715
10716         New module 'msvc-inval'.
10717         * lib/msvc-inval.h: New file.
10718         * lib/msvc-inval.c: New file.
10719         * m4/msvc-inval.m4: New file.
10720         * modules/msvc-inval: New file.
10721
10722 2011-09-17  Bruno Haible  <bruno@clisp.org>
10723
10724         Tests for module 'pclose'.
10725         * modules/pclose-tests: New file.
10726
10727         New module 'pclose'.
10728         * lib/stdio.in.h (pclose): New declaration.
10729         * lib/pclose.c: New file.
10730         * m4/pclose.m4: New file.
10731         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10732         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10733         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10734         * modules/pclose: New file.
10735         * modules/popen-tests (Depends-on): Add pclose.
10736         * modules/popen-safer-tests (Depends-on): Likewise.
10737         * doc/posix-functions/pclose.texi: Mention the new module.
10738
10739 2011-09-17  Bruno Haible  <bruno@clisp.org>
10740
10741         popen: Support for MSVC.
10742         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10743         * lib/popen.c (popen): Provide alternate definition for native Windows.
10744         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10746         * modules/popen (Depends-on, configure.ac): Update condition.
10747         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10748         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10749         fixed.
10750
10751 2011-09-17  Bruno Haible  <bruno@clisp.org>
10752
10753         isnanl, isnand, isnanf: Work around MSVC bug.
10754         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10755
10756 2011-09-17  Bruno Haible  <bruno@clisp.org>
10757
10758         sys_socket tests: Fix recent mistake.
10759         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10760
10761 2011-09-17  Bruno Haible  <bruno@clisp.org>
10762
10763         putenv: Support for MSVC.
10764         * modules/putenv (Depends-on): Add environ.
10765         * lib/putenv.c (environ): Disable declaration.
10766         * lib/unistd.in.h: Update comment.
10767
10768 2011-09-17  Bruno Haible  <bruno@clisp.org>
10769
10770         math: Avoid macro redefinition warnings on MSVC.
10771         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10772         Undefine before redefining.
10773
10774 2011-09-17  Bruno Haible  <bruno@clisp.org>
10775
10776         doc: Mention functions which are declared as macros.
10777         * doc/posix-functions/*[fl].texi: Mention that some functions are
10778         defined as macros with arguments only.
10779
10780 2011-09-17  Bruno Haible  <bruno@clisp.org>
10781
10782         Add dependencies to new dirent related modules.
10783         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10784         * modules/fts (Depends-on): Likewise.
10785         * modules/glob (Depends-on): Likewise.
10786         * modules/savedir (Depends-on): Likewise.
10787         * modules/scandir (Depends-on): Likewise.
10788         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10789         * modules/fdopendir (Depends-on): Add opendir.
10790
10791 2011-09-17  Bruno Haible  <bruno@clisp.org>
10792
10793         inet_pton: Support for MSVC on Windows Vista or newer.
10794         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10795         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10796         HAVE_DECL_INET_PTON is defined.
10797         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10798         On platforms with <winsock2.h>, test whether inet_pton is declared in
10799         <ws2tcpip.h>. If so, arrange to replace it.
10800         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10801         REPLACE_INET_PTON.
10802         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10803         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10804         (Depends-on, configure.ac): Update condition.
10805         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10806
10807 2011-09-17  Bruno Haible  <bruno@clisp.org>
10808
10809         inet_ntop: Support for MSVC on Windows Vista or newer.
10810         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10811         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10812         HAVE_DECL_INET_NTOP is defined.
10813         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10814         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10815         <ws2tcpip.h>. If so, arrange to replace it.
10816         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10817         REPLACE_INET_NTOP.
10818         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10819         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10820         (Depends-on, configure.ac): Update condition.
10821         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10822
10823 2011-09-16  Eric Blake  <eblake@redhat.com>
10824
10825         test-fsync: yet another enhancement
10826         * tests/test-fsync.c (main): Also test behavior on read-only text
10827         file.
10828
10829 2011-09-16  Bruno Haible  <bruno@clisp.org>
10830
10831         Enhance fsync, fdatasync tests.
10832         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10833         * tests/test-fdatasync.c (main): Likewise.
10834
10835 2011-09-16  Bruno Haible  <bruno@clisp.org>
10836
10837         Support for MSVC compiler: Ensure mode_t gets defined.
10838         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10839         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10841         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10842         * tests/test-fcntl-h.c: Check that mode_t is defined.
10843         * tests/test-sys_stat.c: Likewise.
10844         * tests/test-sys_types.c: Likewise.
10845         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10846         * doc/posix-headers/sys_stat.texi: Likewise.
10847         * doc/posix-headers/sys_types.texi: Likewise.
10848
10849 2011-09-16  Bruno Haible  <bruno@clisp.org>
10850
10851         sys_stat: Support for MSVC.
10852         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10853         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10854         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10855         MSVC.
10856
10857 2011-09-16  Bruno Haible  <bruno@clisp.org>
10858
10859         Support for MSVC compiler: Ensure off_t gets defined.
10860         * lib/unistd.in.h: Include <sys/types.h>.
10861         * tests/test-fcntl-h.c: Check that off_t is defined.
10862         * tests/test-sys_stat.c: Likewise.
10863         * tests/test-sys_types.c: Likewise.
10864
10865 2011-09-16  Eric Blake  <eblake@redhat.com>
10866
10867         fdatasync: port to Solaris
10868         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10869         * modules/fdatasync (Link): Document it.
10870         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10871
10872         fdatasync: port to MacOS X 10.7
10873         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10874         declared.
10875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10876         * modules/unistd (Makefile.am): Substitute it.
10877         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10878         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10879
10880         fdatasync: minor improvements
10881         * modules/fdatasync (Depends-on): Add condition for fsync.
10882         * lib/fdatasync.c (fdatasync): Add comment.
10883         * tests/test-unistd-c++.cc: Test fdatasync.
10884
10885         unistd: update refs to newer POSIX
10886         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10887         Suggested by Bruno Haible.
10888
10889         fdatasync: new module
10890         * modules/fsync (Description): Document difference to fdatasync.
10891         * modules/fdatasync: New module.
10892         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10893         * lib/fdatasync.c (fdatasync): Likewise.
10894         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10895         defaults.
10896         * modules/unistd (Makefile.am): Set witnesses.
10897         * lib/unistd.in.h (fdatasync): Declare.
10898         * MODULES.html.sh: Document it.
10899         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10900         * modules/fdatasync-tests: New test.
10901         * tests/test-fdatasync.c: Likewise.
10902
10903 2011-09-16  Eric Blake  <eblake@redhat.com>
10904
10905         test-fsync: enhance tests
10906         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10907         * tests/test-fsync.c (main): Enhance test.
10908
10909 2011-09-15  Bruno Haible  <bruno@clisp.org>
10910
10911         Support for MSVC compiler: Ensure ssize_t gets defined.
10912         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10913         * doc/posix-headers/stdio.texi: Likewise.
10914         * modules/stdio (Depends-on): Add ssize_t.
10915         * modules/sys_socket (Depends-on): Likewise.
10916         * modules/sys_types (Depends-on): Likewise.
10917         * modules/sys_uio (Depends-on): Likewise.
10918         * modules/unistd (Depends-on): Likewise.
10919         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10920         * tests/test-sys_types.c: Check that ssize_t is defined.
10921
10922 2011-09-14  Bruno Haible  <bruno@clisp.org>
10923
10924         Avoid using #, the m4 comment starter character, near brackets.
10925         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10926         delimiter character in sed expressions.
10927         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10928         Suggested by Eric Blake.
10929
10930         Properly quote AC_CHECK_DECLS' 4th argument.
10931         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10932         argument.
10933         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10934         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10935         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10936         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10937         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10938         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10940         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10941         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10943         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10944         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10945         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10946         * m4/isinf.m4 (gl_ISINF): Likewise.
10947         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10948         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10949         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10950         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10951         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10952         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10953         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10954         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10955         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10956         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10957         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10960         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10962         Reported by Eric Blake.
10963
10964         Properly quote AC_CHECK_DECL's 4th argument.
10965         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10966         argument.
10967         * m4/argp.m4 (gl_ARGP): Likewise.
10968         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10969         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10970         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10971         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10972         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10973         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10974         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10975         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10976         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10977         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10978         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10979         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10980         Reported by Eric Blake.
10981
10982 2011-09-14  Eric Blake  <eblake@redhat.com>
10983
10984         opendir: avoid compile warning
10985         * lib/opendir.c (includes): Always include errno.h.
10986         Reported by Tatsuro MATSUOKA.
10987
10988 2011-09-14  Jim Meyering  <meyering@redhat.com>
10989
10990         maint.mk: sc_tight_scope: propagate failure from sub-make
10991         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10992         Reported by Martin von Gagern.
10993
10994 2011-09-13  Bruno Haible  <bruno@clisp.org>
10995
10996         tempname: Support for MSVC.
10997         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10998         MSVC.
10999         * modules/tempname (Depends-on): Add fcntl-h.
11000
11001 2011-09-13  Bruno Haible  <bruno@clisp.org>
11002
11003         sys_time: Support for MSVC.
11004         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11005         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11006         include <winsock2.h>.
11007         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11008         function declarations that collide with POSIX.
11009         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11010         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11011
11012 2011-09-13  Bruno Haible  <bruno@clisp.org>
11013
11014         stat: Support for MSVC.
11015         * lib/stat.c: Include pathmax.h.
11016         * modules/stat (Depends-on): Add pathmax.
11017
11018         pathmax: Support for native Windows.
11019         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11020
11021 2011-09-12  Bruno Haible  <bruno@clisp.org>
11022
11023         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11024         * lib/dirent.in.h (struct dirent): New type.
11025         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11026         DT_WHT): New macros.
11027         (DIR): New type.
11028         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11029         (readdir, rewinddir): New declarations.
11030         * lib/dirent-private.h: New file.
11031         * lib/opendir.c: New file.
11032         * lib/readdir.c: New file.
11033         * lib/rewinddir.c: New file.
11034         * lib/closedir.c: New file.
11035         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11036         * m4/opendir.m4: New file.
11037         * m4/readdir.m4: New file.
11038         * m4/rewinddir.m4: New file.
11039         * m4/closedir.m4: New file.
11040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11041         REPLACE_CLOSEDIR here.
11042         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11043         readdir, rewinddir are declared.
11044         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11045         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11046         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11047         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11048         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11049         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11050         * modules/opendir: New file.
11051         * modules/readdir: New file.
11052         * modules/rewinddir: New file.
11053         * modules/closedir: New file.
11054         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11055         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11056         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11057         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11058         * NEWS: Mention the 'fchdir' change.
11059
11060 2011-09-11  Bruno Haible  <bruno@clisp.org>
11061
11062         asm-underscore.m4: Support for MSVC.
11063         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11064         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11065
11066 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11067
11068         Doc about crypt functions.
11069         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11070         needing for _GNU_SOURCE to get crypt.
11071         * doc/posix-functions/encrypt.texi: Likewise.
11072         * doc/posix-functions/setkey.texi: Likewise.
11073
11074 2011-09-11  Bruno Haible  <bruno@clisp.org>
11075
11076         doc: Update regarding MSVC 9.
11077         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11078         tested".
11079         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11080         * doc/posix-headers/*.texi: Likewise.
11081         * doc/pastposix-functions/*.texi: Likewise.
11082         * doc/glibc-functions/*.texi: Likewise.
11083         * doc/glibc-headers/*.texi: Likewise.
11084
11085 2011-09-11  Bruno Haible  <bruno@clisp.org>
11086
11087         unistd et al.: Don't assume <unistd.h> exists.
11088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11089         does not exist.
11090         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11091         exist. But include <stdlib.h>.
11092         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11093         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11094         symlink() does not exist.
11095         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11096         include <io.h> instead.
11097         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11098         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11099         include <direct.h> instead.
11100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11102         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11103         <io.h> instead.
11104         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11105         correctly if the system does not have hard links.
11106         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11107         <direct.h> instead.
11108         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11109         it when looking for function declarations.
11110         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11111         <direct.h> and <io.h> instead.
11112         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11113
11114 2011-09-11  Bruno Haible  <bruno@clisp.org>
11115
11116         strcase: Support for MSVC.
11117         * modules/strcase (Status, Notice): Remove obsoletion mark.
11118         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11119         * doc/posix-functions/strncasecmp.texi: Likewise.
11120
11121         strings: Don't assume <strings.h> exists.
11122         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11123         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11124         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11125         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11126
11127 2011-09-11  Bruno Haible  <bruno@clisp.org>
11128
11129         dirent: Don't assume <dirent.h> exists.
11130         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11131         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11132         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11133         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11134
11135 2011-09-11  Bruno Haible  <bruno@clisp.org>
11136
11137         Fix wint_t on MSVC.
11138         * lib/wchar.in.h (wint_t): On MSVC, override it.
11139         * lib/wctype.in.h (wint_t): Likewise.
11140         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11141         MSVC.
11142         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11143         * doc/posix-headers/wctype.texi: Likewise.
11144
11145 2011-09-11  Bruno Haible  <bruno@clisp.org>
11146
11147         sys_types: Fix typo.
11148         * lib/sys_types.in.h: Fix typo in comment.
11149         Reported by Paul Eggert.
11150
11151         Support for MSVC compiler: Ensure size_t gets defined.
11152         * modules/strings (Depends-on): Add 'sys_types'.
11153         * modules/sys_uio (Depends-on): Likewise.
11154         * lib/sys_uio.in.h: Update comment.
11155
11156         C++ tests for module 'sys_types'.
11157         * modules/sys_types-c++-tests: New file.
11158         * tests/test-sys_types-c++.cc: New file.
11159
11160         Tests for module 'sys_types'.
11161         * modules/sys_types-tests: New file.
11162         * tests/test-sys_types.c: New file.
11163
11164         New module 'sys_types'.
11165         * lib/sys_types.in.h: New file.
11166         * m4/sys_types_h.m4: New file.
11167         * modules/sys_types: New file.
11168         * doc/posix-headers/sys_types.texi: Mention the new module and the
11169         size_t problem on MSVC 9.
11170
11171 2011-09-11  Bruno Haible  <bruno@clisp.org>
11172
11173         Support for MSVC compiler: Avoid division by a literal 0.
11174         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11176         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11177         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11178         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11179         * tests/infinity.h: New file.
11180         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11181         on MSVC.
11182         * tests/test-ceilf1.c: Include infinity.h.
11183         (main): Use Infinityf.
11184         * tests/test-ceil1.c: Include infinity.h.
11185         (main): Use Infinityd.
11186         * tests/test-ceill.c: Include infinity.h.
11187         (main): Use Infinityl.
11188         * tests/test-dprintf-posix.c: Include infinity.h.
11189         (test_function): Use Infinityd.
11190         * tests/test-floorf1.c: Include infinity.h.
11191         (main): Use Infinityf.
11192         * tests/test-floor1.c: Include infinity.h.
11193         (main): Use Infinityd.
11194         * tests/test-floorl.c: Include infinity.h.
11195         (main): Use Infinityl.
11196         * tests/test-fprintf-posix.c: Include infinity.h.
11197         (test_function): Use Infinityd.
11198         * tests/test-frexp.c: Include infinity.h.
11199         (main): Use Infinityd.
11200         * tests/test-frexpl.c: Include infinity.h.
11201         (main): Use Infinityl.
11202         * tests/test-isfinite.c: Include infinity.h.
11203         (test_isfinitef): Use Infinityf.
11204         (test_isfinited): Use Infinityd.
11205         (test_isfinitel): Use Infinityl.
11206         * tests/test-isinf.c: Include infinity.h.
11207         (test_isinff): Use Infinityf.
11208         (test_isinfd): Use Infinityd.
11209         (test_isinfl): Use Infinityl.
11210         * tests/test-isnan.c: Include infinity.h.
11211         (test_float): Use Infinityf.
11212         (test_double): Use Infinityd.
11213         (test_long_double): Use Infinityl.
11214         * tests/test-isnanf.h: Include infinity.h.
11215         (main): Use Infinityf.
11216         * tests/test-isnand.h: Include infinity.h.
11217         (main): Use Infinityd.
11218         * tests/test-isnanl.h: Include infinity.h.
11219         (main): Use Infinityl.
11220         * tests/test-ldexpl.c: Include infinity.h.
11221         (main): Use Infinityl.
11222         * tests/test-printf-posix.h: Include infinity.h.
11223         (test_function): Use Infinityd.
11224         * tests/test-roundf1.c: Include infinity.h.
11225         (main): Use Infinityf.
11226         * tests/test-round1.c: Include infinity.h.
11227         (main): Use Infinityd.
11228         * tests/test-roundl.c: Include infinity.h.
11229         (main): Use Infinityl.
11230         * tests/test-signbit.c: Include infinity.h.
11231         (test_signbitf): Use Infinityf.
11232         (test_signbitd): Use Infinityd.
11233         (test_signbitl): Use Infinityl.
11234         * tests/test-snprintf-posix.h: Include infinity.h.
11235         (test_function): Use Infinityd, Infinityl.
11236         * tests/test-sprintf-posix.h: Include infinity.h.
11237         (test_function): Use Infinityd, Infinityl.
11238         * tests/test-truncf1.c: Include infinity.h.
11239         (main): Use Infinityf.
11240         * tests/test-trunc1.c: Include infinity.h.
11241         (main): Use Infinityd.
11242         * tests/test-truncl.c: Include infinity.h.
11243         (main): Use Infinityl.
11244         * tests/test-vasnprintf-posix.c: Include infinity.h.
11245         (test_function): Use Infinityd, Infinityl.
11246         * tests/test-vasprintf-posix.c: Include infinity.h.
11247         (test_function): Use Infinityd, Infinityl.
11248         * modules/ceilf-tests (Files): Add tests/infinity.h.
11249         * modules/ceil-tests (Files): Likewise.
11250         * modules/ceill-tests (Files): Likewise.
11251         * modules/dprintf-posix-tests (Files): Likewise.
11252         * modules/floorf-tests (Files): Likewise.
11253         * modules/floor-tests (Files): Likewise.
11254         * modules/floorl-tests (Files): Likewise.
11255         * modules/fprintf-posix-tests (Files): Likewise.
11256         * modules/frexp-tests (Files): Likewise.
11257         * modules/frexp-nolibm-tests (Files): Likewise.
11258         * modules/frexpl-tests (Files): Likewise.
11259         * modules/frexpl-nolibm-tests (Files): Likewise.
11260         * modules/isfinite-tests (Files): Likewise.
11261         * modules/isinf-tests (Files): Likewise.
11262         * modules/isnan-tests (Files): Likewise.
11263         * modules/isnanf-tests (Files): Likewise.
11264         * modules/isnanf-nolibm-tests (Files): Likewise.
11265         * modules/isnand-tests (Files): Likewise.
11266         * modules/isnand-nolibm-tests (Files): Likewise.
11267         * modules/isnanl-tests (Files): Likewise.
11268         * modules/isnanl-nolibm-tests (Files): Likewise.
11269         * modules/ldexpl-tests (Files): Likewise.
11270         * modules/printf-posix-tests (Files): Likewise.
11271         * modules/roundf-tests (Files): Likewise.
11272         * modules/round-tests (Files): Likewise.
11273         * modules/roundl-tests (Files): Likewise.
11274         * modules/signbit-tests (Files): Likewise.
11275         * modules/snprintf-posix-tests (Files): Likewise.
11276         * modules/sprintf-posix-tests (Files): Likewise.
11277         * modules/truncf-tests (Files): Likewise.
11278         * modules/trunc-tests (Files): Likewise.
11279         * modules/truncl-tests (Files): Likewise.
11280         * modules/vasnprintf-posix-tests (Files): Likewise.
11281         * modules/vasprintf-posix-tests (Files): Likewise.
11282         * modules/vdprintf-posix-tests (Files): Likewise.
11283         * modules/vfprintf-posix-tests (Files): Likewise.
11284         * modules/vprintf-posix-tests (Files): Likewise.
11285         * modules/vsnprintf-posix-tests (Files): Likewise.
11286         * modules/vsprintf-posix-tests (Files): Likewise.
11287         * modules/xprintf-posix-tests (Files): Likewise.
11288
11289 2011-09-11  Bruno Haible  <bruno@clisp.org>
11290
11291         Ensure pid_t gets defined.
11292         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11293         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11294         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11295         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11296         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11297         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11298         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11299         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11300         * tests/test-fcntl-h.c: Check that pid_t is defined.
11301         * tests/test-sched.c: Likewise.
11302         * tests/test-termios.c: Likewise.
11303         * tests/test-time.c: Likewise.
11304         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11305         * doc/posix-headers/signal.texi: Likewise.
11306         * doc/posix-headers/sys_types.texi: Likewise.
11307         * doc/posix-headers/time.texi: Likewise.
11308
11309 2011-09-11  Bruno Haible  <bruno@clisp.org>
11310
11311         acl: Fix compilation on Solaris 10 (older version).
11312         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11313         of ACE_EVERYONE.
11314         * lib/set-mode-acl.c (qset_acl): Likewise.
11315         Reported by Christian Jullien <eligis@orange.fr>.
11316
11317 2011-09-10  Bruno Haible  <bruno@clisp.org>
11318
11319         iconv, unsetenv: Add support for MSVC compiler.
11320         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11321         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11322
11323 2011-09-10  Bruno Haible  <bruno@clisp.org>
11324
11325         *printf: Add support for MSVC compiler.
11326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11327         handles the exception caused by the %n directive. When cross-compiling,
11328         guess no on native Windows.
11329         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11330         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11331         emulate it through vsnprintf.
11332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11333         * doc/posix-functions/dprintf.texi: Update documentation regarding
11334         MSVC 9.
11335         * doc/posix-functions/fprintf.texi: Likewise.
11336         * doc/posix-functions/printf.texi: Likewise.
11337         * doc/posix-functions/snprintf.texi: Likewise.
11338         * doc/posix-functions/sprintf.texi: Likewise.
11339         * doc/posix-functions/swprintf.texi: Likewise.
11340         * doc/posix-functions/vdprintf.texi: Likewise.
11341         * doc/posix-functions/vfprintf.texi: Likewise.
11342         * doc/posix-functions/vprintf.texi: Likewise.
11343         * doc/posix-functions/vsnprintf.texi: Likewise.
11344         * doc/posix-functions/vsprintf.texi: Likewise.
11345         * doc/glibc-functions/asprintf.texi: Likewise.
11346         * doc/glibc-functions/obstack_printf.texi: Likewise.
11347         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11348         * doc/glibc-functions/vasprintf.texi: Likewise.
11349
11350 2011-09-10  Bruno Haible  <bruno@clisp.org>
11351
11352         nocrash: Add support for native Windows.
11353         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11354
11355 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11356             Bruno Haible  <bruno@clisp.org>
11357
11358         absolute-header, include-next: Add support for MSVC compiler.
11359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11360         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11361         directory separator in #line directives.
11362         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11363         recognize also backslash as directory separator in #line directives.
11364
11365 2011-09-08  Jim Meyering  <meyering@redhat.com>
11366
11367         maint.mk: mark the post-release commit log with "maint: " prefix
11368         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11369         one-line commit-log summary.
11370
11371 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11372             Bruno Haible  <bruno@clisp.org>
11373
11374         Doc about crypt functions.
11375         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11376         systems.
11377         * doc/posix-functions/encrypt.texi: Likewise.
11378         * doc/posix-functions/setkey.texi: Likewise.
11379
11380 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11381
11382         * lib/gc.h: Fix copyright header.
11383
11384 2011-09-07  Bruno Haible  <bruno@clisp.org>
11385
11386         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11388         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11389
11390 2011-09-07  Bruno Haible  <bruno@clisp.org>
11391
11392         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11393         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11394         * lib/freopen.c: Likewise.
11395         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11396         * lib/lstat.c: Likewise.
11397         * lib/stat.c: Likewise.
11398         * lib/open.c: Use different syntax for include of <fcntl.h>.
11399         * lib/openat.c: Include fcntl.h again, explicitly.
11400
11401 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11402
11403         parse-datetime: document the newly accepted format
11404         * doc/parse-datetime.texi (Combined date and time of day items):
11405         New section.
11406
11407 2011-09-06  Bruno Haible  <bruno@clisp.org>
11408
11409         acl: Fix a test failure on newer Solaris 10 with ZFS.
11410         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11411         ENOSYS as no ACL.
11412         Reported by Jim Meyering.
11413
11414 2011-09-06  Bruno Haible  <bruno@clisp.org>
11415
11416         acl: Update for AIX >= 5.3 with NFS.
11417         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11418         ENOSYS as no ACL.
11419
11420         acl: Fix a test failure on AIX >= 5.3 with NFS.
11421         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11422         as no ACL.
11423
11424 2011-09-06  Bruno Haible  <bruno@clisp.org>
11425
11426         acl: Fix a test failure on IRIX 6.5 with NFS.
11427         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11428         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11429         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11430         * lib/copy-acl.c (qcopy_acl): Likewise.
11431
11432 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         openat: port to AIX 7.1 with large files
11435         AIX 7.1 does a "#define openat open64at" if large files are in use,
11436         so we can't simply #undef openat.  Use the orig_openat trick (similar
11437         to orig_open in lib/open.c) to work around the problem.  Problem
11438         reported by Kevin Brott for GNU tar, in the thread containing
11439         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11440         * lib/openat.c (__need_system_fcntl_h): Define first.
11441         Include <fcntl.h> and <sys/types.h> before undefining.
11442         (orig_openat) [HAVE_OPENAT]: New inline function.
11443         (openat) [HAVE_OPENAT]: Do not undef.
11444         (rpl_openat): Use orig_openat, not openat.
11445
11446 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11447             Bruno Haible  <bruno@clisp.org>
11448
11449         acl: Avoid errors on NonStop Kernel.
11450         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11451         ENOTSUP errors.
11452
11453 2011-09-05  Bruno Haible  <bruno@clisp.org>
11454
11455         acl: Clean up Solaris code.
11456         * lib/acl-internal.h: Remove no-op #if.
11457         * lib/file-has-acl.c: Likewise.
11458         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11459         * lib/copy-acl.c (qcopy_acl): Likewise.
11460
11461 2011-09-05  Bruno Haible  <bruno@clisp.org>
11462
11463         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11464         binaries built on the original Solaris 10.
11465         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11466         trivial.
11467
11468 2011-09-05  Bruno Haible  <bruno@clisp.org>
11469
11470         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11471         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11472         10.
11473         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11474         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11475         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11476         instead of acl_get, facl_get, acl_set, facl_set.
11477
11478 2011-09-05  Bruno Haible  <bruno@clisp.org>
11479
11480         copy-file: Try unit tests on more file systems.
11481         * tests/test-copy-file-1.sh: New file.
11482         * tests/test-copy-file-2.sh: New file.
11483         * modules/copy-file-tests (Files): Add them.
11484         (Makefile.am): Add them to TESTS.
11485
11486         acl: Try unit tests on more file systems.
11487         * tests/test-file-has-acl-1.sh: New file.
11488         * tests/test-file-has-acl-2.sh: New file.
11489         * tests/test-set-mode-acl-1.sh: New file.
11490         * tests/test-set-mode-acl-2.sh: New file.
11491         * tests/test-copy-acl-1.sh: New file.
11492         * tests/test-copy-acl-2.sh: New file.
11493         * modules/acl-tests (Files): Add them.
11494         (Makefile.am): Add them to TESTS.
11495
11496 2011-09-04  Bruno Haible  <bruno@clisp.org>
11497
11498         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11499         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11500         10.
11501         (OLD_ALLOW, OLD_DENY): New macros.
11502         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11503         ACE_ACCESS_ALLOWED_ACE_TYPE.
11504         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11505         ACE_ACCESS_DENIED_ACE_TYPE.
11506         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11507         (NEW_ACE_EXECUTE): Fix value.
11508         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11509         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11510         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11511         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11512         NEW_ACE_SYNCHRONIZE): New macros.
11513         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11514         instead of acl_fromtext, acl_set, facl_set.
11515         Fixes a coreutils/tests/cp/perm failure.
11516
11517 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         openat: test for fstatat (..., 0) bug
11520         Further testing with tar suggests that fstatat (..., 0)
11521         does not work in general, on AIX 7.1; see
11522         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11523         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11524         replacement fstatat (which is what older AIX releases were using
11525         anyway).
11526         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11527         use is now changed to orig_fstatat.  This was probably the right
11528         thing to do anyway.
11529         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11530         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11531         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11532         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11533         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11534         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11535         if the bug is found.
11536
11537         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11538         This tests for another fstatat bug on AIX 7.1:
11539         fstatat (AT_FDCWD, ..., 0) does not work.  See
11540         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11541         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11542         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11543         (rpl_fstatat): Adjust so that it works around either (or both)
11544         bugs if present.
11545         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11546
11547 2011-09-03  Karl Berry  <karl@gnu.org>
11548
11549         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11550         in index entries.
11551
11552 2011-09-02  Bruno Haible  <bruno@clisp.org>
11553
11554         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11555         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11556         values of AR, ARFLAGS, RANLIB.
11557         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11558
11559 2011-09-02  Bruno Haible  <bruno@clisp.org>
11560
11561         Find 'ar' program that fits with --host argument.
11562         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11563
11564 2011-09-02  Bruno Haible  <bruno@clisp.org>
11565
11566         tests: init.sh: Support any non-GNU diff.
11567         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11568         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11569         Solaris 8.
11570
11571 2011-09-02  Bruno Haible  <bruno@clisp.org>
11572
11573         tests: init.sh: work also with any non-GNU diff that supports -u
11574         * tests/init.sh: Relax check for diff -u support.
11575         Rather than checking for GNU diff via --version, simply check
11576         for support for -u itself.  Useful at least on OpenBSD 4.9,
11577         AIX 7.1, IRIX 6.5, and Solaris 10.
11578
11579 2011-09-01  Bruno Haible  <bruno@clisp.org>
11580
11581         strtoimax, strtoumax: Document problem on HP-UX 11.
11582         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11583         * doc/posix-functions/strtoumax.texi: Likewise.
11584
11585 2011-09-01  Bruno Haible  <bruno@clisp.org>
11586
11587         strtoumax: Avoid link error on OSF/1 with DTK cc.
11588         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11589         defined as a function.
11590         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11591         strtoumax is defined, not whether it is declared.
11592
11593 2011-09-01  Bruno Haible  <bruno@clisp.org>
11594
11595         strtoimax: Avoid link error on OSF/1 with DTK cc.
11596         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11597         defined as a function.
11598         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11599         strtoimax is defined, not whether it is declared.
11600
11601 2011-09-01  Bruno Haible  <bruno@clisp.org>
11602
11603         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11604         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11605         as a function.
11606         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11607         whether it is declared.
11608
11609 2011-09-01  Bruno Haible  <bruno@clisp.org>
11610
11611         imaxabs: Avoid link error on OSF/1 with DTK cc.
11612         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11613         as a function.
11614         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11615         whether it is declared.
11616
11617 2011-09-01  Bruno Haible  <bruno@clisp.org>
11618
11619         Tests for module 'strtoumax'.
11620         * modules/strtoumax-tests: New file.
11621         * tests/test-strtoumax.c: New file.
11622
11623         Tests for module 'strtoimax'.
11624         * modules/strtoimax-tests: New file.
11625         * tests/test-strtoimax.c: New file.
11626
11627         Tests for module 'imaxdiv'.
11628         * modules/imaxdiv-tests: New file.
11629         * tests/test-imaxdiv.c: New file.
11630
11631         Tests for module 'imaxabs'.
11632         * modules/imaxabs-tests: New file.
11633         * tests/test-imaxabs.c: New file.
11634
11635 2011-09-01  Bruno Haible  <bruno@clisp.org>
11636
11637         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11638         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11639         pthread_create.
11640
11641 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11642
11643         openat: work around AIX 7.1 fstatat issue
11644         This should fix the problem that was not properly fixed
11645         in the previous change, dated 2011-08-30.
11646         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11647         __need_system_stat_h defined.
11648         (orig_fstatat) [HAVE_FSTATAT]: New function.
11649         (rpl_fstatat): Go back to the old way of doing things,
11650         except call orig_fstatat instead of fstatat.
11651         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11652         Remove unnecessary check whether fstatat fills in st_size etc.
11653
11654 2011-09-01  Bruno Haible  <bruno@clisp.org>
11655
11656         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11657         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11658         just include the system's header.
11659
11660 2011-08-31  Jim Meyering  <meyering@redhat.com>
11661
11662         tests: avoid spurious assertion failure in test-float.c on ppc64
11663         * tests/test-float.c (test_long_double): Comment out an assertion,
11664         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11665         with gcc-4.4.4.
11666
11667         maint: indent with spaces, not TABs
11668         I need to get in the habit of running gnulib's "make check".
11669         Both of these would have been caught.
11670         * m4/largefile.m4: Indent with spaces, not TABs.
11671         * lib/parse-datetime.y (iso_8601_time): Likewise.
11672         Spotted by Pádraig Brady.
11673
11674         test-parse-datetime.c: accommodate a relatively strict gcc warning
11675         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11676         to avoid a warning from gcc's -Werror=missing-declarations.
11677         Insert a few spaces-before-funcall-parenthesis.
11678
11679 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11680
11681         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11682         The parser now accepts ISO 8601 date-time strings with "T" as the
11683         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11684         with a space between the date and time strings.  Now it also parses
11685         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11686         variants like "2004-02-29T16:21:42.333-07:00"
11687         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11688         of day representation using the 'T' separator character.
11689         * doc/parse-datetime.texi (General date syntax): replace use of
11690         deprecated --iso-8601 option with --rfc-3339 in example of date
11691         command output formats that can be parsed.
11692         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11693         lib/parse-datetime.y.
11694         (gmt_offset): New function.
11695         (main): Add additional test cases to validate ISO8601 extended
11696         date and time of day parsing.
11697
11698 2011-08-31  Bruno Haible  <bruno@clisp.org>
11699
11700         freopen: Documentation.
11701         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11702         name.
11703         Reported by Claudio Bley <claudio.bley@gmail.com>.
11704
11705 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11706
11707         freopen: Don't crash if the filename argument is NULL.
11708         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11709         NULL.
11710
11711 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11712
11713         openat: work around AIX 7.1 fstatat bug
11714         Problem reported by Kevin Brott for GNU tar, in the thread containing
11715         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11716         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11717         FSTATAT_ST_SIZE_ETC_BROKEN.
11718         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11719         rpl_fstatat.
11720         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11721         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11722         AC_CHECK_FUNCS_ONCE for fstatat.
11723         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11724         fchmodat, mkdirat, openat and unlinkat.
11725
11726 2011-08-30  Bruno Haible  <bruno@clisp.org>
11727
11728         Avoid endless recursions if config.h includes some header files.
11729         * lib/fopen.c (__need_FILE): Define already before including config.h.
11730         * lib/freopen.c (__need_FILE): Likewise.
11731         * lib/open.c (__need_system_fcntl_h): Likewise.
11732         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11733         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11734         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11735
11736 2011-08-25  Karl Berry  <karl@gnu.org>
11737
11738         * config/srclist.txt (ylwrap): new try.
11739         * build-aux/ylwrap: new file.
11740
11741 2011-08-23  Bruno Haible  <bruno@clisp.org>
11742
11743         tmpdir: Use a good default directory on native Windows.
11744         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11745         (P_tmpdir): Default to _P_tmpdir on native Windows.
11746         (path_search): On native Windows, try the value returned by GetTempPath
11747         before trying P_tmpdir.
11748         * modules/tmpdir (Depends-on): Add pathmax.
11749         Suggested by John Darrington <john@darrington.wattle.id.au>.
11750
11751 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11752
11753         doc: fix typo in README-release
11754         * top/README-release: Capitalize first word of a sentence.
11755
11756 2011-08-19  Jim Meyering  <meyering@redhat.com>
11757
11758         fts: do not exhaust memory when processing million-entry directories
11759         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11760         directory would require about 256*N bytes of memory.  Thus, it was
11761         easy to construct a directory too large to be processed by any of
11762         those tools.  With this change, fts' maximum memory utilization is
11763         now limited to around 30MB.
11764         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11765         (fts_read): When we've processed the final entry (i.e., when
11766         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11767         using the parent entry to read any remaining entries.  Dispatch
11768         depending on what fts_build returns:
11769         - NULL+stop, aka failure: stop
11770         - NULL otherwise: move up in the dir hierarchy
11771         - non-NULL: handle this new entry
11772         (fts_build): Declare and use new local, continue_readdir.
11773         Prepare to be called from fts_read, when the entries
11774         from a partially-read directory have just been exhausted.
11775         In that case, we'll skip the opendir and instead use the parent's
11776         fts_dirp and derive dir_fd from that.
11777         Finally, in the readdir loop, if we read max_entries entries,
11778         exit the loop ensuring *not* to call closedir.  This is required
11779         so that fts_dirp can be reused on a subsequent call.
11780         Prompted by Ben England's report of memory exhaustion in find
11781         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11782
11783         maint: fts: move decl of `dp' down into while loop; split a long line
11784         * lib/fts.c (fts_build): No semantic change.
11785
11786         fts: add/use new struct member, fts_dirp
11787         We are about to use this to manage any directory with
11788         too many entries to read all of them into memory at once.
11789         To do that, we'll need to save the DIR* pointer in each
11790         affected FTSENT struct.
11791         * lib/fts_.h: Include <dirent.h>.
11792         (struct FTSENT) [fts_dirp]: New member.
11793         * lib/fts.c (closedir_and_clear): Define.
11794         Use it in place of closedir so that we are sure to
11795         clear the new fts_dirp member when done with it.
11796         (fts_alloc): Initialize the new member.
11797         (fts_lfree): Free, if needed.
11798
11799         maint: fts: give __opendir2 a new parameter and rename
11800         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11801         than surreptitiously using sole caller's "dir_fd".
11802         (fts_opendir): Rename from __opendir2.
11803
11804         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11805         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11806
11807         maint: fts.c: correct off-by-one indentation
11808         * lib/fts.c (fts_build): Correct indentation, change style
11809         of a couple of block comments, and bracing style.
11810
11811         maint: fts.c: move __opendir2 #define "up" out of function body
11812         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11813
11814         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11815         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11816         out for a long time and besides was useful only on BSD systems.
11817
11818 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11819
11820         regex: port to Stratus OpenVOS
11821         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11822         define to empty, rather than attempting nonportable optimizations.
11823         Problem reported by Paul Green in:
11824         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11825         and fix suggested by Eric Blake in:
11826         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11827
11828 2011-08-17  Eric Blake  <eblake@redhat.com>
11829
11830         getcwd: fix test failures on mingw
11831         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11832         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11833         test if long directory cannot be created, and allow mingw errno.
11834
11835         getcwd-lgpl: fix m4 to match relaxed test for BSD
11836         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11837         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11838         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11839         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11840         signature problem.
11841
11842         getcwd: fix compilation on mingw64
11843         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11844         getcwd.
11845         Reported by Marc-André Lureau.
11846
11847         pipe2: silence compiler warning
11848         * lib/pipe2.c (pipe2): Hide label if it is not used.
11849
11850 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11851
11852         relocatable-prog: fix link error
11853         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11854         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11855         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11856         into modules/relocatable-lib without noticing that
11857         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11858         also needs to build relocatable.c.
11859
11860 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11861
11862         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11864         shell code: it contained a 'break' that was not in a loop.
11865         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11866         via a shell-language loop; this may have been true in old Autoconf
11867         versions, but it's not true in Autoconf 2.68.  I found this bug
11868         when testing coreutils git on Solaris 8, whose shell complains
11869         about the syntax error.
11870
11871 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11872
11873         * lib/base64.c: Fix comment to reference RFC 4648.
11874         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11875         <gvtulder@gmail.com>.
11876
11877 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11878
11879         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11880
11881         po/Makefile.in.in: fix make -q problem
11882         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11883         rule, since there's no file named 'check-macro-version' and its
11884         use as a file breaks make -q.
11885         (all): Don't depend on check-macro-version.
11886         (CHECK_MACRO_VERSION): New macro.
11887         (stamp-po): Use it.
11888
11889         configmake: fix make -q problem
11890         * modules/configmake (configmake.h): Update configmake.h's time stamp
11891         even if the file does not change.  Otherwise, 'make -q' fails.
11892         Problem reported by Simon Josefsson in
11893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11894
11895 2011-08-11  Jim Meyering  <meyering@redhat.com>
11896
11897         git-version-gen: correct the advice in a comment
11898         * build-aux/git-version-gen: Correct comment.
11899         Don't recommend to list .tarball-version in .gitignore.
11900
11901 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11902
11903         base64: fix off-by-one buffer size bug
11904         Problem and (trivial) fix reported by Gijs van Tulder in
11905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11906         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11907         * tests/test-base64.c (main): Catch the bug.
11908
11909 2011-08-10  Eric Blake  <eblake@redhat.com>
11910
11911         closein: correct comments
11912         * lib/closein.c (close_stdin): Improve comments.
11913
11914 2011-08-09  Bruno Haible  <bruno@clisp.org>
11915
11916         More tests for 'fseeko'.
11917         * tests/test-fseeko3.c: New file, from Eric Blake.
11918         * tests/test-fseeko3.sh: New file.
11919         * modules/fseeko-tests (Files): Add them.
11920         (TESTS): Add test-fseeko3.sh.
11921         (check_PROGRAMS): Add test-fseeko3.
11922
11923 2011-08-09  Eric Blake  <eblake@redhat.com>
11924
11925         fseeko: remove unneeded hack
11926         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11927
11928         fseeko: fix bug on glibc
11929         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11930         Reported by John W. Eaton.
11931
11932 2011-08-08  Bruno Haible  <bruno@clisp.org>
11933
11934         unictype/base: Fix interoperability with preinstalled libunistring.
11935         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11936         Reported by Simon Josefsson.
11937
11938 2011-08-08  Bruno Haible  <bruno@clisp.org>
11939
11940         iswblank: Detect declaration correctly.
11941         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11942         AC_CHECK_DECLS invocation.
11943
11944 2011-08-08  Bruno Haible  <bruno@clisp.org>
11945
11946         tcgetsid: Detect declaration correctly.
11947         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11948         AC_CHECK_DECLS invocation.
11949         Reported by Simon Josefsson.
11950
11951 2011-08-08  Eric Blake  <eblake@redhat.com>
11952
11953         largefile: fix typo that regressed large file support
11954         * modules/largefile (configure.ac-early): Fix section name.
11955
11956 2011-08-06  Karl Berry  <karl@gnu.org>
11957
11958         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11959         a separate module.
11960
11961 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11962
11963         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11964         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11965         get prototype for free.
11966
11967 2011-08-04  Bruno Haible  <bruno@clisp.org>
11968
11969         Tests for module 'pathmax'.
11970         * modules/pathmax-tests: New file.
11971         * tests/test-pathmax.c: New file.
11972
11973         canonicalize-lgpl: Support larger filenames on the Hurd.
11974         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11975         Reported by Paul Eggert.
11976
11977         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11978         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11979         * lib/chdir-long.h: Include pathmax.h.
11980         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11981         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11982         (PATH_MAX): Remove code that is done by pathmax.h.
11983         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11984         * lib/tmpfile.c: Add a comment.
11985         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11986         * modules/chdir-long (Depends-on): Add pathmax.
11987         * modules/getcwd (Depends-on): Add pathmax.
11988         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11989         is not defined.
11990         * doc/posix-headers/limits.texi: Mention the pathmax module.
11991         * NEWS: Mention the change.
11992
11993 2011-08-02  Bruno Haible  <bruno@clisp.org>
11994
11995         pthread_sigmask: Actually use results of gl_THREADLIB.
11996         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11997         gl_THREADLIB, not gl_[]THREADLIB.
11998         Reported by Eric Blake.
11999
12000 2011-08-02  Jim Meyering  <meyering@redhat.com>
12001
12002         maint.mk: relax the default _gl_TS_function_match regexp
12003         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12004         space between function name and "(" in an "extern" declaration.
12005         That would fail to match a decl with no space there: extern void foo();
12006
12007 2011-07-31  Iain Nicol  <iain@thenicols.net>
12008
12009         git-version-gen: document that EXTRA_DIST must include .version
12010         * build-aux/git-version-gen: In the how-to-use comment, document
12011         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12012         will fail when run from an unpacked distribution tarball.
12013
12014 2011-08-01  Bruno Haible  <bruno@clisp.org>
12015
12016         wctype-h: Fix last change.
12017         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12018         REPLACE_TOWLOWER to 0.
12019         Reported by Sam Steingold <sds@gnu.org>.
12020
12021 2011-07-31  Bruno Haible  <bruno@clisp.org>
12022
12023         frexpl: Update autoconf test.
12024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12025         according to changes of 2011-06-20.
12026
12027 2011-07-31  Bruno Haible  <bruno@clisp.org>
12028
12029         sys_utsname: Add support for Minix.
12030         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12031         <sys/utsname.h>.
12032         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12033         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12034
12035 2011-07-31  Bruno Haible  <bruno@clisp.org>
12036
12037         strings: Add support for Minix.
12038         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12039         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12040         * doc/posix-headers/strings.texi: Document the Minix problem.
12041
12042 2011-07-31  Bruno Haible  <bruno@clisp.org>
12043
12044         wctype-h: Add support for Minix.
12045         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12046         REPLACE_TOWLOWER.
12047         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12048         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12049         REPLACE_ISWCNTRL.
12050
12051 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12054         This is a performance improvement for 64-bit hosts: it causes the
12055         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12056
12057 2011-07-31  Bruno Haible  <bruno@clisp.org>
12058
12059         stdioext: Add support for Minix.
12060         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12061         * lib/fpurge.c (fpurge): Likewise.
12062         * lib/freadahead.c (freadahead): Likewise.
12063         * lib/freadable.c (freadable): Likewise.
12064         * lib/freading.c (freading): Likewise.
12065         * lib/freadptr.c (freadptr): Likewise.
12066         * lib/freadseek.c (freadptrinc): Likewise.
12067         * lib/fseeko.c (rpl_fseeko): Likewise.
12068         * lib/fseterr.c (fseterr): Likewise.
12069         * lib/fwritable.c (fwritable): Likewise.
12070         * lib/fwriting.c (fwriting): Likewise.
12071         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12072         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12073
12074 2011-07-31  Bruno Haible  <bruno@clisp.org>
12075
12076         errno: Port to Minix.
12077         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12078         ECONNABORTED are defined.
12079         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12080         GNULIB_defined_ECONNABORTED): New macros.
12081         * lib/strerror-override.h (strerror_override): Test also
12082         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12083         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12084         ECONNABORTED.
12085         * doc/posix-headers/errno.texi: Mention the Minix problem.
12086
12087 2011-07-31  Bruno Haible  <bruno@clisp.org>
12088
12089         Work around declaration collisions on Minix.
12090         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12091         defined, set REPLACE_MBSINIT.
12092         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12093         defined, set REPLACE_MBRTOWC.
12094         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12095         set REPLACE_MBRLEN.
12096         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12097         defined, set REPLACE_MBSRTOWCS.
12098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12099         defined, set REPLACE_WCRTOMB.
12100         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12101         defined, set REPLACE_WCSRTOMBS.
12102
12103 2011-07-31  Bruno Haible  <bruno@clisp.org>
12104
12105         Add support for Minix with ACK compiler.
12106         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12107         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12108         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12109
12110 2011-07-31  Bruno Haible  <bruno@clisp.org>
12111
12112         Documentation about Minix.
12113         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12114         * doc/glibc-headers/*.texi: Likewise.
12115         * doc/posix-functions/*.texi: Likewise.
12116         * doc/glibc-functions/*.texi: Likewise.
12117
12118 2011-07-31  Bruno Haible  <bruno@clisp.org>
12119
12120         snippet/warn-on-use: Fix indentation.
12121         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12122
12123 2011-07-25  Jim Meyering  <meyering@redhat.com>
12124
12125         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12126         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12127         commands.
12128
12129 2011-07-27  Jim Meyering  <meyering@redhat.com>
12130
12131         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12132         * top/maint.mk (gl_extract_significant_defines_): Now that
12133         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12134         gnulib/lib/signal.in.h, and now that we recommend to
12135         define-if-undefined those two symbols in application code,
12136         we must filter them out of the "significant" list.
12137         This avoids a "make syntax-check" failure in coreutils.
12138
12139 2011-07-26  Eric Blake  <eblake@redhat.com>
12140
12141         warnings: add comments about previous patch
12142         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12143         * m4/include_next.m4: Likewise.
12144         * m4/warn-on-use.m4: Likewise.
12145         * m4/warnings.m4: Likewise, and simplify use.
12146         Suggested by Stefano Lattarini.
12147
12148         include-next, warnings: support older autoconf
12149         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12150         AS_VAR_PUSHDEF in a way that works with older autoconf.
12151         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12152         Reported by Daniel P. Berrange.
12153
12154 2011-07-25  Bruno Haible  <bruno@clisp.org>
12155
12156         fseek, ftell: Fix doc.
12157         * doc/posix-functions/fseek.texi: Reword statement about
12158         AC_SYS_LARGEFILE.
12159         * doc/posix-functions/ftell.texi: Likewise.
12160
12161 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12162             Bruno Haible  <bruno@clisp.org>
12163
12164         Add dependencies to the 'largefile' module.
12165         * modules/fopen (Depends-on): Add 'largefile'.
12166         * modules/freopen (Depends-on): Likewise.
12167         * modules/fseeko (Depends-on): Likewise.
12168         * modules/ftello (Depends-on): Likewise.
12169         * modules/glob (Depends-on): Likewise.
12170         * modules/lseek (Depends-on): Likewise.
12171         * modules/lstat (Depends-on): Likewise.
12172         * modules/mkostemp (Depends-on): Likewise.
12173         * modules/mkostemps (Depends-on): Likewise.
12174         * modules/mkstemp (Depends-on): Likewise.
12175         * modules/mkstemps (Depends-on): Likewise.
12176         * modules/open (Depends-on): Likewise.
12177         * modules/openat (Depends-on): Likewise.
12178         * modules/pread (Depends-on): Likewise.
12179         * modules/pwrite (Depends-on): Likewise.
12180         * modules/scandir (Depends-on): Likewise.
12181         * modules/stat (Depends-on): Likewise.
12182         * modules/tmpfile (Depends-on): Likewise.
12183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12184         since the containing module now depends on the largefile module.
12185         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12186         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12187         off_t is fixed by gnulib.
12188         * doc/posix-functions/freopen.texi: Likewise.
12189         * doc/posix-functions/fseeko.texi: Likewise.
12190         * doc/posix-functions/fstatat.texi: Likewise.
12191         * doc/posix-functions/ftello.texi: Likewise.
12192         * doc/posix-functions/glob.texi: Likewise.
12193         * doc/posix-functions/lseek.texi: Likewise.
12194         * doc/posix-functions/lstat.texi: Likewise.
12195         * doc/posix-functions/mkstemp.texi: Likewise.
12196         * doc/posix-functions/open.texi: Likewise.
12197         * doc/posix-functions/openat.texi: Likewise.
12198         * doc/posix-functions/pread.texi: Likewise.
12199         * doc/posix-functions/pwrite.texi: Likewise.
12200         * doc/posix-functions/scandir.texi: Likewise.
12201         * doc/posix-functions/stat.texi: Likewise.
12202         * doc/posix-functions/tmpfile.texi: Likewise.
12203         * doc/glibc-functions/mkostemp.texi: Likewise.
12204         * doc/glibc-functions/mkostemps.texi: Likewise.
12205         * doc/glibc-functions/mkstemps.texi: Likewise.
12206
12207 2011-07-25  Bruno Haible  <bruno@clisp.org>
12208
12209         fcntl: Move AC_LIBOBJ invocation to module description.
12210         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12211         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12212
12213         fcntl: Remove call-in from fchdir.m4.
12214         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12216
12217         dup3: Remove potential call-in from fchdir.m4.
12218         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12220
12221         dup2: Move AC_LIBOBJ invocation to module description.
12222         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12223         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12224         Don't invoke AC_LIBOBJ.
12225         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12226
12227         dup2: Remove call-in from fchdir.m4.
12228         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12230
12231         fclose: Move AC_LIBOBJ invocation to module description.
12232         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12233         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12234         to 1.
12235         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12236
12237         fclose: Remove call-in from close.m4.
12238         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12239         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12240
12241         close: Move AC_LIBOBJ invocation to module description.
12242         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12243         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12244         1.
12245         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12246
12247         close: Remove call-in from fchdir.m4.
12248         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12250
12251         open: Move AC_LIBOBJ invocation to module description.
12252         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12253         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12254         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12255
12256         open: Remove call-in from fchdir.m4.
12257         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12259
12260         fchdir: Start to remove gl_REPLACE_* idiom.
12261         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12262         (gl_FUNC_FCHDIR): Invoke it.
12263
12264 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12265
12266         * lib/ftell.c (ftell): Comment out cast.
12267
12268         close: use gl_REPLACE_FCLOSE only if defined
12269         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12270         is defined.  The close module doesn't depend on the fclose module
12271         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12273         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12274
12275 2011-07-24  Jim Meyering  <meyering@redhat.com>
12276
12277         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12278         * tests/test-select.h (test_function): Declare as "static".
12279
12280 2011-07-24  Bruno Haible  <bruno@clisp.org>
12281
12282         doc: Mention the effects of AC_SYS_LARGEFILE.
12283         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12284         on this function.
12285         * doc/posix-functions/aio_error.texi: Likewise.
12286         * doc/posix-functions/aio_fsync.texi: Likewise.
12287         * doc/posix-functions/aio_read.texi: Likewise.
12288         * doc/posix-functions/aio_return.texi: Likewise.
12289         * doc/posix-functions/aio_suspend.texi: Likewise.
12290         * doc/posix-functions/aio_write.texi: Likewise.
12291         * doc/posix-functions/fgetpos.texi: Likewise.
12292         * doc/posix-functions/fopen.texi: Likewise.
12293         * doc/posix-functions/freopen.texi: Likewise.
12294         * doc/posix-functions/fsetpos.texi: Likewise.
12295         * doc/posix-functions/fstatvfs.texi: Likewise.
12296         * doc/posix-functions/ftruncate.texi: Likewise.
12297         * doc/posix-functions/ftw.texi: Likewise.
12298         * doc/posix-functions/getrlimit.texi: Likewise.
12299         * doc/posix-functions/glob.texi: Likewise.
12300         * doc/posix-functions/lio_listio.texi: Likewise.
12301         * doc/posix-functions/lockf.texi: Likewise.
12302         * doc/posix-functions/mkstemp.texi: Likewise.
12303         * doc/posix-functions/mmap.texi: Likewise.
12304         * doc/posix-functions/nftw.texi: Likewise.
12305         * doc/posix-functions/openat.texi: Likewise.
12306         * doc/posix-functions/opendir.texi: Likewise.
12307         * doc/posix-functions/posix_fadvise.texi: Likewise.
12308         * doc/posix-functions/posix_fallocate.texi: Likewise.
12309         * doc/posix-functions/pread.texi: Likewise.
12310         * doc/posix-functions/pwrite.texi: Likewise.
12311         * doc/posix-functions/readdir.texi: Likewise.
12312         * doc/posix-functions/readdir_r.texi: Likewise.
12313         * doc/posix-functions/rewinddir.texi: Likewise.
12314         * doc/posix-functions/scandir.texi: Likewise.
12315         * doc/posix-functions/seekdir.texi: Likewise.
12316         * doc/posix-functions/setrlimit.texi: Likewise.
12317         * doc/posix-functions/statvfs.texi: Likewise.
12318         * doc/posix-functions/telldir.texi: Likewise.
12319         * doc/posix-functions/tmpfile.texi: Likewise.
12320         * doc/posix-functions/truncate.texi: Likewise.
12321         * doc/glibc-functions/fallocate.texi: Likewise.
12322         * doc/glibc-functions/fstatfs.texi: Likewise.
12323         * doc/glibc-functions/fts_children.texi: Likewise.
12324         * doc/glibc-functions/fts_read.texi: Likewise.
12325         * doc/glibc-functions/getdirentries.texi: Likewise.
12326         * doc/glibc-functions/mkostemp.texi: Likewise.
12327         * doc/glibc-functions/mkostemps.texi: Likewise.
12328         * doc/glibc-functions/mkstemps.texi: Likewise.
12329         * doc/glibc-functions/preadv.texi: Likewise.
12330         * doc/glibc-functions/pwritev.texi: Likewise.
12331         * doc/glibc-functions/sendfile.texi: Likewise.
12332         * doc/glibc-functions/statfs.texi: Likewise.
12333
12334 2011-07-24  Bruno Haible  <bruno@clisp.org>
12335
12336         doc: Fix typo.
12337         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12338
12339 2011-07-24  Bruno Haible  <bruno@clisp.org>
12340
12341         doc: Mention fsusage.
12342         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12343
12344 2011-07-24  Bruno Haible  <bruno@clisp.org>
12345
12346         doc: Mention new glibc headers and functions.
12347         * doc/glibc-headers/gshadow.texi: New file.
12348         * doc/glibc-functions/endsgent.texi: New file.
12349         * doc/glibc-functions/fgetsgent.texi: New file.
12350         * doc/glibc-functions/fgetsgent_r.texi: New file.
12351         * doc/glibc-functions/getsgent.texi: New file.
12352         * doc/glibc-functions/getsgent_r.texi: New file.
12353         * doc/glibc-functions/getsgnam.texi: New file.
12354         * doc/glibc-functions/getsgnam_r.texi: New file.
12355         * doc/glibc-functions/putsgent.texi: New file.
12356         * doc/glibc-functions/setsgent.texi: New file.
12357         * doc/glibc-functions/sgetsgent.texi: New file.
12358         * doc/glibc-functions/sgetsgent_r.texi: New file.
12359         * doc/glibc-functions/malloc_info.texi: New file.
12360         * doc/glibc-functions/preadv.texi: New file.
12361         * doc/glibc-functions/pwritev.texi: New file.
12362         * doc/glibc-functions/register_printf_modifier.texi: New file.
12363         * doc/glibc-functions/register_printf_specifier.texi: New file.
12364         * doc/glibc-functions/register_printf_type.texi: New file.
12365         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12366         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12367         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12368         * doc/glibc-functions/pthread_getname_np.texi: New file.
12369         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12370         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12371         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12372         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12373         * doc/glibc-functions/pthread_setname_np.texi: New file.
12374         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12375         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12376         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12377         * doc/glibc-functions/qsort_r.texi: New file.
12378         * doc/glibc-functions/quick_exit.texi: New file.
12379         * doc/glibc-functions/syncfs.texi: New file.
12380         * doc/gnulib.texi: Include them.
12381         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12382         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12383         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12384         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12385         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12386         * doc/glibc-functions/execvpe.texi: Likewise.
12387
12388 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12389
12390         ftell: don't include <unistd.h>
12391         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12392         guaranteed to define off_t, and the ftell module depends on the
12393         stdio module.
12394
12395         ftell: do not assume wraparound signed arithmetic
12396         * lib/ftell.c: Include <limits.h>.
12397         (ftell): Don't assume wraparound signed arithmetic.
12398
12399 2011-07-24  Bruno Haible  <bruno@clisp.org>
12400
12401         close: No longer depend on module 'fclose'.
12402         * modules/close (Depends-on): Remove fclose.
12403         * NEWS: Mention the change.
12404         Suggested by Sam Steingold <sds@gnu.org>.
12405
12406 2011-07-24  Bruno Haible  <bruno@clisp.org>
12407
12408         fsusage: Enable large volume support on AIX >= 5.2.
12409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12410         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12411         instead of STAT_STATVFS.
12412         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12413
12414         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12415         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12416         f_blocks field only on MacOS X.
12417
12418         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12420         * modules/fsusage (Depends-on): Add largefile.
12421
12422 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12423
12424         * README: Modernize discussion of signed integers.
12425         Assuming overflow wraparound is no longer safe.
12426         Mention ones' complement and signed magnitude.
12427
12428 2011-07-22  Bruno Haible  <bruno@clisp.org>
12429
12430         select tests, pselect tests: Refactor.
12431         * tests/test-select.h: New file, extracted from tests/test-select.c.
12432         (select_fn): New type.
12433         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12434         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12435         test_pipe): Add my_select argument.
12436         (test_function): Renamed from main. Add my_select argument.
12437         * tests/test-select.c: Move most code to tests/test-select.h. Include
12438         test-select.h.
12439         * modules/select-tests (Files): Add tests/test-select.h.
12440         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12441         (my_select, main): New functions.
12442         * modules/pselect-tests (Files): Add tests/test-select.h,
12443         tests/macros.h, tests/signature.h.
12444         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12445         (configure.ac): Check for <sys/wait.h>.
12446
12447 2011-07-22  Bruno Haible  <bruno@clisp.org>
12448
12449         sys_select tests: Check the signature of FD_*.
12450         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12451         signature tests from here...
12452         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12453         here.
12454         * modules/sys_select-tests (Files): Add tests/signature.h.
12455
12456 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12457
12458         largefile: new module, replacing large-inode
12459         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12460         * MODULES.html.sh: Add largefile, remove large-inode.
12461         * modules/largefile, m4/largefile.m4: New files.
12462         * modules/large-inode, m4/large-inode.m4: Remove.
12463
12464         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12466         implementations that use only 32 bits to count blocks.
12467         On typical hosts with 1024-byte blocks, this fails with file
12468         systems as small as 4 TiB.  Problem reported by Herb Wartens
12469         <http://debbugs.gnu.org/9140> and this should also fix a similar
12470         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12471
12472         large-inode: New module
12473         * MODULES.html.sh: Add it.
12474         * modules/large-inode, m4/large-inode.m4: New files.
12475
12476         extensions: Enable extensions on MacOS X 10.5 and later.
12477         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12478
12479 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12480
12481         file-has-acl: use acl_extended_file_nofollow if available
12482         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12483         (acl_extended_file): New macro.
12484         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12485         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12486
12487 2011-07-21  Bruno Haible  <bruno@clisp.org>
12488
12489         Declare system functions in a way that works with C++.
12490         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12491         declare fdopendir as extern "C".
12492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12493         declare frexpl as extern "C".
12494         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12495         declare gai_strerror as extern "C".
12496         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12497         programs, declare gai_strerror as extern "C".
12498         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12499         declare getlogin_r as extern "C".
12500         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12501         as extern "C".
12502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12503         declare ldexpl as extern "C".
12504         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12505         as extern "C".
12506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12507         program, declare getmntinfo as extern "C".
12508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12509         stpncpy as extern "C".
12510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12511         program, declare __xpg_strerror_r as extern "C".
12512         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12513         strndup as extern "C".
12514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12515         declare memset and bzero as extern "C".
12516         Reported by Sam Steingold <sds@gnu.org>.
12517
12518 2011-07-12  Jim Meyering  <meyering@redhat.com>
12519
12520         maint.mk: prohibit inclusion of "verify.h" without use
12521         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12522
12523 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12524
12525         timer-time: A new module to check for timer_settime()
12526         * m4/timer_time.m4: Check for the posix function.
12527         * modules/timer-time: Add the new module.
12528         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12529         Mention it.
12530
12531 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12532             Bruno Haible  <bruno@clisp.org>
12533
12534         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12535         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12536         not defined, assume POSIX threads and look for pthread_sigmask in
12537         $LIBS, without changing $CPPFLAGS.
12538
12539 2011-07-19  Bruno Haible  <bruno@clisp.org>
12540
12541         strstr: Update cross-compilation guess.
12542         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12543         CPUs, guess no, in view of glibc
12544         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12545         Suggested by Eric Blake. Reported by Reuben Thomas.
12546
12547 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12548
12549         getopt-gnu: suppress core dumps from detection code
12550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12551         to suppress core dumps that may well occur on glibc systems.
12552         * modules/getopt-gnu: Depend on nocrash.
12553
12554 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12555
12556         pthread_sigmask: ensure usleep is declared
12557         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12558         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12559
12560 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12561
12562         doc: Document NonStop portability issues.
12563         * doc/posix-functions/sigaction.texi (sigaction):
12564         * doc/posix-headers/signal.texi (signal.h):
12565         Document NonStop.  See Joachim Schmitz in
12566         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12567
12568 2011-07-15  Bruno Haible  <bruno@clisp.org>
12569
12570         ffsl, ffsll: Avoid unportable behaviour.
12571         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12572
12573 2011-07-15  Bruno Haible  <bruno@clisp.org>
12574
12575         ffs: More tests.
12576         * tests/test-ffs.c (NBITS): New macro.
12577         (main): Add more tests.
12578         * tests/test-ffsl.c (NBITS): New macro.
12579         (main): Add more tests.
12580         * tests/test-ffsll.c (NBITS): New macro.
12581         (main): Add more tests.
12582
12583 2011-07-15  Eric Blake  <eblake@redhat.com>
12584
12585         ffsl, ffsll: new modules
12586         * modules/ffsl: New file.
12587         * modules/ffsll: Likewise.
12588         * m4/ffsl.m4: Likewise.
12589         * m4/ffsll.m4: Likewise.
12590         * lib/ffsl.c: Likewise.
12591         * lib/ffsl.h: Likewise.
12592         * lib/ffsll.c: Likewise.
12593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12594         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12595         * modules/string (Makefile.am): Substitute witnesses.
12596         * lib/strings.in.h (ffsl, ffsll): Declare.
12597         * modules/ffsl-tests: New test file.
12598         * modules/ffsll-tests: Likewise.
12599         * tests/test-ffsl.c: Likewise.
12600         * tests/test-ffsll.c: Likewise.
12601         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12602         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12603         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12604
12605         ffs: fix m4 prerequisite
12606         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12607
12608         ffs: avoid undefined behavior
12609         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12610         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12611         Reported by Bruno Haible.
12612
12613 2011-07-12  Bruno Haible  <bruno@clisp.org>
12614
12615         pthread_sigmask: Rely on module 'threadlib'.
12616         * modules/pthread_sigmask (Depends-on): Add threadlib.
12617         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12618         is defined.
12619
12620 2011-07-12  Bruno Haible  <bruno@clisp.org>
12621
12622         regex: Depend on module 'strcase'.
12623         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12624
12625 2011-07-12  Jim Meyering  <meyering@redhat.com>
12626
12627         warn-on-use: fix typo in file name
12628         * modules/snippet/warn-on-use (Files): Correct file name:
12629         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12630
12631 2011-07-12  Bruno Haible  <bruno@clisp.org>
12632
12633         strings: Document module.
12634         * doc/posix-headers/strings.texi: Mention module 'strings'.
12635
12636 2011-07-12  Bruno Haible  <bruno@clisp.org>
12637
12638         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12639         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12640         (Files, Makefile.am): Update.
12641         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12642         * modules/stdlib (Depends-on): Update.
12643
12644 2011-07-12  Bruno Haible  <bruno@clisp.org>
12645
12646         * NEWS: Mention the changes.
12647
12648         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12649         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12650         (Files, Makefile.am): Update.
12651         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12652         * modules/arpa_inet (Depends-on): Update.
12653         * modules/ctype (Depends-on): Update.
12654         * modules/dirent (Depends-on): Update.
12655         * modules/fcntl-h (Depends-on): Update.
12656         * modules/glob (Depends-on): Update.
12657         * modules/iconv-h (Depends-on): Update.
12658         * modules/inttypes-incomplete (Depends-on): Update.
12659         * modules/langinfo (Depends-on): Update.
12660         * modules/locale (Depends-on): Update.
12661         * modules/math (Depends-on): Update.
12662         * modules/netdb (Depends-on): Update.
12663         * modules/poll-h (Depends-on): Update.
12664         * modules/pty (Depends-on): Update.
12665         * modules/search (Depends-on): Update.
12666         * modules/signal (Depends-on): Update.
12667         * modules/spawn (Depends-on): Update.
12668         * modules/stdio (Depends-on): Update.
12669         * modules/stdlib (Depends-on): Update.
12670         * modules/string (Depends-on): Update.
12671         * modules/strings (Depends-on): Update.
12672         * modules/sys_file (Depends-on): Update.
12673         * modules/sys_ioctl (Depends-on): Update.
12674         * modules/sys_select (Depends-on): Update.
12675         * modules/sys_socket (Depends-on): Update.
12676         * modules/sys_stat (Depends-on): Update.
12677         * modules/sys_time (Depends-on): Update.
12678         * modules/sys_times (Depends-on): Update.
12679         * modules/sys_utsname (Depends-on): Update.
12680         * modules/sys_wait (Depends-on): Update.
12681         * modules/termios (Depends-on): Update.
12682         * modules/time (Depends-on): Update.
12683         * modules/unistd (Depends-on): Update.
12684         * modules/wchar (Depends-on): Update.
12685         * modules/wctype-h (Depends-on): Update.
12686         * MODULES.html.sh (Support for building libraries and executables):
12687         Update.
12688
12689         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12690         * modules/snippet/unused-parameter: Renamed from
12691         modules/unused-parameter.
12692         (Files, Makefile.am): Update.
12693         * build-aux/snippet/unused-parameter.h: Renamed from
12694         build-aux/unused-parameter.h.
12695         * modules/selinux-h (Depends-on): Update.
12696         * modules/unistr/base (Depends-on): Update.
12697         * MODULES.html.sh (Core language properties): Update.
12698
12699         Rename module 'link-warning' to 'snippet/link-warning'.
12700         * modules/snippet/link-warning: Renamed from modules/link-warning.
12701         (Files, Makefile.am): Update.
12702         * build-aux/snippet/link-warning.h: Renamed from
12703         build-aux/link-warning.h.
12704         * MODULES.html.sh (Support for building libraries and executables):
12705         Update.
12706
12707         Rename module 'c++defs' to 'snippet/c++defs'.
12708         * modules/snippet/c++defs: Renamed from modules/c++defs.
12709         (Files, Makefile.am): Update.
12710         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12711         * modules/arpa_inet (Depends-on): Update.
12712         * modules/ctype (Depends-on): Update.
12713         * modules/dirent (Depends-on): Update.
12714         * modules/fcntl-h (Depends-on): Update.
12715         * modules/glob (Depends-on): Update.
12716         * modules/iconv-h (Depends-on): Update.
12717         * modules/langinfo (Depends-on): Update.
12718         * modules/locale (Depends-on): Update.
12719         * modules/math (Depends-on): Update.
12720         * modules/netdb (Depends-on): Update.
12721         * modules/poll-h (Depends-on): Update.
12722         * modules/pty (Depends-on): Update.
12723         * modules/search (Depends-on): Update.
12724         * modules/signal (Depends-on): Update.
12725         * modules/spawn (Depends-on): Update.
12726         * modules/stdio (Depends-on): Update.
12727         * modules/stdlib (Depends-on): Update.
12728         * modules/string (Depends-on): Update.
12729         * modules/strings (Depends-on): Update.
12730         * modules/sys_ioctl (Depends-on): Update.
12731         * modules/sys_select (Depends-on): Update.
12732         * modules/sys_socket (Depends-on): Update.
12733         * modules/sys_stat (Depends-on): Update.
12734         * modules/sys_time (Depends-on): Update.
12735         * modules/sys_wait (Depends-on): Update.
12736         * modules/termios (Depends-on): Update.
12737         * modules/time (Depends-on): Update.
12738         * modules/unistd (Depends-on): Update.
12739         * modules/wchar (Depends-on): Update.
12740         * modules/wctype-h (Depends-on): Update.
12741
12742         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12743         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12744         (Files, Makefile.am): Update.
12745         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12746         * modules/argv-iter (Depends-on): Update.
12747         * modules/arpa_inet (Depends-on): Update.
12748         * modules/dirent (Depends-on): Update.
12749         * modules/fcntl-h (Depends-on): Update.
12750         * modules/fnmatch (Depends-on): Update.
12751         * modules/getopt-posix (Depends-on): Update.
12752         * modules/glob (Depends-on): Update.
12753         * modules/iconv-h (Depends-on): Update.
12754         * modules/inttypes-incomplete (Depends-on): Update.
12755         * modules/locale (Depends-on): Update.
12756         * modules/math (Depends-on): Update.
12757         * modules/netdb (Depends-on): Update.
12758         * modules/search (Depends-on): Update.
12759         * modules/signal (Depends-on): Update.
12760         * modules/spawn (Depends-on): Update.
12761         * modules/stdio (Depends-on): Update.
12762         * modules/stdlib (Depends-on): Update.
12763         * modules/string (Depends-on): Update.
12764         * modules/strings (Depends-on): Update.
12765         * modules/sys_socket (Depends-on): Update.
12766         * modules/sys_stat (Depends-on): Update.
12767         * modules/sys_time (Depends-on): Update.
12768         * modules/sys_times (Depends-on): Update.
12769         * modules/sys_utsname (Depends-on): Update.
12770         * modules/time (Depends-on): Update.
12771         * modules/unistd (Depends-on): Update.
12772         * modules/wchar (Depends-on): Update.
12773         * MODULES.html.sh (Support for building libraries and executables):
12774         Update.
12775
12776 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12777
12778         Improvements on _Noreturn and related modules.
12779
12780         modules/_Exit-tests: test _Noreturn too
12781         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12782         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12783         (main): Use them.
12784
12785         stdnoreturn, stdnoreturn-tests: remove modules
12786         They're not needed here and a bit premature for use elsewhere.  See
12787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12788         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12789         * tests/test-stdnoreturn.c: Remove files.
12790         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12791         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12792         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12793         and using noreturn.
12794         * modules/openat, modules/sigpipe-die, modules/xalloc:
12795         * modules/xmemdup0, modules/xstrtol:
12796         Remove dependency on stdnoreturn.
12797
12798         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12799         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12800         Reparenthesize to avoid GCC warning.
12801         Support Microsoft's syntax.
12802         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12803
12804         _Noreturn-tests: remove module
12805         * modules/_Noreturn-tests: Remove.
12806         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12807         * tests/test-_Noreturn.c: Remove.
12808         * tests/test-stdnoreturn.c: Merge from the old
12809         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12810
12811 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         _Noreturn, stdnoreturn, and related modules.
12814
12815         * top/maint.mk: Adjust to new noreturn support.
12816         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12817         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12818
12819         xalloc: use stdnoreturn.h
12820         * lib/xalloc.h: Include <stdnoreturn.h>.
12821         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12822         * modules/xalloc (Depends-on): Add stdnoreturn.
12823
12824         xstrtol: use stdnoreturn.h
12825         * lib/xstrtol.h: Include <stdnoreturn.h>.
12826         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12827         * modules/xstrtol (Depends-on): Add stdnoreturn.
12828
12829         xmemdup0: use stdnoreturn.h
12830         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12831         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12832         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12833
12834         sigpipe-die: use stdnoreturn.h
12835         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12836         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12837         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12838
12839         openat: use stdnoreturn.h
12840         * lib/openat.h: Include <stdnoreturn.h>.
12841         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12842         * modules/openat (Depends-on): Add stdnoreturn.
12843
12844         * lib/openat-die.c (openat_save_fail): Modernize comment.
12845
12846         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12847
12848         * lib/glthread/thread.h: Modernize comment.
12849
12850         obstack: use _Noreturn
12851         * lib/obstack.c (__attribute__): Remove macro.
12852         (print_and_abort): Use _Noreturn.
12853
12854         c-stack: use _Noreturn
12855         * lib/c-stack.c (die, overflow_handler, segv_handler):
12856         Use _Noreturn rather than __attribute__((noreturn)).
12857
12858         argmatch-tests, exclude_tests: use _Noreturn
12859         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12860         Remove.
12861         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12862
12863         stdlib: use _Noreturn
12864         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12865         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12866         * modules/stdlib (Depends-on): Add _Noreturn.
12867         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12868
12869         stdnoreturn-tests: new module
12870         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12871
12872         stdnoreturn: new module
12873         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12874         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12875
12876         _Noreturn-tests: new module
12877         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12878
12879         _Noreturn: new module
12880         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12881         New section, mentioning it.
12882         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12883
12884         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12885
12886 2011-07-11  Eric Blake  <eblake@redhat.com>
12887
12888         ffs: new module
12889         * modules/ffs: New file.
12890         * m4/ffs.m4: Likewise.
12891         * lib/ffs.c: Likewise.
12892         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12893         * modules/strings (Makefile.am): Substitute witness.
12894         (Depends-on): Add c++defs.
12895         * lib/strings.in.h (ffs): Declare.
12896         * modules/ffs-tests: New test file.
12897         * tests/test-ffs.c: Test new module.
12898         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12899         * doc/posix-functions/ffs.texi (ffs): Likewise.
12900
12901         regex: avoid compiler warning
12902         * lib/regex.c (includes): Include <strings.h>, for use of
12903         strcasecmp in regcomp.c.
12904         Reported by Joachim Schmitz.
12905
12906 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12907
12908         stdint: respect system's intmax_t if INTMAX_MAX
12909         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12910         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12911         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12912         long but int64_t is long long, and where we will clash with the
12913         system intmax_t if we override it.  See
12914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12915         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12916         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12917         similarly for UINTMAX_C.
12918
12919 2011-07-08  Bruno Haible  <bruno@clisp.org>
12920
12921         pthread_sigmask tests: Avoid a compiler warning.
12922         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12923         non-zero.
12924
12925         sigprocmask tests: A better way to avoid a compiler warning.
12926         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12927         (main): Complain if system() returns non-zero.
12928         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12929
12930 2011-07-08  Bruno Haible  <bruno@clisp.org>
12931
12932         pthread_sigmask: Work around IRIX bug.
12933         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12934         bug.
12935         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12936         there may be unblocked pending signals.
12937         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12938
12939 2011-07-08  Bruno Haible  <bruno@clisp.org>
12940
12941         pthread_sigmask: Work around Cygwin bug.
12942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12943         bug.
12944         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12945         the system's pthread_sigmask function.
12946         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12947
12948 2011-07-08  Bruno Haible  <bruno@clisp.org>
12949
12950         pthread_sigmask: Work around bug in single-threaded implementation.
12951         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12952         FreeBSD, HP-UX, Solaris bug.
12953         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12954         * lib/pthread_sigmask.c: Include <stddef.h>.
12955         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12956         the system's pthread_sigmask function.
12957         * modules/pthread_sigmask (configure.ac): Invoke
12958         gl_PREREQ_PTHREAD_SIGMASK.
12959         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12960         HP-UX, Solaris.
12961
12962 2011-07-08  Eric Blake  <eblake@redhat.com>
12963
12964         test-sigprocmask: avoid compiler warning
12965         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12966         * tests/test-sigprocmask.c (main): Use it to silence warning.
12967         Reported by Jim Meyering.
12968
12969         test-snprintf: avoid compiler warning
12970         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12971         * tests/test-vsnprintf.c (main): Likewise.
12972         Reported by Jim Meyering.
12973
12974 2011-07-08  Bruno Haible  <bruno@clisp.org>
12975
12976         Tests for module 'pthread_sigmask'.
12977         * modules/pthread_sigmask-tests: New file.
12978         * tests/test-pthread_sigmask1.c: New file, based on
12979         tests/test-sigprocmask.c.
12980         * tests/test-pthread_sigmask2.c: New file.
12981
12982 2011-07-08  Jim Meyering  <meyering@redhat.com>
12983
12984         test-getopt.h: avoid warning about an unused variable
12985         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12986
12987 2011-07-07  Jim Meyering  <meyering@redhat.com>
12988
12989         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12990         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12991         now that it no longer contains leading TABs.
12992         Remove unused "url=FIXME" statement.
12993
12994 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12995
12996         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12997         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12998         When gl_THREADLIB is not in use, assume that the POSIX sematics
12999         are desired.  This is better for Emacs, which uses POSIX semantics
13000         on GNUish and/or POSIXish platforms, and does not use threads at
13001         all otherwise.
13002
13003         pthread_sigmask: fix typo when testing for libraries
13004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13005         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13006
13007 2011-07-08  Eric Blake  <eblake@redhat.com>
13008
13009         fts: introduce FTS_NOATIME
13010         * lib/fts_.h (FTS_NOATIME): New bit flag.
13011         (FTS_OPTIONMASK): Adjust.
13012         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13013         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13014
13015 2011-07-08  Bruno Haible  <bruno@clisp.org>
13016
13017         Tests for module 'thread'.
13018         * modules/thread-tests: New file.
13019         * tests/test-thread_self.c: New file.
13020         * tests/test-thread_create.cc: New file.
13021
13022 2011-07-08  Bruno Haible  <bruno@clisp.org>
13023
13024         thread: Avoid gcc warnings when using gl_thread_self().
13025         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13026         'void *'.
13027         (gl_thread_self_pointer): Update.
13028
13029 2011-07-07  Bruno Haible  <bruno@clisp.org>
13030
13031         signal-c++-tests: Check declaration of pthread_sigmask.
13032         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13033         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13034         $(LIB_PTHREAD_SIGMASK).
13035
13036 2011-07-07  Bruno Haible  <bruno@clisp.org>
13037
13038         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13039         * lib/signal.in.h (pthread_sigmask): Override if
13040         REPLACE_PTHREAD_SIGMASK is 1.
13041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13042         REPLACE_PTHREAD_SIGMASK.
13043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13044         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13045         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13046         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13047         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13048
13049 2011-07-07  Bruno Haible  <bruno@clisp.org>
13050
13051         pthread_sigmask: Ensure declaration in <signal.h>.
13052         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13053         include <pthread.h>.
13054         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13055         problem.
13056
13057 2011-07-07  Bruno Haible  <bruno@clisp.org>
13058
13059         pthread_sigmask: Document the module.
13060         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13061
13062 2011-07-07  Bruno Haible  <bruno@clisp.org>
13063
13064         pthread_sigmask: Follow gnulib conventions.
13065         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13066         gl_PTHREAD_SIGMASK.
13067         * modules/pthread_sigmask (configure.ac): Update.
13068
13069 2011-07-07  Bruno Haible  <bruno@clisp.org>
13070
13071         pthread_sigmask: Make declaration C++ safe.
13072         * lib/signal.in.h: In two special conditions, just do an #include_next.
13073         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13074         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13075         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13076         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13077         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13078         not REPLACE_PTHREAD_MASK.
13079         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13080         not REPLACE_PTHREAD_MASK.
13081         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13082
13083 2011-07-07  Bruno Haible  <bruno@clisp.org>
13084
13085         pthread_sigmask: Fix return value.
13086         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13087         * lib/pthread_sigmask.c: New file.
13088         * modules/pthread_sigmask (Files): Add it.
13089         (configure.ac): Invoke AC_LIBOBJ.
13090
13091 2011-07-07  Eric Blake  <eblake@redhat.com>
13092
13093         getopt: more portable argv creation
13094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13095         const, use char arrays rather than strings.
13096         Suggested by Paul Eggert.
13097
13098 2011-07-07  Bruno Haible  <bruno@clisp.org>
13099
13100         Tests for module 'sigprocmask'.
13101         * modules/sigprocmask-tests: New file.
13102         * tests/test-sigprocmask.c: New file.
13103
13104 2011-07-07  Bruno Haible  <bruno@clisp.org>
13105
13106         float tests: Tweak.
13107         * tests/test-float.c (main): Tweak skip message.
13108
13109 2011-07-07  Eric Blake  <eblake@redhat.com>
13110
13111         getopt: avoid compiler warning during configure
13112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13113         assigning string literals to non-const pointer.
13114
13115         getopt-gnu: avoid crash in glibc getopt
13116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13117         * tests/test-getopt.h (test_getopt): Enhance test.
13118         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13119         * doc/posix-functions/getopt.texi (getopt): Document it.
13120         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13122         Likewise.
13123
13124 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13125
13126         getopt: handle W; without long options in getopt [BZ #12922]
13127         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13128         but no long options are defined, just return 'W'.
13129
13130 2011-07-07  Bruno Haible  <bruno@clisp.org>
13131
13132         Avoid literal tabs.
13133         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13134         variable containing a tab instead of a literal tab.
13135         Reported by Jim Meyering.
13136
13137 2011-07-07  Bruno Haible  <bruno@clisp.org>
13138
13139         Comments.
13140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13141
13142 2011-07-06  Bruno Haible  <bruno@clisp.org>
13143
13144         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13145         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13146         <winsock2.h>.
13147         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13148         lib/sys_socket.in.h.
13149         (close, gethostname): Hide declarations from <winsock2.h>.
13150         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13151         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13152         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13153         (select): Don't override if gnulib's <sys/select.h> was already
13154         included.
13155         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13156         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13157         setsockopt, shutdown, select): Tweak indentation.
13158
13159 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13160
13161         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13162         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13163         in an application that does not use the sys_select module.
13164
13165 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13166
13167         poll: do not return 0 on timeout=-1
13168         * lib/poll.c: Loop with yield if no events occured
13169
13170 2011-07-06  Eric Blake  <eblake@redhat.com>
13171
13172         pthread_sigmask: always replace when not using pthread
13173         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13174         replacement when using some threading other than pthread.  Fix
13175         logic bug.
13176
13177 2011-07-06  Bruno Haible  <bruno@clisp.org>
13178
13179         Comments.
13180         * m4/printf.m4: Update comments about mingw.
13181
13182 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         sys_select: define sigset_t more portably
13185         * lib/sys_select.in.h: Always include <sys/types.h>, since
13186         we now need sigset_t and mingw defines it there.
13187         Include <signal.h> before split inclusion guard, to avoid
13188         mishaps on Solaris, whose <signal.h> eventually includes us.
13189         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13190         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13191         which come from ...
13192         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13193         gl_CHECK_TYPE_SIGSET_T.
13194         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13195         does the real work.
13196         * modules/sys_select (Depends-on): Add 'signal'.
13197
13198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13199         Suggested by Bruno Haible.
13200
13201         pselect: Use pthread_sigmask, not sigprocmask.
13202         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13203         multithreaded apps better than sigprocmask does.
13204         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13205         sigprocmask directly.
13206
13207 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13210         Don't #undef,  since we don't need any underlying pselect.
13211         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13212         (Depends-on): Add select.
13213         (Link): Add $(LIBSOCKET).
13214         These changes suggested by Bruno Haible.
13215
13216         pselect: document better
13217         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13218         * doc/posix-functions/pselect.texi (pselect): Document new module.
13219
13220         pthread_sigmask: new module
13221         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13222         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13223         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13224         This is done only as a macro; I don't know how well that'll
13225         work for C++.  Move <sys/types.h> include before the include_next,
13226         to avoid mishap on Solaris.
13227         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13228         * modules/signal (Makefile.am): Substitute the check's results.
13229         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13230
13231         test-pselect: new module
13232         * modules/pselect-tests, tests/test-pselect.c: New files.
13233         * tests/test-select.c, tests/test-sys_select-c++.cc:
13234         If TEST_PSELECT is defined, test pselect instead of testing select.
13235
13236         * tests/test-sys_select.c (sigset_t): Test for it, too.
13237         Suggested by Bruno Haible.
13238
13239 2011-07-05  Eric Blake  <eblake@redhat.com>
13240
13241         snprintf: guarantee %1$d, for libintl
13242         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13243         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13244         * doc/posix-functions/snprintf.texi (snprintf): Update.
13245         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13246         * tests/test-snprintf.c (main): Enhance test.
13247         * tests/test-vsnprintf.c (main): Likewise.
13248
13249 2011-07-05  Jim Meyering  <meyering@redhat.com>
13250
13251         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13252         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13253         per Bruno's request, to accommodate this idiom (no space after "#")
13254         even when the function is inside an #if block:
13255         char *
13256         gets (char *s)
13257         #undef gets
13258         {
13259           ...
13260         }
13261
13262 2011-07-04  Jim Meyering  <meyering@redhat.com>
13263
13264         maint: indent with spaces, not TABs, and add a rule to check this
13265         * tests/test-userspec.c: Indent with spaces, not TABs.
13266         * tests/test-argp.c: Likewise.
13267         * tests/test-c-stack2.sh: Likewise.
13268         * tests/test-parse-duration.sh: Likewise
13269         * m4/strtod.m4: Likewise.
13270         * m4/alloca.m4: Likewise.
13271         * m4/pselect.m4: Likewise.
13272         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13273
13274 2011-07-03  Jim Meyering  <meyering@redhat.com>
13275
13276         maint.mk: correct omissions in prohibit_argmatch_without_use check
13277         This rule would mistakenly report that argmatch.h is included without
13278         use even when both the argmatch and invalid_arg macro were used.
13279         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13280         of argmatch and invalid_arg.
13281
13282 2011-07-03  Bruno Haible  <bruno@clisp.org>
13283
13284         Comments about EINTR.
13285         * lib/safe-read.h: Explain the purpose of this module.
13286         * lib/safe-write.h: Likewise.
13287         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13288         module.
13289         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13290         module.
13291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13292
13293 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13294
13295         xnanosleep: Rewrite to use new dtotimespec module.
13296         It has the conversion code that used to be in xnanosleep.
13297         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13298         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13299         (TIME_T_MAX): Remove.
13300         (xnanosleep): Rewrite in terms of dtotimespec.
13301         * modules/xnanosleep (Depends-on): Add dtotimespec.
13302         Remove intprops, stdbool.
13303
13304         timespec-add, timespec-sub: new modules
13305         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13306         * lib/timespec-add.c, lib/timespec-sub.c:
13307         * modules/timespec-add, modules/timespec-sub: New files.
13308
13309         dtotimespec: new module
13310         * lib/timespec.h (dtotimespec): New decl.
13311         * lib/dtotimespec.c, modules/dtotimespec: New files.
13312
13313         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13314
13315         pselect: new module
13316         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13317         (pselect): New decls.
13318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13319         since the standard pselect decl uses 'restrict'.
13320         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13321         HAVE_PSELECT, REPLACE_PSELECT.
13322         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13323         HAVE_PSELECT, REPLACE_PSELECT.
13324         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13325
13326         sys_select: don't depend on sys_socket
13327         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13329         This fix works on GNU and GNU-like platforms, but has not been tested
13330         on native Windows.
13331         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13333         gl_HEADER_SYS_SOCKET.
13334         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13335         gl_PREREQ_SYS_H_WINSOCK2.
13336
13337 2011-06-29  Eric Blake  <eblake@redhat.com>
13338
13339         pipe2: fix C89 compile problem
13340         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13341         Reported by Bruno Haible.
13342
13343         pipe, pipe2: don't corrupt fd on error
13344         * lib/pipe.c (pipe): Leave fd unchanged on error.
13345         * lib/pipe2.c (pipe2): Likewise.
13346         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13347         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13348
13349 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13350
13351         mmap-anon: do not use regular expressions inadvertently
13352         * m4/mmap-anon.m4: Remove trailing period from strings sought
13353         in the output.
13354
13355 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13356
13357         nanosleep: fix integer overflow problem
13358         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13359         arithmetic wraps around on overflow.
13360
13361         nanosleep: simplify carrying
13362         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13363         first call to the underyling nanosleep, not for the last one.
13364         This doesn't fix any bugs, but it simplifies the computation of
13365         the remaining delay.  Found while auditing integer overflow issues.
13366
13367         dup2: remove test for existence of fcntl
13368         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13369         "#if HAVE_FCNTL", in the configure-time test program.
13370         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13371         and therefore speeds up "configure" a bit.  Found while
13372         adding the dup2 module to Emacs.
13373
13374 2011-06-24  Eric Blake  <eblake@redhat.com>
13375
13376         maint.mk: enhance useless header checks
13377         * top/maint.mk (_sc_header_without_use): Check both include
13378         styles.
13379         (sc_prohibit_assert_without_use)
13380         (sc_prohibit_close_stream_without_use)
13381         (sc_prohibit_getopt_without_use)
13382         (sc_prohibit_quotearg_without_use)
13383         (sc_prohibit_quote_without_use)
13384         (sc_prohibit_long_options_without_use)
13385         (sc_prohibit_inttostr_without_use)
13386         (sc_prohibit_ignore_value_without_use)
13387         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13388         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13389         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13390         (sc_prohibit_hash_pjw_without_use)
13391         (sc_prohibit_safe_read_without_use)
13392         (sc_prohibit_argmatch_without_use)
13393         (sc_prohibit_canonicalize_without_use)
13394         (sc_prohibit_root_dev_ino_without_use)
13395         (sc_prohibit_openat_without_use)
13396         (sc_prohibit_c_ctype_without_use)
13397         (sc_prohibit_signal_without_use)
13398         (sc_prohibit_stdio--_without_use)
13399         (sc_prohibit_stdio-safer_without_use)
13400         (sc_prohibit_strings_without_use)
13401         (sc_prohibit_intprops_without_use)
13402         (sc_prohibit_stddef_without_use)
13403         (sc_prohibit_xfreopen_without_use): Update clients.
13404
13405 2011-06-24  Jim Meyering  <meyering@redhat.com>
13406
13407         syntax-check: keep one maint.mk rule in sync with its header
13408         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13409         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13410         I prefer to avoid temporary files here, so use <(...), but that
13411         is not supported by /bin/sh, so...
13412         (SHELL): Define to /bin/bash.
13413
13414 2011-06-24  Eric Blake  <eblake@redhat.com>
13415
13416         maint.mk: update sc_prohibit_intprops_without_use
13417         * top/maint.mk (_intprops_names): Match recent changes.
13418
13419 2011-06-24  Bruno Haible  <bruno@clisp.org>
13420
13421         strerror-override: No-op tweak.
13422         * lib/strerror-override.h (strerror_override): Reorder conditions,
13423         for consistency with lib/strerror-override.c.
13424
13425 2011-06-23  Eric Blake  <eblake@redhat.com>
13426
13427         maint.mk: test further PATH_MAX issues
13428         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13429         (sc_prohibit_path_max_allocation): ...and also test alloca.
13430         Suggested by Jim Meyering.
13431
13432 2011-06-22  Eric Blake  <eblake@redhat.com>
13433
13434         maint.mk: add syntax-check to avoid char[PATH_MAX]
13435         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13436
13437         stat: be robust to PATH_MAX definition
13438         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13439         * modules/stat (Depends-on): Add verify.
13440
13441         link: work around IRIX bug
13442         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13443         * lib/link.c (rpl_link): Work around it.
13444         * tests/test-link.h (test_link): Enhance test.
13445         * doc/posix-functions/link.texi (link): Document the bug.
13446
13447         getopt: silence clang warning
13448         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13449         dereference.
13450         Reported by Gustavo Martin Domato.
13451
13452 2011-06-22  Jim Meyering  <meyering@redhat.com>
13453
13454         bootstrap: do not insert a blank line into each .gitignore file
13455         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13456
13457 2011-06-21  Eric Blake  <eblake@redhat.com>
13458
13459         perror: test for output mismatch
13460         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13461         perror on IRIX.
13462
13463         strerror_r: fix OpenBSD behavior on out-of-range
13464         * lib/strerror_r.c (strerror_r): Always use maximal string.
13465         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13466
13467         strerror_r: fix OpenBSD behavior on 0
13468         * lib/strerror-override.c (strerror_override): Also override 0
13469         when needed.
13470         * lib/strerror-override.h (strerror_override): Likewise.
13471         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13472         earlier.
13473         * lib/strerror_r.c (strerror_r): Likewise.
13474         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13475         behavior...
13476         (gl_FUNC_STRERROR_0): ...into new macro.
13477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13478         is overridden.
13479         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13480         * modules/strerror-override (Files): Add strerror.m4.
13481         (configure.ac): Also provide override for 0 when needed.
13482         * doc/posix-functions/strerror.texi (strerror): Document this.
13483         * doc/posix-functions/perror.texi (perror): Likewise.
13484
13485         perror: adjust array size
13486         * modules/perror (Depends-on): Add strerror-override.
13487         * lib/perror.c (perror): Use it to avoid magic number.
13488
13489         strerror-override: reduce size
13490         * lib/strerror-override.c (strerror_override): Use fewer lines.
13491
13492 2011-06-20  Bruno Haible  <bruno@clisp.org>
13493
13494         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13495         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13496
13497 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         alloca: port to compilers that can optimize like GCC 4.6.0
13500         * lib/alloca.c (find_stack_direction): New signature, taken from
13501         Autoconf git.  This works with GCC 4.6.0.  This code should never
13502         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13503         be used with other compilers that optimize as well as GCC 4.6.0 does.
13504         (alloca): Adjust to new signature.
13505         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13506         New macro, which patches Autoconf in a similar way.
13507
13508         c-stack: stop worrying about stack direction
13509         * lib/c-stack.c (find_stack_direction): Remove.
13510         (segv_handler): Don't worry about stack direction growth, as it's
13511         too much of a pain to configure this correctly, given how compilers
13512         are optimizing-away our stack-growth detection code.  Instead, assume
13513         that any access to just before or just after the stack is OK.
13514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13515         Don't require AC_FUNC_ALLOCA; no longer needed.
13516
13517 2011-06-20  Eric Blake  <eblake@redhat.com>
13518
13519         test-stat: don't allocate PATH_MAX bytes
13520         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13521         PATH_MAX-sized buffer.
13522         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13523         * modules/stat-tests (Depends-on): Likewise.
13524         * tests/test-fstatat.c (includes): Drop pathmax.h.
13525         * tests/test-stat.c (includes): Likewise.
13526         Reported by Bruno Haible.
13527
13528 2011-06-20  Bruno Haible  <bruno@clisp.org>
13529
13530         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13531         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13532         * lib/float.c: New file.
13533         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13534         REPLACE_FLOAT_LDBL.
13535         * modules/float (Files): Add lib/float.c.
13536         (configure.ac): Invoke AC_LIBOBJ.
13537         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13538
13539 2011-06-20  Bruno Haible  <bruno@clisp.org>
13540
13541         Tests for module 'float'.
13542         * modules/float-tests: New file.
13543         * tests/test-float.c: New file.
13544
13545 2011-06-19  Bruno Haible  <bruno@clisp.org>
13546
13547         isinf: Coding style.
13548         * lib/isinf.c: Use GNU coding style.
13549
13550 2011-06-19  Bruno Haible  <bruno@clisp.org>
13551
13552         linkat test: Avoid test failure on AIX 7.1.
13553         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13554         * tests/test-link.h (test_link): Likewise.
13555
13556 2011-06-19  Bruno Haible  <bruno@clisp.org>
13557
13558         pread test: Avoid test failure on OpenBSD 4.9.
13559         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13560
13561 2011-06-19  Bruno Haible  <bruno@clisp.org>
13562
13563         sprintf-posix: Fix test failure on AIX 7.1.
13564         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13565         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13566         on AIX.
13567         * doc/posix-functions/fprintf.texi: Likewise.
13568         * doc/posix-functions/printf.texi: Likewise.
13569         * doc/posix-functions/snprintf.texi: Likewise.
13570         * doc/posix-functions/sprintf.texi: Likewise.
13571         * doc/posix-functions/vdprintf.texi: Likewise.
13572         * doc/posix-functions/vfprintf.texi: Likewise.
13573         * doc/posix-functions/vprintf.texi: Likewise.
13574         * doc/posix-functions/vsnprintf.texi: Likewise.
13575         * doc/posix-functions/vsprintf.texi: Likewise.
13576
13577 2011-06-19  Bruno Haible  <bruno@clisp.org>
13578
13579         roundl-ieee: Fix test failure on AIX 7.1.
13580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13581         * doc/posix-functions/roundl.texi: Mention problem with negative
13582         arguments.
13583
13584 2011-06-19  Bruno Haible  <bruno@clisp.org>
13585
13586         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13587         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13588         * doc/posix-functions/round.texi: Mention problem with negative
13589         arguments.
13590         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13591
13592 2011-06-19  Bruno Haible  <bruno@clisp.org>
13593
13594         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13596         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13597         * doc/posix-functions/roundf.texi: Mention problem with negative
13598         arguments.
13599         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13600
13601 2011-06-19  Bruno Haible  <bruno@clisp.org>
13602
13603         ceilf-ieee: Work around bug on MacOS X 10.5.
13604         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13605
13606         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13607         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13608         IEEE compliant, avoid compiler optimizations.
13609         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13610         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13611         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13612         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13613         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13614         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13615         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13617         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13618         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13619
13620 2011-06-19  Bruno Haible  <bruno@clisp.org>
13621
13622         ceilf-ieee: Work around bug on AIX 7.1.
13623         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13624         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13625
13626 2011-06-19  Bruno Haible  <bruno@clisp.org>
13627
13628         ceil-ieee: Work around bug on AIX 7.1.
13629         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13630         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13631
13632 2011-06-18  Bruno Haible  <bruno@clisp.org>
13633
13634         fsync test: Avoid test failure on MacOS X and AIX.
13635         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13636         EINVAL.
13637
13638 2011-06-18  Bruno Haible  <bruno@clisp.org>
13639
13640         openat, fdopendir tests: Fix link errors.
13641         * modules/openat-tests (Depends-on): Add progname.
13642         * modules/fdopendir-tests (Depends-on): Likewise.
13643         * tests/test-fchownat.c: Include progname.h.
13644         (main): Call set_program_name.
13645         * tests/test-fstatat.c: Include progname.h.
13646         (main): Call set_program_name.
13647         * tests/test-mkdirat.c: Include progname.h.
13648         (main): Call set_program_name.
13649         * tests/test-openat.c: Include progname.h.
13650         (main): Call set_program_name.
13651         * tests/test-unlinkat.c: Include progname.h.
13652         (main): Call set_program_name.
13653         * tests/test-fdopendir.c: Include progname.h.
13654         (main): Call set_program_name.
13655
13656 2011-06-18  Bruno Haible  <bruno@clisp.org>
13657
13658         Doc update.
13659         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13660         HP-UX.
13661         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13662
13663 2011-06-18  Bruno Haible  <bruno@clisp.org>
13664
13665         getcwd tests: Avoid compilation error on HP-UX 11.31.
13666         * modules/getcwd-tests (Depends-on): Add pathmax.
13667         * tests/test-getcwd.c: Include pathmax.h.
13668
13669 2011-06-18  Bruno Haible  <bruno@clisp.org>
13670
13671         isfinite, isinf: Fix link error on AIX 6 and 7.
13672         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13673         needed, also test the macro with a 'float' argument.
13674         * m4/isinf.m4 (gl_ISINF): Likewise.
13675
13676 2011-06-18  Bruno Haible  <bruno@clisp.org>
13677
13678         getloadavg: Don't clobber LIBS. Regression from previous commit.
13679         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13680         AC_CHECK_LIB from here...
13681         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13682         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13683         gl_func_getloadavg_done.
13684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13685
13686 2011-06-18  Bruno Haible  <bruno@clisp.org>
13687
13688         clean-temp: Improve documentation.
13689         * lib/clean-temp.h: Explain better how to use this module.
13690         Reported by John Darrington <john@darrington.wattle.id.au>.
13691
13692 2011-06-17  Bruno Haible  <bruno@clisp.org>
13693
13694         pread, pwrite: Avoid cc warning on AIX.
13695         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13696         (pwrite): Likewise.
13697
13698 2011-06-17  Bruno Haible  <bruno@clisp.org>
13699
13700         spawn-pipe tests: Fix link error.
13701         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13703
13704 2011-06-17  Bruno Haible  <bruno@clisp.org>
13705
13706         Tests: Remove unnecessary dependency.
13707         * modules/canonicalize-tests (Depends-on): Remove progname.
13708         * modules/chown-tests (Depends-on): Likewise.
13709         * modules/dirname-tests (Depends-on): Likewise.
13710         * modules/fdopendir-tests (Depends-on): Likewise.
13711         * modules/fdutimensat-tests (Depends-on): Likewise.
13712         * modules/hash-tests (Depends-on): Likewise.
13713         * modules/lchown-tests (Depends-on): Likewise.
13714         * modules/linkat-tests (Depends-on): Likewise.
13715         * modules/renameat-tests (Depends-on): Likewise.
13716         * modules/spawn-pipe-tests (Depends-on): Likewise.
13717         * modules/utimensat-tests (Depends-on): Likewise.
13718
13719 2011-06-17  Bruno Haible  <bruno@clisp.org>
13720
13721         spawn-pipe tests: Fix link error.
13722         * tests/test-spawn-pipe-child.c: Undefine fflush.
13723
13724 2011-06-17  Bruno Haible  <bruno@clisp.org>
13725
13726         Fix tests link errors.
13727         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13728         * modules/chown-tests (Makefile.am): Don't link test-chown with
13729         LIBINTL.
13730         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13731         LIBINTL.
13732         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13733         LIBINTL.
13734         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13735         LIBINTL.
13736
13737 2011-06-16  Bruno Haible  <bruno@clisp.org>
13738
13739         crypto/gc-sha1: Fix recent regression.
13740         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13741         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13742
13743         crypto/gc-md5: Fix recent regression.
13744         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13745
13746         crypto/gc-md4: Fix recent regression.
13747         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13748         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13749
13750         crypto/gc-arctwo: Fix recent regression.
13751         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13752         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13753
13754         crypto/gc-rijndael: Fix recent regression.
13755         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13756         (configure.ac): Invoke AC_LIBOBJ here.
13757         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13759
13760         crypto/gc-hmac-sha1: Fix recent regression.
13761         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13762         (configure.ac): Invoke AC_LIBOBJ here.
13763         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13765
13766         crypto/gc-hmac-md5: Fix recent regression.
13767         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13768         (configure.ac): Invoke AC_LIBOBJ here.
13769         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13771
13772         crypto/gc-des: Fix recent regression.
13773         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13774         (configure.ac): Invoke AC_LIBOBJ here.
13775         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13777
13778         crypto/gc-arcfour: Fix recent regression.
13779         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13780         (configure.ac): Invoke AC_LIBOBJ here.
13781         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13783
13784 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13785
13786         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13787         After the 2011-05-21 change, this macro requires
13788         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13789         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13790
13791 2011-06-16  Bruno Haible  <bruno@clisp.org>
13792
13793         fprintftime: Move AC_LIBOBJ invocations to module description.
13794         * m4/fprintftime.m4: Remove file.
13795         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13796         (configure.ac): Remove gl_FPRINTFTIME call.
13797         (Makefile.am): Augment lib_SOURCES.
13798         Reported by Jim Meyering.
13799
13800 2011-06-16  Bruno Haible  <bruno@clisp.org>
13801
13802         tmpfile-safer: Finish 2011-05-23 commit.
13803         * m4/stdio-safer.m4: Really remove file.
13804         Reported by Jim Meyering.
13805
13806 2011-06-16  Bruno Haible  <bruno@clisp.org>
13807
13808         syntax-check: Fix typo.
13809         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13810         printf-posix.m4.
13811         Reported by Jim Meyering.
13812
13813 2011-06-13  Jim Meyering  <meyering@redhat.com>
13814
13815         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13816         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13817
13818 2011-05-23  Bruno Haible  <bruno@clisp.org>
13819
13820         yesno: Move AC_LIBOBJ invocations to module description.
13821         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13822         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13823
13824 2011-05-23  Bruno Haible  <bruno@clisp.org>
13825
13826         xstrtol: Move AC_LIBOBJ invocations to module description.
13827         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13828         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13829
13830 2011-05-23  Bruno Haible  <bruno@clisp.org>
13831
13832         xstrtold: Move AC_LIBOBJ invocations to module description.
13833         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13834         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13835
13836 2011-05-23  Bruno Haible  <bruno@clisp.org>
13837
13838         xstrtod: Move AC_LIBOBJ invocations to module description.
13839         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13840         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13841
13842 2011-05-23  Bruno Haible  <bruno@clisp.org>
13843
13844         xnanosleep: Move AC_LIBOBJ invocations to module description.
13845         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13846         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13847
13848 2011-05-23  Bruno Haible  <bruno@clisp.org>
13849
13850         xgetcwd: Move AC_LIBOBJ invocations to module description.
13851         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13852         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13853
13854 2011-05-23  Bruno Haible  <bruno@clisp.org>
13855
13856         xalloc: Move AC_LIBOBJ invocations to module description.
13857         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13858         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13859
13860 2011-05-23  Bruno Haible  <bruno@clisp.org>
13861
13862         write-any-file: Move AC_LIBOBJ invocations to module description.
13863         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13864         invocation.
13865         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13866
13867 2011-05-23  Bruno Haible  <bruno@clisp.org>
13868
13869         utimens: Move AC_LIBOBJ invocations to module description.
13870         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13871         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13872
13873 2011-05-23  Bruno Haible  <bruno@clisp.org>
13874
13875         utimecmp: Move AC_LIBOBJ invocations to module description.
13876         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13877         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13878
13879 2011-05-23  Bruno Haible  <bruno@clisp.org>
13880
13881         userspec: Move AC_LIBOBJ invocations to module description.
13882         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13883         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13884
13885 2011-05-23  Bruno Haible  <bruno@clisp.org>
13886
13887         unlinkdir: Move AC_LIBOBJ invocations to module description.
13888         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13889         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13890
13891 2011-05-23  Bruno Haible  <bruno@clisp.org>
13892
13893         unistd-safer: Move AC_LIBOBJ invocations to module description.
13894         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13895         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13896
13897 2011-05-23  Bruno Haible  <bruno@clisp.org>
13898
13899         tempname: Move AC_LIBOBJ invocations to module description.
13900         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13901         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13902
13903 2011-05-23  Bruno Haible  <bruno@clisp.org>
13904
13905         strftime: Move AC_LIBOBJ invocations to module description.
13906         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13907         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13908
13909 2011-05-23  Bruno Haible  <bruno@clisp.org>
13910
13911         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13912         * m4/stdlib-safer.m4: Remove file.
13913         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13914         (configure.ac): Remove gl_STDLIB_SAFER call.
13915         (Makefile.am): Augment lib_SOURCES.
13916
13917 2011-05-23  Bruno Haible  <bruno@clisp.org>
13918
13919         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13920         * m4/stdio-safer.m4: Remove file.
13921         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13922         (configure.ac): Remove gl_TMPFILE_SAFER call.
13923         (Makefile.am): Augment lib_SOURCES.
13924
13925 2011-05-23  Bruno Haible  <bruno@clisp.org>
13926
13927         popen-safer: Move AC_LIBOBJ invocations to module description.
13928         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13929         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13930         (configure.ac): Remove gl_POPEN_SAFER call.
13931         (Makefile.am): Augment lib_SOURCES.
13932
13933 2011-05-23  Bruno Haible  <bruno@clisp.org>
13934
13935         freopen-safer: Move AC_LIBOBJ invocations to module description.
13936         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13937         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13938         (configure.ac): Remove gl_FREOPEN_SAFER call.
13939         (Makefile.am): Augment lib_SOURCES.
13940
13941 2011-05-23  Bruno Haible  <bruno@clisp.org>
13942
13943         fopen-safer: Move AC_LIBOBJ invocations to module description.
13944         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13945         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13946         (configure.ac): Remove gl_FOPEN_SAFER call.
13947         (Makefile.am): Augment lib_SOURCES.
13948
13949 2011-05-23  Bruno Haible  <bruno@clisp.org>
13950
13951         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13952         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13953         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13954
13955 2011-05-23  Bruno Haible  <bruno@clisp.org>
13956
13957         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13958         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13959         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13960
13961 2011-05-23  Bruno Haible  <bruno@clisp.org>
13962
13963         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13964         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13965         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13966
13967 2011-05-23  Bruno Haible  <bruno@clisp.org>
13968
13969         settime: Move AC_LIBOBJ invocations to module description.
13970         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13971         * modules/settime (Makefile.am): Augment lib_SOURCES.
13972
13973 2011-05-23  Bruno Haible  <bruno@clisp.org>
13974
13975         savedir: Move AC_LIBOBJ invocations to module description.
13976         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13977         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13978
13979 2011-05-23  Bruno Haible  <bruno@clisp.org>
13980
13981         save-cwd: Move AC_LIBOBJ invocations to module description.
13982         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13983         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13984
13985 2011-05-23  Bruno Haible  <bruno@clisp.org>
13986
13987         same: Move AC_LIBOBJ invocations to module description.
13988         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13989         * modules/same (Makefile.am): Augment lib_SOURCES.
13990
13991 2011-05-23  Bruno Haible  <bruno@clisp.org>
13992
13993         safe-write: Move AC_LIBOBJ invocations to module description.
13994         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13995         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13996         instead of gl_SAFE_WRITE.
13997         (Makefile.am): Augment lib_SOURCES.
13998
13999 2011-05-23  Bruno Haible  <bruno@clisp.org>
14000
14001         safe-read: Move AC_LIBOBJ invocations to module description.
14002         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14003         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14004         of gl_SAFE_READ.
14005         (Makefile.am): Augment lib_SOURCES.
14006
14007 2011-05-23  Bruno Haible  <bruno@clisp.org>
14008
14009         safe-alloc: Move AC_LIBOBJ invocations to module description.
14010         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14011         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14012
14013 2011-05-23  Bruno Haible  <bruno@clisp.org>
14014
14015         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14016         * m4/rijndael.m4: Remove file.
14017         * modules/crypto/rijndael (Files): Remove it.
14018         (configure.ac): Remove gl_RIJNDAEL call.
14019         (Makefile.am): Augment lib_SOURCES.
14020
14021 2011-05-23  Bruno Haible  <bruno@clisp.org>
14022
14023         readtokens: Move AC_LIBOBJ invocations to module description.
14024         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14025         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14026
14027 2011-05-23  Bruno Haible  <bruno@clisp.org>
14028
14029         read-file: Move AC_LIBOBJ invocations to module description.
14030         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14031         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14032         of gl_FUNC_READ_FILE.
14033         (Makefile.am): Augment lib_SOURCES.
14034
14035 2011-05-23  Bruno Haible  <bruno@clisp.org>
14036
14037         quotearg: Move AC_LIBOBJ invocations to module description.
14038         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14039         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14040
14041 2011-05-23  Bruno Haible  <bruno@clisp.org>
14042
14043         quote: Move AC_LIBOBJ invocations to module description.
14044         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14045         * modules/quote (Makefile.am): Augment lib_SOURCES.
14046
14047 2011-05-23  Bruno Haible  <bruno@clisp.org>
14048
14049         posixver: Move AC_LIBOBJ invocations to module description.
14050         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14051         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-23  Bruno Haible  <bruno@clisp.org>
14054
14055         posixtm: Move AC_LIBOBJ invocations to module description.
14056         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14057         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14058
14059 2011-05-23  Bruno Haible  <bruno@clisp.org>
14060
14061         physmem: Move AC_LIBOBJ invocations to module description.
14062         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14063         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14064
14065 2011-05-23  Bruno Haible  <bruno@clisp.org>
14066
14067         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14068         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14069         invocation.
14070         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14071
14072 2011-05-23  Bruno Haible  <bruno@clisp.org>
14073
14074         mpsort: Move AC_LIBOBJ invocations to module description.
14075         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14076         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14077
14078 2011-05-23  Bruno Haible  <bruno@clisp.org>
14079
14080         modechange: Move AC_LIBOBJ invocations to module description.
14081         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14082         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14083
14084 2011-05-23  Bruno Haible  <bruno@clisp.org>
14085
14086         mkdir-p: Move AC_LIBOBJ invocations to module description.
14087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14088         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14089
14090 2011-05-23  Bruno Haible  <bruno@clisp.org>
14091
14092         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14093         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14094         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14095
14096 2011-05-23  Bruno Haible  <bruno@clisp.org>
14097
14098         mgetgroups: Move AC_LIBOBJ invocations to module description.
14099         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14100         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14101
14102 2011-05-23  Bruno Haible  <bruno@clisp.org>
14103
14104         memxor: Move AC_LIBOBJ invocations to module description.
14105         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14106         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14107
14108 2011-05-23  Bruno Haible  <bruno@clisp.org>
14109
14110         memcoll: Move AC_LIBOBJ invocations to module description.
14111         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14112         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14113
14114 2011-05-23  Bruno Haible  <bruno@clisp.org>
14115
14116         memcasecmp: Move AC_LIBOBJ invocations to module description.
14117         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14118         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14119
14120 2011-05-23  Bruno Haible  <bruno@clisp.org>
14121
14122         crypto/md5: Move AC_LIBOBJ invocations to module description.
14123         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14124         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14125
14126 2011-05-23  Bruno Haible  <bruno@clisp.org>
14127
14128         crypto/md4: Move AC_LIBOBJ invocations to module description.
14129         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14130         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14131
14132 2011-05-23  Bruno Haible  <bruno@clisp.org>
14133
14134         crypto/md2: Move AC_LIBOBJ invocations to module description.
14135         * m4/md2.m4: Remove file.
14136         * modules/crypto/md2 (Files): Remove it.
14137         (configure.ac): Remove gl_MD2 call.
14138         (Makefile.am): Augment lib_SOURCES.
14139
14140 2011-05-23  Bruno Haible  <bruno@clisp.org>
14141
14142         long-options: Move AC_LIBOBJ invocations to module description.
14143         * m4/long-options.m4: Remove file.
14144         * modules/long-options (Files): Remove it.
14145         (configure.ac): Remove gl_LONG_OPTIONS call.
14146         (Makefile.am): Augment lib_SOURCES.
14147
14148 2011-05-23  Bruno Haible  <bruno@clisp.org>
14149
14150         i-ring: Move AC_LIBOBJ invocations to module description.
14151         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14152         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14153
14154 2011-05-23  Bruno Haible  <bruno@clisp.org>
14155
14156         idcache: Move AC_LIBOBJ invocations to module description.
14157         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14158         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14159
14160 2011-05-23  Bruno Haible  <bruno@clisp.org>
14161
14162         human: Move AC_LIBOBJ invocations to module description.
14163         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14164         * modules/human (Makefile.am): Augment lib_SOURCES.
14165
14166 2011-05-23  Bruno Haible  <bruno@clisp.org>
14167
14168         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14169         * m4/hmac-sha1.m4: Remove file.
14170         * modules/crypto/hmac-sha1 (Files): Remove it.
14171         (configure.ac): Remove gl_HMAC_SHA1 call.
14172         (Makefile.am): Augment lib_SOURCES.
14173
14174 2011-05-23  Bruno Haible  <bruno@clisp.org>
14175
14176         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14177         * m4/hmac-md5.m4: Remove file.
14178         * modules/crypto/hmac-md5 (Files): Remove it.
14179         (configure.ac): Remove gl_HMAC_MD5 call.
14180         (Makefile.am): Augment lib_SOURCES.
14181
14182 2011-05-23  Bruno Haible  <bruno@clisp.org>
14183
14184         hash: Move AC_LIBOBJ invocations to module description.
14185         * m4/hash.m4: Remove file.
14186         * modules/hash (Files): Remove it.
14187         (configure.ac): Remove gl_HASH call.
14188         (Makefile.am): Augment lib_SOURCES.
14189
14190 2011-05-23  Bruno Haible  <bruno@clisp.org>
14191
14192         hard-locale: Move AC_LIBOBJ invocations to module description.
14193         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14194         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14195
14196 2011-05-23  Bruno Haible  <bruno@clisp.org>
14197
14198         getugroups: Move AC_LIBOBJ invocations to module description.
14199         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14200         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14201
14202 2011-05-23  Bruno Haible  <bruno@clisp.org>
14203
14204         gettime: Move AC_LIBOBJ invocations to module description.
14205         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14206         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14207
14208 2011-05-23  Bruno Haible  <bruno@clisp.org>
14209
14210         getndelim2: Move AC_LIBOBJ invocations to module description.
14211         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14212         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14213
14214 2011-05-23  Bruno Haible  <bruno@clisp.org>
14215
14216         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14217         * m4/gc-pbkdf2-sha1.m4: Remove file.
14218         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14219         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14220         (Makefile.am): Augment lib_SOURCES.
14221
14222 2011-05-23  Bruno Haible  <bruno@clisp.org>
14223
14224         fts: Move AC_LIBOBJ invocations to module description.
14225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14226         * modules/fts (configure.ac): ... to here.
14227
14228 2011-05-23  Bruno Haible  <bruno@clisp.org>
14229
14230         file-type: Move AC_LIBOBJ invocations to module description.
14231         * m4/file-type.m4: Remove file.
14232         * modules/file-type (Files): Remove it.
14233         (configure.ac): Remove gl_FILE_TYPE call.
14234         (Makefile.am): Augment lib_SOURCES.
14235
14236 2011-05-23  Bruno Haible  <bruno@clisp.org>
14237
14238         filenamecat*: Respect rules for use of AC_LIBOBJ.
14239         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14240         Remove AC_LIBOBJ invocation.
14241         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14242         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14243
14244 2011-05-23  Bruno Haible  <bruno@clisp.org>
14245
14246         filemode: Move AC_LIBOBJ invocations to module description.
14247         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14248         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14249
14250 2011-05-23  Bruno Haible  <bruno@clisp.org>
14251
14252         openat-safer: Move AC_LIBOBJ invocations to module description.
14253         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14254         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14255
14256 2011-05-23  Bruno Haible  <bruno@clisp.org>
14257
14258         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14259         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14260         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14261
14262 2011-05-23  Bruno Haible  <bruno@clisp.org>
14263
14264         exclude: Move AC_LIBOBJ invocations to module description.
14265         * m4/exclude.m4: Remove file.
14266         * modules/exclude (Files): Remove it.
14267         (configure.ac): Remove gl_EXCLUDE call.
14268         (Makefile.am): Augment lib_SOURCES.
14269
14270 2011-05-23  Bruno Haible  <bruno@clisp.org>
14271
14272         dirname*: Respect rules for use of AC_LIBOBJ.
14273         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14274         invocations.
14275         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14276         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14277
14278 2011-05-23  Bruno Haible  <bruno@clisp.org>
14279
14280         dirent-safer: Move AC_LIBOBJ invocations to module description.
14281         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14282         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14283
14284 2011-05-23  Bruno Haible  <bruno@clisp.org>
14285
14286         crypto/des: Move AC_LIBOBJ invocations to module description.
14287         * m4/des.m4: Remove file.
14288         * modules/crypto/des (Files): Remove it.
14289         (configure.ac): Remove gl_DES call.
14290         (Makefile.am): Augment lib_SOURCES.
14291
14292 2011-05-23  Bruno Haible  <bruno@clisp.org>
14293
14294         cycle-check: Move AC_LIBOBJ invocations to module description.
14295         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14296         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14297
14298 2011-05-23  Bruno Haible  <bruno@clisp.org>
14299
14300         c-strtold: Move AC_LIBOBJ invocations to module description.
14301         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14302         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14303
14304 2011-05-23  Bruno Haible  <bruno@clisp.org>
14305
14306         c-strtod: Move AC_LIBOBJ invocations to module description.
14307         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14308         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14309
14310 2011-05-23  Bruno Haible  <bruno@clisp.org>
14311
14312         crc: Move AC_LIBOBJ invocations to module description.
14313         * m4/crc.m4: Remove file.
14314         * modules/crc (Files): Remove it.
14315         (configure.ac): Remove gl_CRC call.
14316         (Makefile.am): Augment lib_SOURCES.
14317
14318 2011-05-23  Bruno Haible  <bruno@clisp.org>
14319
14320         close-stream: Move AC_LIBOBJ invocations to module description.
14321         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14322         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14323
14324 2011-05-23  Bruno Haible  <bruno@clisp.org>
14325
14326         closeout: Move AC_LIBOBJ invocations to module description.
14327         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14328         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14329
14330 2011-05-23  Bruno Haible  <bruno@clisp.org>
14331
14332         closein: Move AC_LIBOBJ invocations to module description.
14333         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14334         * modules/closein (Makefile.am): Augment lib_SOURCES.
14335
14336 2011-05-23  Bruno Haible  <bruno@clisp.org>
14337
14338         cloexec: Move AC_LIBOBJ invocations to module description.
14339         * m4/cloexec.m4: Remove file.
14340         * modules/cloexec (Files): Remove it.
14341         (configure.ac): Remove gl_CLOEXEC call.
14342         (Makefile.am): Augment lib_SOURCES.
14343
14344 2011-05-23  Bruno Haible  <bruno@clisp.org>
14345
14346         check-version: Move AC_LIBOBJ invocations to module description.
14347         * m4/check-version.m4: Remove file.
14348         * modules/check-version (Files): Remove it.
14349         (configure.ac): Remove gl_CHECK_VERSION call.
14350         (Makefile.am): Augment lib_SOURCES.
14351
14352 2011-05-23  Bruno Haible  <bruno@clisp.org>
14353
14354         chdir-safer: Move AC_LIBOBJ invocations to module description.
14355         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14356         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14357
14358 2011-05-23  Bruno Haible  <bruno@clisp.org>
14359
14360         canonicalize: Move AC_LIBOBJ invocations to module description.
14361         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14362         AC_LIBOBJ invocation.
14363         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14364
14365 2011-05-23  Bruno Haible  <bruno@clisp.org>
14366
14367         canon-host: Move AC_LIBOBJ invocations to module description.
14368         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14369         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14370         instead of gl_CANON_HOST.
14371         (Makefile.am): Augment lib_SOURCES.
14372
14373 2011-05-23  Bruno Haible  <bruno@clisp.org>
14374
14375         backupfile: Move AC_LIBOBJ invocations to module description.
14376         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14377         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14378
14379 2011-05-23  Bruno Haible  <bruno@clisp.org>
14380
14381         argmatch: Move AC_LIBOBJ invocations to module description.
14382         * m4/argmatch.m4: Remove file.
14383         * modules/argmatch (Files): Remove it.
14384         (configure.ac): Remove gl_ARGMATCH call.
14385         (Makefile.am): Augment lib_SOURCES.
14386
14387 2011-05-23  Bruno Haible  <bruno@clisp.org>
14388
14389         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14390         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14391         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14392
14393 2011-05-23  Bruno Haible  <bruno@clisp.org>
14394
14395         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14396         * m4/arcfour.m4: Remove file.
14397         * modules/crypto/arcfour (Files): Remove it.
14398         (configure.ac): Remove gl_ARCFOUR call.
14399         (Makefile.am): Augment lib_SOURCES.
14400
14401 2011-05-22  Bruno Haible  <bruno@clisp.org>
14402
14403         write: Move AC_LIBOBJ invocations to module description.
14404         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14405         * modules/write (configure.ac): ... to here.
14406
14407 2011-05-22  Bruno Haible  <bruno@clisp.org>
14408
14409         wmemset: Move AC_LIBOBJ invocations to module description.
14410         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14411         here...
14412         * modules/wmemset (configure.ac): ... to here.
14413
14414 2011-05-22  Bruno Haible  <bruno@clisp.org>
14415
14416         wmemmove: Move AC_LIBOBJ invocations to module description.
14417         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14418         here...
14419         * modules/wmemmove (configure.ac): ... to here.
14420
14421 2011-05-22  Bruno Haible  <bruno@clisp.org>
14422
14423         wmemcpy: Move AC_LIBOBJ invocations to module description.
14424         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14425         here...
14426         * modules/wmemcpy (configure.ac): ... to here.
14427
14428 2011-05-22  Bruno Haible  <bruno@clisp.org>
14429
14430         wmemcmp: Move AC_LIBOBJ invocations to module description.
14431         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14432         here...
14433         * modules/wmemcmp (configure.ac): ... to here.
14434
14435 2011-05-22  Bruno Haible  <bruno@clisp.org>
14436
14437         wmemchr: Move AC_LIBOBJ invocations to module description.
14438         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14439         here...
14440         * modules/wmemchr (configure.ac): ... to here.
14441
14442 2011-05-22  Bruno Haible  <bruno@clisp.org>
14443
14444         wcswidth: Move AC_LIBOBJ invocations to module description.
14445         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14446         here...
14447         * modules/wcswidth (configure.ac): ... to here.
14448
14449 2011-05-22  Bruno Haible  <bruno@clisp.org>
14450
14451         wcwidth: Respect rules for use of AC_LIBOBJ.
14452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14453         invocation from here...
14454         * modules/wcwidth (configure.ac): ... to here.
14455         (Depends-on): Update conditions.
14456
14457 2011-05-22  Bruno Haible  <bruno@clisp.org>
14458
14459         wctype: Move AC_LIBOBJ invocations to module description.
14460         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14461         invocation from here...
14462         * modules/wctype (configure.ac): ... to here.
14463         (Depends-on): Update conditions.
14464
14465 2011-05-22  Bruno Haible  <bruno@clisp.org>
14466
14467         wctrans: Move AC_LIBOBJ invocations to module description.
14468         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14469         invocation from here...
14470         * modules/wctrans (configure.ac): ... to here.
14471
14472 2011-05-22  Bruno Haible  <bruno@clisp.org>
14473
14474         wctomb: Move AC_LIBOBJ invocations to module description.
14475         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14476         invocations from here...
14477         * modules/wctomb (configure.ac): ... to here.
14478
14479 2011-05-22  Bruno Haible  <bruno@clisp.org>
14480
14481         wctob: Move AC_LIBOBJ invocations to module description.
14482         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14483         gl_PREREQ_WCTOB invocations from here...
14484         * modules/wctob (configure.ac): ... to here.
14485         (Depends-on): Update conditions.
14486
14487 2011-05-22  Bruno Haible  <bruno@clisp.org>
14488
14489         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14490         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14491         here...
14492         * modules/wcsxfrm (configure.ac): ... to here.
14493
14494 2011-05-22  Bruno Haible  <bruno@clisp.org>
14495
14496         wcstok: Move AC_LIBOBJ invocations to module description.
14497         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14498         * modules/wcstok (configure.ac): ... to here.
14499
14500 2011-05-22  Bruno Haible  <bruno@clisp.org>
14501
14502         wcsstr: Move AC_LIBOBJ invocations to module description.
14503         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14504         * modules/wcsstr (configure.ac): ... to here.
14505
14506 2011-05-22  Bruno Haible  <bruno@clisp.org>
14507
14508         wcsspn: Move AC_LIBOBJ invocations to module description.
14509         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14510         * modules/wcsspn (configure.ac): ... to here.
14511
14512 2011-05-22  Bruno Haible  <bruno@clisp.org>
14513
14514         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14515         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14516         gl_PREREQ_WCSRTOMBS invocations from here...
14517         * modules/wcsrtombs (configure.ac): ... to here.
14518
14519 2011-05-22  Bruno Haible  <bruno@clisp.org>
14520
14521         wcsrchr: Move AC_LIBOBJ invocations to module description.
14522         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14523         here...
14524         * modules/wcsrchr (configure.ac): ... to here.
14525
14526 2011-05-22  Bruno Haible  <bruno@clisp.org>
14527
14528         wcspbrk: Move AC_LIBOBJ invocations to module description.
14529         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14530         here...
14531         * modules/wcspbrk (configure.ac): ... to here.
14532
14533 2011-05-22  Bruno Haible  <bruno@clisp.org>
14534
14535         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14536         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14537         gl_PREREQ_WCSNRTOMBS invocations from here...
14538         * modules/wcsnrtombs (configure.ac): ... to here.
14539
14540 2011-05-22  Bruno Haible  <bruno@clisp.org>
14541
14542         wcsnlen: Move AC_LIBOBJ invocations to module description.
14543         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14544         here...
14545         * modules/wcsnlen (configure.ac): ... to here.
14546
14547 2011-05-22  Bruno Haible  <bruno@clisp.org>
14548
14549         wcsncpy: Move AC_LIBOBJ invocations to module description.
14550         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14551         here...
14552         * modules/wcsncpy (configure.ac): ... to here.
14553
14554 2011-05-22  Bruno Haible  <bruno@clisp.org>
14555
14556         wcsncmp: Move AC_LIBOBJ invocations to module description.
14557         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14558         here...
14559         * modules/wcsncmp (configure.ac): ... to here.
14560
14561 2011-05-22  Bruno Haible  <bruno@clisp.org>
14562
14563         wcsncat: Move AC_LIBOBJ invocations to module description.
14564         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14565         here...
14566         * modules/wcsncat (configure.ac): ... to here.
14567
14568 2011-05-22  Bruno Haible  <bruno@clisp.org>
14569
14570         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14571         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14572         from here...
14573         * modules/wcsncasecmp (configure.ac): ... to here.
14574
14575 2011-05-22  Bruno Haible  <bruno@clisp.org>
14576
14577         wcslen: Move AC_LIBOBJ invocations to module description.
14578         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14579         * modules/wcslen (configure.ac): ... to here.
14580
14581 2011-05-22  Bruno Haible  <bruno@clisp.org>
14582
14583         wcsdup: Move AC_LIBOBJ invocations to module description.
14584         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14585         * modules/wcsdup (configure.ac): ... to here.
14586
14587 2011-05-22  Bruno Haible  <bruno@clisp.org>
14588
14589         wcscspn: Move AC_LIBOBJ invocations to module description.
14590         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14591         here...
14592         * modules/wcscspn (configure.ac): ... to here.
14593
14594 2011-05-22  Bruno Haible  <bruno@clisp.org>
14595
14596         wcscpy: Move AC_LIBOBJ invocations to module description.
14597         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14598         * modules/wcscpy (configure.ac): ... to here.
14599
14600 2011-05-22  Bruno Haible  <bruno@clisp.org>
14601
14602         wcscoll: Move AC_LIBOBJ invocations to module description.
14603         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14604         here...
14605         * modules/wcscoll (configure.ac): ... to here.
14606
14607 2011-05-22  Bruno Haible  <bruno@clisp.org>
14608
14609         wcscmp: Move AC_LIBOBJ invocations to module description.
14610         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14611         * modules/wcscmp (configure.ac): ... to here.
14612
14613 2011-05-22  Bruno Haible  <bruno@clisp.org>
14614
14615         wcschr: Move AC_LIBOBJ invocations to module description.
14616         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14617         * modules/wcschr (configure.ac): ... to here.
14618
14619 2011-05-22  Bruno Haible  <bruno@clisp.org>
14620
14621         wcscat: Move AC_LIBOBJ invocations to module description.
14622         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14623         * modules/wcscat (configure.ac): ... to here.
14624
14625 2011-05-22  Bruno Haible  <bruno@clisp.org>
14626
14627         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14628         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14629         here...
14630         * modules/wcscasecmp (configure.ac): ... to here.
14631
14632 2011-05-22  Bruno Haible  <bruno@clisp.org>
14633
14634         wcrtomb: Move AC_LIBOBJ invocations to module description.
14635         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14636         invocations from here...
14637         * modules/wcrtomb (configure.ac): ... to here.
14638
14639 2011-05-22  Bruno Haible  <bruno@clisp.org>
14640
14641         wcpncpy: Move AC_LIBOBJ invocations to module description.
14642         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14643         here...
14644         * modules/wcpncpy (configure.ac): ... to here.
14645
14646 2011-05-22  Bruno Haible  <bruno@clisp.org>
14647
14648         wcpcpy: Move AC_LIBOBJ invocations to module description.
14649         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14650         * modules/wcpcpy (configure.ac): ... to here.
14651
14652 2011-05-22  Bruno Haible  <bruno@clisp.org>
14653
14654         waitpid: Move AC_LIBOBJ invocations to module description.
14655         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14656         invocation from here...
14657         * modules/waitpid (configure.ac): ... to here.
14658
14659 2011-05-22  Bruno Haible  <bruno@clisp.org>
14660
14661         utimensat: Move AC_LIBOBJ invocations to module description.
14662         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14663         here...
14664         * modules/utimensat (configure.ac): ... to here.
14665
14666 2011-05-22  Bruno Haible  <bruno@clisp.org>
14667
14668         usleep: Move AC_LIBOBJ invocations to module description.
14669         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14670         here...
14671         * modules/usleep (configure.ac): ... to here.
14672
14673 2011-05-22  Bruno Haible  <bruno@clisp.org>
14674
14675         unlockpt: Move AC_LIBOBJ invocations to module description.
14676         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14677         gl_PREREQ_UNLOCKPT invocations from here...
14678         * modules/unlockpt (configure.ac): ... to here.
14679
14680 2011-05-22  Bruno Haible  <bruno@clisp.org>
14681
14682         unlink: Respect rules for use of AC_LIBOBJ.
14683         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14684         * modules/unlink (configure.ac): ... to here.
14685
14686 2011-05-22  Bruno Haible  <bruno@clisp.org>
14687
14688         uname: Move AC_LIBOBJ invocations to module description.
14689         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14691         here...
14692         * modules/uname (configure.ac): ... to here.
14693
14694 2011-05-22  Bruno Haible  <bruno@clisp.org>
14695
14696         ttyname_r: Move AC_LIBOBJ invocations to module description.
14697         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14698         gl_PREREQ_TTYNAME_R invocations from here...
14699         * modules/ttyname_r (configure.ac): ... to here.
14700
14701 2011-05-22  Bruno Haible  <bruno@clisp.org>
14702
14703         tsearch: Move AC_LIBOBJ invocations to module description.
14704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14705         invocations from here...
14706         * modules/tsearch (configure.ac): ... to here.
14707
14708 2011-05-22  Bruno Haible  <bruno@clisp.org>
14709
14710         towctrans: Move AC_LIBOBJ invocations to module description.
14711         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14712         AC_LIBOBJ invocation from here...
14713         * modules/towctrans (configure.ac): ... to here.
14714
14715 2011-05-22  Bruno Haible  <bruno@clisp.org>
14716
14717         tmpfile: Move AC_LIBOBJ invocations to module description.
14718         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14719         invocations from here...
14720         * modules/tmpfile (configure.ac): ... to here.
14721
14722 2011-05-22  Bruno Haible  <bruno@clisp.org>
14723
14724         times: Move AC_LIBOBJ invocations to module description.
14725         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14726         * modules/times (configure.ac): ... to here.
14727
14728 2011-05-22  Bruno Haible  <bruno@clisp.org>
14729
14730         time_r: Move AC_LIBOBJ invocations to module description.
14731         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14732         invocations from here...
14733         * modules/time_r (configure.ac): ... to here.
14734
14735 2011-05-22  Bruno Haible  <bruno@clisp.org>
14736
14737         timegm: Move AC_LIBOBJ invocations to module description.
14738         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14739         invocations from here...
14740         * modules/timegm (configure.ac): ... to here.
14741
14742 2011-05-22  Bruno Haible  <bruno@clisp.org>
14743
14744         tcgetsid: Move AC_LIBOBJ invocations to module description.
14745         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14746         and gl_PREREQ_TCGETSID invocations from here...
14747         * modules/tcgetsid (configure.ac): ... to here.
14748         (Depends-on): Update conditions.
14749
14750 2011-05-22  Bruno Haible  <bruno@clisp.org>
14751
14752         symlinkat: Move AC_LIBOBJ invocations to module description.
14753         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14754         here...
14755         * modules/symlinkat (configure.ac): ... to here.
14756
14757 2011-05-22  Bruno Haible  <bruno@clisp.org>
14758
14759         symlink: Move AC_LIBOBJ invocations to module description.
14760         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14761         here...
14762         * modules/symlink (configure.ac): ... to here.
14763
14764 2011-05-22  Bruno Haible  <bruno@clisp.org>
14765
14766         strverscmp: Move AC_LIBOBJ invocations to module description.
14767         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14769         from here...
14770         * modules/strverscmp (configure.ac): ... to here.
14771
14772 2011-05-22  Bruno Haible  <bruno@clisp.org>
14773
14774         strtok_r: Move AC_LIBOBJ invocations to module description.
14775         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14776         and gl_PREREQ_STRTOK_R invocations from here...
14777         * modules/strtok_r (configure.ac): ... to here.
14778         (Depends-on): Update conditions.
14779
14780 2011-05-22  Bruno Haible  <bruno@clisp.org>
14781
14782         strtoumax: Move AC_LIBOBJ invocations to module description.
14783         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14785         from here...
14786         * modules/strtoumax (configure.ac): ... to here.
14787
14788 2011-05-22  Bruno Haible  <bruno@clisp.org>
14789
14790         strtoimax: Move AC_LIBOBJ invocations to module description.
14791         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14793         from here...
14794         * modules/strtoimax (configure.ac): ... to here.
14795
14796 2011-05-22  Bruno Haible  <bruno@clisp.org>
14797
14798         strtoull: Move AC_LIBOBJ invocations to module description.
14799         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14801         from here...
14802         * modules/strtoull (configure.ac): ... to here.
14803
14804 2011-05-22  Bruno Haible  <bruno@clisp.org>
14805
14806         strtoll: Move AC_LIBOBJ invocations to module description.
14807         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14809         here...
14810         * modules/strtoll (configure.ac): ... to here.
14811
14812 2011-05-22  Bruno Haible  <bruno@clisp.org>
14813
14814         strtoul: Move AC_LIBOBJ invocations to module description.
14815         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14816         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14817         * modules/strtoul (configure.ac): ... to here.
14818
14819 2011-05-22  Bruno Haible  <bruno@clisp.org>
14820
14821         strtol: Move AC_LIBOBJ invocations to module description.
14822         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14823         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14824         * modules/strtol (configure.ac): ... to here.
14825
14826 2011-05-22  Bruno Haible  <bruno@clisp.org>
14827
14828         strtod: Move AC_LIBOBJ invocations to module description.
14829         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14830         invocations from here...
14831         * modules/strtod (configure.ac): ... to here.
14832
14833 2011-05-22  Bruno Haible  <bruno@clisp.org>
14834
14835         strstr*: Move AC_LIBOBJ invocations to module description.
14836         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14837         invocations from here...
14838         * modules/strstr-simple (configure.ac): ... to here.
14839         * modules/strstr (configure.ac): ... and here.
14840
14841 2011-05-22  Bruno Haible  <bruno@clisp.org>
14842
14843         strsignal: Move AC_LIBOBJ invocations to module description.
14844         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14845         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14846         * modules/strsignal (configure.ac): ... to here.
14847         (Depends-on): Update conditions.
14848
14849 2011-05-22  Bruno Haible  <bruno@clisp.org>
14850
14851         strsep: Move AC_LIBOBJ invocations to module description.
14852         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14853         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14854         here...
14855         * modules/strsep (configure.ac): ... to here.
14856
14857 2011-05-22  Bruno Haible  <bruno@clisp.org>
14858
14859         strptime: Move AC_LIBOBJ invocations to module description.
14860         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14861         gl_PREREQ_STRPTIME invocations from here...
14862         * modules/strptime (configure.ac): ... to here.
14863
14864 2011-05-22  Bruno Haible  <bruno@clisp.org>
14865
14866         strpbrk: Move AC_LIBOBJ invocations to module description.
14867         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14869         here...
14870         * modules/strpbrk (configure.ac): ... to here.
14871
14872 2011-05-22  Bruno Haible  <bruno@clisp.org>
14873
14874         strnlen: Move AC_LIBOBJ invocations to module description.
14875         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14876         invocations from here...
14877         * modules/strnlen (configure.ac): ... to here.
14878
14879 2011-05-22  Bruno Haible  <bruno@clisp.org>
14880
14881         strndup: Move AC_LIBOBJ invocations to module description.
14882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14883         invocations from here...
14884         * modules/strndup (configure.ac): ... to here.
14885         (Depends-on): Update conditions.
14886
14887 2011-05-22  Bruno Haible  <bruno@clisp.org>
14888
14889         strncat: Move AC_LIBOBJ invocations to module description.
14890         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14891         invocations from here...
14892         * modules/strncat (configure.ac): ... to here.
14893
14894 2011-05-22  Bruno Haible  <bruno@clisp.org>
14895
14896         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14897         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14898         invocations from here...
14899         * modules/strdup (configure.ac): ... to here.
14900         * modules/strdup-posix (configure.ac): ... and here.
14901
14902 2011-05-22  Bruno Haible  <bruno@clisp.org>
14903
14904         strcspn: Move AC_LIBOBJ invocations to module description.
14905         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14907         here...
14908         * modules/strcspn (configure.ac): ... to here.
14909
14910 2011-05-22  Bruno Haible  <bruno@clisp.org>
14911
14912         strchrnul: Move AC_LIBOBJ invocations to module description.
14913         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14914         gl_PREREQ_STRCHRNUL invocations from here...
14915         * modules/strchrnul (configure.ac): ... to here.
14916
14917 2011-05-22  Bruno Haible  <bruno@clisp.org>
14918
14919         strcasestr*: Move AC_LIBOBJ invocations to module description.
14920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14921         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14922         * modules/strcasestr-simple (configure.ac): ... to here.
14923         * modules/strcasestr (configure.ac): ... and here.
14924
14925 2011-05-22  Bruno Haible  <bruno@clisp.org>
14926
14927         strcase: Move AC_LIBOBJ invocations to module description.
14928         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14929         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14930         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14931         gl_PREREQ_STRNCASECMP invocations from here...
14932         * modules/strcase (configure.ac): ... to here.
14933
14934 2011-05-22  Bruno Haible  <bruno@clisp.org>
14935
14936         stpncpy: Move AC_LIBOBJ invocations to module description.
14937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14938         here...
14939         * modules/stpncpy (configure.ac): ... to here.
14940
14941 2011-05-22  Bruno Haible  <bruno@clisp.org>
14942
14943         stpcpy: Move AC_LIBOBJ invocations to module description.
14944         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14946         here...
14947         * modules/stpcpy (configure.ac): ... to here.
14948
14949 2011-05-21  Bruno Haible  <bruno@clisp.org>
14950
14951         stat: Move AC_LIBOBJ invocations to module description.
14952         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14953         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14954         here...
14955         * modules/stat (configure.ac): ... to here.
14956
14957 2011-05-21  Bruno Haible  <bruno@clisp.org>
14958
14959         sleep: Move AC_LIBOBJ invocations to module description.
14960         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14961         * modules/sleep (configure.ac): ... to here.
14962
14963 2011-05-21  Bruno Haible  <bruno@clisp.org>
14964
14965         signbit: Move AC_LIBOBJ invocations to module description.
14966         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14967         * modules/signbit (configure.ac): ... to here.
14968
14969 2011-05-21  Bruno Haible  <bruno@clisp.org>
14970
14971         sigprocmask: Move AC_LIBOBJ invocations to module description.
14972         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14973         gl_PREREQ_SIGPROMASK invocations from here...
14974         * modules/sigprocmask (configure.ac): ... to here.
14975
14976 2011-05-21  Bruno Haible  <bruno@clisp.org>
14977
14978         sigaction: Move AC_LIBOBJ invocations to module description.
14979         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14980         gl_PREREQ_SIGACTION invocations from here...
14981         * modules/sigaction (configure.ac): ... to here.
14982
14983 2011-05-21  Bruno Haible  <bruno@clisp.org>
14984
14985         sig2str: Move AC_LIBOBJ invocations to module description.
14986         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14988         here...
14989         * modules/sig2str (configure.ac): ... to here.
14990
14991 2011-05-21  Bruno Haible  <bruno@clisp.org>
14992
14993         setlocale: Move AC_LIBOBJ invocations to module description.
14994         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14995         gl_PREREQ_SETLOCALE invocations from here...
14996         * modules/setlocale (configure.ac): ... to here.
14997
14998 2011-05-21  Bruno Haible  <bruno@clisp.org>
14999
15000         unsetenv: Move AC_LIBOBJ invocations to module description.
15001         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15002         and gl_PREREQ_UNSETENV invocations from here...
15003         * modules/unsetenv (configure.ac): ... to here.
15004         (Depends-on): Update.
15005
15006 2011-05-21  Bruno Haible  <bruno@clisp.org>
15007
15008         setenv: Move AC_LIBOBJ invocations to module description.
15009         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15010         here...
15011         * modules/setenv (configure.ac): ... to here.
15012
15013 2011-05-21  Bruno Haible  <bruno@clisp.org>
15014
15015         selinux-h: Move AC_LIBOBJ invocations to module description.
15016         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15017         AC_LIBOBJ invocation from here...
15018         * modules/selinux-h (configure.ac): ... to here.
15019
15020 2011-05-21  Bruno Haible  <bruno@clisp.org>
15021
15022         select: Respect rules for use of AC_LIBOBJ.
15023         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15024         here...
15025         * modules/select (configure.ac): ... to here.
15026
15027 2011-05-21  Bruno Haible  <bruno@clisp.org>
15028
15029         scandir: Move AC_LIBOBJ invocations to module description.
15030         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15031         invocations from here...
15032         * modules/scandir (configure.ac): ... to here.
15033
15034 2011-05-21  Bruno Haible  <bruno@clisp.org>
15035
15036         rpmatch: Move AC_LIBOBJ invocations to module description.
15037         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15039         here...
15040         * modules/rpmatch (configure.ac): ... to here.
15041
15042 2011-05-21  Bruno Haible  <bruno@clisp.org>
15043
15044         rmdir: Respect rules for use of AC_LIBOBJ.
15045         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15046         * modules/rmdir (configure.ac): ... to here.
15047
15048 2011-05-21  Bruno Haible  <bruno@clisp.org>
15049
15050         renameat: Move AC_LIBOBJ invocations to module description.
15051         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15052         here...
15053         * modules/renameat (configure.ac): ... to here.
15054
15055 2011-05-21  Bruno Haible  <bruno@clisp.org>
15056
15057         rename: Respect rules for use of AC_LIBOBJ.
15058         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15059         here...
15060         * modules/rename (configure.ac): ... to here.
15061
15062 2011-05-21  Bruno Haible  <bruno@clisp.org>
15063
15064         remove: Move AC_LIBOBJ invocations to module description.
15065         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15066         here...
15067         * modules/remove (configure.ac): ... to here.
15068
15069 2011-05-21  Bruno Haible  <bruno@clisp.org>
15070
15071         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15072         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15073         macro.
15074         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15075         * modules/relocatable-lib (configure.ac): ... to here.
15076         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15077         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15078
15079 2011-05-21  Bruno Haible  <bruno@clisp.org>
15080
15081         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15082         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15083         here...
15084         * modules/relocatable-prog (configure.ac): ... to here.
15085
15086 2011-05-21  Bruno Haible  <bruno@clisp.org>
15087
15088         regex: Move AC_LIBOBJ invocations to module description.
15089         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15090         invocations from here...
15091         * modules/regex (configure.ac): ... to here.
15092
15093 2011-05-21  Bruno Haible  <bruno@clisp.org>
15094
15095         realloc-*: Move AC_LIBOBJ invocations to module description.
15096         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15097         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15098         AC_LIBOBJ invocations from here...
15099         * modules/realloc-gnu (configure.ac): ... to here.
15100         * modules/realloc-posix (configure.ac): ... and here.
15101
15102 2011-05-21  Bruno Haible  <bruno@clisp.org>
15103
15104         readutmp: Move AC_LIBOBJ invocations to module description.
15105         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15106         * modules/readutmp (configure.ac): ... to here.
15107
15108 2011-05-21  Bruno Haible  <bruno@clisp.org>
15109
15110         readlinkat: Move AC_LIBOBJ invocations to module description.
15111         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15112         here...
15113         * modules/readlinkat (configure.ac): ... to here.
15114
15115 2011-05-21  Bruno Haible  <bruno@clisp.org>
15116
15117         readlink: Move AC_LIBOBJ invocations to module description.
15118         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15119         gl_PREREQ_READLINK invocations from here...
15120         * modules/readlink (configure.ac): ... to here.
15121
15122 2011-05-21  Bruno Haible  <bruno@clisp.org>
15123
15124         readline: Move AC_LIBOBJ invocations to module description.
15125         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15126         gl_PREREQ_READLINE invocations from here...
15127         * modules/readline (configure.ac): ... to here.
15128
15129 2011-05-21  Bruno Haible  <bruno@clisp.org>
15130
15131         read: Move AC_LIBOBJ invocations to module description.
15132         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15133         * modules/read (configure.ac): ... to here.
15134
15135 2011-05-21  Bruno Haible  <bruno@clisp.org>
15136
15137         rawmemchr: Move AC_LIBOBJ invocations to module description.
15138         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15140         from here...
15141         * modules/rawmemchr (configure.ac): ... to here.
15142
15143 2011-05-21  Bruno Haible  <bruno@clisp.org>
15144
15145         random_r: Move AC_LIBOBJ invocations to module description.
15146         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15147         gl_PREREQ_RANDOM_R invocations from here...
15148         * modules/random_r (configure.ac): ... to here.
15149
15150 2011-05-21  Bruno Haible  <bruno@clisp.org>
15151
15152         pwrite: Move AC_LIBOBJ invocations to module description.
15153         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15154         * modules/pwrite (configure.ac): ... to here.
15155
15156 2011-05-21  Bruno Haible  <bruno@clisp.org>
15157
15158         putenv: Move AC_LIBOBJ invocations to module description.
15159         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15160         * modules/putenv (configure.ac): ... to here.
15161
15162 2011-05-21  Bruno Haible  <bruno@clisp.org>
15163
15164         login_tty: Move AC_LIBOBJ invocations to module description.
15165         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15166         * modules/login_tty (configure.ac): ... to here.
15167
15168 2011-05-21  Bruno Haible  <bruno@clisp.org>
15169
15170         openpty: Move AC_LIBOBJ invocations to module description.
15171         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15172         * modules/openpty (configure.ac): ... to here.
15173
15174 2011-05-21  Bruno Haible  <bruno@clisp.org>
15175
15176         forkpty: Move AC_LIBOBJ invocations to module description.
15177         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15178         * modules/forkpty (configure.ac): ... to here.
15179
15180 2011-05-21  Bruno Haible  <bruno@clisp.org>
15181
15182         ptsname: Move AC_LIBOBJ invocations to module description.
15183         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15184         invocations from here...
15185         * modules/ptsname (configure.ac): ... to here.
15186
15187 2011-05-21  Bruno Haible  <bruno@clisp.org>
15188
15189         pread: Move AC_LIBOBJ invocations to module description.
15190         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15191         * modules/pread (configure.ac): ... to here.
15192
15193 2011-05-21  Bruno Haible  <bruno@clisp.org>
15194
15195         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15196         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15197         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15198         * modules/posix_spawn (configure.ac): ... to here.
15199         * modules/posix_spawnp (configure.ac): ... and here.
15200
15201 2011-05-21  Bruno Haible  <bruno@clisp.org>
15202
15203         popen: Move AC_LIBOBJ invocations to module description.
15204         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15205         invocations from here...
15206         * modules/popen (configure.ac): ... to here.
15207
15208 2011-05-21  Bruno Haible  <bruno@clisp.org>
15209
15210         poll: Move AC_LIBOBJ invocations to module description.
15211         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15212         invocations from here...
15213         * modules/poll (configure.ac): ... to here.
15214
15215 2011-05-21  Bruno Haible  <bruno@clisp.org>
15216
15217         pipe-posix: Move AC_LIBOBJ invocations to module description.
15218         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15219         * modules/pipe-posix (configure.ac): ... to here.
15220
15221 2011-05-21  Bruno Haible  <bruno@clisp.org>
15222
15223         openat: Respect rules for use of AC_LIBOBJ.
15224         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15225         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15226         * modules/openat (configure.ac): ... to here.
15227
15228 2011-05-21  Bruno Haible  <bruno@clisp.org>
15229
15230         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15231         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15232         invocation from here...
15233         * modules/obstack-printf (configure.ac): ... to here.
15234         * modules/obstack-printf-posix (configure.ac): ... and here.
15235
15236 2011-05-21  Bruno Haible  <bruno@clisp.org>
15237
15238         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15239         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15240         from here...
15241         * modules/nl_langinfo (configure.ac): ... to here.
15242
15243 2011-05-21  Bruno Haible  <bruno@clisp.org>
15244
15245         nanosleep: Move AC_LIBOBJ invocations to module description.
15246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15247         gl_PREREQ_NANOSLEEP invocations from here...
15248         * modules/nanosleep (configure.ac): ... to here.
15249
15250 2011-05-21  Bruno Haible  <bruno@clisp.org>
15251
15252         mountlist: Move AC_LIBOBJ invocations to module description.
15253         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15254         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15255         * modules/mountlist (configure.ac): ... to here.
15256
15257 2011-05-21  Bruno Haible  <bruno@clisp.org>
15258
15259         mktime: Respect rules for use of AC_LIBOBJ.
15260         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15261         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15262         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15263         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15264         * modules/mktime (configure.ac): ... to here.
15265         * modules/mktime-internal (configure.ac): ... and here.
15266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15267
15268 2011-05-21  Bruno Haible  <bruno@clisp.org>
15269
15270         mkstemps: Move AC_LIBOBJ invocations to module description.
15271         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15272         here...
15273         * modules/mkstemps (configure.ac): ... to here.
15274
15275 2011-05-21  Bruno Haible  <bruno@clisp.org>
15276
15277         mkstemp: Move AC_LIBOBJ invocations to module description.
15278         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15279         gl_PREREQ_MKSTEMP invocations from here...
15280         * modules/mkstemp (configure.ac): ... to here.
15281
15282 2011-05-21  Bruno Haible  <bruno@clisp.org>
15283
15284         mkostemps: Move AC_LIBOBJ invocations to module description.
15285         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15286         here...
15287         * modules/mkostemps (configure.ac): ... to here.
15288
15289 2011-05-21  Bruno Haible  <bruno@clisp.org>
15290
15291         mkostemp: Move AC_LIBOBJ invocations to module description.
15292         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15293         gl_PREREQ_MKOSTEMP invocations from here...
15294         * modules/mkostemp (configure.ac): ... to here.
15295
15296 2011-05-21  Bruno Haible  <bruno@clisp.org>
15297
15298         mknod: Move AC_LIBOBJ invocations to module description.
15299         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15300         * modules/mknod (configure.ac): ... to here.
15301
15302 2011-05-21  Bruno Haible  <bruno@clisp.org>
15303
15304         mkfifoat: Move AC_LIBOBJ invocations to module description.
15305         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15306         here...
15307         * modules/mkfifoat (configure.ac): ... to here.
15308
15309 2011-05-21  Bruno Haible  <bruno@clisp.org>
15310
15311         mkfifo: Respect rules for use of AC_LIBOBJ.
15312         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15313         here...
15314         * modules/mkfifo (configure.ac): ... to here.
15315
15316 2011-05-21  Bruno Haible  <bruno@clisp.org>
15317
15318         mkdtemp: Move AC_LIBOBJ invocations to module description.
15319         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15320         invocations from here...
15321         * modules/mkdtemp (configure.ac): ... to here.
15322
15323 2011-05-21  Bruno Haible  <bruno@clisp.org>
15324
15325         mkdir: Move AC_LIBOBJ invocations to module description.
15326         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15327         * modules/mkdir (configure.ac): ... to here.
15328
15329 2011-05-21  Bruno Haible  <bruno@clisp.org>
15330
15331         memset: Move AC_LIBOBJ invocations to module description.
15332         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15334         here...
15335         * modules/memset (configure.ac): ... to here.
15336
15337 2011-05-21  Bruno Haible  <bruno@clisp.org>
15338
15339         memrchr: Move AC_LIBOBJ invocations to module description.
15340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15342         here...
15343         * modules/memrchr (configure.ac): ... to here.
15344
15345 2011-05-21  Bruno Haible  <bruno@clisp.org>
15346
15347         mempcpy: Move AC_LIBOBJ invocations to module description.
15348         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15350         here...
15351         * modules/mempcpy (configure.ac): ... to here.
15352
15353 2011-05-21  Bruno Haible  <bruno@clisp.org>
15354
15355         memmove: Move AC_LIBOBJ invocations to module description.
15356         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15358         here...
15359         * modules/memmove (configure.ac): ... to here.
15360
15361 2011-05-21  Bruno Haible  <bruno@clisp.org>
15362
15363         memmem*: Move AC_LIBOBJ invocations to module description.
15364         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15365         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15366         here...
15367         (gl_FUNC_MEMMEM): ... and here...
15368         * modules/memmem-simple (configure.ac): ... to here.
15369         * modules/memmem (configure.ac): ... and here.
15370
15371 2011-05-21  Bruno Haible  <bruno@clisp.org>
15372
15373         memcpy: Move AC_LIBOBJ invocations to module description.
15374         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15376         here...
15377         * modules/memcpy (configure.ac): ... to here.
15378
15379 2011-05-21  Bruno Haible  <bruno@clisp.org>
15380
15381         memcmp: Simplify autoconf macro.
15382         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15383         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15384         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15385
15386 2011-05-21  Bruno Haible  <bruno@clisp.org>
15387
15388         memcmp: Move AC_LIBOBJ invocations to module description.
15389         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15390         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15391         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15392         * modules/memcmp (configure.ac): ... to here.
15393         (Depends-on): Update conditions.
15394
15395 2011-05-21  Bruno Haible  <bruno@clisp.org>
15396
15397         memchr: Respect rules for use of AC_LIBOBJ.
15398         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15399         invocations from here...
15400         * modules/memchr (configure.ac): ... to here.
15401
15402 2011-05-21  Bruno Haible  <bruno@clisp.org>
15403
15404         mbtowc: Move AC_LIBOBJ invocations to module description.
15405         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15406         invocations from here...
15407         * modules/mbtowc (configure.ac): ... to here.
15408
15409 2011-05-21  Bruno Haible  <bruno@clisp.org>
15410
15411         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15412         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15413         gl_PREREQ_MBSRTOWCS invocations from here...
15414         * modules/mbsrtowcs (configure.ac): ... to here.
15415
15416 2011-05-21  Bruno Haible  <bruno@clisp.org>
15417
15418         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15419         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15420         gl_PREREQ_MBSNRTOWCS invocations from here...
15421         * modules/mbsnrtowcs (configure.ac): ... to here.
15422
15423 2011-05-21  Bruno Haible  <bruno@clisp.org>
15424
15425         mbsinit: Move AC_LIBOBJ invocations to module description.
15426         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15427         invocations from here...
15428         * modules/mbsinit (configure.ac): ... to here.
15429
15430 2011-05-21  Bruno Haible  <bruno@clisp.org>
15431
15432         mbrlen: Move AC_LIBOBJ invocations to module description.
15433         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15434         invocations from here...
15435         * modules/mbrlen (configure.ac): ... to here.
15436
15437 2011-05-21  Bruno Haible  <bruno@clisp.org>
15438
15439         mbrtowc: Respect rules for use of AC_LIBOBJ.
15440         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15441         invocations from here...
15442         * modules/mbrtowc (configure.ac): ... to here.
15443
15444 2011-05-21  Bruno Haible  <bruno@clisp.org>
15445
15446         malloc-*: Move AC_LIBOBJ invocations to module description.
15447         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15448         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15449         AC_LIBOBJ invocations from here...
15450         * modules/malloc-gnu (configure.ac): ... to here.
15451         * modules/malloc-posix (configure.ac): ... and here.
15452
15453 2011-05-21  Bruno Haible  <bruno@clisp.org>
15454
15455         lstat, openat: Respect rules for use of AC_LIBOBJ.
15456         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15457         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15458         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15459         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15460         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15461         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15462         here.
15463         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15464
15465 2011-05-21  Bruno Haible  <bruno@clisp.org>
15466
15467         lseek: Move AC_LIBOBJ invocations to module description.
15468         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15469         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15470         * modules/lseek (configure.ac): ... to here.
15471
15472 2011-05-21  Bruno Haible  <bruno@clisp.org>
15473
15474         linkat: Move AC_LIBOBJ invocations to module description.
15475         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15476         here...
15477         * modules/linkat (configure.ac): ... to here.
15478
15479 2011-05-21  Bruno Haible  <bruno@clisp.org>
15480
15481         link: Respect rules for use of AC_LIBOBJ.
15482         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15483         * modules/link (configure.ac): ... to here.
15484
15485 2011-05-21  Bruno Haible  <bruno@clisp.org>
15486
15487         lchown: Move AC_LIBOBJ invocations to module description.
15488         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15489         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15490         * modules/lchown (configure.ac): ... to here.
15491
15492 2011-05-21  Bruno Haible  <bruno@clisp.org>
15493
15494         iswctype: Move AC_LIBOBJ invocations to module description.
15495         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15496         here...
15497         * modules/iswctype (configure.ac): ... to here.
15498
15499 2011-05-21  Bruno Haible  <bruno@clisp.org>
15500
15501         iswblank: Move AC_LIBOBJ invocations to module description.
15502         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15503         here...
15504         * modules/iswblank (configure.ac): ... to here.
15505
15506 2011-05-21  Bruno Haible  <bruno@clisp.org>
15507
15508         atanl: Move AC_LIBOBJ invocations to module description.
15509         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15510         * modules/atanl (configure.ac): ... to here.
15511
15512 2011-05-21  Bruno Haible  <bruno@clisp.org>
15513
15514         acosl: Move AC_LIBOBJ invocations to module description.
15515         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15516         * modules/acosl (configure.ac): ... to here.
15517
15518 2011-05-21  Bruno Haible  <bruno@clisp.org>
15519
15520         asinl: Respect rules for use of AC_LIBOBJ.
15521         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15522         * modules/asinl (configure.ac): ... to here.
15523
15524 2011-05-21  Bruno Haible  <bruno@clisp.org>
15525
15526         tanl: Move AC_LIBOBJ invocations to module description.
15527         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15528         * modules/tanl (configure.ac): ... to here.
15529
15530 2011-05-21  Bruno Haible  <bruno@clisp.org>
15531
15532         cosl: Move AC_LIBOBJ invocations to module description.
15533         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15534         * modules/cosl (configure.ac): ... to here.
15535
15536 2011-05-21  Bruno Haible  <bruno@clisp.org>
15537
15538         sinl: Move AC_LIBOBJ invocations to module description.
15539         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15540         * modules/sinl (configure.ac): ... to here.
15541
15542 2011-05-21  Bruno Haible  <bruno@clisp.org>
15543
15544         logl: Move AC_LIBOBJ invocations to module description.
15545         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15546         * modules/logl (configure.ac): ... to here.
15547
15548 2011-05-21  Bruno Haible  <bruno@clisp.org>
15549
15550         expl: Move AC_LIBOBJ invocations to module description.
15551         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15552         * modules/expl (configure.ac): ... to here.
15553
15554 2011-05-21  Bruno Haible  <bruno@clisp.org>
15555
15556         roundl: Move AC_LIBOBJ invocations to module description.
15557         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15558         * modules/roundl (configure.ac): ... to here.
15559
15560 2011-05-21  Bruno Haible  <bruno@clisp.org>
15561
15562         round: Move AC_LIBOBJ invocations to module description.
15563         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15564         * modules/round (configure.ac): ... to here.
15565
15566 2011-05-21  Bruno Haible  <bruno@clisp.org>
15567
15568         roundf: Move AC_LIBOBJ invocations to module description.
15569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15570         * modules/roundf (configure.ac): ... to here.
15571
15572 2011-05-21  Bruno Haible  <bruno@clisp.org>
15573
15574         truncl: Move AC_LIBOBJ invocations to module description.
15575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15576         * modules/truncl (configure.ac): ... to here.
15577
15578 2011-05-21  Bruno Haible  <bruno@clisp.org>
15579
15580         trunc: Move AC_LIBOBJ invocations to module description.
15581         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15582         * modules/trunc (configure.ac): ... to here.
15583
15584 2011-05-21  Bruno Haible  <bruno@clisp.org>
15585
15586         truncf: Move AC_LIBOBJ invocations to module description.
15587         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15588         * modules/truncf (configure.ac): ... to here.
15589
15590 2011-05-21  Bruno Haible  <bruno@clisp.org>
15591
15592         ceill: Move AC_LIBOBJ invocations to module description.
15593         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15594         * modules/ceill (configure.ac): ... to here.
15595
15596 2011-05-21  Bruno Haible  <bruno@clisp.org>
15597
15598         ceil: Move AC_LIBOBJ invocations to module description.
15599         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15600         * modules/ceil (configure.ac): ... to here.
15601
15602 2011-05-21  Bruno Haible  <bruno@clisp.org>
15603
15604         ceilf: Move AC_LIBOBJ invocations to module description.
15605         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15606         * modules/ceilf (configure.ac): ... to here.
15607
15608 2011-05-21  Bruno Haible  <bruno@clisp.org>
15609
15610         floorl: Respect rules for use of AC_LIBOBJ.
15611         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15612         * modules/floorl (configure.ac): ... to here.
15613
15614 2011-05-21  Bruno Haible  <bruno@clisp.org>
15615
15616         floor: Respect rules for use of AC_LIBOBJ.
15617         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15618         * modules/floor (configure.ac): ... to here.
15619
15620 2011-05-21  Bruno Haible  <bruno@clisp.org>
15621
15622         floorf: Move AC_LIBOBJ invocations to module description.
15623         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15624         * modules/floorf (configure.ac): ... to here.
15625
15626 2011-05-20  Bruno Haible  <bruno@clisp.org>
15627
15628         sqrtl: Respect rules for use of AC_LIBOBJ.
15629         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15630         * modules/sqrtl (configure.ac): ... to here.
15631
15632 2011-05-20  Bruno Haible  <bruno@clisp.org>
15633
15634         ldexpl: Respect rules for use of AC_LIBOBJ.
15635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15636         * modules/ldexpl (configure.ac): ... to here.
15637
15638 2011-05-20  Bruno Haible  <bruno@clisp.org>
15639
15640         frexpl*: Respect rules for use of AC_LIBOBJ.
15641         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15642         invocation from here...
15643         * modules/frexpl (configure.ac): ... to here.
15644         * modules/frexpl-nolibm (configure.ac): ... and here.
15645
15646 2011-05-20  Bruno Haible  <bruno@clisp.org>
15647
15648         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15649         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15650         invocation from here...
15651         * modules/frexp (configure.ac): ... to here.
15652         * modules/frexp-nolibm (configure.ac): ... and here.
15653
15654 2011-05-20  Bruno Haible  <bruno@clisp.org>
15655
15656         isnan: Respect rules for use of AC_LIBOBJ.
15657         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15658         invocations here.
15659         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15660         REPLACE_ISNAN.
15661         * modules/isnand (configure.ac): Likewise.
15662         * modules/isnanl (configure.ac): Likewise.
15663
15664 2011-05-20  Bruno Haible  <bruno@clisp.org>
15665
15666         isnanl*: Respect rules for use of AC_LIBOBJ.
15667         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15668         invocation from here...
15669         * modules/isnanl (configure.ac): ... to here.
15670         * modules/isnanl-nolibm (configure.ac): ... and here.
15671
15672 2011-05-20  Bruno Haible  <bruno@clisp.org>
15673
15674         isnand*: Move AC_LIBOBJ invocations to module description.
15675         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15676         invocation from here...
15677         * modules/isnand (configure.ac): ... to here.
15678         * modules/isnand-nolibm (configure.ac): ... and here.
15679
15680 2011-05-20  Bruno Haible  <bruno@clisp.org>
15681
15682         isnanf*: Move AC_LIBOBJ invocations to module description.
15683         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15684         invocation from here...
15685         * modules/isnanf (configure.ac): ... to here.
15686         * modules/isnanf-nolibm (configure.ac): ... and here.
15687
15688 2011-05-20  Bruno Haible  <bruno@clisp.org>
15689
15690         isnan*: Separate the AC_LIBOBJ invocations.
15691         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15692         AC_LIBOBJ invocation.
15693         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15694         here.
15695         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15696         AC_LIBOBJ invocation.
15697         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15698         here.
15699         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15700         AC_LIBOBJ invocation.
15701         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15702         here.
15703         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15704
15705 2011-05-08  Bruno Haible  <bruno@clisp.org>
15706
15707         isinf: Move AC_LIBOBJ invocations to module description.
15708         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15709         * modules/isinf (configure.ac): ... to here.
15710
15711 2011-05-08  Bruno Haible  <bruno@clisp.org>
15712
15713         isfinite: Move AC_LIBOBJ invocations to module description.
15714         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15715         * modules/isfinite (configure.ac): ... to here.
15716
15717 2011-05-08  Bruno Haible  <bruno@clisp.org>
15718
15719         isblank: Move AC_LIBOBJ invocations to module description.
15720         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15721         here...
15722         * modules/isblank (configure.ac): ... to here.
15723
15724 2011-05-08  Bruno Haible  <bruno@clisp.org>
15725
15726         isapipe: Move AC_LIBOBJ invocations to module description.
15727         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15728         gl_PREREQ_ISAPIPE invocations from here...
15729         * modules/isapipe (configure.ac): ... to here.
15730         (Depends-on): Update condition.
15731
15732 2011-05-08  Bruno Haible  <bruno@clisp.org>
15733
15734         ioctl: Move AC_LIBOBJ invocations to module description.
15735         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15736         invocations from here...
15737         * modules/ioctl (configure.ac): ... to here.
15738         (Depends-on): Update condition.
15739
15740 2011-05-08  Bruno Haible  <bruno@clisp.org>
15741
15742         imaxdiv: Move AC_LIBOBJ invocations to module description.
15743         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15744         invocations from here...
15745         * modules/imaxdiv (configure.ac): ... to here.
15746
15747 2011-05-08  Bruno Haible  <bruno@clisp.org>
15748
15749         imaxabs: Move AC_LIBOBJ invocations to module description.
15750         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15751         invocations from here...
15752         * modules/imaxabs (configure.ac): ... to here.
15753
15754 2011-05-08  Bruno Haible  <bruno@clisp.org>
15755
15756         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15757         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15758         AC_LIBOBJ invocations from here...
15759         * modules/getaddrinfo (configure.ac): ... to here.
15760         (Depends-on): Add conditions.
15761
15762 2011-05-08  Bruno Haible  <bruno@clisp.org>
15763
15764         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15766         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15767         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15768         (gl_PREREQ_INET_PTON): ... from here.
15769         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15770         gl_PREREQ_INET_PTON here.
15771         (Depends-on): Update condition.
15772
15773 2011-05-08  Bruno Haible  <bruno@clisp.org>
15774
15775         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15776         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15777         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15778         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15779         (gl_PREREQ_INET_NTOP): ... from here.
15780         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15781         gl_PREREQ_INET_NTOP here.
15782         (Depends-on): Update condition.
15783
15784 2011-05-08  Bruno Haible  <bruno@clisp.org>
15785
15786         iconv_open: Move AC_LIBOBJ invocations to module description.
15787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15788         AC_LIBOBJ invocations from here...
15789         * modules/iconv_open (configure.ac): ... to here.
15790
15791 2011-05-08  Bruno Haible  <bruno@clisp.org>
15792
15793         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15794         If module 'iconv_open' is among the main modules and module
15795         'iconv_open-utf' is among the tests dependencies, then
15796         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15797         return the special iconv_t values. Therefore iconv() and iconv_close()
15798         must support these special iconv_t values, already in lib, not only in
15799         tests.
15800         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15801         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15802         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15803         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15804         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15805         (Depends-on): Add the dependencies of iconv_open-utf.
15806         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15807         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15808         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15809
15810 2011-05-08  Bruno Haible  <bruno@clisp.org>
15811
15812         group-member: Move AC_LIBOBJ invocations to module description.
15813         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15814         gl_PREREQ_GROUP_MEMBER invocations from here...
15815         * modules/group-member (configure.ac): ... to here.
15816
15817 2011-05-08  Bruno Haible  <bruno@clisp.org>
15818
15819         grantpt: Move AC_LIBOBJ invocations to module description.
15820         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15821         invocations from here...
15822         * modules/grantpt (configure.ac): ... to here.
15823
15824 2011-05-08  Bruno Haible  <bruno@clisp.org>
15825
15826         glob: Move AC_LIBOBJ invocations to module description.
15827         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15828         from here...
15829         * modules/glob (configure.ac): ... to here.
15830
15831 2011-05-08  Bruno Haible  <bruno@clisp.org>
15832
15833         getusershell: Move AC_LIBOBJ invocations to module description.
15834         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15835         Move AC_LIBOBJ invocation from here...
15836         * modules/getusershell (configure.ac): ... to here.
15837         (Depends-on): Update condition.
15838
15839 2011-05-08  Bruno Haible  <bruno@clisp.org>
15840
15841         gettimeofday: Move AC_LIBOBJ invocations to module description.
15842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15843         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15844         gl_PREREQ_GETTIMEOFDAY invocations from here...
15845         * modules/gettimeofday (configure.ac): ... to here.
15846
15847 2011-05-08  Bruno Haible  <bruno@clisp.org>
15848
15849         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15850         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15851         just gl_FUNC_TZSET.
15852         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15853         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15854         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15855         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15856
15857 2011-05-08  Bruno Haible  <bruno@clisp.org>
15858
15859         getsubopt: Move AC_LIBOBJ invocations to module description.
15860         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15861         gl_PREREQ_GETSUBOPT invocations from here...
15862         * modules/getsubopt (configure.ac): ... to here.
15863
15864 2011-05-08  Bruno Haible  <bruno@clisp.org>
15865
15866         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15867         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15868         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15869         * modules/getpass-gnu (configure.ac): ... to here.
15870
15871 2011-05-08  Bruno Haible  <bruno@clisp.org>
15872
15873         getpass: Move AC_LIBOBJ invocations to module description.
15874         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15875         gl_PREREQ_GETPASS invocations from here...
15876         * modules/getpass (configure.ac): ... to here.
15877
15878 2011-05-08  Bruno Haible  <bruno@clisp.org>
15879
15880         getpagesize: Move AC_LIBOBJ invocations to module description.
15881         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15882         from here...
15883         * modules/getpagesize (configure.ac): ... to here.
15884
15885 2011-05-08  Bruno Haible  <bruno@clisp.org>
15886
15887         getopt: Move AC_LIBOBJ invocations to module description.
15888         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15889         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15890         invocations from here...
15891         * modules/getopt-gnu (configure.ac): ... to here.
15892         * modules/getopt-posix (configure.ac): ... and here.
15893         (Depends-on): Update condition.
15894
15895 2011-05-08  Bruno Haible  <bruno@clisp.org>
15896
15897         getopt, argp: Respect rules for use of AC_LIBOBJ.
15898         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15899         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15900         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15901         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15902
15903 2011-05-08  Bruno Haible  <bruno@clisp.org>
15904
15905         getlogin_r: Move AC_LIBOBJ invocations to module description.
15906         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15907         gl_PREREQ_GETLOGIN_R invocations from here...
15908         * modules/getlogin_r (configure.ac): ... to here.
15909
15910 2011-05-08  Bruno Haible  <bruno@clisp.org>
15911
15912         getlogin: Move AC_LIBOBJ invocations to module description.
15913         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15914         here...
15915         * modules/getlogin (configure.ac): ... to here.
15916
15917 2011-05-08  Bruno Haible  <bruno@clisp.org>
15918
15919         getloadavg: Move AC_LIBOBJ invocations to module description.
15920         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15921         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15922         * modules/getloadavg (configure.ac): ... to here.
15923
15924 2011-05-08  Bruno Haible  <bruno@clisp.org>
15925
15926         gethrxtime: Move AC_LIBOBJ invocations to module description.
15927         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15928         LIB_GETHRXTIME from here...
15929         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15930         invocations from here...
15931         * modules/gethrxtime (configure.ac): ... to here.
15932
15933 2011-05-08  Bruno Haible  <bruno@clisp.org>
15934
15935         gethostname: Move AC_LIBOBJ invocations to module description.
15936         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15937         gl_PREREQ_GETHOSTNAME invocations from here...
15938         * modules/gethostname (configure.ac): ... to here.
15939
15940 2011-05-08  Bruno Haible  <bruno@clisp.org>
15941
15942         getgroups: Move AC_LIBOBJ invocations to module description.
15943         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15944         here...
15945         * modules/getgroups (configure.ac): ... to here.
15946
15947 2011-05-08  Bruno Haible  <bruno@clisp.org>
15948
15949         getdtablesize: Move AC_LIBOBJ invocations to module description.
15950         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15951         invocation from here...
15952         * modules/getdtablesize (configure.ac): ... to here.
15953
15954 2011-05-08  Bruno Haible  <bruno@clisp.org>
15955
15956         getdomainname: Move AC_LIBOBJ invocations to module description.
15957         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15958         gl_PREREQ_GETDOMAINNAME invocations from here...
15959         * modules/getdomainname (configure.ac): ... to here.
15960
15961 2011-05-08  Bruno Haible  <bruno@clisp.org>
15962
15963         getline: Move AC_LIBOBJ invocations to module description.
15964         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15965         invocations from here...
15966         * modules/getline (configure.ac): ... to here.
15967
15968 2011-05-08  Bruno Haible  <bruno@clisp.org>
15969
15970         getline: Simplify.
15971         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15972         It's already handled through the module dependency.
15973
15974 2011-05-08  Bruno Haible  <bruno@clisp.org>
15975
15976         getdelim: Move AC_LIBOBJ invocations to module description.
15977         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15978         and gl_PREREQ_GETDELIM invocations from here...
15979         * modules/getdelim (configure.ac): ... to here.
15980         (Depends-on): Fix condition.
15981
15982 2011-05-08  Bruno Haible  <bruno@clisp.org>
15983
15984         getcwd: Move AC_LIBOBJ invocations to module description.
15985         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15986         invocations from here...
15987         * modules/getcwd (configure.ac): ... to here.
15988
15989 2011-05-08  Bruno Haible  <bruno@clisp.org>
15990
15991         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15992         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15993         here...
15994         * modules/getcwd-lgpl (configure.ac): ... to here.
15995
15996 2011-05-07  Bruno Haible  <bruno@clisp.org>
15997
15998         crypto/gc: Move AC_LIBOBJ invocations to module description.
15999         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16000         * modules/crypto/gc (configure.ac): ... to here.
16001
16002 2011-05-07  Bruno Haible  <bruno@clisp.org>
16003
16004         fwriting: Move AC_LIBOBJ invocations to module description.
16005         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16006         here...
16007         * modules/fwriting (configure.ac): ... to here.
16008
16009 2011-05-07  Bruno Haible  <bruno@clisp.org>
16010
16011         fwritable: Move AC_LIBOBJ invocations to module description.
16012         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16013         here...
16014         * modules/fwritable (configure.ac): ... to here.
16015
16016 2011-05-07  Bruno Haible  <bruno@clisp.org>
16017
16018         futimens: Move AC_LIBOBJ invocations to module description.
16019         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16020         here...
16021         * modules/futimens (configure.ac): ... to here.
16022
16023 2011-05-07  Bruno Haible  <bruno@clisp.org>
16024
16025         ftruncate: Move AC_LIBOBJ invocations to module description.
16026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16027         gl_PREREQ_FTRUNCATE invocations from here...
16028         * modules/ftruncate (configure.ac): ... to here.
16029
16030 2011-05-07  Bruno Haible  <bruno@clisp.org>
16031
16032         fsync: Move AC_LIBOBJ invocations to module description.
16033         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16034         invocations from here...
16035         * modules/fsync (configure.ac): ... to here.
16036
16037 2011-05-07  Bruno Haible  <bruno@clisp.org>
16038
16039         fsusage: Move AC_LIBOBJ invocations to module description.
16040         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16041         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16042         * modules/fsusage (configure.ac): ... to here.
16043
16044 2011-05-07  Bruno Haible  <bruno@clisp.org>
16045
16046         freopen: Move AC_LIBOBJ invocations to module description.
16047         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16048         invocations from here...
16049         * modules/freopen (configure.ac): ... to here.
16050
16051 2011-05-07  Bruno Haible  <bruno@clisp.org>
16052
16053         free: Move AC_LIBOBJ invocations to module description.
16054         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16055         invocations from here...
16056         * modules/free (configure.ac): ... to here.
16057
16058 2011-05-07  Bruno Haible  <bruno@clisp.org>
16059
16060         freadable: Move AC_LIBOBJ invocations to module description.
16061         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16062         here...
16063         * modules/freadable (configure.ac): ... to here.
16064
16065 2011-05-07  Bruno Haible  <bruno@clisp.org>
16066
16067         fpurge: Move AC_LIBOBJ invocations to module description.
16068         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16069         invocations from here...
16070         * modules/fpurge (configure.ac): ... to here.
16071
16072 2011-05-07  Bruno Haible  <bruno@clisp.org>
16073
16074         fpending: Move AC_LIBOBJ invocations to module description.
16075         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16076         gl_FUNC_FPENDING.
16077         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16078         invocations from here...
16079         * modules/fpending (configure.ac): ... to here.
16080
16081 2011-05-07  Bruno Haible  <bruno@clisp.org>
16082
16083         fopen: Move AC_LIBOBJ invocations to module description.
16084         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16085         invocations from here...
16086         * modules/fopen (configure.ac): ... to here.
16087
16088 2011-05-07  Bruno Haible  <bruno@clisp.org>
16089
16090         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16091         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16092         gl_FUNC_FNMATCH_POSIX.
16093         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16094         invocations from here...
16095         * modules/fnmatch (configure.ac): ... to here.
16096         * modules/fnmatch-gnu (configure.ac): ... and here.
16097
16098 2011-05-07  Bruno Haible  <bruno@clisp.org>
16099
16100         flock: Move AC_LIBOBJ invocations to module description.
16101         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16102         invocations from here...
16103         * modules/flock (configure.ac): ... to here.
16104
16105 2011-05-07  Bruno Haible  <bruno@clisp.org>
16106
16107         fileblocks: Move AC_LIBOBJ invocations to module description.
16108         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16109         gl_PREREQ_FILEBLOCKS invocations from here...
16110         * modules/fileblocks (configure.ac): ... to here.
16111
16112 2011-05-06  Bruno Haible  <bruno@clisp.org>
16113
16114         fflush: Move AC_LIBOBJ invocations to module description.
16115         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16116         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16117         invocations from here...
16118         * modules/fflush (configure.ac): ... to here.
16119
16120 2011-05-06  Bruno Haible  <bruno@clisp.org>
16121
16122         fdopendir: Move AC_LIBOBJ invocations to module description.
16123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16124         here...
16125         * modules/fdopendir (configure.ac): ... to here.
16126         (Depends-on): Improve conditions.
16127
16128 2011-05-06  Bruno Haible  <bruno@clisp.org>
16129
16130         _Exit: Move AC_LIBOBJ invocations to module description.
16131         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16132         invocations from here...
16133         * modules/_Exit (configure.ac): ... to here.
16134
16135 2011-05-21  Bruno Haible  <bruno@clisp.org>
16136
16137         euidaccess: Respect rules for use of AC_LIBOBJ.
16138         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16140         from here...
16141         * modules/euidaccess (configure.ac): ... to here.
16142
16143 2011-05-06  Bruno Haible  <bruno@clisp.org>
16144
16145         error: Move AC_LIBOBJ invocations to module description.
16146         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16147         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16148         invocations from here...
16149         * modules/error (configure.ac): ... to here.
16150
16151 2011-05-06  Bruno Haible  <bruno@clisp.org>
16152
16153         duplocale: Move AC_LIBOBJ invocations to module description.
16154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16155         gl_PREREQ_DUPLOCALE invocations from here...
16156         * modules/duplocale (configure.ac): ... to here.
16157
16158 2011-05-05  Bruno Haible  <bruno@clisp.org>
16159
16160         dirfd: Move AC_LIBOBJ invocations to module description.
16161         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16162         gl_FUNC_DIRFD.
16163         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16164         here...
16165         * modules/dirfd (configure.ac): ... to here.
16166         (Depends-on): Fix condition.
16167
16168 2011-05-05  Bruno Haible  <bruno@clisp.org>
16169
16170         chown: Respect rules for use of AC_LIBOBJ.
16171         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16172         * modules/chown (configure.ac): ... to here.
16173
16174 2011-05-05  Bruno Haible  <bruno@clisp.org>
16175
16176         chdir-long: Move AC_LIBOBJ invocations to module description.
16177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16178         gl_PREREQ_CHDIR_LONG invocations from here...
16179         * modules/chdir-long (configure.ac): ... to here.
16180
16181 2011-05-05  Bruno Haible  <bruno@clisp.org>
16182
16183         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16184         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16185         from here...
16186         * modules/canonicalize-lgpl (configure.ac): ... to here.
16187
16188 2011-05-05  Bruno Haible  <bruno@clisp.org>
16189
16190         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16191         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16192         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16193         REPLACE_CALLOC.
16194         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16195         * modules/calloc-gnu (configure.ac): Likewise.
16196
16197 2011-05-05  Bruno Haible  <bruno@clisp.org>
16198
16199         btowc: Move AC_LIBOBJ invocations to module description.
16200         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16201         invocations from here...
16202         * modules/btowc (configure.ac): ... to here.
16203
16204 2011-05-21  Bruno Haible  <bruno@clisp.org>
16205
16206         atexit: Move AC_LIBOBJ invocations to module description.
16207         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16209         here...
16210         * modules/atexit (configure.ac): ... to here.
16211
16212 2011-05-05  Bruno Haible  <bruno@clisp.org>
16213
16214         atoll: Move AC_LIBOBJ invocations to module description.
16215         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16216         invocations from here...
16217         * modules/atoll (configure.ac): ... to here.
16218
16219 2011-05-05  Bruno Haible  <bruno@clisp.org>
16220
16221         argz: Move AC_LIBOBJ invocations to module description.
16222         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16223         * modules/argz (configure.ac): ... to here.
16224
16225 2011-05-05  Bruno Haible  <bruno@clisp.org>
16226
16227         alphasort: Move AC_LIBOBJ invocations to module description.
16228         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16229         gl_PREREQ_ALPHASORT invocations from here...
16230         * modules/alphasort (configure.ac): ... to here.
16231
16232 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16233
16234         verify: new macro verify_expr; verify_true deprecated
16235         * NEWS: Mention this.
16236         * doc/verify.texi (Compile-time Assertions): Document this.
16237         * lib/verify.h (verify_true): Deprecate.
16238         (verify_expr): New macro.
16239         * tests/test-verify.c (function): Test verify_expr.
16240
16241 2011-06-14  Jim Meyering  <meyering@redhat.com>
16242
16243         init.sh: give more portable redirection-related advice in a comment
16244         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16245         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16246         for lots of discussion.  Stefano Lattarini suggested the solution
16247         of putting "9>&2" after the command.  Reported by Bruno Haible.
16248
16249 2011-06-13  Bruno Haible  <bruno@clisp.org>
16250
16251         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16252         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16253         'none'.
16254
16255 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16256
16257         ftoastr: use strtof only if HAVE_STRTOF
16258         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16260         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16261         * modules/ftoastr (configure.ac): Check for strtof.
16262
16263 2011-06-13  Bruno Haible  <bruno@clisp.org>
16264
16265         gnulib-tool: Addendum to 2011-06-08 commit.
16266         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16267         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16268
16269 2011-06-13  Bruno Haible  <bruno@clisp.org>
16270
16271         fseeko: Provide a non-inline replacement of fseek().
16272         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16273         * modules/fseeko (Depends-on): Add fseek.
16274         * modules/fseek (License): Change to LGPLv2+.
16275
16276 2011-06-13  Bruno Haible  <bruno@clisp.org>
16277
16278         ftello: Provide a non-inline replacement of ftell().
16279         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16280         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16281         not have ftello() (such as on mingw).
16282         * modules/ftello (Depends-on): Add ftell.
16283         * modules/ftell (License): Change to LGPLv2+.
16284
16285 2011-05-07  Bruno Haible  <bruno@clisp.org>
16286
16287         ftell: Move AC_LIBOBJ invocations to module description.
16288         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16289         * modules/ftell (configure.ac): ... to here.
16290
16291 2011-05-07  Bruno Haible  <bruno@clisp.org>
16292
16293         ftello: Respect rules for use of AC_LIBOBJ.
16294         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16295         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16296         here...
16297         * modules/ftello (configure.ac): ... to here.
16298
16299 2011-05-07  Bruno Haible  <bruno@clisp.org>
16300
16301         fseeko: Simplify.
16302         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16303         (gl_FUNC_FSEEKO): Inline it here.
16304
16305 2011-05-07  Bruno Haible  <bruno@clisp.org>
16306
16307         fseek: Move AC_LIBOBJ invocations to module description.
16308         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16309         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16310         * modules/fseek (configure.ac): ... to here.
16311
16312 2011-05-07  Bruno Haible  <bruno@clisp.org>
16313
16314         fseek: Respect rules for use of AC_LIBOBJ.
16315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16316         here...
16317         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16318
16319 2011-05-07  Bruno Haible  <bruno@clisp.org>
16320
16321         fseeko: Respect rules for use of AC_LIBOBJ.
16322         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16323         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16324         here...
16325         * modules/fseeko (configure.ac): ... to here.
16326
16327 2011-06-13  Bruno Haible  <bruno@clisp.org>
16328
16329         gnulib-tool: Allow comments in the 'Depends-on' section.
16330         * doc/gnulib.texi (Module description): Mention comment syntax in the
16331         Depends-on section.
16332         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16333
16334 2011-06-13  Bruno Haible  <bruno@clisp.org>
16335
16336         file-set.h: guard __attibute__ use, now that it's not always defined
16337         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16338         versions that support it.  This fixes a coreutils build failure with
16339         the vendor cc on HP-UX 11.31.
16340
16341 2011-06-12  Bruno Haible  <bruno@clisp.org>
16342
16343         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16344         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16345         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16346         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16347         (acl, aclsort): New declarations.
16348         (aclv_nontrivial): New declaration.
16349         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16350         (file_has_acl): Read also the second kind of HP-UX ACLs.
16351         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16352         kind of HP-UX ACLs if the first kind fails.
16353         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16354         second kind of HP-UX ACLs.
16355         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16356         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16357         agree.
16358         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16359         hpuxjfs.
16360         Handle hpuxjfs.
16361         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16362         hpuxjfs.
16363         Handle hpuxjfs.
16364         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16365         (func_test_same_acls): Use both lsacl and getacl.
16366         Handle hpuxjfs.
16367         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16368         (func_test_same_acls): Use both lsacl and getacl.
16369         Handle hpuxjfs.
16370
16371 2011-06-12  Bruno Haible  <bruno@clisp.org>
16372
16373         acl: Complete the 2010-08-10 fix.
16374         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16375         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16376         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16377         explicitly.
16378         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16379         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16380
16381 2011-06-12  Bruno Haible  <bruno@clisp.org>
16382
16383         spawn-pipe tests: Comments.
16384         * tests/test-spawn-pipe-child.c (main): Update comment.
16385         Reported by James Youngman <jay@gnu.org>.
16386
16387 2011-06-11  James Youngman  <jay@gnu.org>
16388
16389         New module 'stat-size'.
16390         * modules/stat-size: New module.  Provides macros for accessing
16391         file size information in instances of struct stat.  Depends on the
16392         fileblocks module because it calls st_blocks.
16393         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16394         * doc/gnulib.texi: Include stat-size.texi.
16395         * doc/stat-size.texi: Documentation for this module.
16396         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16397         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16398         AC_STRUCT_ST_BLOCKS.
16399
16400 2011-06-09  Bruno Haible  <bruno@clisp.org>
16401
16402         thread: Support pthreads-win32.
16403         * lib/glthread/thread.h (gl_thread_self): Define differently on
16404         pthreads-win32.
16405         (gl_null_thread): New declaration.
16406         (gl_thread_self_pointer): New macro.
16407         * lib/glthread/thread.c (gl_null_thread): New constant.
16408         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16409         gl_thread_self.
16410         * tests/test-tls.c: Likewise.
16411         Suggested by Paul Eggert. Reported by Eric Blake.
16412
16413 2011-06-09  Bruno Haible  <bruno@clisp.org>
16414
16415         thread: Fix confusion between NULL and 0.
16416         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16417         Reported by Paul Eggert.
16418
16419 2011-06-09  Bruno Haible  <bruno@clisp.org>
16420
16421         spawn-pipe tests: Avoid test failure on HP-UX 11.
16422         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16423         is closed.
16424
16425 2011-06-09  Bruno Haible  <bruno@clisp.org>
16426
16427         acl tests: Fix compilation error on HP-UX 11.
16428         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16429
16430 2011-06-09  Bruno Haible  <bruno@clisp.org>
16431
16432         rmdir: Avoid test failure on HP-UX 10.20.
16433         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16434         EEXIST.
16435
16436 2011-06-08  Eric Blake  <eblake@redhat.com>
16437
16438         perror: fix test on mingw
16439         * modules/perror-tests (Depends-on): Add dup2.
16440
16441         strerror_r-posix: fix on MacOS
16442         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16444         logic bug.
16445         * lib/strerror_r.c (strerror_r): Fix the bug.
16446         * lib/strerror.c (strerror): Likewise.
16447         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16448         problem.
16449         * doc/posix-functions/strerror.texi (strerror): Likewise.
16450         * doc/posix-functions/perror.texi (perror): Likewise.
16451         * tests/test-strerror.c (main): Enhance test.
16452         * tests/test-strerror_r.c (main): Likewise.
16453
16454 2011-06-08  Bruno Haible  <bruno@clisp.org>
16455
16456         gnulib-tool: Better isolation between different gnulib-tool invocations.
16457         * gnulib-tool: New option --witness-c-macro.
16458         (witness_c_macro): New variable.
16459         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16460         AM_CPPFLAGS define it as a C macro.
16461         (func_emit_tests_Makefile_am): Likewise.
16462         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16463         read it from there.
16464         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16465         m4_define, not AC_DEFUN.
16466         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16467         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16468         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16469         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16470         s|...|...|, to substitute the values of the GNULIB_* module indicator
16471         variables.
16472         * modules/dirent (Makefile.am): Likewise.
16473         * modules/fcntl-h (Makefile.am): Likewise.
16474         * modules/iconv-h (Makefile.am): Likewise.
16475         * modules/langinfo (Makefile.am): Likewise.
16476         * modules/locale (Makefile.am): Likewise.
16477         * modules/math (Makefile.am): Likewise.
16478         * modules/netdb (Makefile.am): Likewise.
16479         * modules/poll-h (Makefile.am): Likewise.
16480         * modules/pty (Makefile.am): Likewise.
16481         * modules/search (Makefile.am): Likewise.
16482         * modules/signal (Makefile.am): Likewise.
16483         * modules/spawn (Makefile.am): Likewise.
16484         * modules/stdio (Makefile.am): Likewise.
16485         * modules/stdlib (Makefile.am): Likewise.
16486         * modules/string (Makefile.am): Likewise.
16487         * modules/sys_ioctl (Makefile.am): Likewise.
16488         * modules/sys_select (Makefile.am): Likewise.
16489         * modules/sys_socket (Makefile.am): Likewise.
16490         * modules/sys_stat (Makefile.am): Likewise.
16491         * modules/sys_times (Makefile.am): Likewise.
16492         * modules/sys_utsname (Makefile.am): Likewise.
16493         * modules/sys_wait (Makefile.am): Likewise.
16494         * modules/termios (Makefile.am): Likewise.
16495         * modules/time (Makefile.am): Likewise.
16496         * modules/unistd (Makefile.am): Likewise.
16497         * modules/wchar (Makefile.am): Likewise.
16498
16499 2011-06-08  Eric Blake  <eblake@redhat.com>
16500
16501         strerror: simplify replacement
16502         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16503         * modules/strerror (configure.ac): No prereqs needed here...
16504         * modules/strerror-override (configure.ac): ...but this needs it.
16505         (Files): Add file for needed prereq macro.
16506
16507 2011-06-08  Bruno Haible  <bruno@clisp.org>
16508
16509         strerror_r-posix: Tweaks.
16510         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16511         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16513         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16514         (gl_FUNC_STRERROR_R): ... to here.
16515         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16516
16517 2011-06-07  Eric Blake  <eblake@redhat.com>
16518
16519         perror: document fixed bugs
16520         * doc/posix-functions/perror.texi (perror): Document recent
16521         patches.
16522
16523 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         stat-time: get_stat_birthtime failure is better-defined
16526         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16527         return a timestamp whose tv_sec and tv_nsec values are both -1.
16528         Previously, the spec said only that the tv_nsec value was negative.
16529         This upward-compatible change simplifies GNU tar a bit.
16530
16531 2011-06-07  Eric Blake  <eblake@redhat.com>
16532
16533         strerror_r-posix: work around cygwin 1.7.9
16534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16535         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16536         bug without replacing strerror_r.
16537         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16538         strerror_r is buggy, but without requiring strerror_r compilation.
16539         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16540
16541         test-perror: relax test to ignore cygwin bug
16542         * tests/test-perror2.c (main): Relax test on requiring detection
16543         of stream errors, and use unbuffered stream.
16544         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16545         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16546         * doc/posix-functions/fputc.texi (fputc): Likewise.
16547         * doc/posix-functions/fputs.texi (fputs): Likewise.
16548         * doc/posix-functions/fputws.texi (fputws): Likewise.
16549         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16550         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16551         * doc/posix-functions/getopt.texi (getopt): Likewise.
16552         * doc/posix-functions/perror.texi (perror): Likewise.
16553         * doc/posix-functions/printf.texi (printf): Likewise.
16554         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16555         * doc/posix-functions/psignal.texi (psignal): Likewise.
16556         * doc/posix-functions/putc.texi (putc): Likewise.
16557         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16558         Likewise.
16559         * doc/posix-functions/putchar.texi (putchar): Likewise.
16560         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16561         Likewise.
16562         * doc/posix-functions/puts.texi (puts): Likewise.
16563         * doc/posix-functions/putwc.texi (putwc): Likewise.
16564         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16565         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16566         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16567         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16568         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16569         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16570         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16571         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16572
16573 2011-05-22  Bruno Haible  <bruno@clisp.org>
16574
16575         strerror: Move AC_LIBOBJ invocations to module description.
16576         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16577         gl_PREREQ_STRERROR invocations from here...
16578         * modules/strerror (configure.ac): ... to here.
16579
16580 2011-05-21  Bruno Haible  <bruno@clisp.org>
16581
16582         perror: Use common idiom.
16583         * modules/perror (configure.ac): Reorder statements.
16584
16585 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16586
16587         tests: fix usage message in 'mktempd_'
16588         * tests/init.sh (mktempd_): In the usage message, use literal
16589         'mktempd_', not '$ME' (which is even undefined), as the name of
16590         the subroutine.
16591
16592 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16593
16594         tests init: new function 'fatal_', for hard errors
16595         Before this patch, the only way offered by tests/init.sh to
16596         properly signal a hard error was the `framework_failure_'
16597         function.  But the error message issued by that function,
16598         as its name would suggest, refers to a set-up failure in the
16599         testsuite, while hard errors can obviously also be due to
16600         other reasons.  The best way to fix this inconsistency is to
16601         introduce a new function with a more general error message.
16602         * tests/init.sh (fatal_): New function.
16603
16604 2011-06-06  Eric Blake  <eblake@redhat.com>
16605
16606         canonicalize-lgpl: use common idiom
16607         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16608         over newer POSIX -Rf.
16609         Reported by Bruno Haible.
16610
16611         canonicalize-lgpl: work around AIX realpath bug
16612         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16613         * doc/posix-functions/realpath.texi (realpath): Document it.
16614         Reported by Bruno Haible.
16615
16616         strerror: work around FreeBSD bug
16617         * lib/strerror.c (strerror): Special case 0.
16618         Reported by Bruno Haible.
16619
16620         strerror-override: avoid bloating errno module
16621         * modules/errno (Files, configure.ac): Move replacement strings...
16622         * modules/strerror-override: ...to new module.
16623         * modules/strerror (Depends-on): Add strerror-override.
16624         * modules/strerror_r-posix (Depends-on): Likewise.
16625         * MODULES.html.sh: Document new module.
16626         Reported by Bruno Haible.
16627
16628 2011-06-06  Bruno Haible  <bruno@clisp.org>
16629
16630         spawn-pipe tests: Rename program.
16631         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16632         * tests/test-spawn-pipe-child.c: Update comment.
16633         * tests/test-spawn-pipe.sh: Update.
16634         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16635
16636         spawn-pipe tests: Link the child program only against libc.
16637         * tests/test-spawn-pipe-child.c: New file, extracted from
16638         tests/test-spawn-pipe.c.
16639         (main): Expect only one argument.
16640         (is_open): New function, copied from tests/test-pipe.c.
16641         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16642         (child_main): Remove function.
16643         (test_pipe): Pass only one argument to the child program.
16644         (main): Remove child process code. Expect the child program's name as
16645         first argument.
16646         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16647         argument.
16648         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16649         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16650         test-spawn-pipe-child against no libraries.
16651
16652 2011-06-06  Bruno Haible  <bruno@clisp.org>
16653
16654         careadlinkat: Avoid mismatch between ssize_t and int.
16655         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16656         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16657
16658 2011-06-06  Jim Meyering  <meyering@redhat.com>
16659
16660         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16661         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16662         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16663
16664 2011-06-05  Bruno Haible  <bruno@clisp.org>
16665
16666         ansi-c++-opt: Interoperability with libtool.
16667         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16668         set the variable to "no", not to ":".
16669         * NEWS: Mention the change.
16670
16671 2011-06-05  Bruno Haible  <bruno@clisp.org>
16672
16673         acl: Fix test failure on AIX 7.
16674         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16675         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16676
16677 2011-06-05  Bruno Haible  <bruno@clisp.org>
16678
16679         pipe-filter-ii: Fix test failure on AIX and IRIX.
16680         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16681         with EAGAIN, retry with a smaller buffer size.
16682
16683 2011-06-05  Bruno Haible  <bruno@clisp.org>
16684
16685         localename: Fix link dependencies.
16686         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16687         * modules/localename-tests (Makefile.am): Link test-localename with
16688         $(LIBTHREAD).
16689
16690 2011-06-05  Bruno Haible  <bruno@clisp.org>
16691
16692         error: Avoid gcc warning.
16693         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16694
16695 2011-06-05  Bruno Haible  <bruno@clisp.org>
16696
16697         unsetenv: Avoid gcc warning.
16698         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16699
16700 2011-06-05  Bruno Haible  <bruno@clisp.org>
16701
16702         setenv: Avoid gcc warning.
16703         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16704
16705 2011-06-05  Bruno Haible  <bruno@clisp.org>
16706
16707         sys_select: Ensure memset is declared also on AIX 7.
16708         * lib/sys_select.in.h: Include <string.h> also on AIX.
16709         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16710         self-contained also on AIX 7.1.
16711
16712 2011-06-04  Jim Meyering  <meyering@redhat.com>
16713
16714         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16715         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16716         function name, "error".
16717         (_gl_translatable_diag_func_re): New configurable variable.
16718
16719 2011-06-04  Bruno Haible  <bruno@clisp.org>
16720
16721         getopt: Avoid gcc warning.
16722         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16723
16724 2011-06-04  Bruno Haible  <bruno@clisp.org>
16725
16726         strerror_r: Fix comments.
16727         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16728         commit.
16729
16730 2011-06-04  Bruno Haible  <bruno@clisp.org>
16731
16732         perror: Fix compilation error.
16733         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16734         Undefine fprintf, not sprintf.
16735         * modules/perror (Depends-on): Remove intprops, verify.
16736
16737 2011-06-04  Bruno Haible  <bruno@clisp.org>
16738
16739         setlocale: Enable replacement on Cygwin 1.5.
16740         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16741         Cygwin 1.5.x.
16742         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16743         LC_CTYPE category also exists on Cygwin 1.5.x.
16744
16745 2011-06-04  Bruno Haible  <bruno@clisp.org>
16746
16747         strerror-override: Don't disable symbol renamings.
16748         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16749         * lib/strerror-override.c: Include config.h.
16750         (strerror_override): Don't undefine.
16751
16752 2011-06-03  Bruno Haible  <bruno@clisp.org>
16753
16754         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16755         * lib/localename.h: Update copyright header.
16756         * lib/localename.c: Likewise.
16757         * lib/relocatable.h: Likewise.
16758         * lib/relocatable.c: Likewise.
16759
16760 2011-06-02  Bruno Haible  <bruno@clisp.org>
16761
16762         doc: Fix a module name.
16763         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16764
16765 2011-06-02  Bruno Haible  <bruno@clisp.org>
16766
16767         pipe2: Remove dependency on 'nonblocking' module.
16768         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16769         O_NONBLOCK is defined by gnulib.
16770         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16771         is zero.
16772         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16773         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16774         defined by gnulib.
16775         (get_nonblocking_flag): New function.
16776         (main): Test O_NONBLOCK flag only if it is nonzero.
16777         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16778
16779 2011-06-03  Jim Meyering  <meyering@redhat.com>
16780
16781         maint: three new prohibit-header-without-use rules
16782         Prohibit use of cloexec.h, posixver.h, same.h without use.
16783         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16784         (sc_prohibit_posixver_without_use): Likewise.
16785         (sc_prohibit_same_without_use): Likewise.
16786
16787 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16788
16789         allocator: 'die' routine is now given requested size
16790         * lib/allocator.h (struct allocator.die): New size arg.
16791         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16792         If the actual problem is an ssize_t limitation, not a size_t or
16793         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16794
16795 2011-06-01  Eric Blake  <eblake@redhat.com>
16796
16797         strerror: drop strerror_r dependency
16798         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16799         * lib/strerror-override.c (strerror_override): ...to new file.
16800         * lib/strerror-override.h: Add prototype.
16801         * lib/strerror-impl.h: Delete.
16802         * lib/strerror.c (strerror): New implementation.
16803         * modules/errno (Files): Add new files.
16804         (configure.ac): Compile new file as appropriate.
16805         * modules/strerror (Files): Drop unused file.
16806         (Depends-on): Drop strerror_r-posix.
16807         * MODULES.html.sh: Document strerror_r-posix.
16808         Requested by Sam Steingold.
16809
16810         perror: call strerror_r directly
16811         * modules/perror (Files): Drop strerror-impl.h.
16812         * lib/perror.c (perror): Use our own stack buffer, rather than
16813         calling a wrapper that uses static storage.
16814         * doc/posix-functions/perror.texi (perror): Document a limitation
16815         of our replacement.
16816
16817         strerror_r: fix includes for FreeBSD
16818         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16819         since we use abort on some platforms.
16820         Reported by Matthias Bolte.
16821
16822 2011-05-31  Bruno Haible  <bruno@clisp.org>
16823
16824         Fix link errors in tests: openat-die uses gettext-h.
16825         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16826         against $(LIBINTL).
16827         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16828         against $(LIBINTL).
16829         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16830         $(LIBINTL).
16831         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16832         against $(LIBINTL).
16833         * modules/linkat-tests (Makefile.am): Link test-linkat against
16834         $(LIBINTL).
16835         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16836         $(LIBINTL).
16837         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16838         against $(LIBINTL).
16839         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16840         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16841         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16842         $(LIBINTL).
16843         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16844         $(LIBINTL).
16845         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16846         $(LIBINTL).
16847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16848
16849 2011-05-31  Bruno Haible  <bruno@clisp.org>
16850
16851         Fix link errors in tests: wait-process uses gettext-h.
16852         * modules/nonblocking-pipe-tests (Makefile.am): Set
16853         test_nonblocking_pipe_main_LDADD.
16854         * modules/nonblocking-socket-tests (Makefile.am): Link
16855         test-nonblocking-socket-main against $(LIBINTL).
16856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16857
16858 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16859
16860         assert-h: work around 'verify' incompatibility
16861         * lib/verify.h: Use @...@ directives, not ifdef.
16862         * modules/assert-h (assert.h): Implement the directives.
16863         (assert.h): Substitute the symbol-prefix more consistently.
16864
16865 2011-05-29  Jim Meyering  <meyering@redhat.com>
16866
16867         trim: remove three superfluous assignments
16868         * lib/trim.c (trim2): Remove three superfluous assignments
16869         and correct brace positioning.
16870
16871 2011-05-29  Bruno Haible  <bruno@clisp.org>
16872
16873         wctype-h: Avoid namespace pollution on Solaris 2.6.
16874         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16875         identifiers.
16876         * doc/posix-headers/wctype.texi: Mention the problem.
16877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16878
16879 2011-05-28  Jim Meyering  <meyering@redhat.com>
16880
16881         parse-datetime.y: accommodate -Wstrict-overflow
16882         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16883         placate -Wstrict-overflow.
16884
16885         trim: avoid a warning from -O2 -Wstrict-overflow
16886         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16887
16888 2011-05-29  Bruno Haible  <bruno@clisp.org>
16889
16890         gnulib-tool: Fix bug in yesterday's commit.
16891         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16892         twice.
16893
16894 2011-05-29  Bruno Haible  <bruno@clisp.org>
16895
16896         Allow multiple gnulib generated include files to be combined.
16897         * gnulib-tool (func_compute_include_guard_prefix): New function.
16898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16899         ${gl_include_guard_prefix} references.
16900         (func_import, func_create_testdir): Invoke
16901         func_compute_include_guard_prefix.
16902         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16903         * lib/ctype.in.h: Likewise.
16904         * lib/dirent.in.h: Likewise.
16905         * lib/errno.in.h: Likewise.
16906         * lib/fcntl.in.h: Likewise.
16907         * lib/float.in.h: Likewise.
16908         * lib/getopt.in.h: Likewise.
16909         * lib/iconv.in.h: Likewise.
16910         * lib/langinfo.in.h: Likewise.
16911         * lib/locale.in.h: Likewise.
16912         * lib/math.in.h: Likewise.
16913         * lib/netdb.in.h: Likewise.
16914         * lib/netinet_in.in.h: Likewise.
16915         * lib/poll.in.h: Likewise.
16916         * lib/pthread.in.h: Likewise.
16917         * lib/pty.in.h: Likewise.
16918         * lib/sched.in.h: Likewise.
16919         * lib/se-selinux.in.h: Likewise.
16920         * lib/search.in.h: Likewise.
16921         * lib/signal.in.h: Likewise.
16922         * lib/spawn.in.h: Likewise.
16923         * lib/stdarg.in.h: Likewise.
16924         * lib/stddef.in.h: Likewise.
16925         * lib/stdint.in.h: Likewise.
16926         * lib/stdio.in.h: Likewise.
16927         * lib/stdlib.in.h: Likewise.
16928         * lib/string.in.h: Likewise.
16929         * lib/strings.in.h: Likewise.
16930         * lib/sys_file.in.h: Likewise.
16931         * lib/sys_ioctl.in.h: Likewise.
16932         * lib/sys_select.in.h: Likewise.
16933         * lib/sys_socket.in.h: Likewise.
16934         * lib/sys_stat.in.h: Likewise.
16935         * lib/sys_time.in.h: Likewise.
16936         * lib/sys_times.in.h: Likewise.
16937         * lib/sys_uio.in.h: Likewise.
16938         * lib/sys_utsname.in.h: Likewise.
16939         * lib/sys_wait.in.h: Likewise.
16940         * lib/sysexits.in.h: Likewise.
16941         * lib/termios.in.h: Likewise.
16942         * lib/time.in.h: Likewise.
16943         * lib/unistd.in.h: Likewise.
16944         * lib/wchar.in.h: Likewise.
16945         * lib/wctype.in.h: Likewise.
16946         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16947         * modules/ctype (Makefile.am): Likewise.
16948         * modules/dirent (Makefile.am): Likewise.
16949         * modules/errno (Makefile.am): Likewise.
16950         * modules/fcntl-h (Makefile.am): Likewise.
16951         * modules/float (Makefile.am): Likewise.
16952         * modules/getopt-posix (Makefile.am): Likewise.
16953         * modules/iconv-h (Makefile.am): Likewise.
16954         * modules/langinfo (Makefile.am): Likewise.
16955         * modules/locale (Makefile.am): Likewise.
16956         * modules/math (Makefile.am): Likewise.
16957         * modules/netdb (Makefile.am): Likewise.
16958         * modules/netinet_in (Makefile.am): Likewise.
16959         * modules/poll-h (Makefile.am): Likewise.
16960         * modules/pthread (Makefile.am): Likewise.
16961         * modules/pty (Makefile.am): Likewise.
16962         * modules/sched (Makefile.am): Likewise.
16963         * modules/search (Makefile.am): Likewise.
16964         * modules/selinux-h (Makefile.am): Likewise.
16965         * modules/signal (Makefile.am): Likewise.
16966         * modules/spawn (Makefile.am): Likewise.
16967         * modules/stdarg (Makefile.am): Likewise.
16968         * modules/stddef (Makefile.am): Likewise.
16969         * modules/stdint (Makefile.am): Likewise.
16970         * modules/stdio (Makefile.am): Likewise.
16971         * modules/stdlib (Makefile.am): Likewise.
16972         * modules/string (Makefile.am): Likewise.
16973         * modules/strings (Makefile.am): Likewise.
16974         * modules/sys_file (Makefile.am): Likewise.
16975         * modules/sys_ioctl (Makefile.am): Likewise.
16976         * modules/sys_select (Makefile.am): Likewise.
16977         * modules/sys_socket (Makefile.am): Likewise.
16978         * modules/sys_stat (Makefile.am): Likewise.
16979         * modules/sys_time (Makefile.am): Likewise.
16980         * modules/sys_times (Makefile.am): Likewise.
16981         * modules/sys_uio (Makefile.am): Likewise.
16982         * modules/sys_utsname (Makefile.am): Likewise.
16983         * modules/sys_wait (Makefile.am): Likewise.
16984         * modules/sysexits (Makefile.am): Likewise.
16985         * modules/termios (Makefile.am): Likewise.
16986         * modules/time (Makefile.am): Likewise.
16987         * modules/unistd (Makefile.am): Likewise.
16988         * modules/wchar (Makefile.am): Likewise.
16989         * modules/wctype-h (Makefile.am): Likewise.
16990         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16991
16992 2011-05-29  Bruno Haible  <bruno@clisp.org>
16993
16994         assert-h: Allow multiple gnulib generated replacements to coexist.
16995         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16996
16997 2011-05-29  Bruno Haible  <bruno@clisp.org>
16998
16999         argp: Allow coexistence with strerror_r-posix module.
17000         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17001         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17002         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17003         not the glibc signature.
17004
17005 2011-05-28  Bruno Haible  <bruno@clisp.org>
17006
17007         gnulib-tool: Alternative structure of testdirs, similar to --import.
17008         * gnulib-tool: New option --single-configure.
17009         (func_usage): Document it.
17010         (single_configure): New variable.
17011         (func_modules_transitive_closure_separately,
17012         func_modules_transitive_closure_separately,
17013         func_determine_use_libtests, func_modules_add_dummy_separately,
17014         func_modules_to_filelist_separately): New functions, extracted from
17015         func_import.
17016         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17017         (func_import): Use the new functions.
17018         (func_create_testdir): Set final_modules. Handle $single_configure =
17019         true case.
17020
17021 2011-05-28  Bruno Haible  <bruno@clisp.org>
17022
17023         getloadavg: Remove an unreliable safety check.
17024         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17025         getloadavg.c is in place.
17026         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17027         Reported by Sam Steingold <sds@gnu.org>.
17028
17029 2011-05-28  Bruno Haible  <bruno@clisp.org>
17030
17031         doc: Cleanup yet another file produced by texinfo.tex.
17032         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17033
17034 2011-05-28  Bruno Haible  <bruno@clisp.org>
17035
17036         Finish the conditional dependencies mechanism.
17037         * gnulib-tool: New option --no-conditional-dependencies.
17038         (func_usage): Document it. Don't mark --conditional-dependencies as
17039         experimental.
17040         (cond_dependencies): The possible values can now be true, false, empty.
17041         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17042         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17043         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17044
17045 2011-05-28  Bruno Haible  <bruno@clisp.org>
17046
17047         doc: Use a recent texinfo.tex.
17048         * doc/Makefile (tex_opts): New variable.
17049         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17050
17051 2011-05-28  Jim Meyering  <meyering@redhat.com>
17052
17053         intprops.h: adjust comment to match code change
17054         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17055         only once, it *may* have side effects.  Also fix an unrelated typo.
17056         (_GL_INT_SIGNED): Likewise.
17057
17058 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17059
17060         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17061
17062 2011-05-26  Bruno Haible  <bruno@clisp.org>
17063
17064         mbsrchr: Avoid collision with system function on Interix.
17065         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17066         Reported by Markus Duft <mduft@gentoo.org>.
17067
17068 2011-05-15  James Youngman  <jay@gnu.org>
17069
17070         getopt: for ambiguous options, enumerate the possibilities.
17071         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17072         the ambiguous options when an ambiguous prefix is given. This was
17073         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17074         glibc change was
17075         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17076
17077 2011-05-25  Eric Blake  <eblake@redhat.com>
17078
17079         getcwd: work around mingw bug
17080         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17081         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17082         Reported by Matthias Bolte.
17083
17084 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17085
17086         test-intprops: disable -Wtype-limits diagnostics
17087         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17088         diagnostics.  Otherwise, the integer overflow macros generate many
17089         diagnostics.  Reported by Jim Meyering in
17090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17091
17092         intprops: shorten, to pacify gcc -Woverlength-strings
17093         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17094         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17095         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17096         likely to run afoul of C compiler limits for string constant lengths.
17097         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17098
17099 2011-05-24  Eric Blake  <eblake@redhat.com>
17100
17101         docs: document recently fixed glibc printf bug
17102         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17103         * doc/posix-functions/printf.texi (printf): Likewise.
17104         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17105         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17106
17107         closein-tests: convert to init.sh
17108         * modules/closein-tests (Files): Add init.sh
17109         * tests/test-closein.sh Use it.
17110
17111         yesno-tests: convert to init.sh
17112         * modules/yesno-tests (Files): Add init.sh.
17113         * tests/test-yesno.sh: Use it.
17114
17115         atexit-tests: ensure reliable exit status
17116         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17117         Reported by Bruno Haible.
17118
17119 2011-05-24  Bruno Haible  <bruno@clisp.org>
17120
17121         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17123         gl_PREREQ_STRERROR_R invocations from here...
17124         * modules/strerror_r-posix (configure.ac): ... to here.
17125
17126 2011-05-24  Eric Blake  <eblake@redhat.com>
17127
17128         strerror_r: fix missing header
17129         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17130
17131         strerror_r: fix AIX test failures
17132         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17133         ERANGE failure.
17134
17135         strerror_r: fix Solaris test failures
17136         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17137         failures.
17138         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17139
17140         strerror_r: enforce POSIX recommendations
17141         * lib/strerror_r.c (safe_copy): New helper method.
17142         (strerror_r): Guarantee a non-empty string.
17143         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17144         recent POSIX rulings and to match our strerror guarantees.
17145         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17146
17147 2011-05-24  Jim Meyering  <meyering@redhat.com>
17148
17149         test-perror2.c: avoid warning about unused variable
17150         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17151
17152 2011-05-24  Eric Blake  <eblake@redhat.com>
17153
17154         perror: avoid spurious test failure on HP-UX
17155         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17156
17157         tests: fix logic bug in init.sh
17158         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17159         shell.
17160
17161 2011-05-24  Jim Meyering  <meyering@redhat.com>
17162
17163         utimensat: do not reference an out-of-scope buffer
17164         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17165         declared in an inner scope, yet "times" would be dereferenced outside
17166         the scope in which "ts" was valid.
17167         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17168         of ts[2] "out/up", so that the use of aliased "times" (via
17169         "times = ts;") does not end up referencing an out-of-scope "ts"
17170
17171         opendir-safer.c: don't clobber errno; don't close negative FD
17172         * lib/opendir-safer.c (opendir_safer):
17173         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17174         file descriptor, and more importantly, don't clobber the
17175         offending errno value with EINVAL.  Before, upon failure
17176         of dup_safer, we would pass the negative file descriptor to
17177         fdopendir, which would clobber errno.
17178
17179 2011-05-23  Bruno Haible  <bruno@clisp.org>
17180
17181         idcache: Fix module description.
17182         * modules/idcache (Include): Set to "idcache.h".
17183
17184 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17185
17186         gnulib-tool: fix portability problem with MacOS sed
17187         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17188         before the "}".  Problem reported by Leo in
17189         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17190         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17191         sed_extract_condition1, sed_extract_condition2.
17192
17193 2011-05-23  Bruno Haible  <bruno@clisp.org>
17194
17195         hash: Simplify autoconf macro.
17196         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17197
17198 2011-05-23  Bruno Haible  <bruno@clisp.org>
17199
17200         getugroups: Fix module description.
17201         * modules/getugroups (Include): Set to "getugroups.h".
17202
17203 2011-05-23  Bruno Haible  <bruno@clisp.org>
17204
17205         linkat: Simplify autoconf macro.
17206         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17207
17208 2011-05-23  Bruno Haible  <bruno@clisp.org>
17209             Eric Blake  <eblake@redhat.com>
17210
17211         linkat, renameat: Update dependencies.
17212         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17213         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17214         symlinkat.
17215
17216 2011-05-23  Jim Meyering  <meyering@redhat.com>
17217
17218         maint.mk: more tight_scope improvements
17219         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17220         (_gl_TS_headers): Define only in if-0'd block.
17221         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17222         sometimes we must *not* use it.  Adjust uses accordingly.
17223         (sc_tight_scope): Use much simpler grep-based test to determine
17224         whether we skip this rule.
17225
17226         maint.mk: generalize/improve the tight-scope rule
17227         * top/maint.mk: Emit a warning when the test is skipped.
17228         (_gl_TS_dir): Add $(srcdir)/ prefix.
17229         (_gl_TS_function_match): Simplify, rather than trying
17230         to enumerate common types.  Otherwise, it would fail to match an
17231         "extern unsigned char const *" declaration in idutils.
17232         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17233         a way to support use of that type of macro.
17234         (_gl_TS_var_match): Simplify regexp.
17235         (_gl_TS_obj_files): New configurable variable.
17236         (_gl_TS_headers): Likewise.
17237
17238 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17239
17240         verify: fix bug when gnulib <assert.h> is also included
17241         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17242         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17243         Perhaps there's a better way, but this fixes the immediate problem.
17244         Problem reported by Bruno Haible in
17245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17246
17247 2011-05-22  Bruno Haible  <bruno@clisp.org>
17248
17249         xgetcwd: Simplify autoconf macro.
17250         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17251
17252 2011-05-22  Bruno Haible  <bruno@clisp.org>
17253
17254         New module 'mktime-internal'.
17255         * modules/mktime-internal: New file.
17256         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17257         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17258         mktime_internal as a C macro if libc has __mktime_internal.
17259         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17260         conditions.
17261         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17262
17263 2011-05-22  Bruno Haible  <bruno@clisp.org>
17264
17265         timegm: Correct mktime replacement statements.
17266         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17267         defining mktime as a C macro. This completes a 2009-07-28 commit.
17268
17269 2011-05-22  Bruno Haible  <bruno@clisp.org>
17270
17271         timegm: Simplify autoconf macro.
17272         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17273
17274 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17275
17276         clock-time: change to LGPLv2+.
17277         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17278         BSD-like but we have no mark for that; this is good enough for now.
17279
17280 2011-05-21  Bruno Haible  <bruno@clisp.org>
17281
17282         strerror_r: Fix comments.
17283         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17284
17285 2011-05-21  Bruno Haible  <bruno@clisp.org>
17286
17287         relocatable-prog-wrapper: Fix possible link error.
17288         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17289         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17290         (gl_FUNC_SETENV): ... to here.
17291         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17292         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17293
17294 2011-05-21  Bruno Haible  <bruno@clisp.org>
17295
17296         relocatable-prog-wrapper: Assume strerror() exists.
17297         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17298         m4/strerror.m4.
17299         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17300         * lib/relocwrapper.c: Remove mention of strerror module.
17301         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17303         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17304         C macro.
17305
17306 2011-05-21  Bruno Haible  <bruno@clisp.org>
17307
17308         select: Simplify replacement idiom.
17309         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17310         Win32 platforms.
17311         * lib/sys_select.in.h (select): Simplify accordingly.
17312         * modules/select (Depends-on): Likewise.
17313
17314 2011-05-21  Bruno Haible  <bruno@clisp.org>
17315
17316         mkdir-p: Simplify autoconf macro.
17317         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17318         gl_FUNC_LCHOWN.
17319
17320 2011-05-21  Eric Blake  <eblake@redhat.com>
17321
17322         strerror_r: avoid clobbering strerror on cygwin
17323         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17324         fall back instead to sys_errlist.
17325         * modules/strerror (configure.ac): Add witness.
17326         * tests/test-strerror_r.c (main): Enhance test.
17327         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17328         * tests/test-perror2.c (main): Free memory before exit.
17329
17330 2011-05-21  Bruno Haible  <bruno@clisp.org>
17331
17332         mkdtemp: Use gnulib naming conventions.
17333         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17334         * modules/mkdtemp (configure.ac): Update.
17335
17336 2011-05-20  Eric Blake  <eblake@redhat.com>
17337
17338         strerror_r: avoid corrupting errno on Solaris
17339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17340         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17341
17342         strerror_r: avoid compiler warning
17343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17344
17345         strerror_r: simplify AIX code
17346         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17347
17348         test-perror: avoid spurious failure on FreeBSD
17349         * modules/perror-tests (Depends-on): Add strerror, now that
17350         strerror_r no longer pulls it in.
17351
17352 2011-05-20  Bruno Haible  <bruno@clisp.org>
17353
17354         strerror_r-posix: Remove unused dependencies.
17355         * modules/strerror_r-posix (Depends-on): Remove strerror.
17356         Reported by Eric Blake.
17357
17358 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17359
17360         intprops: remove assumption about A|B representation
17361         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17362         is a valid integer if both A and B are.  Although this is true for
17363         all known practical hosts, the C standard doesn't guarantee it,
17364         and the code need not assume it.  Also, this change may work around
17365         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17367
17368 2011-05-20  Eric Blake  <eblake@redhat.com>
17369
17370         perror: work around FreeBSD bug
17371         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17372         is broken.  Move AC_LIBOBJ...
17373         * modules/perror (configure.ac): Here.
17374         * doc/posix-functions/perror.texi (perror): Document this.
17375         * tests/test-perror2.c (main): Enhance test.
17376
17377         test-perror: check for strerror interactions
17378         * tests/macros.h (STREQ): Add macro.
17379         * modules/perror-tests (Files): Add second test.
17380         * tests/test-perror2.c (main): New file.
17381         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17382
17383         test-perror: rewrite to use init script
17384         * modules/perror-tests (Files): Add init.sh.
17385         * tests/test-perror.sh: Use temporary directory.
17386
17387 2011-05-20  Jim Meyering  <meyering@redhat.com>
17388
17389         maint: replace misused "a" with "an"
17390         * doc/intprops.texi: "a integer"
17391         * doc/regex.texi: "a explanation"
17392         * lib/alignof.h: "a object"
17393         * lib/argmatch.h: "a explanation"
17394         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17395         * lib/stdint.in.h: "a integer"
17396         * lib/userspec.c: "a owner"
17397         * doc/gnulib.texi: Fix "a idea", and reword.
17398
17399 2011-05-19  Jim Meyering  <meyering@redhat.com>
17400
17401         maint: correct misuse of "a" and "an"
17402         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17403         * lib/argp-help.c: "an docum...": s/an/a/
17404         * lib/argp-parse.c: "An vector": s/An/A/
17405         * lib/execute.c: "an native": s/an/a/
17406         * lib/spawn-pipe.c: Likewise.
17407         * lib/gc.h: "an Gc_rc": s/an/a/
17408         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17409         * lib/fts.c: "an stat.st_dev": s/an/a/
17410
17411 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17412
17413         intprops-tests: work around HP-UX 11.23 cc bug with constants
17414         * tests/test-intprops.c (VERIFY): New macro.
17415         (main): Use it, instead of verify, to work around the compiler bug; see
17416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17417
17418         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17419         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17420         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17421         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17422         (_GL_REMAINDER_OVERFLOW): Use it.
17423
17424         intprops-tests: revert unsigned part of previous change
17425         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17426         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17427         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17429
17430 2011-05-19  Bruno Haible  <bruno@clisp.org>
17431
17432         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17433         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17434         strerror_r() returned without filling the buffer.
17435         Reported by Eric Blake.
17436
17437 2011-05-19  Eric Blake  <eblake@redhat.com>
17438
17439         strerror_r: guarantee unchanged errno
17440         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17441         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17442         failure.
17443         * tests/test-strerror_r.c (main): Enhance test.
17444
17445 2011-05-19  Bruno Haible  <bruno@clisp.org>
17446
17447         strerror_r: Reorder #if blocks.
17448         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17449         for consistency with the previous commit.
17450
17451 2011-05-19  Bruno Haible  <bruno@clisp.org>
17452
17453         perror: Avoid clobbering the strerror buffer when possible.
17454         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17455         * lib/strerror.c: Include it.
17456         * modules/strerror (Files): Add lib/strerror-impl.h.
17457         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17458         (my_strerror): New function, defined through lib/strerror-impl.h.
17459         (perror): Use it instead of strerror.
17460         * modules/perror (Files): Add lib/strerror-impl.h.
17461         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17462
17463 2011-05-19  Eric Blake  <eblake@redhat.com>
17464
17465         strerror_r: fix on newer cygwin
17466         * lib/strerror_r.c (strerror_r): Cygwin now has
17467         __xpg_strerror_r, use it.
17468
17469 2011-05-19  Bruno Haible  <bruno@clisp.org>
17470
17471         strerror_r: Avoid clobbering the strerror buffer when possible.
17472         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17473         (sys_nerr, sys_errlist): New declarations.
17474         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17475         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17476         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17477
17478 2011-05-19  Bruno Haible  <bruno@clisp.org>
17479
17480         strerror_r: Fix test failure on mingw.
17481         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17482         EXTEND_STRERROR_R.
17483         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17484         macros from errno.in.h instead.
17485
17486 2011-05-19  Eric Blake  <eblake@redhat.com>
17487
17488         strerror: relax test for Solaris
17489         * tests/test-strerror.c (main): Permit Solaris behavior.
17490         * tests/test-strerror_r.c (main): Likewise.
17491
17492         strerror: enforce POSIX ruling on strerror(0)
17493         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17494         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17495         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17496         * doc/posix-functions/strerror.texi (strerror): Document it.
17497         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17498         * tests/test-strerror.c (main): Strengthen test.
17499         * tests/test-strerror_r.c (main): Likewise.
17500
17501 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17502
17503         intprop-tests: port to older and more-pedantic compilers
17504         * modules/intprops-tests (Files): Add tests/macros.h.
17505         * tests/test-intprops.c: Include macros.h.
17506         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17507         it's no longer documented to expand to an integer constant expression.
17508         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17509         argument is floating point, as it's no longer documented to expand
17510         to an integer constant expression in that case.
17511         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17512         compiler bugs reported by Bruno Haible.  See
17513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17514         (U0, U1): New constants, to work around the same bugs.  Also,
17515         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17516
17517         intprops: work around C compiler bugs
17518         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17519         bug in Sun C 5.11 2010/08/13 and other compilers; see
17520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17521
17522         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17523         * doc/intprops.texi (Integer Type Determination): Fix
17524         documentation for TYPE_IS_INTEGER: it returns an constant
17525         expression, not an integer constant expression.  Fix doc for
17526         TYPE_SIGNED: it returns an integer constant expression only if its
17527         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17528         hardly worth documented that way....)
17529
17530 2011-05-18  Bruno Haible  <bruno@clisp.org>
17531
17532         strerror_r: Avoid clobbering the strerror buffer when possible.
17533         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17534         Handle gnulib defined errno values here. When strerror() returns NULL
17535         or an empty string, return EINVAL.
17536         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17537         gnulib defined errno values here.
17538         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17539
17540 2011-05-18  Eric Blake  <eblake@redhat.com>
17541
17542         fnmatch: avoid compiler warning
17543         * lib/fnmatch_loop.c (FCT): Use correct type.
17544         Reported by Matthias Bolte.
17545
17546 2011-05-13  Jim Meyering  <meyering@redhat.com>
17547
17548         maint.mk: three new prohibit_<HDR>_without_use rules
17549         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17550         (sc_prohibit_stdio-safer_without_use): Likewise.
17551         (sc_prohibit_xfreopen_without_use): Likewise.
17552
17553 2011-05-17  Jim Meyering  <meyering@redhat.com>
17554
17555         announce-gen: fail if the NEWS delta is empty
17556         If there's nothing noteworthy in NEWS, then either you forgot
17557         or you shouldn't be releasing.
17558         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17559
17560 2011-05-17  Pádraig Brady <P@draigBrady.com>
17561
17562         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17563         reserved symbols starting with double underscore from the check.
17564
17565 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17566
17567         intprops: add doc
17568         * doc/intprops.texi: New file, documenting intprops.
17569         * doc/gnulib.texi (Particular Modules): Include it.
17570
17571         verify: add doc to gnulib manual and fix example
17572         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17573         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17574         (Compile-time Assertions): Fix example so it can't overflow.
17575
17576 2011-05-17  Jim Meyering  <meyering@redhat.com>
17577
17578         warnings.m4: don't usurp save_CPPFLAGS variable name
17579         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17580
17581         doc: fix typo
17582         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17583
17584 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17585             Bruno Haible  <bruno@clisp.org>
17586
17587         doc: Tweak recent change.
17588         * README (Portability guidelines): Tweak new text.
17589         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17590         Interix 6.1.
17591
17592 2011-05-16  Eric Blake  <eblake@redhat.com>
17593
17594         inttypes: avoid autoconf warning
17595         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17596         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17597
17598 2011-05-16  Sam Steingold <sds@gnu.org>
17599         and Eric Blake  <eblake@redhat.com>
17600
17601         vc-list-files: accept multiple directory operands
17602         * build-aux/vc-list-files: Iterate over all remaining operands.
17603
17604 2011-05-16  Bruno Haible  <bruno@clisp.org>
17605
17606         Fix confusion regarding deprecated modules.
17607         * modules/calloc (Status, Notice): Mark module as deprecated, not
17608         obsolete.
17609         * modules/fnmatch-posix (Status, Notice): Likewise.
17610         * modules/getdate (Status, Notice): Likewise.
17611         * modules/getopt (Status, Notice): Likewise.
17612         * modules/malloc (Status, Notice): Likewise.
17613         * modules/pipe (Status, Notice): Likewise.
17614         * modules/realloc (Status, Notice): Likewise.
17615         * modules/rename-dest-slash (Status, Notice): Likewise.
17616         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17617         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17618         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17619         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17620         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17621
17622 2011-05-16  Bruno Haible  <bruno@clisp.org>
17623
17624         doc: List the target platforms.
17625         * doc/gnulib-intro.texi (Target Platforms): New section.
17626         * doc/gnulib.texi (Introduction): Update menu.
17627         * README (Portability guidelines): Refer to the new section. Update
17628         statement about oldest supported environment. Remove rationale why
17629         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17630         unportable C89 function.
17631         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17632         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17633
17634 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17635
17636         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17637
17638 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         intprops-tests: new module
17641         * modules/intprops-tests, tests/test-intprops.c: New files.
17642
17643         intprops: add safe, portable integer overflow checking
17644         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17645         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17646         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17647         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17648         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17649         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17650         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17651         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17652         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17653         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17654         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17655
17656 2011-05-12  James Youngman  <jay@gnu.org>
17657
17658         Add a test for glibc's Bugzilla bug #12378.
17659         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17660         doesn't allow the literal matching of a lone "[" (which is
17661         required by POSIX).
17662         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17663
17664 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17665
17666         Sync glibc change fixing Bugzilla bug #12378.
17667         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17668         beginning and fall back to matching as normal character if the
17669         string ends before the matching ']' is found.  This is what POSIX
17670         requires.
17671
17672 2011-05-13  Eric Blake  <eblake@redhat.com>
17673
17674         getcwd-lgpl: relax test for FreeBSD
17675         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17676         issue.
17677         * tests/test-getcwd-lgpl.c (main): Relax test.
17678         Reported by Matthias Bolte.
17679
17680 2011-05-11  Eric Blake  <eblake@redhat.com>
17681
17682         test-fflush: silence compiler warning
17683         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17684
17685 2011-05-11  Bruno Haible  <bruno@clisp.org>
17686
17687         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17688         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17689         * modules/canonicalize (Depends-on): Add 'nocrash'.
17690         * modules/canonicalize-lgpl (Depends-on): Likewise.
17691         * doc/posix-functions/realpath.texi: Update platforms list.
17692         Reported by Ryan Schmidt <ryandesign@macports.org>.
17693
17694 2011-05-11  Bruno Haible  <bruno@clisp.org>
17695
17696         group-member: Declare function in <unistd.h>.
17697         * lib/unistd.in.h (group_member): New declaration.
17698         * lib/group-member.h: Remove file.
17699         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17700         * tests/test-unistd-c++.cc: Check signature of group_member.
17701         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17702         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17703         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17704         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17705         HAVE_GROUP_MEMBER.
17706         * modules/group-member (Files): Remove lib/group-member.h.
17707         (Depends-on): Add unistd. Specify conditions.
17708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17709         (Include): Change to <unistd.h>.
17710         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17711         HAVE_GROUP_MEMBER.
17712         * NEWS: Mention the change.
17713         * lib/euidaccess.c: Don't include group-member.h.
17714
17715 2011-05-11  Bruno Haible  <bruno@clisp.org>
17716
17717         group-member: Document module.
17718         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17719         module.
17720
17721 2011-05-11  Bruno Haible  <bruno@clisp.org>
17722
17723         fclose: Fix mistake earlier today.
17724         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17725
17726 2011-05-11  Eric Blake  <eblake@redhat.com>
17727
17728         fclose: preserve fflush errors
17729         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17730         Reported by Jim Meyering.
17731
17732         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17733         * build-aux/bootstrap (check_versions): When no specific version
17734         is required, merely check that the app produces an exit status
17735         that indicates its existence.
17736
17737         maint.mk: drop redundant check
17738         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17739         the same but better.
17740
17741 2011-05-11  Bruno Haible  <bruno@clisp.org>
17742
17743         fclose: Fix possible link error.
17744         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17745         unregister_shadow_fd. Improve comments.
17746         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17747         Eric Blake.
17748
17749 2011-05-11  Jim Meyering  <meyering@redhat.com>
17750
17751         maint.mk: improve "can not" detection and generalize rule name
17752         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17753         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17754         Use the same technique as in sc_prohibit_doubled_word, so that
17755         we recognize "can not" also when the words are separated by a newline.
17756         Suggested by Eric Blake.
17757         (perl_filename_lineno_text_): Define.  Factored out of...
17758         (prohibit_doubled_word_): ...here.  Use the new definition.
17759         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17760         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17761         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17762
17763 2011-05-10  Eric Blake  <eblake@redhat.com>
17764
17765         fclose: avoid double close race when possible
17766         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17767         all but WINDOWS_SOCKETS.
17768
17769 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17770
17771         openat: correct new comment
17772         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17773
17774 2011-05-10  Jim Meyering  <meyering@redhat.com>
17775
17776         openat: add comments
17777         * lib/openat-proc.c (openat_proc_name): Add comments,
17778         mostly from Eric Blake.
17779
17780 2011-05-09  Eric Blake  <eblake@redhat.com>
17781
17782         openat: reduce syscalls in first probe of /proc
17783         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17784         be a directory.  Simplify the probe for .. bugs.
17785         * modules/openat (Depends-on): Drop same-inode.
17786         Reported by Bastien ROUCARIES.
17787
17788 2011-05-09  Jim Meyering  <meyering@redhat.com>
17789
17790         maint.mk: change semantics/name of tight_scope variables
17791         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17792         Rename variables to align with semantics that make them more useful.
17793
17794         maint.mk: tweak new rule's name not to impinge
17795         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17796         (sc_tight_scope): Use new rule name rather than $@-0.
17797
17798         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17799         * top/maint.mk (sc_tight_scope): New rule.
17800         (sc_tight_scope-0): New rule, ifdef'd out.
17801         (_gl_TS_dir): Default.
17802         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17803         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17804
17805 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17806
17807         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17808         Haible <bruno@clisp.org>.
17809
17810 2011-05-08  Bruno Haible  <bruno@clisp.org>
17811
17812         Comments.
17813         * m4/isnanf.m4: Add comment.
17814         * m4/isnanl.m4: Likewise.
17815
17816 2011-05-08  Bruno Haible  <bruno@clisp.org>
17817
17818         glob: Remove obsolete macro.
17819         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17820
17821 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17822
17823         intprops: Sun C 5.11 supports __typeof__
17824         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17825         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17826         which is new.
17827         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17828
17829         intprops: switch to usual gnulib indenting and naming
17830         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17831         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17832
17833         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17834
17835 2011-05-08  Jim Meyering  <meyering@redhat.com>
17836
17837         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17838         * top/maint.mk (release-prep): Use make's --no-print-directory
17839         option when generating the announcement.  This eliminates the
17840         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17841         generated announcement template.
17842
17843 2011-05-08  Bruno Haible  <bruno@clisp.org>
17844
17845         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17846         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17847         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17848
17849 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17850
17851         ignore-value, verify: Omit include files from lib_SOURCES.
17852         * modules/ignore-value, modules/verify (Makefile.am):
17853         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17854         that leads Automake to duplicate use of am__objects_... variables
17855         in Makefile.in.  See
17856         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17857
17858 2011-05-07  Bruno Haible  <bruno@clisp.org>
17859
17860         fclose: Simplify autoconf macro.
17861         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17862         defined.
17863
17864 2011-05-07  Bruno Haible  <bruno@clisp.org>
17865
17866         canonicalize-lgpl: Fix autoconf macro ordering bug.
17867         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17868         gl_STDLIB_H_DEFAULTS.
17869
17870 2011-05-06  Eric Blake  <eblake@redhat.com>
17871
17872         maintainer-makefile: make sc_po_check easier to tune
17873         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17874         to probe for strings, such as an alternate location for gnulib.
17875
17876         fclose: guarantee behavior on seekable stdin
17877         * modules/fclose (Depends-on): Add fflush.
17878         * doc/posix-functions/fclose.texi (fclose): Document this.
17879         * tests/test-fclose.c (main): Make test for this unconditional.
17880
17881 2011-05-06  Bruno Haible  <bruno@clisp.org>
17882
17883         fflush, fpurge: Relicense under LGPLv2+.
17884         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17885         * modules/fpurge (License): Likewise.
17886         With permission from Eric Blake and Jim Meyering.
17887         Suggested by Eric Blake.
17888
17889 2011-05-06  Karl Berry  <karl@gnu.org>
17890
17891         * MODULES.html.sh (func_all_modules): remove exit.
17892
17893 2011-05-06  Jim Meyering  <meyering@redhat.com>
17894
17895         maint.mk: use info-gnu@ as the default only for a stable release
17896         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17897         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17898         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17899         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17900
17901 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17902
17903         assert-h: new module, which supports C1X-style static_assert
17904         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17905         * lib/verify.h: Revamp so that this can be copied into assert.h,
17906         while retaining the ability to use it standalone as before.
17907         Rename private identifiers so as not to encroach on the
17908         standard C namespace, since this is now used by assert.h.
17909         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17910         the old verify_true.
17911         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17912         the old verify_true.  Use _GL_VERIFY_TYPE.
17913         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17914         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17915         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17916         defined when this file is copied into the replacement assert.h.
17917         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17918         and _Static_assert is not built in.
17919         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17920         defined, and use the new macros mentioned above.
17921         * doc/posix-headers/assert.texi: Document this.
17922
17923 2011-05-05  Bruno Haible  <bruno@clisp.org>
17924
17925         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17926         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17927         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17928         gl_REPLACE_FCLOSE here.
17929         * modules/fflush (Depends-on): Remove fclose.
17930         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17931         combination with module 'fclose'.
17932
17933 2011-05-05  Bruno Haible  <bruno@clisp.org>
17934
17935         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17936         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17937         gl_FUNC_FFLUSH.
17938         (gl_FUNC_FFLUSH): Use it.
17939         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17941         gl_REPLACE_FSEEKO here.
17942
17943 2011-05-05  Bruno Haible  <bruno@clisp.org>
17944
17945         tzset: Relicense under LGPL.
17946         * modules/tzset (License): Change to LGPL.
17947         No agreement needed; it's a no-op.
17948
17949         strtoimax, strtoumax: Relicense under LGPL.
17950         * modules/strtoimax (License): Change to LGPL.
17951         * modules/strtoumax (License): Likewise.
17952         With permission from Jim Meyering, Paul Eggert:
17953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17955
17956         getgroups: Relicense under LGPL.
17957         * modules/getgroups (License): Change to LGPL.
17958         With permission from Jim Meyering, Paul Eggert, Eric Blake:
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
17963         nanosleep: Relicense under LGPL.
17964         * modules/nanosleep (License): Change to LGPL.
17965         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17966         Haible:
17967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17971
17972         futimens: Relicense under LGPL.
17973         * modules/futimens (License): Change to LGPL.
17974         With permission from Eric Blake:
17975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17976
17977         fflush: Relicense under LGPL.
17978         * modules/fflush (License): Change to LGPL.
17979         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17983
17984         tmpfile: Relicense under LGPL.
17985         * modules/tmpfile (License): Change to LGPL.
17986         With permission from Ben Pfaff:
17987         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17988
17989         isfinite: Relicense under LGPL.
17990         * modules/isfinite (License): Change to LGPL.
17991         With permission from Ben Pfaff, Bruno Haible:
17992         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17994
17995         acosl..tanl: Relicense under LGPL.
17996         * modules/acosl (License): Change to LGPL.
17997         * modules/asinl (License): Likewise.
17998         * modules/atanl (License): Likewise.
17999         * modules/cosl (License): Likewise.
18000         * modules/expl (License): Likewise.
18001         * modules/logl (License): Likewise.
18002         * modules/sinl (License): Likewise.
18003         * modules/sqrtl (License): Likewise.
18004         * modules/tanl (License): Likewise.
18005         Source code originally from glibc and Paolo Bonzini. Agreements:
18006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18008
18009 2011-05-05  Bruno Haible  <bruno@clisp.org>
18010
18011         signal: Define sighandler_t.
18012         * lib/signal.in.h (sighandler_t): New type.
18013         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18014         whether sighandler_t is defined.
18015         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18016         * modules/signal (Depends-on): Add extensions.
18017         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18018         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18019         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18020
18021 2011-05-05  Eric Blake  <eblake@redhat.com>
18022
18023         maint: remove useless REPLACE_*_H macros
18024         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18025         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18027         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18028         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18029         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18030         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18031         * m4/btowc.m4: Update callers.
18032         * m4/dirfd.m4: Likewise.
18033         * m4/duplocale.m4: Likewise.
18034         * m4/fchdir.m4: Likewise.
18035         * m4/fdopendir.m4: Likewise.
18036         * m4/inet_ntop.m4: Likewise.
18037         * m4/inet_pton.m4: Likewise.
18038         * m4/ioctl.m4: Likewise.
18039         * m4/mbrlen.m4: Likewise.
18040         * m4/mbrtowc.m4: Likewise.
18041         * m4/mbsinit.m4: Likewise.
18042         * m4/mbsnrtowcs.m4: Likewise.
18043         * m4/mbsrtowcs.m4: Likewise.
18044         * m4/poll.m4: Likewise.
18045         * m4/setlocale.m4: Likewise.
18046         * m4/wcrtomb.m4: Likewise.
18047         * m4/wcsnrtombs.m4: Likewise.
18048         * m4/wcsrtombs.m4: Likewise.
18049         * m4/wctob.m4: Likewise.
18050         * m4/wcwidth.m4: Likewise.
18051         * modules/posix_spawn: Likewise.
18052         * modules/posix_spawn_file_actions_addclose: Likewise.
18053         * modules/posix_spawn_file_actions_adddup2: Likewise.
18054         * modules/posix_spawn_file_actions_addopen: Likewise.
18055         * modules/posix_spawn_file_actions_destroy: Likewise.
18056         * modules/posix_spawn_file_actions_init: Likewise.
18057         * modules/posix_spawnattr_destroy: Likewise.
18058         * modules/posix_spawnattr_getflags: Likewise.
18059         * modules/posix_spawnattr_getpgroup: Likewise.
18060         * modules/posix_spawnattr_getschedparam: Likewise.
18061         * modules/posix_spawnattr_getschedpolicy: Likewise.
18062         * modules/posix_spawnattr_getsigdefault: Likewise.
18063         * modules/posix_spawnattr_getsigmask: Likewise.
18064         * modules/posix_spawnattr_init: Likewise.
18065         * modules/posix_spawnattr_setflags: Likewise.
18066         * modules/posix_spawnattr_setpgroup: Likewise.
18067         * modules/posix_spawnattr_setschedparam: Likewise.
18068         * modules/posix_spawnattr_setschedpolicy: Likewise.
18069         * modules/posix_spawnattr_setsigdefault: Likewise.
18070         * modules/posix_spawnattr_setsigmask: Likewise.
18071         * modules/posix_spawnp: Likewise.
18072
18073 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18074
18075         Add option to do-release-commit-and-tag to specify branch.
18076         * build-aux/do-release-commit-and-tag: Add --branch.
18077
18078 2011-05-03  Bruno Haible  <bruno@clisp.org>
18079
18080         Avoid unnecessary compilation units, through conditional dependencies.
18081         * modules/accept (Depends-on): Add conditions to the dependencies.
18082         * modules/acosl (Depends-on): Likewise.
18083         * modules/argz (Depends-on): Likewise.
18084         * modules/asinl (Depends-on): Likewise.
18085         * modules/atanl (Depends-on): Likewise.
18086         * modules/atoll (Depends-on): Likewise.
18087         * modules/bind (Depends-on): Likewise.
18088         * modules/btowc (Depends-on): Likewise.
18089         * modules/canonicalize-lgpl (Depends-on): Likewise.
18090         * modules/ceil (Depends-on): Likewise.
18091         * modules/ceilf (Depends-on): Likewise.
18092         * modules/ceill (Depends-on): Likewise.
18093         * modules/chdir-long (Depends-on): Likewise.
18094         * modules/chown (Depends-on): Likewise.
18095         * modules/close (Depends-on): Likewise.
18096         * modules/connect (Depends-on): Likewise.
18097         * modules/cosl (Depends-on): Likewise.
18098         * modules/dirfd (Depends-on): Likewise.
18099         * modules/dprintf (Depends-on): Likewise.
18100         * modules/dprintf-posix (Depends-on): Likewise.
18101         * modules/error (Depends-on): Likewise.
18102         * modules/euidaccess (Depends-on): Likewise.
18103         * modules/expl (Depends-on): Likewise.
18104         * modules/faccessat (Depends-on): Likewise.
18105         * modules/fchdir (Depends-on): Likewise.
18106         * modules/fclose (Depends-on): Likewise.
18107         * modules/fcntl (Depends-on): Likewise.
18108         * modules/fdopendir (Depends-on): Likewise.
18109         * modules/fflush (Depends-on): Likewise.
18110         * modules/floor (Depends-on): Likewise.
18111         * modules/floorf (Depends-on): Likewise.
18112         * modules/floorl (Depends-on): Likewise.
18113         * modules/fnmatch (Depends-on): Likewise.
18114         * modules/fopen (Depends-on): Likewise.
18115         * modules/fprintf-posix (Depends-on): Likewise.
18116         * modules/frexp (Depends-on): Likewise.
18117         * modules/frexp-nolibm (Depends-on): Likewise.
18118         * modules/frexpl (Depends-on): Likewise.
18119         * modules/frexpl-nolibm (Depends-on): Likewise.
18120         * modules/fseek (Depends-on): Likewise.
18121         * modules/fsusage (Depends-on): Likewise.
18122         * modules/ftell (Depends-on): Likewise.
18123         * modules/ftello (Depends-on): Likewise.
18124         * modules/futimens (Depends-on): Likewise.
18125         * modules/getcwd (Depends-on): Likewise.
18126         * modules/getcwd-lgpl (Depends-on): Likewise.
18127         * modules/getdelim (Depends-on): Likewise.
18128         * modules/getdomainname (Depends-on): Likewise.
18129         * modules/getgroups (Depends-on): Likewise.
18130         * modules/gethostname (Depends-on): Likewise.
18131         * modules/getline (Depends-on): Likewise.
18132         * modules/getlogin_r (Depends-on): Likewise.
18133         * modules/getopt-posix (Depends-on): Likewise.
18134         * modules/getpeername (Depends-on): Likewise.
18135         * modules/getsockname (Depends-on): Likewise.
18136         * modules/getsockopt (Depends-on): Likewise.
18137         * modules/getsubopt (Depends-on): Likewise.
18138         * modules/getusershell (Depends-on): Likewise.
18139         * modules/glob (Depends-on): Likewise.
18140         * modules/grantpt (Depends-on): Likewise.
18141         * modules/iconv_open (Depends-on): Likewise.
18142         * modules/iconv_open-utf (Depends-on): Likewise.
18143         * modules/inet_ntop (Depends-on): Likewise.
18144         * modules/inet_pton (Depends-on): Likewise.
18145         * modules/ioctl (Depends-on): Likewise.
18146         * modules/isapipe (Depends-on): Likewise.
18147         * modules/isfinite (Depends-on): Likewise.
18148         * modules/isinf (Depends-on): Likewise.
18149         * modules/lchown (Depends-on): Likewise.
18150         * modules/ldexpl (Depends-on): Likewise.
18151         * modules/link (Depends-on): Likewise.
18152         * modules/linkat (Depends-on): Likewise.
18153         * modules/listen (Depends-on): Likewise.
18154         * modules/logl (Depends-on): Likewise.
18155         * modules/lstat (Depends-on): Likewise.
18156         * modules/mbrlen (Depends-on): Likewise.
18157         * modules/mbrtowc (Depends-on): Likewise.
18158         * modules/mbsinit (Depends-on): Likewise.
18159         * modules/mbsnrtowcs (Depends-on): Likewise.
18160         * modules/mbsrtowcs (Depends-on): Likewise.
18161         * modules/mbtowc (Depends-on): Likewise.
18162         * modules/memcmp (Depends-on): Likewise.
18163         * modules/mkdir (Depends-on): Likewise.
18164         * modules/mkdtemp (Depends-on): Likewise.
18165         * modules/mkfifo (Depends-on): Likewise.
18166         * modules/mkfifoat (Depends-on): Likewise.
18167         * modules/mknod (Depends-on): Likewise.
18168         * modules/mkostemp (Depends-on): Likewise.
18169         * modules/mkostemps (Depends-on): Likewise.
18170         * modules/mkstemp (Depends-on): Likewise.
18171         * modules/mkstemps (Depends-on): Likewise.
18172         * modules/mktime (Depends-on): Likewise.
18173         * modules/nanosleep (Depends-on): Likewise.
18174         * modules/open (Depends-on): Likewise.
18175         * modules/openat (Depends-on): Likewise.
18176         * modules/perror (Depends-on): Likewise.
18177         * modules/poll (Depends-on): Likewise.
18178         * modules/popen (Depends-on): Likewise.
18179         * modules/posix_spawn (Depends-on): Likewise.
18180         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18181         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18182         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18183         * modules/posix_spawnp (Depends-on): Likewise.
18184         * modules/pread (Depends-on): Likewise.
18185         * modules/printf-posix (Depends-on): Likewise.
18186         * modules/ptsname (Depends-on): Likewise.
18187         * modules/putenv (Depends-on): Likewise.
18188         * modules/pwrite (Depends-on): Likewise.
18189         * modules/readline (Depends-on): Likewise.
18190         * modules/readlink (Depends-on): Likewise.
18191         * modules/readlinkat (Depends-on): Likewise.
18192         * modules/recv (Depends-on): Likewise.
18193         * modules/recvfrom (Depends-on): Likewise.
18194         * modules/regex (Depends-on): Likewise.
18195         * modules/remove (Depends-on): Likewise.
18196         * modules/rename (Depends-on): Likewise.
18197         * modules/renameat (Depends-on): Likewise.
18198         * modules/rmdir (Depends-on): Likewise.
18199         * modules/round (Depends-on): Likewise.
18200         * modules/roundf (Depends-on): Likewise.
18201         * modules/roundl (Depends-on): Likewise.
18202         * modules/rpmatch (Depends-on): Likewise.
18203         * modules/select (Depends-on): Likewise.
18204         * modules/send (Depends-on): Likewise.
18205         * modules/sendto (Depends-on): Likewise.
18206         * modules/setenv (Depends-on): Likewise.
18207         * modules/setlocale (Depends-on): Likewise.
18208         * modules/setsockopt (Depends-on): Likewise.
18209         * modules/shutdown (Depends-on): Likewise.
18210         * modules/sigaction (Depends-on): Likewise.
18211         * modules/signbit (Depends-on): Likewise.
18212         * modules/sigprocmask (Depends-on): Likewise.
18213         * modules/sinl (Depends-on): Likewise.
18214         * modules/sleep (Depends-on): Likewise.
18215         * modules/snprintf (Depends-on): Likewise.
18216         * modules/snprintf-posix (Depends-on): Likewise.
18217         * modules/socket (Depends-on): Likewise.
18218         * modules/sprintf-posix (Depends-on): Likewise.
18219         * modules/sqrtl (Depends-on): Likewise.
18220         * modules/stat (Depends-on): Likewise.
18221         * modules/strchrnul (Depends-on): Likewise.
18222         * modules/strdup-posix (Depends-on): Likewise.
18223         * modules/strerror (Depends-on): Likewise.
18224         * modules/strerror_r-posix (Depends-on): Likewise.
18225         * modules/strndup (Depends-on): Likewise.
18226         * modules/strnlen (Depends-on): Likewise.
18227         * modules/strptime (Depends-on): Likewise.
18228         * modules/strsep (Depends-on): Likewise.
18229         * modules/strsignal (Depends-on): Likewise.
18230         * modules/strstr-simple (Depends-on): Likewise.
18231         * modules/strtod (Depends-on): Likewise.
18232         * modules/strtoimax (Depends-on): Likewise.
18233         * modules/strtok_r (Depends-on): Likewise.
18234         * modules/strtoumax (Depends-on): Likewise.
18235         * modules/symlink (Depends-on): Likewise.
18236         * modules/symlinkat (Depends-on): Likewise.
18237         * modules/tanl (Depends-on): Likewise.
18238         * modules/tcgetsid (Depends-on): Likewise.
18239         * modules/tmpfile (Depends-on): Likewise.
18240         * modules/trunc (Depends-on): Likewise.
18241         * modules/truncf (Depends-on): Likewise.
18242         * modules/truncl (Depends-on): Likewise.
18243         * modules/uname (Depends-on): Likewise.
18244         * modules/unlink (Depends-on): Likewise.
18245         * modules/unlockpt (Depends-on): Likewise.
18246         * modules/unsetenv (Depends-on): Likewise.
18247         * modules/usleep (Depends-on): Likewise.
18248         * modules/utimensat (Depends-on): Likewise.
18249         * modules/vasprintf (Depends-on): Likewise.
18250         * modules/vdprintf (Depends-on): Likewise.
18251         * modules/vdprintf-posix (Depends-on): Likewise.
18252         * modules/vfprintf-posix (Depends-on): Likewise.
18253         * modules/vprintf-posix (Depends-on): Likewise.
18254         * modules/vsnprintf (Depends-on): Likewise.
18255         * modules/vsnprintf-posix (Depends-on): Likewise.
18256         * modules/vsprintf-posix (Depends-on): Likewise.
18257         * modules/wcrtomb (Depends-on): Likewise.
18258         * modules/wcscasecmp (Depends-on): Likewise.
18259         * modules/wcscspn (Depends-on): Likewise.
18260         * modules/wcsdup (Depends-on): Likewise.
18261         * modules/wcsncasecmp (Depends-on): Likewise.
18262         * modules/wcsnrtombs (Depends-on): Likewise.
18263         * modules/wcspbrk (Depends-on): Likewise.
18264         * modules/wcsrtombs (Depends-on): Likewise.
18265         * modules/wcsspn (Depends-on): Likewise.
18266         * modules/wcsstr (Depends-on): Likewise.
18267         * modules/wcstok (Depends-on): Likewise.
18268         * modules/wcswidth (Depends-on): Likewise.
18269         * modules/wctob (Depends-on): Likewise.
18270         * modules/wctomb (Depends-on): Likewise.
18271         * modules/wctype (Depends-on): Likewise.
18272         * modules/wcwidth (Depends-on): Likewise.
18273         * modules/write (Depends-on): Likewise.
18274
18275 2011-05-03  Bruno Haible  <bruno@clisp.org>
18276
18277         Support for conditional dependencies.
18278         * doc/gnulib.texi (Module description): Document the syntax of
18279         conditional dependencies.
18280         * gnulib-tool: New option --conditional-dependencies.
18281         (func_usage): Document it.
18282         (cond_dependencies): New variable.
18283         (func_get_automake_snippet_conditional,
18284         func_get_automake_snippet_unconditional): New functions, extracted from
18285         func_get_automake_snippet.
18286         (func_get_automake_snippet): Use them.
18287         (sed_first_32_chars): New variable.
18288         (func_module_shellfunc_name): New function.
18289         (func_module_shellvar_name): New function.
18290         (func_module_conditional_name): New function.
18291         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18292         func_cond_module_condition): New functions.
18293         (func_modules_transitive_closure): Add support for conditional
18294         dependencies.
18295         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18296         conditional automake snippet in an automake conditional.
18297         (func_emit_autoconf_snippets): Emit shell functions that contain the
18298         code for conditional modules.
18299         (func_import, func_create_testdir): Update specification.
18300
18301 2011-05-03  Eric Blake  <eblake@redhat.com>
18302
18303         test-getaddrinfo: report error information
18304         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18305
18306 2011-05-03  Jim Meyering  <meyering@redhat.com>
18307
18308         bootstrap: avoid build failure when $GZIP is set
18309         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18310         program name.  If defined at all, it is supposed to list gzip options.
18311         Reported by Alan Curry in http://debbugs.gnu.org/8609
18312
18313 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18314
18315         readme-release: new module with release instructions
18316         * modules/readme-release: New module.
18317         * top/README-release: New file, from coreutils, grep, diffutils.
18318         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18319
18320 2011-05-02  Eric Blake  <eblake@redhat.com>
18321
18322         fflush: also replace fclose when fixing fflush
18323         * modules/fflush (Depends-on): Add fclose.
18324         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18325         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18326         memstreams with no backing fd.
18327         * doc/posix-functions/fclose.texi (fclose): Document the use of
18328         fflush module to fix the bug.
18329         * tests/test-fclose.c (main): Relax test when fclose is used in
18330         isolation.
18331
18332         fclose: add some tests
18333         * modules/fclose-tests: New test module.
18334         * tests/test-fclose.c: New file.
18335         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18336
18337         fclose: reduced dependencies
18338         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18339         simpler lseek.
18340         * lib/fclose.c (rpl_fclose): Likewise.
18341         Reported by Simon Josefsson.
18342
18343         exit: drop remaining clients
18344         * modules/argmatch (Depends-on): Replace exit with stdlib.
18345         * modules/copy-file (Depends-on): Likewise.
18346         * modules/execute (Depends-on): Likewise.
18347         * modules/exitfail (Depends-on): Likewise.
18348         * modules/obstack (Depends-on): Likewise.
18349         * modules/pagealign_alloc (Depends-on): Likewise.
18350         * modules/pipe-filter-gi (Depends-on): Likewise.
18351         * modules/pipe-filter-ii (Depends-on): Likewise.
18352         * modules/savewd (Depends-on): Likewise.
18353         * modules/spawn-pipe (Depends-on): Likewise.
18354         * modules/wait-process (Depends-on): Likewise.
18355         * modules/xsetenv (Depends-on): Likewise.
18356         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18357         * modules/git-merge-changelog (Depends-on): Likewise.
18358         * modules/long-options (Depends-on): Likewise.
18359         * modules/pt_chown (Depends-on): Likewise.
18360         * modules/sysexits (Depends-on): Likewise.
18361
18362         freading: relax license from LGPLv3+ to LGPLv2+
18363         * modules/freading (License): Relax LGPL version.
18364
18365 2011-05-02  Bruno Haible  <bruno@clisp.org>
18366
18367         fchdir: Remove unused dependencies.
18368         * modules/fchdir (Depends-on): Remove include_next.
18369
18370 2011-05-02  Bruno Haible  <bruno@clisp.org>
18371
18372         gnulib-tool: Refactor.
18373         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18374         from func_emit_autoconf_snippets.
18375         (func_emit_autoconf_snippets): Use it.
18376
18377 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18378
18379         * NEWS: Document removal of 'exit'.
18380         * modules/exit: Remove file.
18381
18382 2011-05-01  Bruno Haible  <bruno@clisp.org>
18383
18384         Update DEPENDENCIES.
18385         * DEPENDENCIES (gettext): Recommend the newest release.
18386         Reported by Simon Josefsson.
18387
18388 2011-05-01  Bruno Haible  <bruno@clisp.org>
18389
18390         gnulib-tool: Reduce code duplication.
18391         * gnulib-tool (func_emit_autoconf_snippets): New function.
18392         (func_import, func_create_testdir): Use it.
18393
18394 2011-04-30  Eric Blake  <eblake@redhat.com>
18395
18396         fclose: don't fail on non-seekable input stream
18397         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18398         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18399         since fflush is allowed to fail in that case.
18400
18401 2011-04-30  Bruno Haible  <bruno@clisp.org>
18402
18403         dup3: cleanup
18404         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18405
18406 2011-04-30  Bruno Haible  <bruno@clisp.org>
18407
18408         netdb: Make it work in C++ mode.
18409         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18410         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18411         module.
18412         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18413         gl_MODULE_INDICATOR_FOR_TESTS.
18414         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18415         * modules/netdb-c++-tests: New file.
18416         * tests/test-netdb-c++.cc: New file.
18417
18418 2011-04-30  Bruno Haible  <bruno@clisp.org>
18419
18420         New modules 'vfscanf', 'vscanf'.
18421         * modules/vfscanf: New file.
18422         * modules/vscanf: New file.
18423         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18424         here.
18425         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18426         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18427
18428 2011-04-30  Bruno Haible  <bruno@clisp.org>
18429
18430         passfd: Add comments.
18431         * lib/passfd.c: Add comments about platforms.
18432
18433 2011-04-30  Bruno Haible  <bruno@clisp.org>
18434
18435         sys_uio: Make <sys/uio.h> self-contained.
18436         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18437         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18438
18439 2011-04-30  Bruno Haible  <bruno@clisp.org>
18440
18441         sys_socket: Ensure 'struct iovec' definition.
18442         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18443         <sys/socket.h>.
18444         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18445
18446 2011-04-30  Bruno Haible  <bruno@clisp.org>
18447
18448         sys_uio: Protect definition of 'struct iovec'.
18449         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18450         it as a C struct.
18451
18452 2011-04-30  Bruno Haible  <bruno@clisp.org>
18453
18454         manywarnings: fix indentation
18455         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18456
18457 2011-04-30  Pádraig Brady <P@draigBrady.com>
18458
18459         manywarnings: add -Wno-missing-field-initializers if needed.
18460         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18461         option if it's needed to allow initialization with { 0, }
18462
18463 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18464
18465         announce-gen: cosmetic improvement
18466         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18467
18468 2011-04-29  Jim Meyering  <meyering@redhat.com>
18469
18470         vc-list-files: indent with spaces, not TABs
18471         * build-aux/vc-list-files: Convert leading TABs to spaces,
18472         to match the style of most other files in gnulib.
18473
18474         announce-gen: indent with spaces, not TABs
18475         * build-aux/announce-gen: Convert all TABs to spaces, to match
18476         the style of most other files in gnulib.
18477
18478 2011-04-29  Eric Blake  <eblake@redhat.com>
18479
18480         quotearg: avoid uninitialized variable use
18481         * lib/quotearg.c (quoting_options_from_style): Initialize
18482         remaining fields, and ensure that custom styles are only used via
18483         quoting_options rather than quoting_style.
18484
18485 2011-04-29  Jim Meyering  <meyering@redhat.com>
18486
18487         maint.mk: remove unused VC-tag variable
18488         * top/maint.mk (VC-tag): Remove unused variable.
18489
18490 2011-04-29  Bruno Haible  <bruno@clisp.org>
18491
18492         netdb: fix gai_strerror replacements
18493         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18494         * modules/netdb: Substitute it.
18495
18496 2011-04-29  Jim Meyering  <meyering@redhat.com>
18497
18498         test-getcwd.c: avoid new set-but-not-used warning
18499         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18500         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18501         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18502         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18503
18504         test-hash.c: avoid a new shadowing warning
18505         * tests/test-hash.c (main): Don't shadow "dup".
18506
18507 2011-04-28  Eric Blake  <eblake@redhat.com>
18508
18509         getaddrinfo: fix gai_strerror signature
18510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18511         and work around mingw with UNICODE defined.
18512         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18513         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18514         * modules/netdb (Makefile.am): Substitute it.
18515         * lib/netdb.in.h (gai_strerror): Declare replacement.
18516         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18517         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18518         the fix.
18519
18520         getsockopt: avoid compiler warning
18521         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18522         Reported by Matthias Bolte.
18523
18524         tests: drop unused link dependency
18525         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18526         * modules/dirent-safer-tests (Makefile.am): Likewise.
18527         * modules/fdopendir-tests (Makefile.am): Likewise.
18528         * modules/mkfifoat-tests (Makefile.am): Likewise.
18529         * modules/openat-safer-tests (Makefile.am): Likewise.
18530         * modules/openat-tests (Makefile.am): Likewise.
18531         * modules/readlinkat-tests (Makefile.am): Likewise.
18532         * modules/symlinkat-tests (Makefile.am): Likewise.
18533         * modules/linkat-tests (Makefile.am): Likewise.
18534         (Depends-on): Switch to filenamecat-lgpl.
18535         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18536         LIBINTL.
18537         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18538         * tests/test-linkat.c (main): Don't require xalloc.
18539
18540         hash, mgetgroups: drop xalloc dependency
18541         * lib/hash.c (includes): Adjust includes.
18542         * lib/mgetgroups.c (includes): Likewise.
18543         (xgetgroups): Move...
18544         * lib/xgetgroups.c: ...to new file.
18545         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18546         * modules/xgetgroups: New file, split from...
18547         * modules/mgetgroups: ...here.
18548         (Depends-on): Add xalloc-oversized.
18549         * modules/hash (Depends-on): Likewise.
18550         * modules/hash-tests (Depends-on): Drop xalloc.
18551         (test_hash_LDADD): Drop unused library.
18552         * tests/test-hash.c (main): Break xalloc dependency.
18553         (includes): Drop unused include.
18554
18555         xalloc-oversized: new module
18556         * modules/xalloc-oversized: New module.
18557         * modules/xalloc (Depends-on): Add it.
18558         * lib/xalloc.h (xalloc_oversized): Move...
18559         * lib/xalloc-oversized.h: ...into new file.
18560
18561         utimecmp: drop dependency on xmalloc
18562         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18563         due to memory pressure.
18564         * modules/utimecmp (Depends-on): Drop xalloc.
18565
18566 2011-04-27  Eric Blake  <eblake@redhat.com>
18567
18568         getcwd: fix mingw bugs
18569         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18570         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18571         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18572
18573 2011-04-27  Bruno Haible  <bruno@clisp.org>
18574
18575         mkstemps: Ensure declaration on MacOS X 10.5.
18576         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18577         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18578         MacOS X.
18579
18580 2011-04-27  Bruno Haible  <bruno@clisp.org>
18581
18582         mkstemp: More documentation.
18583         * doc/posix-functions/mkstemp.texi: Document header file problem on
18584         MacOS X.
18585
18586 2011-04-27  Bruno Haible  <bruno@clisp.org>
18587
18588         mkstemp: Tweak configure message when cross-compiling.
18589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18590         result as a guess.
18591
18592 2011-04-27  Bruno Haible  <bruno@clisp.org>
18593
18594         clean-temp: Clarify what it does.
18595         * lib/clean-temp.h: Add more comments.
18596         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18597         module.
18598         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18599         * doc/glibc-functions/mkstemps.texi: Likewise.
18600         * doc/glibc-functions/mkostemps.texi: Likewise.
18601
18602 2011-04-27  Eric Blake  <eblake@redhat.com>
18603
18604         fchdir: avoid extra chdir and fix test
18605         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18606         getcwd-lgpl.
18607         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18608         have to be canonical.
18609         (canonicalize_file_name): Drop unused macro.
18610         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18611
18612         filenamecat-lgpl: fix licence
18613         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18614         when it was first created.
18615
18616         linkat, renameat: add missing dependency
18617         * modules/linkat (Depends-on): Require getcwd-lgpl.
18618         * modules/renameat (Depends-on): Likewise.
18619
18620         tests: reduce dependencies
18621         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18622         * tests/test-renameat.c (main): Likewise.
18623         * modules/linkat-tests (Depends-on): Relax dependency.
18624         * modules/renameat-tests (Depends-on): Likewise.
18625         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18626         dependency explicit.
18627
18628         save-cwd: reduce default dependency
18629         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18630         * lib/save-cwd.c: Update comments.
18631         * NEWS: Document the semantic change.
18632
18633         getcwd: enhance tests
18634         * tests/test-getcwd-lgpl.c: New file, taken from...
18635         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18636         repeat long path stress tests from m4 probe.
18637         * modules/getcwd-lgpl-tests: New module.
18638         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18639         * m4/getcwd-abort-bug.m4: Update comment.
18640         * m4/getcwd-path-max.m4: Likewise.
18641
18642         getcwd-lgpl: new module
18643         * modules/getcwd-lgpl: New module.
18644         * lib/getcwd-lgpl.c: New file.
18645         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18646         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18647         * modules/getcwd (configure.ac): Set C witness.
18648         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18649
18650         getcwd: tweak comments
18651         * m4/getcwd-abort-bug.m4: Fix comments.
18652         * m4/getcwd-path-max.m4: Likewise.
18653         * m4/getcwd.m4: Likewise.
18654
18655 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18656         and Eric Blake  <eblake@redhat.com>
18657
18658         mkstemp: replace if system version uses wrong permissions
18659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18660         read/write mode bits set in file created by mkstemp.
18661         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18662
18663 2011-04-27  Eric Blake  <eblake@redhat.com>
18664
18665         passfd: avoid compiler warning
18666         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18667         Reported by Laine Stump.
18668
18669 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18670
18671         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18672         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18673
18674 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18675         and Eric Blake  <eblake@redhat.com>
18676
18677         mkstemp: mention clean-temp module
18678         * lib/mkstemp.c: Add comment.
18679         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18680
18681 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18682
18683         inttypes: also provide default values for 32-bit tests
18684         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18685         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18686
18687 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18688
18689         strtoumax: remove dependency on strtoimax
18690         This is like the strtoull change of yesterday.
18691         * modules/strtoumax (Files): Add lib/strtoimax.c.
18692         (Depends-on): Remove strtoimax and add verify.
18693
18694         inttypes-incomplete: new module
18695         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18696         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18697         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18698         of gl_INTTYPES_H.
18699         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18700         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18701         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18702         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18703         * modules/strtoumax, modules/xstrtol (Depends-on):
18704         Depend on inttypes-incomplete, not inttypes.
18705         * modules/inttypes-incomplete: New module, containing the contents
18706         of the old modules/inttypes module, except that the Files: section
18707         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18708         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18709         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18710         (Depends-on): Depend only on inttypes-incomplete.
18711         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18712
18713         inttypes: omit now-redundant strtoimax and strtoumax work
18714         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18715         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18716
18717         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18718         This supports apps that need pointers to strtoimax and strtoumax,
18719         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18720         nonexistent functions.  See
18721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18722         et seq.
18723         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18724         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18725         a macro.
18726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18727
18728 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18729
18730         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18731
18732 2011-04-25  Bruno Haible  <bruno@clisp.org>
18733
18734         strtol, strtoul: Mark modules as obsolete.
18735         * modules/strtol (Status, Notice): New sections.
18736         * modules/strtoul (Status, Notice): New sections.
18737
18738 2011-04-25  Bruno Haible  <bruno@clisp.org>
18739
18740         strtod: Remove check for strtod, unless supporting old platforms.
18741         * modules/strtod-obsolete: New file.
18742         * m4/strtod-obsolete.m4: New file.
18743         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18744         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18745         * modules/strtod (Depends-on): Add strtod-obsolete.
18746         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18747
18748 2011-04-25  Bruno Haible  <bruno@clisp.org>
18749
18750         strcase: Make module obsolete.
18751         * modules/strcase (Status, Notice): New sections.
18752
18753 2011-04-25  Bruno Haible  <bruno@clisp.org>
18754
18755         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18756         * modules/dup2-obsolete: New file.
18757         * m4/dup2-obsolete.m4: New file.
18758         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18759         gl_FUNC_DUP2_OBSOLETE is not also defined.
18760         * modules/dup2 (Depends-on): Add dup2-obsolete.
18761         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18762
18763 2011-04-25  Bruno Haible  <bruno@clisp.org>
18764
18765         strnlen: Avoid memchr related link error on old obsolete platforms.
18766         * modules/memchr-obsolete: New file.
18767         * m4/memchr-obsolete.m4: New file.
18768         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18769         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18770         * modules/memchr (Depends-on): Add memchr-obsolete.
18771         * modules/strnlen (Depends-on): Likewise.
18772         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18773
18774 2011-04-25  Jim Meyering  <meyering@redhat.com>
18775
18776         maint.mk: makefile_at_at_check extend and clean up
18777         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18778         in addition to */Makefile.am.
18779         Exempt legitimate uses of @VAR@ notation, e.g.,
18780         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18781         Remove obsolete coreutils-specific comment.
18782         Prompted by discussion here:
18783         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18784
18785 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18786
18787         strtoul: remove dependency on strtol
18788         This is so that 'configure' need not check for strtol merely because
18789         the application needs strtoul.
18790         * modules/strtoul (Files): Add lib/strtol.c.
18791         (Depends-on): Remove strtol.
18792
18793         strtoull: remove dependency on strtoul
18794         This is like the strtoll change.
18795         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18796         (Depends-on): Remove strtoul.
18797
18798         strtoll: remove dependency on strtol
18799         This is so that 'configure' need not check for strtol merely because
18800         the application needs strtoll.
18801         * modules/strtoll (Files): Add lib/strtol.c.
18802         (Depends-on): Remove strtol.
18803
18804 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18805
18806         inttypes: Move some configure check to module 'imaxdiv'.
18807         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18808         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18809         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18810
18811 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18812
18813         inttypes: Move some configure check to module 'imaxabs'.
18814         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18815         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18816         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18817
18818 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18819
18820         inttypes: Remove configure tests that are not needed since 2009-12-31.
18821         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18822         gl_cv_header_working_inttypes_h.
18823
18824 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         * modules/strnlen (Depends-on): Remove memchr.
18827         The strnlen implementation doesn't need the memchr module's fixes; see
18828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18829
18830         strtol: remove dependency on wchar
18831         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18832         * modules/strtol (Depends-on): Remove wchar.
18833
18834 2011-04-21  Eric Blake  <eblake@redhat.com>
18835
18836         passfd: fix test regression on Linux
18837         * modules/passfd-tests (configure.ac): Correct socketpair check.
18838
18839         passfd: speed up configure and drop unused code
18840         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18841         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18842         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18843         Instead of probing at configure for unix_scm_rights_bsd44_way,
18844         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18845         check to a struct member probe.
18846         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18847         (sendfd, recvfd): Update preprocessor checks.
18848         * modules/passfd (Files): Reflect rename, and drop unused file.
18849         (Depends-on): Drop unused dependency.
18850
18851         passfd: allow compilation on mingw
18852         * modules/sys_socket (Depends-on): Add sys_uio.
18853         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18854         iovec and a minimal struct msghdr.
18855         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18856         * tests/test-sys_socket.c (main): Enhance test.
18857         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18858         guaranteed to provide what we need.
18859         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18860         * modules/passfd-tests (Depends-on): Add sys_wait.
18861         * tests/test-passfd.c (main): Skip test on mingw, for now.
18862         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18863         partial 'struct msghdr' implementation.
18864
18865         sys_uio: new module
18866         * modules/sys_uio: New module.
18867         * modules/sys_uio-tests: Likewise.
18868         * lib/sys_uio.in.h: New file.
18869         * m4/sys_uio_h.m4: Likewise.
18870         * tests/test-sys_uio.c: Likewise.
18871         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18872         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18873
18874 2011-04-20  Jim Meyering  <meyering@redhat.com>
18875
18876         useless-if-before-free: avoid false-positive
18877         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18878         disjunct so that it too requires a terminating ";".  Without that,
18879         this script would identify as useless one statement from gcc that
18880         was not:
18881           if (aligned_ptr)
18882             free (((void **) aligned_ptr) [-1]);
18883
18884 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18885
18886         doc: update users.txt.
18887         * users.txt: Add barcode.
18888
18889 2011-04-19  Bruno Haible  <bruno@clisp.org>
18890
18891         ioctl: Remove link dependency on native Windows.
18892         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18893         (gl_close_fn, gl_ioctl_fn): New types.
18894         (struct fd_hook): Renamed from struct close_hook. Change type of
18895         private_close_fn field. Add private_ioctl_fn field.
18896         (close_hook_fn): Add parameter for primary close method.
18897         (execute_close_hooks, execute_all_close_hooks): Likewise.
18898         (ioctl_hook_fn): New type.
18899         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18900         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18901         argument.
18902         (unregister_fd_hook): Renamed from unregister_close_hook.
18903         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18904         Don't include <unistd.h>.
18905         (close): Remove undef.
18906         (anchor): Update.
18907         (execute_close_hooks): Add argument for primary close method.
18908         (execute_all_close_hooks): Likewise.
18909         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18910         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18911         argument. Allow each argument to be NULL.
18912         (unregister_fd_hook): Renamed from unregister_close_hook.
18913         * lib/close.c (rpl_close): Pass 'close' function pointer to
18914         execute_all_close_hooks.
18915         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18916         (primary_ioctl): New function.
18917         (ioctl): Don't call ioctlsocket here. Instead, call
18918         execute_all_ioctl_hooks.
18919         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18920         close method.
18921         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18922         (fd_sockets_hook): Renamed from close_sockets_hook.
18923         (gl_sockets_startup, gl_sockets_cleanup): Update.
18924         * modules/fd-hook: Renamed from modules/close-hook. Update.
18925         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18926         * modules/sockets (Depends-on): Likewise.
18927         * modules/ioctl (Depends-on): Add fd-hook.
18928         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18929         GNULIB_SOCKET.
18930
18931 2011-04-19  Bruno Haible  <bruno@clisp.org>
18932
18933         Move the support of O_NONBLOCK in open() to the 'open' module.
18934         * modules/nonblocking (Depends-on): Remove 'open'.
18935         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18936         gl_cv_have_open_O_NONBLOCK.
18937         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18938         O_NONBLOCK support.
18939         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18940
18941 2011-04-17  Bruno Haible  <bruno@clisp.org>
18942
18943         pipe2: Simplify code.
18944         * lib/pipe2.c (pipe2): Reduce code duplication.
18945
18946 2011-04-17  Bruno Haible  <bruno@clisp.org>
18947
18948         nonblocking: Add comment.
18949         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18950
18951 2011-04-17  Bruno Haible  <bruno@clisp.org>
18952
18953         nonblocking: Add tests for sockets.
18954         * tests/test-nonblocking-socket.sh: New file.
18955         * tests/test-nonblocking-socket-main.c: New file.
18956         * tests/test-nonblocking-socket-child.c: New file.
18957         * tests/test-nonblocking-socket.h: New file.
18958         * tests/socket-server.h: New file.
18959         * tests/socket-client.h: New file.
18960         * modules/nonblocking-socket-tests: New file.
18961         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18962
18963 2011-04-17  Bruno Haible  <bruno@clisp.org>
18964
18965         nonblocking: Add tests for pipes.
18966         * tests/test-nonblocking-pipe.sh: New file.
18967         * tests/test-nonblocking-pipe-main.c: New file.
18968         * tests/test-nonblocking-pipe-child.c: New file.
18969         * tests/test-nonblocking-pipe.h: New file.
18970         * tests/test-nonblocking-writer.h: New file.
18971         * tests/test-nonblocking-reader.h: New file.
18972         * tests/test-nonblocking-misc.h: New file.
18973         * modules/nonblocking-pipe-tests: New file.
18974         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18975
18976 2011-04-16  Bruno Haible  <bruno@clisp.org>
18977
18978         gettext: Clarify the needed programmer actions.
18979         * modules/gettext (Notice): New field.
18980         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18981
18982 2011-04-16  Bruno Haible  <bruno@clisp.org>
18983
18984         strchrnul: Tweak last commit.
18985         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18986         bug.
18987         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18988         as in _GL_FUNCDECL_SYS.
18989         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18990         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18991
18992 2011-04-15  Eric Blake  <eblake@redhat.com>
18993
18994         strchrnul: work around cygwin bug
18995         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18996         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18998         * modules/string (Makefile.am): Substitute it.
18999         * lib/string.in.h (strchrnul): Use it.
19000
19001 2011-04-15  Bruno Haible  <bruno@clisp.org>
19002
19003         Don't require lib/stdio-write.c when only module 'stdio' is used.
19004         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19005         invocation.
19006         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19007
19008 2011-04-14  Bruno Haible  <bruno@clisp.org>
19009
19010         Support non-blocking pipe I/O in read() on native Windows.
19011         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19012         (read): New declaration.
19013         * lib/read.c: New file.
19014         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19015         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19016         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19017         vscanf): New declarations.
19018         * lib/stdio-read.c: New file.
19019         * m4/read.m4: New file.
19020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19021         REPLACE_READ.
19022         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19023         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19024         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19025         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19026         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19027         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19028         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19029         * modules/read: New file.
19030         * modules/nonblocking (Files): Add lib/stdio-read.c.
19031         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19032         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19033         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19034         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19035         * modules/pread (Depends-on): Add read.
19036         * modules/safe-read (Depends-on): Likewise.
19037         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19038         gets, scanf, vfscanf, vscanf): Verify signatures.
19039         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19040         problem with non-blocking pipes.
19041         * doc/posix-functions/fgetc.texi: Likewise.
19042         * doc/posix-functions/fgets.texi: Likewise.
19043         * doc/posix-functions/fread.texi: Likewise.
19044         * doc/posix-functions/fscanf.texi: Likewise.
19045         * doc/posix-functions/getc.texi: Likewise.
19046         * doc/posix-functions/getchar.texi: Likewise.
19047         * doc/posix-functions/gets.texi: Likewise.
19048         * doc/posix-functions/scanf.texi: Likewise.
19049         * doc/posix-functions/vfscanf.texi: Likewise.
19050         * doc/posix-functions/vscanf.texi: Likewise.
19051
19052 2011-04-14  Bruno Haible  <bruno@clisp.org>
19053
19054         Support non-blocking pipe I/O in write() on native Windows.
19055         * lib/write.c (rpl_write): Split a write request that failed merely
19056         because the byte count was larger than the pipe buffer's size.
19057         * doc/posix-functions/write.texi: Mention the problem with large byte
19058         counts.
19059
19060 2011-04-14  Bruno Haible  <bruno@clisp.org>
19061
19062         wchar: Ensure that wchar_t gets defined on uClibc.
19063         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19064         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19065
19066 2011-04-13  Bruno Haible  <bruno@clisp.org>
19067
19068         safe-write, full-read: Avoid unnecessary compilation units.
19069         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19070         (Depends-on): Remove safe-read. Add ssize_t.
19071         * modules/full-read (Files): Add lib/full-write.c.
19072         (Depends-on): Add full-write.
19073
19074 2011-04-13  Bruno Haible  <bruno@clisp.org>
19075
19076         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19077         * modules/pwrite (Depends-on): Add 'write'.
19078
19079 2011-04-13  Bruno Haible  <bruno@clisp.org>
19080
19081         Support non-blocking pipe I/O in write() on native Windows.
19082         * lib/unistd.in.h (write): Enable replacement also if
19083         GNULIB_UNISTD_H_NONBLOCKING is 1.
19084         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19085         (rpl_write): When failing to write on a non-blocking pipe, change
19086         errno from ENOSPC to EAGAIN.
19087         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19088         putchar, puts, vfprintf, vprintf): Enable replacement also if
19089         GNULIB_STDIO_H_NONBLOCKING is 1.
19090         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19091         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19092         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19093         CALL_WITH_SIGPIPE_EMULATION.
19094         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19095         * m4/nonblocking.m4: New file.
19096         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19097         for non-blocking I/O support.
19098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19099         GNULIB_UNISTD_H_NONBLOCKING.
19100         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19101         required for non-blocking I/O support.
19102         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19103         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19104         lib/stdio-write.c, m4/asm-underscore.m4.
19105         (Depends-on): Add stdio, unistd.
19106         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19107         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19108         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19109         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19110         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19111         problem with non-blocking pipes.
19112         * doc/posix-functions/fputc.texi: Likewise.
19113         * doc/posix-functions/fputs.texi: Likewise.
19114         * doc/posix-functions/fwrite.texi: Likewise.
19115         * doc/posix-functions/printf.texi: Likewise.
19116         * doc/posix-functions/putc.texi: Likewise.
19117         * doc/posix-functions/putchar.texi: Likewise.
19118         * doc/posix-functions/puts.texi: Likewise.
19119         * doc/posix-functions/vfprintf.texi: Likewise.
19120         * doc/posix-functions/vprintf.texi: Likewise.
19121         * doc/posix-functions/write.texi: Likewise.
19122
19123 2011-04-10  Jim Meyering  <meyering@redhat.com>
19124
19125         maint.mk: prohibit doubled words
19126         Detect them also when they're separated by a newline.
19127         There are 3 ways to customize it:
19128           - disable the test on a per file basis, as usual with rules using
19129             $(VC_LIST_EXCEPT)
19130           - replace the default doubled-word-selecting regexp (affects all files)
19131           - ignore a particular file-vs-doubled-word match
19132         I nearly used that last one to ignore the "is is" match in
19133         coreutils' NEWS file, since the text was "ls -is is ..."
19134         To do that, I would have added this line to cfg.mk:
19135           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19136         but it would have ignored any "is is" match in NEWS.
19137         Low probability, but still...
19138         Instead, I changed the text, slightly:
19139           -  ls -is is now consistent with ls -lis in ignoring values returned
19140           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19141         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19142         (prohibit_doubled_word_): Define.
19143         (sc_prohibit_doubled_word): New rule.
19144         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19145
19146 2011-04-10  Jim Meyering  <meyering@redhat.com>
19147
19148         maint: fix doubled-word typo in comment
19149         * m4/gethostname.m4: s/is is/it is/
19150         * m4/getdomainname.m4: Likewise.
19151
19152 2011-04-10  Jim Meyering  <meyering@redhat.com>
19153
19154         maint: remove doubled word: s/it it/it/
19155         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19156
19157 2011-04-10  Jim Meyering  <meyering@redhat.com>
19158
19159         maint.mk: remove useless semicolon and backslash
19160         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19161         semicolon and backslash.
19162
19163 2011-04-10  Bruno Haible  <bruno@clisp.org>
19164
19165         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19166         * modules/stdint-tests (Depends-on): Add wchar.
19167
19168 2011-04-10  Jim Meyering  <meyering@redhat.com>
19169
19170         maint: remove doubled words in comments, e.g., s/a a/a/
19171         * lib/strptime.c (day_of_the_week): s/the the/the/
19172         * tests/test-chown.h (test_chown): s/a a/a/
19173
19174         test-chown.h: correct a cast
19175         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19176         when the destination is a stat.st_gid.
19177
19178 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19179
19180         getaddrinfo: Fix test for sa_len member.
19181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19182         include <sys/types.h> before <sys/socket.h>.
19183
19184 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19185
19186         maint: change "can not" to "cannot"
19187         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19188         boundaries.
19189
19190 2011-04-09  Jim Meyering  <meyering@redhat.com>
19191
19192         maint: change "a a" to "a"
19193         * tests/test-lchown.h (test_lchown): s/a a/a/
19194
19195         maint.mk: prohibit \<the the\>
19196         * top/maint.mk (sc_prohibit_the_the): New rule.
19197
19198         maint: fix "the the" in comment
19199         * lib/count-one-bits.h: s/the the/the/
19200
19201         maint: change "can not" to "cannot"
19202         But do not change the occurrences in maintain.texi or in
19203         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19204         * doc/gnulib-tool.texi: s/can not/cannot/
19205         * doc/posix-functions/accept.texi (accept): Likewise.
19206         * doc/posix-functions/socket.texi (socket): Likewise.
19207         * lib/mbrtowc.c: Likewise.
19208
19209         maint.mk: prohibit use of "can not"
19210         * top/maint.mk (sc_prohibit_can_not): New rule.
19211         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19212
19213 2011-04-09  Bruno Haible  <bruno@clisp.org>
19214
19215         careadlinkat: Guard against misuse of careadlinkatcwd.
19216         * lib/careadlinkat.c: Include <stdlib.h>.
19217         (careadlinkatcwd): Check that the fd argument is as expected.
19218
19219 2011-04-09  Bruno Haible  <bruno@clisp.org>
19220
19221         careadlinkat: Use common coding style.
19222         * lib/careadlinkat.c: Move gnulib includes after system includes.
19223
19224 2011-04-09  Bruno Haible  <bruno@clisp.org>
19225
19226         careadlinkat: Clarify specification.
19227         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19228         (careadlinkatcwd): Add comment.
19229         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19230
19231 2011-04-09  Bruno Haible  <bruno@clisp.org>
19232
19233         areadlinkat: Avoid link error on many platforms.
19234         * modules/areadlinkat (Depends-on): Add areadlink.
19235
19236 2011-04-09  Bruno Haible  <bruno@clisp.org>
19237
19238         allocator, careadlinkat: Fix double-inclusion guard.
19239         * lib/allocator.h: Fix double-inclusion guard.
19240         * lib/careadlinkat.h: Likewise.
19241
19242 2011-04-09  Bruno Haible  <bruno@clisp.org>
19243
19244         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19245         * lib/relocwrapper.c: Update dependencies hierarchy.
19246         * build-aux/install-reloc: Update list of files to be compiled.
19247         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19248         lib/allocator.[hc].
19249
19250 2011-04-08  Eric Blake  <eblake@redhat.com>
19251
19252         strftime: silence gnulib-tool warning
19253         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19254
19255 2011-04-08  Bruno Haible  <bruno@clisp.org>
19256
19257         verify: Fix syntax error with GCC 4.6 in C++ mode.
19258         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19259         (HAVE_STATIC_ASSERT): New macro.
19260         (verify_true, verify): Use 'static_assert' if it is supported and
19261         '_Static_assert' is not supported.
19262
19263 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19264
19265         allocator: New module.
19266         * modules/allocator, lib/allocator.c: New files.
19267         * lib/allocator.h (stdlib_allocator): New decl.
19268         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19269         Remove.  Do not include <stdlib.h>.
19270         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19271         * modules/careadlinkat (Files): Remove lib/allocator.h.
19272         (Depends-on): Add allocator.
19273
19274         stdlib: let modules use system malloc, realloc
19275         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19276         if !_GL_USE_STDLIB_ALLOC.
19277         (malloc, realloc): Limit this change to a smaller scope.
19278
19279         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19280         (malloc, realloc): Don't #undef; no longer needed.
19281         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19282         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19283         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19284         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19285         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19286         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19287         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19288         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19289
19290         careadlinkat: rename members to avoid problem
19291         * lib/allocator.h (struct allocator): Rename members from
19292         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19293         and realloc are #define'd.  Reported by Eric Blake in
19294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19295         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19296
19297 2011-04-08  Eric Blake  <eblake@redhat.com>
19298
19299         nonblocking: reduce dependency
19300         * tests/test-nonblocking.c: Only test sockets when in use.
19301         * modules/nonblocking-tests (Depends-on): Drop socket.
19302         (Makefile.am): Link even if sockets are not present.
19303         * modules/pipe2-tests (Makefile.am): Likewise.
19304         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19305
19306         pipe2: fix O_NONBLOCK support on mingw
19307         * modules/pipe2 (Depends-on): Add nonblocking.
19308         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19309         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19310         * tests/test-nonblocking.c (main): Likewise.
19311         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19312
19313         fcntl-h: fix O_ACCMODE on cygwin
19314         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19315         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19316
19317         pipe-filter: drop O_NONBLOCK workarounds
19318         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19319         * modules/pipe-filter-ii (Depends-on): Likewise.
19320         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19321
19322         nonblocking: provide O_NONBLOCK for mingw
19323         * modules/nonblocking (Depends-on): Add open.
19324         (configure.ac): Set new witness macro.
19325         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19326         * modules/fcntl-h (Makefile.am): Substitute it.
19327         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19328         nonblocking module is in use.
19329         * lib/nonblocking.c: Adjust portability test.
19330         * lib/open.c (open): Don't let native open see gnulib flag.
19331         * tests/test-fcntl-h.c (main): Enhance test.
19332         * tests/test-open.h (test_open): Likewise.
19333         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19334
19335         careadlinkat: fix compilation error on mingw
19336         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19337         within struct allocator.
19338
19339 2011-04-06  Eric Blake  <eblake@redhat.com>
19340
19341         binary-io: relicense under LGPLv2+
19342         * modules/binary-io (License): Relax to LGPLv2+.
19343         Requested for libvirt, and required by pipe2.
19344
19345 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19346
19347         verify: use _Static_assert if available
19348         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19349         (verify_true, verify): Use it if available.  This generates better
19350         diagnostics with GCC 4.6.0 and later.
19351
19352 2011-04-05  Bruno Haible  <bruno@clisp.org>
19353
19354         Remove leftover generated .h files after config.status changed.
19355
19356         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19357         GL_GENERATE_ALLOCA_H.
19358         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19359         GL_GENERATE_ALLOCA_H evaluates to false.
19360
19361         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19362         GL_GENERATE_ARGZ_H.
19363         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19364         evaluates to false.
19365
19366         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19367         GL_GENERATE_BYTESWAP_H.
19368         * modules/byteswap (Makefile.am): Remove byteswap.h if
19369         GL_GENERATE_BYTESWAP_H evaluates to false.
19370
19371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19372         GL_GENERATE_ERRNO_H.
19373         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19374         evaluates to false.
19375
19376         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19377         GL_GENERATE_FLOAT_H.
19378         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19379         evaluates to false.
19380
19381         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19382         GL_GENERATE_FNMATCH_H.
19383         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19384         GL_GENERATE_FNMATCH_H evaluates to false.
19385
19386         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19387         GL_GENERATE_GLOB_H.
19388         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19389         evaluates to false.
19390
19391         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19392         automake conditional GL_GENERATE_ICONV_H.
19393         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19394         evaluates to false.
19395
19396         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19397         GL_GENERATE_NETINET_IN_H.
19398         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19399         GL_GENERATE_NETINET_IN_H evaluates to false.
19400
19401         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19402         conditional GL_GENERATE_PTHREAD_H.
19403         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19404         * modules/pthread (Makefile.am): Remove pthread.h if
19405         GL_GENERATE_PTHREAD_H evaluates to false.
19406
19407         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19408         GL_GENERATE_SCHED_H.
19409         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19410         evaluates to false.
19411
19412         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19413         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19414         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19415         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19416
19417         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19418         GL_GENERATE_STDARG_H.
19419         * modules/stdarg (Makefile.am): Remove stdarg.h if
19420         GL_GENERATE_STDARG_H evaluates to false.
19421
19422         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19423         GL_GENERATE_STDBOOL_H.
19424         * modules/stdbool (Makefile.am): Remove stdbool.h if
19425         GL_GENERATE_STDBOOL_H evaluates to false.
19426
19427         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19428         conditional GL_GENERATE_STDDEF_H.
19429         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19430         * modules/stddef (Makefile.am): Remove stddef.h if
19431         GL_GENERATE_STDDEF_H evaluates to false.
19432
19433         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19434         GL_GENERATE_STDINT_H.
19435         * modules/stdint (Makefile.am): Remove stdint.h if
19436         GL_GENERATE_STDINT_H evaluates to false.
19437
19438         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19439         GL_GENERATE_SYSEXITS_H.
19440         * modules/sysexits (Makefile.am): Remove sysexits.h if
19441         GL_GENERATE_SYSEXITS_H evaluates to false.
19442
19443         Reported by Karl Berry and Ralf Wildenhues.
19444
19445 2011-04-05  Bruno Haible  <bruno@clisp.org>
19446
19447         Ensure to rebuild generated .h files when config.status has changed.
19448         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19449         config.status.
19450         * modules/ctype (Makefile.am): Likewise.
19451         * modules/dirent (Makefile.am): Likewise.
19452         * modules/errno (Makefile.am): Likewise.
19453         * modules/fcntl-h (Makefile.am): Likewise.
19454         * modules/float (Makefile.am): Likewise.
19455         * modules/getopt-posix (Makefile.am): Likewise.
19456         * modules/glob (Makefile.am): Likewise.
19457         * modules/iconv-h (Makefile.am): Likewise.
19458         * modules/inttypes (Makefile.am): Likewise.
19459         * modules/langinfo (Makefile.am): Likewise.
19460         * modules/locale (Makefile.am): Likewise.
19461         * modules/math (Makefile.am): Likewise.
19462         * modules/netdb (Makefile.am): Likewise.
19463         * modules/netinet_in (Makefile.am): Likewise.
19464         * modules/poll-h (Makefile.am): Likewise.
19465         * modules/pthread (Makefile.am): Likewise.
19466         * modules/pty (Makefile.am): Likewise.
19467         * modules/sched (Makefile.am): Likewise.
19468         * modules/search (Makefile.am): Likewise.
19469         * modules/selinux-h (Makefile.am): Likewise.
19470         * modules/signal (Makefile.am): Likewise.
19471         * modules/spawn (Makefile.am): Likewise.
19472         * modules/stdarg (Makefile.am): Likewise.
19473         * modules/stdbool (Makefile.am): Likewise.
19474         * modules/stddef (Makefile.am): Likewise.
19475         * modules/stdint (Makefile.am): Likewise.
19476         * modules/stdio (Makefile.am): Likewise.
19477         * modules/stdlib (Makefile.am): Likewise.
19478         * modules/string (Makefile.am): Likewise.
19479         * modules/strings (Makefile.am): Likewise.
19480         * modules/sys_file (Makefile.am): Likewise.
19481         * modules/sys_ioctl (Makefile.am): Likewise.
19482         * modules/sys_select (Makefile.am): Likewise.
19483         * modules/sys_socket (Makefile.am): Likewise.
19484         * modules/sys_stat (Makefile.am): Likewise.
19485         * modules/sys_time (Makefile.am): Likewise.
19486         * modules/sys_times (Makefile.am): Likewise.
19487         * modules/sys_utsname (Makefile.am): Likewise.
19488         * modules/sys_wait (Makefile.am): Likewise.
19489         * modules/sysexits (Makefile.am): Likewise.
19490         * modules/termios (Makefile.am): Likewise.
19491         * modules/time (Makefile.am): Likewise.
19492         * modules/unistd (Makefile.am): Likewise.
19493         * modules/wchar (Makefile.am): Likewise.
19494         * modules/wctype-h (Makefile.am): Likewise.
19495         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19496
19497 2011-04-05  Bruno Haible  <bruno@clisp.org>
19498
19499         pipe2: Relicense under LGPLv2+.
19500         * modules/pipe2 (License): Change to LGPLv2+.
19501         Requested by Eric Blake, for libvirt.
19502
19503 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19504
19505         bootstrap: compute gnulib_extra_files after updating build_aux
19506         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19507         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19508
19509 2011-04-05  Eric Blake  <eblake@redhat.com>
19510
19511         bootstrap: preserve git whitelist item sorting
19512         * build-aux/bootstrap (sort_patterns): New function.
19513         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19514
19515 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19516
19517         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19518         sc_space_tab check.
19519
19520 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19521
19522         areadlink, areadlinkat: rewrite in terms of careadlinkat
19523         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19524         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19525         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19526         (malloc, realloc): Remove #undefs.
19527         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19528         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19529         readlink, ssize_t, stdint, unistd.
19530         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19531         areadlink, stdint.
19532
19533         careadlinkat: new module
19534         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19535         * modules/careadlinkat: New files, written by me with
19536         a review and feedback from Ben Pfaff in
19537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19538
19539 2011-04-01  Bruno Haible  <bruno@clisp.org>
19540
19541         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19542         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19543         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19544         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19545         Reported by Bruce Korb <bruce.korb@gmail.com>.
19546
19547 2011-04-01  Bruno Haible  <bruno@clisp.org>
19548
19549         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19550         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19551         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19552         * modules/wcpcpy (Depends-on): Add extensions.
19553         * modules/wcpncpy (Depends-on): Likewise.
19554         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19555         systems.
19556         * doc/posix-functions/wcpncpy.texi: Likewise.
19557         * doc/posix-functions/wcwidth.texi: Likewise.
19558
19559 2011-03-31  Eric Blake  <eblake@redhat.com>
19560
19561         nonblocking: fix mingw test failures
19562         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19563         non-blocking flag on regular file.
19564         (get_nonblocking_flag): Set errno on invalid fd.
19565         * tests/test-nonblocking.c (main): Avoid test failure on
19566         directories if fchdir is not active.
19567         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19568
19569 2011-03-31  Bruno Haible  <bruno@clisp.org>
19570
19571         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19572         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19573         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19574         Reported by Simon Josefsson <simon@josefsson.org>.
19575
19576 2011-03-31  Bruno Haible  <bruno@clisp.org>
19577         and Eric Blake  <eblake@redhat.com>
19578
19579         nonblocking: new module
19580         * modules/nonblocking: New module.
19581         * modules/nonblocking-tests: Likewise.
19582         * lib/nonblocking.h: New file.
19583         * lib/nonblocking.c: Likewise.
19584         * tests/test-nonblocking.c: New test.
19585         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19586
19587 2011-03-30  Bruno Haible  <bruno@clisp.org>
19588
19589         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19590         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19591         instead of 'printf' format for GCC >= 4.4.
19592         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19593         (fprintf, printf, vfprintf, vprintf): Declare with
19594         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19595         the system's vfprintf() function.
19596         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19597
19598 2011-03-30  Eric Blake  <eblake@redhat.com>
19599
19600         passfd: fix scoping bug
19601         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19602         before sendmsg/recvmsg.
19603
19604         passfd: standardize coding conventions
19605         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19606         can be learned at compile time.
19607         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19608         ifdefs.
19609         (sendfd, recvfd): Follow gnulib code conventions.
19610
19611         passfd: fix incorrect sendmsg arguments
19612         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19613         incorrect msg_controllen value.
19614         * modules/passfd-tests (Depends-on): Check for alarm.
19615         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19616         Reported by Bastien ROUCARIES.
19617
19618 2011-03-30  Bruno Haible  <bruno@clisp.org>
19619
19620         c-strcasestr: Relicense under LGPLv2+.
19621         * modules/c-strcasestr (License): Change to LGPLv2+.
19622         Requested by Eric Blake, for libvirt.
19623
19624 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19625
19626         * users.txt: Add libidn2.  Fix libtasn1 link.
19627
19628 2011-03-30  Jim Meyering  <meyering@redhat.com>
19629
19630         tests: readlink* ("",... fails with EINVAL on newer kernels
19631         readlink and readlinkat have typically failed with ENOENT for
19632         the invalid, empty file name,  "".  However, with the advent
19633         of linux-2.6.39, they fail with EINVAL.
19634         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19635         when operating on the empty file name.
19636         * tests/test-readlink.h (test_readlink): Likewise.
19637
19638 2011-03-29  Bruno Haible  <bruno@clisp.org>
19639
19640         Relicense some modules under LGPLv2+, for libidn2.
19641         * modules/array-mergesort (License): Change to LGPLv2+.
19642         * modules/c-strcaseeq (License): Likewise.
19643         * modules/striconveh (License): Likewise.
19644         * modules/striconveha (License): Likewise.
19645         * modules/uniconv/base (License): Likewise.
19646         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19647         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19648         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19649         * modules/unictype/base (License): Likewise.
19650         * modules/unictype/bidiclass-of (License): Likewise.
19651         * modules/unictype/category-M (License): Likewise.
19652         * modules/unictype/category-none (License): Likewise.
19653         * modules/unictype/category-of (License): Likewise.
19654         * modules/unictype/category-test (License): Likewise.
19655         * modules/unictype/category-test-withtable (License): Likewise.
19656         * modules/unictype/combining-class (License): Likewise.
19657         * modules/unictype/joiningtype-of (License): Likewise.
19658         * modules/unictype/scripts (License): Likewise.
19659         * modules/uninorm/base (License): Likewise.
19660         * modules/uninorm/canonical-decomposition (License): Likewise.
19661         * modules/uninorm/composition (License): Likewise.
19662         * modules/uninorm/decompose-internal (License): Likewise.
19663         * modules/uninorm/decomposition-table (License): Likewise.
19664         * modules/uninorm/nfc (License): Likewise.
19665         * modules/uninorm/nfd (License): Likewise.
19666         * modules/uninorm/u32-normalize (License): Likewise.
19667         * modules/unistr/base (License): Likewise.
19668         * modules/unistr/u32-cpy (License): Likewise.
19669         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19670         * modules/unistr/u32-to-u8 (License): Likewise.
19671         * modules/unistr/u32-uctomb (License): Likewise.
19672         * modules/unistr/u8-check (License): Likewise.
19673         * modules/unistr/u8-mblen (License): Likewise.
19674         * modules/unistr/u8-mbtouc (License): Likewise.
19675         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19676         * modules/unistr/u8-mbtoucr (License): Likewise.
19677         * modules/unistr/u8-prev (License): Likewise.
19678         * modules/unistr/u8-strlen (License): Likewise.
19679         * modules/unistr/u8-to-u32 (License): Likewise.
19680         * modules/unistr/u8-uctomb (License): Likewise.
19681         * modules/unitypes (License): Likewise.
19682         Requested by Simon Josefsson.
19683
19684 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19685
19686         lib-symbol-visibility: Add a notice.
19687         * modules/lib-symbol-visibility (Notice): New field.
19688
19689 2011-03-29  Bruno Haible  <bruno@clisp.org>
19690
19691         getaddrinfo: Doc fix.
19692         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19693         section "fixed in Gnulib".
19694
19695 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19696
19697         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19698         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19699
19700 2011-03-26  Bruno Haible  <bruno@clisp.org>
19701
19702         unictype/property-byname: Reduce the number of load-time relocations.
19703         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19704         (UC_PROPERTY_INDEX_*): New enumeration values.
19705         (uc_property_byname): Convert an index from the lookup table to an
19706         uc_property_t.
19707         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19708         values.
19709
19710 2011-03-26  Bruno Haible  <bruno@clisp.org>
19711
19712         unictype/property-byname: Allow omitted word separators and aliases.
19713         * lib/unictype/pr_byname.gperf: Add property names without word
19714         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19715         for 'space'.
19716
19717 2011-03-26  Bruno Haible  <bruno@clisp.org>
19718
19719         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19720         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19721         also hyphens to space.
19722         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19723         without spaces.
19724         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19725
19726 2011-03-26  Bruno Haible  <bruno@clisp.org>
19727
19728         unictype/joiningtype-byname: Recognize long names as well.
19729         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19730         a long name.
19731         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19732         unictype/joiningtype_byname.h.
19733         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19734         * lib/unictype/joiningtype_byname.gperf: New file.
19735         * modules/unictype/joiningtype-byname (Files): Add
19736         lib/unictype/joiningtype_byname.gperf.
19737         (Depends-on): Add gperf.
19738         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19739         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19740         long names.
19741
19742         Tests for module 'unictype/joiningtype-longname'.
19743         * modules/unictype/joiningtype-longname-tests: New file.
19744         * tests/unictype/test-joiningtype_longname.c: New file.
19745
19746         New module 'unictype/joiningtype-longname'.
19747         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19748         * lib/unictype/joiningtype_longname.c: New file.
19749         * modules/unictype/joiningtype-longname: New file.
19750         * modules/unictype/joiningtype-all (Depends-on): Add
19751         unictype/joiningtype-longname.
19752
19753 2011-03-26  Bruno Haible  <bruno@clisp.org>
19754
19755         unictype/bidiclass-byname: Recognize long names as well.
19756         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19757         name.
19758         * lib/unictype/bidi_byname.c: Include <string.h>,
19759         unictype/bidi_byname.h.
19760         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19761         * lib/unictype/bidi_byname.gperf: New file.
19762         * modules/unictype/bidiclass-byname (Files): Add
19763         lib/unictype/bidi_byname.gperf.
19764         (Depends-on): Add gperf.
19765         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19766         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19767         long names.
19768
19769         Tests for module 'unictype/bidiclass-longname'.
19770         * modules/unictype/bidiclass-longname-tests: New file.
19771         * tests/unictype/test-bidi_longname.c: New file.
19772
19773         New module 'unictype/bidiclass-longname'.
19774         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19775         * lib/unictype/bidi_longname.c: New file.
19776         * modules/unictype/bidiclass-longname: New file.
19777         * modules/unictype/bidiclass-all (Depends-on): Add
19778         unictype/bidiclass-longname.
19779
19780 2011-03-26  Bruno Haible  <bruno@clisp.org>
19781
19782         unictype/bidi*: Rename modules.
19783         * modules/unictype/bidiclass-all: Renamed from
19784         modules/unictype/bidicategory-all.
19785         * modules/unictype/bidiclass-name: Renamed from
19786         modules/unictype/bidiclass-name.
19787         (Description): Update.
19788         * modules/unictype/bidiclass-name-tests: Renamed from
19789         modules/unictype/bidicategory-name-tests.
19790         * modules/unictype/bidiclass-byname: Renamed from
19791         modules/unictype/bidicategory-byname.
19792         (Description): Update.
19793         * modules/unictype/bidiclass-byname-tests: Renamed from
19794         modules/unictype/bidicategory-byname-tests.
19795         * modules/unictype/bidiclass-of: Renamed from
19796         modules/unictype/bidicategory-of.
19797         (Description): Update.
19798         * modules/unictype/bidiclass-of-tests: Renamed from
19799         modules/unictype/bidicategory-of-tests.
19800         * modules/unictype/bidiclass-test: Renamed from
19801         modules/unictype/bidicategory-test.
19802         (Description): Update.
19803         * modules/unictype/bidiclass-test-tests: Renamed from
19804         modules/unictype/bidicategory-test-tests.
19805         * modules/unictype/bidicategory-all: New file, a simple redirection.
19806         * modules/unictype/bidicategory-name: Likewise.
19807         * modules/unictype/bidicategory-byname: Likewise.
19808         * modules/unictype/bidicategory-of: Likewise.
19809         * modules/unictype/bidicategory-test: Likewise.
19810         * modules/unictype/property-bidi-* (Dependencies): Update.
19811         * lib/unictype/bidi_*.c: Update comment.
19812
19813 2011-03-26  Bruno Haible  <bruno@clisp.org>
19814
19815         unictype/bidi*: Rename functions, part 2.
19816         * modules/unictype/bidicategory-name (configure.ac): Update required
19817         libunistring version.
19818         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19819
19820 2011-03-25  Bruno Haible  <bruno@clisp.org>
19821
19822         New module 'unictype/combining-class-all'.
19823         * modules/unictype/combining-class-all: New file.
19824
19825         Tests for module 'unictype/combining-class-byname'.
19826         * modules/unictype/combining-class-byname-tests: New file.
19827         * tests/unictype/test-combiningclass_byname.c: New file.
19828
19829         New module 'unictype/combining-class-byname'.
19830         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19831         * lib/unictype/combiningclass_byname.c: New file.
19832         * lib/unictype/combiningclass_byname.gperf: New file.
19833         * modules/unictype/combining-class-byname: New file.
19834
19835         Tests for module 'unictype/combining-class-longname'.
19836         * modules/unictype/combining-class-longname-tests: New file.
19837         * tests/unictype/test-combiningclass_longname.c: New file.
19838
19839         New module 'unictype/combining-class-longname'.
19840         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19841         * lib/unictype/combiningclass_longname.c: New file.
19842         * modules/unictype/combining-class-longname: New file.
19843
19844         Tests for module 'unictype/combining-class-name'.
19845         * modules/unictype/combining-class-name-tests: New file.
19846         * tests/unictype/test-combiningclass_name.c: New file.
19847
19848         New module 'unictype/combining-class-name'.
19849         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19850         * lib/unictype/combiningclass_name.c: New file.
19851         * modules/unictype/combining-class-name: New file.
19852
19853 2011-03-25  Bruno Haible  <bruno@clisp.org>
19854
19855         unictype/combining-class: Rename source files.
19856         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19857         of unictype/combining.h.
19858         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19859         Update.
19860         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19861         * modules/unictype/combining-class (Description): Fix.
19862         (Files, Makefile.am): Update.
19863         * tests/unictype/test-combiningclass.c: Renamed from
19864         tests/unictype/test-combining.c.
19865         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19866
19867 2011-03-25  Bruno Haible  <bruno@clisp.org>
19868
19869         unictype: Update list of canonical combining classes.
19870         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19871
19872 2011-03-25  Bruno Haible  <bruno@clisp.org>
19873
19874         unictype/category-byname: Recognize long names as well.
19875         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19876         a long name.
19877         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19878         unictype/categ_byname.h.
19879         (UC_CATEGORY_INDEX_*): New enumeration values.
19880         (uc_general_category_byname): Use uc_general_category_lookup and
19881         convert from index to value.
19882         * lib/unictype/categ_byname.gperf: New file.
19883         * modules/unictype/category-byname (Files): Add
19884         lib/unictype/categ_byname.gperf.
19885         (Depends-on): Add gperf.
19886         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19887         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19888         long names.
19889
19890         Tests for module 'unictype/category-longname'.
19891         * modules/unictype/category-longname-tests: New file.
19892         * tests/unictype/test-categ_longname.c: New file.
19893
19894         New module 'unictype/category-longname'.
19895         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19896         * lib/unictype/categ_longname.c: New file.
19897         * modules/unictype/category-longname: New file.
19898         * modules/unictype/category-all (Depends-on): Add it.
19899
19900 2011-03-25  Bruno Haible  <bruno@clisp.org>
19901
19902         Tests for module 'unictype/category-LC'.
19903         * modules/unictype/category-LC-tests: New file.
19904         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19905
19906         New module 'unictype/category-LC'.
19907         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19908         (UC_CATEGORY_LC): New declaration.
19909         (UC_CASED_LETTER): New macro.
19910         * lib/gen-uni-tables.c (is_category_LC): New function.
19911         (output_categories): Also handle category LC.
19912         (UC_CATEGORY_MASK_LC): New enumeration value.
19913         (general_category_byname): Also handle category LC.
19914         * lib/unictype/categ_LC.c: New file.
19915         * lib/unictype/categ_LC.h: New file, automatically generated.
19916         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19917         category LC.
19918         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19919         * modules/unictype/category-LC: New file.
19920         * modules/unictype/category-byname (Depends-on): Add
19921         unictype/category-LC.
19922         * modules/unictype/category-all (Depends-on): Likewise.
19923
19924 2011-03-25  Eric Blake  <eblake@redhat.com>
19925
19926         xmalloc: revert yesterday's regression
19927         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19928         realloc's underlying behavior (allowing allocation of zero-size
19929         objects, especially if malloc-gnu is also in use).
19930
19931 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19932
19933         maint.mk: add missing version to VC-tag
19934         * top/maint.mk: git tag was missing actual tag name; add it.
19935
19936         valgrind: do leak checking, and exit with code 1 on error (not 0)
19937         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19938         to VALGRIND.
19939
19940 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19941
19942         posix-modules: say what it does.
19943         * posix-modules: Add a line to the --help output saying what it does.
19944
19945 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         xmalloc: Do not leak if underlying realloc is C99 compatible.
19948         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19949         This avoids a leak on C99-based systems.  See
19950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19951
19952 2011-03-24  Eric Blake  <eblake@redhat.com>
19953
19954         realloc: document portability problem
19955         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19956         passing 0 size to realloc.
19957
19958 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19959
19960         doc: update users.txt
19961         * users.txt: Add cvsps, tmpwatch
19962
19963 2011-03-23  Matt Rice  <ratmice@gmail.com>
19964
19965         doc: update users.txt
19966         * users.txt: Add gdb.
19967
19968 2011-03-23  Jim Meyering  <meyering@redhat.com>
19969
19970         doc: update users.txt
19971         Looking through matches up to the following URL (there are still
19972         several more pages), I found several projects that use gnulib:
19973         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19974         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19975         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19976
19977 2011-03-22  Bruno Haible  <bruno@clisp.org>
19978
19979         unictype/bidi*: Rename functions.
19980         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19981         uc_bidi_class, uc_is_bidi_class): New declarations.
19982         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19983         uc_bidi_category_byname.
19984         (uc_bidi_category_byname): New function.
19985         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19986         u_bidi_category_name.
19987         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19988         (uc_bidi_category_name): New function.
19989         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19990         uc_bidi_category.
19991         (uc_bidi_category): New function.
19992         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19993         uc_is_bidi_category. Invoke uc_bidi_class.
19994         (uc_is_bidi_category): New function.
19995         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19996         instead of uc_bidi_category_byname.
19997         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19998         instead of uc_bidi_category_name.
19999         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20000         uc_bidi_category.
20001         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20002         instead of uc_is_bidi_category.
20003
20004 2011-03-21  Bruno Haible  <bruno@clisp.org>
20005
20006         New module 'unictype/joininggroup-all'.
20007         * modules/unictype/joininggroup-all: New file.
20008
20009         Tests for module 'unictype/joininggroup-of'.
20010         * modules/unictype/joininggroup-of-tests: New file.
20011         * tests/unictype/test-joininggroup_of.c: New file.
20012         * tests/unictype/test-joininggroup_of.h: New file, automatically
20013         generated by gen-uni-tables.
20014
20015         New module 'unictype/joininggroup-of'.
20016         * modules/unictype/joininggroup-of: New file.
20017         * lib/unictype/joininggroup_of.c: New file.
20018         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20019         gen-uni-tables.
20020
20021         Tests for module 'unictype/joininggroup-byname'.
20022         * modules/unictype/joininggroup-byname-tests: New file.
20023         * tests/unictype/test-joininggroup_byname.c: New file.
20024
20025         New module 'unictype/joininggroup-byname'.
20026         * modules/unictype/joininggroup-byname: New file.
20027         * lib/unictype/joininggroup_byname.c: New file.
20028         * lib/unictype/joininggroup_byname.gperf: New file.
20029
20030         Tests for module 'unictype/joininggroup-name'.
20031         * modules/unictype/joininggroup-name-tests: New file.
20032         * tests/unictype/test-joininggroup_name.c: New file.
20033
20034         New module 'unictype/joininggroup-name'.
20035         * modules/unictype/joininggroup-name: New file.
20036         * lib/unictype/joininggroup_name.c: New file.
20037         * lib/unictype/joininggroup_name.h: New file.
20038
20039         New module 'unictype/joiningtype-all'.
20040         * modules/unictype/joiningtype-all: New file.
20041
20042         Tests for module 'unictype/joiningtype-of'.
20043         * modules/unictype/joiningtype-of-tests: New file.
20044         * tests/unictype/test-joiningtype_of.c: New file.
20045         * tests/unictype/test-joiningtype_of.h: New file, automatically
20046         generated by gen-uni-tables.
20047
20048         New module 'unictype/joiningtype-of'.
20049         * modules/unictype/joiningtype-of: New file.
20050         * lib/unictype/joiningtype_of.c: New file.
20051         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20052         gen-uni-tables.
20053
20054         Tests for module 'unictype/joiningtype-byname'.
20055         * modules/unictype/joiningtype-byname-tests: New file.
20056         * tests/unictype/test-joiningtype_byname.c: New file.
20057
20058         New module 'unictype/joiningtype-byname'.
20059         * modules/unictype/joiningtype-byname: New file.
20060         * lib/unictype/joiningtype_byname.c: New file.
20061
20062         Tests for module 'unictype/joiningtype-name'.
20063         * modules/unictype/joiningtype-name-tests: New file.
20064         * tests/unictype/test-joiningtype_name.c: New file.
20065
20066         New module 'unictype/joiningtype-name'.
20067         * modules/unictype/joiningtype-name: New file.
20068         * lib/unictype/joiningtype_name.c: New file.
20069
20070         unictype: Add support for Arabic shaping properties.
20071         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20072         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20073         declarations.
20074         (UC_JOINING_GROUP_*): New enumeration values.
20075         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20076         declarations.
20077         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20078         (unicode_joining_type): New variable.
20079         (UC_JOINING_GROUP_*): New enumeration values.
20080         (unicode_joining_group): New variable.
20081         (fill_arabicshaping, joining_type_as_c_identifier,
20082         output_joining_type_test, output_joining_type,
20083         joining_group_as_c_identifier, output_joining_group_test,
20084         output_joining_group): New functions.
20085         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20086         fill_arabicshaping and output_joining_type_test, output_joining_type,
20087         output_joining_group_test, output_joining_group.
20088         Reported by Simon Josefsson.
20089
20090 2011-03-21  Jim Meyering  <meyering@redhat.com>
20091
20092         strftime: fix a bug in yesterday's change
20093         * lib/strftime.c (add): Accommodate width's initial value of -1.
20094         Otherwise, nstrftime would copy uninitialized data into
20095         the result buffer.
20096
20097 2011-03-21  Jim Meyering  <meyering@redhat.com>
20098
20099         tests: add strftime-tests module
20100         * tests/test-strftime.c: New file.
20101         * modules/strftime-tests: New module.
20102
20103 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20104
20105         strftime: don't assume a byte count fits in 'int'
20106         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20107         found this problem by static analysis, using gcc -Wstrict-overflow
20108         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20109         on an integer overflow having undefined behavior, but it turns out
20110         that the argument is a size, which might not fit in 'int' anyway,
20111
20112 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20113
20114         stdio: don't require ignore_value around fwrite
20115
20116         This patch works around libc bug 11959
20117         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20118         Without this patch, applications must often write
20119         ignore_value (fwrite (...)) even though the ignore_value is
20120         not helpful here.  It's common to write many objects, using
20121         fwrite/printf/etc., and then use ferror to detect output error.
20122
20123         I considered making this patch optional, but decided against it,
20124         because libc is obviously being inconsistent here: there is no
20125         reason libc should insist that user code must inspect fwrite
20126         return's value without also insisting that it inspect printf's,
20127         putchar's, etc.  If user code wants to have a strict style where
20128         all these functions' values are checked (so that ferror need not
20129         be checked), we could add support for that style in a new gnulib
20130         module, but in the meantime it's better to be consistent and to
20131         support common usage.
20132
20133         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20134         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20135         that we are compiling in checking mode, and if not C++, and
20136         if not already wrapping fwrite for some other reason.
20137         (fwrite): #define to rpl_fwrite if the latter is defined.
20138
20139 2011-03-20  Bruno Haible  <bruno@clisp.org>
20140
20141         verror: Fix compilation error introduced on 2011-02-13.
20142         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20143         instead of __attribute__.
20144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20145
20146 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20147             Bruno Haible  <bruno@clisp.org>
20148
20149         socklen: do not depend on sys_socket
20150         While trying to modify Emacs to use gnulib's socklen module,
20151         I discovered a circular dependency: socklen depends on sys_socket
20152         and vice versa.  Emacs can use socklen, but it does not need
20153         sys_socket because it has its own substitute for sys/socket.h.
20154         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20155         gl_TYPE_SOCKLEN_T.
20156         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20157         gl_PREREQ_SYS_H_SOCKET.
20158         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20159         gl_PREREQ_SYS_H_SOCKET.
20160         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20161         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20162         * modules/socklen (Depends-on): Do not depend on sys_socket.
20163         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20164
20165 2011-03-20  Jim Meyering  <meyering@redhat.com>
20166
20167         maint.mk: sort file names *after* new transformation
20168         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20169         prefix would have led to an unwarranted failure in GNU parted.
20170         Sort after that transformation.
20171
20172 2011-03-19  Jim Meyering  <meyering@redhat.com>
20173
20174         maint.mk: fix po-file syntax-check rule
20175         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20176         Patch by Bruno Haible.
20177
20178 2011-03-19  Bruno Haible  <bruno@clisp.org>
20179
20180         socklen: Update comment.
20181         * m4/socklen.m4: Update comment about platforms.
20182
20183 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20184             Bruno Haible  <bruno@clisp.org>
20185
20186         inet_ntop, inet_pton: Simplify.
20187         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20188         documented to provide socklen_t and we already depend on sys_socket.
20189         * modules/inet_pton (Depends-on): Likewise.
20190         * lib/arpa_inet.in.h: Adjust comment.
20191
20192 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20193             Bruno Haible  <bruno@clisp.org>
20194
20195         netdb: Simplify.
20196         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20197         documented to provide socklen_t and we already depend on sys_socket.
20198         * lib/netdb.in.h: Adjust comment.
20199
20200 2011-03-19  Bruno Haible  <bruno@clisp.org>
20201
20202         sys_socket, netdb: Document problem with socklen_t.
20203         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20204         platforms.
20205         * doc/posix-headers/netdb.texi: Likewise.
20206
20207 2011-03-18  Eric Blake  <eblake@redhat.com>
20208
20209         maint.mk: let po check work in VPATH build
20210         * top/maint.mk (po_file): Allow cfg.mk override.
20211         (sc_po_check): Allow VPATH use.
20212         Reported by Jiri Denemark.
20213
20214 2011-03-16  Jim Meyering  <meyering@redhat.com>
20215
20216         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20217         Before, you would have had to create one .x-sc_ file per rule in order
20218         to exempt offending files.  Now, you may instead use a Make variable --
20219         usually defined in cfg.mk -- whose name identifies the affected rule.
20220         * top/maint.mk (_sc_excl): Define.
20221         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20222         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20223
20224 2011-03-13  Bruno Haible  <bruno@clisp.org>
20225
20226         ignore-value tests: Avoid warnings.
20227         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20228         empty for gcc < 3.4.
20229
20230 2011-03-13  Bruno Haible  <bruno@clisp.org>
20231
20232         passfd: Fix link error on Solaris.
20233         * modules/passfd (Description): Correct.
20234         (Depends-on): Add socketlib.
20235         (Link): New section.
20236         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20237
20238 2011-03-13  Bruno Haible  <bruno@clisp.org>
20239
20240         passfd: Fix link error on AIX 5.2.
20241         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20242
20243 2011-03-13  Bruno Haible  <bruno@clisp.org>
20244
20245         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20246         * lib/sys_socket.in.h: Include <stddef.h>.
20247         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20248         CMSG_FIRSTHDR. Remove unused variable.
20249
20250 2011-03-13  Bruno Haible  <bruno@clisp.org>
20251
20252         passfd: Fix compilation error on OpenBSD.
20253         * lib/passfd.c: Include <sys/uio.h>.
20254
20255 2011-03-13  Bruno Haible  <bruno@clisp.org>
20256
20257         passfd test: Fix warnings.
20258         * tests/test-passfd.c: Include <sys/wait.h>.
20259         (main): Fix typo.
20260
20261 2011-03-13  Bruno Haible  <bruno@clisp.org>
20262
20263         passfd module, part 4, tweaks.
20264         * tests/test-passfd.c: Reorder includes.
20265         (main): Fix perror and printf calls.
20266
20267 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20268
20269         passfd module, part 4.
20270         * modules/passfd-tests: New file.
20271         * tests/test-passfd.c: New file.
20272
20273 2011-03-13  Jim Meyering  <meyering@redhat.com>
20274
20275         Makefile: rely on GNU make; derive syntax-check rule names
20276         Rather than requiring that each sc_ rule be listed as a dependent
20277         of "check", use features of GNU make to derive the list.
20278         * Makefile (syntax-check-rules): Define.
20279         (check): Depend on the new variable, not the hard-coded list.
20280
20281 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20282             Bruno Haible  <bruno@clisp.org>
20283
20284         passfd module, part 3.
20285         * lib/passfd.h (recvfd): Add a flags argument.
20286         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20287         (recvfd): Add a flags argument.
20288         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20289         exists.
20290         * modules/passfd (Depends-on): Add cloexec.
20291         Suggested by Eric Blake.
20292
20293 2011-03-13  Bruno Haible  <bruno@clisp.org>
20294
20295         passfd module, part 2, tweaks.
20296         * modules/passfd (Files): Reorder.
20297         (Depends-on): Remove errno.
20298         (Include): Remove <sys/socket.h>, <sys/un.h>.
20299         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20300         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20301         specification header. Include <sys/socket.h> always. Don't include
20302         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20303         (sendfd): Clarify that it sets errno when it fails.
20304         (recvfd): Fix specification.
20305
20306 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20307
20308         passfd module, part 2.
20309         * modules/passfd: New file.
20310         * lib/passfd.h: New file.
20311         * lib/passfd.c: New file.
20312
20313 2011-03-12  Bruno Haible  <bruno@clisp.org>
20314
20315         wcswidth, mbswidth: Avoid integer overflow.
20316         * lib/wcswidth.c: Include <limits.h>.
20317         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20318         * lib/mbswidth.c: Include <limits.h>.
20319         (mbsnwidth): Avoid 'int' overflow.
20320         Reported by Jim Meyering.
20321
20322 2011-03-12  Bruno Haible  <bruno@clisp.org>
20323
20324         futimens, utimensat: Avoid endless recursion on Solaris 10.
20325         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20326         Solaris.
20327         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20328         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20329
20330 2011-03-11  Jim Meyering  <meyering@redhat.com>
20331
20332         maint.mk: relax a regexp to accommodate other formatting styles
20333         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20334         between "ngettext" and the following "(".
20335
20336 2011-03-11  Pádraig Brady <P@draigBrady.com>
20337
20338         maint.mk: suppress a false positive warning
20339         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20340         diagnostics are marked with ngettext.
20341
20342 2011-03-10  Eric Blake  <eblake@redhat.com>
20343
20344         wchar: add explicit dependencies, for Tru64
20345         * modules/mbmemcasecoll (Depends-on): Add wchar.
20346         * modules/mbtowc (Depends-on): Likewise.
20347         * modules/vasnprintf (Depends-on): Likewise.
20348         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20349         * modules/wctomb (Depends-on): Likewise.
20350         Reported by Peter O'Gorman.
20351
20352 2011-03-08  Bruno Haible  <bruno@clisp.org>
20353
20354         passfd module, part 1, tweaks.
20355         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20356         Improve indentation. Improve AC_MSG_CHECKING messages.
20357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20358         gl_SOCKET_FAMILIES.
20359
20360 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20361
20362         passfd module, part 1.
20363         * m4/afunix.m4: New file.
20364         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20365         sockets.
20366
20367 2011-03-08  Bruno Haible  <bruno@clisp.org>
20368
20369         regex-quote: New API.
20370         * lib/regex-quote.h: Include <stdbool.h>.
20371         (struct regex_quote_spec): New type.
20372         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20373         New declarations.
20374         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20375         'const struct regex_quote_spec *' argument.
20376         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20377         (pcre_special): New constant.
20378         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20379         New functions.
20380         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20381         'const struct regex_quote_spec *' argument.
20382         * modules/regex-quote (Depends-on): Add stdbool.
20383         * tests/test-regex-quote.c (check): Update for new API. Add test for
20384         anchored results.
20385         * NEWS: Mention the API change.
20386         Reported by Reuben Thomas and Eric Blake.
20387
20388 2011-03-06  Bruno Haible  <bruno@clisp.org>
20389
20390         regex-quote: Fix creation of POSIX extended regular expressions.
20391         * lib/regex-quote.c (ere_special): Add grouping and alternation
20392         operators.
20393
20394 2011-03-05  Bruno Haible  <bruno@clisp.org>
20395
20396         doc: Improve doc regarding autopoint vs. gnulib.
20397         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20398         disable autopoint while running autoreconf.
20399         Suggested by Ralf Wildenhues.
20400
20401 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20402
20403         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20404         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20405
20406 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20407
20408         parse-duration: remove xalloc.h dependency
20409         * lib/parse-duration.c (parse_period): handle NULL return from
20410         strdup instead of calling xstrdup().
20411         * modules/parse-duration: remove "xalloc" dependency
20412
20413 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20414
20415         bootstrap: honor m4_base when running aclocal
20416         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20417
20418 2011-03-02  Jim Meyering  <meyering@redhat.com>
20419
20420         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20421         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20422         on request from Matt Booth.
20423
20424 2011-03-01  Eric Blake  <eblake@redhat.com>
20425
20426         test-link: work on Hurd
20427         * tests/test-link.h (test_link): Hurd rejects linking directories
20428         with EISDIR instead of the POSIX-mandated EPERM.
20429
20430 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20431
20432         stdio: simplify by moving files to printf-posix, sigpipe
20433         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20434         since this symbol is needed only if printf is replaced.
20435         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20436         Require gl_ASM_SYMBOL_PREFIX.
20437         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20438         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20439         (Depends-on): Add 'raise'.
20440         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20441         * modules/stdio (Files): Remove lib/stdio-write.c,
20442         m4/asm-underscore.m4.
20443         (Depends-on): Remove 'raise'.
20444
20445         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20446         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20447         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20448         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20449
20450 2011-02-28  Bruno Haible  <bruno@clisp.org>
20451
20452         localcharset: Assume ANSI C behaviour of free().
20453         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20454         calling free().
20455         Suggested by Simon Josefsson <simon@josefsson.org>.
20456
20457 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20458             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20459             Bruno Haible  <bruno@clisp.org>  (tiny change)
20460
20461         On Cygwin, use /proc file system instead of win32 API.
20462         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20463         Win32 file names.
20464         (DllMain): Simplify by removing Cygwin specific code.
20465         (find_shared_library_fullname): Use Linux specific implementation also
20466         for Cygwin.
20467         (get_shared_library_fullname): Update accordingly.
20468         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20469         Win32 file names.
20470         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20471         Cygwin specific code.
20472
20473 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20474             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20475
20476         Fix OpenMP flag detection for various Fortran compilers.
20477         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20478         OpenMP-conditional compilation construct, to force compile
20479         failure with missing OpenMP flag.
20480         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20481
20482 2011-02-25  Eric Blake  <eblake@redhat.com>
20483
20484         strstr: expand test coverage
20485         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20486         compilation.
20487         * tests/test-memmem.c (main): Duplicate tests.
20488         * tests/test-strcasestr.c (main): Likewise.
20489         * tests/test-c-strcasestr.c (main): Likewise.
20490
20491 2011-02-25  Jim Meyering  <meyering@redhat.com>
20492
20493         maint.mk: detect missing-NL-at-EOF, too
20494         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20495         it also detects when a file lacks a newline at EOF.
20496         (require_exactly_one_NL_at_EOF_): Renamed from
20497         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20498         since people may well have .x-sc_... file names tied to the
20499         existing name.  Suggested by Eric Blake.
20500
20501 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         dirname: move m4/dos.m4 functionality into lib/dosname.h
20504
20505         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20506         extracts symbols from it, puts them into config.h; but it's much
20507         easier to use the symbols directly.  filename.h already does this,
20508         but it disagrees with dos.m4 in some respects.  This patch
20509         introduces a different include file dosname.h that packages up
20510         dos.m4, and then later we can work on merging filename.h and
20511         dosname.h.  Applications that need only the easy-to-configure
20512         symbols should consider including dosname.h rather than dirname.h.
20513         * NEWS: Mention incompatible changes.
20514         * m4/dos.m4: Remove.
20515         * lib/dosname.h, modules/dosname: New files.
20516         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20517         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20518         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20519         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20520         Include dosname.h, not dirname.h.
20521         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20522         Include dosname.h, for definitions of symbols like ISSLASH
20523         that used to be in config.h.
20524         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20525         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20526         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20527         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20528         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20529         * modules/rmdir (Files): Likewise.
20530         * modules/stat (Files): Likewise.
20531         * modules/unlink (Files): Likewise.
20532         * modules/dirname-lgpl (Depends-on): Add dosname.
20533         * modules/lstat (Depends-on): Likewise.
20534         * modules/openat (Depends-on): Likewise.
20535         * modules/rmdir (Depends-on): Likewise.
20536         * modules/savewd (Depends-on): Likewise.
20537         * modules/stat (Depends-on): Likewise.
20538         * modules/unlink (Depends-on): Likewise.
20539         * modules/openat (Depends-on): Remove dirname-lgpl.
20540         * modules/savewd (Depends-on): Likewise.
20541         * tests/test-dirname.c: Do not use removed symbols like
20542         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20543         the remaining symbols, e.g., ISSLASH ('\\').
20544
20545 2011-02-25  Eric Blake  <eblake@redhat.com>
20546
20547         strstr: revert patches that introduced bug and pessimization
20548         * lib/str-two-way.h: Add another reference.
20549         (two_way_short_needle, two_way_long_needle): Revert changes from
20550         2011-02-24; they pessimize search speed.
20551         (critical_factorization): Partially revert changes from
20552         2010-06-22; they violate the requirement that the left half of the
20553         needle be smaller than the period of the needle.
20554
20555 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20556
20557         filenamecat: remove unnecessary dependency on dirname-lgpl
20558         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20559         is no direct dependency, just an indirect one via filenamecat-lgpl.
20560
20561         remove: remove unnecessary use of m4/dos.m4
20562         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20563         * modules/remove (FILES): Remove m4/dos.m4.
20564
20565         * lib/openat-proc.c: Don't include dirname.h; not needed.
20566
20567         backupfile: remove unnecessary use of m4/dos.m4
20568         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20569         of its symbols are used by the backupfile code.  backupfile.c does
20570         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20571         for the rare case of programs that want all their backup file
20572         names to live within 8+3 limits, and dos.m4 doesn't address that.
20573         * modules/backupfile (Files): Remove m4/dos.m4.
20574
20575 2011-02-24  Jim Meyering  <meyering@redhat.com>
20576
20577         strstr: fix a bug whereby strstr would mistakenly return NULL
20578         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20579         in period calculation.
20580         (two_way_long_needle): Likewise.
20581         The original problem was reported by Mike Stump in
20582         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20583         Ralf Wildenhues provided the short needle and haystack.
20584         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20585         Add a more involved test to trigger the bug in two_way_long_needle.
20586
20587 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20588
20589         gnulib-tool: remove use of bold display in help screen
20590         * gnulib-tool (func_usage): Do not use bold display anymore in the
20591         help screen.  That was just meant to be a temporary emphasis for a
20592         backward-incompatible change.
20593
20594 2011-02-23  Bruno Haible  <bruno@clisp.org>
20595
20596         Fix misindentation of preprocessor directives.
20597         * lib/argp-namefrob.h: Reindent preprocessor directives.
20598         * lib/getopt_int.h (struct _getopt_data): Likewise.
20599         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20600         * lib/vasnprintf.c (decode_long_double): Likewise.
20601         * tests/test-argmatch.c: Insert blank lines, for clarity.
20602         * tests/test-exclude.c: Likewise.
20603
20604 2011-02-22  Bruno Haible  <bruno@clisp.org>
20605
20606         ioctl: Fix for MacOS X in 64-bit mode.
20607         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20608         value.
20609         Suggested by Eric Blake.
20610         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20611
20612 2011-02-22  Jim Meyering  <meyering@redhat.com>
20613
20614         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20615         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20616         in lib/.
20617
20618 2011-02-22  Eric Blake  <eblake@redhat.com>
20619
20620         maint: avoid any CDPATH issue
20621         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20622
20623         maint: adjust cpp indentation for my modules, as well
20624         * Makefile (sc_cpp_indent_check): Add my name.
20625         * lib/fbufmode.c: Filter through cppi.
20626         * lib/fpurge.c: Likewise.
20627         * lib/freadable.c: Likewise.
20628         * lib/freading.c: Likewise.
20629         * lib/fwritable.c: Likewise.
20630         * lib/fwriting.c: Likewise.
20631         * lib/sigaction.c: Likewise.
20632
20633 2011-02-22  Jim Meyering  <meyering@redhat.com>
20634
20635         maint: adjust cpp indentation to reflect nesting depth
20636         I.e., in a block of code that begins with an unnested "#if",
20637         put one space between the "#" in column 1 and following token.
20638         For example,
20639         -#include <sys/vfs.h>
20640         +# include <sys/vfs.h>
20641         Do this only in .c files that are part of a module I maintain.
20642         * lib/linkat.c: Filter through cppi.
20643         * lib/nanosleep.c: Likewise.
20644         * lib/openat.c: Likewise.
20645         * lib/openat-die.c: Likewise.
20646         * lib/dup3.c: Likewise.
20647         * lib/fchownat.c: Likewise.
20648         * lib/flock.c: Likewise.
20649         * lib/fsync.c: Likewise.
20650         * lib/fts.c: Likewise.
20651         * lib/getpass.c: Likewise.
20652         * lib/gettimeofday.c: Likewise.
20653         * lib/userspec.c: Likewise.
20654         * Makefile (sc_cpp_indent_check): New rule, to check this.
20655
20656 2011-02-22  Bruno Haible  <bruno@clisp.org>
20657
20658         New module 'wctomb'.
20659         * lib/stdlib.in.h (wctomb): New declaration.
20660         * lib/wctomb.c: New file.
20661         * lib/wctomb-impl.h: New file.
20662         * m4/wctomb.m4: New file.
20663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20664         REPLACE_WCTOMB.
20665         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20666         REPLACE_WCTOMB.
20667         * modules/wctomb: New file.
20668         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20669         * doc/posix-functions/wctomb.texi: Mention the new module.
20670         * modules/wctob (Depends-on): Add wctomb.
20671
20672 2011-02-22  Bruno Haible  <bruno@clisp.org>
20673
20674         New module 'mbtowc'.
20675         * lib/stdlib.in.h (mbtowc): New declaration.
20676         * lib/mbtowc.c: New file.
20677         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20678         * m4/mbtowc.m4: New file.
20679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20680         REPLACE_MBTOWC.
20681         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20682         REPLACE_MBTOWC.
20683         * modules/mbtowc: New file.
20684         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20685         * doc/posix-functions/mbtowc.texi: Mention the new module.
20686         * modules/btowc (Depends-on): Add mbtowc.
20687
20688 2011-02-22  Bruno Haible  <bruno@clisp.org>
20689
20690         wcrtomb: Add more tests for native Windows platforms.
20691         * tests/test-wcrtomb-w32-1.sh: New file.
20692         * tests/test-wcrtomb-w32-2.sh: New file.
20693         * tests/test-wcrtomb-w32-3.sh: New file.
20694         * tests/test-wcrtomb-w32-4.sh: New file.
20695         * tests/test-wcrtomb-w32-5.sh: New file.
20696         * tests/test-wcrtomb-w32.c: New file.
20697         * modules/wcrtomb-tests (Files): Add them.
20698         (Makefile.am): Arrange to run these tests.
20699         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20700         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20701
20702 2011-02-20  Bruno Haible  <bruno@clisp.org>
20703
20704         wcrtomb: Enhance test.
20705         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20706
20707 2011-02-20  Bruno Haible  <bruno@clisp.org>
20708
20709         mbrtowc: Tiny optimization.
20710         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20711
20712 2011-02-20  Jim Meyering  <meyering@redhat.com>
20713
20714         test-exclude.c: remove unmatched #endif
20715         * tests/test-exclude.c: Remove stray #endif, left over from
20716         the change of a week ago.
20717
20718 2011-02-19  Jim Meyering  <meyering@redhat.com>
20719
20720         git-version-gen: skip "-dirty" check when appropriate
20721         * build-aux/git-version-gen: Don't run any git commands when the
20722         version string comes from .tarball-version.  Prior to this, we
20723         would run git update-index --refresh even from a just-unpacked
20724         tarball directory, and that could affect a .git/ directory in a
20725         parent of the build directory.  Reported by Mike Frysinger.
20726
20727 2011-02-19  Bruno Haible  <bruno@clisp.org>
20728
20729         unictype/property-byname: Reduce the size of the 'data' segment.
20730         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20731
20732 2011-02-19  Bruno Haible  <bruno@clisp.org>
20733
20734         unictype/scripts: Reduce the size of the 'data' segment.
20735         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20736         '%pic'.
20737         * lib/unictype/scripts_byname.gperf: Regenerated.
20738
20739 2011-02-19  Bruno Haible  <bruno@clisp.org>
20740
20741         stdint: Update documentation.
20742         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20743
20744 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20745
20746         stdint: omit redundant check for wchar.h
20747         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20748         always tests whether wchar.h exists, so remove the now-redundant test.
20749
20750 2011-02-18  Bruno Haible  <bruno@clisp.org>
20751
20752         stdint: Cut dependency to module 'wchar'.
20753         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20754         include the necessary prerequisites.
20755         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20756         * modules/stdint (Depends-on): Remove wchar.
20757         (Makefile.am): Substitute HAVE_WCHAR_H.
20758         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20759
20760 2011-02-18  Eric Blake  <eblake@redhat.com>
20761
20762         longlong: skip, rather than fail, on cross-compilation
20763         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20764         when cross-compiling; regression from 2011-02-16.
20765
20766 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         * NEWS: Mention 2011-02-08 change to stdlib.
20769
20770 2011-02-17  Bruno Haible  <bruno@clisp.org>
20771
20772         getloadavg: Add comments about platforms.
20773         * m4/getloadavg.m4: Add comment.
20774         * lib/getloadavg.c: Likewise.
20775
20776 2011-02-17  Bruno Haible  <bruno@clisp.org>
20777
20778         getloadavg: Fix link error on Solaris 2.6.
20779         * modules/getloadavg (Link): New section.
20780         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20781         linking test-getloadavg.
20782         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20783         getloadavg.
20784
20785 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20788         It was 'int', but this doesn't match the IRIX 6.5 manual.
20789         Suggested by Bruno Haible in
20790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20791
20792 2011-02-17  Bruno Haible  <bruno@clisp.org>
20793
20794         havelib: Fix comments.
20795         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20796         change.
20797
20798 2011-02-17  Bruno Haible  <bruno@clisp.org>
20799
20800         havelib: Update config.rpath.
20801         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20802
20803 2011-02-17  Bruno Haible  <bruno@clisp.org>
20804
20805         getloadavg test: Add some plausibility checks.
20806         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20807         is improbable.
20808
20809 2011-02-16  Eric Blake  <eblake@redhat.com>
20810
20811         maintainer-makefile: make syntax-check a no-op from tarballs
20812         * top/maint.mk (no-vc-detected): New rule.
20813         (local-checks-available): Use it to avoid hanging if someone tries
20814         'make syntax-check' from a tarball.  Also append to any non-syntax
20815         checks already defined in cfg.mk.
20816
20817 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20818
20819         longlong: tune, particularly for common case of c99
20820
20821         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20822         or running anything if c99, or if unsigned long long int does not
20823         work.  In either case, we know the answer without further tests.
20824         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20825         it at most once, and use its results for both long long int and
20826         unsigned long long int.  This is more likely to be efficient in
20827         the common case where the program wants to check for both long
20828         long int and unsigned long long int.
20829         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20830         since the answer is already known.
20831
20832 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20833
20834         getloadavg: set errno
20835         * lib/getloadavg.c: Set errno when returning -1.  If no other
20836         error number looks appropriate, set it to ENOSYS if the getloadavg
20837         looks like it can't possibly ever work, ENOTSUP otherwise.
20838         Suggested by Bruno Haible in
20839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20840
20841         getloadavg: trim unused parts and speed up 'configure'
20842         * NEWS: Document this.
20843         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20844         always compiled if getloadavg is absent.
20845         Move test code to ...
20846         * tests/test-getloadavg.c: New file, containing previous
20847         contents of test from lib/getloadavg.c.  It also contains
20848         suggestions by Bruno Haible in
20849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20850         * modules/getloadavg-tests: New file.
20851         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20852         Do tests in the same order as they're needed for getloadavg.c.
20853         Omit setgid-related tests that generate symbols KMEM_GROUP,
20854         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20855         Do only the tests that are needed to see whether the system has
20856         getloadavg, moving the other tests into ...
20857         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20858         NLIST_NAME_UNION; nobody should be using it.  Do not define
20859         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20860         relevant, as the user of this module shouldn't care how getloadavg
20861         is implemented.
20862
20863         getloadavg: omit unused var
20864         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20865
20866 2011-02-15  Jim Meyering  <meyering@redhat.com>
20867
20868         doc: update users.txt
20869         * users.txt: Update iwhd's URL.
20870
20871 2011-02-13  Bruno Haible  <bruno@clisp.org>
20872
20873         Consistent macro naming for macros that use GCC __attribute__.
20874         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20875         _ATTRIBUTE_NONNULL_.
20876         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20877         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20878         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20879         ATTRIBUTE_DEPRECATED.
20880         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20881         ATTRIBUTE_NORETURN.
20882         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20883         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20884         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20885         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20886         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20887         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20888         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20889         ATTRIBUTE_SENTINEL.
20890         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20891         ATTRIBUTE_RETURN_CHECK.
20892         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20893         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20894         ATTRIBUTE_NORETURN.
20895         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20896         Reported by Paul Eggert.
20897
20898 2011-02-13  Bruno Haible  <bruno@clisp.org>
20899
20900         Don't interfere with a program's definition of __attribute__.
20901         * lib/argp.h (__attribute__): Remove definition.
20902         (_GL_ATTRIBUTE_FORMAT): New macro.
20903         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20904         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20905         (_GL_ATTRIBUTE_FORMAT): New macro.
20906         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20907         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20908         GCC 3 or newer.
20909         * lib/error.h (__attribute__): Remove definition.
20910         (_GL_ATTRIBUTE_FORMAT): New macro.
20911         (error, error_at_line): Use it.
20912         * lib/hash.h (__attribute__): Remove definition.
20913         (ATTRIBUTE_WUR): Update definition. Define always.
20914         * lib/openat.h (__attribute__): Remove definition.
20915         (ATTRIBUTE_NORETURN): Update definition. Define always.
20916         * lib/sigpipe-die.h (__attribute__): Remove definition.
20917         (ATTRIBUTE_NORETURN): Update definition. Define always.
20918         * lib/vasnprintf.h (__attribute__): Remove definition.
20919         (_GL_ATTRIBUTE_FORMAT): New macro.
20920         (asnprintf, vasnprintf): Use it.
20921         * lib/xalloc.h (__attribute__): Remove definition.
20922         (ATTRIBUTE_NORETURN): Update definition. Define always.
20923         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20924         * lib/xmemdup0.h (__attribute__): Remove definition.
20925         (ATTRIBUTE_NORETURN): Update definition. Define always.
20926         * lib/xprintf.h (__attribute__): Remove definition.
20927         (_GL_ATTRIBUTE_FORMAT): New macro.
20928         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20929         * lib/xstrtol.h (__attribute__): Remove definition.
20930         (ATTRIBUTE_NORETURN): Update definition. Define always.
20931         * lib/xvasprintf.h (__attribute__): Remove definition.
20932         (_GL_ATTRIBUTE_FORMAT): New macro.
20933         (xasprintf, xvasprintf): Use it.
20934         * tests/test-argmatch.c (__attribute__): Remove definition.
20935         (ATTRIBUTE_NORETURN): Update definition. Define always.
20936         * tests/test-exclude.c (__attribute__): Remove definition.
20937         (ATTRIBUTE_NORETURN): Update definition. Define always.
20938         Reported by Paul Eggert.
20939
20940 2011-02-13  Bruno Haible  <bruno@clisp.org>
20941
20942         mbrtowc: Add more tests for native Windows platforms.
20943         * tests/test-mbrtowc-w32-1.sh: New file.
20944         * tests/test-mbrtowc-w32-2.sh: New file.
20945         * tests/test-mbrtowc-w32-3.sh: New file.
20946         * tests/test-mbrtowc-w32-4.sh: New file.
20947         * tests/test-mbrtowc-w32-5.sh: New file.
20948         * tests/test-mbrtowc-w32.c: New file.
20949         * modules/mbrtowc-tests (Files): Add them.
20950         (Makefile.am): Arrange to run these tests.
20951         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20952         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20953
20954 2011-02-13  Bruno Haible  <bruno@clisp.org>
20955
20956         mbrtowc: Work around native Windows bug.
20957         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20958         guess when no suitable locale for testing was found.
20959         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20960
20961 2011-02-13  Bruno Haible  <bruno@clisp.org>
20962
20963         mbsinit: Work around mingw bug.
20964         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20965         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20966         Windows.
20967         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20968
20969 2011-02-13  Bruno Haible  <bruno@clisp.org>
20970
20971         mbsinit: Don't crash for a NULL argument.
20972         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20973         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20974
20975 2011-02-13  Bruno Haible  <bruno@clisp.org>
20976
20977         Don't interfere with a program's definition of __attribute__.
20978         * lib/stdio.in.h (__attribute__): Remove definition.
20979         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20980         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20981         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20982         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20983         * lib/string.in.h (__attribute__): Remove definition.
20984         Reported by Paul Eggert.
20985
20986 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20987
20988         stdlib: don't get in the way of non-GCC __attribute__
20989         See thread starting at
20990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20991         Revert previous stdlib change, installing the following instead:
20992         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20993         to get in the way of a non-GCC compiler that supports __attribute__.
20994         (_GL_ATTRIBUTE_RETURN): New macro.
20995         (_Exit): Use it instead of __attribute__.
20996
20997 2011-02-12  Bruno Haible  <bruno@clisp.org>
20998
20999         quotearg test: Avoid test failure on mingw.
21000         * tests/test-quotearg.sh: Convert the locale identifier from native
21001         Windows syntax to Unix syntax.
21002
21003 2011-02-12  Bruno Haible  <bruno@clisp.org>
21004
21005         setlocale: Prefer gnulib's override over libintl's override.
21006         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21007         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21008         GNULIB_defined_setlocale is set.
21009
21010 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         stdlib: support non-GCC __attribute__
21013
21014         Fix a serious and tricky problem encountered when attempting to
21015         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21016         5.5, but it crashed due to memory corruption on Solaris 10 with
21017         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21018         bits that are otherwise zero.  This tagging is optional inside
21019         Emacs but is preferred and is used when __attribute__ ((__aligned
21020         (8))) works, as it does with both recent-enough GCC and with Sun C
21021         5.11.  However, Sun C 5.11 is not GCC and does not #define
21022         __GNUC__ and __GNUC_MINOR__.
21023
21024         When I added the getloadavg module to Emacs, it brought in
21025         stdlib.in.h, which contained this fragment:
21026
21027            #ifndef __attribute__
21028            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21029            #  define __attribute__(Spec)   /* empty */
21030            # endif
21031            #endif
21032
21033         When files that include <stdlib.h> were compiled with Sun C 5.11,
21034         the above code disabled __attribute__ ((__aligned (8))), which
21035         caused variables to not be properly aligned, which eventually led
21036         to the pointer corruption mentioned above.  (This was a bit hard
21037         to diagnose, unfortunately.)
21038
21039         Several "#define __attribute__(X) /* empty */" code snippets need
21040         to be eradicated from Gnulib to work with non-GCC compilers that
21041         support __attribute__.  The Autoconf way to do this is to test for
21042         each kind of attribute that we want support for, and selectively
21043         enable that in source code.
21044
21045         Fix this problem just for stdlib.h, by adding a test for the
21046         __noreturn__ attribute, and change stdlib.in.h to use that test
21047         when needed.  This technique can be easily generalized to the
21048         other *.in.h files and attributes, and a similar technique can be
21049         used for *.h and *.c files.  This patch is enough to solve the
21050         problem for Emacs + getloadavg, and I thought I'd publish it for
21051         feedback before undertaking further, similar fixes in other
21052         modules.
21053
21054         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21055         because it's not needed for stdlib.h.  It merely substitutes the
21056         value directly into stdlib.h.  We may well need to #define it, or
21057         similar symbols, for other modules, but it's nice to also have an
21058         option to not #define it for applications like Emacs that do not
21059         need it.
21060
21061         * lib/stdlib.in.h (__attribute__): Do not #define.
21062         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21063         be defined only if the _Exit module is also used.
21064         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21066         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21067         platforms.
21068         * modules/_Exit (Files): Add m4/attribute.m4.
21069         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21070         * m4/attribute.m4: New file.
21071
21072 2011-02-12  Bruno Haible  <bruno@clisp.org>
21073
21074         wcsrtombs: Work around bug on native Windows.
21075         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21076         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21077         instead of len.
21078         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21079
21080 2011-02-12  Bruno Haible  <bruno@clisp.org>
21081
21082         mbsrtowcs: Work around bug on native Windows.
21083         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21084         against mingw bug.
21085         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21086
21087 2011-02-12  Bruno Haible  <bruno@clisp.org>
21088
21089         Avoid setlocale bugs in tests.
21090         * modules/btowc (Dependencies): Add setlocale.
21091         * modules/c-strcase (Dependencies): Likewise.
21092         * modules/mbmemcasecmp (Dependencies): Likewise.
21093         * modules/mbmemcasecoll (Dependencies): Likewise.
21094         * modules/mbrtowc (Dependencies): Likewise.
21095         * modules/mbscasecmp (Dependencies): Likewise.
21096         * modules/mbscasestr (Dependencies): Likewise.
21097         * modules/mbschr (Dependencies): Likewise.
21098         * modules/mbscspn (Dependencies): Likewise.
21099         * modules/mbsinit (Dependencies): Likewise.
21100         * modules/mbsncasecmp (Dependencies): Likewise.
21101         * modules/mbsnrtowcs (Dependencies): Likewise.
21102         * modules/mbspbrk (Dependencies): Likewise.
21103         * modules/mbspcasecmp (Dependencies): Likewise.
21104         * modules/mbsrchr (Dependencies): Likewise.
21105         * modules/mbsrtowcs (Dependencies): Likewise.
21106         * modules/mbsspn (Dependencies): Likewise.
21107         * modules/mbsstr (Dependencies): Likewise.
21108         * modules/nl_langinfo (Dependencies): Likewise.
21109         * modules/quotearg (Dependencies): Likewise.
21110         * modules/unicase/locale-language (Dependencies): Likewise.
21111         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21112         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21113         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21114         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21115         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21116         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21117         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21118         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21119         * modules/vasnprintf-posix (Dependencies): Likewise.
21120         * modules/wcrtomb (Dependencies): Likewise.
21121         * modules/wcsnrtombs (Dependencies): Likewise.
21122         * modules/wcsrtombs (Dependencies): Likewise.
21123
21124 2011-02-12  Bruno Haible  <bruno@clisp.org>
21125
21126         setlocale: Workaround native Windows bug.
21127         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21128         succeeds but sets LC_CTYPE to "C", report a failure.
21129         * tests/test-setlocale2.sh: New file.
21130         * tests/test-setlocale2.c: New file.
21131         * modules/setlocale-tests (Files): Add the new files.
21132         (Makefile.am): Enable test-setlocale2.sh test.
21133         * doc/posix-functions/setlocale.texi: Mention workaround.
21134
21135 2011-02-11  Bruno Haible  <bruno@clisp.org>
21136
21137         Tests for module 'setlocale'.
21138         * modules/setlocale-tests: New file.
21139         * tests/test-setlocale1.sh: New file.
21140         * tests/test-setlocale1.c: New file.
21141
21142         New module 'setlocale'.
21143         * lib/locale.in.h (setlocale): New declaration.
21144         * lib/setlocale.c: New file, based on
21145         gettext/gettext-runtime/intl/setlocale.c.
21146         * m4/setlocale.m4: New file.
21147         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21148         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21149         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21150         REPLACE_SETLOCALE.
21151         * modules/setlocale: New file.
21152         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21153         * doc/posix-functions/setlocale.texi: Mention the new module.
21154
21155 2011-02-11  Bruno Haible  <bruno@clisp.org>
21156
21157         Prepare for locale dependent tests on mingw.
21158         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21159         because it has the wrong locale encoding.
21160         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21161         French_France.1252 instead of "fr".
21162         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21163         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21164         because it has the wrong locale encoding.
21165         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21166         native Windows, try Turkish_Turkey.65001.
21167         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21168         Chinese_China.54936.
21169
21170         Prepare for locale dependent tests on mingw.
21171         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21172         differently.
21173         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21174         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21175         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21176         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21177
21178 2011-02-11  Eric Blake  <eblake@redhat.com>
21179
21180         strptime: avoid compiler warnings
21181         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21182         compiler warnings about dead code.
21183         Reported by Daniel P. Berrange.
21184
21185 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21186
21187         doc: update users.txt
21188         * users.txt: Add rcs.
21189
21190 2011-02-10  John W. Eaton  <jwe@gnu.org>
21191
21192         doc: update users.txt
21193         * users.txt: Add octave.
21194
21195 2011-02-10  Jim Meyering  <meyering@redhat.com>
21196
21197         doc: update users.txt
21198         * users.txt: Add iwhd.
21199
21200 2011-02-09  Bruno Haible  <bruno@clisp.org>
21201
21202         gnulib-tool: Make copyright notice adjustment more robust.
21203         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21204         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21205         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21206         License".
21207         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21208
21209 2011-02-06  Bruno Haible  <bruno@clisp.org>
21210
21211         New module 'towctrans'.
21212         * modules/towctrans: New file.
21213         * lib/wctype.in.h (towctrans): New declaration.
21214         * lib/towctrans.c: New file.
21215         * lib/towctrans-impl.h: New file.
21216         * m4/towctrans.m4: New file.
21217         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21218         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21219         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21220         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21221         * doc/posix-functions/towctrans.texi: Mention the new module.
21222
21223 2011-02-06  Bruno Haible  <bruno@clisp.org>
21224
21225         New module 'wctrans'.
21226         * modules/wctrans: New file.
21227         * lib/wctype.in.h (wctrans): New declaration.
21228         * lib/wctrans.c: New file.
21229         * lib/wctrans-impl.h: New file.
21230         * m4/wctrans.m4: New file.
21231         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21232         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21233         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21234         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21235         * doc/posix-functions/wctrans.texi: Mention the new module.
21236
21237 2011-02-06  Bruno Haible  <bruno@clisp.org>
21238
21239         New module 'iswctype'.
21240         * modules/iswctype: New file.
21241         * lib/wctype.in.h (iswctype): New declaration.
21242         * lib/iswctype.c: New file.
21243         * lib/iswctype-impl.h: New file.
21244         * m4/iswctype.m4: New file.
21245         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21246         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21247         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21248         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21249         * doc/posix-functions/iswctype.texi: Mention the new module and the
21250         HP-UX 11.00 problem.
21251
21252 2011-02-06  Bruno Haible  <bruno@clisp.org>
21253
21254         New module 'wctype'.
21255         * modules/wctype: Change to represent the wctype() substitute.
21256         * lib/wctype.in.h (wctype): New declaration.
21257         * lib/wctype.c: New file.
21258         * lib/wctype-impl.h: New file.
21259         * m4/wctype.m4: New file.
21260         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21261         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21262         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21263         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21264         * doc/posix-functions/wctype.texi: Mention the new module and the
21265         HP-UX 11.00 problem.
21266
21267 2011-02-06  Bruno Haible  <bruno@clisp.org>
21268
21269         wctype-h: Ensure wctype_t and wctrans_t are defined.
21270         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21271         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21272         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21273         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21274         HAVE_WCTRANS_T.
21275         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21276
21277 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         flock: fix license typo
21280
21281         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21282         omitted.
21283
21284 2011-02-08  Bruno Haible  <bruno@clisp.org>
21285
21286         Split large sed scripts, for HP-UX sed.
21287         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21288         to avoid HP-UX limit of 99 commands, in the near future.
21289         * modules/stdlib (Makefile.am): Likewise.
21290         * modules/unistd (Makefile.am): Likewise.
21291         * modules/wchar (Makefile.am): Likewise.
21292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21293         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21295
21296 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21297             Bruno Haible  <bruno@clisp.org>
21298
21299         stdlib: improve random_r modularization
21300         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21301         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21302         you also need the random_r module to get this material right.
21303         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21304         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21305         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21306
21307 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21308
21309         stdlib: don't depend on stdint
21310         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21311         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21312         be independent of whether stdint.h is needed.
21313         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21314         here, instead of ...
21315         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21316         struct random_data should be using the random_r module, not just
21317         the stdlib module (which wouldn't make sense: what package needs
21318         just struct random_data without also needing random_r?).
21319         * modules/stdlib (Depends-on): Remove stdint.
21320
21321         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21322         See the thread rooted at
21323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21324         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21325         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21326         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21327         __VMS)); previously it was always included (via fcntl--.h).
21328         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21329         hand; this is good enough for load averages.  Also, do not use
21330         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21331         flags directly if available and don't bother otherwise.  (Packages
21332         that need the extra reliability should use the modules that define
21333         these flags on older platforms that lack them.)
21334         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21335         fcntl-safer.
21336
21337 2011-02-08  Jim Meyering  <meyering@redhat.com>
21338
21339         di-set.h, ino-map.h: add multiple-inclusion guard
21340         Technically, the guard is required only for ino-map.h, due to its
21341         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21342         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21343         * lib/ino-map.h: Likewise.
21344
21345 2011-02-06  Bruno Haible  <bruno@clisp.org>
21346
21347         iswblank: Ensure declaration on glibc systems.
21348         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21349         * modules/iswblank (Dependencies): Add 'extensions'.
21350         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21351
21352 2011-02-06  Bruno Haible  <bruno@clisp.org>
21353
21354         New module 'iswblank'.
21355         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21356         * modules/iswblank: New file.
21357         * modules/wctype-h (Files): Remove lib/iswblank.c.
21358         (Makefile.am): Substitute GNULIB_ISWBLANK.
21359         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21360         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21361         (gl_WCTYPE_H_DEFAULTS): New macro.
21362         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21363         * modules/iswblank-tests: New file.
21364         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21365         * tests/test-wctype-h.c (main): Remove iswblank tests.
21366         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21367         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21368         of 'wctype-h'.
21369         * NEWS: Mention the change.
21370         * modules/mbchar (Depends-on): Add iswblank.
21371
21372 2011-02-08  Bruno Haible  <bruno@clisp.org>
21373
21374         di-set tests: Refactor.
21375         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21376         unnecessary includes.
21377         (ASSERT): Remove macro.
21378         (main): Make C90 compliant by avoiding variable declaration after
21379         statement.
21380         * modules/di-set-tests (Files): Add tests/macros.h.
21381
21382 2011-02-08  Bruno Haible  <bruno@clisp.org>
21383
21384         ino-map tests: Refactor.
21385         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21386         unnecessary includes.
21387         (ASSERT): Remove macro.
21388         (main): Make C90 compliant by avoiding variable declaration after
21389         statement.
21390         * modules/ino-map-tests (Files): Add tests/macros.h.
21391
21392 2011-02-08  Jim Meyering  <meyering@redhat.com>
21393
21394         di-set: add "const" to a cast
21395         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21396         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21397
21398 2011-02-06  Bruno Haible  <bruno@clisp.org>
21399
21400         Rename module 'wctype' to 'wctype-h'.
21401         * modules/wctype-h: Renamed from modules/wctype.
21402         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21403         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21404         (Files, Depends-on, Makefile.am): Update.
21405         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21406         (Files, Makefile.am): Update.
21407         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21408         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21409         * doc/posix-headers/wctype.texi: Update.
21410         * doc/posix-functions/iswalnum.texi: Update.
21411         * doc/posix-functions/iswalpha.texi: Update.
21412         * doc/posix-functions/iswblank.texi: Update.
21413         * doc/posix-functions/iswcntrl.texi: Update.
21414         * doc/posix-functions/iswdigit.texi: Update.
21415         * doc/posix-functions/iswgraph.texi: Update.
21416         * doc/posix-functions/iswlower.texi: Update.
21417         * doc/posix-functions/iswprint.texi: Update.
21418         * doc/posix-functions/iswpunct.texi: Update.
21419         * doc/posix-functions/iswspace.texi: Update.
21420         * doc/posix-functions/iswupper.texi: Update.
21421         * doc/posix-functions/iswxdigit.texi: Update.
21422         * doc/posix-functions/towlower.texi: Update.
21423         * doc/posix-functions/towupper.texi: Update.
21424         * NEWS: Mention the change.
21425         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21426         * modules/mbchar (Dependencies): Likewise.
21427         * modules/mbswidth (Dependencies): Likewise.
21428         * modules/quotearg (Dependencies): Likewise.
21429         * modules/regex (Dependencies): Likewise.
21430         * modules/wcscasecmp (Dependencies): Likewise.
21431         * modules/wcsncasecmp (Dependencies): Likewise.
21432         * modules/wcwidth (Dependencies): Likewise.
21433
21434 2011-02-06  Bruno Haible  <bruno@clisp.org>
21435
21436         New module 'wcswidth'.
21437         * modules/wcswidth: New file.
21438         * lib/wchar.in.h (wcswidth): New declaration.
21439         * lib/wcswidth.c: New file.
21440         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21441         * m4/wcswidth.m4: New file.
21442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21444         REPLACE_WCSWIDTH.
21445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21446         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21447         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21448         * doc/posix-functions/wcswidth.texi: Mention the new module.
21449
21450 2011-02-06  Bruno Haible  <bruno@clisp.org>
21451
21452         New module 'wcstok'.
21453         * modules/wcstok: New file.
21454         * lib/wchar.in.h (wcstok): New declaration.
21455         * lib/wcstok.c: New file.
21456         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21457         * m4/wcstok.m4: New file.
21458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21461         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21462         * doc/posix-functions/wcstok.texi: Mention the new module.
21463
21464 2011-02-06  Bruno Haible  <bruno@clisp.org>
21465
21466         New module 'wcsstr'.
21467         * modules/wcsstr: New file.
21468         * lib/wchar.in.h (wcsstr): New declaration.
21469         * lib/wcsstr.c: New file.
21470         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21471         * m4/wcsstr.m4: New file.
21472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21475         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21476         * doc/posix-functions/wcsstr.texi: Mention the new module.
21477
21478 2011-02-06  Bruno Haible  <bruno@clisp.org>
21479
21480         New module 'wcspbrk'.
21481         * modules/wcspbrk: New file.
21482         * lib/wchar.in.h (wcspbrk): New declaration.
21483         * lib/wcspbrk.c: New file.
21484         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21485         * m4/wcspbrk.m4: New file.
21486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21489         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21490         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21491
21492 2011-02-06  Bruno Haible  <bruno@clisp.org>
21493
21494         New module 'wcsspn'.
21495         * modules/wcsspn: New file.
21496         * lib/wchar.in.h (wcsspn): New declaration.
21497         * lib/wcsspn.c: New file.
21498         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21499         * m4/wcsspn.m4: New file.
21500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21503         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21504         * doc/posix-functions/wcsspn.texi: Mention the new module.
21505
21506 2011-02-06  Bruno Haible  <bruno@clisp.org>
21507
21508         New module 'wcscspn'.
21509         * modules/wcscspn: New file.
21510         * lib/wchar.in.h (wcscspn): New declaration.
21511         * lib/wcscspn.c: New file.
21512         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21513         * m4/wcscspn.m4: New file.
21514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21517         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21518         * doc/posix-functions/wcscspn.texi: Mention the new module.
21519
21520 2011-02-06  Bruno Haible  <bruno@clisp.org>
21521
21522         New module 'wcsrchr'.
21523         * modules/wcsrchr: New file.
21524         * lib/wchar.in.h (wcsrchr): New declaration.
21525         * lib/wcsrchr.c: New file.
21526         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21527         * m4/wcsrchr.m4: New file.
21528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21531         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21532         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21533
21534 2011-02-06  Bruno Haible  <bruno@clisp.org>
21535
21536         New module 'wcschr'.
21537         * modules/wcschr: New file.
21538         * lib/wchar.in.h (wcschr): New declaration.
21539         * lib/wcschr.c: New file.
21540         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21541         * m4/wcschr.m4: New file.
21542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21545         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21546         * doc/posix-functions/wcschr.texi: Mention the new module.
21547
21548 2011-02-06  Bruno Haible  <bruno@clisp.org>
21549
21550         New module 'wcsdup'.
21551         * modules/wcsdup: New file.
21552         * lib/wchar.in.h (wcsdup): New declaration.
21553         * lib/wcsdup.c: New file.
21554         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21555         * m4/wcsdup.m4: New file.
21556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21559         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21560         * doc/posix-functions/wcsdup.texi: Mention the new module.
21561
21562 2011-02-06  Bruno Haible  <bruno@clisp.org>
21563
21564         New module 'wcsxfrm'.
21565         * modules/wcsxfrm: New file.
21566         * lib/wchar.in.h (wcsxfrm): New declaration.
21567         * lib/wcsxfrm.c: New file.
21568         * lib/wcsxfrm-impl.h: New file.
21569         * m4/wcsxfrm.m4: New file.
21570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21573         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21574         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21575
21576 2011-02-06  Bruno Haible  <bruno@clisp.org>
21577
21578         New module 'wcscoll'.
21579         * modules/wcscoll: New file.
21580         * lib/wchar.in.h (wcscoll): New declaration.
21581         * lib/wcscoll.c: New file.
21582         * lib/wcscoll-impl.h: New file.
21583         * m4/wcscoll.m4: New file.
21584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21587         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21588         * doc/posix-functions/wcscoll.texi: Mention the new module.
21589
21590 2011-02-06  Bruno Haible  <bruno@clisp.org>
21591
21592         New module 'wcsncasecmp'.
21593         * modules/wcsncasecmp: New file.
21594         * lib/wchar.in.h (wcsncasecmp): New declaration.
21595         * lib/wcsncasecmp.c: New file.
21596         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21597         * m4/wcsncasecmp.m4: New file.
21598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21601         HAVE_WCSNCASECMP.
21602         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21603         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21604
21605 2011-02-06  Bruno Haible  <bruno@clisp.org>
21606
21607         New module 'wcscasecmp'.
21608         * modules/wcscasecmp: New file.
21609         * lib/wchar.in.h (wcscasecmp): New declaration.
21610         * lib/wcscasecmp.c: New file.
21611         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21612         * m4/wcscasecmp.m4: New file.
21613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21616         HAVE_WCSCASECMP.
21617         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21618         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21619
21620 2011-02-05  Bruno Haible  <bruno@clisp.org>
21621
21622         New module 'wcsncmp'.
21623         * modules/wcsncmp: New file.
21624         * lib/wchar.in.h (wcsncmp): New declaration.
21625         * lib/wcsncmp.c: New file.
21626         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21627         * m4/wcsncmp.m4: New file.
21628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21631         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21632         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21633
21634 2011-02-05  Bruno Haible  <bruno@clisp.org>
21635
21636         New module 'wcscmp'.
21637         * modules/wcscmp: New file.
21638         * lib/wchar.in.h (wcscmp): New declaration.
21639         * lib/wcscmp.c: New file.
21640         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21641         * m4/wcscmp.m4: New file.
21642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21645         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21646         * doc/posix-functions/wcscmp.texi: Mention the new module.
21647
21648 2011-02-05  Bruno Haible  <bruno@clisp.org>
21649
21650         New module 'wcsncat'.
21651         * modules/wcsncat: New file.
21652         * lib/wchar.in.h (wcsncat): New declaration.
21653         * lib/wcsncat.c: New file.
21654         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21655         * m4/wcsncat.m4: New file.
21656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21659         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21660         * doc/posix-functions/wcsncat.texi: Mention the new module.
21661
21662 2011-02-05  Bruno Haible  <bruno@clisp.org>
21663
21664         New module 'wcscat'.
21665         * modules/wcscat: New file.
21666         * lib/wchar.in.h (wcscat): New declaration.
21667         * lib/wcscat.c: New file.
21668         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21669         * m4/wcscat.m4: New file.
21670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21673         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21674         * doc/posix-functions/wcscat.texi: Mention the new module.
21675
21676 2011-02-05  Bruno Haible  <bruno@clisp.org>
21677
21678         New module 'wcpncpy'.
21679         * modules/wcpncpy: New file.
21680         * lib/wchar.in.h (wcpncpy): New declaration.
21681         * lib/wcpncpy.c: New file.
21682         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21683         * m4/wcpncpy.m4: New file.
21684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21686         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21687         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21688         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21689
21690 2011-02-05  Bruno Haible  <bruno@clisp.org>
21691
21692         New module 'wcsncpy'.
21693         * modules/wcsncpy: New file.
21694         * lib/wchar.in.h (wcsncpy): New declaration.
21695         * lib/wcsncpy.c: New file.
21696         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21697         * m4/wcsncpy.m4: New file.
21698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21701         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21702         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21703
21704 2011-02-05  Bruno Haible  <bruno@clisp.org>
21705
21706         New module 'wcpcpy'.
21707         * modules/wcpcpy: New file.
21708         * lib/wchar.in.h (wcpcpy): New declaration.
21709         * lib/wcpcpy.c: New file.
21710         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21711         * m4/wcpcpy.m4: New file.
21712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21714         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21715         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21716         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21717
21718 2011-02-05  Bruno Haible  <bruno@clisp.org>
21719
21720         New module 'wcscpy'.
21721         * modules/wcscpy: New file.
21722         * lib/wchar.in.h (wcscpy): New declaration.
21723         * lib/wcscpy.c: New file.
21724         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21725         * m4/wcscpy.m4: New file.
21726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21729         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21730         * doc/posix-functions/wcscpy.texi: Mention the new module.
21731
21732 2011-02-05  Bruno Haible  <bruno@clisp.org>
21733
21734         New module 'wcsnlen'.
21735         * modules/wcsnlen: New file.
21736         * lib/wchar.in.h (wcsnlen): New declaration.
21737         * lib/wcsnlen.c: New file.
21738         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21739         * m4/wcsnlen.m4: New file.
21740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21743         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21744         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21745
21746 2011-02-05  Bruno Haible  <bruno@clisp.org>
21747
21748         New module 'wcslen'.
21749         * modules/wcslen: New file.
21750         * lib/wchar.in.h (wcslen): New declaration.
21751         * lib/wcslen.c: New file.
21752         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21753         * m4/wcslen.m4: New file.
21754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21757         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21758         * doc/posix-functions/wcslen.texi: Mention the new module.
21759
21760 2011-02-05  Bruno Haible  <bruno@clisp.org>
21761
21762         New module 'wmemset'.
21763         * modules/wmemset: New file.
21764         * lib/wchar.in.h (wmemset): New declaration.
21765         * lib/wmemset.c: New file.
21766         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21767         * m4/wmemset.m4: New file.
21768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21770         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21771         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21772         * doc/posix-functions/wmemset.texi: Mention the new module.
21773
21774 2011-02-05  Bruno Haible  <bruno@clisp.org>
21775
21776         New module 'wmemmove'.
21777         * modules/wmemmove: New file.
21778         * lib/wchar.in.h (wmemmove): New declaration.
21779         * lib/wmemmove.c: New file.
21780         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21781         * m4/wmemmove.m4: New file.
21782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21784         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21785         HAVE_WMEMMOVE.
21786         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21787         * doc/posix-functions/wmemmove.texi: Mention the new module.
21788
21789 2011-02-05  Bruno Haible  <bruno@clisp.org>
21790
21791         New module 'wmemcpy'.
21792         * modules/wmemcpy: New file.
21793         * lib/wchar.in.h (wmemcpy): New declaration.
21794         * lib/wmemcpy.c: New file.
21795         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21796         * m4/wmemcpy.m4: New file.
21797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21799         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21800         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21801         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21802
21803 2011-02-05  Bruno Haible  <bruno@clisp.org>
21804
21805         New module 'wmemcmp'.
21806         * modules/wmemcmp: New file.
21807         * lib/wchar.in.h (wmemcmp): New declaration.
21808         * lib/wmemcmp.c: New file.
21809         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21810         * m4/wmemcmp.m4: New file.
21811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21813         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21814         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21815         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21816
21817 2011-02-07  Jim Meyering  <meyering@redhat.com>
21818
21819         di-set, ino-map: new modules, from coreutils
21820         * lib/di-set.c: New file.
21821         * lib/di-set.h: Likewise.
21822         * lib/ino-map.c: Likewise.
21823         * lib/ino-map.h: Likewise.
21824         * modules/di-set: Likewise.
21825         * modules/di-set-tests: Likewise.
21826         * modules/ino-map: Likewise.
21827         * modules/ino-map-tests: Likewise.
21828         * tests/test-di-set.c: Likewise.
21829         * tests/test-ino-map.c: Likewise.
21830
21831 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21832
21833         getloadavg: merge minor changes from Emacs
21834
21835         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21836         (getloadavg): Use memset, not bzero.
21837
21838         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21839         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21840         clash (bug#86).
21841
21842 2010-11-14  Bruno Haible  <bruno@clisp.org>
21843
21844         Allow multiple gnulib generated replacements to coexist.
21845         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21846         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21847         * lib/langinfo.in.h (nl_item): Likewise.
21848         * lib/math.in.h (_NaN, NAN): Likewise.
21849         * lib/netdb.in.h (struct addrinfo): Likewise.
21850         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21851         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21852         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21853         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21854         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21855         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21856         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21857         pthread_mutexattr_init, pthread_mutexattr_settype,
21858         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21859         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21860         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21861         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21862         * lib/sched.in.h (struct sched_param): Likewise.
21863         * lib/se-selinux.in.h (security_class_t, security_context_t,
21864         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21865         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21866         lsetfilecon, fsetfilecon, security_check_context,
21867         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21868         Likewise.
21869         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21870         Likewise.
21871         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21872         _gl_function_taking_int_returning_void_t, union sigval,
21873         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21874         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21875         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21876         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21877         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21878         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21879         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21880         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21881         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21882         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21883         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21884         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21885         socklen_t, rpl_fd_isset): Likewise.
21886         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21887         * lib/sys_time.in.h (struct timeval): Likewise.
21888         * lib/sys_times.in.h (struct tms): Likewise.
21889         * lib/sys_utsname.in.h (struct utsname):
21890         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21891         * lib/unistd.in.h (getpagesize): Likewise.
21892         * lib/wchar.in.h (mbstate_t): Likewise.
21893         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21894         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21895         towlower, towupper): Likewise.
21896         Reported by Sam Steingold <sds@gnu.org>.
21897
21898 2011-02-05  Eric Blake  <eblake@redhat.com>
21899
21900         unsetenv: work around Haiku issues
21901         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21902         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21903
21904 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21905
21906         libposix: avoid calling error() within libposix
21907         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21908         is defined.
21909
21910 2011-02-05  Eric Blake  <eblake@redhat.com>
21911
21912         strerror_r-posix: port to cygwin
21913         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21914         implementation.
21915         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21916         * tests/test-strerror_r.c (main): Fix test.
21917         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21918         issue.
21919
21920 2011-02-05  Bruno Haible  <bruno@clisp.org>
21921
21922         New module 'wmemchr'.
21923         * modules/wmemchr: New file.
21924         * lib/wchar.in.h (wmemchr): New declaration.
21925         * lib/wmemchr.c: New file.
21926         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21927         * m4/wmemchr.m4: New file.
21928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21930         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21931         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21932         * doc/posix-functions/wmemchr.texi: Mention the new module.
21933
21934 2011-02-04  Eric Blake  <eblake@redhat.com>
21935
21936         fdopendir: detect FreeBSD bug
21937         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21938         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21939
21940 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21941
21942         stdbool: do not define HAVE_STDBOOL_H
21943         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21944         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21945         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21946         imported from the latest Autoconf git.  It was motivated by Emacs,
21947         which uses gnulib but does not need HAVE_STDBOOL_H.
21948
21949 2011-02-04  Bruno Haible  <bruno@clisp.org>
21950
21951         wcsnrtombs: Prepare for new module wwcsnrtombs.
21952         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21953         * lib/wcsnrtombs.c: Include it.
21954         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21955
21956         wcsrtombs: Prepare for new module wwcsrtombs.
21957         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21958         * lib/wcsrtombs.c: Include it.
21959         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21960
21961         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21962         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21963         * lib/mbsnrtowcs.c: Include it.
21964         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21965
21966         mbsrtowcs: Prepare for new module mbsrtowwcs.
21967         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21968         * lib/mbsrtowcs.c: Include it.
21969         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21970
21971 2011-02-04  Bruno Haible  <bruno@clisp.org>
21972
21973         vasnprintf: Reduce use of malloc for small format strings.
21974         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21975         (arguments): Add room for the first 7 arguments.
21976         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21977         (char_directives, u8_directives, u16_directives, u32_directives): Add
21978         room for the first 7 directives.
21979         * lib/printf-parse.c: Include <string.h>.
21980         (PRINTF_PARSE): Change memory handling code so that it uses the first
21981         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21982         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21983         Reported by Pádraig Brady <P@draigbrady.com>.
21984
21985 2011-01-31  Eric Blake  <eblake@redhat.com>
21986
21987         dup2: work around Haiku bug
21988         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21989         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21990         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21991         * tests/test-dup2.c (main): Enhance test.
21992
21993 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21994
21995         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21996         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21997         declared by eglibc 2.11.2.
21998         * lib/stdio.in.h: Likewise.
21999
22000 2011-01-31  Eric Blake  <eblake@redhat.com>
22001
22002         ignore-value: add missing test dependency
22003         * tests/test-ignore-value.c: Revert previous change; stdio.h
22004         provides off_t.
22005         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22006
22007 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22008
22009         mktime: clarify long_int width checking
22010         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22011         the top level, to make it clearer that the assumption about
22012         long_int width is being checked.  See
22013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22014
22015 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22016
22017         ignore-value: Fix self-test.
22018         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22019
22020 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22021
22022         TYPE_MAXIMUM: avoid theoretically undefined behavior
22023         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22024         negative number, which the C Standard says has undefined behavior.
22025         In practice this is not a problem, but might as well do it by the book.
22026         Reported by Rich Felker and Eric Blake; see
22027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22028         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22029         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22031         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22032         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22033         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22034
22035         mktime: #undef mktime before #defining it
22036         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22037
22038         mktime: systematically normalize tm_isdst comparisons
22039         * lib/mktime.c (isdst_differ): New function.
22040         (__mktime_internal): Use it systematically for all isdst comparisons.
22041         This completes the fix for libc BZ #6723, and removes the need for
22042         normalizing tm_isdst.  See
22043         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22044         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22045
22046         mktime: fix some integer overflow issues and sidestep the rest
22047
22048         This was prompted by a bug report by Benjamin Lindner for MinGW
22049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22050         His bug is due to signed integer overflow (0 - INT_MIN), and I
22051         I scanned through mktime.c looking for other integer overflow
22052         problems, fixing all the bugs I found.
22053
22054         Although the C Standard says the resulting code is still not safe
22055         in the presence of integer overflow, in practice it should be good
22056         enough for all real-world two's-complement implementations, except
22057         for debugging environments that deliberately trap on integer
22058         overflow (e.g., gcc -ftrapv).
22059
22060         * lib/mktime.c (WRAPV): New macro.
22061         (SHR): Also check that long_int and time_t shift right in the
22062         usual way, before using the fast-but-unportable method.
22063         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22064         used.  The code already assumed two's complement, so there's
22065         no need to test for alternatives.  All uses removed.
22066         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22067         the C standard.  Problem reported by Rich Felker in
22068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22069         (twos_complement_arithmetic): Also check long_int and time_t.
22070         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22071         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22072         (__mktime_internal): Avoid integer overflow with unary subtraction
22073         in two instances where -1 - X is an adequate replacement for -X,
22074         since the calculations are approximate.
22075
22076 2011-01-29  Eric Blake  <eblake@redhat.com>
22077
22078         mktime: avoid infinite loop
22079         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22080         type; behavior is still undefined but portable to all known targets.
22081         Reported by Rich Felker.
22082
22083 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22084
22085         rename, unlink, same-inode: Relicense.
22086         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22087         * modules/unlink (License): Likewise.
22088         * modules/same-inode (License): Likewise.
22089
22090 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22091
22092         mktime: avoid problems on NetBSD 5 / i386
22093         * lib/mktime.c (long_int): New type.  This works around a problem
22094         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22095         but time_t is 64 bits, and where I expect the existing code is
22096         wrong in some cases.
22097         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22098         (ydhms_diff): Bring back the compile-time check for wide-enough
22099         year and yday.
22100
22101         mktime: fix misspelling in comment
22102         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22103         This merges all recent glibc changes of importance.
22104
22105 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22106
22107         move-if-change: cope with concurrent mv of identical file.
22108         * build-aux/move-if-change (CMPPROG): Accept environment
22109         variable as an override for `cmp'.
22110         (usage): Document CMPPROG.
22111         Adjust comparison to drop stdout.  Cope with failure of mv if
22112         the target file exists and is identical to the source, for
22113         parallel builds.
22114         Report from H.J. Lu against binutils in PR binutils/12283.
22115
22116 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22117
22118         * users.txt: Mention sharutils.
22119
22120 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22121
22122         * users.txt: Mention OATH Toolkit.
22123
22124 2011-01-27  Bruno Haible  <bruno@clisp.org>
22125
22126         Prepare for supporting FreeBSD 10.
22127         * build-aux/config.libpath: Remove handling of freebsd1*.
22128
22129 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22130
22131         Prepare for supporting FreeBSD 10.
22132         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22133         match FreeBSD 10.0.
22134
22135 2011-01-27  Bruno Haible  <bruno@clisp.org>
22136
22137         vma-iter, get-rusage-as: Add OpenBSD support.
22138         * modules/vma-iter (configure.ac): Test for mquery.
22139         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22140         * lib/vma-iter.c: Include <sys/mman.h>.
22141         (vma_iterate): Add an implementation based on mquery().
22142         * lib/resource-ext.h (get_rusage_as): Update comments.
22143         * lib/get-rusage-as.c: Likewise.
22144         * lib/get-rusage-data.c: Likewise.
22145
22146 2011-01-26  Karl Berry  <karl@gnu.org>
22147
22148         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22149         variables to make it easier to override the makeinfo program used.
22150
22151 2011-01-26  Eric Blake  <eblake@redhat.com>
22152
22153         fcntl: work around Haiku F_DUPFD bugs
22154         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22155         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22156         cloexec bit on duplication.
22157         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22158
22159 2011-01-26  Bruno Haible  <bruno@clisp.org>
22160
22161         Enable memory leak tests on AIX.
22162         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22163         * tests/test-fprintf-posix3.c (main): Likewise.
22164
22165 2011-01-26  Bruno Haible  <bruno@clisp.org>
22166
22167         Tests for module 'get-rusage-data'.
22168         * modules/get-rusage-data-tests: New file.
22169         * tests/test-get-rusage-data.c: New file.
22170
22171         New module 'get-rusage-data'.
22172         * lib/resource-ext.h (get_rusage_data): New declaration.
22173         * lib/get-rusage-data.c: New file.
22174         * modules/get-rusage-data: New file.
22175
22176 2011-01-25  Bruno Haible  <bruno@clisp.org>
22177
22178         get-rusage-as: Allow for easier testing.
22179         * lib/resource-ext.h (get_rusage_as): Add comment.
22180         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22181         (main): New function for interactive testing.
22182
22183 2011-01-25  Bruno Haible  <bruno@clisp.org>
22184
22185         vma-iter: Treat Haiku like BeOS.
22186         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22187         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22188
22189 2011-01-25  Eric Blake  <eblake@redhat.com>
22190
22191         c-stack: fix regression on cygwin when libsigsegv is present
22192         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22193
22194 2011-01-24  Bruno Haible  <bruno@clisp.org>
22195
22196         vma-iter: Avoid empty intervals.
22197         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22198         on an empty interval.
22199
22200 2011-01-24  Jim Meyering  <meyering@redhat.com>
22201
22202         u64: remove unnecessary #include
22203         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22204
22205 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22206
22207         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22208         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22209
22210 2011-01-23  Bruno Haible  <bruno@clisp.org>
22211
22212         New module 'vma-iter'.
22213         * lib/vma-iter.h: New file.
22214         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22215         * modules/vma-iter: New file.
22216         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22217         for get_rusage_as_via_iterator.
22218         (vma_iterate_callback): New function.
22219         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22220         * modules/get-rusage-as (Depends-on): Add vma-iter.
22221
22222 2011-01-23  Bruno Haible  <bruno@clisp.org>
22223
22224         uninorm: Tweak includes.
22225         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22226         Reported by Jim Meyering.
22227
22228 2011-01-23  Bruno Haible  <bruno@clisp.org>
22229
22230         get-rusage-as: Improve on NetBSD.
22231         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22232         /proc, like on FreeBSD.
22233
22234 2011-01-23  Jim Meyering  <meyering@redhat.com>
22235
22236         xreadlink.h: remove unnecessary #include
22237         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22238
22239         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22240         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22241
22242 2011-01-23  Bruno Haible  <bruno@clisp.org>
22243
22244         get-rusage-as: Fix bug.
22245         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22246         original limit when aborting the first loop.
22247
22248 2011-01-23  Bruno Haible  <bruno@clisp.org>
22249
22250         wctype: Ensure valid C syntax.
22251         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22252         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22253
22254 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22255
22256         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22258         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22259         as they are needed only for configure's test case.
22260         This removes two unnecessary symbols from config.h.
22261
22262         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22263         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22265         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22266         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22268         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22269         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22270         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22271         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22272         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22274         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22275         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22276         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22277         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22278         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22279         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22280
22281 2011-01-21  Eric Blake  <eblake@redhat.com>
22282
22283         maintainer-makefile: work with older git for submodule check
22284         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22285         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22286         Reported by Matthias Bolte.
22287
22288         bootstrap: minor portability fixes
22289         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22290         (usage): Omit leading capital and trailing . on help phrases, per
22291         GNU Coding Standards.
22292         (check_versions, top level): Prefix messages with script name.
22293
22294 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22295
22296         bootstrap: support --no-git option
22297         * build-aux/bootstrap: Add --no-git option, to be used when
22298         --gnulib-srcdir points to the exact desired checkout.
22299
22300 2011-01-21  Eric Blake  <eblake@redhat.com>
22301
22302         strerror_r-posix: work with glibc 2.13
22303         * lib/strerror_r.c (strerror_r): Fix return type.
22304
22305 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22306             Bruno Haible  <bruno@clisp.org>
22307
22308         uN_strstr: New unit tests.
22309         * modules/unistr/u8-strstr-tests: New file.
22310         * modules/unistr/u16-strstr-tests: New file.
22311         * modules/unistr/u32-strstr-tests: New file.
22312         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22313         * tests/unistr/test-u8-strstr.c: New file.
22314         * tests/unistr/test-u16-strstr.c: New file.
22315         * tests/unistr/test-u32-strstr.c: New file.
22316
22317 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22318             Bruno Haible  <bruno@clisp.org>
22319
22320         Make uN_strstr functions O(n) worst-case.
22321         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22322         16-bit and 32-bit unit cases, use the unibyte algorithm from
22323         lib/mbsstr.c.
22324         * lib/unistr/u8-strstr.c: Include <string.h>.
22325         (UNIT_IS_UINT8_T): New macro.
22326         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22327         (U_STRLEN, U_STRNLEN): New macros.
22328         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22329         (U_STRLEN, U_STRNLEN): New macros.
22330         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22331         (configure.ac): Update required libunistring version.
22332         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22333         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22334         malloca.
22335         (configure.ac): Update required libunistring version.
22336         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22337         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22338         malloca.
22339         (configure.ac): Update required libunistring version.
22340
22341 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22342             Bruno Haible  <bruno@clisp.org>
22343
22344         Prepare for faster uN_strstr functions.
22345         * lib/str-kmp.h: Support definable UNITs.
22346         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22347         needle_len argument.
22348         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22349         * lib/mbscasestr.c (mbscasestr): Likewise.
22350
22351 2011-01-21  Pádraig Brady <P@draigBrady.com>
22352
22353         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22354         * tests/test-malloca.c (main): Unset the environment variable
22355         to greatly speed up the test.
22356         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22357         * modules/malloca-tests: Depend on unsetenv.
22358
22359 2011-01-21  Pádraig Brady <P@draigBrady.com>
22360
22361         ignore-value: remove stdint dependency
22362         * lib/ignore-value.h: Remove <stdint.h>
22363         * modules/ignore-value: Remove stdint dependency.
22364
22365 2011-01-21  Jim Meyering  <meyering@redhat.com>
22366
22367         maint.mk: adjust variable name to be consistent with other gl_ vars
22368         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22369         to be lower case.
22370
22371 2011-01-20  Jim Meyering  <meyering@redhat.com>
22372
22373         maint.mk: make "check" depend on public-submodule-commit by default
22374         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22375
22376 2011-01-20  Bruno Haible  <bruno@clisp.org>
22377
22378         mbfile, mbiter: Complete change from 2008-12-21.
22379         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22380         * m4/mbiter.m4 (gl_MBITER): Likewise.
22381
22382 2011-01-20  Jim Meyering  <meyering@redhat.com>
22383
22384         init.sh: insert space between each function name and "()"
22385         * tests/init.sh: Make it a little easier to see that a function's
22386         name is "warn_", and not "warn" when looking at the first part of
22387         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22388
22389 2011-01-20  Jim Meyering  <meyering@redhat.com>
22390
22391         mountlist: clean up code formatting
22392         * lib/mountlist.c (read_file_system_list): Split a long line,
22393         correct bracing style, use NULL in place of "(struct statfs *)0",
22394         don't parenthesize return value, add spaces around "=" and after
22395         ";-in-for-stmt".
22396
22397 2011-01-14  Markus Duft <mduft@gentoo.org>
22398
22399         mountlist: add support for Interix
22400         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22401         Apply statvfs to all entries of /dev/fs.
22402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22403         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22404
22405 2011-01-20  Jim Meyering  <meyering@redhat.com>
22406
22407         maint.mk: improve the public-submodule-commit rule
22408         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22409         to suppress printing of its commands... unless V=1.
22410         Add git submodule's --quiet option to suppress printing of e.g.,
22411         "Entering gnulib" output.
22412         "cd" into $(srcdir) before running git submodule.
22413
22414 2011-01-20  Bruno Haible  <bruno@clisp.org>
22415
22416         include_next: Fix bug introduced on 2011-01-18.
22417         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22418         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22419         ac_cv_header_... variable if the second argument is not 'check'.
22420         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22421         gl_NEXT_HEADERS_INTERNAL.
22422
22423 2011-01-20  Bruno Haible  <bruno@clisp.org>
22424
22425         Allow the user to avoid the GNULIB_TEST_* macros.
22426         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22427         Suggested by Paul Eggert.
22428
22429 2011-01-14  Jim Meyering  <meyering@redhat.com>
22430
22431         bootstrap: avoid failure when there is no .gitmodules file
22432         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22433         has been assigned to, even when its value is the empty string.
22434         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22435         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22436         Reported by John W. Eaton <jwe@gnu.org>.
22437
22438 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22439
22440         assume <ctype.h>, ..., <time.h> exist
22441         For years gnulib has been assuming the existence of the headers
22442         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22443         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22444         them, since they don't appear to be needed.
22445         * README (Portability guidelines): Document this.
22446         * lib/flock.c: Assume <fcntl.h> exists.
22447         * lib/regex_internal.h: Assume <locale.h> exists.
22448         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22449         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22450         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22451         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22452         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22453         * m4/regex.m4 (gl_REGEX): Likewise.
22454         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22455         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22456         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22457         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22458         * tests/test-argp.c: Likewise.
22459         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22460
22461         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22462         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22463         AA_APPLE_UNIVERSAL_BUILD.  See
22464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22465         * NEWS: Document this.
22466
22467 2011-01-19  Eric Blake  <eblake@redhat.com>
22468
22469         c-stack: assume stack overflow if SA_SIGINFO unsupported
22470         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22471         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22472         sigaction will work.
22473         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22474         behavior match Linux.
22475         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22476
22477         stdbool-tests: accommodate Haiku
22478         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22479
22480         binary-io: fix O_TEXT on Haiku
22481         * modules/binary-io (Depends-on): Add fcntl-h.
22482         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22483         than blindly undefining O_TEXT.
22484         Reported by Scott McCreary.
22485
22486 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         include_next: do not check for standard headers like stddef.h
22489
22490         I found this problem when modifying Emacs to use gnulib.
22491         I noticed that it added HAVE_STDDEF_H to config.h, even though
22492         gnulib always assumes <stddef.h> exists as per README and this
22493         symbol is unnecessary.
22494         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22495         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22496         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22497         faster for headers like stddef.h that are known to exist.
22498         (gl_CHECK_NEXT_HEADERS): Use it.
22499         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22500         rather than gl_CHECK_NEXT_HEADERS.
22501         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22502         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22503
22504 2011-01-18  Eric Blake  <eblake@redhat.com>
22505
22506         ansi-c++-opt: skip C++ dependency style if C++ is unused
22507         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22508         tests when we know C++ compilation is not desired.
22509         Reported by Scott McCreary.
22510
22511 2011-01-18  Bruno Haible  <bruno@clisp.org>
22512
22513         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22514         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22515         (main): Perform test also when getrlimit and setrlimit don't exist or
22516         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22517         limiting the address space size using setrlimit, compare the address
22518         space size before and after the the test.
22519         * tests/test-dprintf-posix2.c: Likewise.
22520         * tests/test-fprintf-posix3.sh: Update skip messages.
22521         * tests/test-dprintf-posix2.sh: Likewise.
22522         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22523         * modules/dprintf-posix-tests (Depends-on): Likewise.
22524         Reported by Bruce Korb <bkorb@gnu.org> and
22525         Gary V. Vaughan <gary@gnu.org>.
22526
22527 2011-01-18  Bruno Haible  <bruno@clisp.org>
22528
22529         get-rusage-as: Improvement for Cygwin.
22530         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22531         areas that are merely reserved.
22532
22533 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22534
22535         strftime: remove dependencies on multibyte modules
22536
22537         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22538         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22539         only if __osf__ is defined, and I suspect OSF doesn't need these
22540         other modules.  If my guess is wrong, we'll need to come up with a
22541         variant of strftime that doesn't need the multibyte modules.
22542
22543         I discovered this problem when attempting modify Emacs to use the
22544         strftime module.  With the previous gnulib, this caused Emacs to
22545         need 31 new files, ranging from lib/config.charset to
22546         m4/wint_t.m4.  This was overkill and I expect would be offputting
22547         to the Emacs maintainers.  After this change, only 6 new files are
22548         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22549         stdbool.m4, and tm_gmtoff.m4.
22550
22551         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22552         Suggested by Bruno Haible in
22553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22554         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22555         and do not check for wchar.h.
22556         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22557         (Depends-on): Remove mbrlen, mbsinit, wchar.
22558
22559 2011-01-18  Bruno Haible  <bruno@clisp.org>
22560
22561         Tests for module 'get-rusage-as'.
22562         * modules/get-rusage-as-tests: New file.
22563         * tests/test-get-rusage-as.c: New file.
22564
22565         New module 'get-rusage-as'.
22566         * modules/get-rusage-as: New file.
22567         * lib/resource-ext.h: New file.
22568         * lib/get-rusage-as.c: New file.
22569
22570 2011-01-17  Eric Blake  <eblake@redhat.com>
22571
22572         sigaction: relax license from LGPLv3+ to LGPLv2+
22573         * modules/sigaction (License): Relax to LGPLv2+.
22574
22575 2011-01-14  Bruno Haible  <bruno@clisp.org>
22576
22577         filemode: Make function declarations usable in C++ mode.
22578         * lib/filemode.h: Enclose function declarations in extern "C" block.
22579         Reported by John W. Eaton <jwe@gnu.org>.
22580
22581 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22582
22583         save-cwd: no longer include "xgetcwd.h"
22584         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22585         This avoids a compilation failure in projects that use save-cwd
22586         without also using the xgetcwd module.
22587
22588 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22589
22590         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22591         This is so that a program like Emacs, which needs only dtoastr,
22592         does not have to bother with distributing and compiling ftoastr
22593         and ldtoastr.
22594         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22595         * modules/dtoastr, modules/ldtoastr: New files.
22596         * modules/ftoastr: Now works just for 'float'.
22597         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22598         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22599         dtoastr.c, ldtoastr.c.
22600
22601 2011-01-11  Jim Meyering  <meyering@redhat.com>
22602
22603         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22604         There is no need to work around the lack of the fchdir function,
22605         since gnulib can now provide a replacement when required.
22606         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22607         * modules/save-cwd (Depends-on): Add fchdir.
22608
22609 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22610
22611         openat, save-cwd: avoid xmalloc
22612
22613         This removes a direct (but undocumented) dependency of openat on
22614         xalloc, along with an indirect dependency via save-cwd.  It also
22615         removes a dependency of save-cwd on xgetcwd, and thereby
22616         indirectly on xalloc.  This change causes the openat substitute
22617         to fall back on save_cwd when memory is tight, and for save_cwd to
22618         fail instead of dying when memory is tight, but that's good enough.
22619         Problem and initial idea for fix reported by Bastien Roucaries in
22620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22621
22622         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22623         xalloc.h (for xmalloc).
22624         (openat_proc_name): Use malloc, not xmalloc.
22625         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22626         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22627
22628         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22629         This avoids heap allocation for file names whose lengths are in
22630         the range 512..1023, with the upper bound increasing to at most
22631         4031 depending on the platform's PATH_MAX.  (We do not want
22632         pathmax.h here as it might supply a non-constant PATH_MAX.)
22633         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22634         Perhaps they should be moved to malloca.h?
22635         (OPENAT_BUFFER_SIZE): Use them.
22636
22637 2011-01-10  Bruno Haible  <bruno@clisp.org>
22638
22639         doc: Update users.txt.
22640         * users.txt: Add recutils.
22641
22642 2011-01-09  Karl Berry  <karl@gnu.org>
22643
22644         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22645
22646         * doc/configmake.texi: New file.
22647         * doc/gnulib.texi: Include it.
22648         * modules/configmake: Move documentation from here.
22649
22650 2011-01-09  Bruno Haible  <bruno@clisp.org>
22651
22652         Update to Unicode 6.0.0.
22653         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22654         (get_lbp): Update for Unicode 6.0.0.
22655         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22656         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22657         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22658         U+11001, U+11038..U+11046. Remove U+06DE.
22659         (uc_width): Fix bounds of planes.
22660         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22661         lib/uniwidth/width.c.
22662         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22663         trailing whitespace removed.
22664         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22665         without comments, but with the original copyright notice.
22666         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22667         * lib/unicase/ignorable.h: Likewise.
22668         * lib/unicase/tocasefold.h: Likewise.
22669         * lib/unicase/tolower.h: Likewise.
22670         * lib/unicase/totitle.h: Likewise.
22671         * lib/unicase/toupper.h: Likewise.
22672         * lib/unictype/bidi_of.h: Likewise.
22673         * lib/unictype/blocks.h: Likewise.
22674         * lib/unictype/categ_C.h: Likewise.
22675         * lib/unictype/categ_Cn.h: Likewise.
22676         * lib/unictype/categ_L.h: Likewise.
22677         * lib/unictype/categ_Ll.h: Likewise.
22678         * lib/unictype/categ_Lm.h: Likewise.
22679         * lib/unictype/categ_Lo.h: Likewise.
22680         * lib/unictype/categ_Lu.h: Likewise.
22681         * lib/unictype/categ_M.h: Likewise.
22682         * lib/unictype/categ_Mc.h: Likewise.
22683         * lib/unictype/categ_Me.h: Likewise.
22684         * lib/unictype/categ_Mn.h: Likewise.
22685         * lib/unictype/categ_N.h: Likewise.
22686         * lib/unictype/categ_Nd.h: Likewise.
22687         * lib/unictype/categ_No.h: Likewise.
22688         * lib/unictype/categ_P.h: Likewise.
22689         * lib/unictype/categ_Po.h: Likewise.
22690         * lib/unictype/categ_S.h: Likewise.
22691         * lib/unictype/categ_Sc.h: Likewise.
22692         * lib/unictype/categ_Sk.h: Likewise.
22693         * lib/unictype/categ_Sm.h: Likewise.
22694         * lib/unictype/categ_So.h: Likewise.
22695         * lib/unictype/categ_of.h: Likewise.
22696         * lib/unictype/combining.h: Likewise.
22697         * lib/unictype/ctype_alnum.h: Likewise.
22698         * lib/unictype/ctype_alpha.h: Likewise.
22699         * lib/unictype/ctype_graph.h: Likewise.
22700         * lib/unictype/ctype_lower.h: Likewise.
22701         * lib/unictype/ctype_print.h: Likewise.
22702         * lib/unictype/ctype_punct.h: Likewise.
22703         * lib/unictype/ctype_upper.h: Likewise.
22704         * lib/unictype/decdigit.h: Likewise.
22705         * lib/unictype/digit.h: Likewise.
22706         * lib/unictype/numeric.h: Likewise.
22707         * lib/unictype/pr_alphabetic.h: Likewise.
22708         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22709         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22710         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22711         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22712         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22713         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22714         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22715         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22716         * lib/unictype/pr_case_ignorable.h: Likewise.
22717         * lib/unictype/pr_cased.h: Likewise.
22718         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22719         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22720         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22721         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22722         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22723         * lib/unictype/pr_combining.h: Likewise.
22724         * lib/unictype/pr_composite.h: Likewise.
22725         * lib/unictype/pr_currency_symbol.h: Likewise.
22726         * lib/unictype/pr_decimal_digit.h: Likewise.
22727         * lib/unictype/pr_deprecated.h: Likewise.
22728         * lib/unictype/pr_format_control.h: Likewise.
22729         * lib/unictype/pr_grapheme_base.h: Likewise.
22730         * lib/unictype/pr_grapheme_extend.h: Likewise.
22731         * lib/unictype/pr_grapheme_link.h: Likewise.
22732         * lib/unictype/pr_id_continue.h: Likewise.
22733         * lib/unictype/pr_id_start.h: Likewise.
22734         * lib/unictype/pr_ideographic.h: Likewise.
22735         * lib/unictype/pr_lowercase.h: Likewise.
22736         * lib/unictype/pr_math.h: Likewise.
22737         * lib/unictype/pr_numeric.h: Likewise.
22738         * lib/unictype/pr_other_alphabetic.h: Likewise.
22739         * lib/unictype/pr_other_id_continue.h: Likewise.
22740         * lib/unictype/pr_other_math.h: Likewise.
22741         * lib/unictype/pr_punctuation.h: Likewise.
22742         * lib/unictype/pr_sentence_terminal.h: Likewise.
22743         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22744         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22745         * lib/unictype/pr_unified_ideograph.h: Likewise.
22746         * lib/unictype/pr_uppercase.h: Likewise.
22747         * lib/unictype/pr_xid_continue.h: Likewise.
22748         * lib/unictype/pr_xid_start.h: Likewise.
22749         * lib/unictype/scripts.h: Likewise.
22750         * lib/unictype/scripts_byname.gperf: Likewise.
22751         * lib/unictype/sy_java_ident.h: Likewise.
22752         * lib/unigbrk/gbrkprop.h: Likewise.
22753         * lib/unilbrk/lbrkprop1.h: Likewise.
22754         * lib/unilbrk/lbrkprop2.h: Likewise.
22755         * lib/uninorm/decomposition-table2.h: Likewise.
22756         * lib/uniwbrk/wbrkprop.h: Likewise.
22757         * tests/unicase/test-cased.c: Likewise.
22758         * tests/unicase/test-ignorable.c: Likewise.
22759         * tests/unicase/test-uc_tolower.c: Likewise.
22760         * tests/unicase/test-uc_totitle.c: Likewise.
22761         * tests/unicase/test-uc_toupper.c: Likewise.
22762         * tests/unictype/test-categ_C.c: Likewise.
22763         * tests/unictype/test-categ_Cn.c: Likewise.
22764         * tests/unictype/test-categ_L.c: Likewise.
22765         * tests/unictype/test-categ_Ll.c: Likewise.
22766         * tests/unictype/test-categ_Lm.c: Likewise.
22767         * tests/unictype/test-categ_Lo.c: Likewise.
22768         * tests/unictype/test-categ_Lu.c: Likewise.
22769         * tests/unictype/test-categ_M.c: Likewise.
22770         * tests/unictype/test-categ_Mc.c: Likewise.
22771         * tests/unictype/test-categ_Me.c: Likewise.
22772         * tests/unictype/test-categ_Mn.c: Likewise.
22773         * tests/unictype/test-categ_N.c: Likewise.
22774         * tests/unictype/test-categ_Nd.c: Likewise.
22775         * tests/unictype/test-categ_No.c: Likewise.
22776         * tests/unictype/test-categ_P.c: Likewise.
22777         * tests/unictype/test-categ_Po.c: Likewise.
22778         * tests/unictype/test-categ_S.c: Likewise.
22779         * tests/unictype/test-categ_Sc.c: Likewise.
22780         * tests/unictype/test-categ_Sk.c: Likewise.
22781         * tests/unictype/test-categ_Sm.c: Likewise.
22782         * tests/unictype/test-categ_So.c: Likewise.
22783         * tests/unictype/test-ctype_alnum.c: Likewise.
22784         * tests/unictype/test-ctype_alpha.c: Likewise.
22785         * tests/unictype/test-ctype_graph.c: Likewise.
22786         * tests/unictype/test-ctype_lower.c: Likewise.
22787         * tests/unictype/test-ctype_print.c: Likewise.
22788         * tests/unictype/test-ctype_punct.c: Likewise.
22789         * tests/unictype/test-ctype_upper.c: Likewise.
22790         * tests/unictype/test-decdigit.h: Likewise.
22791         * tests/unictype/test-digit.h: Likewise.
22792         * tests/unictype/test-numeric.h: Likewise.
22793         * tests/unictype/test-pr_alphabetic.c: Likewise.
22794         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22795         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22796         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22797         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22798         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22799         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22801         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22802         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22803         * tests/unictype/test-pr_cased.c: Likewise.
22804         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22805         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22806         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22807         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22808         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22809         * tests/unictype/test-pr_combining.c: Likewise.
22810         * tests/unictype/test-pr_composite.c: Likewise.
22811         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22812         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22813         * tests/unictype/test-pr_deprecated.c: Likewise.
22814         * tests/unictype/test-pr_format_control.c: Likewise.
22815         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22816         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22817         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22818         * tests/unictype/test-pr_id_continue.c: Likewise.
22819         * tests/unictype/test-pr_id_start.c: Likewise.
22820         * tests/unictype/test-pr_ideographic.c: Likewise.
22821         * tests/unictype/test-pr_lowercase.c: Likewise.
22822         * tests/unictype/test-pr_math.c: Likewise.
22823         * tests/unictype/test-pr_numeric.c: Likewise.
22824         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22825         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22826         * tests/unictype/test-pr_other_math.c: Likewise.
22827         * tests/unictype/test-pr_punctuation.c: Likewise.
22828         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22829         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22830         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22831         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22832         * tests/unictype/test-pr_uppercase.c: Likewise.
22833         * tests/unictype/test-pr_xid_continue.c: Likewise.
22834         * tests/unictype/test-pr_xid_start.c: Likewise.
22835         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22836         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22837         changes.
22838         * lib/unictype/categ_Cc.h: Likewise.
22839         * lib/unictype/categ_Cf.h: Likewise.
22840         * lib/unictype/categ_Co.h: Likewise.
22841         * lib/unictype/categ_Cs.h: Likewise.
22842         * lib/unictype/categ_Lt.h: Likewise.
22843         * lib/unictype/categ_Nl.h: Likewise.
22844         * lib/unictype/categ_Pc.h: Likewise.
22845         * lib/unictype/categ_Pd.h: Likewise.
22846         * lib/unictype/categ_Pe.h: Likewise.
22847         * lib/unictype/categ_Pf.h: Likewise.
22848         * lib/unictype/categ_Pi.h: Likewise.
22849         * lib/unictype/categ_Ps.h: Likewise.
22850         * lib/unictype/categ_Z.h: Likewise.
22851         * lib/unictype/categ_Zl.h: Likewise.
22852         * lib/unictype/categ_Zp.h: Likewise.
22853         * lib/unictype/categ_Zs.h: Likewise.
22854         * lib/unictype/ctype_blank.h: Likewise.
22855         * lib/unictype/ctype_cntrl.h: Likewise.
22856         * lib/unictype/ctype_digit.h: Likewise.
22857         * lib/unictype/ctype_space.h: Likewise.
22858         * lib/unictype/ctype_xdigit.h: Likewise.
22859         * lib/unictype/mirror.h: Likewise.
22860         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22861         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22862         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22863         * lib/unictype/pr_bidi_control.h: Likewise.
22864         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22865         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22866         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22867         * lib/unictype/pr_bidi_pdf.h: Likewise.
22868         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22869         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22870         * lib/unictype/pr_dash.h: Likewise.
22871         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22872         * lib/unictype/pr_diacritic.h: Likewise.
22873         * lib/unictype/pr_extender.h: Likewise.
22874         * lib/unictype/pr_hex_digit.h: Likewise.
22875         * lib/unictype/pr_hyphen.h: Likewise.
22876         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22877         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22878         * lib/unictype/pr_ignorable_control.h: Likewise.
22879         * lib/unictype/pr_iso_control.h: Likewise.
22880         * lib/unictype/pr_join_control.h: Likewise.
22881         * lib/unictype/pr_left_of_pair.h: Likewise.
22882         * lib/unictype/pr_line_separator.h: Likewise.
22883         * lib/unictype/pr_logical_order_exception.h: Likewise.
22884         * lib/unictype/pr_non_break.h: Likewise.
22885         * lib/unictype/pr_not_a_character.h: Likewise.
22886         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22887         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22888         * lib/unictype/pr_other_id_start.h: Likewise.
22889         * lib/unictype/pr_other_lowercase.h: Likewise.
22890         * lib/unictype/pr_other_uppercase.h: Likewise.
22891         * lib/unictype/pr_paired_punctuation.h: Likewise.
22892         * lib/unictype/pr_paragraph_separator.h: Likewise.
22893         * lib/unictype/pr_pattern_syntax.h: Likewise.
22894         * lib/unictype/pr_pattern_white_space.h: Likewise.
22895         * lib/unictype/pr_private_use.h: Likewise.
22896         * lib/unictype/pr_quotation_mark.h: Likewise.
22897         * lib/unictype/pr_radical.h: Likewise.
22898         * lib/unictype/pr_soft_dotted.h: Likewise.
22899         * lib/unictype/pr_space.h: Likewise.
22900         * lib/unictype/pr_titlecase.h: Likewise.
22901         * lib/unictype/pr_variation_selector.h: Likewise.
22902         * lib/unictype/pr_white_space.h: Likewise.
22903         * lib/unictype/pr_zero_width.h: Likewise.
22904         * lib/unictype/sy_c_ident.h: Likewise.
22905         * lib/unictype/sy_c_whitespace.h: Likewise.
22906         * lib/unictype/sy_java_whitespace.h: Likewise.
22907         * lib/uninorm/composition-table.gperf: Likewise.
22908         * lib/uninorm/decomposition-table1.h: Likewise.
22909         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22910         LB8.
22911         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22912         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22913         * modules/unictype/*: Bump version number of expected libunistring
22914         version.
22915
22916 2011-01-09  Bruno Haible  <bruno@clisp.org>
22917
22918         Update to Unicode 5.2.0.
22919         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22920         trailing whitespace removed.
22921
22922 2011-01-09  Bruno Haible  <bruno@clisp.org>
22923
22924         New Unicode character properties, from Unicode 5.2.0.
22925         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22926         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22927         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22928         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22929         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22930         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22931         uc_is_property_cased, uc_is_property_case_ignorable,
22932         uc_is_property_changes_when_lowercased,
22933         uc_is_property_changes_when_uppercased,
22934         uc_is_property_changes_when_titlecased,
22935         uc_is_property_changes_when_casefolded,
22936         uc_is_property_changes_when_casemapped): New declarations.
22937         * lib/unictype/pr_byname.gperf: Add the new properties.
22938         * modules/unictype/property-byname (Depends-on): Depend on the new
22939         properties modules.
22940         * modules/unictype/property-all (Depends-on): Likewise.
22941         * MODULES.html.sh (Unicode string functions): Add
22942         unictype/property-case-ignorable, unictype/property-cased,
22943         unictype/property-changes-when-casefolded,
22944         unictype/property-changes-when-casemapped,
22945         unictype/property-changes-when-lowercased,
22946         unictype/property-changes-when-titlecased,
22947         unictype/property-changes-when-uppercased.
22948
22949         New module 'unictype/property-changes-when-casemapped'.
22950         * modules/unictype/property-changes-when-casemapped: New file.
22951         * lib/unictype/pr_changes_when_casemapped.c: New file.
22952         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22953         generated by gen-uni-tables.
22954         * modules/unictype/property-changes-when-casemapped-tests: New file.
22955         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22956         automatically generated by gen-uni-tables.
22957
22958         New module 'unictype/property-changes-when-casefolded'.
22959         * modules/unictype/property-changes-when-casefolded: New file.
22960         * lib/unictype/pr_changes_when_casefolded.c: New file.
22961         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22962         generated by gen-uni-tables.
22963         * modules/unictype/property-changes-when-casefolded-tests: New file.
22964         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22965         automatically generated by gen-uni-tables.
22966
22967         New module 'unictype/property-changes-when-titlecased'.
22968         * modules/unictype/property-changes-when-titlecased: New file.
22969         * lib/unictype/pr_changes_when_titlecased.c: New file.
22970         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22971         generated by gen-uni-tables.
22972         * modules/unictype/property-changes-when-titlecased-tests: New file.
22973         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22974         automatically generated by gen-uni-tables.
22975
22976         New module 'unictype/property-changes-when-uppercased'.
22977         * modules/unictype/property-changes-when-uppercased: New file.
22978         * lib/unictype/pr_changes_when_uppercased.c: New file.
22979         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22980         generated by gen-uni-tables.
22981         * modules/unictype/property-changes-when-uppercased-tests: New file.
22982         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22983         automatically generated by gen-uni-tables.
22984
22985         New module 'unictype/property-changes-when-lowercased'.
22986         * modules/unictype/property-changes-when-lowercased: New file.
22987         * lib/unictype/pr_changes_when_lowercased.c: New file.
22988         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22989         generated by gen-uni-tables.
22990         * modules/unictype/property-changes-when-lowercased-tests: New file.
22991         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22992         automatically generated by gen-uni-tables.
22993
22994         New module 'unictype/property-case-ignorable'.
22995         * modules/unictype/property-case-ignorable: New file.
22996         * lib/unictype/pr_case_ignorable.c: New file.
22997         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22998         by gen-uni-tables.
22999         * modules/unictype/property-case-ignorable-tests: New file.
23000         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23001         generated by gen-uni-tables.
23002
23003         New module 'unictype/property-cased'.
23004         * modules/unictype/property-cased: New file.
23005         * lib/unictype/pr_cased.c: New file.
23006         * lib/unictype/pr_cased.h: New file, automatically generated by
23007         gen-uni-tables.
23008         * modules/unictype/property-cased-tests: New file.
23009         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23010         gen-uni-tables.
23011
23012 2011-01-09  Bruno Haible  <bruno@clisp.org>
23013
23014         Update to Unicode 5.2.0.
23015         * lib/gen-uni-tables.c (output_predicate, output_category,
23016         output_combclass, output_bidi_category, output_decimal_digit_test,
23017         output_decimal_digit, output_digit_test, output_digit,
23018         output_numeric_test, output_numeric, output_mirror, output_scripts,
23019         output_scripts_byname, output_blocks, output_ident_category): Fix
23020         comment header.
23021         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23022         get_wbp.
23023         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23024         items.
23025         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23026         Changes_When_Lowercased, Changes_When_Uppercased,
23027         Changes_When_Titlecased, Changes_When_Casefolded,
23028         Changes_When_Casemapped.
23029         (is_property_alphabetic, is_property_default_ignorable_code_point):
23030         Update for Unicode 5.2.0.
23031         (is_property_cased, is_property_case_ignorable,
23032         is_property_changes_when_lowercased,
23033         is_property_changes_when_uppercased,
23034         is_property_changes_when_titlecased,
23035         is_property_changes_when_casefolded,
23036         is_property_changes_when_casemapped): New functions.
23037         (output_properties): Output also the properties cased, case_ignorable,
23038         changes_when_lowercased, changes_when_uppercased,
23039         changes_when_titlecased, changes_when_casefolded,
23040         changes_when_casemapped.
23041         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23042         Unicode TR#11 revision 17 -> 19.
23043         (LBP_CP): New enumeration value.
23044         (LBP_*): Adjust values accordingly.
23045         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23046         TR#14 revision 22 -> 24.
23047         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23048         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23049         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23050         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23051         is_WBP_MIDLETTER.
23052         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23053         the code1 and code2 of each composition rule.
23054         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23055         * lib/unicase/ignorable.h: Likewise.
23056         * lib/unicase/tocasefold.h: Likewise.
23057         * lib/unicase/tolower.h: Likewise.
23058         * lib/unicase/totitle.h: Likewise.
23059         * lib/unicase/toupper.h: Likewise.
23060         * lib/unictype/bidi_of.h: Likewise.
23061         * lib/unictype/blocks.h: Likewise.
23062         * lib/unictype/categ_C.h: Likewise.
23063         * lib/unictype/categ_Cf.h: Likewise.
23064         * lib/unictype/categ_Cn.h: Likewise.
23065         * lib/unictype/categ_L.h: Likewise.
23066         * lib/unictype/categ_Ll.h: Likewise.
23067         * lib/unictype/categ_Lm.h: Likewise.
23068         * lib/unictype/categ_Lo.h: Likewise.
23069         * lib/unictype/categ_Lu.h: Likewise.
23070         * lib/unictype/categ_M.h: Likewise.
23071         * lib/unictype/categ_Mc.h: Likewise.
23072         * lib/unictype/categ_Mn.h: Likewise.
23073         * lib/unictype/categ_N.h: Likewise.
23074         * lib/unictype/categ_Nd.h: Likewise.
23075         * lib/unictype/categ_Nl.h: Likewise.
23076         * lib/unictype/categ_No.h: Likewise.
23077         * lib/unictype/categ_P.h: Likewise.
23078         * lib/unictype/categ_Pd.h: Likewise.
23079         * lib/unictype/categ_Po.h: Likewise.
23080         * lib/unictype/categ_S.h: Likewise.
23081         * lib/unictype/categ_Sc.h: Likewise.
23082         * lib/unictype/categ_So.h: Likewise.
23083         * lib/unictype/categ_of.h: Likewise.
23084         * lib/unictype/combining.h: Likewise.
23085         * lib/unictype/ctype_alnum.h: Likewise.
23086         * lib/unictype/ctype_alpha.h: Likewise.
23087         * lib/unictype/ctype_graph.h: Likewise.
23088         * lib/unictype/ctype_lower.h: Likewise.
23089         * lib/unictype/ctype_print.h: Likewise.
23090         * lib/unictype/ctype_punct.h: Likewise.
23091         * lib/unictype/ctype_upper.h: Likewise.
23092         * lib/unictype/decdigit.h: Likewise.
23093         * lib/unictype/digit.h: Likewise.
23094         * lib/unictype/numeric.h: Likewise.
23095         * lib/unictype/pr_alphabetic.h: Likewise.
23096         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23097         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23098         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23099         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23100         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23101         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23102         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23103         * lib/unictype/pr_combining.h: Likewise.
23104         * lib/unictype/pr_composite.h: Likewise.
23105         * lib/unictype/pr_currency_symbol.h: Likewise.
23106         * lib/unictype/pr_dash.h: Likewise.
23107         * lib/unictype/pr_decimal_digit.h: Likewise.
23108         * lib/unictype/pr_deprecated.h: Likewise.
23109         * lib/unictype/pr_diacritic.h: Likewise.
23110         * lib/unictype/pr_extender.h: Likewise.
23111         * lib/unictype/pr_grapheme_base.h: Likewise.
23112         * lib/unictype/pr_grapheme_extend.h: Likewise.
23113         * lib/unictype/pr_grapheme_link.h: Likewise.
23114         * lib/unictype/pr_id_continue.h: Likewise.
23115         * lib/unictype/pr_id_start.h: Likewise.
23116         * lib/unictype/pr_ideographic.h: Likewise.
23117         * lib/unictype/pr_ignorable_control.h: Likewise.
23118         * lib/unictype/pr_logical_order_exception.h: Likewise.
23119         * lib/unictype/pr_lowercase.h: Likewise.
23120         * lib/unictype/pr_numeric.h: Likewise.
23121         * lib/unictype/pr_other_alphabetic.h: Likewise.
23122         * lib/unictype/pr_punctuation.h: Likewise.
23123         * lib/unictype/pr_sentence_terminal.h: Likewise.
23124         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23126         * lib/unictype/pr_unified_ideograph.h: Likewise.
23127         * lib/unictype/pr_uppercase.h: Likewise.
23128         * lib/unictype/pr_xid_continue.h: Likewise.
23129         * lib/unictype/pr_xid_start.h: Likewise.
23130         * lib/unictype/pr_zero_width.h: Likewise.
23131         * lib/unictype/scripts.h: Likewise.
23132         * lib/unictype/scripts_byname.gperf: Likewise.
23133         * lib/unictype/sy_java_ident.h: Likewise.
23134         * lib/unigbrk/gbrkprop.h: Likewise.
23135         * lib/unilbrk/lbrkprop1.h: Likewise.
23136         * lib/unilbrk/lbrkprop2.h: Likewise.
23137         * lib/unilbrk/lbrktables.h: Likewise.
23138         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23139         LBP_CP. Implement rule LB30.
23140         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23141         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23142         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23143         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23144         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23145         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23146         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23147         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23148         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23149         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23150         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23151         bits instead of 16 bits in the code1 and code2 of each composition
23152         rule.
23153         (uc_composition): Update for Unicode 5.2.0.
23154         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23155         * lib/uninorm/decomposition-table2.h: Likewise.
23156         * lib/uniwbrk/wbrkprop.h: Likewise.
23157         * tests/unicase/test-cased.c: Likewise.
23158         * tests/unicase/test-ignorable.c: Likewise.
23159         * tests/unicase/test-uc_tolower.c: Likewise.
23160         * tests/unicase/test-uc_totitle.c: Likewise.
23161         * tests/unicase/test-uc_toupper.c: Likewise.
23162         * tests/unictype/test-categ_C.c: Likewise.
23163         * tests/unictype/test-categ_Cf.c: Likewise.
23164         * tests/unictype/test-categ_Cn.c: Likewise.
23165         * tests/unictype/test-categ_L.c: Likewise.
23166         * tests/unictype/test-categ_Ll.c: Likewise.
23167         * tests/unictype/test-categ_Lm.c: Likewise.
23168         * tests/unictype/test-categ_Lo.c: Likewise.
23169         * tests/unictype/test-categ_Lu.c: Likewise.
23170         * tests/unictype/test-categ_M.c: Likewise.
23171         * tests/unictype/test-categ_Mc.c: Likewise.
23172         * tests/unictype/test-categ_Mn.c: Likewise.
23173         * tests/unictype/test-categ_N.c: Likewise.
23174         * tests/unictype/test-categ_Nd.c: Likewise.
23175         * tests/unictype/test-categ_Nl.c: Likewise.
23176         * tests/unictype/test-categ_No.c: Likewise.
23177         * tests/unictype/test-categ_P.c: Likewise.
23178         * tests/unictype/test-categ_Pd.c: Likewise.
23179         * tests/unictype/test-categ_Po.c: Likewise.
23180         * tests/unictype/test-categ_S.c: Likewise.
23181         * tests/unictype/test-categ_Sc.c: Likewise.
23182         * tests/unictype/test-categ_So.c: Likewise.
23183         * tests/unictype/test-ctype_alnum.c: Likewise.
23184         * tests/unictype/test-ctype_alpha.c: Likewise.
23185         * tests/unictype/test-ctype_graph.c: Likewise.
23186         * tests/unictype/test-ctype_lower.c: Likewise.
23187         * tests/unictype/test-ctype_print.c: Likewise.
23188         * tests/unictype/test-ctype_punct.c: Likewise.
23189         * tests/unictype/test-ctype_upper.c: Likewise.
23190         * tests/unictype/test-decdigit.h: Likewise.
23191         * tests/unictype/test-digit.h: Likewise.
23192         * tests/unictype/test-numeric.h: Likewise.
23193         * tests/unictype/test-pr_alphabetic.c: Likewise.
23194         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23195         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23196         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23197         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23198         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23199         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23200         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23201         * tests/unictype/test-pr_combining.c: Likewise.
23202         * tests/unictype/test-pr_composite.c: Likewise.
23203         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23204         * tests/unictype/test-pr_dash.c: Likewise.
23205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23206         * tests/unictype/test-pr_deprecated.c: Likewise.
23207         * tests/unictype/test-pr_diacritic.c: Likewise.
23208         * tests/unictype/test-pr_extender.c: Likewise.
23209         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23210         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23211         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23212         * tests/unictype/test-pr_id_continue.c: Likewise.
23213         * tests/unictype/test-pr_id_start.c: Likewise.
23214         * tests/unictype/test-pr_ideographic.c: Likewise.
23215         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23216         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23217         * tests/unictype/test-pr_lowercase.c: Likewise.
23218         * tests/unictype/test-pr_numeric.c: Likewise.
23219         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23220         * tests/unictype/test-pr_punctuation.c: Likewise.
23221         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23222         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23223         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23224         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23225         * tests/unictype/test-pr_uppercase.c: Likewise.
23226         * tests/unictype/test-pr_xid_continue.c: Likewise.
23227         * tests/unictype/test-pr_xid_start.c: Likewise.
23228         * tests/unictype/test-pr_zero_width.c: Likewise.
23229         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23230         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23231         changed behaviour: line breaking is now disallowed between a letter
23232         or '=' and '('.
23233         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23234         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23235         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23236         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23237         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23238         lib/uniwidth/width.c.
23239         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23240         without comments, but with the original copyright notice.
23241         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23242         changes.
23243         * lib/unictype/categ_Cc.h: Likewise.
23244         * lib/unictype/categ_Co.h: Likewise.
23245         * lib/unictype/categ_Cs.h: Likewise.
23246         * lib/unictype/categ_Lt.h: Likewise.
23247         * lib/unictype/categ_Me.h: Likewise.
23248         * lib/unictype/categ_Pc.h: Likewise.
23249         * lib/unictype/categ_Pe.h: Likewise.
23250         * lib/unictype/categ_Pf.h: Likewise.
23251         * lib/unictype/categ_Pi.h: Likewise.
23252         * lib/unictype/categ_Ps.h: Likewise.
23253         * lib/unictype/categ_Sk.h: Likewise.
23254         * lib/unictype/categ_Sm.h: Likewise.
23255         * lib/unictype/categ_Z.h: Likewise.
23256         * lib/unictype/categ_Zl.h: Likewise.
23257         * lib/unictype/categ_Zp.h: Likewise.
23258         * lib/unictype/categ_Zs.h: Likewise.
23259         * lib/unictype/ctype_blank.h: Likewise.
23260         * lib/unictype/ctype_cntrl.h: Likewise.
23261         * lib/unictype/ctype_digit.h: Likewise.
23262         * lib/unictype/ctype_space.h: Likewise.
23263         * lib/unictype/ctype_xdigit.h: Likewise.
23264         * lib/unictype/mirror.h: Likewise.
23265         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23266         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23267         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23268         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23269         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23270         * lib/unictype/pr_bidi_control.h: Likewise.
23271         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23272         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23273         * lib/unictype/pr_bidi_pdf.h: Likewise.
23274         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23275         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23276         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23277         * lib/unictype/pr_format_control.h: Likewise.
23278         * lib/unictype/pr_hex_digit.h: Likewise.
23279         * lib/unictype/pr_hyphen.h: Likewise.
23280         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23281         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23282         * lib/unictype/pr_iso_control.h: Likewise.
23283         * lib/unictype/pr_join_control.h: Likewise.
23284         * lib/unictype/pr_left_of_pair.h: Likewise.
23285         * lib/unictype/pr_line_separator.h: Likewise.
23286         * lib/unictype/pr_math.h: Likewise.
23287         * lib/unictype/pr_non_break.h: Likewise.
23288         * lib/unictype/pr_not_a_character.h: Likewise.
23289         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23290         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23291         * lib/unictype/pr_other_id_continue.h: Likewise.
23292         * lib/unictype/pr_other_id_start.h: Likewise.
23293         * lib/unictype/pr_other_lowercase.h: Likewise.
23294         * lib/unictype/pr_other_math.h: Likewise.
23295         * lib/unictype/pr_other_uppercase.h: Likewise.
23296         * lib/unictype/pr_paired_punctuation.h: Likewise.
23297         * lib/unictype/pr_paragraph_separator.h: Likewise.
23298         * lib/unictype/pr_pattern_syntax.h: Likewise.
23299         * lib/unictype/pr_pattern_white_space.h: Likewise.
23300         * lib/unictype/pr_private_use.h: Likewise.
23301         * lib/unictype/pr_quotation_mark.h: Likewise.
23302         * lib/unictype/pr_radical.h: Likewise.
23303         * lib/unictype/pr_soft_dotted.h: Likewise.
23304         * lib/unictype/pr_space.h: Likewise.
23305         * lib/unictype/pr_titlecase.h: Likewise.
23306         * lib/unictype/pr_variation_selector.h: Likewise.
23307         * lib/unictype/pr_white_space.h: Likewise.
23308         * lib/unictype/sy_c_ident.h: Likewise.
23309         * lib/unictype/sy_c_whitespace.h: Likewise.
23310         * lib/unictype/sy_java_whitespace.h: Likewise.
23311         * modules/uni*/*: Bump version number of expected libunistring version.
23312         Reported by Simon Josefsson.
23313
23314 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23315
23316         useless-if-before-free: fix typo in --help and make the internal,
23317         automatic version date update process work once again.
23318         --help output contained a NUL character instead of the
23319         backslash-zero that was intended.  Also, the "must lie within
23320         the first 8 lines" line is on line 9, and hence not getting
23321         automatically updated.
23322         * build-aux/useless-if-before-free: Fix the former by adding a
23323         backslash, and the latter by condensing the three lines of what-it-does
23324         to a single line, leaving one line of slack for the future.
23325
23326 2011-01-09  Bruno Haible  <bruno@clisp.org>
23327
23328         uniwidth/width: Fix width of U+1D173..U+1D17A.
23329         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23330         symbolic_width, output_width_property_test): New functions.
23331         (main): Invoke output_nonspacing_property, output_width_property_test.
23332         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23333         U+1D173..U+1D17A.
23334         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23335         1.
23336         * modules/uniwidth/*: Bump version number of expected libunistring
23337         version.
23338         * modules/unilbrk/*: Likewise.
23339
23340 2011-01-08  Bruno Haible  <bruno@clisp.org>
23341
23342         uninorm tests: Preserve copyright of Unicode data file.
23343         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23344         Mention modifications.
23345
23346 2011-01-08  Bruno Haible  <bruno@clisp.org>
23347
23348         gen-uni-tables: Prepare for Unicode 5.2.0.
23349         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23350         (debug_output_lbp, output_lbp): Update.
23351
23352 2011-01-08  Bruno Haible  <bruno@clisp.org>
23353
23354         unilbrk: Clarify gen-uni-tables.c code.
23355         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23356         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23357         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23358
23359 2011-01-07  Bruno Haible  <bruno@clisp.org>
23360
23361         strtod: Restore errno when successfully parsing Infinity or NaN.
23362         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23363         restore the original errno.
23364
23365 2011-01-07  Bruno Haible  <bruno@clisp.org>
23366
23367         remove test: Avoid failure on HP-UX 11.
23368         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23369
23370 2011-01-07  Bruno Haible  <bruno@clisp.org>
23371
23372         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23373         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23374         error code.
23375
23376 2011-01-07  Pádraig Brady <P@draigBrady.com>
23377
23378         ignore-value: fixup comments, and add Eric Blake
23379         as an author since he rewrote the macros.
23380         * lib/ignore-value.h (ignore_value):  State that
23381         we now support aggregates.  Also specify exactly
23382         when the GCC warn_unused_result feature was added.
23383
23384 2011-01-06  Eric Blake  <eblake@redhat.com>
23385
23386         ignore-value: support aggregate types
23387         * lib/ignore-value.h (ignore_value): Provide separate gcc
23388         definition.
23389         * modules/ignore-value-tests: New test module.
23390         * tests/test-ignore-value.c: New test.
23391
23392         maint.mk: improve sc_prohibit_strcmp regex
23393         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23394         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23395         definition of STRNEQ.
23396
23397         signal: work around Haiku issue with SIGBUS
23398         * lib/siglist.h: Add comment.
23399         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23400         strsignal's favoring of SIGSEGV.
23401         * tests/test-signal.c (main): Avoid test failure.
23402         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23403         Reported by Scott McCreary.
23404
23405         maint.mk: add pre-release check to ensure submodule commits are public
23406         * top/maint.mk (public-submodule-commit): New rule.
23407         (submodule-checks): New variable.
23408         (alpha beta stable): Depend on the variable.
23409
23410 2011-01-05  Pádraig Brady <P@draigBrady.com>
23411         and Jim Meyering  <meyering@redhat.com>
23412
23413         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23414         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23415         (ATTRIBUTE_DEPRECATED): Define.
23416         (_ignore_case): New function.
23417         (ignore_value): New macro, to replace the old function.
23418         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23419         * modules/ignore-value (Depends-on): Add stdint.
23420
23421 2011-01-04  Eric Blake  <eblake@redhat.com>
23422
23423         doc: regenerate INSTALL
23424         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23425         @firstparagraphindent support, now that autoconf dropped it.
23426         (INSTALL_PRELUDE): Reinstate old macro.
23427         * doc/install.texi: Resync from autoconf.
23428         * doc/INSTALL: Reflect recent autoconf update.
23429         * doc/INSTALL.ISO: Likewise.
23430         * doc/INSTALL.UTF-8: Likewise.
23431         Reported by Karl Berry.
23432
23433 2011-01-04  Bruce Korb  <address@hidden>
23434
23435         git-version-gen: avoid a sub-shell
23436         * build-aux/git-version-gen: Redirect stderr in `...` via
23437         "exec 2>...", rather than via an added sub-shell.
23438
23439 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23440
23441         git-version-gen: use (...) rather than sh -c '...'
23442         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23443         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23444
23445 2011-01-03  Jim Meyering  <meyering@redhat.com>
23446
23447         git-version-gen: convert leading TABs to spaces
23448         * build-aux/git-version-gen: Expand leading TABs.
23449
23450         git-version-gen: handle failed "git rev-list"
23451         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23452         from git and proceeding as if it had succeeded but printed no SHA1
23453         checksums, suppress the diagnostic and handle the failure.
23454         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23455
23456         git-version-gen: include command name in one more diagnostic
23457         * build-aux/git-version-gen: When the required .tarball-version file
23458         was missing or unreadable, you might see the diagnostic from "cat",
23459         but no trace of the name of the invoking script.  Now, you still see
23460         the diagnostic from cat, but also get one from "git-version-gen: ".
23461         Inspired by a patch from Bruce Korb.
23462
23463         update-copyright: adjust test to match changed code
23464         * tests/test-update-copyright.sh: Change test's expected output
23465         to match new actual output.
23466
23467 2011-01-02  Bruno Haible  <bruno@clisp.org>
23468
23469         getlogin_r: Avoid test failure on HP-UX 11.
23470         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23471         ERANGE when the second argument is zero.
23472         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23473         portability problem.
23474
23475 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23476
23477         * build-aux/update-copyright: doc Simon's changes
23478
23479 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23480
23481         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23482         environment variable.
23483
23484 2011-01-02  Bruno Haible  <bruno@clisp.org>
23485
23486         unigbrk: Avoid gcc warnings.
23487         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23488         unused variable.
23489         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23490         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23491         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23492         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23493         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23494         Change type of first argument to 'const char *'.
23495         (main): Remove unused variable.
23496         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23497         type of first argument to 'const char *'.
23498         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23499         Likewise.
23500         (main): Change type of variable 's'.
23501         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23502         to 'int'.
23503
23504 2011-01-02  Bruno Haible  <bruno@clisp.org>
23505
23506         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23507         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23508         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23509         bug.
23510         * lib/pwrite.c: Undo 2010-12-31 patch.
23511         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23512
23513 2011-01-02  Bruno Haible  <bruno@clisp.org>
23514
23515         pread: Fix test whether it works.
23516         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23517
23518 2011-01-02  Bruno Haible  <bruno@clisp.org>
23519
23520         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23521         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23522         ends in "6". Don't require a specific month name. Try also the locale
23523         names found on HP-UX 11 and Solaris 7.
23524
23525 2011-01-02  Bruno Haible  <bruno@clisp.org>
23526
23527         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23528         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23529         C linkage.
23530         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23531
23532 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23533
23534         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23535         for consistency, since the "cluster" term is not used elsewhere.
23536         * lib/unigbrk.in.h: Update name.
23537         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23538         * lib/unigbrk/u16-grapheme-next.c: Update name.
23539         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23540         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23541         * lib/unigbrk/u32-grapheme-next.c: Update name.
23542         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23543         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23544         * lib/unigbrk/u8-grapheme-next.c: Update name.
23545         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23546         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23547         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23548         Suggested by Bruno Haible.
23549
23550 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23551
23552         Remove module 'u8-grapheme-len' as too redundant with
23553         'u8-grapheme-next'.
23554         * modules/unigbrk/u8-grapheme-len: Delete file.
23555         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23556         * lib/unigbrk.in.h: Remove prototype for deleted function.
23557         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23558         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23559
23560         Remove module 'u16-grapheme-len' as too redundant with
23561         'u16-grapheme-next'.
23562         * modules/unigbrk/u16-grapheme-len: Delete file.
23563         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23564         * lib/unigbrk.in.h: Remove prototype for deleted function.
23565         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23566         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23567
23568         Remove module 'u32-grapheme-len' as too redundant with
23569         'u32-grapheme-next'.
23570         * modules/unigbrk/u32-grapheme-len: Delete file.
23571         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23572         * lib/unigbrk.in.h: Remove prototype for deleted function.
23573         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23574         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23575
23576         Suggested by Bruno Haible.
23577
23578 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23579
23580         * unigbrk.in.h: Fix typo: "ben" => "been".
23581         Reported by Bruno Haible.
23582
23583 2011-01-01  Jim Meyering  <meyering@redhat.com>
23584
23585         maint: update almost all copyright ranges to include 2011
23586         Run the new "make update-copyright" rule.
23587
23588 2011-01-01  Jim Meyering  <meyering@redhat.com>
23589
23590         maint: update-copyright: exempt doc/INSTALL*
23591         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23592         since they are generated.  Suggested by Bruno Haible.
23593
23594 2011-01-01  Jim Meyering  <meyering@redhat.com>
23595
23596         maint: refine the update-copyright rule
23597         * Makefile (update-copyright): Also exclude any file that includes
23598         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23599         code that merely generates the comment.
23600
23601 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23602
23603         New module 'u8-grapheme-len'.
23604         * modules/unigbrk/u8-grapheme-len: New file.
23605         * modules/unigbrk/u8-grapheme-len-tests: New file.
23606         * lib/unigbrk.in.h: Add prototype for new function.
23607         * lib/unigbrk/u8-grapheme-len.c: New file.
23608         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23609
23610         New module 'u16-grapheme-len'.
23611         * modules/unigbrk/u16-grapheme-len: New file.
23612         * modules/unigbrk/u16-grapheme-len-tests: New file.
23613         * lib/unigbrk.in.h: Add prototype for new function.
23614         * lib/unigbrk/u16-grapheme-len.c: New file.
23615         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23616
23617         New module 'u32-grapheme-len'.
23618         * modules/unigbrk/u32-grapheme-len: New file.
23619         * modules/unigbrk/u32-grapheme-len-tests: New file.
23620         * lib/unigbrk.in.h: Add prototype for new function.
23621         * lib/unigbrk/u32-grapheme-len.c: New file.
23622         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23623
23624         New module 'u8-grapheme-next'.
23625         * modules/unigbrk/u8-grapheme-next: New file.
23626         * modules/unigbrk/u8-grapheme-next-tests: New file.
23627         * lib/unigbrk.in.h: Add prototype for new function.
23628         * lib/unigbrk/u8-grapheme-next.c: New file.
23629         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23630
23631         New module 'u16-grapheme-next'.
23632         * modules/unigbrk/u16-grapheme-next: New file.
23633         * modules/unigbrk/u16-grapheme-next-tests: New file.
23634         * lib/unigbrk.in.h: Add prototype for new function.
23635         * lib/unigbrk/u16-grapheme-next.c: New file.
23636         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23637
23638         New module 'u32-grapheme-next'.
23639         * modules/unigbrk/u32-grapheme-next: New file.
23640         * modules/unigbrk/u32-grapheme-next-tests: New file.
23641         * lib/unigbrk.in.h: Add prototype for new function.
23642         * lib/unigbrk/u32-grapheme-next.c: New file.
23643         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23644
23645         New module 'u8-grapheme-prev'.
23646         * modules/unigbrk/u8-grapheme-prev: New file.
23647         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23648         * lib/unigbrk.in.h: Add prototype for new function.
23649         * lib/unigbrk/u8-grapheme-prev.c: New file.
23650         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23651
23652         New module 'u16-grapheme-prev'.
23653         * modules/unigbrk/u16-grapheme-prev: New file.
23654         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23655         * lib/unigbrk.in.h: Add prototype for new function.
23656         * lib/unigbrk/u16-grapheme-prev.c: New file.
23657         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23658
23659         New module 'u32-grapheme-prev'.
23660         * modules/unigbrk/u32-grapheme-prev: New file.
23661         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23662         * lib/unigbrk.in.h: Add prototype for new function.
23663         * lib/unigbrk/u32-grapheme-prev.c: New file.
23664         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23665
23666         New module 'u8-grapheme-breaks'.
23667         * modules/unigbrk/u8-grapheme-breaks: New file.
23668         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23669         * lib/unigbrk.in.h: Add prototype for new function.
23670         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23671         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23672
23673         New module 'u16-grapheme-breaks'.
23674         * modules/unigbrk/u16-grapheme-breaks: New file.
23675         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23676         * lib/unigbrk.in.h: Add prototype for new function.
23677         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23678         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23679
23680         New module 'u32-grapheme-breaks'.
23681         * modules/unigbrk/u32-grapheme-breaks: New file.
23682         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23683         * lib/unigbrk.in.h: Add prototype for new function.
23684         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23685         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23686
23687         New module 'ulc-grapheme-breaks'.
23688         * modules/unigbrk/ulc-grapheme-breaks: New file.
23689         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23690         * m4/locale-ar.m4: New file.
23691         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23692         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23693         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23694
23695 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23696
23697         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23698         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23699         modified how this file was generated before I initially submitted
23700         the module, but failed to regenerate it.  This meant that several
23701         of the level2 entries were wrong.
23702         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23703         Remove the division-by-2 that is folded into the table now that
23704         gbrkprop.h has been regenerated properly.  Now -1 entries are
23705         handled correctly.
23706
23707         New module 'unigbrk/uc-gbrk-prop-tests'.
23708         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23709         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23710         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23711         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23712
23713 2011-01-01  Bruno Haible  <bruno@clisp.org>
23714
23715         Avoid use of hexadecimal escapes.
23716         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23717         instead of hexadecimal escapes.
23718
23719 2011-01-01  Jim Meyering  <meyering@redhat.com>
23720
23721         maint: new rule to update copyright year ranges
23722         * Makefile (update-copyright): New rule.
23723
23724         maint: indent with TABs in Makefile
23725         * Makefile: Expand leading sequences of spaces to TABs
23726
23727         version-etc: update the copyright year it reports
23728         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23729
23730 2010-12-31  Bruno Haible  <bruno@clisp.org>
23731
23732         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23733         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23734         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23735         zero.
23736
23737 2010-12-31  Bruno Haible  <bruno@clisp.org>
23738
23739         pwrite: Work around HP-UX 11.11 bug.
23740         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23741         works and set REPLACE_PWRITE if not.
23742         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23743         function.
23744         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23745
23746 2010-12-31  Bruno Haible  <bruno@clisp.org>
23747
23748         pread: Work around HP-UX 11 bugs.
23749         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23750         and set REPLACE_PREAD if not.
23751         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23752
23753 2010-12-31  Eric Blake  <eblake@redhat.com>
23754
23755         nl_langinfo: fix YESEXPR on Irix 6.5
23756         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23757         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23758         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23759         it.
23760
23761 2010-12-31  Bruno Haible  <bruno@clisp.org>
23762
23763         iconv: Document HP-UX 11 bug.
23764         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23765
23766 2010-12-31  Bruno Haible  <bruno@clisp.org>
23767
23768         ldexpl: Fix link error on HP-UX 11.
23769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23770         LDEXPL_LIBM, using $ISNANL_LIBM.
23771
23772 2010-12-31  Eric Blake  <eblake@redhat.com>
23773
23774         ftello: avoid compilation failure with SunStudio c89
23775         * lib/ftello.c (ftello): Use lseek, not llseek.
23776
23777         tests: avoid failing coreutils tests on cygwin
23778         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23779         (create_exe_shims_): Return 0 when skipping.
23780
23781 2010-12-31  Bruno Haible  <bruno@clisp.org>
23782
23783         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23784         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23785
23786 2010-12-31  Bruno Haible  <bruno@clisp.org>
23787
23788         waitpid: Fix link error in C++ mode.
23789         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23790
23791 2010-12-31  Bruno Haible  <bruno@clisp.org>
23792
23793         isnan: Use GCC built-ins when possible.
23794         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23795         __builtin_isnan.
23796         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23797         (isnan): Define using GCC built-ins for GCC >= 4.0.
23798
23799 2010-12-31  Bruno Haible  <bruno@clisp.org>
23800
23801         isnand: Fix mistake.
23802         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23803         __builtin_isnand.
23804
23805 2010-12-31  Bruno Haible  <bruno@clisp.org>
23806
23807         open: Avoid C++ error on HP-UX 11.
23808         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23809
23810 2010-12-31  Bruno Haible  <bruno@clisp.org>
23811
23812         time_r: Add missing declarations on HP-UX 11.
23813         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23814         instead of HAVE_LOCALTIME_R.
23815         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23816         HAVE_LOCALTIME_R always.
23817         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23818         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23819         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23820         HAVE_LOCALTIME_R.
23821         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23822         * doc/posix-functions/localtime_r.texi: Likewise.
23823
23824 2010-12-29  Eric Blake  <eblake@redhat.com>
23825
23826         mountlist: tweak previous commit
23827         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23828         Reported by Paul Eggert.
23829
23830         mountlist: fix local drive detection on cygwin
23831         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23832         that works for cygwin.
23833
23834 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23835
23836         ftoastr, snprintf: ftoastr + snprintf module
23837         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23838         since the snprintf module now should be good enough here.
23839         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23840         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23841         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23842         GNULIB_SNPRINTF only for the test directory, and the latter
23843         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23844         seems to suffice by itself.
23845
23846 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23847
23848         alloca: one step towards thread-safety
23849         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23850         need for a static variable.  All callers changed.  This does not
23851         make the alloca replacement thread-safe, but it's one step.
23852
23853         tests: minor indenting change
23854         * tests/init.sh: Sync from coreutils housekeeping patch
23855         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23856         to keep lines within 80 columns.
23857
23858 2010-12-28  Jim Meyering  <meyering@redhat.com>
23859
23860         regex: don't infloop on persistent failing calloc
23861         * lib/regexec.c (build_trtable): Return failure indication upon
23862         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23863         In glibc, this was fixed for version 2.13:
23864         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23865
23866 2010-12-28  Bruno Haible  <bruno@clisp.org>
23867             Paul Eggert <eggert@cs.ucla.edu>
23868
23869         linkat: Make implementation robust against system behaviour variations.
23870         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23871         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23872         way, and to -2 if it needs a generic runtime test.
23873         * lib/linkat.c (solaris_optimized_link_immediate,
23874         solaris_optimized_link_follow): New functions.
23875         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23876         (check_same_link): Use it.
23877
23878 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23879
23880         New module 'unigbrk/base'.
23881         * modules/unigbrk/base: New file.
23882         * lib/unigbrk.in.h: New file.
23883
23884         New module 'unigbrk/uc-gbrk-prop'.
23885         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23886         * modules/unigbrk/uc-gbrk-prop: New file.
23887         * lib/unigbrk/gbrkprop.h: New file.
23888         * lib/unigbrk/uc-gbrk-prop.c: New file.
23889
23890         New module 'unigbrk/uc-is-grapheme-break'.
23891         * modules/unigbrk/uc-is-grapheme-break: New file.
23892         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23893         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23894         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23895         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23896         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23897
23898         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23899
23900 2010-12-27  Bruno Haible  <bruno@clisp.org>
23901
23902         linkat test: Avoid failure on Solaris 11 2010-11.
23903         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23904
23905 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23906
23907         utimens: work around glibc rounding bug on more platforms
23908         * lib/utimens.c (fdutimens): Work around rounding bug even if
23909         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23911
23912 2010-12-27  Bruno Haible  <bruno@clisp.org>
23913
23914         select tests: Improve comments.
23915         * tests/test-select.c (do_select): Add comments.
23916
23917 2010-12-27  Bruno Haible  <bruno@clisp.org>
23918
23919         select tests: Safer way of handling timeout.
23920         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23921         at every invocation.
23922
23923 2010-12-27  Bruno Haible  <bruno@clisp.org>
23924
23925         select tests: Use 'bool' where appropriate.
23926         * tests/test-select.c (connect_to_socket): Change argument type to
23927         'bool'.
23928
23929 2010-12-27  Bruno Haible  <bruno@clisp.org>
23930
23931         select tests: Use existing modules.
23932         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23933         (configure.ac): Don't test for unistd.h.
23934         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23935         declared in <unistd.h>.
23936
23937 2010-12-27  Bruno Haible  <bruno@clisp.org>
23938
23939         mbrtowc: Work around a Solaris 7 bug.
23940         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23941         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23942         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23943         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23944         MBRTOWC_NULL_ARG1_BUG.
23945         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23946         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23947         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23948         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23949
23950 2010-12-27  Jim Meyering  <meyering@redhat.com>
23951
23952         read-file.c: tweak syntax
23953         * lib/read-file.c (fread_file): Remove space after "*" in function
23954         definitions.
23955
23956 2010-12-27  Bruno Haible  <bruno@clisp.org>
23957
23958         times test: Avoid gcc warnings on OSF/1.
23959         * tests/test-times.c (main): Cast printf arguments from clock_t to
23960         'long int'.
23961
23962 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23963
23964         utimens: work around glibc rounding bug on older Linux kernels
23965         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23966         on Linux with a glibc whose utimes might not work, then work
23967         around a longstanding glibc bug involving rounding rather than
23968         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23969         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23970
23971 2010-12-26  Bruno Haible  <bruno@clisp.org>
23972
23973         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23974         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23975         _GL_CXXALIAS_SYS.
23976         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23977
23978 2010-12-26  Bruno Haible  <bruno@clisp.org>
23979
23980         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23981         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23983         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23984         looking for the declaration.
23985         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23986         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23987         problem.
23988         * doc/posix-functions/inet_pton.texi: Likewise.
23989
23990 2010-12-26  Bruno Haible  <bruno@clisp.org>
23991
23992         arpa_inet: Use the common idioms with C++ support.
23993         * lib/arpa_inet.in.h: Include c++defs.h.
23994         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23995         support.
23996         * modules/arpa_inet (Depends-on): Add c++defs.
23997         (Makefile.am): Substitute the contents of c++defs.h.
23998         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23999         * modules/arpa_inet-c++-tests: New file.
24000         * tests/test-arpa_inet-c++.cc: New file.
24001
24002 2010-12-25  Bruno Haible  <bruno@clisp.org>
24003
24004         Fix more C++ link errors on Solaris 8.
24005         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24006         $(LIB_EACCESS).
24007         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24008         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24009         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24010         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24011         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24012
24013 2010-12-25  Bruno Haible  <bruno@clisp.org>
24014
24015         printf-posix: Fix link error when a non-GCC compiler is used.
24016         * lib/stdio.in.h (printf): When not using GCC, override printf
24017         correctly.
24018         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24019
24020 2010-12-25  Bruno Haible  <bruno@clisp.org>
24021
24022         strerror_r-posix: Update doc.
24023         * doc/posix-functions/strerror_r.texi: Update doc about the return
24024         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24025
24026 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24027
24028         utimens: simplify the logic of the previous change
24029         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24030         This should not affect whether the test succeeds or fails.
24031
24032         utimens: configure better on hosts with NFS clock skew
24033         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24034         uses the clock of the local host.  It might use the clock of the
24035         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24037
24038 2010-12-25  Bruno Haible  <bruno@clisp.org>
24039
24040         ptsname test: Avoid failure on Solaris.
24041         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24042         open a pseudo-terminal; don't use BSD-style ptys.
24043         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24044
24045 2010-12-25  Bruno Haible  <bruno@clisp.org>
24046
24047         ptsname: Avoid ERANGE failure on some systems.
24048         * lib/ptsname.c (buffer): Increase size.
24049
24050 2010-12-25  Bruno Haible  <bruno@clisp.org>
24051
24052         rename, renameat: Avoid test failures at NFS mounted locations.
24053         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24054         so that subsequent mkdir calls succeed.
24055
24056 2010-12-25  Bruno Haible  <bruno@clisp.org>
24057
24058         iswblank: Fix C++ link error on Solaris 8.
24059         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24060         _GL_FUNCDECL_SYS.
24061
24062 2010-12-25  Bruno Haible  <bruno@clisp.org>
24063
24064         unistd: Fix C++ link error on Solaris 8.
24065         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24066
24067 2010-12-25  Bruno Haible  <bruno@clisp.org>
24068
24069         readlink doc: Mention an old glibc bug.
24070         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24071
24072 2010-12-25  Bruno Haible  <bruno@clisp.org>
24073
24074         fcntl-h: Fix for use of C++ on glibc systems.
24075         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24076         also on glibc systems in C++ mode.
24077         Reported by Gary V. Vaughan <gary@gnu.org>.
24078
24079 2010-12-25  Bruno Haible  <bruno@clisp.org>
24080
24081         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24082         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24083
24084 2010-12-25  Bruno Haible  <bruno@clisp.org>
24085
24086         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24087         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24088         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24089         test whether truncl works according to ISO C 99 with IEC 60559.
24090         * m4/truncl-ieee.m4: New file.
24091         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24092         m4/signbit.m4.
24093         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24094
24095 2010-12-25  Bruno Haible  <bruno@clisp.org>
24096
24097         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24098         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24099         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24100         test whether ceill works according to ISO C 99 with IEC 60559.
24101         * m4/ceill-ieee.m4: New file.
24102         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24103         m4/signbit.m4.
24104         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24105
24106 2010-12-25  Bruno Haible  <bruno@clisp.org>
24107
24108         Ensure all prerequisites of <wchar.h> are included.
24109         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24110         before <wchar.h>.
24111         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24112         gl_MBRLEN_NUL_RETVAL): Likewise.
24113         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24114         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24115         AC_FUNC_MBRTOWC): Likewise.
24116         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24117         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24118         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24119         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24120         Likewise.
24121         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24122         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24123         (gl_WCHAR_H): Improve comments.
24124         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24125
24126 2010-12-25  Bruno Haible  <bruno@clisp.org>
24127
24128         strtok_r: Fix C syntax error in autoconf macro.
24129         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24130         characters in test program.
24131
24132 2010-12-24  Bruno Haible  <bruno@clisp.org>
24133
24134         ceil, trunc, round: Fix gcc warnings.
24135         * lib/ceil.c (MIN): Undefine before redefining.
24136         * lib/trunc.c (MIN): Likewise.
24137         * lib/round.c (MIN): Likewise.
24138         Include <math.h> first.
24139
24140 2010-12-24  Bruno Haible  <bruno@clisp.org>
24141
24142         select tests: Avoid failures on OSF/1 5.1.
24143         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24144         failure of closing the last socket; it may fail with ECONNRESET.
24145
24146 2010-12-24  Eric Blake  <eblake@redhat.com>
24147
24148         stdint: avoid HP-UX 10.20 preprocessor bug
24149         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24150         than #if.
24151         * tests/test-floor2.c (main): Likewise.
24152         Reported by Peter O'Gorman.
24153
24154         pipe: make obsoletion transition easier
24155         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24156         * modules/pipe (Files): Include revived file.
24157         (Include): Drop reference, to mirror getdate's behavior.
24158
24159 2010-12-24  Bruno Haible  <bruno@clisp.org>
24160
24161         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24162         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24163         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24165
24166 2010-12-24  Bruno Haible  <bruno@clisp.org>
24167
24168         gethostname: Ensure declaration on NonStop Kernel.
24169         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24171
24172 2010-12-24  Bruno Haible  <bruno@clisp.org>
24173
24174         sys_select: Ensure all necessary types on NonStop Kernel.
24175         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24176         include <sys/time.h>.
24177         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24178         NonStop Kernel.
24179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24180
24181 2010-12-24  Bruno Haible  <bruno@clisp.org>
24182
24183         sys_select: Remove unneeded include.
24184         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24185         have <sys/select.h>.
24186
24187 2010-12-24  Bruno Haible  <bruno@clisp.org>
24188
24189         gethostname: Provide a fallback for HOST_NAME_MAX.
24190         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24191         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24192         instead.
24193         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24194
24195 2010-12-24  Bruno Haible  <bruno@clisp.org>
24196
24197         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24198         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24199         (SA_RESTART): Likewise.
24200         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24201
24202 2010-12-24  Bruno Haible  <bruno@clisp.org>
24203
24204         signal: Define NSIG.
24205         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24206         * tests/test-signal.c (nsig): New variable.
24207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24208
24209 2010-12-24  Bruno Haible  <bruno@clisp.org>
24210
24211         rename, renameat: Avoid test failures on OSF/1 5.1.
24212         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24213         alternative error codes.
24214         * tests/test-renameat.c (main): Likewise.
24215
24216 2010-12-24  Bruno Haible  <bruno@clisp.org>
24217
24218         *printf: Detect large precisions bug on Solaris 10/SPARC.
24219         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24220         by Paul Eggert.
24221         * tests/test-snprintf-posix.h (test_function): Add this test code here
24222         too.
24223         * tests/test-sprintf-posix.h (test_function): Likewise.
24224         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24225         * tests/test-vasprintf-posix.c (test_function): Likewise.
24226         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24227         around by gnulib.
24228         * doc/posix-functions/printf.texi: Likewise.
24229         * doc/posix-functions/snprintf.texi: Likewise.
24230         * doc/posix-functions/sprintf.texi: Likewise.
24231         * doc/posix-functions/vfprintf.texi: Likewise.
24232         * doc/posix-functions/vprintf.texi: Likewise.
24233         * doc/posix-functions/vsnprintf.texi: Likewise.
24234         * doc/posix-functions/vsprintf.texi: Likewise.
24235         * doc/posix-functions/dprintf.texi: Undo last commit.
24236         * doc/posix-functions/vdprintf.texi: Likewise.
24237
24238 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         tests: port test-fdutimensat.c to Solaris 8
24241         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24242         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24243         On Solaris 8, it fails with errno == ENOSYS, because there is no
24244         futimens (so it can't use the fd), and there is no lutimens (so it
24245         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24246
24247         vsnprintf: make more consistent with snprintf; doc fixes
24248
24249         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24250         the byte count return problem was promoted from the snprintf-posix
24251         to the snprintf module.
24252         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24253         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24254         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24255         * tests/test-snprintf.c (main): Check the byte count returned.
24256         * tests/test-vsnprintf.c (main): Likewise.
24257
24258 2010-12-23  Eric Blake  <eblake@redhat.com>
24259
24260         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24261         * modules/sigpipe (License): Relax license.
24262
24263 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24264
24265         doc: document Solaris printf bug with large float precisions
24266         * doc/posix-functions/dprintf.texi (dprintf):
24267         * doc/posix-functions/fprintf.texi (fprintf):
24268         * doc/posix-functions/printf.texi (printf):
24269         * doc/posix-functions/snprintf.texi (snprintf):
24270         * doc/posix-functions/sprintf.texi (sprintf):
24271         * doc/posix-functions/vdprintf.texi (vdprintf):
24272         * doc/posix-functions/vfprintf.texi (vfprintf):
24273         * doc/posix-functions/vprintf.texi (vprintf):
24274         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24275         * doc/posix-functions/vsprintf.texi (vsprintf):
24276         Mention that these functions mishandle large floating point
24277         precisions on Solaris 10.  The same bug is also present in Solaris
24278         8, and I assume earlier.  This causes "cd gnulib-tests; make
24279         check" to fail on Solaris 8 (and I assume, later) when building
24280         the latest coreutils, in test-vasprintf-posix's call to
24281         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24282         the wide flavors (e.g., wprintf) so this patch just updates the
24283         documentation for the narrow ones.
24284
24285         test-posixtm.c: add two tests
24286         * tests/test-posixtm.c: Add two tests, to highlight the
24287         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24288         around this bug; this is merely to document it.
24289
24290 2010-12-22  Bruno Haible  <bruno@clisp.org>
24291
24292         getlogin_r: Work around portability problem on OSF/1.
24293         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24294         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24295         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24296         test for a truncated result.
24297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24298         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24299         * modules/getlogin_r (Depends-on): Add memchr.
24300         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24301
24302 2010-12-22  Bruno Haible  <bruno@clisp.org>
24303
24304         ptsname: Avoid test failure on OSF/1 5.1.
24305         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24306         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24307         (same_slave): New function.
24308         (main): Use it to compare ptsname's result with the expected file name.
24309
24310 2010-12-22  Bruno Haible  <bruno@clisp.org>
24311
24312         Port extended stdio modules to HP NonStop Kernel.
24313         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24314         macros.
24315         * lib/fbufmode.c: Update comments.
24316         * lib/fflush.c: Likewise.
24317         * lib/fpurge.c: Likewise.
24318         * lib/freadable.c: Likewise.
24319         * lib/freadahead.c: Likewise.
24320         * lib/freading.c: Likewise.
24321         * lib/freadptr.c: Likewise.
24322         * lib/freadseek.c: Likewise.
24323         * lib/fseeko.c: Likewise.
24324         * lib/fseterr.c: Likewise.
24325         * lib/fwritable.c: Likewise.
24326         * lib/fwriting.c: Likewise.
24327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24328
24329 2010-12-22  Bruno Haible  <bruno@clisp.org>
24330
24331         ttyname_r: Work around bug on OSF/1 5.1.
24332         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24333         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24334         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24335         present.
24336         * lib/ttyname_r.c (ttyname_r): Update comments.
24337
24338 2010-12-22  Bruno Haible  <bruno@clisp.org>
24339
24340         round: Implement result sign according to IEEE 754.
24341         * lib/round.c (MIN, MINUS_ZERO): New macros.
24342         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24343         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24344         * tests/test-round-ieee.c (main): Likewise.
24345         * tests/test-roundl-ieee.c (main): Likewise.
24346
24347         trunc: Implement result sign according to IEEE 754.
24348         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24349         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24350         * tests/test-trunc2.c: Include minus-zero.h.
24351         (MINUS_ZERO): New macro.
24352         (trunc_reference): Keep in sync with lib/trunc.c.
24353         * tests/test-truncf2.c: Include minus-zero.h.
24354         (MINUS_ZERO): New macro.
24355         (truncf_reference): Keep in sync with lib/trunc.c.
24356         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24357         * tests/test-trunc-ieee.c (main): Likewise.
24358         * tests/test-truncl-ieee.c (main): Likewise.
24359
24360         ceil: Implement result sign according to IEEE 754.
24361         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24362         (FUNC): Return -0.0 for -1 < x < 0.
24363         * tests/test-ceil2.c: Include minus-zero.h.
24364         (MINUS_ZERO): New macro.
24365         (ceil_reference): Keep in sync with lib/ceil.c.
24366         * tests/test-ceilf2.c: Include minus-zero.h.
24367         (MINUS_ZERO): New macro.
24368         (ceilf_reference): Keep in sync with lib/ceil.c.
24369         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24370         * tests/test-ceil-ieee.c (main): Likewise.
24371         * tests/test-ceill-ieee.c (main): Likewise.
24372
24373         floor: Implement result sign according to IEEE 754.
24374         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24375         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24376         * tests/test-floorf2.c (floorf_reference): Likewise.
24377         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24378         * tests/test-floor-ieee.c (main): Likewise.
24379         * tests/test-floorl-ieee.c (main): Likewise.
24380
24381 2010-12-22  Bruno Haible  <bruno@clisp.org>
24382
24383         getaddrinfo: Update doc.
24384         * doc/posix-functions/gai_strerror.texi: Return type is also different
24385         on AIX and HP-UX.
24386
24387 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24388
24389         getaddrinfo, inet_ntop: Update doc for Solaris.
24390         * doc/posix-functions/gai_strerror.texi: Return type is also an
24391         issue on Solaris 9 and earlier.
24392         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24393         on Solaris 10 and earlier.
24394
24395 2010-12-21  Bruno Haible  <bruno@clisp.org>
24396
24397         New module 'roundl-ieee'.
24398         * modules/roundl-ieee: New file.
24399         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24400         test whether roundl works according to ISO C 99 with IEC 60559.
24401         * m4/roundl-ieee.m4: New file.
24402         * modules/roundl-ieee-tests: New file.
24403         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24404         * tests/test-roundl.c (main): Remove signbit tests.
24405         * modules/roundl-tests (Depends-on): Remove signbit.
24406         * doc/posix-functions/roundl.texi: Mention the new module.
24407
24408 2010-12-21  Bruno Haible  <bruno@clisp.org>
24409
24410         New module 'truncl-ieee'.
24411         * modules/truncl-ieee: New file.
24412         * modules/truncl-ieee-tests: New file.
24413         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24414         * tests/test-truncl.c (main): Remove signbit tests.
24415         * modules/truncl-tests (Depends-on): Remove signbit.
24416         * doc/posix-functions/truncl.texi: Mention the new module.
24417
24418 2010-12-21  Bruno Haible  <bruno@clisp.org>
24419
24420         New module 'ceill-ieee'.
24421         * modules/ceill-ieee: New file.
24422         * modules/ceill-ieee-tests: New file.
24423         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24424         * tests/test-ceill.c (main): Remove signbit tests.
24425         * modules/ceill-tests (Depends-on): Remove signbit.
24426         * doc/posix-functions/ceill.texi: Mention the new module.
24427
24428 2010-12-21  Bruno Haible  <bruno@clisp.org>
24429
24430         New module 'floorl-ieee'.
24431         * modules/floorl-ieee: New file.
24432         * modules/floorl-ieee-tests: New file.
24433         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24434         * tests/test-floorl.c (main): Remove signbit tests.
24435         * modules/floorl-tests (Depends-on): Remove signbit.
24436         * doc/posix-functions/floorl.texi: Mention the new module.
24437
24438 2010-12-21  Bruno Haible  <bruno@clisp.org>
24439
24440         New module 'round-ieee'.
24441         * modules/round-ieee: New file.
24442         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24443         whether round works according to ISO C 99 with IEC 60559.
24444         * m4/round-ieee.m4: New file.
24445         * modules/round-ieee-tests: New file.
24446         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24447         * tests/test-round1.c (main): Remove signbit tests.
24448         * modules/round-tests (Depends-on): Remove 'signbit'.
24449         * doc/posix-functions/round.texi: Mention the new module.
24450
24451 2010-12-21  Bruno Haible  <bruno@clisp.org>
24452
24453         New module 'trunc-ieee'.
24454         * modules/trunc-ieee: New file.
24455         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24456         whether trunc works according to ISO C 99 with IEC 60559.
24457         * m4/trunc-ieee.m4: New file.
24458         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24460         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24461         * modules/trunc-ieee-tests: New file.
24462         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24463         * tests/test-trunc1.c (main): Remove signbit tests.
24464         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24465         * doc/posix-functions/trunc.texi: Mention the new module.
24466
24467 2010-12-21  Bruno Haible  <bruno@clisp.org>
24468
24469         New module 'ceil-ieee'.
24470         * modules/ceil-ieee: New file.
24471         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24472         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24473         ISO C 99 with IEC 60559.
24474         * m4/ceil-ieee.m4: New file.
24475         * modules/ceil (Files): Add lib/ceil.c.
24476         (Depends-on): Add 'float'.
24477         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24478         * lib/math.in.h (ceil): New declaration.
24479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24480         REPLACE_CEIL.
24481         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24482         * modules/ceil-ieee-tests: New file.
24483         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24484         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24485         * doc/posix-functions/ceil.texi: Mention the new module.
24486
24487 2010-12-21  Bruno Haible  <bruno@clisp.org>
24488
24489         New module 'floor-ieee'.
24490         * modules/floor-ieee: New file.
24491         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24492         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24493         ISO C 99 with IEC 60559.
24494         * m4/floor-ieee.m4: New file.
24495         * modules/floor (Files): Add lib/floor.c.
24496         (Depends-on): Add 'float'.
24497         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24498         * lib/math.in.h (floor): New declaration.
24499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24500         REPLACE_FLOOR.
24501         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24502         * modules/floor-ieee-tests: New file.
24503         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24504         * tests/test-math-c++.cc: Check the signature of 'floor'.
24505         * doc/posix-functions/floor.texi: Mention the new module.
24506
24507 2010-12-21  Bruno Haible  <bruno@clisp.org>
24508
24509         New module 'roundf-ieee'.
24510         * modules/roundf-ieee: New file.
24511         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24512         test whether roundf works according to ISO C 99 with IEC 60559.
24513         * m4/roundf-ieee.m4: New file.
24514         * modules/roundf-ieee-tests: New file.
24515         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24516         * tests/test-roundf1.c (main): Remove signbit tests.
24517         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24518         * doc/posix-functions/roundf.texi: Mention the new module.
24519
24520 2010-12-21  Bruno Haible  <bruno@clisp.org>
24521
24522         New module 'truncf-ieee'.
24523         * modules/truncf-ieee: New file.
24524         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24525         test whether truncf works according to ISO C 99 with IEC 60559.
24526         * m4/truncf-ieee.m4: New file.
24527         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24529         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24530         * modules/truncf-ieee-tests: New file.
24531         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24532         * tests/test-truncf1.c (main): Remove signbit tests.
24533         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24534         * doc/posix-functions/truncf.texi: Mention the new module.
24535
24536 2010-12-21  Bruno Haible  <bruno@clisp.org>
24537
24538         New module 'ceilf-ieee'.
24539         * modules/ceilf-ieee: New file.
24540         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24541         test whether ceilf works according to ISO C 99 with IEC 60559.
24542         * m4/ceilf-ieee.m4: New file.
24543         * modules/ceilf-ieee-tests: New file.
24544         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24545         * tests/test-ceilf1.c (main): Remove signbit tests.
24546         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24547         * doc/posix-functions/ceilf.texi: Mention the new module.
24548
24549 2010-12-21  Bruno Haible  <bruno@clisp.org>
24550
24551         New module 'floorf-ieee'.
24552         * modules/floorf-ieee: New file.
24553         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24554         test whether floorf works according to ISO C 99 with IEC 60559.
24555         * m4/floorf-ieee.m4: New file.
24556         * modules/floorf-ieee-tests: New file.
24557         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24558         * tests/test-floorf1.c (main): Remove signbit tests.
24559         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24560         * doc/posix-functions/floorf.texi: Mention the new module.
24561
24562 2010-12-21  Bruno Haible  <bruno@clisp.org>
24563
24564         Support for minus zero in autoconf macros.
24565         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24566         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24567         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24568         * tests/minus-zero.h: Update comments.
24569
24570 2010-12-21  Bruno Haible  <bruno@clisp.org>
24571
24572         Tests for module 'ceil'.
24573         * modules/ceil-tests: New file.
24574         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24575         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24576
24577 2010-12-21  Bruno Haible  <bruno@clisp.org>
24578
24579         Tests for module 'floor'.
24580         * modules/floor-tests: New file.
24581         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24582         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24583
24584 2010-12-21  Bruno Haible  <bruno@clisp.org>
24585
24586         math: Fix indentation.
24587         * lib/math.in.h (floorf): Fix indentation.
24588
24589 2010-12-21  Bruno Haible  <bruno@clisp.org>
24590
24591         Fix cross-compilation guesses on Solaris.
24592         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24593         not match "solaris2.10".
24594         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24595         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24596         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24597
24598 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24599
24600         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24601         This fixes a problem observed with the latest coreutils snapshot
24602         that caused a test to fail on Solaris 8.  src/csplit.c's call
24603         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24604         earlier, instead of returning the number of bytes that would have
24605         been generated; this causes csplit to incorrectly report memory
24606         exhaustion.
24607         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24608         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24609         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24610         comments to match.
24611         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24612         Fix typo in matching older versions of Solaris: "solaris2.10"
24613         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24614         only for guessing while cross-compiling.
24615         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24616
24617 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24618
24619         ftoastr: fix comment again
24620         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24621         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24622         Also, simplify example a bit by using flags = 0.
24623
24624 2010-12-20  Bruno Haible  <bruno@clisp.org>
24625
24626         round*, trunc*: Update documentation regarding glibc.
24627         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24628         * doc/posix-functions/round.texi: Likewise.
24629         * doc/posix-functions/roundl.texi: Likewise.
24630         * doc/posix-functions/truncf.texi: Likewise.
24631         * doc/posix-functions/trunc.texi: Likewise.
24632         * doc/posix-functions/truncl.texi: Likewise.
24633
24634 2010-12-20  Bruno Haible  <bruno@clisp.org>
24635
24636         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24637         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24638         * doc/posix-functions/round.texi: Likewise.
24639         * doc/posix-functions/roundl.texi: Likewise.
24640
24641 2010-12-20  Bruno Haible  <bruno@clisp.org>
24642
24643         ttyname_r: Add missing declaration on HP-UX 11.
24644         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24645         HAVE_TTYNAME_R.
24646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24647         declared. Set HAVE_TTYNAME_R always.
24648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24649         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24650         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24651         HAVE_TTYNAME_R.
24652         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24653
24654 2010-12-20  Bruno Haible  <bruno@clisp.org>
24655
24656         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24657         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24658         * doc/posix-functions/getlogin_r.texi: Likewise.
24659         * tests/test-getlogin.c: Include <errno.h>.
24660         (main): Avoid test failure on HP-UX 11.11.
24661         * tests/test-getlogin_r.c (main): Likewise.
24662
24663 2010-12-20  Bruno Haible  <bruno@clisp.org>
24664
24665         getlogin_r: Add missing declaration on HP-UX 11.
24666         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24667         declared also when it exists as a function.
24668         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24669
24670 2010-12-20  Bruno Haible  <bruno@clisp.org>
24671
24672         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24673         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24674         through wcrtomb.
24675
24676 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24677
24678         ftoastr: fix comment
24679         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24680         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24681
24682 2010-12-19  Bruno Haible  <bruno@clisp.org>
24683
24684         isnan: Ensure it is a macro.
24685         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24686         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24687         Solaris.
24688
24689 2010-12-19  Bruno Haible  <bruno@clisp.org>
24690
24691         ldexpl test: Fix link error on OSF/1 5.1.
24692         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24693
24694 2010-12-19  Bruno Haible  <bruno@clisp.org>
24695
24696         wctype: Make it work in C++ mode on OSF/1 5.1.
24697         * lib/wctype.in.h (iswblank): Declare but not define here.
24698         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24699         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24700         * modules/wctype (Files): Add lib/iswblank.c.
24701
24702 2010-12-19  Bruno Haible  <bruno@clisp.org>
24703
24704         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24705         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24706         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24707
24708 2010-12-19  Bruno Haible  <bruno@clisp.org>
24709
24710         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24712         _POSIX_PII_SOCKET.
24713         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24714         * doc/posix-functions/recvfrom.texi: Likewise.
24715         * doc/posix-functions/send.texi: Likewise.
24716         * doc/posix-functions/sendto.texi: Likewise.
24717
24718 2010-12-19  Bruno Haible  <bruno@clisp.org>
24719
24720         tcgetsid: Add missing declaration on OSF/1 5.1.
24721         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24722         HAVE_TCGETSID.
24723         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24724         Don't set HAVE_TCGETSID.
24725         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24726         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24727         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24728         HAVE_TCGETSID.
24729         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24730
24731 2010-12-19  Bruno Haible  <bruno@clisp.org>
24732
24733         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24734         * lib/stdio.in.h: During the include_next statement, let recursive
24735         includes of this file include only the system header file.
24736
24737 2010-12-19  Bruno Haible  <bruno@clisp.org>
24738
24739         iconv_open: Fix regression from 2010-12-04.
24740         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24741         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24742
24743 2010-12-19  Bruno Haible  <bruno@clisp.org>
24744
24745         stdbool test: Avoid a gcc warning.
24746         * tests/test-stdbool.c (main): Fail if e1 is false.
24747         Reported by Jim Meyering.
24748
24749 2010-12-19  Jim Meyering  <meyering@redhat.com>
24750
24751         setenv: restore to working order
24752         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24753         mistakenly removed.
24754         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24755         HAVE_SETENV.
24756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24757         HAVE_SETENV.
24758
24759 2010-12-19  Bruno Haible  <bruno@clisp.org>
24760
24761         Document some different function declarations on OSF/1 5.1.
24762         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24763         * doc/posix-functions/inet_ntop.texi: Likewise.
24764         * doc/posix-functions/gethostname.texi: Likewise.
24765         * lib/unistd.in.h (gethostname): Update comment.
24766
24767 2010-12-19  Bruno Haible  <bruno@clisp.org>
24768
24769         doc: Mention vasprintf-posix module.
24770         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24771         the 'vasprintf-posix' module.
24772         * doc/glibc-functions/vasprintf.texi: Likewise.
24773
24774 2010-12-19  Bruno Haible  <bruno@clisp.org>
24775
24776         unsetenv: Add missing declaration on OSF/1 5.1.
24777         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24779         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24781         not HAVE_UNSETENV.
24782         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24783         HAVE_UNSETENV.
24784         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24785
24786 2010-12-19  Bruno Haible  <bruno@clisp.org>
24787
24788         setenv: Add missing declaration on OSF/1 5.1.
24789         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24791         declared. Don't set HAVE_SETENV.
24792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24793         not HAVE_SETENV.
24794         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24795         HAVE_SETENV.
24796         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24797
24798 2010-12-19  Bruno Haible  <bruno@clisp.org>
24799
24800         nl_langinfo tests: Avoid gcc warning.
24801         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24802
24803 2010-12-19  Bruno Haible  <bruno@clisp.org>
24804
24805         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24806         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24807         _GL_CXXALIAS_SYS.
24808
24809 2010-12-19  Bruno Haible  <bruno@clisp.org>
24810
24811         stdbool: Relax test.
24812         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24813         address to 'bool' work in static initializer, for compilers other than
24814         GCC.
24815
24816 2010-12-19  Bruno Haible  <bruno@clisp.org>
24817
24818         ftello: Add missing declaration on OSF/1 5.1.
24819         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24820         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24822         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24823         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24824
24825 2010-12-19  Bruno Haible  <bruno@clisp.org>
24826
24827         fseeko: Add missing declaration on OSF/1 5.1.
24828         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24831         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24832         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24833
24834 2010-12-19  Bruno Haible  <bruno@clisp.org>
24835
24836         fchdir: Add missing declaration on OSF/1 5.1.
24837         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24840         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24841         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24842
24843 2010-12-19  Bruno Haible  <bruno@clisp.org>
24844
24845         relocatable-prog-wrapper: Separate from relocatable-prog.
24846         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24847         uninstall-relocwrapper rule here.
24848         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24849         Reported by Ian Beckwith <ianb@erislabs.net>.
24850
24851 2010-12-19  Bruno Haible  <bruno@clisp.org>
24852
24853         unistr/u8-mbsnlen: Add missing dependency.
24854         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24855         Reported by Ian Beckwith <ianb@erislabs.net>.
24856
24857 2010-12-19  Bruno Haible  <bruno@clisp.org>
24858
24859         iconv: Make it possible again to use this module without 'iconv-h'.
24860         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24861         if it is not defined.
24862         Reported by Ian Beckwith <ianb@erislabs.net>.
24863
24864 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24865
24866         acl: port to Solaris 8 when copying from tmpfs to ufs
24867         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24868         error number.  Problem observed on Solaris 8 with latest
24869         coreutils, with "mv A B", where A is on a tmpfs file system and B
24870         is on a ufs file system.  This caused coreutils' mv/part-symlink
24871         test to fail.
24872
24873         tests: set fail=0 at start
24874         * tests/init.sh (setup_): Move fail=0 initialization here ...
24875         (mktempd_): ... from here, so that tests can rely on fail being
24876         set to 0 initially.  This fixes a problem in coreutils; see:
24877         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24878
24879 2010-12-18  Bruno Haible  <bruno@clisp.org>
24880
24881         memmem-simple: Stylistic changes.
24882         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24883         Fix preprocessor directive indentation.
24884
24885 2010-12-15  Pádraig Brady <P@draigBrady.com>
24886
24887         memmem, memmem-simple: reorganize and expand empty needle check
24888         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24889         functional checks to memmem-simple so that one has a fully functional
24890         memmem by using just this module.
24891         Restrict the performance only check to the memmem module.
24892         Also expand the empty needle check to ensure the correct
24893         pointer is returned, not just a non NULL pointer.
24894         * doc/glibc-functions/memmem.texi: Rearrange the portability
24895         documentation to correlate with the rearranged checks.
24896         Clarify exactly how the memmem and memmem-simple modules
24897         relate to each other.
24898
24899 2010-12-15  Pádraig Brady <P@draigBrady.com>
24900             Bruno Haible  <bruno@clisp.org>
24901
24902         Improve cross-compilation guesses for uClibc.
24903         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24904         that uClibc does not have the glibc bug.
24905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24906         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24907
24908 2010-12-14  Eric Blake  <eblake@redhat.com>
24909
24910         configmake: provide fallbacks for oldest supported autotools
24911         * m4/configmake.m4: New file.
24912         * modules/configmake (Files): Ship it.
24913         (configure.ac): Use it to guarantee fallbacks.
24914
24915 2010-12-13  Pádraig Brady <P@draigBrady.com>
24916
24917         read-file: Improve handling of large files
24918         * lib/read-file.c (fread_file): Minimize realloc()s
24919         for regular files, and better manage sizes around SIZE_MAX.
24920
24921 2010-12-13  Eric Blake  <eblake@redhat.com>
24922
24923         cloexec, fcntl: relax license
24924         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24925         consent from all contributors.
24926         * modules/fcntl (License): Likewise.
24927
24928 2010-12-10  Bruno Haible  <bruno@clisp.org>
24929
24930         Tests for module 'pipe-posix'.
24931         * modules/pipe-posix-tests: New file.
24932         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24933
24934 2010-12-10  Bruno Haible  <bruno@clisp.org>
24935
24936         pipe-posix: Make it work in C++ mode.
24937         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24938         (pipe): Use common idiom, not a macro definition.
24939         * lib/pipe.c: New file.
24940         * m4/pipe.m4: New file.
24941         * modules/pipe-posix (Description): Enhance.
24942         (Files): Add lib/pipe.c, m4/pipe.m4.
24943         (configure.ac): Invoke gl_FUNC_PIPE.
24944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24945         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24946         * tests/test-unistd-c++.cc: Check the signature of pipe.
24947
24948 2010-12-10  Bruno Haible  <bruno@clisp.org>
24949
24950         Rename module 'pipe' to 'spawn-pipe'.
24951         * modules/spawn-pipe: New file, renamed from modules/pipe.
24952         (Files, configure.ac, Makefile.am): Update.
24953         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24954         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24955         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24956         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24957         "spawn-pipe.h" instead of "pipe.h".
24958         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24959         to gl_SPAWN_PIPE.
24960         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24961         (Files, Makefile.am): Update.
24962         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24963         Update.
24964         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24965         Include "spawn-pipe.h" instead of "pipe.h".
24966         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24967         * lib/javacomp.c: Likewise.
24968         * lib/javaversion.c: Likewise.
24969         * lib/pipe-filter-gi.c: Likewise.
24970         * lib/pipe-filter-ii.c: Likewise.
24971         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24972         * modules/javacomp (Depends-on): Likewise.
24973         * modules/javaversion (Depends-on): Likewise.
24974         * modules/pipe-filter-gi (Depends-on): Likewise.
24975         * modules/pipe-filter-ii (Depends-on): Likewise.
24976         * MODULES.html.sh (Executing programs): Update.
24977         * NEWS: Mention the change.
24978
24979 2010-12-10  Eric Blake  <eblake@redhat.com>
24980
24981         pipe-posix: new module
24982         * modules/pipe-posix: New file.
24983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24984         (gl_UNISTD_H): Check for declaration.
24985         * modules/unistd (Makefile.am): Substitute it.
24986         * lib/unistd.in.h (pipe): Provide it for mingw.
24987         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24988         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24989
24990 2010-12-07  Bruno Haible  <bruno@clisp.org>
24991
24992         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24993         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24994         u8_strcmp_gnu.
24995         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24996
24997 2010-12-06  Bruno Haible  <bruno@clisp.org>
24998
24999         Update internal documentation.
25000         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25001
25002 2010-12-04  Bruno Haible  <bruno@clisp.org>
25003
25004         Put more information about failed tests into the test return codes.
25005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25006         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25007         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25008         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25011         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25012         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25013         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25015         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25016         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25017         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25018         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25019         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25020         returns a bit mask.
25021         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25022         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25023         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25024         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25025         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25026         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25029         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25031         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25032         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25035         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25036         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25037         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25038         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25040         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25042         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25044         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25045         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25046         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25047         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25048         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25049         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25050         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25051         gl_PRINTF_PRECISION): Likewise.
25052         * m4/regex.m4 (gl_REGEX): Likewise.
25053         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25056         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25057         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25060         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25061         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25062         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25063         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25064         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25065         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25066         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25067         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25068         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25069         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25072         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25073         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25074         enumerated value.
25075         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25076
25077 2010-12-04  Bruno Haible  <bruno@clisp.org>
25078
25079         Update for Solaris 11 2010-11.
25080         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25081         Express, released in November 2010.
25082
25083 2010-12-04  Bruno Haible  <bruno@clisp.org>
25084
25085         nproc: Relax license.
25086         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25087         and Paul Eggert.
25088         Requested by Ludovic Courtès <ludo@gnu.org>.
25089
25090 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25091
25092         utimecmp: fine-grained src to nearby coarse-grained dest
25093
25094         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25095         and the source is on a file system with higher-resolution time
25096         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25097         not work, and the time stamps are close together, the algorithm to
25098         determine the exact resolution from the read-back mtime was buggy:
25099         it had a "!=" where it should have had an "==".  This bug has been
25100         in the code ever since it was introduced to gnulib.
25101         Problem reported by Dan Jacobson in
25102         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25103
25104 2010-11-30  Bruno Haible  <bruno@clisp.org>
25105
25106         strerror_r-posix: Fix autoconf test.
25107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25108
25109 2010-11-28  Bruno Haible  <bruno@clisp.org>
25110             Paul Eggert  <eggert@cs.ucla.edu>
25111
25112         Tests for module 'getdomainname'.
25113         * modules/getdomainname-tests: New file.
25114         * tests/test-getdomainname.c: New file, based on
25115         tests/test-gethostname.c.
25116
25117 2010-11-28  Bruno Haible  <bruno@clisp.org>
25118             Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         getdomainname: Use the system function when possible.
25121         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25122         (getdomainname): Replace if needed. Provide the declaration if it is
25123         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25124         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25125         (getdomainname): When the system has getdomainname, call the system
25126         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25127         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25128         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25129         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25130         the function if its second argument is of type 'int' or if it is found
25131         in libnsl.
25132         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25133         <sys/systeminfo.h> and sysinfo().
25134         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25136         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25137         HAVE_GETDOMAINNAME.
25138         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25139         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25140         * doc/glibc-functions/getdomainname.texi: Document the problems with
25141         the getdomainname declaration.
25142
25143 2010-11-28  Bruno Haible  <bruno@clisp.org>
25144
25145         sys_socket: Ensure ss_family field on AIX.
25146         * lib/sys_socket.in.h (ss_family): New macro definition.
25147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25148         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25149         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25150         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25151         * modules/sys_socket (Makefile.am): Substitute
25152         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25153         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25154
25155 2010-11-27  Bruno Haible  <bruno@clisp.org>
25156
25157         readline: Improve configure output.
25158         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25159         "checking for readline..." result understandable.
25160
25161 2010-11-27  Bruno Haible  <bruno@clisp.org>
25162
25163         *printf-posix: Detect a bug on Solaris 10/x86.
25164         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25165         for floating-point output.
25166         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25167         directive.
25168         * tests/test-snprintf-posix.h (test_function): Likewise.
25169         * tests/test-sprintf-posix.h (test_function): Likewise.
25170         * tests/test-vasprintf-posix.c (test_function): Likewise.
25171         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25172         * doc/posix-functions/printf.texi: Likewise.
25173         * doc/posix-functions/snprintf.texi: Likewise.
25174         * doc/posix-functions/sprintf.texi: Likewise.
25175         * doc/posix-functions/vfprintf.texi: Likewise.
25176         * doc/posix-functions/vprintf.texi: Likewise.
25177         * doc/posix-functions/vsnprintf.texi: Likewise.
25178         * doc/posix-functions/vsprintf.texi: Likewise.
25179         * doc/glibc-functions/obstack_printf.texi: Likewise.
25180         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25181
25182 2010-11-27  Bruno Haible  <bruno@clisp.org>
25183
25184         Fix link error when module libunistring-optional is in use.
25185         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25186         * modules/striconveha-tests (Makefile.am): Likewise.
25187
25188 2010-11-27  Bruno Haible  <bruno@clisp.org>
25189
25190         regex: Mention link dependencies.
25191         * modules/regex (Link): New section.
25192         * modules/rpmatch (Link): Likewise.
25193         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25194
25195 2010-11-27  Bruno Haible  <bruno@clisp.org>
25196
25197         ftoastr: Fix compilation error on Solaris.
25198         * lib/ftoastr.c: Include <config.h>.
25199
25200 2010-11-27  Bruno Haible  <bruno@clisp.org>
25201
25202         getloadavg: Update documentation.
25203         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25204
25205 2010-11-27  Bruno Haible  <bruno@clisp.org>
25206
25207         sys_socket: Fix test whether the functions are declared.
25208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25209         not <sys/select.h>.
25210
25211 2010-11-27  Bruno Haible  <bruno@clisp.org>
25212
25213         getpass: Make sure to get system declaration on some platforms.
25214         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25215         gl_USE_SYSTEM_EXTENSIONS.
25216         * modules/getpass (Depends-on): Add extensions.
25217
25218 2010-11-26  Bruno Haible  <bruno@clisp.org>
25219
25220         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25221         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25222         'iconv' module is present.
25223         (ICONV_CONST): New macro.
25224         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25225         ICONV_CONST.
25226         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25227         set ICONV_CONST.
25228         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25229         here.
25230         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25231         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25232         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25233         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25234         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25235         present.
25236
25237 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25238
25239         ftoastr: comment fix
25240         * lib/ftoastr.c: "little" -> "little or no" in comment
25241
25242 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25243
25244         stdint: port to GCC 4.3 + OSX + Octave
25245         On this platform, stdint.h is buggy and defines int64_t to long
25246         long int.  The replacement defined it to long int, causing
25247         problems with C++ style name mangling.  Instead, trust the system
25248         definition if INT64_MAX is defined, and likewise for the unsigned
25249         variant.   Problem reported by Jarno Rajahalme in
25250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25251         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25252         and don't mess with int64_t and INT64_MAX in this case.
25253         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25254
25255 2010-11-24  Bruno Haible  <bruno@clisp.org>
25256
25257         doc: Corrections regarding MacOS X 10.4 and 10.5.
25258         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25259         MacOS X.
25260         Reported by Simon Josefsson.
25261
25262 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25263
25264         Uninstall ".bin" files installed by relocwrapper.
25265         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25266         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25267         unless it is already there.
25268
25269 2010-11-21  Bruno Haible  <bruno@clisp.org>
25270
25271         Update for NetBSD 5.0.
25272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25273         NetBSD; the test fails on NetBSD 5.0.
25274         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25275         about NetBSD.
25276
25277 2010-11-21  Bruno Haible  <bruno@clisp.org>
25278
25279         Update for HP-UX 11.23 and HP-UX 11.31.
25280         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25281         HP-UX.
25282
25283 2010-11-21  Bruno Haible  <bruno@clisp.org>
25284
25285         Update for MacOS X 10.5.
25286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25287         MacOS X; the test fails on MacOS X 10.5.8.
25288         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25289         about MacOS X.
25290
25291 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25292
25293         bootstrap: add bootstrap_sync option.
25294         See discussion at
25295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25297         * build-aux/bootstrap: Accept --bootstrap-sync to update
25298         bootstrap if it is not identical to the local gnulib's
25299         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25300         enable this by default.  Accept --no-bootstrap-sync to disable
25301         it.
25302
25303 2010-11-20  Bruno Haible  <bruno@clisp.org>
25304
25305         Ensure that <features.h> is included before __GLIBC__ is tested.
25306         * lib/printf-parse.h: Include <features.h>.
25307         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25308         Reported by Mike Frysinger <vapier@gentoo.org>.
25309
25310         Ensure that <features.h> is included before __GLIBC__ is tested.
25311         * lib/wchar.in.h: Include <features.h>.
25312         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25313         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25314         Reported by Mike Frysinger <vapier@gentoo.org>.
25315
25316         Ensure that <features.h> is included before __GLIBC__ is tested.
25317         * lib/arpa_inet.in.h: Include <features.h>.
25318         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25319         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25320         Reported by Mike Frysinger <vapier@gentoo.org>.
25321
25322         Ensure that <features.h> is included before __GLIBC__ is tested.
25323         * build-aux/link-warning.h: Include <features.h>.
25324         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25325         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25326         Reported by Mike Frysinger <vapier@gentoo.org>.
25327
25328         Ensure that <features.h> is included before __GLIBC__ is tested.
25329         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25330         Reported by Mike Frysinger <vapier@gentoo.org>.
25331
25332 2010-11-20  Bruno Haible  <bruno@clisp.org>
25333
25334         memmem: Fix autoconf test.
25335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25336
25337 2010-11-20  Bruno Haible  <bruno@clisp.org>
25338
25339         Port to uClibc.
25340         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25341         * lib/fcntl.in.h: Likewise.
25342         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25343         * lib/mbrtowc.c (mbrtowc): Likewise.
25344         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25345         * lib/strerror_r.c: Likewise.
25346         * lib/unistr/u8-strnlen.c: Likewise.
25347         * lib/vasnprintf.c (decimal_point_char): Likewise.
25348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25349         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25351         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25352         * tests/test-sigaction.c (handler, main): Likewise.
25353         * lib/freading.h: Treat uClibc like a non-glibc platform.
25354         * lib/freading.c: Likewise.
25355         * lib/gettext.h: Likewise.
25356         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25357         Likewise.
25358         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25359         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25360         * lib/propername.c (proper_name_utf8): Likewise.
25361         * lib/spawn.in.h: Likewise.
25362         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25363         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25364         mem_cd_iconveh_internal): Likewise.
25365         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25366         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25367         strstr, strcasestr): Likewise.
25368         * lib/unicodeio.c (unicode_to_mb): Likewise.
25369         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25370         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25371         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25372         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25373         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25374         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25375         * lib/unistr/u8-stpncpy.c: Likewise.
25376         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25377         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25378         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25379         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25380         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25382         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25385         Likewise.
25386         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25387         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25389         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25390         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25392         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25393         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25394         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25395         * tests/test-striconveha.c (main): Likewise.
25396         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25397         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25398         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25399         * doc/posix-functions/getline.texi: Likewise.
25400         Reported by Mike Frysinger <vapier@gentoo.org>.
25401
25402 2010-11-20  Bruno Haible  <bruno@clisp.org>
25403
25404         nproc: Fix condition.
25405         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25406         HAVE_PTHREAD_AFFINITY_NP.
25407
25408 2010-11-20  Bruno Haible  <bruno@clisp.org>
25409
25410         Fix a comment.
25411         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25412
25413 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25414
25415         ftoastr: don't assume snprintf
25416         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25417         Implement a subset of snprintf here, by using sprintf safely.
25418         * modules/ftoastr (Depends-on): Remove snprintf.
25419
25420 2010-11-19  Jim Meyering  <meyering@redhat.com>
25421
25422         test-rename.h: fix compilation failure
25423         * tests/test-rename.h (test_rename): Add omitted "}".
25424
25425 2010-11-17  Jim Meyering  <meyering@redhat.com>
25426
25427         maint.mk: add a URL discussing the no-@acronym policy
25428         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25429
25430 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25431
25432         ftoastr: depend on snprintf, improve comments
25433         * lib/ftoastr.c: Also mention Loitsch's draft.
25434         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25435         needed in the current implementation, but it might simplify
25436         speeding up the code later.
25437         * modules/ftoastr: Depend on snprintf; this improves portability.
25438         Suggested by Bruno Haible in the same email.
25439
25440         ftoastr: port to hosts lacking strtof and strtold
25441         Problem reported by Bruno Haible in
25442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25443         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25444         environment and strtold (and presumably strtof) are not available.
25445         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25446         (configure.ac): Require gl_C99_STRTOLD.
25447
25448 2010-11-18  Bruno Haible  <bruno@clisp.org>
25449
25450         c-strtold: Avoid link error on AIX 7.
25451         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25452         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25453         (gl_C_STRTOLD): Test whether strtold_l exists.
25454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25455
25456 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25457
25458         intprops: new macro INT_BITS_STRLEN_BOUND
25459         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25460         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25461         not exposed.  Also, it uses a slightly tighter bound than before;
25462         though this makes no practical difference, we might as well be as
25463         tight as we easily can.
25464
25465         ftoastr: new module, for lossless conversion of floats to short strings
25466         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25467         * modules/ftoastr: New files.
25468
25469 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25470
25471         bootstrap: port to Solaris sed
25472         * build-aux/bootstrap (get_version): Port to Solaris sed.
25473         See Ralf Wildenhues's note in
25474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25475
25476 2010-11-14  Jim Meyering  <meyering@redhat.com>
25477
25478         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25479         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25480         and move definition closer to sole use.
25481
25482 2010-11-13  Jim Meyering  <meyering@redhat.com>
25483
25484         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25485         Now we require at least autoconf-2.59, which means the work-around
25486         is no longer needed.
25487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25488         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25490         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25491         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25492
25493 2010-11-13  Bruno Haible  <bruno@clisp.org>
25494
25495         rename, renameat: Avoid test failures at NFS mounted locations.
25496         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25497         functions.
25498         (test_rename): Use assert_nonexistent.
25499         * tests/test-rename.c: Include <dirent.h>.
25500         * tests/test-renameat.c: Likewise.
25501         Reported by Gary V. Vaughan <gary@gnu.org>.
25502
25503         rename, renameat: Document Linux bug with NFS
25504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25505         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25506         * doc/posix-functions/renameat.texi: Likewise.
25507         Suggested by Eric Blake.
25508
25509 2010-11-13  Bruno Haible  <bruno@clisp.org>
25510
25511         rename test: Add comments.
25512         * tests/test-rename.h (test_rename): Add structure and comments.
25513
25514 2010-11-13  Eric Blake  <eblake@redhat.com>
25515
25516         maintainer-makefile: cover a few more files
25517         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25518         scripts generated within C files, for libvirt.
25519
25520 2010-11-13  Bruno Haible  <bruno@clisp.org>
25521
25522         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25523         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25524         character, return the number of bytes that belong together, not always
25525         1.
25526         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25527         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25528         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25529         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25530         number of bytes of an invalid character.
25531         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25532         (main): Invoke it.
25533         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25534         results.
25535         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25536         malformed byte sequences.
25537         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25538         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25539         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25540         Reported by Ben Pfaff and Paolo Bonzini.
25541
25542 2010-11-13  Bruno Haible  <bruno@clisp.org>
25543
25544         openat: Work around glibc bug with fchownat() and empty file names.
25545         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25546         (gl_FUNC_FCHOWNAT): Invoke it.
25547         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25548         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25549         Reported by Gary V. Vaughan <gary@gnu.org>.
25550
25551 2010-11-13  Bruno Haible  <bruno@clisp.org>
25552
25553         openat: Ensure autoconf macro ordering.
25554         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25555         gl_USE_SYSTEM_EXTENSIONS.
25556         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25557
25558 2010-11-13  Bruno Haible  <bruno@clisp.org>
25559
25560         Update comments.
25561         * lib/unistr/u8-check.c: Update file name in comments.
25562         * lib/unistr/u8-mblen.c: Likewise.
25563         * lib/unistr/u8-prev.c: Likewise.
25564         * lib/unistr/u8-strmblen.c: Likewise.
25565         * lib/unistr/u8-strmbtouc.c: Likewise.
25566
25567 2010-11-13  Jim Meyering  <meyering@redhat.com>
25568
25569         tests: avoid test failure on Solaris 10 due to lack of PATH export
25570         * tests/test-update-copyright.sh: Don't forget to export PATH.
25571
25572         init.sh: ensure that IFS is defined, just in case...
25573         * tests/init.sh (setup_): Ensure that IFS is defined,
25574         so that saving and restoring it works as expected.  This
25575         appears to be useful at least for an old version of dash
25576         from a long time ago (RH 6).  See here for details:
25577         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25578
25579         maint.mk: tighten "test a == b" check
25580         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25581         test to files that contain something like #!/bin/sh.
25582         Without this, coreutils would get two false positives in
25583         the comments of C source files.
25584
25585 2010-11-12  Eric Blake  <eblake@redhat.com>
25586
25587         bootstrap: fix typo in previous attempt
25588         * build-aux/bootstrap (buildreq): Correct the grouping.
25589         Reported by Paul Eggert.
25590
25591         maintainer-makefile: prohibit test x == x
25592         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25593         Based on a report by Matthias Bolte.
25594
25595         bootstrap: allow FreeBSD gzip
25596         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25597         which has no '.' and goes to stderr.
25598         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25599         Reported by Matthias Bolte.
25600
25601         maintainer-makefile: check for i18n setup
25602         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25603         will likely work.
25604
25605 2010-11-12  Bruno Haible  <bruno@clisp.org>
25606
25607         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25608         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25609         * lib/nanosleep.c (nanosleep): Likewise.
25610
25611 2010-11-11  Bruno Haible  <bruno@clisp.org>
25612
25613         fcntl-h: Fix for use of C++ on glibc systems.
25614         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25615         also on glibc systems in C++ mode.
25616         Reported by Gary V. Vaughan <gary@gnu.org>.
25617
25618 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25619
25620         mknod: avoid false failure with dash
25621         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25622
25623 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25624
25625         unlink: Fix "is it should" typo in diagnostic.
25626         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25628
25629 2010-11-11  Bruno Haible  <bruno@clisp.org>
25630
25631         Tests for module 'strerror_r-posix'.
25632         * modules/strerror_r-posix-tests: New file.
25633         * tests/test-strerror_r.c: New file.
25634         * tests/test-string-c++.cc: Check the signature of strerror_r.
25635
25636         New module 'strerror_r-posix'.
25637         * lib/string.in.h (strerror_r): New declaration.
25638         * lib/strerror_r.c: New file.
25639         * m4/strerror_r.m4: New file.
25640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25641         of strerror_r.
25642         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25643         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25644         * modules/strerror_r-posix: New file.
25645         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25646         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25647         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25648         portability problems.
25649
25650 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25651
25652         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25653         line is also considered for output. Quoted function name in shell
25654         command, so temporary files for functions like MyClass::operator()
25655         are removed correctly without errors.
25656
25657 2010-11-09  Bruno Haible  <bruno@clisp.org>
25658
25659         * doc/posix-functions/strerror.texi: List more failing platforms.
25660
25661         * doc/posix-functions/strerror.texi: Add a comment.
25662
25663 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25664
25665         fdopendir: fix bug on MacOS X when low on file descriptors
25666
25667         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25668         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25669         All callers changed.
25670         (fdopendir): Invoke save_cwd at the top level, not after using
25671         multiple dup() calls to use up file descriptors.  Then retry
25672         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25673         less than the maximum number of open file descriptors, because
25674         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25675         on Mac OS X 10.6.4 for tar 1.24
25676         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25677         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25678         and for tar 1.25
25679         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25680
25681 2010-11-07  Bruno Haible  <bruno@clisp.org>
25682
25683         vasnprintf: Support I flag on glibc systems.
25684         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25685         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25686         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25687         snprintf function.
25688         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25689         glibc systems.
25690         * tests/test-vasnprintf-posix3.c: New file.
25691         * modules/vasnprintf-posix-tests (Files): Add it.
25692         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25693
25694 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25695
25696         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25697         * MODULES.html.sh: For compiler warnings, use name
25698         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25699
25700 2010-11-05  Eric Blake  <eblake@redhat.com>
25701
25702         ceil, floor: avoid spurious failure with icc
25703         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25704         [denormals-as-zero] when optimizing without -mieee-fp option.
25705         * tests/test-floorf2.c (floorf_reference): Likewise.
25706         * tests/test-ceilf1.c (dummy): New function.
25707         (main): Use it to outsmart icc's optimization.
25708         * tests/test-floorf1.c (dummy, main): Likewise.
25709
25710         tests: require working signbit
25711         * modules/ceilf-tests (Depends-on): Add signbit.
25712         * modules/ceill-tests (Depends-on): Likewise.
25713         * modules/floorf-tests (Depends-on): Likewise.
25714         * modules/floorl-tests (Depends-on): Likewise.
25715         * modules/round-tests (Depends-on): Likewise.
25716         * modules/roundf-tests (Depends-on): Likewise.
25717         * modules/roundl-tests (Depends-on): Likewise.
25718         * modules/trunc-tests (Depends-on): Likewise.
25719         * modules/truncf-tests (Depends-on): Likewise.
25720         * modules/truncl-tests (Depends-on): Likewise.
25721
25722         strtod: work around icc bug
25723         * lib/strtod.c (minus_zero): Define to working value.
25724         (strtod): Use it to avoid icc bug.
25725
25726         copysign: enhance tests
25727         * modules/copysign-tests (Files): Add minus-zero.h.
25728         * tests/test-copysign.c (main): Also test zeros.
25729
25730 2010-11-04  Eric Blake  <eblake@redhat.com>
25731
25732         ceil, floor, round, trunc: enhance tests of -0
25733         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25734         * tests/test-ceill.c (main): Likewise.
25735         * tests/test-floorf1.c (main): Likewise.
25736         * tests/test-floorl.c (main): Likewise.
25737         * tests/test-round1.c (main): Likewise.
25738         * tests/test-roundf1.c (main): Likewise.
25739         * tests/test-roundl.c (main): Likewise.
25740         * tests/test-trunc1.c (main): Likewise.
25741         * tests/test-truncf1.c (main): Likewise.
25742         * tests/test-truncl.c (main): Likewise.
25743
25744 2010-11-04  Eric Blake  <eblake@redhat.com>
25745
25746         frexp, tests: work around ICC bug with -zero
25747         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25748         works with more compilers.
25749         * tests/minus-zero.h: New file.
25750         * modules/ceilf-tests (Files): Include it.
25751         * modules/ceill-tests (Files): Likewise.
25752         * modules/floorf-tests (Files): Likewise.
25753         * modules/floorl-tests (Files): Likewise.
25754         * modules/frexp-nolibm-tests (Files): Likewise.
25755         * modules/frexp-tests (Files): Likewise.
25756         * modules/frexpl-nolibm-tests (Files): Likewise.
25757         * modules/frexpl-tests (Files): Likewise.
25758         * modules/isnan-tests (Files): Likewise.
25759         * modules/isnand-nolibm-tests (Files): Likewise.
25760         * modules/isnand-tests (Files): Likewise.
25761         * modules/isnanf-nolibm-tests (Files): Likewise.
25762         * modules/isnanf-tests (Files): Likewise.
25763         * modules/isnanl-nolibm-tests (Files): Likewise.
25764         * modules/isnanl-tests (Files): Likewise.
25765         * modules/round-tests (Files): Likewise.
25766         * modules/roundf-tests (Files): Likewise.
25767         * modules/roundl-tests (Files): Likewise.
25768         * modules/ldexpl-tests (Files): Likewise.
25769         * modules/signbit-tests (Files): Likewise.
25770         * modules/snprintf-posix-tests (Files): Likewise.
25771         * modules/sprintf-posix-tests (Files): Likewise.
25772         * modules/strtod-tests (Files): Likewise.
25773         * modules/trunc-tests (Files): Likewise.
25774         * modules/truncf-tests (Files): Likewise.
25775         * modules/truncl-tests (Files): Likewise.
25776         * modules/vsnprintf-posix-tests (Files): Likewise.
25777         * modules/vsprintf-posix-tests (Files): Likewise.
25778         * modules/vasnprintf-posix-tests (Files): Likewise.
25779         * modules/vasprintf-posix-tests (Files): Likewise.
25780         * tests/test-ceilf1.c (main): Use it.
25781         * tests/test-ceill.c (main): Likewise.
25782         * tests/test-floorf1.c (main): Likewise.
25783         * tests/test-floorl.c (main): Likewise.
25784         * tests/test-frexp.c (main): Likewise.
25785         * tests/test-frexpl.c (main): Likewise.
25786         * tests/test-isnan.c (main): Likewise.
25787         * tests/test-isnand.h (main): Likewise.
25788         * tests/test-isnanf.h (main): Likewise.
25789         * tests/test-isnanl.h (main): Likewise.
25790         * tests/test-ldexpl.c (main): Likewise.
25791         * tests/test-round.c (main): Likewise.
25792         * tests/test-roundf.c (main): Likewise.
25793         * tests/test-roundl.c (main): Likewise.
25794         * tests/test-signbit.c (test_signbitf, test_signbitd)
25795         (test_signbitl): Likewise.
25796         * tests/test-snprintf-posix.h (test_function): Likewise.
25797         * tests/test-sprintf-posix.h (test_function): Likewise.
25798         * tests/test-strtod.c (main): Likewise.
25799         * tests/test-trunc1.c (main): Likewise.
25800         * tests/test-truncf1.c (main): Likewise.
25801         * tests/test-truncl.c (main): Likewise.
25802
25803         isnanl: work around icc bug
25804         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25805
25806 2010-11-03  Eric Blake  <eblake@redhat.com>
25807
25808         tests: fix compiler warnings
25809         * tests/test-getopt.h (test_getopt): Fix condition.
25810         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25811         * tests/test-pipe2.c (main): Likewise.
25812         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25813
25814         utimens: fix broken m4 test
25815         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25816
25817 2010-10-28  Bruno Haible  <bruno@clisp.org>
25818
25819         posix_spawn*, getdtablesize: Relax license.
25820         * modules/posix_spawn (License): Change to LGPLv2+.
25821         * modules/posix_spawnp (License): Likewise.
25822         * modules/posix_spawn-internal (License): Likewise.
25823         * modules/posix_spawnattr_init (License): Likewise.
25824         * modules/posix_spawnattr_getflags (License): Likewise.
25825         * modules/posix_spawnattr_setflags (License): Likewise.
25826         * modules/posix_spawnattr_getpgroup (License): Likewise.
25827         * modules/posix_spawnattr_setpgroup (License): Likewise.
25828         * modules/posix_spawnattr_getschedparam (License): Likewise.
25829         * modules/posix_spawnattr_setschedparam (License): Likewise.
25830         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25831         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25832         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25833         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25834         * modules/posix_spawnattr_getsigmask (License): Likewise.
25835         * modules/posix_spawnattr_setsigmask (License): Likewise.
25836         * modules/posix_spawnattr_destroy (License): Likewise.
25837         * modules/posix_spawn_file_actions_init (License): Likewise.
25838         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25839         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25840         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25841         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25842         * modules/getdtablesize (License): Likewise.
25843         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25844
25845 2010-10-26  Bruno Haible  <bruno@clisp.org>
25846
25847         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25848         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25849         Cygwin and mingw.
25850         Suggested by Eric Blake.
25851
25852 2010-10-26  Bruno Haible  <bruno@clisp.org>
25853
25854         stdio: Work around compilation error due to renameat() on Solaris 10.
25855         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25856         * lib/renameat.c: Don't include <unistd.h> here.
25857         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25858         Reported by Paul Eggert and Eric Blake.
25859
25860 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25861
25862         renameat: port to Solaris 10, which declares renameat in unistd.h
25863
25864         * lib/renameat.c: Include unistd.h before stdio.h, because
25865         Solaris 10 declares renameat in unistd.h.  Problem encountered
25866         when building GNU tar 1.24 on Solaris 10.
25867
25868 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25869
25870         fdopendir: fix C89 compilation
25871         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25872         compilers.
25873
25874 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         inttostr: simplify by removing unnecessary redundancy
25877         * lib/anytostr.c: Don't include verify.h.
25878         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25879         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25880         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25881         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25882         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25883         Likewise.
25884         * modules/inttostr (Depends-on): Remove 'verify'.
25885
25886 2010-10-23  Bruno Haible  <bruno@clisp.org>
25887
25888         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25889         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25890         Reported by Eric Blake.
25891
25892 2010-10-23  Bruno Haible  <bruno@clisp.org>
25893
25894         Tests: Fix LOCALE_JA on MirBSD 10.
25895         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25896         to an UTF-8 locale.
25897         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25898         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25899         Reported by Eric Blake.
25900
25901 2010-10-21  Bruno Haible  <bruno@clisp.org>
25902
25903         nl_langinfo test: Avoid test failure on NetBSD 5.
25904         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25905         Reported by Eric Blake.
25906
25907 2010-10-21  Eric Blake  <eblake@redhat.com>
25908
25909         c-stack: work around libsigsegv 2.8 bug
25910         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25911         overflow on at least PowerPC64.
25912
25913 2010-10-17  Bruno Haible  <bruno@clisp.org>
25914
25915         userspec: Drop redundant file.
25916         * modules/userspec (Files): Remove lib/inttostr.h.
25917
25918 2010-10-17  Bruno Haible  <bruno@clisp.org>
25919
25920         nl_langinfo tests: Silence some warnings.
25921         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25922         Reported by Jim Meyering.
25923
25924 2010-10-17  Bruno Haible  <bruno@clisp.org>
25925
25926         Make use of GCC's attribute __alloc_size__.
25927         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25928         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25929         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25930         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25931         __alloc_size__.
25932         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25933         Suggested by Jim Meyering.
25934
25935 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25936
25937         bootstrap: anchor .gitignore entries.
25938         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25939         with...
25940         (insert_vc_ignore): ... this new function, which prepends `/' to
25941         all .gitignore entries before passing them to
25942         insert_sorted_if_absent.
25943
25944 2010-10-16  Bruno Haible  <bruno@clisp.org>
25945
25946         nextafter: Fix configure check.
25947         * modules/nextafter (configure.ac): Correct expected prototype.
25948
25949 2010-10-16  Bruno Haible  <bruno@clisp.org>
25950
25951         termios: Update documentation.
25952         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25953
25954 2010-10-16  Bruno Haible  <bruno@clisp.org>
25955
25956         tests: Make them compile with TinyCC.
25957         * tests/test-strstr.c (main): Remove parentheses around array
25958         initializer.
25959
25960 2010-10-15  Eric Blake  <eblake@redhat.com>
25961
25962         ignore-value: make header idempotent
25963         * lib/ignore-value.h: Add double-inclusion guards.
25964         Reported by Stefan Berger.
25965
25966 2010-10-15  Jim Meyering  <meyering@redhat.com>
25967
25968         GNUmakefile: handle "stable" target, not "major"
25969         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25970         lists in maint.mk and announce-gen.  Without this, "make stable"
25971         would fail to ensure that $(VERSION) is up to date.
25972
25973 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25974
25975         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25976         & co.
25977
25978 2010-10-14  Bruno Haible  <bruno@clisp.org>
25979
25980         vasnprintf: Don't set errno to 0.
25981         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25982         block that sets it to 0.
25983         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25984
25985 2010-10-14  Bruno Haible  <bruno@clisp.org>
25986
25987         socketlib: Fix.
25988         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25989         gl_PREREQ_SYS_H_WINSOCK2.
25990         Reported by Ian Beckwith <ianb@erislabs.net>.
25991
25992 2010-10-13  Jim Meyering  <meyering@redhat.com>
25993
25994         test-select-stdin.c: avoid warn_unused_result warnings
25995         * tests/test-select-stdin.c: Include "macros.h".
25996         ASSERT that read and fflush succeed.
25997
25998 2010-10-13  Jim Meyering  <meyering@redhat.com>
25999
26000         git-version-gen: do require git-VC'd files in cwd
26001         * build-aux/git-version-gen: Reject a git version string
26002         if there are no commits associated with the current directory.
26003         This avoids an unlikely false-positive (unrelated dir whose parent
26004         repository also contains a tag matching v*), as pointed out
26005         by Giuseppe Scrivano in
26006         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26007
26008 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26009
26010         argv-iter: omit nonconforming declaration
26011         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26012         enum arg_iter_err declaration, which doesn't conform to C99.
26013         Solaris 10 cc warns about this.
26014
26015 2010-10-13  Eric Blake  <eblake@redhat.com>
26016
26017         termios: fix compilation on mingw
26018         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26019         (gl_TERMIOS_H): Adjust it on mingw.
26020         * modules/termios (Makefile.am): Substitute new key.
26021         * lib/termios.in.h (includes): Make include_next conditional.
26022         * doc/posix-headers/termios.texi (termios.h): Update
26023         documentation.
26024         Reported by Daniel P. Berrange.
26025
26026 2010-10-13  Jim Meyering  <meyering@redhat.com>
26027
26028         git-version-gen: don't require that .git/ be in the current dir
26029         * build-aux/git-version-gen: Adjust this script so that it works
26030         when run from any working directory beneath the top-level .git/-
26031         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26032         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26033
26034         test-select: avoid warn_unused_result warnings
26035         * tests/test-select.c: Include "macros.h".
26036         ASSERT that each call to read, write, and pipe succeeds.
26037         While not technically required, also check each "close".
26038         * modules/select-tests (Files): Add tests/macros.h.
26039
26040         test-symlinkat: remove declaration of unused local
26041         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26042
26043         test-inttostr: avoid shadowing warnings
26044         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26045         and use malloc rather than the stack for the same reason as
26046         mentioned in the comment justifying the other allocation.
26047
26048 2010-10-11  Bruno Haible  <bruno@clisp.org>
26049
26050         stdlib: Allow multiple gnulib generated replacements to coexist.
26051         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26052         Reported by Sam Steingold <sds@gnu.org>.
26053
26054 2010-10-11  Jim Meyering  <meyering@redhat.com>
26055
26056         fix a documentation typo
26057         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26058
26059 2010-10-11  Eric Blake  <eblake@redhat.com>
26060
26061         futimens: work around Solaris 11 bug
26062         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26063         * tests/test-futimens.h (test_futimens): Enhance, rather than
26064         weaken test.
26065         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26066
26067 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26068
26069         Indentation.
26070         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26071         higher-level operators more to the left.
26072
26073 2010-10-11  Jim Meyering  <meyering@redhat.com>
26074
26075         test-futimens: avoid unwarranted test failure on Solaris 5.11
26076         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26077         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26078         because it tries to dereference the NULL name argument.
26079
26080 2010-10-11  Bruno Haible  <bruno@clisp.org>
26081
26082         Indentation.
26083         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26084         indentation.
26085
26086 2010-10-11  Jim Meyering  <meyering@redhat.com>
26087
26088         spawn.in.h: make indentation consistent with parentheses
26089         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26090         Make indentation consistent with parentheses.
26091
26092 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26093
26094         Fix mismatched parens in previous commit
26095         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26096         parens.
26097
26098 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26099
26100         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26101
26102         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26103         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26104         * lib/malloca.c: Include "verify.h".
26105         (verify1): Remove, replacing with a verify call.
26106         * lib/relocwrapper.c (verify1): Likewise.
26107         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26108         Likewise.
26109         * modules/malloca (Depends-on): Add 'verify'.
26110         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26111         * modules/vasnprintf (Depends-on): Add 'verify'.
26112         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26119
26120         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26121
26122         Formerly the style was sometimes 2*X - 1, because the C standard
26123         was wrongly thought to disallow ?: in integral constant expressions.
26124         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26125         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26126         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26127         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26128         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26129         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26130         verify that time_t cannot be floating.
26131
26132 2010-10-08  Eric Blake  <eblake@redhat.com>
26133
26134         time: enforce recent POSIX ruling that time_t is integral
26135         * lib/time.in.h (__time_t_must_be_integral): Detect any
26136         problematic systems, allowing the rest of gnulib to assume POSIX.
26137
26138 2010-10-08  Jim Meyering  <meyering@redhat.com>
26139
26140         fdopendir: fix a bug on systems lacking openat and /proc support
26141         OpenBSD 4.7 is one such system.  The most noticeable effect was
26142         failure of any application making nontrivial use of fts: rm, du,
26143         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26144           ./rm: traversal failed: `a': Bad file descriptor
26145         Debugging that, you see that even though FD 6 was closed just
26146         prior to the opendir call in fd_clone_opendir, its resulting
26147         dir->dd_fd was 8, rather than the expected value of 6:
26148
26149         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26150         93                close (fd);
26151         (gdb) n
26152         94                dir = fd_clone_opendir (dupfd);
26153         (gdb) n
26154         95                saved_errno = errno;
26155         (gdb) p dir->dd_fd
26156         $11 = 8
26157
26158         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26159         The problem is that on OpenBSD, fd_clone_opendir has to resort
26160         to using the old-style save/restore CWD mechanism, due to its
26161         lack of openat/proc support, and *that* would steal the FD (6)
26162         that opendir was supposed to use.
26163
26164         The fix is to squirrel away the desired FD so that save_cwd uses a
26165         different one, and then free the dest FD right before calling opendir.
26166         That guarantees opendir will use the required file descriptor.
26167
26168         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26169
26170 2010-10-08  Bruno Haible  <bruno@clisp.org>
26171
26172         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26173         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26174
26175 2010-10-08  Bruno Haible  <bruno@clisp.org>
26176
26177         nanosleep: Make replacement POSIX compliant.
26178         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26179         is out of range.
26180         Reported by Jim Meyering.
26181
26182 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26183
26184         bootstrap: add hook for altering gnulib.mk, for Bison
26185         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26186         the Bison bootstrapping process can rewrite file names and variables
26187         in this file before later parts of 'bootstrap' use the file.
26188         Bison wants to include lib/gnulib.mk from the top-level makefile,
26189         so it needs the file names in this file to be relative to the top
26190         level, not relative to lib; plus it needs variable names to be
26191         rewritten.
26192         (slurp): Use the new function.
26193
26194         bootstrap: reformat for readability
26195         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26196
26197 2010-10-08  Eric Blake  <eblake@redhat.com>
26198
26199         docs: update cygwin progress
26200         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26201         1.7.7.
26202         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26203         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26204         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26205         * doc/posix-functions/carg.texi (carg): Likewise.
26206         * doc/posix-functions/cargf.texi (cargf): Likewise.
26207         * doc/posix-functions/casin.texi (casin): Likewise.
26208         * doc/posix-functions/casinf.texi (casinf): Likewise.
26209         * doc/posix-functions/casinh.texi (casinh): Likewise.
26210         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26211         * doc/posix-functions/catan.texi (catan): Likewise.
26212         * doc/posix-functions/catanf.texi (catanf): Likewise.
26213         * doc/posix-functions/catanh.texi (catanh): Likewise.
26214         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26215         * doc/posix-functions/ccos.texi (ccos): Likewise.
26216         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26217         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26218         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26219         * doc/posix-functions/cexp.texi (cexp): Likewise.
26220         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26221         * doc/posix-functions/cimag.texi (cimag): Likewise.
26222         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26223         * doc/posix-functions/clog.texi (clog): Likewise.
26224         * doc/posix-functions/clogf.texi (clogf): Likewise.
26225         * doc/posix-functions/conj.texi (conj): Likewise.
26226         * doc/posix-functions/conjf.texi (conjf): Likewise.
26227         * doc/posix-functions/cpow.texi (cpow): Likewise.
26228         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26229         * doc/posix-functions/cproj.texi (cproj): Likewise.
26230         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26231         * doc/posix-functions/creal.texi (creal): Likewise.
26232         * doc/posix-functions/crealf.texi (crealf): Likewise.
26233         * doc/posix-functions/csin.texi (csin): Likewise.
26234         * doc/posix-functions/csinf.texi (csinf): Likewise.
26235         * doc/posix-functions/csinh.texi (csinh): Likewise.
26236         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26237         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26238         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26239         * doc/posix-functions/ctan.texi (ctan): Likewise.
26240         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26241         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26242         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26243         * doc/posix-headers/complex.texi (complex.h): Likewise.
26244
26245 2010-10-07  Jim Meyering  <meyering@redhat.com>
26246
26247         parse-datetime: avoid compilation failure on OpenBSD 4.7
26248         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26249         This works around a compilation failure on OpenBSD 4.7:
26250         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26251
26252 2010-10-07  Eric Blake  <eblake@redhat.com>
26253
26254         docs: update cygwin progress
26255         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26256         1.7.6.
26257         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26258         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26259         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26260         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26261         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26262         Likewise.
26263         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26264         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26265         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26266         Likewise.
26267         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26268         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26269         Likewise.
26270         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26271         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26272         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26273         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26274         Likewise.
26275         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26276         Likewise.
26277         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26278
26279         docs: update parse-datetime history
26280         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26281         documentation of this function's history and alternatives.
26282
26283         cygwin: use more robust version check
26284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26285         exclude an eventual cygwin 1.9.1.
26286         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26288         (gl_FUNC_STRCASESTR): Likewise.
26289         Reported by Bruno Haible.
26290
26291 2010-10-06  Bruno Haible  <bruno@clisp.org>
26292
26293         string, sys_select: Avoid #including large headers unless necessary.
26294         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26295         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26296         OSF/1, BeOS, Haiku.
26297         Reported by Jim Meyering.
26298
26299 2010-10-05  Eric Blake  <eblake@redhat.com>
26300
26301         memmem, strstr, strcasestr: fix bug with long periodic needle
26302         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26303         periodic needle having false positive.
26304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26305         and cygwin 1.7.7.
26306         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26308         (gl_FUNC_STRCASESTR): Likewise.
26309         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26310         * tests/test-memmem.c (main): Expose the bug.
26311         * tests/test-strcasestr.c (main): Likewise.
26312         * tests/test-strstr.c (main): Likewise.
26313         * tests/test-c-strcasestr.c (main): Likewise.
26314         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26315         * doc/posix-functions/strstr.texi (strstr): Likewise.
26316         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26317         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26318
26319 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26320
26321         parse-datetime: do some more renaming
26322         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26323         parse_datetime, not get_date.  Mention the renaming.
26324         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26325         in comments.
26326         * m4/bison.m4: Likewise.
26327
26328 2010-10-05  Eric Blake  <eblake@redhat.com>
26329
26330         parse-datetime: better name than get_date
26331         * NEWS: Reword the deprecation notice.
26332         * modules/get_date: Rename to modules/parse-datetime.
26333         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26334         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26335         * lib/get_date.y: Rename to lib/parse-datetime.y.
26336         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26337         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26338         * doc/getdate.texi: Provide fallback wrapper.
26339         * lib/getdate.h: Move guts, and wrap...
26340         * lib/parse-datetime.h: ...new file.
26341         * lib/parse-datetime.y (get_date): Rename...
26342         (parse_datetime): ...to this.
26343         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26344         (gl_PARSE_DATETIME): ...to this.
26345         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26346         documentation.
26347         * modules/getdate (Files): Provide fallback docs and header.
26348         (Notice, Depends-on): Update references.
26349         * tests/test-parse-datetime.c: Likewise.
26350         * DEPENDENCIES: Likewise.
26351         * MODULES.html.sh (Date and time <time.h>): Likewise.
26352         * doc/parse-datetime.texi (Date input formats)
26353         (Authors of parse_datetime): Likewise.
26354         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26355         (Include): Likewise.
26356         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26357         * gnulib-tool: Likewise.
26358         * m4/bison.m4 (gl_BISON): Likewise.
26359         Suggested by Bruno Haible.
26360
26361 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26362
26363         more ports to Solaris tr, which needs [] around ranges
26364         * gnulib-tool: Solaris tr needs [] around ranges.
26365         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26366         * tests/test-pipe-filter-gi1.c (main): Likewise.
26367         * tests/test-pipe-filter-ii1.c (main): Likewise.
26368
26369 2010-10-05  Eric Blake  <eblake@redhat.com>
26370
26371         bootstrap: fix Solaris regression
26372         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26373         around ranges.
26374         Reported by Pádraig Brady.
26375
26376         bootstrap: work with pkg-config
26377         * build-aux/bootstrap (check_versions): Also transliterate - in
26378         prerequisite name.
26379         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26380         prerequisites that were already found, to avoid confusion.
26381         Reported by Justin Clift.
26382
26383         faccessat: remove unused wrappers
26384         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26385         presence of these wrappers dragged in -lgen on Solaris.
26386         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26387
26388 2010-10-05  Jim Meyering  <meyering@redhat.com>
26389
26390         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26391         * Makefile (sc_pragma_columns): New syntax-check rule.
26392
26393 2010-10-04  Bruno Haible  <bruno@clisp.org>
26394
26395         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26396         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26397         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26398         Reported by Bruce Korb and Eric Blake.
26399
26400 2010-10-04  Bruno Haible  <bruno@clisp.org>
26401
26402         threadlib: Make option --with-libpth-prefix work.
26403         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26404         use $LIBPTH, not just -lpth.
26405
26406 2010-10-04  Bruno Haible  <bruno@clisp.org>
26407
26408         Avoid line length limitation from HP NonStop system header files.
26409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26410         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26411         * lib/ctype.in.h: Likewise.
26412         * lib/dirent.in.h: Likewise.
26413         * lib/errno.in.h: Likewise.
26414         * lib/fcntl.in.h: Likewise.
26415         * lib/float.in.h: Likewise.
26416         * lib/getopt.in.h: Likewise.
26417         * lib/iconv.in.h: Likewise.
26418         * lib/inttypes.in.h: Likewise.
26419         * lib/langinfo.in.h: Likewise.
26420         * lib/locale.in.h: Likewise.
26421         * lib/math.in.h: Likewise.
26422         * lib/netdb.in.h: Likewise.
26423         * lib/netinet_in.in.h: Likewise.
26424         * lib/poll.in.h: Likewise.
26425         * lib/pthread.in.h: Likewise.
26426         * lib/pty.in.h: Likewise.
26427         * lib/sched.in.h: Likewise.
26428         * lib/se-selinux.in.h: Likewise.
26429         * lib/search.in.h: Likewise.
26430         * lib/signal.in.h: Likewise.
26431         * lib/spawn.in.h: Likewise.
26432         * lib/stdarg.in.h: Likewise.
26433         * lib/stddef.in.h: Likewise.
26434         * lib/stdint.in.h: Likewise.
26435         * lib/stdio.in.h: Likewise.
26436         * lib/stdlib.in.h: Likewise.
26437         * lib/string.in.h: Likewise.
26438         * lib/strings.in.h: Likewise.
26439         * lib/sys_file.in.h: Likewise.
26440         * lib/sys_ioctl.in.h: Likewise.
26441         * lib/sys_select.in.h: Likewise.
26442         * lib/sys_socket.in.h: Likewise.
26443         * lib/sys_stat.in.h: Likewise.
26444         * lib/sys_time.in.h: Likewise.
26445         * lib/sys_times.in.h: Likewise.
26446         * lib/sys_utsname.in.h: Likewise.
26447         * lib/sys_wait.in.h: Likewise.
26448         * lib/sysexits.in.h: Likewise.
26449         * lib/termios.in.h: Likewise.
26450         * lib/time.in.h: Likewise.
26451         * lib/unistd.in.h: Likewise.
26452         * lib/wchar.in.h: Likewise.
26453         * lib/wctype.in.h: Likewise.
26454         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26455         * modules/ctype (Makefile.am): Likewise.
26456         * modules/dirent (Makefile.am): Likewise.
26457         * modules/errno (Makefile.am): Likewise.
26458         * modules/fcntl-h (Makefile.am): Likewise.
26459         * modules/float (Makefile.am): Likewise.
26460         * modules/getopt-posix (Makefile.am): Likewise.
26461         * modules/iconv-h (Makefile.am): Likewise.
26462         * modules/inttypes (Makefile.am): Likewise.
26463         * modules/langinfo (Makefile.am): Likewise.
26464         * modules/locale (Makefile.am): Likewise.
26465         * modules/math (Makefile.am): Likewise.
26466         * modules/netdb (Makefile.am): Likewise.
26467         * modules/netinet_in (Makefile.am): Likewise.
26468         * modules/poll-h (Makefile.am): Likewise.
26469         * modules/pthread (Makefile.am): Likewise.
26470         * modules/pty (Makefile.am): Likewise.
26471         * modules/sched (Makefile.am): Likewise.
26472         * modules/search (Makefile.am): Likewise.
26473         * modules/selinux-h (Makefile.am): Likewise.
26474         * modules/signal (Makefile.am): Likewise.
26475         * modules/spawn (Makefile.am): Likewise.
26476         * modules/stdarg (Makefile.am): Likewise.
26477         * modules/stddef (Makefile.am): Likewise.
26478         * modules/stdint (Makefile.am): Likewise.
26479         * modules/stdio (Makefile.am): Likewise.
26480         * modules/stdlib (Makefile.am): Likewise.
26481         * modules/string (Makefile.am): Likewise.
26482         * modules/strings (Makefile.am): Likewise.
26483         * modules/sys_file (Makefile.am): Likewise.
26484         * modules/sys_ioctl (Makefile.am): Likewise.
26485         * modules/sys_select (Makefile.am): Likewise.
26486         * modules/sys_socket (Makefile.am): Likewise.
26487         * modules/sys_stat (Makefile.am): Likewise.
26488         * modules/sys_time (Makefile.am): Likewise.
26489         * modules/sys_times (Makefile.am): Likewise.
26490         * modules/sys_utsname (Makefile.am): Likewise.
26491         * modules/sys_wait (Makefile.am): Likewise.
26492         * modules/sysexits (Makefile.am): Likewise.
26493         * modules/termios (Makefile.am): Likewise.
26494         * modules/time (Makefile.am): Likewise.
26495         * modules/unistd (Makefile.am): Likewise.
26496         * modules/wchar (Makefile.am): Likewise.
26497         * modules/wctype (Makefile.am): Likewise.
26498
26499 2010-10-04  Bruno Haible  <bruno@clisp.org>
26500
26501         read-file tests: Avoid a test failure on NonStop Kernel.
26502         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26503         a regular file.
26504         Reported by Joachim Schmitz <schmitz@hp.com>.
26505
26506 2010-10-03  Bruno Haible  <bruno@clisp.org>
26507
26508         gnulib-tool: Fixes for --create-testdir with --libtool.
26509         * gnulib-tool (func_get_automake_snippet): Don't augment
26510         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26511         an executable.
26512         (func_create_testdir): Handle module 'alloca' like func_import.
26513         Reported by Bruce Korb <bruce.korb@gmail.com>.
26514
26515 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26516
26517         Avoid some lines longer than 80 characters.
26518         * lib/stdint.in.h: Break long comment lines.
26519         * lib/math.in.h: Likewise.
26520         (_GL_NUM_UINT_WORDS): New macro, for readability.
26521         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26522         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26523         * lib/stdlib.in.h: Likewise.
26524         * lib/spawn.in.h: Likewise.
26525         * lib/sys_socket.in.h: Update an URL.
26526         * lib/sys_stat.in.h: Break long line.
26527
26528 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26529
26530         Improve pmccabe2html.
26531         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26532         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26533         when the sources change. Remove the line in the HTML about "Used
26534         ranges" (which implied that there might be other unused ranges),
26535         rename "Resume" to "Summary" (easier to understand for more users).
26536         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26537         styles, and some unnecessary blank lines.
26538
26539 2010-10-03  Bruno Haible  <bruno@clisp.org>
26540             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26541
26542         acl: Add support for ACLs on NonStop Kernel.
26543         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26544         Check whether the function aclsort() exists.
26545         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26546         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26547         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26548         (acl_nontrivial [HAVE_ACLSORT]: New function.
26549         (file_has_acl): Implement for NonStop Kernel.
26550         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26551         (qset_acl): Implement for NonStop Kernel.
26552         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26553         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26554         (main): Implement for NonStop Kernel.
26555         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26556         Kernel. Handle this flavor.
26557         * tests/test-set-mode-acl.sh: Likewise.
26558         * tests/test-copy-acl.sh: Likewise.
26559         * tests/test-copy-file.sh: Likewise.
26560
26561 2010-10-03  Bruno Haible  <bruno@clisp.org>
26562
26563         Info about ACLs on NonStop Kernel.
26564         * doc/acl-resources.txt: Add info about NonStop Kernel.
26565         References by Joachim Schmitz <schmitz@hp.com>.
26566
26567 2010-10-02  Bruno Haible  <bruno@clisp.org>
26568
26569         Define missing EDQUOT on NonStop Kernel.
26570         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26571         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26572         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26573         missing.
26574         * doc/posix-headers/errno.texi: Mention the NSK bug.
26575         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26576         Reported by Joachim Schmitz <schmitz@hp.com>.
26577
26578 2010-10-02  Bruno Haible  <bruno@clisp.org>
26579
26580         Update doc for POSIX:2008.
26581         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26582         Update URL of POSIX specification.
26583
26584 2010-10-02  Bruno Haible  <bruno@clisp.org>
26585
26586         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26587         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26588         from gnulib, not from Automake.
26589
26590 2010-10-02  Bruno Haible  <bruno@clisp.org>
26591
26592         New module 'system-posix'.
26593         * modules/system-posix: New file.
26594         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26595         module is present.
26596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26597         GNULIB_SYSTEM_POSIX.
26598         * modules/stdlib (Depends-on): Remove sys_wait.
26599         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26600         * doc/posix-functions/system.texi: Mention the new module.
26601         * doc/posix-headers/stdlib.texi: Likewise.
26602         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26603         define test_sys_wait_macros to a no-op.
26604         Reported by Sam Steingold <sds@gnu.org>.
26605
26606 2010-09-30  Bruno Haible  <bruno@clisp.org>
26607
26608         More renaming from 'getdate' to 'get_date'.
26609         * doc/get_date.texi: Renamed from doc/getdate.texi.
26610         * modules/get_date (Files): Update.
26611         * MODULES.html.sh (Date and time <time.h>): Update.
26612         * DEPENDENCIES: Update.
26613         * gnulib-tool: Update comment.
26614         * m4/bison.m4 (gl_BISON): Likewise.
26615         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26616
26617 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26618
26619         bootstrap: support ACLOCAL_FLAGS during aclocal
26620         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26621         can add additional -I dir for third-party .m4 files.
26622
26623 2010-09-30  Eric Blake  <eblake@redhat.com>
26624
26625         bootstrap: use glibtoolize on MacOS
26626         * build-aux/bootstrap (check_versions): Convert libtool into
26627         libtoolize.
26628         (tool search): Move libtool check earlier, and look for
26629         glibtoolize for MacOS.
26630         (gnulib_tool_options): Auto-add --libtool when appropriate.
26631         Reported by Justin Clift.
26632
26633         poll: fix typo that broke test on MacOS
26634         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26635         Reported by Justin Clift.
26636
26637         getdate: rename to get_date
26638         Note: getdate.h is not renamed, to minimize client impact.
26639         * modules/getdate: Mark obsolete.  Move old contents...
26640         * modules/get_date: ...to new module name.
26641         * modules/getdate-tests: Move...
26642         * modules/get_date-tests: ...here.
26643         * m4/getdate.m4: Move...
26644         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26645         * lib/getdate.y: Move...
26646         * lib/get_date.y: ...here.
26647         * tests/test-getdate.c: Move...
26648         * tests/test-get_date.c: ...here.
26649         * doc/posix-functions/getdate.texi (getdate): Update name.
26650         * NEWS: Mention the change.
26651
26652 2010-09-29  Bruno Haible  <bruno@clisp.org>
26653
26654         Separate the module 'waitpid' from the module 'sys_wait'.
26655         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26656         present.
26657         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26658         gl_MODULE_INDICATOR_FOR_TESTS.
26659         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26660         * modules/sys_wait (Depends-on): Remove waitpid.
26661         (Makefile.am): Substitute GNULIB_WAITPID.
26662         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26663         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26664         signature only if the 'waitpid' module is present.
26665         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26666         * NEWS: Mention the change.
26667         * modules/grantpt (Depends-on): Add waitpid.
26668         * modules/wait-process (Depends-on): Likewise.
26669
26670 2010-09-29  Bruno Haible  <bruno@clisp.org>
26671
26672         More tests for module 'sys_wait'.
26673         * modules/sys_wait-c++-tests: New file.
26674         * tests/test-sys_wait-c++.cc: New file.
26675         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26676         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26677
26678 2010-09-29  Bruno Haible  <bruno@clisp.org>
26679
26680         New module 'waitpid'.
26681         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26682         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26683         Don't include <process.h>.
26684         (waitpid): Declare only, using modern idiom.
26685         * m4/waitpid.m4: New file.
26686         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26687         * modules/waitpid: New file.
26688         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26689         (Makefile.am): Update.
26690         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26691
26692 2010-09-28  Bruno Haible  <bruno@clisp.org>
26693
26694         poll: Assume ANSI C.
26695         * lib/poll.c (poll): Use an ANSI C declaration.
26696
26697 2010-09-28  Bruno Haible  <bruno@clisp.org>
26698
26699         poll-h: Create poll.h on all platforms.
26700         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26701         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26702         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26703         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26704         (gl_REPLACE_POLL_H): Don't set POLL_H.
26705         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26706         * modules/poll-h (Depends-on): Add include_next.
26707         (Makefile.am): Create poll.h unconditionally. Substitute also
26708         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26709
26710 2010-09-28  Bruno Haible  <bruno@clisp.org>
26711
26712         Tests for module 'poll-h'.
26713         * modules/poll-h-c++-tests: New file.
26714         * tests/test-poll-h-c++.cc: New file.
26715
26716         Tests for module 'poll-h'.
26717         * modules/poll-h-tests: New file.
26718         * tests/test-poll-h.c: New file.
26719
26720 2010-09-28  Bruno Haible  <bruno@clisp.org>
26721
26722         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26723         * modules/poll-h (Depends-on): Add 'extensions'.
26724
26725 2010-09-28  Bruno Haible  <bruno@clisp.org>
26726
26727         New module 'poll-h'.
26728         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26729         (poll): Use modern idiom.
26730         * modules/poll-h: New file.
26731         * modules/poll (Files): Remove lib/poll.in.h.
26732         (Depends-on): Add poll-h.
26733         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26734         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26735         * m4/poll_h.m4: New file.
26736         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26737         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26738         and invoke gl_REPLACE_POLL_H.
26739         * lib/poll.c: Use common idiom.
26740         * tests/test-poll.c: Likewise.
26741         * doc/posix-headers/poll.texi: Mention the poll-h module.
26742         Suggested by Eric Blake.
26743
26744 2010-09-26  Bruno Haible  <bruno@clisp.org>
26745
26746         sys_wait: Implement WSTOPSIG.
26747         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26748         Reported by Simon Josefsson.
26749
26750 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26751
26752         stdlib, sys_wait: Avoid compilation error on mingw.
26753         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26754
26755 2010-09-26  Bruno Haible  <bruno@clisp.org>
26756
26757         stdlib tests: Avoid code duplication.
26758         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26759         * modules/sys_wait-tests (Files): Likewise.
26760         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26761         * tests/test-stdlib.c: Include test-sys_wait.h.
26762         (main): Invoke test_sys_wait_macros.
26763         * tests/test-sys_wait.c: Include test-sys_wait.h.
26764         (main): Invoke test_sys_wait_macros.
26765
26766 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26767
26768         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26769         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26770         sure Windows sockets are working before calling getaddrinfo.
26771         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26772         * doc/gnulib.texi (Windows sockets): Fix typo.
26773
26774 2010-09-25  Bruno Haible  <bruno@clisp.org>
26775
26776         Tests for module 'regex-quote'.
26777         * modules/regex-quote-tests: New file.
26778         * tests/test-regex-quote.c: New file.
26779
26780         New module 'regex-quote'.
26781         * lib/regex-quote.h: New file.
26782         * lib/regex-quote.c: New file.
26783         * modules/regex-quote: New file.
26784         Suggested by Reuben Thomas <rrt@sc3d.org>.
26785
26786 2010-09-24  Bruno Haible  <bruno@clisp.org>
26787
26788         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26789         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26790
26791 2010-09-23  Bruno Haible  <bruno@clisp.org>
26792
26793         setenv: Relax license.
26794         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26795         Blake.
26796         Requested by Eric Blake.
26797
26798 2010-09-22  Bruno Haible  <bruno@clisp.org>
26799
26800         termios: Relax license.
26801         * modules/termios (License): Change to LGPLv2+.
26802         Requested by Eric Blake.
26803
26804 2010-09-22  Bruno Haible  <bruno@clisp.org>
26805
26806         threadlib: Allow the package to change the default to 'no'.
26807         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26808         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26809         Reported by Paul Eggert.
26810
26811 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26812             Bruno Haible  <bruno@clisp.org>
26813
26814         Fix endless loop in mbmemcasecoll.
26815         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26816         byte.
26817         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26818
26819 2010-09-22  Bruno Haible  <bruno@clisp.org>
26820
26821         Tests for module 'memcoll'.
26822         * modules/memcoll-tests: New file.
26823         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26824
26825         memcoll, xmemcoll: Clarify size vs. length.
26826         * modules/memcoll.c (memcoll0): Clarify specification.
26827         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26828         passed to collate_error.
26829
26830 2010-09-22  Bruno Haible  <bruno@clisp.org>
26831
26832         Tests for module 'memcasecmp'.
26833         * modules/memcasecmp-tests: New file.
26834         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26835
26836 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26837
26838         * lib/pthread.in.h: Add split double-inclusion guard, and include
26839         system <pthread.h> if there is one.  Use @@-style as in other
26840         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26841         pthread.h doesn't.
26842         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26843         (pthread_mutexattr_settype, pthread_mutex_trylock):
26844         New static inline functions, if there's no system <pthread.h>.
26845         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26846         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26847         Approximate with mutexes if the system lacks spinlocks, as in
26848         MacOS.
26849         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26850         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26851         @@-style.  Check for spinlocks separately.
26852         (gl_PTHREAD_DEFAULTS): New macro.
26853         * modules/pthread: Redo to use a more typical style for in.h files.
26854
26855 2010-09-21  Eric Blake  <eblake@redhat.com>
26856
26857         net_if: enhance tests
26858         * tests/test-net_if.c (main): Move signature checks earlier.
26859         Print failures to stderr.
26860         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26861         Document the bug that we do not yet fix.
26862
26863 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26864
26865         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26866         about gnulib, not GSS.
26867
26868 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26869
26870         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26871         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26872         for Emacs.
26873         * build-aux/pmccabe2html: Make Makefile.am example code more
26874         cut-and-paste friendly.
26875
26876 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26877
26878         * tests/test-net_if.c: New file.
26879         * modules/net_if-tests: New file.
26880
26881 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26882
26883         pthread: add pthread_spin_destroy
26884         * lib/pthread.in.h (pthread_spin_destroy): New function.
26885
26886 2010-09-19  Bruno Haible  <bruno@clisp.org>
26887
26888         gnulib-tool: Fix --help output.
26889         * gnulib-tool (func_usage): Fix help message.
26890         Reported by Reuben Thomas <rrt@sc3d.org>.
26891
26892 2010-09-18  Jim Meyering  <meyering@redhat.com>
26893
26894         maint.mk: avoid unexpanded \n in two diagnostics
26895         * top/maint.mk (sc_prohibit_always_true_header_tests):
26896         Don't use a literal \n in a halt=... assignment.  It would not be
26897         expanded, and the two \n bytes would appear in the diagnostic output
26898         rather than the desired newline.  Use halt=$$(printf ... instead.
26899         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26900
26901 2010-09-18  Bruno Haible  <bruno@clisp.org>
26902
26903         netinet_in: Doc tweak.
26904         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26905         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26906
26907 2010-09-18  Jim Meyering  <meyering@redhat.com>
26908
26909         init.sh: correct an outdated comment
26910         * tests/init.sh (create_exe_shims_):  s/function/alias/
26911
26912         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26913         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26914         a file named "*.exe" is removed between the glob expansion and the
26915         processing of that oddly named file.
26916
26917 2010-09-17  Eric Blake  <eblake@redhat.com>
26918
26919         mirbsd: add some more support
26920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26921         in BSD family.
26922         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26923         devices as OpenBSD.
26924         * m4/host-os.m4 (mirbsd): Add MirBSD.
26925
26926         tests: fix unportable assumption on sys/wait.h
26927         * tests/test-sys_wait.c (main): Relax test.
26928         * tests/test-stdlib.c (main): Likewise.
26929
26930         init.sh: accommodate directory with no .exes
26931         * tests/init.sh: Accomodate directory containing only scripts.
26932
26933         tests: avoid compiler warning
26934         * tests/test-stdlib.c (main): Use the variable.
26935
26936         fdutimens, fdutimensat: update signature, again
26937         * lib/utimens.h (gl_futimens): Delete, and move signature...
26938         (fdutimens): ...here.
26939         (fdutimensat): Rearrange signature.
26940         (lutimensat): Rename variable for clarity.
26941         * lib/fdutimensat.c (fdutimensat): Update signature.
26942         * lib/utimens.c (fdutimens): Likewise.
26943         (gl_futimens): Delete.
26944         (utimens, lutimens): Update callers.
26945         * lib/futimens.c (futimens): Likewise.
26946         * tests/test-fdutimensat.c: Likewise.
26947         * tests/test-utimens.c: Likewise.
26948         * tests/test-futimens.h: Update comment.
26949         * NEWS: Mention this.
26950         Suggested by Paul Eggert.
26951
26952 2010-09-17  Bruno Haible  <bruno@clisp.org>
26953
26954         Take over the maintenance of some older macros from Autoconf.
26955         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26956         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26957         GNU Autoconf.
26958         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26959         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26960
26961 2010-09-17  Eric Blake  <eblake@redhat.com>
26962
26963         fdutimensat: drop atflag validation
26964         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26965         with valid fd, to close a race scenario where futimens is
26966         unsupported and FILE was replaced by a symlink.
26967         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26968         accordingly.
26969         Suggested by Paul Eggert.
26970
26971 2010-09-16  Bruno Haible  <bruno@clisp.org>
26972
26973         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26974         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26975
26976 2010-09-16  Bruno Haible  <bruno@clisp.org>
26977
26978         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26979         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26980         login_tty exists.
26981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26982
26983 2010-09-16  Bruno Haible  <bruno@clisp.org>
26984
26985         login_tty: Make the replacement code work on BSD systems.
26986         * lib/login_tty.c: Include <sys/ioctl.h>.
26987         (login_tty): Use ioctl TIOCSCTTY when available.
26988         * modules/login_tty (Depends-on): Add sys_ioctl.
26989         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26990
26991 2010-09-16  Bruno Haible  <bruno@clisp.org>
26992
26993         login_tty: Stricter unit test.
26994         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26995         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26996         and tcgetsid() after login_tty.
26997         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26998
26999 2010-09-16  Bruno Haible  <bruno@clisp.org>
27000
27001         New module 'tcgetsid'.
27002         * lib/tcgetsid.c: New file.
27003         * m4/tcgetsid.m4: New file.
27004         * modules/tcgetsid: New file.
27005         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27006         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27007         GNULIB_TCGETSID, HAVE_TCGETSID.
27008         * lib/termios.in.h: Include <sys/types.h>.
27009         (tcgetsid): New declaration.
27010         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27011         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27012         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27013         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27014
27015 2010-09-16  Bruno Haible  <bruno@clisp.org>
27016
27017         Tests for module 'termios'.
27018         * modules/termios-c++-tests: New file.
27019         * modules/termios-tests: New file.
27020         * tests/test-termios-c++.cc: New file.
27021         * tests/test-termios.c: New file.
27022
27023         New module 'termios'.
27024         * modules/termios: New file.
27025         * lib/termios.in.h: New file.
27026         * m4/termios_h.m4: New file.
27027         * doc/posix-headers/termios.texi: Mention the new module.
27028
27029 2010-09-16  Eric Blake  <eblake@redhat.com>
27030
27031         fdutimensat: add an atflag parameter
27032         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27033         * lib/utimens.h (fdutimensat): Update prototype.
27034         * tests/test-fdutimensat.c: Adjust test to match.
27035         * NEWS: Document the change.
27036         Suggested by Paul Eggert.
27037
27038 2010-09-16  Bruno Haible  <bruno@clisp.org>
27039
27040         Fix typos in comments.
27041         * lib/striconveh.h: Fix typo in comment.
27042         * lib/login_tty.c (login_tty): Likewise.
27043
27044 2010-09-15  Bruno Haible  <bruno@clisp.org>
27045
27046         stdlib: clarify MirBSD WEXITSTATUS bug
27047         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27048         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27049
27050 2010-09-15  Eric Blake  <eblake@redhat.com>
27051
27052         stdlib: work around MirBSD WEXITSTATUS bug
27053         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27054         * modules/stdlib (Depends-on): Add sys_wait.
27055         * tests/test-sys_wait.c (main): Enhance test.
27056         * tests/test-stdlib.c (main): Likewise.
27057         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27058
27059         docs: mention MacOS issue with WEXITSTATUS(constant)
27060         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27061         issue.
27062         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27063
27064         strnlen: add tests
27065         * modules/strnlen-tests: New file.
27066         * tests/test-strnlen.c: Likewise.
27067
27068 2010-09-14  Bruno Haible  <bruno@clisp.org>
27069
27070         unistr/base: Avoid link errors when module 'libunistring' is also used.
27071         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27072         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27073         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27074         Declare also when HAVE_LIBUNISTRING is set.
27075         Reported by Pádraig Brady <P@draigbrady.com>.
27076
27077 2010-09-14  Eric Blake  <eblake@redhat.com>
27078
27079         test-rawmemchr: make more robust
27080         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27081         (Depends-on, configure.ac): Add needed prerequisites to use it.
27082         * modules/memchr-tests (Files, Depends-on, configure.ac):
27083         Likewise, to avoid implicit reliance on memchr module prereqs.
27084         * tests/test-memchr.c (main): Ensure proper masking.
27085         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27086         reads.
27087
27088         memchr: detect glibc Alpha bug
27089         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27090         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27091         Alpha.
27092         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27093         * tests/test-memchr.c (main): Enhance test.
27094         Reported by Nelson H. F. Beebe.
27095
27096 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         fts, getcwd, glob: audit for dirfd returning -1
27099         * lib/fts.c (opendir): Remove #define; no longer used.
27100         (opendirat): New arg PDIR_FD.  All callers changed.
27101         (fts_build, _opendir2): Use new opendirat to avoid the need for
27102         dirfd, or for checking whether dirfd returns a negative value.
27103         Don't use opendir; always use openat followed by fdopendir.
27104         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27105         it.
27106         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27107         returns -1 here.
27108         * modules/fts (Depends-on): Remove dirfd.
27109         * modules/getcwd (Depends-on): Likewise.
27110
27111 2010-09-13  Eric Blake  <eblake@redhat.com>
27112
27113         float: fix broken MirBSD header
27114         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27115         * doc/posix-headers/float.texi (float.h): Document it.
27116
27117 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27118
27119         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27120         * lib/fts.c (opendirat): New arg extra_flags.
27121         (__opendir2): Use it to avoid following symlinks when opening
27122         a directory, if symlinks are not supposed to be followed.  See
27123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27124
27125         fdopendir: preserve argument fd before returning
27126         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27127         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27128         (fdopendir): Use them, arranging for FD to be open to the same
27129         directory that it was when it started.  (It might be temporarily
27130         closed while fdopendir is running, so this not thread- or
27131         signal-safe.)  Be careful to do the right thing even when file
27132         descriptors are scarce and dup fails with errno == EMFILE.  See
27133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27134
27135 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27136
27137         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27138         * NEWS: Document change.
27139         * m4/regex.m4: Disable test for regoff_t size.
27140
27141 2010-09-13  Jim Meyering  <meyering@redhat.com>
27142
27143         fts: don't operate on an invalid file descriptor after failed dup
27144         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27145         negative file descriptor.
27146
27147 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27148
27149         savedir: add streamsavedir, deprecate fdsavedir
27150         * NEWS: Mention deprecation of fdsavedir.
27151         * lib/savedir.c (streamsavedir): New extern function, whose name
27152         ends in "savedir" to be consistent with the others.  This differs
27153         from savedirstream in that it doesn't close its argument.  The
27154         next version of GNU tar will use this instead of fdsavedir, to
27155         avoid some race conditions and conserve file descriptors.
27156         (savedirstream): Reimplement as a wrapper around streamsavedir.
27157         (fdsavedir): Add a comment deprecating this function.  As far as
27158         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27159         * lib/savedir.h (streamsavedir): New decl.
27160         (fdsavedir): Add a comment deprecating this.
27161
27162 2010-09-10  Bruno Haible  <bruno@clisp.org>
27163
27164         langinfo: Fix last commit.
27165         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27166         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27168
27169 2010-09-10  Bruno Haible  <bruno@clisp.org>
27170
27171         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27172         * lib/progreloc.c (O_EXEC): Define fallback.
27173
27174 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27175
27176         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27177         * NEWS: Document recent changes to fcntl-h.
27178         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27179         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27180         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27181         Similarly for O_SEARCH; this last was already true, but not documented.
27182         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27183         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27184         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27185         Likewise.
27186         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27187         is zero, not whether it is defined.
27188         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27189         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27190         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27191
27192 2010-09-10  Bruno Haible  <bruno@clisp.org>
27193
27194         langinfo, nl_langinfo: Fix for IRIX 5.3.
27195         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27196         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27197         HAVE_LANGINFO_YESEXPR.
27198         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27199         HAVE_LANGINFO_YESEXPR.
27200         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27201         HAVE_LANGINFO_T_FMT_AMPM is 0.
27202         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27203         HAVE_LANGINFO_YESEXPR is 0.
27204         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27205         NOEXPR.
27206         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27207         * doc/posix-functions/nl_langinfo.texi: Likewise.
27208         Reported by Eric Blake.
27209
27210 2010-09-10  Bruno Haible  <bruno@clisp.org>
27211
27212         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27213         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27214         on FreeBSD 8.0 and OpenBSD 4.6.
27215         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27216         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27217         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27218         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27219         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27220         ac_includes_default.
27221         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27222
27223 2010-09-09  Eric Blake  <eblake@redhat.com>
27224
27225         strsignal: work around NetBSD bug
27226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27227         * lib/string.in.h (includes): Likewise.
27228         * doc/posix-functions/strsignal.texi (strsignal): Document the
27229         bug.
27230         Reported by Nelson H. F. Beebe.
27231
27232         gnulib-tool: work with NetBSD /bin/sh
27233         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27234         (func_get_description, func_get_comment, func_get_status)
27235         (func_get_notice, func_get_applicability, func_get_filelist)
27236         (func_get_dependencies, func_get_autoconf_early_snippet)
27237         (func_get_autoconf_snippet, func_get_automake_snippet)
27238         (func_get_include_directive, func_get_link_directive)
27239         (func_get_license, func_get_maintainer, func_import): Avoid
27240         shell syntax errors from parsing syntax extensions.
27241
27242 2010-09-09  Bruno Haible  <bruno@clisp.org>
27243
27244         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27245         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27246         a reliable way to determine whether the 'alias' command works.
27247
27248 2010-09-08  Jim Meyering  <meyering@redhat.com>
27249
27250         init.sh: penalize a set-x-impaired shell; don't disqualify it
27251         * tests/init.sh: Too many shells corrupt application stderr when
27252         you set -x, so we can't afford to disqualify them, since at least
27253         on Irix-6.5, that would disqualify all bourne shells.
27254         Instead, use a two-pass approach.
27255         On the first pass, try to find a shell that meets the stricter
27256         condition that set -x does not corrupt stderr.
27257         If no shell meets the stricter condition, retest each candidate
27258         shell, but without that extra condition.  Finally, when
27259         VERBOSE=yes is requested and set -x might cause trouble, simply
27260         issue a warning and refrain from enabling debug output.
27261
27262 2010-09-08  Eric Blake  <eblake@redhat.com>
27263
27264         unsetenv: fix OpenBSD bug
27265         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27266         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27267         documentation.
27268         Reported by Jim Meyering.
27269
27270         strtod: work around IRIX 6.5 bug
27271         * lib/strtod.c (strtod): Reparse number on shorter string if
27272         exponent parse was invalid.
27273         * tests/test-strtod.c (main): Add check for "0x1p 2".
27274         Reported by Tom G. Christensen.
27275
27276         getopt: optimize previous patch
27277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27278         empty variable.  Speed up awk script.
27279         Reported by Paolo Bonzini.
27280
27281 2010-09-08  Jim Meyering  <meyering@redhat.com>
27282
27283         test.sh: disqualify shells for which set -x corrupts stderr
27284         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27285         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27286         appear in stderr output.  For example, this command:
27287             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27288         prints "P=1" on those two systems:
27289
27290 2010-09-08  Bruno Haible  <bruno@clisp.org>
27291
27292         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27293         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27294         commands, because some shells ignore redirections when there is an
27295         error in the command lookup.
27296         Reported by Eric Blake.
27297
27298 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27299
27300         * lib/regex.h: Fix a mention of `regex_compile' (should be
27301         `re_compile_pattern').
27302         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27303         (re_set_registers): Correct name of parameter in comment.
27304
27305         * doc/regex.texi: Add documentation for missing syntax flags.
27306         Remove commented-out documentation of defunct syntax option
27307         RE_NO_EMPTY_ALTS.
27308         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27309         Add documentation of re_set_registers.
27310         Document trick to re-use a pattern buffer by setting fastmap manually.
27311         Update documentation of struct re_pattern_buffer per public members.
27312         Uncomment documentation of equivalence class operators and
27313         collating symbol operators, since they are now implemented,
27314         Explain leftmost-longest matching in relation to alternatives.
27315         Tidy documentation of substring matching.
27316         Remove POSIX documentation, which is done better in
27317         glibc, and refer the reader there. Keep BSD API documentation, as
27318         that is not readily available elsewhere.
27319
27320 2010-09-07  Eric Blake  <eblake@redhat.com>
27321
27322         getopt: handle POSIXLY_CORRECT set but not exported
27323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27324         export state of POSIXLY_CORRECT, due to bash set -o posix.
27325         Reported by Dustin J. Mitchell.
27326
27327 2010-09-05  Bruno Haible  <bruno@clisp.org>
27328
27329         gnulib-tool: Highlight the changed options.
27330         * gnulib-tool (func_usage): Display the --import, --add-import,
27331         --remove-import explanations in bold font.
27332
27333 2010-09-06  Karl Berry  <karl@gnu.org>
27334
27335         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27336
27337 2010-09-05  Bruno Haible  <bruno@clisp.org>
27338
27339         uniwidth/width: Update comment.
27340         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27341         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27342
27343 2010-09-05  Bruno Haible  <bruno@clisp.org>
27344
27345         isinf, isnan: Relax license.
27346         * modules/isinf (License): Change from GPL to LGPL, with consent from
27347         Ben Pfaff.
27348         * modules/isnan (License): Likewise.
27349         Requested by Ludovic Courtès.
27350
27351 2010-09-04  Bruno Haible  <bruno@clisp.org>
27352
27353         gnulib-tool: Help migration from --import to --add-import or --update.
27354         * gnulib-tool: Emit a verbose error message when --import is used
27355         without any module name.
27356
27357 2010-09-04  Bruno Haible  <bruno@clisp.org>
27358
27359         Update doc about gnulib-tool.
27360         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27361         'gnulib-tool --update' in more detail.
27362         Reported by Eric Blake.
27363
27364 2010-09-04  Bruno Haible  <bruno@clisp.org>
27365
27366         gnulib-tool: Change --import. New options --add/remove-import.
27367         * gnulib-tool: New options --add-import, --remove-import.
27368         (func_usage): Document them.
27369         (have_associative): Define always.
27370         (func_import): In import mode, don't merge the specified settings with
27371         the cached settings. Implement remove-import mode.
27372         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27373         Explain when to use them versus --import.
27374         (Simple update): Use --add-import instead of --import.
27375         * NEWS: Mention the change.
27376
27377 2010-09-04  Bruno Haible  <bruno@clisp.org>
27378
27379         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27380         separate gnulib.mk.
27381
27382 2010-09-04  Bruno Haible  <bruno@clisp.org>
27383
27384         gnulib-tool: Don't talk about CVS any more.
27385         * gnulib-tool (func_usage, func_import): Write "version control"
27386         instead of CVS.
27387
27388 2010-09-04  Jim Meyering  <meyering@redhat.com>
27389
27390         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27391         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27392         false positives (whose names may be ill-chosen) when searching
27393         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27394         would cause a false-positive.
27395
27396         avoid coreutils "make distcheck" failure
27397         Coreutils tests with an absolute build directory name that contains
27398         a space.  Not quoting this directory name caused a failure.
27399         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27400         * tests/test-vc-list-files-cvs.sh: Likewise.
27401
27402 2010-09-04  Bruno Haible  <bruno@clisp.org>
27403
27404         gnulib-tool: Avoid error when run in a package without Makefile.am.
27405         * gnulib-tool: When collecting the m4dirs in a package that does not
27406         have a Makefile.am, eliminate those directories that contain no
27407         gnulib-cache.m4. Fix expression that counts these directories.
27408
27409 2010-09-04  Bruno Haible  <bruno@clisp.org>
27410
27411         update-copyright test: Improve output when perl is missing or too old.
27412         * tests/test-update-copyright.sh: Move test of Perl version down after
27413         the test whether Perl exists. Provide an explanation relating Perl's
27414         error message to Automake's SKIP: message.
27415
27416 2010-09-04  Bruno Haible  <bruno@clisp.org>
27417
27418         Don't augment PATH in TESTS_ENVIRONMENT.
27419         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27420         set abs_aux_dir instead of augmenting PATH.
27421         * modules/vc-list-files-tests (Makefile.am): Likewise.
27422         * tests/test-update-copyright.sh: Augment PATH here.
27423         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27424         path_prepend_.
27425         * tests/test-vc-list-files-git.sh: Likewise.
27426
27427 2010-09-04  Jim Meyering  <meyering@redhat.com>
27428
27429         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27430         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27431
27432 2010-09-04  Bruno Haible  <bruno@clisp.org>
27433
27434         strdup: Fix compilation error in C++ mode.
27435         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27436         the macro.
27437
27438 2010-09-04  Bruno Haible  <bruno@clisp.org>
27439
27440         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27441         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27442         macro into a function.
27443         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27444
27445 2010-09-04  Bruno Haible  <bruno@clisp.org>
27446
27447         Set PATH_SEPARATOR the same way autoconf does.
27448         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27449         the value of PATH_SEPARATOR the same way autoconf-generated configure
27450         scripts do.
27451         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27452         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27453
27454 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27455
27456         Set PATH_SEPARATOR the same way autoconf does.
27457         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27458         the same way autoconf-generated configure scripts do.
27459         * posix-modules: Likewise.
27460
27461 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27462
27463         hash: fix safe_hasher const typo
27464         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27465         const; otherwise, there is a type error later.
27466
27467 2010-09-02  Jim Meyering  <meyering@redhat.com>
27468
27469         test-update-copyright.sh: require perl 5.8.0
27470         * tests/test-update-copyright.sh: Require 5.8.0,
27471         which Tom G. Christensen has confirmed is adequate,
27472         while 5.6.1 is not.
27473
27474 2010-09-02  Eric Blake  <eblake@redhat.com>
27475
27476         tests: init.sh improvements for re-exec'ing with zsh
27477         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27478         -vx through shell re-exec.
27479         Reported by Tom G. Christensen.
27480
27481         wctype: fix typo in previous commit
27482         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27483         Reported by Ludovic Courtès.
27484
27485 2010-09-02  Jim Meyering  <meyering@redhat.com>
27486
27487         test-update-copyright.sh: skip test if Perl is too old
27488         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27489         Reported by Tom G. Christensen.
27490
27491 2010-09-02  Bruno Haible  <bruno@clisp.org>
27492
27493         wctype: Avoid compilation error on IRIX 6.5.30.
27494         * lib/wctype.in.h (iswblank): Declare with a replacement if
27495         REPLACE_ISWBLANK is set.
27496         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27497         declared. Set REPLACE_ISWBLANK.
27498         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27499         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27500         * doc/posix-headers/wctype.texi: Likewise.
27501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27502
27503 2010-09-01  Bruno Haible  <bruno@clisp.org>
27504
27505         New module 'socketlib'.
27506         * modules/socketlib: New file.
27507         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27508         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27509         * modules/sockets (Depends-on): Add socketlib.
27510         Suggested by Sam Steingold <sds@gnu.org>.
27511
27512 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27513
27514         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27515
27516         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27517         when one needs search access to a directory but not read access.
27518         On systems where it is available, it works in some cases where
27519         O_RDONLY does not, namely on directories that are searchable but
27520         not readable, and which need only to be searchable.  If O_SEARCH
27521         is not available, fall back to the traditional method of using
27522         O_RDONLY.
27523
27524         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27525         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27526         when opening a directory that needs only to be searchable.
27527         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27528         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27529         * lib/openat-proc.c (openat_proc_name): Likewise.
27530         * lib/openat.c (openat_needs_fchdir): Likewise.
27531         * lib/save-cwd.c (save_cwd): Likewise.
27532         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27533
27534 2010-08-28  Bruno Haible  <bruno@clisp.org>
27535
27536         New module 'host-cpu-c-abi'.
27537         * modules/host-cpu-c-abi: New file.
27538         * m4/host-cpu-c-abi.m4: New file, based on part of
27539         clisp/src/m4/general.m4.
27540         Requested by Sam Steingold <sds@gnu.org>.
27541
27542 2010-08-31  Eric Blake  <eblake@redhat.com>
27543         and Jim Meyering  <meyering@redhat.com>
27544
27545         hash: factor, and guard against misbehaving hasher function
27546         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27547         of table->hasher's return value.  Also protect against a hash value
27548         so large that adding it to table->bucket results in a NULL pointer.
27549         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27550         Use it in place of open-coded check-and-abort.
27551
27552 2010-08-30  Bruno Haible  <bruno@clisp.org>
27553
27554         hash: silence spurious clang warning
27555         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27556         Reported by Eric Blake.
27557
27558 2010-08-30  Eric Blake  <eblake@redhat.com>
27559
27560         strstr, memmem, strcasestr: avoid leaked shell message
27561         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27562         FreeBSD.
27563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27565
27566         tests: silence clang warning
27567         * tests/test-malloca.c (do_allocation): Avoid dead store.
27568
27569 2010-08-29  Bruno Haible  <bruno@clisp.org>
27570
27571         gettext: Fix recent mistake.
27572         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27573
27574 2010-08-29  Bruno Haible  <bruno@clisp.org>
27575
27576         selinux-h: Offer a --without-selinux option.
27577         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27578         --without-selinux was specified, skip all tests and define
27579         HAVE_SELINUX_SELINUX_H to 0.
27580         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27581         set LIB_SELINUX to empty.
27582         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27583         gl_LIBSELINUX. If --without-selinux was specified, replace
27584         selinux/context.h.
27585         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27586
27587 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27588             Bruno Haible  <bruno@clisp.org>
27589
27590         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27591         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27592         of HAVE_REALLOC.
27593         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27594         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27595         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27596         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27597
27598 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27599             Bruno Haible  <bruno@clisp.org>
27600
27601         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27602         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27603         HAVE_CALLOC.
27604         * lib/xmalloc.c: Update accordingly.
27605         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27606         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27607         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27608
27609 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27610             Bruno Haible  <bruno@clisp.org>
27611
27612         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27613         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27614         HAVE_MALLOC.
27615         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27616         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27617         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27618
27619 2010-08-29  Bruno Haible  <bruno@clisp.org>
27620
27621         Update modules list.
27622         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27623         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27624         (String handling <string.h>): Add astrxfrm.
27625         (File system functions): Add readlinkat.
27626
27627 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27628
27629         Tests for module 'realloc-gnu'.
27630         * modules/realloc-gnu-tests: New file.
27631         * tests/test-realloc-gnu.c: New file.
27632
27633         Tests for module 'calloc-gnu'.
27634         * modules/calloc-gnu-tests: New file.
27635         * tests/test-calloc-gnu.c: New file.
27636
27637         Tests for module 'malloc-gnu'.
27638         * modules/malloc-gnu-tests: New file.
27639         * tests/test-malloc-gnu.c: New file.
27640
27641 2010-08-28  Bruno Haible  <bruno@clisp.org>
27642
27643         Rename module 'realloc' -> 'realloc-gnu'.
27644         * modules/realloc-gnu: New file, copied from modules/realloc.
27645         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27646         obsolete.
27647         * modules/mgetgroups (Depends-on): Update.
27648         * doc/posix-functions/realloc.texi: Update.
27649         * NEWS: Mention the change.
27650
27651         Rename module 'calloc' -> 'calloc-gnu'.
27652         * modules/calloc-gnu: New file, copied from modules/calloc.
27653         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27654         obsolete.
27655         * doc/posix-functions/calloc.texi: Update.
27656         * NEWS: Mention the change.
27657
27658         Rename module 'malloc' -> 'malloc-gnu'.
27659         * modules/malloc-gnu: New file, copied from modules/malloc.
27660         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27661         obsolete.
27662         * modules/argp (Depends-on): Update.
27663         * modules/regex (Depends-on): Update.
27664         * doc/posix-functions/malloc.texi: Update.
27665         * NEWS: Mention the change.
27666
27667 2010-08-28  Eric Blake  <eblake@redhat.com>
27668
27669         pread, pwrite: add missing dependency
27670         * modules/pread (Depends-on): Add extensions.
27671         * modules/pwrite (Depends-on): Likewise.
27672
27673 2010-08-28  Bruno Haible  <bruno@clisp.org>
27674
27675         unistr/u*-strchr: Fix tests dependencies.
27676         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27677         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27678         Reported by Ian Beckwith <ianb@erislabs.net>.
27679
27680 2010-08-28  Bruno Haible  <bruno@clisp.org>
27681
27682         read-file: Don't occupy too much unused memory.
27683         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27684
27685 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27686             Eric Blake  <eblake@redhat.com>
27687             Bruno Haible  <bruno@clisp.org>
27688
27689         read-file: Avoid memory reallocations with regular files.
27690         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27691         (fread_file): With regular files, use the remaining length as the
27692         initial buffer size.  Check against overflow.
27693         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27694         sys_stat.
27695
27696 2010-08-28  Bruno Haible  <bruno@clisp.org>
27697
27698         ftello: Relax license.
27699         * modules/ftello (License): Relax to LGPLv2+.
27700         Reported by Eric Blake.
27701
27702 2010-08-28  Bruno Haible  <bruno@clisp.org>
27703
27704         Avoid relocwrapper link errors due to gnulib replacement functions.
27705         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27706         function.
27707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27708
27709 2010-08-28  Bruno Haible  <bruno@clisp.org>
27710
27711         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27712         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27713         defined.
27714         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27715         Suggested by Eric Blake.
27716
27717 2010-08-28  Bruno Haible  <bruno@clisp.org>
27718
27719         sys_socket, netdb: Ensure socklen_t gets defined.
27720         * modules/sys_socket (Depends-on): Add socklen.
27721         * modules/netdb (Depends-on): Likewise.
27722         * modules/getaddrinfo (Depends-on): Remove socklen.
27723         * modules/getsockopt (Depends-on): Likewise.
27724         * modules/setsockopt (Depends-on): Likewise.
27725         * tests/test-sys_socket.c: Check that socklen_t is defined.
27726         * tests/test-netdb.c: Likewise.
27727         * m4/socklen.m4: Update comments.
27728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27729
27730 2010-08-27  Eric Blake  <eblake@redhat.com>
27731
27732         login_tty: add missing dependency
27733         * modules/login_tty (Depends-on): Add pty.
27734
27735 2010-08-26  Eric Blake  <eblake@redhat.com>
27736
27737         lib-symbol-versions: fix m4 quoting
27738         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27739         format for AC_LINK_IFELSE.
27740
27741         glob: fix compile test
27742         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27743
27744         btowc: fix missing file
27745         * modules/btowc (Files): Also ship locale-fr.m4.
27746
27747         lseek: fix link test
27748         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27749         AC_LINK_IFELSE.
27750
27751         include_next: silence autoconf 2.68 warning
27752         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27753         AC_COMPILE_IFELSE as special.
27754         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27755         autoconf < 2.68.
27756
27757         acl: fix compilation test
27758         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27759         AC_COMPILE_IFELSE.
27760
27761 2010-08-26  Bruno Haible  <bruno@clisp.org>
27762
27763         Modernize AC_TRY_RUN invocations.
27764         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27765         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27766         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27767         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27768         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27769         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27770         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27771         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27772         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27773         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27774         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27775         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27776         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27779         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27780         gl_MBRLEN_NUL_RETVAL): Likewise.
27781         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27782         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27783         Likewise.
27784         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27785         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27786         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27787         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27788         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27789         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27790         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27791         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27792         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27793         Likewise.
27794         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27795         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27798         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27799         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27800         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27801         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27802         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27804
27805 2010-08-26  Bruno Haible  <bruno@clisp.org>
27806
27807         Modernize AC_TRY_LINK invocations.
27808         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27809         AC_TRY_LINK.
27810         * m4/argp.m4 (gl_ARGP): Likewise.
27811         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27812         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27813         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27816         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27817         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27818         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27820         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27821         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27822         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27823         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27824         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27825         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27826         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27827         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27828         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27829         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27830         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27831         Likewise.
27832         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27833         Likewise.
27834         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27835         Likewise.
27836         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27837         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27838         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27839         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27840         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27841         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27842         * m4/servent.m4 (gl_SERVENT): Likewise.
27843         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27844         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27845         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27846         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27847         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27848         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27849         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27850         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27851         * modules/tsearch-tests (configure.ac): Likewise.
27852
27853 2010-08-26  Bruno Haible  <bruno@clisp.org>
27854
27855         Modernize AC_TRY_COMPILE invocations.
27856         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27857         AC_TRY_COMPILE.
27858         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27859         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27860         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27861         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27862         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27863         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27864         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27865         * m4/lock.m4 (gl_LOCK): Likewise.
27866         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27867         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27868         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27869         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27870         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27871         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27872         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27874         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27875         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27876         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27877         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27878         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27879         extraneous semicolon.
27880
27881 2010-08-26  Jim Meyering  <meyering@redhat.com>
27882
27883         stat-time: relax license LGPL
27884         * modules/stat-time (License): Change from GPL to LGPL,
27885         with consent from all contributors, for use in libguile.
27886         Requested by Ludovic Courtès.
27887
27888 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27889
27890         poll: return immediately on POLLHUP.
27891         * lib/poll.c (poll): Always set timeout before wait_timeout is
27892         computed.
27893
27894 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27895
27896         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27897         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27898         rmdir ("dir/.//"), unlinkat.
27899
27900 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27901
27902         stdbool: avoid spurious failure with modern xlc
27903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27904
27905 2010-08-24  Bruno Haible  <bruno@clisp.org>
27906
27907         getloadavg: simplify code
27908         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27909         gl_have_func. Update comments.
27910
27911 2010-08-24  Eric Blake  <eblake@redhat.com>
27912
27913         getloadavg: don't define SVR4 on cygwin
27914         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27915         only define SVR4 when -lkvm is required.
27916         Reported by Yaakov Selkowitz.
27917
27918 2010-08-24  Bruno Haible  <bruno@clisp.org>
27919
27920         priv-set: fix comment
27921         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27922
27923 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27924
27925         priv-set: fix comments
27926         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27927         to match code, as suggested by David Bartley in:
27928         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27929
27930 2010-08-23  Eric Blake  <eblake@redhat.com>
27931
27932         stdbool: avoid rejecting clang
27933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27934         * tests/test-stdbool.c: Enable more tests if using the system
27935         <stdbool.h> instead of the gnulib replacement.
27936         (main): Move xlc bug test to a runtime test for all compilers.
27937         Reported by Anders Kaseorg.
27938
27939         argz: fix shell quoting issue
27940         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27941         Reported by Charles Wilson.
27942
27943 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27944             Erik Faye-Lund <kusmabite@gmail.com>
27945
27946         poll, select: handle ERROR_BROKEN_PIPE.
27947         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27948         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27949         * lib/select.c (win32_compute_revents): Do not mark a pipe
27950         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27951
27952 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27953
27954         fts: allow compilation with C++
27955         * lib/fts_.h: Specify extern "C" linkage with C++.
27956
27957 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27958
27959         Fix gnulib-tool sed script de-commentation for AIX sed.
27960         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27961         sed.
27962
27963 2010-08-17  Eric Blake  <eblake@redhat.com>
27964
27965         test-stddef: test for (some) offsetof bugs
27966         * tests/test-stddef.c: Enhance test to ensure correct type of
27967         offsetof.
27968         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27969         that we are not fixing at this time.
27970
27971 2010-08-15  Bruno Haible  <bruno@clisp.org>
27972
27973         stpncpy: Allow stpncpy to be defined as a macro.
27974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27975         if it's already correctly declared.
27976         * lib/string.in.h (stpncpy): Undefine before redefining.
27977         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27978
27979 2010-08-14  Bruno Haible  <bruno@clisp.org>
27980
27981         Rename module 'memxfrm' to 'amemxfrm'.
27982         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27983         (amemxfrm): Renamed from memxfrm.
27984         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27985         (amemxfrm): Renamed from memxfrm.
27986         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27987         * NEWS: Mention the change.
27988         * MODULES.html.sh (String handling <string.h>): Update.
27989         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27990         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27991         * lib/unicase/u16-casexfrm.c: Likewise.
27992         * lib/unicase/u32-casexfrm.c: Likewise.
27993         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27994         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27995         * lib/uninorm/u16-normxfrm.c: Likewise.
27996         * lib/uninorm/u32-normxfrm.c: Likewise.
27997         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27998         memxfrm.
27999         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28000         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28001         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28002         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28003         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28004         Suggested by Paul Eggert.
28005
28006 2010-08-14  Bruno Haible  <bruno@clisp.org>
28007
28008         Tests for module 'astrxfrm'.
28009         * modules/astrxfrm-tests: New file.
28010         * tests/test-astrxfrm.c: New file.
28011
28012         New module 'astrxfrm'.
28013         * lib/astrxfrm.h: New file.
28014         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28015         * modules/astrxfrm: New file.
28016
28017 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28018
28019         regex: Tweak doc.
28020         * doc/regex.texi (Overview): Don't mention regex.c.
28021         (GNU Regular Expression Compiling): Likewise.
28022         (Match-end-of-line Operator): Mention 'not_eol'.
28023
28024 2010-08-14  Brian Gough  <bjg@gnu.org>
28025             Bruno Haible  <bruno@clisp.org>
28026
28027         git-merge-changelog: add doc relating to use with bzr and hg.
28028         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28029
28030 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28031
28032         pthread: fix pthread.h creation for srcdir != builddir
28033         * modules/pthread (Makefile.am): Fix the rule to work also in a
28034         non-srcdir build.
28035
28036 2010-08-13  Karl Berry  <karl@gnu.org>
28037
28038         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28039         * doc/posix-*/*: force line break before @url of POSIX
28040         specifications.
28041         Suggested by Werner Lemberg.
28042
28043 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28044
28045         strtod: fix const diagnostic
28046         * lib/strtod.c (strtod): Don't assign const char * to char *,
28047         as this elicits a warning from GCC when warnings are enabled.
28048
28049 2010-08-10  Pádraig Brady <P@draigbrady.com>
28050         and Eric Blake  <eblake@redhat.com>
28051
28052         copy-acl: ignore ENOTSUP on HP-UX
28053         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28054         so that it is available for HP-UX.
28055         * lib/copy-acl.c (qcopy_acl): Use it.
28056         Reported by Patrick M. Callahan.
28057
28058 2010-08-10  Eric Blake  <eblake@redhat.com>
28059
28060         open, chown: relax license
28061         * modules/open (License): Change to LGPLv2+, with consent by all
28062         authors, for use in augeas.
28063         * modules/chown (License): Likewise.
28064         * modules/lchown (Likewise): Likewise.
28065         Requested by Adam Stokes.
28066
28067 2010-08-09  Karl Berry  <karl@gnu.org>
28068
28069         * build-aux/ar-lib: new file, import from Automake.
28070         * config/srclist.txt: autocheck for updates.
28071
28072 2010-08-09  Eric Blake  <eblake@redhat.com>
28073
28074         readlinkat: adjust client modules
28075         * modules/areadlinkat (Depends-on): Use readlinkat, not
28076         symlinkat.
28077         * modules/areadlinkat-with-size (Depends-on): Likewise.
28078
28079         mknod: be more vocal about danger of running tests as root
28080         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28081         root, since that is just asking for problems.
28082         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28083
28084         readlinkat: split into its own module
28085         * modules/symlinkat: Split readlinkat...
28086         * modules/readlinkat: ...into separate module.
28087         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28088         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28089         * lib/symlinkat.c (readlinkat): Move...
28090         * lib/readlinkat.c: ...into new file.
28091         * modules/symlinkat-tests: Split readlinkat test...
28092         * modules/readlinkat-tests: ...into separate module.
28093         * tests/test-symlinkat.c: Split...
28094         * tests/test-readlinkat.c: ...into new file.
28095         * NEWS: Document the split.
28096         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28097         * lib/unistd.in.h (readlinkat): Likewise.
28098         Suggested by Bruno Haible.
28099
28100 2010-08-08  Bruno Haible  <bruno@clisp.org>
28101
28102         memxfrm: Speed up.
28103         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28104         that usually only one call to strxfrm is necessary for each string
28105         part.
28106         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28107
28108 2010-08-07  Karl Berry  <karl@gnu.org>
28109
28110         * doc/posix-headers/limits.texi,
28111         * doc/posix-functions/malloc.texi,
28112         * doc/posix-functions/strsignal.texi: missing @item.
28113         * doc/ld-version-script.texi: spurious leading i.
28114         * doc/regex.texi (Interval Operators): no commas inside @var.
28115
28116 2010-08-01  Bruno Haible  <bruno@clisp.org>
28117
28118         Integrate the regex documentation.
28119         * doc/gnulib.texi: Define 'cn' index.
28120         (Regular expressions): New a chapter that includes regex.texi and
28121         regexprops-generic.texi.
28122         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28123         syntax.
28124
28125         Whitespace cleanup.
28126         * doc/regex.texi: Remove trailing spaces.
28127
28128         Add regex documentation.
28129         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28130         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28131         Written by Kathy A. Hargreaves and Karl Berry.
28132
28133 2010-08-01  Bruno Haible  <bruno@clisp.org>
28134
28135         link: Update documentation.
28136         * doc/posix-functions/link.texi: Update regarding Solaris.
28137
28138 2010-07-31  Bruno Haible  <bruno@clisp.org>
28139
28140         Update modules list.
28141         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28142         (String handling <string.h>): Add memcmp2, memxfrm.
28143         (Container data structures): Add xlist, xsublist, xoset.
28144         (Core language properties): Add alignof, unused-parameter.
28145         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28146         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28147         (Unibyte characters <ctype.h>): New section.
28148         (String handling <string.h>): New section.
28149         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28150         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28151         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28152         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28153         tan, tanh, tanl, y0, y1, yn.
28154         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28155         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28156         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28157         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28158         unlockpt, vdprintf, vdprintf-posix.
28159         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28160         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28161         xconcat-filename.
28162         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28163         getdtablesize, pipe2, pipe2-safer.
28164         (Security): New section.
28165         (Networking functions): Add accept4.
28166         (Signal handling): Add sigpipe.
28167         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28168         mbmemcasecoll.
28169         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28170         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28171         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28172         pipe-filter-ii.
28173         (Misc): Add argp-version-etc, login_tty, parse-duration.
28174
28175 2010-07-31  Bruno Haible  <bruno@clisp.org>
28176
28177         Improve doc in MODULES.html.
28178         * modules/linkat (Description): Add the word "function".
28179         * modules/mkfifo (Description): Likewise.
28180         * modules/mknod (Description): Likewise.
28181         * modules/remove (Description): Likewise.
28182         * modules/renameat (Description): Likewise.
28183         * modules/stat (Description): Likewise.
28184         * modules/symlink (Description): Likewise.
28185         * modules/unlink (Description): Likewise.
28186
28187 2010-07-31  Bruno Haible  <bruno@clisp.org>
28188
28189         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28190         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28191         option --enable/disable-c++ instead of --enable/disable-cxx.
28192         * NEWS: Mention the change.
28193
28194 2010-07-31  Bruno Haible  <bruno@clisp.org>
28195
28196         readlink, areadlink: Relax test a bit.
28197         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28198         alternative to ENOTDIR.
28199         * tests/test-areadlink.h (test_areadlink): Likewise.
28200         Reported by Rainer Tammer.
28201
28202 2010-07-31  Bruno Haible  <bruno@clisp.org>
28203
28204         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28205         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28206         character, perform the search using U_STRCHR.
28207         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28208         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28209         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28210         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28211         Suggested by Paolo Bonzini.
28212
28213 2010-07-31  Bruno Haible  <bruno@clisp.org>
28214
28215         unistr/u*-strstr: Fix dependencies.
28216         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28217         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28218         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28219
28220 2010-07-31  Bruno Haible  <bruno@clisp.org>
28221
28222         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28223         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28224         the beginning of the loop.
28225         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28226         cases in 'switch' statement.
28227
28228         unistr/u8-strchr: Fix several bugs.
28229         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28230         the string. When not found, return NULL, not a pointer near the end.
28231
28232         More tests for unistr/u8-strchr.
28233         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28234         that the function does not read past the first occurrence of the byte
28235         being searched.
28236         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28237         * tests/unistr/test-u16-strchr.c (main): New function.
28238         * tests/unistr/test-u32-strchr.c (main): New function.
28239
28240 2010-07-31  Bruno Haible  <bruno@clisp.org>
28241
28242         posix-modules: Ignore backup files of documentation files.
28243         * posix-modules: grep only through files named *.texi.
28244
28245 2010-07-31  Bruno Haible  <bruno@clisp.org>
28246
28247         symlinkat: Fix documentation.
28248         * doc/posix-functions/readlinkat.texi: Fix module name.
28249
28250 2010-07-31  Bruno Haible  <bruno@clisp.org>
28251
28252         fchownat: Replace also when chown has the trailing slash bug.
28253         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28254         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28255         introduced on 2010-04-10.
28256         Reported by Rainer Tammer.
28257
28258 2010-07-31  Bruno Haible  <bruno@clisp.org>
28259
28260         linkat: Work around AIX 7.1 bug.
28261         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28262         whether linkat handles trailing slash correctly. If not, replace linkat
28263         and define LINKAT_TRAILING_SLASH_BUG.
28264         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28265         check whether (fd1,file1) points to a directory if file1 or file2 ends
28266         in a slash. Code taken from lib/link.c.
28267         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28268         Reported by Rainer Tammer.
28269
28270 2010-07-31  Bruno Haible  <bruno@clisp.org>
28271
28272         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28273         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28274         This disables an xlc optimization that was causing wrong test results.
28275         Reported by Rainer Tammer.
28276
28277 2010-07-31  Bruno Haible  <bruno@clisp.org>
28278
28279         iconv: Work around AIX 6.1..7.1 bug.
28280         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28281         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28282         cross-compiling, guess no on all versions of AIX.
28283         Reported by Rainer Tammer.
28284
28285 2010-07-31  Bruno Haible  <bruno@clisp.org>
28286
28287         readlink: Relax test a bit.
28288         * tests/test-readlink.h (test_readlink): Allow different errno value
28289         when readlink is called with a file name that ends in / and refers to
28290         a file.
28291         Suggested by Eric Blake.
28292         Reported by Rainer Tammer.
28293
28294 2010-07-31  Bruno Haible  <bruno@clisp.org>
28295
28296         copysign: Does not require -lm on glibc systems.
28297         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28298         gl_COMMON_DOUBLE_MATHFUNC.
28299         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28300
28301 2010-07-31  Bruno Haible  <bruno@clisp.org>
28302
28303         duplocale: Work around AIX 7.1 bug.
28304         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28305         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28306         * lib/duplocale.c (rpl_duplocale): Update comment.
28307         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28308         Reported by Rainer Tammer.
28309
28310 2010-07-30  Bruno Haible  <bruno@clisp.org>
28311
28312         dirfd: Avoid link error on AIX 7.1.
28313         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28314         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28315         exist, set REPLACE_DIRFD.
28316         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28317         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28318         * doc/posix-functions/dirfd.texi: Update.
28319         Reported by Rainer Tammer.
28320
28321 2010-07-30  Eric Blake  <eblake@redhat.com>
28322
28323         strtod: next round of AIX fixes
28324         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28325         exponent.
28326         * tests/test-strtod.c (main): Enhance tests.
28327         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28328         Reported by Rainer Tammer.
28329
28330         futimens: fix configure check
28331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28332         Reported by Bruno Haible.
28333
28334 2010-07-30  Bruno Haible  <bruno@clisp.org>
28335
28336         getline: Update regarding AIX.
28337         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28338         Reported by Rainer Tammer.
28339
28340 2010-07-30  Bruno Haible  <bruno@clisp.org>
28341
28342         wcwidth: Drop replacement on AIX 7.
28343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28344         AIX 7.
28345         Reported by Rainer Tammer.
28346
28347 2010-07-30  Bruno Haible  <bruno@clisp.org>
28348
28349         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28350         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28351         a 'char *'.
28352         Reported by Rainer Tammer.
28353
28354 2010-07-30  Bruno Haible  <bruno@clisp.org>
28355
28356         unlink: Update regarding AIX.
28357         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28358         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28359         Reported by Rainer Tammer.
28360
28361 2010-07-30  Bruno Haible  <bruno@clisp.org>
28362
28363         symlink: Update regarding AIX.
28364         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28365         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28366         Reported by Rainer Tammer.
28367
28368 2010-07-30  Bruno Haible  <bruno@clisp.org>
28369
28370         strndup: Update regarding AIX.
28371         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28372         AIX 7.
28373         Reported by Rainer Tammer.
28374
28375 2010-07-30  Bruno Haible  <bruno@clisp.org>
28376
28377         stat: Update regarding AIX.
28378         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28379         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28380         Reported by Rainer Tammer.
28381
28382 2010-07-30  Bruno Haible  <bruno@clisp.org>
28383
28384         truncl: Fix autoconf test.
28385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28386         whether truncl works.
28387         Reported by Rainer Tammer.
28388
28389 2010-07-30  Bruno Haible  <bruno@clisp.org>
28390
28391         round: Update regarding AIX.
28392         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28393         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28394         Reported by Rainer Tammer.
28395
28396 2010-07-30  Bruno Haible  <bruno@clisp.org>
28397
28398         rename: Update regarding AIX.
28399         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28400         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28401         Reported by Rainer Tammer.
28402
28403 2010-07-30  Bruno Haible  <bruno@clisp.org>
28404
28405         printf.m4: Update regarding AIX.
28406         * m4/printf.m4: Update comments regarding AIX.
28407         Reported by Rainer Tammer.
28408
28409 2010-07-30  Bruno Haible  <bruno@clisp.org>
28410
28411         iconv: Update regarding AIX.
28412         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28413         AIX 7.
28414         Reported by Rainer Tammer.
28415
28416 2010-07-30  Bruno Haible  <bruno@clisp.org>
28417
28418         getopt: Update regarding AIX.
28419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28420         no on AIX.
28421         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28422         Reported by Rainer Tammer.
28423
28424 2010-07-30  Bruno Haible  <bruno@clisp.org>
28425
28426         ldexpl; Update regarding AIX.
28427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28428         on AIX 7.
28429         Reported by Rainer Tammer.
28430
28431 2010-07-30  Bruno Haible  <bruno@clisp.org>
28432
28433         frexpl: Update regarding AIX.
28434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28435         on AIX 7.
28436         Reported by Rainer Tammer.
28437
28438 2010-07-30  Bruno Haible  <bruno@clisp.org>
28439
28440         open, fopen: Update regarding AIX.
28441         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28442         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28443         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28444         * doc/posix-functions/fopen.texi: Likewise.
28445         Reported by Rainer Tammer.
28446
28447 2010-07-30  Bruno Haible  <bruno@clisp.org>
28448
28449         chown: Update doc regarding AIX.
28450         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28451         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28452         Reported by Rainer Tammer.
28453
28454 2010-07-30  Eric Blake  <eblake@redhat.com>
28455
28456         strtod: fix bug in replacement function on AIX
28457         * lib/strtod.c (strtod): Special case broken "0x" parse in
28458         underlying strtod.
28459         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28460         * doc/posix-functions/strtod.texi (strtod): Likewise.
28461         Reported by Rainer Tammer.
28462
28463 2010-07-30  Bruno Haible  <bruno@clisp.org>
28464
28465         mbrlen: Fix cross-compilation guess for AIX.
28466         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28467         guess. Leftover from 2008-12-22.
28468
28469 2010-07-30  Bruno Haible  <bruno@clisp.org>
28470
28471         mbrtowc: Fix cross-compilation guess for AIX.
28472         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28473         guess. Leftover from 2008-12-21.
28474
28475 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28476
28477         init.sh: work around trap limitation of some shells
28478         * tests/init.sh (setup_): Move exit trap outside of shell function.
28479
28480 2010-07-29  Eric Blake  <eblake@redhat.com>
28481
28482         strtod: aid debugging
28483         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28484         understanding why strtod is rejected.
28485
28486 2010-07-28  Bruno Haible  <bruno@clisp.org>
28487
28488         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28489         * lib/unistr/u8-chr.c: Include <string.h>.
28490         * tests/unistr/test-u8-chr.c: Likewise.
28491         * tests/unistr/test-u16-chr.c: Likewise.
28492         * tests/unistr/test-u32-chr.c: Likewise.
28493         * tests/unistr/test-u8-strchr.c: Likewise.
28494         * tests/unistr/test-u16-strchr.c: Likewise.
28495         * tests/unistr/test-u32-strchr.c: Likewise.
28496         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28497         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28498         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28499         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28500
28501 2010-07-28  Bruno Haible  <bruno@clisp.org>
28502
28503         Use spaces for indentation, not tabs.
28504         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28505
28506 2010-07-27  Bruno Haible  <bruno@clisp.org>
28507
28508         mbspcasecmp: Fix function specification.
28509         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28510         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28511         Reported by Eric Blake <eblake@redhat.com>.
28512
28513 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28514
28515         timespec: use cast and not conditional, as truncation isn't possible
28516         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28517         instead of a conditional.  Comment about the situation in more detail.
28518         This undoes most of the 2009-10-29 patch.
28519
28520 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28521
28522         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28523         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28524         * lib/unistr/u8-strchr.c: Likewise.
28525         * modules/unistr/u8-chr: Depend on memchr.
28526
28527         unistr/u*-strchr: add tests
28528         * modules/unistr/u8-strchr-tests: New file.
28529         * modules/unistr/u16-strchr-tests: New file.
28530         * modules/unistr/u32-strchr-tests: New file.
28531         * tests/unistr/test-strchr.h: New file.
28532         * tests/unistr/test-u8-strchr.c: New file.
28533         * tests/unistr/test-u16-strchr.c: New file.
28534         * tests/unistr/test-u32-strchr.c: New file.
28535
28536         unistr/u*-chr: test multibyte sequences more
28537         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28538         test vector.
28539         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28540         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28541         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28542
28543         unistr/u*-chr: test multibyte sequences
28544         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28545
28546         unistr/u*-chr: prepare for multibyte tests
28547         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28548         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28549         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28550         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28551         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28552         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28553
28554 2010-07-18  Bruno Haible  <bruno@clisp.org>
28555
28556         unistr/u8-strchr: Optimize non-ASCII argument case.
28557         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28558         because the first byte often matches anyway.
28559         Reported by Pádraig Brady <P@draigbrady.com>.
28560
28561 2010-07-15  Karl Berry  <karl@gnu.org>
28562
28563         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28564
28565 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28566
28567         getcwd: on Solaris, work better if ancestors are inaccessible
28568         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28569         buffer and size, try again with a large buffer.  This works better
28570         on Solaris, since its getcwd succeeds even if the path to the root
28571         is inaccessible, and this is helpful in common cases such as .zfs
28572         hidden directories.  Problem reported by J Chapman Flack in
28573         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28574         Use system getcwd if it's declared, not merely if it's partly
28575         working; use the partly-working test only to avoid needless effort
28576         if the system getcwd fails.
28577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28578         comment that was already obsolete and is now even more obsolete.
28579         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28580         now might call strdup.
28581
28582 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28583
28584         pthread: Add enough so that coreutils/src/sort.c compiles.
28585         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28586         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28587         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28588         Include <sys/types.h>, in case it defines pthread_t.
28589         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28590         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28591         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28592         (pthread_rwlockattr_t, pthread_spinlock_t):
28593         New typedefs, if HAVE_PTHREAD_T is not defined.
28594         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28595         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28596         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28597         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28598         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28599         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28600         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28601         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28602         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28603         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28604         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28605         New macros.
28606         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28607         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28608         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28609         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28610         (pthread_spin_unlock): New dummy functions.
28611         (pthread_create): Return EAGAIN; don't set errno.
28612         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28613         require AC_C_INLINE.
28614         * modules/pthread (Depends-on): Add sched, time.
28615         (pthread.h): Use AM_V_GEN.
28616
28617 2010-07-13  Bruno Haible  <bruno@clisp.org>
28618
28619         striconveh: Don't malloc memory if the result buffer is sufficient.
28620         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28621         buffer if its size is sufficient.
28622         Reported by Ludovic Courtès <ludo@gnu.org>.
28623
28624 2010-07-13  Bruno Haible  <bruno@clisp.org>
28625
28626         strtod: Add safety check.
28627         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28628
28629 2010-07-12  Bruno Haible  <bruno@clisp.org>
28630
28631         Unify tests that set gl_cv_func_ldexpl_no_libm.
28632         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28633         gl_FUNC_LDEXPL.
28634         (gl_FUNC_LDEXPL): Invoke it.
28635         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28636
28637 2010-07-12  Bruno Haible  <bruno@clisp.org>
28638
28639         Unify tests that set gl_cv_func_ldexp_no_libm.
28640         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28641         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28642         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28643         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28644         * modules/strtod (Files): Add m4/ldexp.m4.
28645
28646 2010-07-12  Bruno Haible  <bruno@clisp.org>
28647
28648         Unify tests that set gl_cv_func_frexpl_no_libm.
28649         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28650         gl_FUNC_FREXPL_NO_LIBM.
28651         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28652         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28653
28654 2010-07-12  Bruno Haible  <bruno@clisp.org>
28655
28656         Unify tests that set gl_cv_func_frexp_no_libm.
28657         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28658         gl_FUNC_FREXP_NO_LIBM.
28659         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28660         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28661
28662 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28663
28664         memcoll: clarify sizes versus lengths, document better, and tweak perf
28665         * lib/memcoll.c (strcoll_loop, memcoll0):
28666         Improve quality of descriptive comments.  Name variables
28667         consistently as to whether they are lengths (which do not include
28668         terminating null) versus sizes (which do).
28669         * lib/xmemcoll.c (xmemcoll0): Likewise.
28670         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28671         returned when s1size == 0; this is easier to compile and saves
28672         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28673
28674 2010-07-12  Bruno Haible  <bruno@clisp.org>
28675
28676         Tests for module '_Exit'.
28677         * modules/_Exit-tests: New file.
28678         * tests/test-_Exit.sh: New file.
28679         * tests/test-_Exit.c: New file.
28680
28681         New module '_Exit'.
28682         * lib/stdlib.in.h (__attribute__): New macro.
28683         (_Exit): New declaration.
28684         * lib/_Exit.c: New file.
28685         * m4/_Exit.m4: New file.
28686         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28687         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28688         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28689         * modules/_Exit: New file.
28690         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28691         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28692
28693 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28694
28695         strtod: make it more-accurate typically, and don't require libm
28696         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28697         Include limits.h.  Don't include string.h.
28698         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28699         (locale_isspace): New function, so that no casts are needed to
28700         check whether *s is a space.
28701         (ldexp): Provide an unused dummy if not available.
28702         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28703         (strtod): Use them.  This implementation prefers to use the
28704         underlying strtod if available, falling back on our own code
28705         only to fix known bugs.  This is more likely to produce an
28706         accurate result.  Also, it avoids the use of libm functions.
28707         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28708         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28709         was absent, but it caused a test failure with coreutils.
28710         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28711         with libm.
28712         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28713         * modules/strtod-tests (Makefile.am): Likewise.
28714
28715 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28716             Bruno Haible  <bruno@clisp.org>
28717
28718         unistr/u8-strchr: Optimize ASCII argument case.
28719         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28720
28721 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28722
28723         (x)memcoll: minor tweaks
28724         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28725         is after the type that it qualifies.
28726         (memcoll0): Likewise.
28727         * lib/memcoll.h (memcoll0): Likewise.
28728         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28729         * lib/xmemcoll.h (xmemcoll0): Likewise.
28730         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28731         differs from memcoll in that the NUL byte is part of the argument.
28732         Omit the abort-checks, as performance is a real issue here.  Plus,
28733         the checks were wrong anyway (an off-by-one error).  Omit local
28734         variable 'diff', as it's a bit clearer that way.
28735         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28736         no longer needed.
28737
28738 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28739
28740         (x)memcoll: speedup when input is known to be NUL delimited
28741         * lib/memcoll.c: Include stdlib.
28742         (memcoll0): New function.
28743         (strcoll_loop): New function, refactored for use in both memcoll
28744         and memcoll0.
28745         * lib/memcoll.h (memcoll0): Add prototype.
28746         * lib/xmemcoll.c (xmemcoll0): New function.
28747         (collate_error): New function, refactored for use in both xmemcoll
28748         and xmemcoll0.
28749         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28750         * m4/memcoll.m4: add inline invocation.
28751
28752 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28753
28754         * build-aux/bootstrap: Remove any local translations
28755         from the translation project synchronization directory,
28756         so that local only translations are not distributed.
28757
28758 2010-07-04  Bruno Haible  <bruno@clisp.org>
28759
28760         fsusage: Clarify which code applies to which platforms.
28761         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28762         platform.
28763         * lib/fsusage.c (get_fs_usage): Likewise.
28764
28765 2010-07-04  Bruno Haible  <bruno@clisp.org>
28766
28767         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28768         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28769         Reported by Martin Lambers <marlam@marlam.de>.
28770
28771 2010-07-04  Jim Meyering  <meyering@redhat.com>
28772
28773         hash: once again explicitly disallow insertion of NULL
28774         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28775         inserting a NULL pointer cannot work with these functions.
28776         Add a comment with details.
28777         This reverts part of the 2010-07-01 commit, 5bef1a35
28778         "hash: extend module to deal with non-pointer keys".
28779
28780 2010-07-01  Bruno Haible  <bruno@clisp.org>
28781
28782         stdbool: Update doc.
28783         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28784         Info from Christian Weisgerber <naddy@mips.inka.de>.
28785
28786 2010-07-01  Jim Meyering  <meyering@redhat.com>
28787
28788         hash: extend module to deal with non-pointer keys
28789         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28790         but that allows insertion of non-pointer entries.
28791         Do not disallow an ENTRY value of NULL.
28792         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28793         * lib/hash.h (hash_insert0): Declare.
28794
28795 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28796
28797         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28798         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28799         not present (i.e. with autoconf 2.59 and when using gettextize, not
28800         gnulib), require AC_GNU_SOURCE instead.
28801
28802 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28803
28804         idpriv-drop: Fix tests.
28805         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28806         not to the test-idpriv-droptemp program.
28807
28808 2010-06-29  Bruno Haible  <bruno@clisp.org>
28809
28810         string: Fix syntax error with g++ 2.96.
28811         * lib/string.in.h (__pure__): Remove definition.
28812         (_GL_ATTRIBUTE_PURE): New macro.
28813         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28814         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28815         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28816
28817 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28818
28819         unitypes: Fix bug introduced on 2010-05-18.
28820         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28821
28822 2010-06-22  Eric Blake  <eblake@redhat.com>
28823
28824         memmem: slight optimization
28825         * lib/str-two-way.h (critical_factorization): Update comments.
28826         Reduce work during factorization phase.
28827         Reported by Carlos Bueno <carlos@bueno.org>.
28828
28829 2010-06-21  Bruno Haible  <bruno@clisp.org>
28830
28831         Fix HAVE_CALLOC_POSIX misnomer.
28832         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28833         !HAVE_CALLOC_POSIX.
28834         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28835         HAVE_CALLOC_POSIX.
28836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28837         instead of HAVE_CALLOC_POSIX.
28838         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28839         HAVE_CALLOC_POSIX.
28840
28841         Use modern idiom for calloc() replacement.
28842         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28843         AC_FUNC_CALLOC.
28844         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28845         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28846         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28847         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28848         (gl_REPLACE_CALLOC): New macro.
28849
28850 2010-06-21  Bruno Haible  <bruno@clisp.org>
28851
28852         Fix HAVE_REALLOC_POSIX misnomer.
28853         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28854         !HAVE_REALLOC_POSIX.
28855         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28856         HAVE_REALLOC_POSIX.
28857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28858         instead of HAVE_REALLOC_POSIX.
28859         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28860         HAVE_REALLOC_POSIX.
28861
28862         Use modern idiom for realloc() replacement.
28863         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28864         AC_FUNC_REALLOC.
28865         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28866         Autoconf's AC_FUNC_REALLOC.
28867         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28868         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28869         (gl_REPLACE_REALLOC): New macro.
28870         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28871
28872 2010-06-21  Bruno Haible  <bruno@clisp.org>
28873
28874         Fix HAVE_MALLOC_POSIX misnomer.
28875         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28876         !HAVE_MALLOC_POSIX.
28877         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28878         HAVE_MALLOC_POSIX.
28879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28880         instead of HAVE_MALLOC_POSIX.
28881         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28882         HAVE_MALLOC_POSIX.
28883
28884         Use modern idiom for malloc() replacement.
28885         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28886         AC_FUNC_MALLOC.
28887         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28888         Autoconf's AC_FUNC_MALLOC.
28889         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28890         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28891         (gl_REPLACE_MALLOC): New macro.
28892         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28893
28894 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28895
28896         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28897         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28898         This macro takes 3 arguments, not 4.
28899
28900 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28901
28902         ipv6: fix detection under mingw
28903         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28904         in6_addr.
28905
28906 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28907
28908         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28909         that strtod() works when cross-compiling to a glibc version known
28910         to work.
28911
28912 2010-06-15  Bruno Haible  <bruno@clisp.org>
28913
28914         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28915
28916 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28917
28918         select: Correct timeout.
28919         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28920
28921 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28922
28923         git-version-gen: init shell var to avoid env var influence
28924         * build-aux/git-version-gen (v): Init shell var to empty.
28925
28926 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28927
28928         priv-set: Don't assume that priv.h exists merely because getppriv does.
28929         See Jan Andersen's bug report about AIX 5L in
28930         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28931         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28932         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28933         * lib/priv-set.h: Likewise.
28934         * tests/test-priv-set.c: Likewise.
28935
28936 2010-06-13  Bruno Haible  <bruno@clisp.org>
28937
28938         relocatable: Make it easier to test whether to install wrappers.
28939         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28940         RELOCATABLE_VIA_WRAPPER.
28941
28942 2010-06-13  Bruno Haible  <bruno@clisp.org>
28943
28944         gnulib-tool: Display specified modules and dependencies differently.
28945         * gnulib-tool (func_show_module_list): New function.
28946         (func_import, func_create_testdir): Invoke it.
28947         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28948
28949 2010-06-13  Bruno Haible  <bruno@clisp.org>
28950
28951         gnulib-tool: Align code of func_import and func_create_testdir.
28952         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28953         specified_modules.
28954
28955 2010-06-12  Jim Meyering  <meyering@redhat.com>
28956
28957         test-inttostr: avoid spurious failure on Solaris 9
28958         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28959         to accept "%ju".  Reported by Bruno Haible.
28960
28961 2010-06-11  Jim Meyering  <meyering@redhat.com>
28962
28963         test-sys_socket: mark variables as used more readably
28964         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28965         as "used" explicitly via (void) statement casts.  This is more
28966         readable than using them in an artificial return expression.
28967         Suggestion from Bruno Haible.
28968
28969 2010-06-11  Bruno Haible  <bruno@clisp.org>
28970
28971         Avoid some more warnings from "gcc -Wwrite-strings".
28972         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28973         to 'const char *'.
28974         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28975         * tests/test-c-strcasestr.c (main): Likewise.
28976         * tests/test-mbscasestr1.c (main): Likewise.
28977         * tests/test-mbscasestr2.c (main): Likewise.
28978         * tests/test-memmem.c (main): Likewise.
28979         * tests/test-strstr.c (main): Likewise.
28980         * tests/test-strcasestr.c (main): Likewise.
28981
28982 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28983
28984         init.sh: change framework_failure_ to fail with status 99, not 1
28985         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28986         automake's parallel-tests rule that this is an unexpected failure,
28987         even if the test is listed in XFAIL_TESTS.
28988
28989 2010-06-11  Jim Meyering  <meyering@redhat.com>
28990
28991         test-inttostr: avoid warnings about 4-6KB literal strings
28992         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28993         Include "macros.h", for its definition of ASSERT.
28994         (CK): s/assert/ASSERT/
28995         * modules/inttostr-tests (Files): Add macros.h.
28996
28997         init.sh: don't use $ME_ or skip_ before they are defined
28998         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28999         their first uses.  Also hoist their companions: warn_, fail_,
29000         framework_failure_, $stderr_fileno.  Prompted by a patch from
29001         Stefano Lattarini.
29002
29003         test-sys_socket: avoid set-but-not-used warnings from gcc
29004         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29005         avoid warning about set-but-not-used variables.
29006
29007         test-xvasprintf: avoid 'const' discard warnings
29008         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29009         "const" when assigning from literal strings.
29010         (test_xasprintf): Add "void" in function argument list to placate
29011         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29012
29013         tests: avoid compilation warnings in argmatch and exclude tests...
29014         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29015         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29016         Since it always exits, declare with the "noreturn" attribute.
29017         * tests/test-argmatch.c: Likewise.
29018
29019         tests: avoid 'const' discard warnings in mbsstr tests
29020         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29021         * tests/test-mbsstr2.c (main): Likewise.
29022
29023         test-verify: avoid warning from gcc's -Wmissing-declarations
29024         * tests/test-verify.c (function): Declare to be static.
29025
29026         test-inttostr.c: include <string.h> for use of strcmp
29027         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29028
29029         test-linkat: avoid failed assertion on "other" architectures
29030         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29031         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29032         sparc: https://bugs.launchpad.net/bugs/591968
29033
29034 2010-06-11  Jim Meyering  <meyering@redhat.com>
29035
29036         printf.m4: avoid autoconf's "Expanded Before Required" warning
29037         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29038         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29039         autoconf warning.
29040
29041 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29042
29043         Replacement header templates are now named with ".in", not "_".
29044         * doc/gnulib-intro.texi: Correct.
29045
29046 2010-06-10  Jim Meyering  <meyering@redhat.com>
29047
29048         inttostr-tests: depend on snprintf, not snprintf-posix
29049         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29050         snprintf-posix, to avoid this aclocal failure:
29051           missing file gnulib-tests/vasnprintf.c
29052           configure.ac:45: error: expected source file, required through \
29053           AC_LIBSOURCES, not found
29054
29055 2010-06-10  Jim Meyering  <meyering@redhat.com>
29056
29057         inttostr: add a new function, inttostr, and tests
29058         The namesake function was not available.  The existence of the
29059         template file, inttostr.c makes its addition nontrivial.
29060         * lib/anytostr.c: Rename from inttostr.c.
29061         (anytostr): Rename from inttostr.
29062         * lib/inttostr.c: New file.
29063         * modules/inttostr (Files): Add anytostr.c.
29064         (Makefile.am): Set lib_SOURCES instead of ...
29065         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29066         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29067         * lib/offtostr.c: Likewise.
29068         * lib/uinttostr.c: Likewise.
29069         * lib/umaxtostr.c: Likewise.
29070         * modules/inttostr-tests: New file.
29071         * tests/test-inttostr.c: New file.  Test these functions.
29072
29073 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29074             Bruno Haible  <bruno@clisp.org>
29075
29076         Add "Extending Gnulib" chapter to manual.
29077         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29078         chapter.
29079         (Extending Gnulib): New chapter.
29080         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29081         chapter.
29082
29083 2010-06-09  Bruno Haible  <bruno@clisp.org>
29084
29085         Avoid relocwrapper link errors due to gnulib replacement functions.
29086         * lib/areadlink.c: Use the system's malloc, realloc functions.
29087         (areadlink): Set errno to ENOMEM explicitly.
29088         * modules/areadlink (Depends-on): Remove malloc-posix.
29089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29090
29091 2010-06-09  Bruno Haible  <bruno@clisp.org>
29092
29093         Avoid relocwrapper link errors due to gnulib replacement functions.
29094         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29095         * lib/malloca.c: Likewise.
29096         * lib/relocatable.c: Likewise.
29097         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29098         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29099         * lib/setenv.c: Use the system's malloc, realloc functions.
29100         * lib/strerror.c: Use the system's sprintf function.
29101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29102
29103 2010-06-04  Bruno Haible  <bruno@clisp.org>
29104
29105         Prefer documented low-level autoconf macro names.
29106         * m4/lib-link.m4: Use m4_translit instead of translit.
29107         * m4/environ.m4: Likewise.
29108         * m4/mathfunc.m4: Likewise.
29109         * m4/onceonly.m4: Likewise.
29110         * m4/stdint.m4: Likewise.
29111         Suggested by Eric Blake.
29112
29113 2010-06-04  Martin Lambers  <marlam@marlam.de>
29114             Bruno Haible  <bruno@clisp.org>
29115
29116         havelib: Allow library names with '+' characters.
29117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29118         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29119
29120 2010-06-09  Bruno Haible  <bruno@clisp.org>
29121
29122         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29123         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29124         realloc failed.
29125
29126 2010-06-08  Peter Simons  <simons@cryp.to>
29127
29128         maint.mk: make the news-check rule more configurable
29129         * top/maint.mk (news-check-lines-spec): New variable.
29130         (news-check): Use "sed -n 1,10p" in place of "head".
29131
29132 2010-06-07  Jim Meyering  <meyering@redhat.com>
29133
29134         do-release-commit-and-tag: fix typo in --help
29135         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29136
29137         regex: avoid new dead-code warning with gcc-4.6.0
29138         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29139         if-block containing a while-loop.  It's been unused for at least
29140         5 years.
29141
29142 2010-06-05  Bruno Haible  <bruno@clisp.org>
29143
29144         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29145         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29146
29147 2010-06-04  Bruno Haible  <bruno@clisp.org>
29148
29149         Update to GNU gettext 0.18.1.
29150         * modules/gettext (configure.ac): Require gettext infrastructure from
29151         version 0.18.1.
29152
29153 2010-06-03  Bruno Haible  <bruno@clisp.org>
29154
29155         Don't use AC_LIBOBJ with file names in subdirectories.
29156         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29157         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29158         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29159         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29160         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29161         gl_LIBUNISTRING_LIBSOURCE.
29162         (Makefile.am): Augment lib_SOURCES here, conditionally.
29163         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29164
29165 2010-06-03  Bruno Haible  <bruno@clisp.org>
29166
29167         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29168         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29169         expansion does not end with a newline.
29170         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29171         unnecessary newline.
29172
29173 2010-06-03  Bruno Haible  <bruno@clisp.org>
29174
29175         Reduce dependencies.
29176         * tests/test-quotearg.h: New file, extracted from
29177         tests/test-quotearg.c.
29178         * tests/test-quotearg-simple.c: New file, extracted from
29179         tests/test-quotearg.c.
29180         * tests/test-quotearg.c: Don't include <ctype.h>.
29181         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29182         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29183         use_quote_double_quotes, use_quotearg_colon): Moved to
29184         tests/test-quotearg.h.
29185         (results_g, flag_results, custom_quotes, custom_results): Moved
29186         to tests/test-quotearg-simple.c.
29187         (main): Moved the part that does not depend on gettext to
29188         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29189         performed.
29190         * modules/quotearg-simple: New file.
29191         * modules/quotearg-simple-tests: New file.
29192         * modules/quotearg (Depends-on): Add quotearg-simple.
29193         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29194         (Files): Add tests/test-quotearg.h.
29195         Reported by Paolo Bonzini.
29196
29197 2010-06-03  Bruno Haible  <bruno@clisp.org>
29198
29199         Reduce dependencies.
29200         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29201
29202 2010-06-03  Bruno Haible  <bruno@clisp.org>
29203
29204         time: Undefine more broken macros.
29205         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29206         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29207         Reported by Eric Blake.
29208
29209 2010-06-03  Bruno Haible  <bruno@clisp.org>
29210
29211         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29212         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29213         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29214         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29215         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29216         Reported by Ludovic Courtès <ludo@gnu.org>.
29217
29218 2010-06-02  Eric Blake  <eblake@redhat.com>
29219
29220         time: work with mingw + pthreads-win32 library
29221         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29222         if timespec is defined only in pthread.h.
29223         * modules/time (Makefile.am): Substitute it.
29224         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29225         <pthread.h>, when needed.
29226         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29227         from the library.
29228
29229 2010-05-31  Bruno Haible  <bruno@clisp.org>
29230
29231         Avoid expanding two macros in the wrong order.
29232         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29233         gl_LIBUNISTRING if it is defined.
29234         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29235         autoconf >= 2.64.
29236         Reported by Ludovic Courtès <ludo@gnu.org>.
29237
29238 2010-05-27  Jim Meyering  <meyering@redhat.com>
29239
29240         maint.mk: also prohibit "#undef" of always-defined symbols
29241         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29242         Allow more than one space before the symbol name.
29243         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29244         the regexp uses alternation.
29245
29246 2010-05-26  Eric Blake  <eblake@redhat.com>
29247
29248         maint.mk: avoid echo -e
29249         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29250         Convert all uses of echo -* to printf.
29251         Reported by Matthias Bolte.
29252
29253 2010-05-25  Bruno Haible  <bruno@clisp.org>
29254
29255         Update to GNU gettext 0.18, part 2.
29256         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29257         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29258
29259 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29260
29261         Add missing include in test-pwrite.c.
29262         * tests/test-pwrite.c: Include string.h, for strcmp.
29263
29264 2010-05-24  Bruno Haible  <bruno@clisp.org>
29265
29266         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29267
29268 2010-05-24  Bruno Haible  <bruno@clisp.org>
29269
29270         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29271         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29272         iconveh_error argument.
29273         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29274         U_STRCONV_TO_LOCALE.
29275         * lib/unistr/u16-strcoll.c: Likewise.
29276         * lib/unistr/u32-strcoll.c: Likewise.
29277         * modules/unistr/u8-strcoll (Depends-on): Add
29278         uniconv/u8-strconv-to-enc, localcharset. Remove
29279         uniconv/u8-strconv-to-locale.
29280         (configure.ac): Bump version number.
29281         * modules/unistr/u16-strcoll (Depends-on): Add
29282         uniconv/u16-strconv-to-enc, localcharset. Remove
29283         uniconv/u16-strconv-to-locale.
29284         (configure.ac): Bump version number.
29285         * modules/unistr/u32-strcoll (Depends-on): Add
29286         uniconv/u32-strconv-to-enc, localcharset. Remove
29287         uniconv/u32-strconv-to-locale.
29288         (configure.ac): Bump version number.
29289
29290 2010-05-24  Bruno Haible  <bruno@clisp.org>
29291
29292         Avoid a test failure on NetBSD 5.0.
29293         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29294         an iconv() bug.
29295
29296 2010-05-24  Bruno Haible  <bruno@clisp.org>
29297
29298         Adjust #include directive style.
29299         * modules/regex (Includes): Recommend to write <regex.h>.
29300
29301 2010-05-24  Bruno Haible  <bruno@clisp.org>
29302
29303         regex: Don't require alloca.
29304         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29305         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29306         only inside if (0).
29307
29308 2010-05-23  Jim Meyering  <meyering@redhat.com>
29309
29310         test-renameat.c: include <sys/stat.h>
29311         * tests/test-renameat.c: Include <sys/stat.h>; required for
29312         definition of S_IS* macros.
29313
29314 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29315
29316         Update maintainer documentation for 'relocatable-prog' module.
29317         * doc/relocatable-maint.texi: Update.
29318         Comments by Bruno Haible.
29319
29320 2010-05-23  Bruno Haible  <bruno@clisp.org>
29321
29322         git-merge-changelog: Enable --split-merged-entry by default.
29323         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29324         (usage): Don't mention this option any more.
29325         Reported by Ralf Wildenhues.
29326
29327 2010-05-23  Jim Meyering  <meyering@redhat.com>
29328
29329         test-pwrite: do not leave behind a test file named "out"
29330         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29331         The trivial-looking use of init.sh is really necessary.
29332         It ensures that the temporary file, "out", is created in
29333         a temporary directory, and removed upon termination.
29334         * tests/test-pwrite.sh: Re-add file.
29335         * modules/pwrite-tests: Reference it.
29336
29337 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29338
29339         Fix output redirection buglet in init.sh.
29340         * tests/init.sh: Fix redirection of stderr.
29341
29342 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29343
29344         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29345
29346 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29347
29348         * modules/valgrind-tests: New file.
29349         * m4/valgrind-tests.m4: New file.
29350         * doc/valgrind-tests.texi: New file.
29351         * doc/gnulib.texi (Running self-tests under valgrind): New
29352         section.
29353
29354 2010-05-19  Bruno Haible  <bruno@clisp.org>
29355
29356         Clean up dead code in recent commit.
29357         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29358         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29359         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29360         Suggested by Paolo Bonzini.
29361
29362 2010-05-19  Bruno Haible  <bruno@clisp.org>
29363
29364         Avoid valgrind error reports from libunistring.
29365         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29366         * modules/libunistring (Files): Add it.
29367         * modules/libunistring-optional (Files): Likewise.
29368
29369 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29370             Bruno Haible  <bruno@clisp.org>
29371
29372         New module 'libunistring-optional'.
29373         * modules/libunistring-optional: New file.
29374         * m4/libunistring-base.m4: New file.
29375         * m4/libunistring-optional.m4: New file.
29376         * lib/unicase.in.h: Renamed from lib/unicase.h.
29377         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29378         * lib/unictype.in.h: Renamed from lib/unictype.h.
29379         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29380         * lib/uniname.in.h: Renamed from lib/uniname.h.
29381         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29382         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29383         * lib/unistr.in.h: Renamed from lib/unistr.h.
29384         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29385         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29386         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29387         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29388         gl_LIBUNISTRING. If the library was found, determine the installed
29389         version and set LIBUNISTRING_VERSION.
29390         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29391         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29392         handle a configuration option --with-included-libunistring.
29393         * modules/libunistring (Files): Add m4/absolute-header.m4.
29394         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29395         Add m4/libunistring-base.m4.
29396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29397         (Makefile.am): Build unicase.h from unicase.in.h.
29398         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29399         Add m4/libunistring-base.m4.
29400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29401         (Makefile.am): Build uniconv.h from uniconv.in.h.
29402         * modules/unictype/base (Files): Use unictype.in.h instead of
29403         unictype.h. Add m4/libunistring-base.m4.
29404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29405         (Makefile.am): Build unictype.h from unictype.in.h.
29406         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29407         Add m4/libunistring-base.m4.
29408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29409         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29410         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29411         Add m4/libunistring-base.m4.
29412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29413         (Makefile.am): Build uniname.h from uniname.in.h.
29414         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29415         Add m4/libunistring-base.m4.
29416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29417         (Makefile.am): Build uninorm.h from uninorm.in.h.
29418         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29419         unistdio.h. Add m4/libunistring-base.m4.
29420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29421         (Makefile.am): Build unistdio.h from unistdio.in.h.
29422         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29423         Add m4/libunistring-base.m4.
29424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29425         (Makefile.am): Build unistr.h from unistr.in.h.
29426         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29427         Add m4/libunistring-base.m4.
29428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29429         (Makefile.am): Build unitypes.h from unitypes.in.h.
29430         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29431         Add m4/libunistring-base.m4.
29432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29433         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29434         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29435         uniwidth.h. Add m4/libunistring-base.m4.
29436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29437         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29438         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29439         instead of augmenting lib_SOURCES.
29440         * modules/unicase/empty-suffix-context: Likewise.
29441         * modules/unicase/locale-language: Likewise.
29442         * modules/unicase/tolower: Likewise.
29443         * modules/unicase/totitle: Likewise.
29444         * modules/unicase/toupper: Likewise.
29445         * modules/unicase/u8-casecmp: Likewise.
29446         * modules/unicase/u8-casecoll: Likewise.
29447         * modules/unicase/u8-casefold: Likewise.
29448         * modules/unicase/u8-casexfrm: Likewise.
29449         * modules/unicase/u8-ct-casefold: Likewise.
29450         * modules/unicase/u8-ct-tolower: Likewise.
29451         * modules/unicase/u8-ct-totitle: Likewise.
29452         * modules/unicase/u8-ct-toupper: Likewise.
29453         * modules/unicase/u8-is-cased: Likewise.
29454         * modules/unicase/u8-is-casefolded: Likewise.
29455         * modules/unicase/u8-is-lowercase: Likewise.
29456         * modules/unicase/u8-is-titlecase: Likewise.
29457         * modules/unicase/u8-is-uppercase: Likewise.
29458         * modules/unicase/u8-prefix-context: Likewise.
29459         * modules/unicase/u8-suffix-context: Likewise.
29460         * modules/unicase/u8-tolower: Likewise.
29461         * modules/unicase/u8-totitle: Likewise.
29462         * modules/unicase/u8-toupper: Likewise.
29463         * modules/unicase/u16-casecmp: Likewise.
29464         * modules/unicase/u16-casecoll: Likewise.
29465         * modules/unicase/u16-casefold: Likewise.
29466         * modules/unicase/u16-casexfrm: Likewise.
29467         * modules/unicase/u16-ct-casefold: Likewise.
29468         * modules/unicase/u16-ct-tolower: Likewise.
29469         * modules/unicase/u16-ct-totitle: Likewise.
29470         * modules/unicase/u16-ct-toupper: Likewise.
29471         * modules/unicase/u16-is-cased: Likewise.
29472         * modules/unicase/u16-is-casefolded: Likewise.
29473         * modules/unicase/u16-is-lowercase: Likewise.
29474         * modules/unicase/u16-is-titlecase: Likewise.
29475         * modules/unicase/u16-is-uppercase: Likewise.
29476         * modules/unicase/u16-prefix-context: Likewise.
29477         * modules/unicase/u16-suffix-context: Likewise.
29478         * modules/unicase/u16-tolower: Likewise.
29479         * modules/unicase/u16-totitle: Likewise.
29480         * modules/unicase/u16-toupper: Likewise.
29481         * modules/unicase/u32-casecmp: Likewise.
29482         * modules/unicase/u32-casecoll: Likewise.
29483         * modules/unicase/u32-casefold: Likewise.
29484         * modules/unicase/u32-casexfrm: Likewise.
29485         * modules/unicase/u32-ct-casefold: Likewise.
29486         * modules/unicase/u32-ct-tolower: Likewise.
29487         * modules/unicase/u32-ct-totitle: Likewise.
29488         * modules/unicase/u32-ct-toupper: Likewise.
29489         * modules/unicase/u32-is-cased: Likewise.
29490         * modules/unicase/u32-is-casefolded: Likewise.
29491         * modules/unicase/u32-is-lowercase: Likewise.
29492         * modules/unicase/u32-is-titlecase: Likewise.
29493         * modules/unicase/u32-is-uppercase: Likewise.
29494         * modules/unicase/u32-prefix-context: Likewise.
29495         * modules/unicase/u32-suffix-context: Likewise.
29496         * modules/unicase/u32-tolower: Likewise.
29497         * modules/unicase/u32-totitle: Likewise.
29498         * modules/unicase/u32-toupper: Likewise.
29499         * modules/unicase/ulc-casecmp: Likewise.
29500         * modules/unicase/ulc-casecoll: Likewise.
29501         * modules/unicase/ulc-casexfrm: Likewise.
29502         * modules/uniconv/u8-conv-from-enc: Likewise.
29503         * modules/uniconv/u8-conv-to-enc: Likewise.
29504         * modules/uniconv/u8-strconv-from-enc: Likewise.
29505         * modules/uniconv/u8-strconv-from-locale: Likewise.
29506         * modules/uniconv/u8-strconv-to-enc: Likewise.
29507         * modules/uniconv/u8-strconv-to-locale: Likewise.
29508         * modules/uniconv/u16-conv-from-enc: Likewise.
29509         * modules/uniconv/u16-conv-to-enc: Likewise.
29510         * modules/uniconv/u16-strconv-from-enc: Likewise.
29511         * modules/uniconv/u16-strconv-from-locale: Likewise.
29512         * modules/uniconv/u16-strconv-to-enc: Likewise.
29513         * modules/uniconv/u16-strconv-to-locale: Likewise.
29514         * modules/uniconv/u32-conv-from-enc: Likewise.
29515         * modules/uniconv/u32-conv-to-enc: Likewise.
29516         * modules/uniconv/u32-strconv-from-enc: Likewise.
29517         * modules/uniconv/u32-strconv-from-locale: Likewise.
29518         * modules/uniconv/u32-strconv-to-enc: Likewise.
29519         * modules/uniconv/u32-strconv-to-locale: Likewise.
29520         * modules/unictype/bidicategory-byname: Likewise.
29521         * modules/unictype/bidicategory-name: Likewise.
29522         * modules/unictype/bidicategory-of: Likewise.
29523         * modules/unictype/bidicategory-test: Likewise.
29524         * modules/unictype/block-list: Likewise.
29525         * modules/unictype/block-test: Likewise.
29526         * modules/unictype/category-C: Likewise.
29527         * modules/unictype/category-Cc: Likewise.
29528         * modules/unictype/category-Cf: Likewise.
29529         * modules/unictype/category-Cn: Likewise.
29530         * modules/unictype/category-Co: Likewise.
29531         * modules/unictype/category-Cs: Likewise.
29532         * modules/unictype/category-L: Likewise.
29533         * modules/unictype/category-Ll: Likewise.
29534         * modules/unictype/category-Lm: Likewise.
29535         * modules/unictype/category-Lo: Likewise.
29536         * modules/unictype/category-Lt: Likewise.
29537         * modules/unictype/category-Lu: Likewise.
29538         * modules/unictype/category-M: Likewise.
29539         * modules/unictype/category-Mc: Likewise.
29540         * modules/unictype/category-Me: Likewise.
29541         * modules/unictype/category-Mn: Likewise.
29542         * modules/unictype/category-N: Likewise.
29543         * modules/unictype/category-Nd: Likewise.
29544         * modules/unictype/category-Nl: Likewise.
29545         * modules/unictype/category-No: Likewise.
29546         * modules/unictype/category-P: Likewise.
29547         * modules/unictype/category-Pc: Likewise.
29548         * modules/unictype/category-Pd: Likewise.
29549         * modules/unictype/category-Pe: Likewise.
29550         * modules/unictype/category-Pf: Likewise.
29551         * modules/unictype/category-Pi: Likewise.
29552         * modules/unictype/category-Po: Likewise.
29553         * modules/unictype/category-Ps: Likewise.
29554         * modules/unictype/category-S: Likewise.
29555         * modules/unictype/category-Sc: Likewise.
29556         * modules/unictype/category-Sk: Likewise.
29557         * modules/unictype/category-Sm: Likewise.
29558         * modules/unictype/category-So: Likewise.
29559         * modules/unictype/category-Z: Likewise.
29560         * modules/unictype/category-Zl: Likewise.
29561         * modules/unictype/category-Zp: Likewise.
29562         * modules/unictype/category-Zs: Likewise.
29563         * modules/unictype/category-and: Likewise.
29564         * modules/unictype/category-and-not: Likewise.
29565         * modules/unictype/category-byname: Likewise.
29566         * modules/unictype/category-name: Likewise.
29567         * modules/unictype/category-none: Likewise.
29568         * modules/unictype/category-of: Likewise.
29569         * modules/unictype/category-or: Likewise.
29570         * modules/unictype/category-test: Likewise.
29571         * modules/unictype/combining-class: Likewise.
29572         * modules/unictype/ctype-alnum: Likewise.
29573         * modules/unictype/ctype-alpha: Likewise.
29574         * modules/unictype/ctype-blank: Likewise.
29575         * modules/unictype/ctype-cntrl: Likewise.
29576         * modules/unictype/ctype-digit: Likewise.
29577         * modules/unictype/ctype-graph: Likewise.
29578         * modules/unictype/ctype-lower: Likewise.
29579         * modules/unictype/ctype-print: Likewise.
29580         * modules/unictype/ctype-punct: Likewise.
29581         * modules/unictype/ctype-space: Likewise.
29582         * modules/unictype/ctype-upper: Likewise.
29583         * modules/unictype/ctype-xdigit: Likewise.
29584         * modules/unictype/decimal-digit: Likewise.
29585         * modules/unictype/digit: Likewise.
29586         * modules/unictype/mirror: Likewise.
29587         * modules/unictype/numeric: Likewise.
29588         * modules/unictype/property-alphabetic: Likewise.
29589         * modules/unictype/property-ascii-hex-digit: Likewise.
29590         * modules/unictype/property-bidi-arabic-digit: Likewise.
29591         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29592         * modules/unictype/property-bidi-block-separator: Likewise.
29593         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29594         * modules/unictype/property-bidi-common-separator: Likewise.
29595         * modules/unictype/property-bidi-control: Likewise.
29596         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29597         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29598         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29599         * modules/unictype/property-bidi-european-digit: Likewise.
29600         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29601         * modules/unictype/property-bidi-left-to-right: Likewise.
29602         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29603         * modules/unictype/property-bidi-other-neutral: Likewise.
29604         * modules/unictype/property-bidi-pdf: Likewise.
29605         * modules/unictype/property-bidi-segment-separator: Likewise.
29606         * modules/unictype/property-bidi-whitespace: Likewise.
29607         * modules/unictype/property-byname: Likewise.
29608         * modules/unictype/property-combining: Likewise.
29609         * modules/unictype/property-composite: Likewise.
29610         * modules/unictype/property-currency-symbol: Likewise.
29611         * modules/unictype/property-dash: Likewise.
29612         * modules/unictype/property-decimal-digit: Likewise.
29613         * modules/unictype/property-default-ignorable-code-point: Likewise.
29614         * modules/unictype/property-deprecated: Likewise.
29615         * modules/unictype/property-diacritic: Likewise.
29616         * modules/unictype/property-extender: Likewise.
29617         * modules/unictype/property-format-control: Likewise.
29618         * modules/unictype/property-grapheme-base: Likewise.
29619         * modules/unictype/property-grapheme-extend: Likewise.
29620         * modules/unictype/property-grapheme-link: Likewise.
29621         * modules/unictype/property-hex-digit: Likewise.
29622         * modules/unictype/property-hyphen: Likewise.
29623         * modules/unictype/property-id-continue: Likewise.
29624         * modules/unictype/property-id-start: Likewise.
29625         * modules/unictype/property-ideographic: Likewise.
29626         * modules/unictype/property-ids-binary-operator: Likewise.
29627         * modules/unictype/property-ids-trinary-operator: Likewise.
29628         * modules/unictype/property-ignorable-control: Likewise.
29629         * modules/unictype/property-iso-control: Likewise.
29630         * modules/unictype/property-join-control: Likewise.
29631         * modules/unictype/property-left-of-pair: Likewise.
29632         * modules/unictype/property-line-separator: Likewise.
29633         * modules/unictype/property-logical-order-exception: Likewise.
29634         * modules/unictype/property-lowercase: Likewise.
29635         * modules/unictype/property-math: Likewise.
29636         * modules/unictype/property-non-break: Likewise.
29637         * modules/unictype/property-not-a-character: Likewise.
29638         * modules/unictype/property-numeric: Likewise.
29639         * modules/unictype/property-other-alphabetic: Likewise.
29640         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29641         * modules/unictype/property-other-grapheme-extend: Likewise.
29642         * modules/unictype/property-other-id-continue: Likewise.
29643         * modules/unictype/property-other-id-start: Likewise.
29644         * modules/unictype/property-other-lowercase: Likewise.
29645         * modules/unictype/property-other-math: Likewise.
29646         * modules/unictype/property-other-uppercase: Likewise.
29647         * modules/unictype/property-paired-punctuation: Likewise.
29648         * modules/unictype/property-paragraph-separator: Likewise.
29649         * modules/unictype/property-pattern-syntax: Likewise.
29650         * modules/unictype/property-pattern-white-space: Likewise.
29651         * modules/unictype/property-private-use: Likewise.
29652         * modules/unictype/property-punctuation: Likewise.
29653         * modules/unictype/property-quotation-mark: Likewise.
29654         * modules/unictype/property-radical: Likewise.
29655         * modules/unictype/property-sentence-terminal: Likewise.
29656         * modules/unictype/property-soft-dotted: Likewise.
29657         * modules/unictype/property-space: Likewise.
29658         * modules/unictype/property-terminal-punctuation: Likewise.
29659         * modules/unictype/property-test: Likewise.
29660         * modules/unictype/property-titlecase: Likewise.
29661         * modules/unictype/property-unassigned-code-value: Likewise.
29662         * modules/unictype/property-unified-ideograph: Likewise.
29663         * modules/unictype/property-uppercase: Likewise.
29664         * modules/unictype/property-variation-selector: Likewise.
29665         * modules/unictype/property-white-space: Likewise.
29666         * modules/unictype/property-xid-continue: Likewise.
29667         * modules/unictype/property-xid-start: Likewise.
29668         * modules/unictype/property-zero-width: Likewise.
29669         * modules/unictype/scripts: Likewise.
29670         * modules/unictype/syntax-c-ident: Likewise.
29671         * modules/unictype/syntax-c-whitespace: Likewise.
29672         * modules/unictype/syntax-java-ident: Likewise.
29673         * modules/unictype/syntax-java-whitespace: Likewise.
29674         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29675         * modules/unilbrk/u8-width-linebreaks: Likewise.
29676         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29677         * modules/unilbrk/u16-width-linebreaks: Likewise.
29678         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29679         * modules/unilbrk/u32-width-linebreaks: Likewise.
29680         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29681         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29682         * modules/uniname/uniname: Likewise.
29683         * modules/uninorm/canonical-decomposition: Likewise.
29684         * modules/uninorm/composition: Likewise.
29685         * modules/uninorm/decomposing-form: Likewise.
29686         * modules/uninorm/decomposition: Likewise.
29687         * modules/uninorm/filter: Likewise.
29688         * modules/uninorm/nfc: Likewise.
29689         * modules/uninorm/nfd: Likewise.
29690         * modules/uninorm/nfkc: Likewise.
29691         * modules/uninorm/nfkd: Likewise.
29692         * modules/uninorm/u8-normalize: Likewise.
29693         * modules/uninorm/u8-normcmp: Likewise.
29694         * modules/uninorm/u8-normcoll: Likewise.
29695         * modules/uninorm/u8-normxfrm: Likewise.
29696         * modules/uninorm/u16-normalize: Likewise.
29697         * modules/uninorm/u16-normcmp: Likewise.
29698         * modules/uninorm/u16-normcoll: Likewise.
29699         * modules/uninorm/u16-normxfrm: Likewise.
29700         * modules/uninorm/u32-normalize: Likewise.
29701         * modules/uninorm/u32-normcmp: Likewise.
29702         * modules/uninorm/u32-normcoll: Likewise.
29703         * modules/uninorm/u32-normxfrm: Likewise.
29704         * modules/unistdio/u8-asnprintf: Likewise.
29705         * modules/unistdio/u8-asprintf: Likewise.
29706         * modules/unistdio/u8-snprintf: Likewise.
29707         * modules/unistdio/u8-sprintf: Likewise.
29708         * modules/unistdio/u8-u8-asnprintf: Likewise.
29709         * modules/unistdio/u8-u8-asprintf: Likewise.
29710         * modules/unistdio/u8-u8-snprintf: Likewise.
29711         * modules/unistdio/u8-u8-sprintf: Likewise.
29712         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29713         * modules/unistdio/u8-u8-vasprintf: Likewise.
29714         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29715         * modules/unistdio/u8-u8-vsprintf: Likewise.
29716         * modules/unistdio/u8-vasnprintf: Likewise.
29717         * modules/unistdio/u8-vasprintf: Likewise.
29718         * modules/unistdio/u8-vsnprintf: Likewise.
29719         * modules/unistdio/u8-vsprintf: Likewise.
29720         * modules/unistdio/u16-asnprintf: Likewise.
29721         * modules/unistdio/u16-asprintf: Likewise.
29722         * modules/unistdio/u16-snprintf: Likewise.
29723         * modules/unistdio/u16-sprintf: Likewise.
29724         * modules/unistdio/u16-u16-asnprintf: Likewise.
29725         * modules/unistdio/u16-u16-asprintf: Likewise.
29726         * modules/unistdio/u16-u16-snprintf: Likewise.
29727         * modules/unistdio/u16-u16-sprintf: Likewise.
29728         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29729         * modules/unistdio/u16-u16-vasprintf: Likewise.
29730         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29731         * modules/unistdio/u16-u16-vsprintf: Likewise.
29732         * modules/unistdio/u16-vasnprintf: Likewise.
29733         * modules/unistdio/u16-vasprintf: Likewise.
29734         * modules/unistdio/u16-vsnprintf: Likewise.
29735         * modules/unistdio/u16-vsprintf: Likewise.
29736         * modules/unistdio/u32-asnprintf: Likewise.
29737         * modules/unistdio/u32-asprintf: Likewise.
29738         * modules/unistdio/u32-snprintf: Likewise.
29739         * modules/unistdio/u32-sprintf: Likewise.
29740         * modules/unistdio/u32-u32-asnprintf: Likewise.
29741         * modules/unistdio/u32-u32-asprintf: Likewise.
29742         * modules/unistdio/u32-u32-snprintf: Likewise.
29743         * modules/unistdio/u32-u32-sprintf: Likewise.
29744         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29745         * modules/unistdio/u32-u32-vasprintf: Likewise.
29746         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29747         * modules/unistdio/u32-u32-vsprintf: Likewise.
29748         * modules/unistdio/u32-vasnprintf: Likewise.
29749         * modules/unistdio/u32-vasprintf: Likewise.
29750         * modules/unistdio/u32-vsnprintf: Likewise.
29751         * modules/unistdio/u32-vsprintf: Likewise.
29752         * modules/unistdio/ulc-asnprintf: Likewise.
29753         * modules/unistdio/ulc-asprintf: Likewise.
29754         * modules/unistdio/ulc-fprintf: Likewise.
29755         * modules/unistdio/ulc-snprintf: Likewise.
29756         * modules/unistdio/ulc-sprintf: Likewise.
29757         * modules/unistdio/ulc-vasnprintf: Likewise.
29758         * modules/unistdio/ulc-vasprintf: Likewise.
29759         * modules/unistdio/ulc-vfprintf: Likewise.
29760         * modules/unistdio/ulc-vsnprintf: Likewise.
29761         * modules/unistdio/ulc-vsprintf: Likewise.
29762         * modules/unistr/u8-check: Likewise.
29763         * modules/unistr/u8-chr: Likewise.
29764         * modules/unistr/u8-cmp: Likewise.
29765         * modules/unistr/u8-cmp2: Likewise.
29766         * modules/unistr/u8-cpy: Likewise.
29767         * modules/unistr/u8-cpy-alloc: Likewise.
29768         * modules/unistr/u8-endswith: Likewise.
29769         * modules/unistr/u8-mblen: Likewise.
29770         * modules/unistr/u8-mbsnlen: Likewise.
29771         * modules/unistr/u8-mbtouc: Likewise.
29772         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29773         * modules/unistr/u8-mbtoucr: Likewise.
29774         * modules/unistr/u8-move: Likewise.
29775         * modules/unistr/u8-next: Likewise.
29776         * modules/unistr/u8-prev: Likewise.
29777         * modules/unistr/u8-set: Likewise.
29778         * modules/unistr/u8-startswith: Likewise.
29779         * modules/unistr/u8-stpcpy: Likewise.
29780         * modules/unistr/u8-stpncpy: Likewise.
29781         * modules/unistr/u8-strcat: Likewise.
29782         * modules/unistr/u8-strchr: Likewise.
29783         * modules/unistr/u8-strcmp: Likewise.
29784         * modules/unistr/u8-strcoll: Likewise.
29785         * modules/unistr/u8-strcpy: Likewise.
29786         * modules/unistr/u8-strcspn: Likewise.
29787         * modules/unistr/u8-strdup: Likewise.
29788         * modules/unistr/u8-strlen: Likewise.
29789         * modules/unistr/u8-strmblen: Likewise.
29790         * modules/unistr/u8-strmbtouc: Likewise.
29791         * modules/unistr/u8-strncat: Likewise.
29792         * modules/unistr/u8-strncmp: Likewise.
29793         * modules/unistr/u8-strncpy: Likewise.
29794         * modules/unistr/u8-strnlen: Likewise.
29795         * modules/unistr/u8-strpbrk: Likewise.
29796         * modules/unistr/u8-strrchr: Likewise.
29797         * modules/unistr/u8-strspn: Likewise.
29798         * modules/unistr/u8-strstr: Likewise.
29799         * modules/unistr/u8-strtok: Likewise.
29800         * modules/unistr/u8-to-u16: Likewise.
29801         * modules/unistr/u8-to-u32: Likewise.
29802         * modules/unistr/u8-uctomb: Likewise.
29803         * modules/unistr/u16-check: Likewise.
29804         * modules/unistr/u16-chr: Likewise.
29805         * modules/unistr/u16-cmp: Likewise.
29806         * modules/unistr/u16-cmp2: Likewise.
29807         * modules/unistr/u16-cpy: Likewise.
29808         * modules/unistr/u16-cpy-alloc: Likewise.
29809         * modules/unistr/u16-endswith: Likewise.
29810         * modules/unistr/u16-mblen: Likewise.
29811         * modules/unistr/u16-mbsnlen: Likewise.
29812         * modules/unistr/u16-mbtouc: Likewise.
29813         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29814         * modules/unistr/u16-mbtoucr: Likewise.
29815         * modules/unistr/u16-move: Likewise.
29816         * modules/unistr/u16-next: Likewise.
29817         * modules/unistr/u16-prev: Likewise.
29818         * modules/unistr/u16-set: Likewise.
29819         * modules/unistr/u16-startswith: Likewise.
29820         * modules/unistr/u16-stpcpy: Likewise.
29821         * modules/unistr/u16-stpncpy: Likewise.
29822         * modules/unistr/u16-strcat: Likewise.
29823         * modules/unistr/u16-strchr: Likewise.
29824         * modules/unistr/u16-strcmp: Likewise.
29825         * modules/unistr/u16-strcoll: Likewise.
29826         * modules/unistr/u16-strcpy: Likewise.
29827         * modules/unistr/u16-strcspn: Likewise.
29828         * modules/unistr/u16-strdup: Likewise.
29829         * modules/unistr/u16-strlen: Likewise.
29830         * modules/unistr/u16-strmblen: Likewise.
29831         * modules/unistr/u16-strmbtouc: Likewise.
29832         * modules/unistr/u16-strncat: Likewise.
29833         * modules/unistr/u16-strncmp: Likewise.
29834         * modules/unistr/u16-strncpy: Likewise.
29835         * modules/unistr/u16-strnlen: Likewise.
29836         * modules/unistr/u16-strpbrk: Likewise.
29837         * modules/unistr/u16-strrchr: Likewise.
29838         * modules/unistr/u16-strspn: Likewise.
29839         * modules/unistr/u16-strstr: Likewise.
29840         * modules/unistr/u16-strtok: Likewise.
29841         * modules/unistr/u16-to-u32: Likewise.
29842         * modules/unistr/u16-to-u8: Likewise.
29843         * modules/unistr/u16-uctomb: Likewise.
29844         * modules/unistr/u32-check: Likewise.
29845         * modules/unistr/u32-chr: Likewise.
29846         * modules/unistr/u32-cmp: Likewise.
29847         * modules/unistr/u32-cmp2: Likewise.
29848         * modules/unistr/u32-cpy: Likewise.
29849         * modules/unistr/u32-cpy-alloc: Likewise.
29850         * modules/unistr/u32-endswith: Likewise.
29851         * modules/unistr/u32-mblen: Likewise.
29852         * modules/unistr/u32-mbsnlen: Likewise.
29853         * modules/unistr/u32-mbtouc: Likewise.
29854         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29855         * modules/unistr/u32-mbtoucr: Likewise.
29856         * modules/unistr/u32-move: Likewise.
29857         * modules/unistr/u32-next: Likewise.
29858         * modules/unistr/u32-prev: Likewise.
29859         * modules/unistr/u32-set: Likewise.
29860         * modules/unistr/u32-startswith: Likewise.
29861         * modules/unistr/u32-stpcpy: Likewise.
29862         * modules/unistr/u32-stpncpy: Likewise.
29863         * modules/unistr/u32-strcat: Likewise.
29864         * modules/unistr/u32-strchr: Likewise.
29865         * modules/unistr/u32-strcmp: Likewise.
29866         * modules/unistr/u32-strcoll: Likewise.
29867         * modules/unistr/u32-strcpy: Likewise.
29868         * modules/unistr/u32-strcspn: Likewise.
29869         * modules/unistr/u32-strdup: Likewise.
29870         * modules/unistr/u32-strlen: Likewise.
29871         * modules/unistr/u32-strmblen: Likewise.
29872         * modules/unistr/u32-strmbtouc: Likewise.
29873         * modules/unistr/u32-strncat: Likewise.
29874         * modules/unistr/u32-strncmp: Likewise.
29875         * modules/unistr/u32-strncpy: Likewise.
29876         * modules/unistr/u32-strnlen: Likewise.
29877         * modules/unistr/u32-strpbrk: Likewise.
29878         * modules/unistr/u32-strrchr: Likewise.
29879         * modules/unistr/u32-strspn: Likewise.
29880         * modules/unistr/u32-strstr: Likewise.
29881         * modules/unistr/u32-strtok: Likewise.
29882         * modules/unistr/u32-to-u16: Likewise.
29883         * modules/unistr/u32-to-u8: Likewise.
29884         * modules/unistr/u32-uctomb: Likewise.
29885         * modules/uniwbrk/u8-wordbreaks: Likewise.
29886         * modules/uniwbrk/u16-wordbreaks: Likewise.
29887         * modules/uniwbrk/u32-wordbreaks: Likewise.
29888         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29889         * modules/uniwbrk/wordbreak-property: Likewise.
29890         * modules/uniwidth/u8-strwidth: Likewise.
29891         * modules/uniwidth/u8-width: Likewise.
29892         * modules/uniwidth/u16-strwidth: Likewise.
29893         * modules/uniwidth/u16-width: Likewise.
29894         * modules/uniwidth/u32-strwidth: Likewise.
29895         * modules/uniwidth/u32-width: Likewise.
29896         * modules/uniwidth/width: Likewise.
29897         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29898         with $(LIBUNISTRING).
29899         * modules/unicase/ignorable-tests: Likewise.
29900         * modules/unicase/locale-language-tests: Likewise.
29901         * modules/unicase/tolower-tests: Likewise.
29902         * modules/unicase/totitle-tests: Likewise.
29903         * modules/unicase/toupper-tests: Likewise.
29904         * modules/unicase/u8-casecmp-tests: Likewise.
29905         * modules/unicase/u8-casecoll-tests: Likewise.
29906         * modules/unicase/u8-casefold-tests: Likewise.
29907         * modules/unicase/u8-is-cased-tests: Likewise.
29908         * modules/unicase/u8-is-casefolded-tests: Likewise.
29909         * modules/unicase/u8-is-lowercase-tests: Likewise.
29910         * modules/unicase/u8-is-titlecase-tests: Likewise.
29911         * modules/unicase/u8-is-uppercase-tests: Likewise.
29912         * modules/unicase/u8-tolower-tests: Likewise.
29913         * modules/unicase/u8-totitle-tests: Likewise.
29914         * modules/unicase/u8-toupper-tests: Likewise.
29915         * modules/unicase/u16-casecmp-tests: Likewise.
29916         * modules/unicase/u16-casecoll-tests: Likewise.
29917         * modules/unicase/u16-casefold-tests: Likewise.
29918         * modules/unicase/u16-is-cased-tests: Likewise.
29919         * modules/unicase/u16-is-casefolded-tests: Likewise.
29920         * modules/unicase/u16-is-lowercase-tests: Likewise.
29921         * modules/unicase/u16-is-titlecase-tests: Likewise.
29922         * modules/unicase/u16-is-uppercase-tests: Likewise.
29923         * modules/unicase/u16-tolower-tests: Likewise.
29924         * modules/unicase/u16-totitle-tests: Likewise.
29925         * modules/unicase/u16-toupper-tests: Likewise.
29926         * modules/unicase/u32-casecmp-tests: Likewise.
29927         * modules/unicase/u32-casecoll-tests: Likewise.
29928         * modules/unicase/u32-casefold-tests: Likewise.
29929         * modules/unicase/u32-is-cased-tests: Likewise.
29930         * modules/unicase/u32-is-casefolded-tests: Likewise.
29931         * modules/unicase/u32-is-lowercase-tests: Likewise.
29932         * modules/unicase/u32-is-titlecase-tests: Likewise.
29933         * modules/unicase/u32-is-uppercase-tests: Likewise.
29934         * modules/unicase/u32-tolower-tests: Likewise.
29935         * modules/unicase/u32-totitle-tests: Likewise.
29936         * modules/unicase/u32-toupper-tests: Likewise.
29937         * modules/unicase/ulc-casecmp-tests: Likewise.
29938         * modules/unicase/ulc-casecoll-tests: Likewise.
29939         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29940         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29941         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29942         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29943         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29944         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29945         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29946         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29947         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29948         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29949         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29950         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29951         * modules/unictype/bidicategory-byname-tests: Likewise.
29952         * modules/unictype/bidicategory-name-tests: Likewise.
29953         * modules/unictype/bidicategory-of-tests: Likewise.
29954         * modules/unictype/bidicategory-test-tests: Likewise.
29955         * modules/unictype/block-list-tests: Likewise.
29956         * modules/unictype/block-of-tests: Likewise.
29957         * modules/unictype/block-test-tests: Likewise.
29958         * modules/unictype/category-C-tests: Likewise.
29959         * modules/unictype/category-Cc-tests: Likewise.
29960         * modules/unictype/category-Cf-tests: Likewise.
29961         * modules/unictype/category-Cn-tests: Likewise.
29962         * modules/unictype/category-Co-tests: Likewise.
29963         * modules/unictype/category-Cs-tests: Likewise.
29964         * modules/unictype/category-L-tests: Likewise.
29965         * modules/unictype/category-Ll-tests: Likewise.
29966         * modules/unictype/category-Lm-tests: Likewise.
29967         * modules/unictype/category-Lo-tests: Likewise.
29968         * modules/unictype/category-Lt-tests: Likewise.
29969         * modules/unictype/category-Lu-tests: Likewise.
29970         * modules/unictype/category-M-tests: Likewise.
29971         * modules/unictype/category-Mc-tests: Likewise.
29972         * modules/unictype/category-Me-tests: Likewise.
29973         * modules/unictype/category-Mn-tests: Likewise.
29974         * modules/unictype/category-N-tests: Likewise.
29975         * modules/unictype/category-Nd-tests: Likewise.
29976         * modules/unictype/category-Nl-tests: Likewise.
29977         * modules/unictype/category-No-tests: Likewise.
29978         * modules/unictype/category-P-tests: Likewise.
29979         * modules/unictype/category-Pc-tests: Likewise.
29980         * modules/unictype/category-Pd-tests: Likewise.
29981         * modules/unictype/category-Pe-tests: Likewise.
29982         * modules/unictype/category-Pf-tests: Likewise.
29983         * modules/unictype/category-Pi-tests: Likewise.
29984         * modules/unictype/category-Po-tests: Likewise.
29985         * modules/unictype/category-Ps-tests: Likewise.
29986         * modules/unictype/category-S-tests: Likewise.
29987         * modules/unictype/category-Sc-tests: Likewise.
29988         * modules/unictype/category-Sk-tests: Likewise.
29989         * modules/unictype/category-Sm-tests: Likewise.
29990         * modules/unictype/category-So-tests: Likewise.
29991         * modules/unictype/category-Z-tests: Likewise.
29992         * modules/unictype/category-Zl-tests: Likewise.
29993         * modules/unictype/category-Zp-tests: Likewise.
29994         * modules/unictype/category-Zs-tests: Likewise.
29995         * modules/unictype/category-and-not-tests: Likewise.
29996         * modules/unictype/category-and-tests: Likewise.
29997         * modules/unictype/category-byname-tests: Likewise.
29998         * modules/unictype/category-name-tests: Likewise.
29999         * modules/unictype/category-none-tests: Likewise.
30000         * modules/unictype/category-of-tests: Likewise.
30001         * modules/unictype/category-or-tests: Likewise.
30002         * modules/unictype/category-test-withtable-tests: Likewise.
30003         * modules/unictype/combining-class-tests: Likewise.
30004         * modules/unictype/ctype-alnum-tests: Likewise.
30005         * modules/unictype/ctype-alpha-tests: Likewise.
30006         * modules/unictype/ctype-blank-tests: Likewise.
30007         * modules/unictype/ctype-cntrl-tests: Likewise.
30008         * modules/unictype/ctype-digit-tests: Likewise.
30009         * modules/unictype/ctype-graph-tests: Likewise.
30010         * modules/unictype/ctype-lower-tests: Likewise.
30011         * modules/unictype/ctype-print-tests: Likewise.
30012         * modules/unictype/ctype-punct-tests: Likewise.
30013         * modules/unictype/ctype-space-tests: Likewise.
30014         * modules/unictype/ctype-upper-tests: Likewise.
30015         * modules/unictype/ctype-xdigit-tests: Likewise.
30016         * modules/unictype/decimal-digit-tests: Likewise.
30017         * modules/unictype/digit-tests: Likewise.
30018         * modules/unictype/mirror-tests: Likewise.
30019         * modules/unictype/numeric-tests: Likewise.
30020         * modules/unictype/property-alphabetic-tests: Likewise.
30021         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30022         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30023         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30024         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30025         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30026         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30027         * modules/unictype/property-bidi-control-tests: Likewise.
30028         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30029         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30030         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30031         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30032         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30033         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30034         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30035         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30036         * modules/unictype/property-bidi-pdf-tests: Likewise.
30037         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30038         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30039         * modules/unictype/property-byname-tests: Likewise.
30040         * modules/unictype/property-combining-tests: Likewise.
30041         * modules/unictype/property-composite-tests: Likewise.
30042         * modules/unictype/property-currency-symbol-tests: Likewise.
30043         * modules/unictype/property-dash-tests: Likewise.
30044         * modules/unictype/property-decimal-digit-tests: Likewise.
30045         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30046         * modules/unictype/property-deprecated-tests: Likewise.
30047         * modules/unictype/property-diacritic-tests: Likewise.
30048         * modules/unictype/property-extender-tests: Likewise.
30049         * modules/unictype/property-format-control-tests: Likewise.
30050         * modules/unictype/property-grapheme-base-tests: Likewise.
30051         * modules/unictype/property-grapheme-extend-tests: Likewise.
30052         * modules/unictype/property-grapheme-link-tests: Likewise.
30053         * modules/unictype/property-hex-digit-tests: Likewise.
30054         * modules/unictype/property-hyphen-tests: Likewise.
30055         * modules/unictype/property-id-continue-tests: Likewise.
30056         * modules/unictype/property-id-start-tests: Likewise.
30057         * modules/unictype/property-ideographic-tests: Likewise.
30058         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30059         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30060         * modules/unictype/property-ignorable-control-tests: Likewise.
30061         * modules/unictype/property-iso-control-tests: Likewise.
30062         * modules/unictype/property-join-control-tests: Likewise.
30063         * modules/unictype/property-left-of-pair-tests: Likewise.
30064         * modules/unictype/property-line-separator-tests: Likewise.
30065         * modules/unictype/property-logical-order-exception-tests: Likewise.
30066         * modules/unictype/property-lowercase-tests: Likewise.
30067         * modules/unictype/property-math-tests: Likewise.
30068         * modules/unictype/property-non-break-tests: Likewise.
30069         * modules/unictype/property-not-a-character-tests: Likewise.
30070         * modules/unictype/property-numeric-tests: Likewise.
30071         * modules/unictype/property-other-alphabetic-tests: Likewise.
30072         * modules/unictype/property-other-default-ignorable-code-point-tests:
30073         Likewise.
30074         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30075         * modules/unictype/property-other-id-continue-tests: Likewise.
30076         * modules/unictype/property-other-id-start-tests: Likewise.
30077         * modules/unictype/property-other-lowercase-tests: Likewise.
30078         * modules/unictype/property-other-math-tests: Likewise.
30079         * modules/unictype/property-other-uppercase-tests: Likewise.
30080         * modules/unictype/property-paired-punctuation-tests: Likewise.
30081         * modules/unictype/property-paragraph-separator-tests: Likewise.
30082         * modules/unictype/property-pattern-syntax-tests: Likewise.
30083         * modules/unictype/property-pattern-white-space-tests: Likewise.
30084         * modules/unictype/property-private-use-tests: Likewise.
30085         * modules/unictype/property-punctuation-tests: Likewise.
30086         * modules/unictype/property-quotation-mark-tests: Likewise.
30087         * modules/unictype/property-radical-tests: Likewise.
30088         * modules/unictype/property-sentence-terminal-tests: Likewise.
30089         * modules/unictype/property-soft-dotted-tests: Likewise.
30090         * modules/unictype/property-space-tests: Likewise.
30091         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30092         * modules/unictype/property-test-tests: Likewise.
30093         * modules/unictype/property-titlecase-tests: Likewise.
30094         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30095         * modules/unictype/property-unified-ideograph-tests: Likewise.
30096         * modules/unictype/property-uppercase-tests: Likewise.
30097         * modules/unictype/property-variation-selector-tests: Likewise.
30098         * modules/unictype/property-white-space-tests: Likewise.
30099         * modules/unictype/property-xid-continue-tests: Likewise.
30100         * modules/unictype/property-xid-start-tests: Likewise.
30101         * modules/unictype/property-zero-width-tests: Likewise.
30102         * modules/unictype/scripts-tests: Likewise.
30103         * modules/unictype/syntax-c-ident-tests: Likewise.
30104         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30105         * modules/unictype/syntax-java-ident-tests: Likewise.
30106         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30107         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30108         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30109         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30110         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30111         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30112         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30113         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30114         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30115         * modules/uniname/uniname-tests: Likewise.
30116         * modules/uninorm/canonical-decomposition-tests: Likewise.
30117         * modules/uninorm/compat-decomposition-tests: Likewise.
30118         * modules/uninorm/composition-tests: Likewise.
30119         * modules/uninorm/decomposing-form-tests: Likewise.
30120         * modules/uninorm/decomposition-tests: Likewise.
30121         * modules/uninorm/filter-tests: Likewise.
30122         * modules/uninorm/nfc-tests: Likewise.
30123         * modules/uninorm/nfd-tests: Likewise.
30124         * modules/uninorm/nfkc-tests: Likewise.
30125         * modules/uninorm/nfkd-tests: Likewise.
30126         * modules/uninorm/u8-normcmp-tests: Likewise.
30127         * modules/uninorm/u8-normcoll-tests: Likewise.
30128         * modules/uninorm/u16-normcmp-tests: Likewise.
30129         * modules/uninorm/u16-normcoll-tests: Likewise.
30130         * modules/uninorm/u32-normcmp-tests: Likewise.
30131         * modules/uninorm/u32-normcoll-tests: Likewise.
30132         * modules/unistdio/u8-asnprintf-tests: Likewise.
30133         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30134         * modules/unistdio/u8-vasprintf-tests: Likewise.
30135         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30136         * modules/unistdio/u8-vsprintf-tests: Likewise.
30137         * modules/unistdio/u16-asnprintf-tests: Likewise.
30138         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30139         * modules/unistdio/u16-vasprintf-tests: Likewise.
30140         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30141         * modules/unistdio/u16-vsprintf-tests: Likewise.
30142         * modules/unistdio/u32-asnprintf-tests: Likewise.
30143         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30144         * modules/unistdio/u32-vasprintf-tests: Likewise.
30145         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30146         * modules/unistdio/u32-vsprintf-tests: Likewise.
30147         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30148         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30149         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30150         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30151         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30152         * modules/unistr/u8-check-tests: Likewise.
30153         * modules/unistr/u8-chr-tests: Likewise.
30154         * modules/unistr/u8-cmp-tests: Likewise.
30155         * modules/unistr/u8-cmp2-tests: Likewise.
30156         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30157         * modules/unistr/u8-cpy-tests: Likewise.
30158         * modules/unistr/u8-mblen-tests: Likewise.
30159         * modules/unistr/u8-mbsnlen-tests: Likewise.
30160         * modules/unistr/u8-mbtouc-tests: Likewise.
30161         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30162         * modules/unistr/u8-mbtoucr-tests: Likewise.
30163         * modules/unistr/u8-move-tests: Likewise.
30164         * modules/unistr/u8-next-tests: Likewise.
30165         * modules/unistr/u8-prev-tests: Likewise.
30166         * modules/unistr/u8-set-tests: Likewise.
30167         * modules/unistr/u8-stpcpy-tests: Likewise.
30168         * modules/unistr/u8-stpncpy-tests: Likewise.
30169         * modules/unistr/u8-strcat-tests: Likewise.
30170         * modules/unistr/u8-strcmp-tests: Likewise.
30171         * modules/unistr/u8-strcoll-tests: Likewise.
30172         * modules/unistr/u8-strcpy-tests: Likewise.
30173         * modules/unistr/u8-strdup-tests: Likewise.
30174         * modules/unistr/u8-strlen-tests: Likewise.
30175         * modules/unistr/u8-strmblen-tests: Likewise.
30176         * modules/unistr/u8-strmbtouc-tests: Likewise.
30177         * modules/unistr/u8-strncat-tests: Likewise.
30178         * modules/unistr/u8-strncmp-tests: Likewise.
30179         * modules/unistr/u8-strncpy-tests: Likewise.
30180         * modules/unistr/u8-strnlen-tests: Likewise.
30181         * modules/unistr/u8-to-u16-tests: Likewise.
30182         * modules/unistr/u8-to-u32-tests: Likewise.
30183         * modules/unistr/u8-uctomb-tests: Likewise.
30184         * modules/unistr/u16-check-tests: Likewise.
30185         * modules/unistr/u16-chr-tests: Likewise.
30186         * modules/unistr/u16-cmp-tests: Likewise.
30187         * modules/unistr/u16-cmp2-tests: Likewise.
30188         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30189         * modules/unistr/u16-cpy-tests: Likewise.
30190         * modules/unistr/u16-mblen-tests: Likewise.
30191         * modules/unistr/u16-mbsnlen-tests: Likewise.
30192         * modules/unistr/u16-mbtouc-tests: Likewise.
30193         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30194         * modules/unistr/u16-mbtoucr-tests: Likewise.
30195         * modules/unistr/u16-move-tests: Likewise.
30196         * modules/unistr/u16-next-tests: Likewise.
30197         * modules/unistr/u16-prev-tests: Likewise.
30198         * modules/unistr/u16-set-tests: Likewise.
30199         * modules/unistr/u16-stpcpy-tests: Likewise.
30200         * modules/unistr/u16-stpncpy-tests: Likewise.
30201         * modules/unistr/u16-strcat-tests: Likewise.
30202         * modules/unistr/u16-strcmp-tests: Likewise.
30203         * modules/unistr/u16-strcoll-tests: Likewise.
30204         * modules/unistr/u16-strcpy-tests: Likewise.
30205         * modules/unistr/u16-strdup-tests: Likewise.
30206         * modules/unistr/u16-strlen-tests: Likewise.
30207         * modules/unistr/u16-strmblen-tests: Likewise.
30208         * modules/unistr/u16-strmbtouc-tests: Likewise.
30209         * modules/unistr/u16-strncat-tests: Likewise.
30210         * modules/unistr/u16-strncmp-tests: Likewise.
30211         * modules/unistr/u16-strncpy-tests: Likewise.
30212         * modules/unistr/u16-strnlen-tests: Likewise.
30213         * modules/unistr/u16-to-u32-tests: Likewise.
30214         * modules/unistr/u16-to-u8-tests: Likewise.
30215         * modules/unistr/u16-uctomb-tests: Likewise.
30216         * modules/unistr/u32-check-tests: Likewise.
30217         * modules/unistr/u32-chr-tests: Likewise.
30218         * modules/unistr/u32-cmp-tests: Likewise.
30219         * modules/unistr/u32-cmp2-tests: Likewise.
30220         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30221         * modules/unistr/u32-cpy-tests: Likewise.
30222         * modules/unistr/u32-mblen-tests: Likewise.
30223         * modules/unistr/u32-mbsnlen-tests: Likewise.
30224         * modules/unistr/u32-mbtouc-tests: Likewise.
30225         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30226         * modules/unistr/u32-mbtoucr-tests: Likewise.
30227         * modules/unistr/u32-move-tests: Likewise.
30228         * modules/unistr/u32-next-tests: Likewise.
30229         * modules/unistr/u32-prev-tests: Likewise.
30230         * modules/unistr/u32-set-tests: Likewise.
30231         * modules/unistr/u32-stpcpy-tests: Likewise.
30232         * modules/unistr/u32-stpncpy-tests: Likewise.
30233         * modules/unistr/u32-strcat-tests: Likewise.
30234         * modules/unistr/u32-strcmp-tests: Likewise.
30235         * modules/unistr/u32-strcoll-tests: Likewise.
30236         * modules/unistr/u32-strcpy-tests: Likewise.
30237         * modules/unistr/u32-strdup-tests: Likewise.
30238         * modules/unistr/u32-strlen-tests: Likewise.
30239         * modules/unistr/u32-strmblen-tests: Likewise.
30240         * modules/unistr/u32-strmbtouc-tests: Likewise.
30241         * modules/unistr/u32-strncat-tests: Likewise.
30242         * modules/unistr/u32-strncmp-tests: Likewise.
30243         * modules/unistr/u32-strncpy-tests: Likewise.
30244         * modules/unistr/u32-strnlen-tests: Likewise.
30245         * modules/unistr/u32-to-u16-tests: Likewise.
30246         * modules/unistr/u32-to-u8-tests: Likewise.
30247         * modules/unistr/u32-uctomb-tests: Likewise.
30248         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30249         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30250         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30251         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30252         * modules/uniwidth/u8-strwidth-tests: Likewise.
30253         * modules/uniwidth/u8-width-tests: Likewise.
30254         * modules/uniwidth/u16-strwidth-tests: Likewise.
30255         * modules/uniwidth/u16-width-tests: Likewise.
30256         * modules/uniwidth/u32-strwidth-tests: Likewise.
30257         * modules/uniwidth/u32-width-tests: Likewise.
30258         * modules/uniwidth/width-tests: Likewise.
30259
30260 2010-05-18  Richard Jones  <rjones@redhat.com>
30261
30262         doc: users.txt: list hivex
30263         * users.txt: Add hivex.
30264
30265 2010-05-18  Richard Jones  <rjones@redhat.com>
30266
30267         doc: users.txt: list febootstrap
30268         * users.txt: Add febootstrap.
30269
30270 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30271
30272         bootstrap: fix an error when gnulib is not used as a git submodule
30273         * build-aux/bootstrap (gnulib_path): If its length is zero then
30274         assign "gnulib" to it.
30275         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30276
30277 2010-05-16  Bruno Haible  <bruno@clisp.org>
30278
30279         Avoid autoconf warnings about AM_ICONV.
30280         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30281         2.64.
30282
30283 2010-05-16  Bruno Haible  <bruno@clisp.org>
30284
30285         absolute-header: Make the macro usable in more situations.
30286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30287         from gl_ABSOLUTE_HEADER.
30288         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30289
30290 2010-05-16  James Youngman  <jay@gnu.org>
30291
30292         doc: update users.txt
30293         * users.txt: Add CSSC.
30294
30295 2010-05-16  Jim Meyering  <meyering@redhat.com>
30296
30297         init.sh: fix an error in the previous change; add more comments
30298         * tests/init.sh: Compare exit code in loop against 9, not 2.
30299         Patch by Bruno Haible.
30300         Make the two tests more similar by adding an empty "then" clause.
30301         Add comments.
30302
30303         init.sh: avoid unnecessary shell re-exec
30304         * tests/init.sh: Improve the re-exec-required check to first test the
30305         current shell.  If it passes the test, do not search for a shell that
30306         does pass, and do not re-exec.  This test is particularly contorted to
30307         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30308         of $(...) evokes a syntax error and causes immediate shell exit with
30309         status 2.  Bruno Haible reported that the re-exec made it impossible
30310         to single-step through any init.sh-using script.
30311
30312 2010-05-16  Bruno Haible  <bruno@clisp.org>
30313
30314         Fix collision between gnulib's and libintl's printf replacements.
30315         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30316         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30317         (printf): When using GNU C, map the __printf__ function to rpl_printf
30318         via __asm__. When not using GNU C, define rpl_printf instead of
30319         __printf__.
30320         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30321         commit.
30322         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30323         commit.
30324         * m4/asm-underscore.m4: New file.
30325         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30326         * modules/stdio (Files): Add m4/asm-underscore.m4.
30327         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30328         Reported by Ben Pfaff.
30329
30330 2010-05-16  Bruno Haible  <bruno@clisp.org>
30331
30332         verify: Avoid skipping the test on openSUSE 11.0.
30333         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30334
30335 2010-05-13  Bruno Haible  <bruno@clisp.org>
30336
30337         Avoid useless warnings from G++.
30338         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30339         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30340         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30341
30342 2010-05-11  Jim Meyering  <meyering@redhat.com>
30343
30344         maint.mk: tweak preceding change
30345         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30346         regexps tighter by anchoring at EOL, and make the new group "shy"
30347         for slightly decreased overhead.
30348
30349 2010-05-11  Eric Blake  <eblake@redhat.com>
30350
30351         maint.mk: gnulib doesn't guarantee NSIG
30352         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30353
30354 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30355
30356         test-pwrite.c: Remove unused variable declaration.
30357         * tests/test-pwrite.c (main): Remove read_buf declaration.
30358
30359         Remove useless test-pwrite.sh file.
30360         * tests/test-pwrite.sh: Delete file.
30361         * modules/pwrite-tests: Remove references.
30362         Reported by Bruno Haible.
30363
30364 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30365
30366         init.sh: fix a typo
30367         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30368
30369 2010-05-10  Jim Meyering  <meyering@redhat.com>
30370
30371         maint.mk: avoid using a temporary file in the always-defined-macros check
30372         * top/maint.mk (.re-defmac): Remove rule.
30373         (gl_trap_): Remove definition.
30374         (sc_prohibit_always-defined_macros): Rewrite not to create and
30375         depend on a temporary file.  Instead, depend on GNU grep's ability
30376         to read a list of regular expressions from stdin when given "-f -".
30377
30378 2010-05-09  Bruno Haible  <bruno@clisp.org>
30379
30380         Update to GNU gettext 0.18, part 1.
30381         * m4/gettext.m4: Update to GNU gettext 0.18.
30382         * m4/intl.m4: Likewise.
30383         * m4/po.m4: Likewise.
30384         * modules/gettext (Files): Add m4/fcntl-o.m4.
30385         (configure.ac): Require gettext infrastructure from version 0.18.
30386
30387 2010-05-09  Jim Meyering  <meyering@redhat.com>
30388
30389         init.sh: enable MALLOC_PERTURB_
30390         * tests/init.sh: Enable glibc's malloc-perturbing option.
30391
30392         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30393         With my recent change in init.sh from the two-line form:
30394             -#   : ${srcdir=.}
30395             -#   . "$srcdir/init.sh"; path_prepend_ .
30396             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30397         I noticed that using the one-line form would cause this test
30398         to fail with a false-positive, or to stop working altogether,
30399         depending on whether help-version changed or all the tests did.
30400         * top/maint.mk (_hv_regex): Remove this definition.
30401         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30402         (_hv_regex_strong): Use a stronger regex to check for conformance.
30403         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30404         Give a separate diagnostic for lack of conforming use.
30405
30406         maint.mk: prohibit definition of symbols defined by gnulib
30407         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30408         definition of symbols defined by gnulib.
30409
30410 2010-05-09  Bruno Haible  <bruno@clisp.org>
30411
30412         acl: Avoid test failure on Cygwin-hosted mingw.
30413         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30414
30415 2010-05-09  Bruno Haible  <bruno@clisp.org>
30416
30417         error: Use system's fcntl function.
30418         * lib/error.c (fcntl): Undefine.
30419
30420 2010-05-09  Jim Meyering  <meyering@redhat.com>
30421
30422         verify: adjust formatting to be more consistent
30423         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30424         argument-list '('s, and after one comma.
30425
30426 2010-05-09  Bruno Haible  <bruno@clisp.org>
30427
30428         error: More reliable output on mingw.
30429         * lib/error.c: Include <windows.h>.
30430         (is_open): New function.
30431         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30432         defined.
30433
30434 2010-05-09  Bruno Haible  <bruno@clisp.org>
30435
30436         vasnprintf: Fix syntax errors in libintl build on mingw.
30437         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30438         pad_ourselves and prec_ourselves after use.
30439
30440 2010-05-08  Bruno Haible  <bruno@clisp.org>
30441
30442         * lib/config.charset: Update comments for Cygwin 1.7.
30443         * lib/localcharset.c: Likewise.
30444
30445 2010-05-07  Jim Meyering  <meyering@redhat.com>
30446
30447         init.sh: improve comments
30448         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30449         . "${srcdir=.}/init.sh"; path_prepend_ .
30450         Add a note about path_prepend_ and the alternative of using
30451         TESTS_ENVIRONMENT.
30452
30453 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30454
30455         exclude: Unescape hashed patterns in wildcard mode.
30456         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30457         to the hash list.
30458         * tests/test-exclude8.sh: New test case.
30459         * modules/exclude-tests: Add new test.
30460
30461 2010-05-05  Eric Blake  <eblake@redhat.com>
30462
30463         verify: automate tests
30464         * modules/verify-tests: New module.
30465         * tests/test-verify.sh: New file.
30466         * tests/test-verify.c: Guard each negative test with a unique id.
30467         Also avoid warning about unused left hand of comma expressions.
30468
30469 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30470
30471         Further improvements to verify.h, suggested by Eric Blake.
30472         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30473         the GL_* versions, to avoid collision with OpenGL.
30474         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30475         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30476         than testing merely whether it's defined.
30477
30478         Modify verify.h to pacify gcc -Wredundant_decls.
30479         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30480         These use the prefix "GL_" since they're likely to be useful elsewhere.
30481         We may need to break them out into a different .h file.
30482         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30483         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30484         of verify_function__.
30485
30486 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30487
30488         Tests for module pwrite.
30489         * modules/pwrite-tests: New file.
30490         * tests/test-pwrite.sh: New file.
30491         * tests/test-pwrite.c: New file.
30492
30493         New module pwrite.
30494         * lib/unistd.in.h (pwrite): New declaration.
30495         * lib/pwrite.c: New file, from glibc with modifications.
30496         * m4/pwrite.m4: New file.
30497         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30498         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30499         REPLACE_PWRITE.
30500         * modules/pwrite: New file.
30501         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30502         REPLACE_PWRITE.
30503         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30504         * doc/posix-functions/pwrite.texi: Mention the new module.
30505
30506 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30507
30508         pread: Update documentation.
30509         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30510
30511 2010-05-04  Eric Blake  <eblake@redhat.com>
30512
30513         docs: update cygwin progress
30514         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30515         this bug.
30516         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30517         Added in cygwin 1.7.2.
30518         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30519         Likewise.
30520         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30521         Likewise.
30522         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30523         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30524         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30525         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30526         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30527         Mention nproc module.
30528         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30529         bug in cygwin 1.7.5 addition.
30530         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30531         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30532         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30533         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30534         1.7.5.
30535         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30536         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30537         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30538         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30539         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30540         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30541         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30542         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30543         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30544         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30545         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30546         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30547         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30548         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30549         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30550         Likewise.
30551         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30552         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30553         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30554         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30555         Likewise.
30556         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30557         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30558         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30559         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30560         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30561         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30562         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30563         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30564         Likewise.
30565         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30566         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30567         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30568         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30569         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30570         Likewise.
30571         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30572         Likewise.
30573         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30574         Likewise.
30575         * doc/glibc-functions/xdrrec_endofrecord.texi
30576         (xdrrec_endofrecord): Likewise.
30577         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30578         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30579         Likewise.
30580         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30581         Likewise.
30582
30583 2010-05-04  Jim Meyering  <meyering@redhat.com>
30584
30585         gendocs.sh: make its "-s FILE" option more useful
30586         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30587         $PACKAGE to reflect the probably-different basename of "FILE".
30588
30589 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30590
30591         bootstrap: don't ignore download_po_files failure
30592         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30593         failure.
30594
30595 2010-05-03  Jim Meyering  <meyering@redhat.com>
30596
30597         maint.mk: allow to pass options to gendocs.sh
30598         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30599         (gendocs_options_): New overridable variable.
30600
30601         gnu-web-doc-update: don't ignore configure or build failure
30602         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30603
30604         announce-gen: backslash-escape '@'s in --help output
30605         * build-aux/announce-gen: Fix syntax errors.
30606
30607         maint.mk, announce-gen: allow project-specific announcement mail headers
30608         * top/maint.mk (translation_project_): Define default.
30609         (announcement_Cc_, announcement_mail_headers_): Likewise.
30610         (announcement): Invoke announce-gen with new --mail-headers option.
30611         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30612
30613         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30614         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30615         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30616         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30617         line in the "err2" output file when running "make check" in verbose
30618         mode (i.e., with set -x enabled).
30619
30620 2010-05-03  Bruno Haible  <bruno@clisp.org>
30621
30622         wctob: Fix for weird platforms.
30623         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30624         argument value.
30625
30626 2010-05-03  Jim Meyering  <meyering@redhat.com>
30627
30628         maint.mk: prohibit unwarranted use of <strings.h>
30629         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30630         strings.h in a file that does not also use strcasecmp, strncasecmp,
30631         ffs or ffsll.
30632
30633         maint.mk: remove obsolete comments
30634         * top/maint.mk: Remove stale, commented-out rules.
30635
30636 2010-05-02  Bruno Haible  <bruno@clisp.org>
30637
30638         wcwidth: Declare also when it's aliased.
30639         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30640         macro.
30641
30642 2010-05-02  Bruno Haible  <bruno@clisp.org>
30643
30644         Fix regression from 2010-04-25.
30645         * gnulib-tool (func_modules_transitive_closure): Check the status of
30646         all modules, not only of the tests that are of the form foo-tests where
30647         foo is a module.
30648
30649 2010-05-02  Bruno Haible  <bruno@clisp.org>
30650
30651         wctob: Work around nasty Cygwin 1.7.2 bug.
30652         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30653         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30654
30655 2010-05-01  Bruno Haible  <bruno@clisp.org>
30656
30657         fpurge: Sharper test.
30658         * tests/test-fpurge.c (main): Add one more ftell check.
30659         * modules/fpurge-tests (Depends-on): Add ftell.
30660         Suggested by Eric Blake.
30661
30662 2010-05-01  Bruno Haible  <bruno@clisp.org>
30663
30664         ftello: Another test.
30665         * tests/test-ftello3.c: New file.
30666         * modules/ftello-tests (Files): Add it.
30667         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30668         MOSTLYCLEANFILES.
30669
30670         ftell: Another test.
30671         * tests/test-ftell3.c: New file.
30672         * modules/ftell-tests (Files): Add it.
30673         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30674         MOSTLYCLEANFILES.
30675
30676 2010-05-01  Bruno Haible  <bruno@clisp.org>
30677
30678         ftell, ftello: Work around Solaris bug.
30679         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30680         * lib/ftello.c: Include stdio-impl.h.
30681         (ftello): On Solaris, when _IOWRT is set, compute the result without
30682         looking at _IOREAD.
30683         * modules/ftello (Files): Add lib/stdio-impl.h.
30684         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30685         * doc/posix-functions/ftello.texi: Likewise.
30686         Reported by Eric Blake.
30687
30688 2010-05-01  Bruno Haible  <bruno@clisp.org>
30689
30690         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30691         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30692         the _IOWRT flag is also set.
30693
30694 2010-05-01  Bruno Haible  <bruno@clisp.org>
30695
30696         Fix doc about a HP-UX stdio bug.
30697         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30698         * doc/posix-functions/ftello.texi: Likewise.
30699
30700 2010-05-01  Bruno Haible  <bruno@clisp.org>
30701
30702         lseek test: Fix failure on Solaris.
30703         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30704         output.
30705
30706 2010-04-30  Jim Meyering  <meyering@redhat.com>
30707
30708         bootstrap: don't ignore failure to generate po*/Makevars
30709         * build-aux/bootstrap (with_gettext): Don't ignore failure
30710         to create po/Makevars or runtime-po/Makevars.
30711
30712 2010-04-29  Eric Blake  <eblake@redhat.com>
30713
30714         headers: relax license to LGPLv2+
30715         * modules/fcntl-h (License): Relax license.
30716         * modules/getopt-posix (License): Likewise.
30717         * modules/locale (License): Likewise.
30718         * modules/math (License): Likewise.
30719         * modules/pty (License): Likewise.
30720         * modules/sched (License): Likewise.
30721         * modules/search (License): Likewise.
30722         * modules/spawn (License): Likewise.
30723         * modules/stdarg (License): Likewise.
30724         * modules/sysexits (License): Likewise.
30725
30726 2010-04-29  Jim Meyering  <meyering@redhat.com>
30727
30728         inttypes: relax license to LGPLv2+
30729         * modules/inttypes (License): Relax license.
30730
30731 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30732
30733         * top/maint.mk (indent): Run twice to produce idempotent results.
30734
30735 2010-04-28  Bruno Haible  <bruno@clisp.org>
30736
30737         getdate: Generate getdate.c in the source directory.
30738         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30739         MOSTLYCLEANFILES.
30740         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30741
30742 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30743
30744         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30745         is not declared as a const *; avoid warnings in that case.
30746
30747 2010-04-28  Eric Blake  <eblake@redhat.com>
30748
30749         canonicalize-lgpl: avoid compiler warning
30750         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30751         declaration' / 'extraneous semicolon' warning with some compilers.
30752         Reported by Andreas Gruenbacher.
30753
30754 2010-04-28  Jim Meyering  <meyering@redhat.com>
30755
30756         init.sh: ensure a more reliable exit status when exiting via trap
30757         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30758         Inspired by patches from Dmitry V. Levin.
30759         Also trap on signal 3 (SIGQUIT).
30760
30761 2010-04-27  Bruno Haible  <bruno@clisp.org>
30762
30763         Update doc about utimes().
30764         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30765         'utimens' module.
30766         Reported by Andreas Gruenbacher <agruen@suse.de>.
30767
30768 2010-04-27  Eric Blake  <eblake@redhat.com>
30769
30770         full-read, full-write: relax license
30771         * modules/full-read (License): Drop to LGPLv2+.
30772         * modules/full-write (License): Likewise.
30773         * modules/safe-read (License): Likewise.
30774         * modules/safe-write (License): Likewise.
30775
30776         pthread: mention library for linking
30777         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30778
30779 2010-04-27  Jim Meyering  <meyering@redhat.com>
30780
30781         maint.mk: fix a bug introduced in last change
30782         * top/maint.mk (gl_assured_headers_): Now that all names are on
30783         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30784         is not anchored to end of word, it should be adequate.
30785
30786         maint.mk: avoid side-effect in latest syntax-check
30787         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30788         to run commands via $(shell...), and hence to incur cost only when
30789         the new rule is actually run.
30790
30791         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30792         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30793         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30794         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30795         (gl_assured_headers_, az_, AZ_): Define.
30796         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30797
30798 2010-04-26  Jim Meyering  <jim@meyering.net>
30799             Bruno Haible  <bruno@clisp.org>
30800
30801         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30802         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30803         Prompted by an exchange with Gilles Espinasse.
30804
30805 2010-04-26  Jim Meyering  <meyering@redhat.com>
30806
30807         git-version-gen: aesthetic tweak
30808         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30809         so that the command remains on a single line.
30810
30811 2010-04-26  Eric Blake  <eblake@redhat.com>
30812
30813         git-version-gen: allow use on EBCDIC hosts
30814         * build-aux/git-version-gen (dirty): Use literal rather than tying
30815         ourselves to ascii.
30816         Reported by Steve Goetze.
30817
30818 2010-04-25  Bruno Haible  <bruno@clisp.org>
30819
30820         netdb: Add support for GNULIB_POSIXCHECK.
30821         * lib/netdb.in.h: Include warn-on-use.h.
30822         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30823         functions are used when GNULIB_POSIXCHECK is defined and the
30824         getaddrinfo module is not in use.
30825         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30826         freeaddrinfo, gai_strerror, getnameinfo are declared.
30827         * modules/netdb (Depends-on): Add warn-on-use.
30828         (Makefile.am): Include warn-on-use.h in netdb.h.
30829
30830 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30831
30832         build: avoid "make check" failure without .git/ directory
30833         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30834         there is no .git/ directory.
30835
30836 2010-04-25  Bruno Haible  <bruno@clisp.org>
30837
30838         ptsname: Fix misuse of ttyname_r.
30839         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30840         of errno.
30841
30842 2010-04-25  Bruno Haible  <bruno@clisp.org>
30843
30844         ttyname_r: Make it work on Solaris 10.
30845         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30846         if the system function has the POSIX declaration. Test whether the
30847         function fails if the buffer is less than 128 bytes large.
30848         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30849         system's ttyname_r function. Provide a reasonably large buffer.
30850         * modules/ttyname_r (Depends-on): Add extensions.
30851         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30852
30853 2010-04-25  Bruno Haible  <bruno@clisp.org>
30854
30855         Use the 'extensions' module for some more functions on Solaris.
30856         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30857         module.
30858         * doc/posix-functions/ctime_r.texi: Likewise.
30859         * doc/posix-functions/getgrgid_r.texi: Likewise.
30860         * doc/posix-functions/getgrnam_r.texi: Likewise.
30861         * doc/posix-functions/getpwnam_r.texi: Likewise.
30862         * doc/posix-functions/getpwuid_r.texi: Likewise.
30863         * doc/posix-functions/readdir_r.texi: Likewise.
30864         * doc/posix-functions/sigwait.texi: Likewise.
30865         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30866         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30867
30868 2010-04-25  Bruno Haible  <bruno@clisp.org>
30869
30870         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30871         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30872         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30873         * lib/ttyname_r.c: Include <limits.h>.
30874         (ttyname_r): Define using the system's ttyname_r function, if it exists
30875         and not on Solaris.
30876         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30877         set.
30878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30879         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30880         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30881         Reported by Simon Josefsson.
30882
30883 2010-04-25  Bruno Haible  <bruno@clisp.org>
30884
30885         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30886         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30887         * doc/posix-functions/ctime_r.texi: Likewise.
30888         * doc/posix-functions/getgrgid_r.texi: Likewise.
30889         * doc/posix-functions/getgrnam_r.texi: Likewise.
30890         * doc/posix-functions/getlogin_r.texi: Likewise.
30891         * doc/posix-functions/getpwnam_r.texi: Likewise.
30892         * doc/posix-functions/getpwuid_r.texi: Likewise.
30893         * doc/posix-functions/readdir_r.texi: Likewise.
30894         * doc/posix-functions/sigwait.texi: Likewise.
30895         * doc/posix-functions/ttyname_r.texi: Likewise.
30896         Reported by Simon Josefsson.
30897
30898 2010-04-25  Bruno Haible  <bruno@clisp.org>
30899
30900         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30901         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30902         also to --create-testdir.
30903         (func_acceptable): Don't consider the status of *-tests modules here.
30904         (func_modules_transitive_closure): Consider it here, before including a
30905         test module.
30906         (func_import, func_create_testdir): Set inc_all_direct_tests,
30907         inc_all_indirect_tests.
30908         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30909         --create-testdir and --create-megatestdir.
30910
30911 2010-04-25  Bruno Haible  <bruno@clisp.org>
30912
30913         gnulib-tool: Add --without-*-tests options.
30914         * gnulib-tool (func_usage): Document the --without-*-tests options.
30915         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30916         excl_unportable_tests): New variables.
30917         Fail if they are specified with --import or --update.
30918         (func_acceptable): Respect the excl_*_tests variables.
30919         (func_import): Set the excl_*_tests variables to empty.
30920
30921 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30922             Bruno Haible  <bruno@clisp.org>
30923
30924         Work around a MacOS X 10.4 bug with openpty.
30925         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30926         * tests/test-openpty.c (main): Close the master side explicitly.
30927
30928 2010-04-25  Bruno Haible  <bruno@clisp.org>
30929
30930         strnlen: Fix a C++ test error on MacOS X and Solaris.
30931         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30932         the function is not declared.
30933         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30934         Simon Josefsson.
30935
30936 2010-04-24  Bruno Haible  <bruno@clisp.org>
30937
30938         Avoid a gcc warning.
30939         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30940         of correct type for %08lx directive.
30941         Reported by Eric Blake.
30942
30943 2010-04-24  Bruno Haible  <bruno@clisp.org>
30944
30945         vasnprintf: Correct errno value in case of out-of-memory.
30946         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30947         or sprintf. Use the errno value from SNPRINTF or sprintf.
30948         Reported by Ian Beckwith <ianb@erislabs.net>.
30949
30950 2010-04-24  Bruno Haible  <bruno@clisp.org>
30951
30952         ansi-c++-opt: Find correct compiler when cross-compiling.
30953         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30954         AC_CHECK_PROGS.
30955         Reported by Simon Josefsson.
30956
30957 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30958
30959         vc-list-files: Add support for subversion
30960         * build-aux/vc-list-files: Use "svn list" to generate the list of
30961         files controlled by subversion.
30962
30963 2010-04-23  Jim Meyering  <meyering@redhat.com>
30964
30965         vc-list-files tests: convert to use init.sh
30966         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30967         path_prepend_.
30968         Use Exit, not exit.
30969         Use skip_ rather than open coding it.
30970         Remove trap set-up and compare definitions.
30971         * tests/test-vc-list-files-git.sh: Likewise.
30972         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30973
30974 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30975
30976         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30977         backup files.
30978
30979 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30980
30981         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30982
30983 2010-04-20  Eric Blake  <eblake@redhat.com>
30984
30985         tests: be robust to ignored SIGPIPE
30986         * tests/test-select-in.sh: Consume all output.
30987         * tests/test-lseek.sh: Check correct exit status, while avoiding
30988         EPIPE.
30989
30990 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30991             Bruno Haible  <bruno@clisp.org>
30992
30993         visibility: Don't use -fvisibility if it leads to a warning.
30994         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30995         yes, don't pretend that visibility works if it leads to a warning.
30996         Reported by Mike Gran <spk121@yahoo.com>.
30997
30998 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30999
31000         * build-aux/bootstrap: Use "git -h" for testing for supported options
31001         instead of "git --help".  The short-form option only shows a summary,
31002         and doesn't layout the full man page.  Grep for the full option name
31003         in the summary, too.
31004
31005 2010-04-19  Bruno Haible  <bruno@clisp.org>
31006
31007         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31008         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31009         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31010         mention of RELOCATABLE_STRIP.
31011         Reported by Sylvain Beucler <beuc@beuc.net>.
31012
31013 2010-04-19  Bruno Haible  <bruno@clisp.org>
31014
31015         * lib/diffseq.h: Fix typo in comment.
31016         Reported by Eric Blake.
31017
31018 2010-04-19  Bruno Haible  <bruno@clisp.org>
31019
31020         ioctl: Move autoconf macro to a .m4 file.
31021         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31022         * modules/ioctl (Files): Add it.
31023         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31024         Reported by Ian Beckwith <ianb@erislabs.net>.
31025
31026 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31027             Bruno Haible  <bruno@clisp.org>
31028
31029         diffseq: Accommodate use-case with abstract arrays.
31030         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31031         is not defined.
31032         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31033         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31034
31035 2010-04-18  Bruno Haible  <bruno@clisp.org>
31036
31037         * doc/posix-headers/stdbool.texi: More precise wording.
31038
31039 2010-04-17  Jim Meyering  <meyering@redhat.com>
31040
31041         maint.mk: use gnu-style indentation in an embedded perl script
31042         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31043         Rename variable: s/two/last_two_bytes/
31044
31045 2010-04-16  Eric Blake  <eblake@redhat.com>
31046
31047         test-stdbool: skip test that fails with Solaris CC
31048         * tests/test-stdbool.c (f): Skip test that causes compilation
31049         error under buggy C++ compiler.
31050         * lib/stdbool.in.h: Document the limitation.
31051         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31052
31053         setenv: allow compilation with C++
31054         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31055         register keyword.
31056
31057         stdint: allow test to pass with C++
31058         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31059
31060         getopt: allow compilation with C++
31061         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31062         struct.
31063         * lib/getopt.c (_getopt_internal_r): Use correct type.
31064         Reported by Dagobert Michelson, via Joel E. Denny.
31065
31066 2010-04-16  Bruno Haible  <bruno@clisp.org>
31067
31068         Override netdb.h always.
31069         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31070         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31071         Reported by Ludovic Courtès <ludo@gnu.org>.
31072
31073 2010-04-15  Bruno Haible  <bruno@clisp.org>
31074
31075         openpty: Fix mistake from 2010-03-21.
31076         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31077         Reported by Simon Josefsson.
31078
31079 2010-04-15  Eric Blake  <eblake@redhat.com>
31080
31081         test-forkpty: fix expected signature
31082         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31083         Reported by Simon Josefsson.
31084
31085 2010-04-15  Jim Meyering  <meyering@redhat.com>
31086
31087         maint.mk: texinfo_suffix_re_: correct the default regexp
31088         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31089
31090         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31091         make it configurable via texinfo_suffix_re_.
31092
31093 2010-04-14  Eric Blake  <eblake@redhat.com>
31094
31095         strtok_r: relax license to LGPLv2+
31096         * modules/strtok_r (License): Relax license.
31097         Reported by Matthias Bolte.
31098
31099 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31100
31101         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31102         version 1.4.4 by default instead of requiring the libgcrypt
31103         version used during build.  This makes it possible to use the
31104         application with older but still binary compatible libgcrypt
31105         versions.
31106
31107 2010-04-13  Eric Blake  <eblake@redhat.com>
31108
31109         getopt-gnu: match recent glibc fixes and posix ruling
31110         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31111         '+' handling, when requesting extensions.
31112         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31113         'W;' handling.
31114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31115         * doc/posix-functions/getopt.texi (getopt): Document this.
31116         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31118         Likewise.
31119
31120         getopt: merge bug fixes from glibc
31121         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31122         diagnostics.  Honor '+:' correctly.  Reject ';'.
31123
31124         getopt-posix: detect MacOS bug
31125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31126         optind when missing a required argument.
31127         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31128         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31129         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31130         Likewise.
31131
31132         getopt-posix: avoid spurious failure on Solaris
31133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31134         an indicator that setting optind=1 is sufficient for reset.
31135
31136         getopt-posix: avoid spurious failure on FreeBSD
31137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31138         in POSIX mode, since the m4 test uses it.
31139
31140         gnulib-tool: silence warning on BSD sh
31141         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31142
31143 2010-04-13  Jim Meyering  <meyering@redhat.com>
31144
31145         doc: users.txt: GNU patch now uses gnulib
31146         * users.txt: Add patch.
31147
31148 2010-04-12  Jim Meyering  <meyering@redhat.com>
31149
31150         maint.mk: generate more concise timing data for syntax-check rules
31151         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31152         " done" from each line that reports a syntax-check test duration.
31153
31154 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31155
31156         git-version-gen: use "git update-index..." rather than "git status"
31157         * build-aux/git-version-gen: Use git update-index --refresh, not
31158         "git status".  With some versions of git, "git status" would fail
31159         to update the index and result in an unwarranted "-dirty" suffix.
31160
31161 2010-04-11  Jim Meyering  <meyering@redhat.com>
31162
31163         openat: correct formatting (no semantic change)
31164         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31165         Suggested by Bruno Haible.
31166
31167 2010-04-11  Bruno Haible  <bruno@clisp.org>
31168
31169         Stricter declaration checking in testdirs.
31170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31171         If for_tests is true, augment AM_CPPFLAGS to define
31172         GNULIB_STRICT_CHECKING.
31173         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31174         GNULIB_STRICT_CHECKING is defined, verify that the function is
31175         declared.
31176
31177 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31178             Bruno Haible  <bruno@clisp.org>
31179
31180         libunistring: Improve configure output.
31181         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31182         Don't say "consider installing GNU libunistring" when checking again
31183         with libiconv.
31184
31185 2010-04-11  Bruno Haible  <bruno@clisp.org>
31186
31187         libunistring: Correct value of $LTLIBUNISTRING.
31188         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31189         correct the value of $LTLIBUNISTRING.
31190
31191 2010-04-11  Bruno Haible  <bruno@clisp.org>
31192
31193         havelib: Add static libraries to LIBS in the right order.
31194         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31195         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31196
31197 2010-04-11  Bruno Haible  <bruno@clisp.org>
31198
31199         libunistring: Detect libunistring also when it depends on libiconv.
31200         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31201         the second AC_LIB_HAVE_LINKFLAGS invocation.
31202
31203 2010-04-11  James Youngman  <jay@gnu.org>
31204
31205         close-stream: declare local scalars to be "const"
31206         * lib/close-stream.c (close_stream): Make boolean variables const
31207         to document the fact that we set but do not change them.
31208
31209 2010-04-11  Bruno Haible  <bruno@clisp.org>
31210
31211         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31212
31213 2010-04-11  Jim Meyering  <meyering@redhat.com>
31214
31215         maint.mk: don't include dist-check.mk
31216         * top/maint.mk: Remove bogus include directive.
31217
31218         maint.mk: improve empty-line-at-EOF check
31219         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31220         solution, rather than tail+Perl-based one.  The latter would read
31221         a few kilobytes from the end of each file, and did not handle empty
31222         files properly.
31223
31224         maint.mk: print the elapsed time for each syntax-check rule
31225         * top/maint.mk (sc_m_rules_): Save start time in a file.
31226         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31227         (local-check): Interpose the .z rules
31228
31229 2010-04-11  Jim Meyering  <meyering@redhat.com>
31230
31231         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31232         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31233         empty file with one that ends in an empty line.
31234
31235 2010-04-10  Bruno Haible  <bruno@clisp.org>
31236
31237         mkdir: Make it work on mingw64.
31238         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31239         * lib/mkdir.c: Update comment.
31240         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31241
31242 2010-04-10  Bruno Haible  <bruno@clisp.org>
31243
31244         Don't override improved macro from newer autoconf.
31245         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31246         autoconf >= 2.62.
31247         Reported by Joel E. Denny <jdenny@clemson.edu>.
31248
31249 2010-04-10  Jim Meyering  <meyering@redhat.com>
31250
31251         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31252         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31253
31254         maint.mk: correct a diagnostic
31255         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31256         in diagnostic; now use $prohibit.
31257
31258 2010-04-10  Bruno Haible  <address@hidden>
31259
31260         fchownat: Fix a C++ test error on Solaris 8.
31261         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31262         the function does not exist.
31263
31264 2010-04-10  Bruno Haible  <bruno@clisp.org>
31265
31266         vasnprintf: Add more tests.
31267         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31268         (test_function): Test converting an invalid wide string.
31269
31270         vasnprintf: Correct handling of unconvertible wide string arguments.
31271         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31272         VASNPRINTF.
31273         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31274         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31275         smaller than the expected maximum need for the directive. Set errno to
31276         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31277         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31279         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31280         * modules/vasnprintf (Files): Add m4/printf.m4.
31281         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31282
31283 2010-04-10  Bruno Haible  <bruno@clisp.org>
31284
31285         vasnprintf: Fix crash in %ls directive.
31286         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31287         string is passed as argument to %ls, with no precision and no width.
31288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31289
31290 2010-04-10  Bruno Haible  <bruno@clisp.org>
31291
31292         vasnprintf: Fix multiple test failures on mingw.
31293         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31294         _snprintf, or snwprintf, not _snwprintf.
31295
31296 2010-04-10  Bruno Haible  <bruno@clisp.org>
31297
31298         write: Fix a C++ test error on mingw.
31299         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31300
31301 2010-04-10  Bruno Haible  <bruno@clisp.org>
31302
31303         vasnprintf test: Reduce code duplication.
31304         * tests/test-vasnprintf.c (test_function): New function, extracted from
31305         test_vasnprintf.
31306         (test_vasnprintf, test_asnprintf): Invoke it.
31307
31308 2010-04-10  Bruno Haible  <bruno@clisp.org>
31309
31310         strnlen: Fix warning in C++ mode on MacOS X.
31311         * lib/string.in.h (strnlen): Use the modern idiom.
31312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31313         defining strnlen as a macro already in <config.h>.
31314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31315         REPLACE_STRNLEN.
31316         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31317         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31318
31319 2010-04-08  James Youngman  <jay@gnu.org>
31320
31321         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31322         the example.
31323
31324 2010-04-09  Jim Meyering  <meyering@redhat.com>
31325
31326         maint.mk: print better diagnostic when there is no $(_hv_file)
31327         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31328         announce that when $(_hv_file) (aka help-version) does not exist.
31329
31330         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31331         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31332         not try to interpret its random input bytes.  Jarno Rajahalme reported
31333         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31334         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31335         (mktempd_): Likewise, just in case.
31336
31337         ftruncate: add two years to projected module removal date: 2012
31338         * m4/ftruncate.m4: Adjust comments.
31339
31340         ftruncate: mark module as obsolete; even MinGW provides it, now
31341         * modules/ftruncate (Status): Obsolete.
31342         (Notice): Say that.
31343         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31344         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31345
31346 2010-04-08  Bruno Haible  <bruno@clisp.org>
31347
31348         Fix side effects from tests-related modules.
31349         * modules/dprintf-posix (Comment): New section.
31350         * modules/fprintf-posix (Comment): Likewise.
31351         * modules/obstack-printf-posix (Comment): Likewise.
31352         * modules/printf-posix (Comment): Likewise.
31353         * modules/snprintf-posix (Comment): Likewise.
31354         * modules/sprintf-posix (Comment): Likewise.
31355         * modules/vasnprintf-posix (Comment): Likewise.
31356         * modules/vasprintf-posix (Comment): Likewise.
31357         * modules/vdprintf-posix (Comment): Likewise.
31358         * modules/vfprintf-posix (Comment): Likewise.
31359         * modules/vprintf-posix (Comment): Likewise.
31360         * modules/vsnprintf-posix (Comment): Likewise.
31361         * modules/vsprintf-posix (Comment): Likewise.
31362         * modules/xprintf-posix (Comment): Likewise.
31363         * modules/xvasprintf-posix (Comment): Likewise.
31364         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31365         * modules/floorf-tests (Depends-on): Likewise.
31366         * modules/round-tests (Depends-on): Likewise.
31367         * modules/roundf-tests (Depends-on): Likewise.
31368         * modules/trunc-tests (Depends-on): Likewise.
31369         * modules/truncf-tests (Depends-on): Likewise.
31370         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31371         'fprintf-posix' module is not present.
31372         * tests/test-floorf2.c (check): Likewise.
31373         * tests/test-trunc2.c (check): Likewise.
31374         * tests/test-truncf2.c (check): Likewise.
31375         * tests/test-round2.c (equal): Likewise.
31376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31377
31378 2010-04-07  Karl Berry  <karl@gnu.org>
31379
31380         * config/srclist.txt,
31381         * config/srclistvars.sh,
31382         * config/srclist-update: doc fixes.
31383
31384 2010-04-07  Jim Meyering  <meyering@redhat.com>
31385
31386         maint.mk: add a PATH crosschecking syntax-check rule
31387         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31388         Useful if you use a test like the one in help-version (coreutils,
31389         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31390         printed by prog --version.
31391
31392 2010-04-06  Bruno Haible  <bruno@clisp.org>
31393
31394         Fix link error on mingw.
31395         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31396         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31397
31398 2010-04-06  Bruno Haible  <bruno@clisp.org>
31399
31400         Assume rmdir exists.
31401         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31402
31403 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31404
31405         doc: update users.txt
31406         * users.txt: Add gcal.
31407
31408 2010-04-06  Jim Meyering  <meyering@redhat.com>
31409
31410         init.sh: simply unset TMPDIR rather than risking env -i
31411         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31412         although it probably works fine on all Unix-based systems, some
31413         systems (Cygwin?) cannot tolerate a totally cleared environment.
31414         Suggestion from Eric Blake.
31415
31416 2010-04-06  Jim Meyering  <meyering@redhat.com>
31417
31418         init.sh: portability fix: use env's POSIX-specified -i option not -u
31419         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31420         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31421
31422 2010-04-05  Bruno Haible  <bruno@clisp.org>
31423
31424         btowc: Work around Cygwin 1.7.2 bug.
31425         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31426         does not map NUL to 0.
31427         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31428
31429 2010-04-05  Bruno Haible  <bruno@clisp.org>
31430
31431         Make the multithread modules work on Cygwin 1.7.2.
31432         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31433         imported symbols can be declared weak, so that it returns "no" on
31434         Cygwin 1.7.2.
31435
31436 2010-04-05  Bruno Haible  <bruno@clisp.org>
31437
31438         Use the module 'strncat'.
31439         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31440
31441         Tests for module 'strncat'.
31442         * modules/strncat-tests: New file.
31443         * tests/test-strncat.c: New file.
31444
31445         New module 'strncat'.
31446         * lib/string.in.h (strncat): New declaration.
31447         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31448         * m4/strncat.m4: New file, based on m4/memchr.m4.
31449         * modules/strncat: New file.
31450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31451         is declared.
31452         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31453         REPLACE_STRNCAT.
31454         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31455         REPLACE_STRNCAT.
31456         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31457         module.
31458         * tests/test-string-c++.cc: Check signature of strncat.
31459
31460 2010-04-05  Jim Meyering  <meyering@redhat.com>
31461
31462         xstrtoumax-tests: convert to use init.sh
31463         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31464         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31465         Use Exit, not exit.
31466         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31467
31468         xstrtoimax-tests: convert to use init.sh
31469         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31470         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31471         Use Exit, not exit.
31472         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31473
31474 2010-04-05  Bruno Haible  <bruno@clisp.org>
31475
31476         sys_socket: Avoid #define replacements in C++ mode.
31477         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31478         warning to the function if possible, rather than #defining the symbol
31479         to a dysfunctional alias.
31480
31481 2010-04-05  Bruno Haible  <bruno@clisp.org>
31482
31483         fseeko: Fix C++ test error on mingw.
31484         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31485         gl_FUNC_FSEEKO.
31486         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31487         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31488         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31489         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31490
31491 2010-04-05  Bruno Haible  <bruno@clisp.org>
31492
31493         duplocale: Improve test output.
31494         * tests/test-duplocale.c (main): Print reason for skipped test.
31495
31496 2010-04-05  Bruno Haible  <bruno@clisp.org>
31497
31498         Assume rmdir exists.
31499         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31500         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31501
31502 2010-04-05  Bruno Haible  <bruno@clisp.org>
31503
31504         Fix link error on Solaris 8 with cc.
31505         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31506
31507 2010-04-05  Bruno Haible  <bruno@clisp.org>
31508
31509         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31510         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31511
31512 2010-04-05  Bruno Haible  <bruno@clisp.org>
31513
31514         vasprintf: Update documentation.
31515         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31516
31517 2010-04-05  Bruno Haible  <bruno@clisp.org>
31518
31519         ptsname: Improve test.
31520         * tests/test-ptsname.c (main): Also try the various master names of BSD
31521         systems.
31522
31523 2010-04-05  Bruno Haible  <bruno@clisp.org>
31524
31525         memchr: Avoid a possible C++ test error.
31526         * lib/string.in.h (memchr): Provide declaration if function is missing.
31527         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31528         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31530         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31531
31532 2010-04-05  Bruno Haible  <bruno@clisp.org>
31533
31534         strtok_r: Improve idiom.
31535         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31536         AC_LIBOBJ is used.
31537
31538 2010-04-05  Bruno Haible  <bruno@clisp.org>
31539
31540         strdup: Improve idiom.
31541         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31542         AC_LIBOBJ is used.
31543         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31544         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31545         when AC_LIBOBJ is used.
31546
31547 2010-04-05  Bruno Haible  <bruno@clisp.org>
31548
31549         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31550         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31551         don't set REPLACE_MBSINIT to 1.
31552         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31553         don't set REPLACE_MBRTOWC to 1.
31554         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31555         exist, don't set REPLACE_MBSRTOWCS to 1.
31556         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31557         exist, don't set REPLACE_MBSNRTOWCS to 1.
31558         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31559         don't set REPLACE_WCRTOMB to 1.
31560         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31561         exist, don't set REPLACE_WCSRTOMBS to 1.
31562         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31563         exist, don't set REPLACE_WCSNRTOMBS to 1.
31564
31565 2010-04-05  Bruno Haible  <bruno@clisp.org>
31566
31567         ldexpl: Improve idiom.
31568         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31569         make sure to set HAVE_DECL_LDEXPL to 0.
31570
31571 2010-04-05  Jim Meyering  <meyering@redhat.com>
31572
31573         xstrtol-tests: convert to use init.sh
31574         * modules/xstrtol-tests (Files): Add tests/init.sh.
31575         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31576         Use Exit, not exit.
31577         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31578
31579         atexit-tests: convert to use init.sh
31580         * modules/atexit-tests (Files): Add tests/init.sh.
31581         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31582         Use Exit, not exit.
31583         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31584
31585         init.sh: fix typo
31586         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31587
31588         init.sh: make it easier for a test script to write to the tty, ...
31589         when using automake's parallel-tests mode.
31590         * tests/init.sh (stderr_fileno_): Define overridable variable.
31591         (warn_): New function, to use it.
31592         (fail_, skip_, framework_failure_): Use warn_.
31593
31594 2010-04-04  Bruno Haible  <bruno@clisp.org>
31595
31596         btowc: Avoid warning.
31597         * lib/btowc.c: Include <stdlib.h>.
31598         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31599
31600 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31601             Bruno Haible  <bruno@clisp.org>
31602
31603         wchar: Port to NetBSD 1.5.
31604         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31605         * lib/wctype.in.h (WEOF): Likewise.
31606
31607 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31608             Bruno Haible  <bruno@clisp.org>
31609
31610         Port extended stdio to NetBSD 1.5.
31611         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31612         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31613         older.
31614
31615 2010-04-04  Bruno Haible  <bruno@clisp.org>
31616
31617         string: Remove unused substitution.
31618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31619         HAVE_DECL_STRERROR.
31620         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31621
31622 2010-04-04  Bruno Haible  <bruno@clisp.org>
31623
31624         strtod: Avoid a possible C++ test error.
31625         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31626         set REPLACE_STRTOD.
31627
31628 2010-04-04  Bruno Haible  <bruno@clisp.org>
31629
31630         strerror: Update documentation.
31631         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31632
31633 2010-04-04  Bruno Haible  <bruno@clisp.org>
31634
31635         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31636         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31637         _GL_CXXALIAS_SYS_CAST.
31638
31639 2010-04-04  Bruno Haible  <bruno@clisp.org>
31640
31641         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31642         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31643         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31644         REPLACE_FREXPL to 1.
31645         * doc/posix-functions/frexpl.texi: Update documentation.
31646
31647 2010-04-04  Bruno Haible  <bruno@clisp.org>
31648
31649         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31650         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31651
31652 2010-04-04  Bruno Haible  <bruno@clisp.org>
31653
31654         Implement nanosleep for native Windows.
31655         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31656
31657 2010-04-04  Bruno Haible  <bruno@clisp.org>
31658
31659         math: Fix some C++ test errors on Solaris 8.
31660         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31661
31662 2010-04-04  Bruno Haible  <bruno@clisp.org>
31663
31664         math: Fix some C++ test errors on Cygwin.
31665         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31666         truncl): Provide declaration if the system does not have it.
31667         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31668         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31669         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31670         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31671         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31672         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31673         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31674         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31675         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31676         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31677         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31678         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31679         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31680         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31681         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31682         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31684         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31685         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31686         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31687         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31688         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31689
31690 2010-04-04  Bruno Haible  <bruno@clisp.org>
31691
31692         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31693         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31694         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31695         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31696         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31697         * m4/isinf.m4 (gl_ISINF): Likewise.
31698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31699
31700 2010-04-04  Bruno Haible  <bruno@clisp.org>
31701
31702         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31703         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31704
31705 2010-04-04  Bruno Haible  <bruno@clisp.org>
31706
31707         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31708         * modules/tmpfile (configure.ac): Update.
31709
31710         tmpfile: Fix C++ test error on mingw.
31711         * lib/stdio.in.h (tmpfile): New declaration.
31712         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31713         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31714         * modules/tmpfile (Depends-on): Add stdio.
31715         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31716         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31717         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31718         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31719         REPLACE_TMPFILE.
31720         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31721
31722 2010-04-04  Bruno Haible  <bruno@clisp.org>
31723
31724         ioctl: Fix C++ test error on mingw.
31725         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31726         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31727         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31728
31729 2010-04-03  Bruno Haible  <bruno@clisp.org>
31730
31731         wcwidth: Fix C++ test error on mingw.
31732         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31734         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31735
31736 2010-04-03  Bruno Haible  <bruno@clisp.org>
31737
31738         nanosleep: Fix C++ test error on mingw.
31739         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31740         * lib/time.in.h (nanosleep): Use modern idiom.
31741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31742         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31743         REPLACE_NANOSLEEP to 1.
31744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31745         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31746
31747 2010-04-03  Bruno Haible  <bruno@clisp.org>
31748
31749         strptime: Fix C++ test error on mingw.
31750         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31751         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31752         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31753         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31755         not REPLACE_STRPTIME.
31756         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31757         REPLACE_STRPTIME.
31758
31759 2010-04-03  Bruno Haible  <bruno@clisp.org>
31760
31761         timegm: Fix C++ test error on mingw.
31762         * lib/time.in.h (timegm): Use modern idiom.
31763         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31764         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31765         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31766         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31767
31768 2010-04-03  Bruno Haible  <bruno@clisp.org>
31769
31770         timegm: Assume declaration if function exists.
31771         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31772         if it exists. Don't clobber ac_cv_func_timegm.
31773
31774 2010-04-03  Bruno Haible  <bruno@clisp.org>
31775
31776         time_r: Fix C++ test error on mingw.
31777         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31778         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31779         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31781         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31782
31783 2010-04-03  Bruno Haible  <bruno@clisp.org>
31784
31785         time_r: Minor updates.
31786         * modules/time_r (Description): Mention the provided functions.
31787         * lib/time_r.c: Don't include <string.h>.
31788         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31789         * doc/posix-functions/localtime_r.texi: Likewise.
31790
31791 2010-04-03  Bruno Haible  <bruno@clisp.org>
31792
31793         time: Fix regression introduced on 2010-03-08.
31794         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31795         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31796
31797 2010-04-03  Jim Meyering  <meyering@redhat.com>
31798
31799         maint.mk: don't silently disable project-specific syntax-check rules
31800         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31801         that they need to convert their project-specific syntax-check rules
31802         to use the new _sc_search_regexp.
31803
31804 2010-04-03  Bruno Haible  <bruno@clisp.org>
31805
31806         fchdir: Fix regression introduced on 2010-03-08.
31807         * lib/unistd.in.h (fchdir): Fix declaration.
31808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31810         REPLACE_FCHDIR.
31811         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31812         REPLACE_FCHDIR.
31813
31814 2010-04-03  Bruno Haible  <bruno@clisp.org>
31815
31816         getpagesize: Fix C++ test error on mingw.
31817         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31818         system does not declare the function.
31819         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31820         declared.
31821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31822         HAVE_DECL_GETPAGESIZE.
31823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31824
31825 2010-04-03  Bruno Haible  <bruno@clisp.org>
31826
31827         stdio: Make C++ tests work on mingw.
31828         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31829         does not declare the function.
31830
31831 2010-04-03  Bruno Haible  <bruno@clisp.org>
31832
31833         ftello: Fix C++ test error on mingw.
31834         * lib/stdio.in.h (ftello): Use modern idiom.
31835         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31836         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31837         is missing and that it needs to be replaced.
31838         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31840         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31841
31842 2010-04-03  Bruno Haible  <bruno@clisp.org>
31843
31844         fseeko: Fix C++ test error on mingw.
31845         * lib/stdio.in.h (fseeko): Use modern idiom.
31846         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31847         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31848         is missing and that it needs to be replaced.
31849         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31851         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31852
31853 2010-04-03  Bruno Haible  <bruno@clisp.org>
31854
31855         mkstemp: Fix C++ test error on mingw.
31856         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31857         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31858         function is missing and that it needs to be replaced.
31859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31860         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31861
31862 2010-04-03  Bruno Haible  <bruno@clisp.org>
31863
31864         stpncpy: Fix C++ test error on mingw.
31865         * lib/string.in.h (stpncpy): Use modern idiom.
31866         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31867         function is missing and that it needs to be replaced.
31868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31869         REPLACE_STPNCPY.
31870         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31871
31872 2010-04-03  Bruno Haible  <bruno@clisp.org>
31873
31874         sys_stat: Fix C++ test error on mingw.
31875         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31876         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31877
31878 2010-04-03  Bruno Haible  <bruno@clisp.org>
31879
31880         pty: Update doc.
31881         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31882
31883 2010-04-03  Bruno Haible  <bruno@clisp.org>
31884
31885         unistd: Fix C++ test error on mingw.
31886         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31887
31888 2010-04-03  Bruno Haible  <bruno@clisp.org>
31889
31890         Update doc regarding mingw.
31891         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31892         * doc/glibc-functions/login_tty.texi: Likewise.
31893         * doc/glibc-functions/forkpty.texi: Likewise.
31894
31895 2010-04-03  Bruno Haible  <bruno@clisp.org>
31896
31897         stdlib: Avoid compilation failure of c-strtold on mingw.
31898         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31899
31900 2010-04-03  Bruno Haible  <bruno@clisp.org>
31901
31902         locale: Make C++ tests work on Cygwin and mingw.
31903         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31904         cannot provide the function.
31905         Reported by Simon Josefsson.
31906
31907 2010-04-03  Bruno Haible  <bruno@clisp.org>
31908
31909         localename: Port to MacOS X 10.6.
31910         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31911         memory layout of the locales in MacOS X 10.6 as well.
31912         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31913
31914 2010-04-02  Bruno Haible  <bruno@clisp.org>
31915
31916         gnulib-tool: Ensure that long-running tests are executed last.
31917         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31918         running tests after the one for the other tests.
31919
31920 2010-04-02  Bruno Haible  <bruno@clisp.org>
31921
31922         gnulib-tool: Ensure the tests in the main directory are executed first.
31923         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31924         start with the current directory.
31925
31926 2010-04-02  Bruno Haible  <bruno@clisp.org>
31927
31928         Tests for module 'havelib', moved here from GNU gettext.
31929         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31930         modifications.
31931         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31932         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31933         with modifications.
31934         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31935         modifications.
31936         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31937         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31938         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31939         with modifications.
31940         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31941         with modifications.
31942         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31943         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31944         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31945         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31946         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31947         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31948         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31949         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31950         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31951         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31952         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31953         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31954         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31955         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31956         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31957         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31958         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31959         with modifications.
31960         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31961         with modifications.
31962         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31963         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31964         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31965         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31966         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31967         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31968         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31969         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31970         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31971         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31972         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31973         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31974         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31975         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31976         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31977         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31978         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31979         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31980         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31981         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31982         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31983         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31984         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31985         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31986         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31987         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31988         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31989         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31990         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31991         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31992         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31993         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31994         * tests/havelib/rpathx/rpathx.c: New file, from
31995         gettext/autoconf-lib-link.
31996         * tests/havelib/rpathx/Makefile.am: New file, from
31997         gettext/autoconf-lib-link.
31998         * tests/havelib/rpathx/configure.ac: New file, from
31999         gettext/autoconf-lib-link with modifications.
32000         * tests/havelib/rpathy/rpathy.c: New file, from
32001         gettext/autoconf-lib-link.
32002         * tests/havelib/rpathy/Makefile.am: New file, from
32003         gettext/autoconf-lib-link.
32004         * tests/havelib/rpathy/configure.ac: New file, from
32005         gettext/autoconf-lib-link with modifications.
32006         * tests/havelib/rpathz/rpathz.c: New file, from
32007         gettext/autoconf-lib-link.
32008         * tests/havelib/rpathz/Makefile.am: New file, from
32009         gettext/autoconf-lib-link.
32010         * tests/havelib/rpathz/configure.ac: New file, from
32011         gettext/autoconf-lib-link with modifications.
32012         * tests/havelib/rpathlx/usex.c: New file, from
32013         gettext/autoconf-lib-link.
32014         * tests/havelib/rpathlx/Makefile.am: New file, from
32015         gettext/autoconf-lib-link.
32016         * tests/havelib/rpathlx/configure.ac: New file, from
32017         gettext/autoconf-lib-link with modifications.
32018         * tests/havelib/rpathly/usey.c: New file, from
32019         gettext/autoconf-lib-link.
32020         * tests/havelib/rpathly/Makefile.am: New file, from
32021         gettext/autoconf-lib-link.
32022         * tests/havelib/rpathly/configure.ac: New file, from
32023         gettext/autoconf-lib-link with modifications.
32024         * tests/havelib/rpathlz/usez.c: New file, from
32025         gettext/autoconf-lib-link.
32026         * tests/havelib/rpathlz/Makefile.am: New file, from
32027         gettext/autoconf-lib-link.
32028         * tests/havelib/rpathlz/configure.ac: New file, from
32029         gettext/autoconf-lib-link with modifications.
32030         * tests/havelib/rpathlyx/usey.c: New file, from
32031         gettext/autoconf-lib-link.
32032         * tests/havelib/rpathlyx/Makefile.am: New file, from
32033         gettext/autoconf-lib-link.
32034         * tests/havelib/rpathlyx/configure.ac: New file, from
32035         gettext/autoconf-lib-link with modifications.
32036         * tests/havelib/rpathlzyx/usez.c: New file, from
32037         gettext/autoconf-lib-link.
32038         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32039         gettext/autoconf-lib-link.
32040         * tests/havelib/rpathlzyx/configure.ac: New file, from
32041         gettext/autoconf-lib-link with modifications.
32042         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32043         with modifications.
32044
32045 2010-04-02  Bruno Haible  <bruno@clisp.org>
32046
32047         gnulib-tool: Create distributed built sources also for the tests.
32048         * gnulib-tool (func_create_testdir): Also generate distributed built
32049         sources in the tests directory.
32050
32051 2010-04-02  Bruno Haible  <bruno@clisp.org>
32052
32053         gnulib-tool: Obey user's environment variables.
32054         * gnulib-tool (func_create_testdir): When creating built sources,
32055         respect the environment variables for autoconf, automake, etc. given by
32056         the user.
32057
32058 2010-04-02  Bruno Haible  <bruno@clisp.org>
32059
32060         gnulib-tool: Provide the value of --m4-base to modules.
32061         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32062         of gl_m4_base.
32063
32064 2010-04-02  Eric Blake  <eblake@redhat.com>
32065
32066         maint.mk: fix some fallout
32067         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32068         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32069
32070 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32071
32072         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32073         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32074         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32075         (sc_cast_of_x_alloc_return_value): Likewise.
32076         (sc_cast_of_alloca_return_value): Likewise.
32077         (sc_space_tab): Likewise.
32078         (sc_prohibit_atoi_atof): Likewise.
32079         (sc_prohibit_magic_number_exit): Likewise.
32080         (sc_error_exit_success): Likewise.
32081         (sc_file_system): Likewise.
32082         (sc_prohibit_have_config_h): Likewise.
32083         (sc_require_config_h): Likewise.
32084         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32085         (sc_obsolete_symbols): Likewise.
32086         (sc_changelog): Likewise.
32087         (sc_program_name): Likewise.
32088         (sc_the_the): Likewise.
32089         (sc_trailing_blank): Likewise.
32090         (sc_two_space_separator_in_usage): Likewise.
32091         (sc_useless_cpp_parens): Likewise.
32092         (sc_GPL_version): Likewise.
32093         (sc_GFDL_version): Likewise.
32094         (sc_texinfo_acronym): Likewise.
32095         (sc_prohibit_cvs_keyword): Likewise.
32096         (sc_prohibit_stat_st_blocks): Likewise.
32097         (sc_prohibit_S_IS_definition): Likewise.
32098         (sc_redundant_const): Likewise.
32099         (sc_makefile_TAB_only_indentation): Likewise.
32100         (sc_m4_quote_check): Likewise.
32101         (sc_makefile_path_separator_check): Likewise.
32102         (sc_copyright_check): Likewise.
32103         (sc_Wundef_boolean): Likewise.
32104         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32105
32106         maint.mk: match 0 or more whitespace-before-function-call '('
32107         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32108         that have zero or two-and-more spaces between the function name
32109         and the open parenthesis.
32110         (sc_error_message_warn_fatal): Likewise.
32111         (sc_error_message_uppercase): Likewise.
32112         (sc_error_message_period): Likewise.
32113
32114 2010-03-31  Eric Blake  <eblake@redhat.com>
32115
32116         maint.mk: check for [ as well as test
32117         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32118         Based on a libvirt report by Matthias Bolte.
32119
32120         gnumakefile: don't squelch _version output
32121         * top/GNUmakefile (_version): Create one-shot dependency rather
32122         than using $(shell) when version must be regenerated.
32123         (_autoreconf): Run verbosely, by default.
32124
32125         sys_time: avoid compiler warnings
32126         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32127         unconditional, fixing regression from 2010-03-29.
32128         Reported by Simon Josefsson.
32129
32130 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32131
32132         maint.mk: s/_header_without_use/_sc_header_without_use/
32133         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32134         (sc_prohibit_assert_without_use): Use the new name.
32135         (sc_prohibit_close_stream_without_use): Likewise.
32136         (sc_prohibit_getopt_without_use): Likewise.
32137         (sc_prohibit_quotearg_without_use): Likewise.
32138         (sc_prohibit_quote_without_use): Likewise.
32139         (sc_prohibit_long_options_without_use): Likewise.
32140         (sc_prohibit_inttostr_without_use): Likewise.
32141         (sc_prohibit_ignore_value_without_use): Likewise.
32142         (sc_prohibit_error_without_use): Likewise.
32143         (sc_prohibit_xalloc_without_use): Likewise.
32144         (sc_prohibit_hash_without_use): Likewise.
32145         (sc_prohibit_hash_pjw_without_use): Likewise.
32146         (sc_prohibit_safe_read_without_use): Likewise.
32147         (sc_prohibit_argmatch_without_use): Likewise.
32148         (sc_prohibit_canonicalize_without_use): Likewise.
32149         (sc_prohibit_root_dev_ino_without_use): Likewise.
32150         (sc_prohibit_openat_without_use): Likewise.
32151         (sc_prohibit_c_ctype_without_use): Likewise.
32152         (sc_prohibit_signal_without_use): Likewise.
32153         (sc_prohibit_intprops_without_use): Likewise.
32154
32155 2010-03-30  Eric Blake  <eblake@redhat.com>
32156
32157         maint: improve module indicators
32158         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32159         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32160         columns, and avoid extra macro expansion.
32161
32162         fdopendir: work around FreeBSD bug
32163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32164         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32165         * modules/dirent (Makefile.am): Substitute it.
32166         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32167         declaration.
32168         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32169         fix.
32170         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32171
32172 2010-03-29  Bruno Haible  <bruno@clisp.org>
32173
32174         Emit #pragma system_header after the inclusion guard, not before.
32175         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32176         guard that spans the entire file, not before. This enables an
32177         optimization in GCC's preprocessor.
32178         * lib/ctype.in.h: Likewise.
32179         * lib/dirent.in.h: Likewise.
32180         * lib/errno.in.h: Likewise.
32181         * lib/float.in.h: Likewise.
32182         * lib/getopt.in.h: Likewise.
32183         * lib/iconv.in.h: Likewise.
32184         * lib/langinfo.in.h: Likewise.
32185         * lib/locale.in.h: Likewise.
32186         * lib/math.in.h: Likewise.
32187         * lib/netdb.in.h: Likewise.
32188         * lib/netinet_in.in.h: Likewise.
32189         * lib/pty.in.h: Likewise.
32190         * lib/sched.in.h: Likewise.
32191         * lib/se-selinux.in.h: Likewise.
32192         * lib/search.in.h: Likewise.
32193         * lib/spawn.in.h: Likewise.
32194         * lib/stdarg.in.h: Likewise.
32195         * lib/stdint.in.h: Likewise.
32196         * lib/string.in.h: Likewise.
32197         * lib/strings.in.h: Likewise.
32198         * lib/sys_file.in.h: Likewise.
32199         * lib/sys_ioctl.in.h: Likewise.
32200         * lib/sys_time.in.h: Likewise.
32201         * lib/sys_times.in.h: Likewise.
32202         * lib/sys_utsname.in.h: Likewise.
32203         * lib/sys_wait.in.h: Likewise.
32204         * lib/sysexits.in.h: Likewise.
32205         * lib/wctype.in.h: Likewise.
32206
32207 2010-03-28  James Youngman  <jay@gnu.org>
32208
32209         save-cwd: don't leak a file descriptor when the caller execs.
32210         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32211         saved file descriptor.
32212         * modules/save-cwd (Depends-on): Depend on cloexec.
32213
32214 2010-03-29  Bruno Haible  <bruno@clisp.org>
32215
32216         Remove vestiges of fts-lgpl module.
32217         * lib/fts_.h: Assume GNULIB_FTS is 1.
32218         * lib/fts.c: Likewise.
32219         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32220
32221 2010-03-28  Bruno Haible  <bruno@clisp.org>
32222
32223         Fix definition of tests witness macro.
32224         * gnulib-tool (func_import): Fix definition of witness macro.
32225
32226 2010-03-28  Bruno Haible  <bruno@clisp.org>
32227
32228         Fix ioctl's protoype on glibc systems.
32229         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32230         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32231         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32232         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32233         signature. If not, arrange to replace the ioctl function.
32234         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32235         REPLACE_IOCTL.
32236         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32237         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32238         Reported by Ludovic Courtès <ludo@gnu.org>.
32239
32240 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32241
32242         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32243         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32244         made it so grep -r --include=GLOB* ... did not work.
32245
32246 2010-03-26  Jim Meyering  <meyering@redhat.com>
32247             Eric Blake  <eblake@redhat.com>
32248
32249         maint.mk: prohibit use of test's -o and -a operators
32250         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32251
32252 2010-03-28  Bruno Haible  <bruno@clisp.org>
32253
32254         Remove unused GNULIB_XYZ macro definitions.
32255         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32256         invocation.
32257
32258 2010-03-28  Bruno Haible  <bruno@clisp.org>
32259
32260         Mark privileged tests modules.
32261         * modules/idpriv-drop-tests (Status): New section.
32262         * modules/idpriv-droptemp-tests (Status): New section.
32263
32264 2010-03-28  Bruno Haible  <bruno@clisp.org>
32265
32266         Split C++ tests into separate tests modules.
32267         * modules/dirent-c++-tests: New file, extracted from
32268         modules/dirent-tests.
32269         * modules/dirent-tests: Depend on it.
32270         * modules/fcntl-h-c++-tests: New file, extracted from
32271         modules/fcntl-h-tests.
32272         * modules/fcntl-h-tests: Depend on it.
32273         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32274         * modules/glob-tests: Depend on it.
32275         * modules/iconv-h-c++-tests: New file, extracted from
32276         modules/iconv-h-tests.
32277         * modules/iconv-h-tests: Depend on it.
32278         * modules/langinfo-c++-tests: New file, extracted from
32279         modules/langinfo-tests.
32280         * modules/langinfo-tests: Depend on it.
32281         * modules/locale-c++-tests: New file, extracted from
32282         modules/locale-tests.
32283         * modules/locale-tests: Depend on it.
32284         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32285         * modules/math-tests: Depend on it.
32286         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32287         * modules/pty-tests: Depend on it.
32288         * modules/search-c++-tests: New file, extracted from
32289         modules/search-tests.
32290         * modules/search-tests: Depend on it.
32291         * modules/signal-c++-tests: New file, extracted from
32292         modules/signal-tests.
32293         * modules/signal-tests: Depend on it.
32294         * modules/spawn-c++-tests: New file, extracted from
32295         modules/spawn-tests.
32296         * modules/spawn-tests: Depend on it.
32297         * modules/stdio-c++-tests: New file, extracted from
32298         modules/stdio-tests.
32299         * modules/stdio-tests: Depend on it.
32300         * modules/stdlib-c++-tests: New file, extracted from
32301         modules/stdlib-tests.
32302         * modules/stdlib-tests: Depend on it.
32303         * modules/string-c++-tests: New file, extracted from
32304         modules/string-tests.
32305         * modules/string-tests: Depend on it.
32306         * modules/sys_ioctl-c++-tests: New file, extracted from
32307         modules/sys_ioctl-tests.
32308         * modules/sys_ioctl-tests: Depend on it.
32309         * modules/sys_select-c++-tests: New file, extracted from
32310         modules/sys_select-tests.
32311         * modules/sys_select-tests: Depend on it.
32312         * modules/sys_socket-c++-tests: New file, extracted from
32313         modules/sys_socket-tests.
32314         * modules/sys_socket-tests: Depend on it.
32315         * modules/sys_stat-c++-tests: New file, extracted from
32316         modules/sys_stat-tests.
32317         * modules/sys_stat-tests: Depend on it.
32318         * modules/sys_time-c++-tests: New file, extracted from
32319         modules/sys_time-tests.
32320         * modules/sys_time-tests: Depend on it.
32321         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32322         * modules/time-tests: Depend on it.
32323         * modules/unistd-c++-tests: New file, extracted from
32324         modules/unistd-tests.
32325         * modules/unistd-tests: Depend on it.
32326         * modules/wchar-c++-tests: New file, extracted from
32327         modules/wchar-tests.
32328         * modules/wchar-tests: Depend on it.
32329         * modules/wctype-c++-tests: New file, extracted from
32330         modules/wctype-tests.
32331         * modules/wctype-tests: Depend on it.
32332         Reported by Simon Josefsson.
32333
32334 2010-03-28  Bruno Haible  <bruno@clisp.org>
32335
32336         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32337         * gnulib-tool (func_exists_module): New function, extracted from
32338         func_verify_module.
32339         (func_verify_module): Use it.
32340         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32341         'foo' only if 'foo' exists.
32342         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32343         module.
32344
32345 2010-03-28  Bruno Haible  <bruno@clisp.org>
32346
32347         gnulib-tool: Add support for special categories of tests.
32348         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32349         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32350         (func_usage): Document them.
32351         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32352         inc_unportable_tests, inc_all_tests): New variables.
32353         (func_acceptable): Consider these variables.
32354         (func_modules_transitive_closure): Make it work when the 'Status' field
32355         consists of multiple words.
32356         (func_import): Store and restore the values of inc_cxx_tests,
32357         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32358         inc_all_tests in gnulib-comp.m4.
32359         (func_create_testdir): Set inc_all_tests to true.
32360         * doc/gnulib.texi (Extra tests modules): New section.
32361         Suggested by Jim Meyering.
32362
32363 2010-03-28  Bruno Haible  <bruno@clisp.org>
32364
32365         ansi-c++-opt: Allow turning off the C++ build by default.
32366         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32367         gl_CXX_CHOICE_DEFAULT_NO is defined.
32368         Requested by Eric Blake.
32369
32370 2010-03-28  Bruno Haible  <bruno@clisp.org>
32371
32372         unistd: Avoid #define replacements in C++ mode.
32373         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32374         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32375         setsockopt, shutdown, select): In C++, attach a warning to the function
32376         if possible, rather than #defining the symbol to a dysfunctional alias.
32377         Reported by John W. Eaton <jwe@gnu.org>.
32378
32379 2010-03-28  Bruno Haible  <bruno@clisp.org>
32380
32381         Fix link errors on mingw.
32382         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32383         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32384         $(LIBSOCKET).
32385         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32386         $(LIBSOCKET).
32387
32388 2010-03-28  Bruno Haible  <bruno@clisp.org>
32389             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32390
32391         lib-ignore: Determine different options for different compilers.
32392         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32393         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32394         Add comments.
32395         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32396         * NEWS: Mention the change.
32397
32398 2010-03-27  Bruno Haible  <bruno@clisp.org>
32399
32400         Remove unused GNULIB_XYZ macro definitions.
32401         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32402         * modules/fseek (configure.ac): Likewise.
32403         * modules/ioctl (configure.ac): Likewise.
32404         * modules/open (configure.ac): Likewise.
32405         * modules/stdlib-safer (configure.ac): Likewise.
32406
32407 2010-03-27  Bruno Haible  <bruno@clisp.org>
32408
32409         Add a remark about certain modules.
32410         * modules/malloc (Comment): New section.
32411         * modules/realloc (Comment): Likewise.
32412         * modules/sigpipe (Comment): Likewise.
32413
32414 2010-03-27  Bruno Haible  <bruno@clisp.org>
32415
32416         Resolve conflict between the two kinds of module indicators.
32417         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32418         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32419         * modules/canonicalize (configure.ac): Invoke
32420         gl_MODULE_INDICATOR_FOR_TESTS.
32421         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32422         GNULIB_XYZ.
32423         * tests/test-dirent-c++.cc: Likewise.
32424         * tests/test-dirent-safer.c: Likewise.
32425         * tests/test-dup2.c: Likewise.
32426         * tests/test-fchdir.c: Likewise.
32427         * tests/test-fcntl-h-c++.cc: Likewise.
32428         * tests/test-getopt.c: Likewise.
32429         * tests/test-getopt.h: Likewise.
32430         * tests/test-langinfo-c++.cc: Likewise.
32431         * tests/test-locale-c++.cc: Likewise.
32432         * tests/test-math-c++.cc: Likewise.
32433         * tests/test-pty-c++.cc: Likewise.
32434         * tests/test-search-c++.cc: Likewise.
32435         * tests/test-signal-c++.cc: Likewise.
32436         * tests/test-spawn-c++.cc: Likewise.
32437         * tests/test-stdio-c++.cc: Likewise.
32438         * tests/test-stdlib-c++.cc: Likewise.
32439         * tests/test-string-c++.cc: Likewise.
32440         * tests/test-sys_ioctl-c++.cc: Likewise.
32441         * tests/test-sys_select-c++.cc: Likewise.
32442         * tests/test-sys_socket-c++.cc: Likewise.
32443         * tests/test-sys_stat-c++.cc: Likewise.
32444         * tests/test-sys_time-c++.cc: Likewise.
32445         * tests/test-time-c++.cc: Likewise.
32446         * tests/test-unistd-c++.cc: Likewise.
32447         * tests/test-wchar-c++.cc: Likewise.
32448         * tests/uninorm/test-u8-nfc.c: Likewise.
32449         * tests/uninorm/test-u8-nfd.c: Likewise.
32450         * tests/uninorm/test-u8-nfkc.c: Likewise.
32451         * tests/uninorm/test-u8-nfkd.c: Likewise.
32452         * tests/uninorm/test-u16-nfc.c: Likewise.
32453         * tests/uninorm/test-u16-nfd.c: Likewise.
32454         * tests/uninorm/test-u16-nfkc.c: Likewise.
32455         * tests/uninorm/test-u16-nfkd.c: Likewise.
32456         * tests/uninorm/test-u32-nfc.c: Likewise.
32457         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32458         * tests/uninorm/test-u32-nfd.c: Likewise.
32459         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32460         * tests/uninorm/test-u32-nfkc.c: Likewise.
32461         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32462         * tests/uninorm/test-u32-nfkd.c: Likewise.
32463         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32464         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32465
32466 2010-03-27  Bruno Haible  <bruno@clisp.org>
32467
32468         Distinguish two kinds of module indicators.
32469         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32470         gl_MODULE_INDICATOR.
32471         (gl_MODULE_INDICATOR): New macro.
32472         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32473         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32474         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32475         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32476         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32477         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32478         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32479         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32480         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32481         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32482         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32483         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32486         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32487         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32488         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32489         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32490         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32491         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32492         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32493         * modules/cloexec (configure.ac): Likewise.
32494         * modules/getopt-gnu (configure.ac): Likewise.
32495         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32496         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32497         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32498         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32499
32500 2010-03-27  Bruno Haible  <bruno@clisp.org>
32501
32502         New module description field 'Comment'.
32503         * gnulib-tool: New option --extract-comment.
32504         (func_usage): Document it.
32505         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32506         (func_get_comment): New function.
32507         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32508
32509 2010-03-27  Bruno Haible  <bruno@clisp.org>
32510
32511         Addendum to 2010-02-07 commit.
32512         * gnulib-tool (func_usage): Document --extract-applicability option.
32513
32514 2010-03-27  Bruno Haible  <bruno@clisp.org>
32515
32516         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32517         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32518         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32519         rather than link errors.
32520
32521 2010-03-27  Bruno Haible  <bruno@clisp.org>
32522
32523         Avoid side effects from tests-related modules on the compilation of lib.
32524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32525         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32526         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32527         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32528         macro.
32529         (func_import): Define a witness macro. Assign it a value that depends
32530         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32531         tests-related modules.
32532         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32533         Reported by Jim Meyering.
32534
32535 2010-03-27  Bruno Haible  <bruno@clisp.org>
32536
32537         Factorize common .m4 code.
32538         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32539         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32540         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32541         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32542         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32543         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32544         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32545         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32546         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32547         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32548         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32549         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32550         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32551         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32552         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32553         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32554         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32555         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32557         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32558         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32559         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32560         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32561         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32562         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32563         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32564         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32565         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32566         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32567         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32568         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32569         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32570
32571 2010-03-27  Bruno Haible  <bruno@clisp.org>
32572
32573         Fix a compilation error on Cygwin with g++ >= 4.3.
32574         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32575         if it is undefined or if we alias it to chmod.
32576         (lstat): Don't warn about the use of this function if it is undefined
32577         or if we alias it to stat.
32578         Reported by Simon Josefsson.
32579
32580 2010-03-27  Bruno Haible  <bruno@clisp.org>
32581
32582         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32583         * modules/getlogin (configure.ac): Update.
32584
32585         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32586         * modules/getlogin_r (configure.ac): Update.
32587
32588         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32589         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32590         * modules/inet_ntop (configure.ac): Update.
32591
32592         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32593         * modules/inet_pton (configure.ac): Update.
32594
32595         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32596         * modules/mbslen (configure.ac): Update.
32597
32598         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32599         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32600         * modules/forkpty (configure.ac): Update.
32601         * modules/openpty (configure.ac): Update.
32602
32603 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32604
32605         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32606         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32607
32608 2010-03-25  Eric Blake  <eblake@redhat.com>
32609
32610         maint: use pragma consistently across replacement headers
32611         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32612         * lib/dirent.in.h (system_header): Likewise.
32613         * lib/errno.in.h (system_header): Likewise.
32614         * lib/float.in.h (system_header): Likewise.
32615         * lib/getopt.in.h (system_header): Likewise.
32616         * lib/iconv.in.h (system_header): Likewise.
32617         * lib/inttypes.in.h (system_header): Likewise.
32618         * lib/langinfo.in.h (system_header): Likewise.
32619         * lib/locale.in.h (system_header): Likewise.
32620         * lib/math.in.h (system_header): Likewise.
32621         * lib/netdb.in.h (system_header): Likewise.
32622         * lib/netinet_in.in.h (system_header): Likewise.
32623         * lib/pty.in.h (system_header): Likewise.
32624         * lib/sched.in.h (system_header): Likewise.
32625         * lib/se-selinux.in.h (system_header): Likewise.
32626         * lib/search.in.h (system_header): Likewise.
32627         * lib/spawn.in.h (system_header): Likewise.
32628         * lib/stdarg.in.h (system_header): Likewise.
32629         * lib/stdint.in.h (system_header): Likewise.
32630         * lib/string.in.h (system_header): Likewise.
32631         * lib/strings.in.h (system_header): Likewise.
32632         * lib/sys_file.in.h (system_header): Likewise.
32633         * lib/sys_ioctl.in.h (system_header): Likewise.
32634         * lib/sys_socket.in.h (system_header): Likewise.
32635         * lib/sys_times.in.h (system_header): Likewise.
32636         * lib/sys_utsname.in.h (system_header): Likewise.
32637         * lib/sys_wait.in.h (system_header): Likewise.
32638         * lib/sysexits.in.h (system_header): Likewise.
32639         * lib/unistd.in.h (system_header): Likewise.
32640         * lib/wctype.in.h (system_header): Likewise.
32641
32642         arpa/inet: fix mingw compilation warning
32643         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32644         Reported by Matthew Bolte.
32645
32646 2010-03-25  Bruno Haible  <bruno@clisp.org>
32647
32648         Avoid collision between gnulib wrapper and libintl wrapper.
32649         * lib/printf.c (printf): Don't define if a printf wrapper is already
32650         defined in intl/printf.c.
32651         Reported by Michel Boaventura <michel@michelboaventura.com>.
32652
32653 2010-03-25  Bruno Haible  <bruno@clisp.org>
32654
32655         Use ANSI C.
32656         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32657
32658 2010-03-25  Bruno Haible  <bruno@clisp.org>
32659
32660         Minor formatting changes.
32661         * lib/acosl.c: Insert space before function argument list.
32662         * lib/argz.c: Likewise.
32663         * lib/asinl.c: Likewise.
32664         * lib/expl.c: Likewise.
32665         * lib/gen-uni-tables.c: Likewise.
32666         * lib/gettext.h: Likewise.
32667         * lib/glthread/lock.h: Likewise.
32668         * lib/tanl.c: Likewise.
32669         * lib/uniname/uniname.c: Likewise.
32670         * tests/test-idpriv-drop.c: Likewise.
32671         * tests/test-idpriv-droptemp.c: Likewise.
32672         * tests/test-lock.c: Likewise.
32673         * tests/test-tls.c: Likewise.
32674         * lib/argp-help.c: Insert space before function-like macro argument
32675         list.
32676         * lib/memcmp.c: Likewise.
32677         * tests/test-base64.c: Likewise.
32678         * lib/localename.c: Insert space before sizeof's argument list.
32679         * lib/safe-alloc.h: Likewise.
32680         * lib/file-set.h: Insert space before macro argument list.
32681         * tests/test-argp.c: Likewise.
32682         * lib/argp-namefrob.h: Insert space before function parameter list.
32683         * lib/getaddrinfo.c: Likewise.
32684         * lib/netdb.in.h: Likewise.
32685         * lib/parse-duration.h: Likewise.
32686         * lib/parse-duration.c: Likewise.
32687         * lib/poll.c: Likewise.
32688         * lib/select.c: Likewise.
32689         * lib/trim.h: Likewise.
32690         * tests/test-usleep.c: Likewise.
32691         * lib/ldexpl.c: Insert space before function parameter list and before
32692         function argument list.
32693         * lib/logl.c: Likewise.
32694         * lib/sqrtl.c: Likewise.
32695         * lib/trim.c: Likewise.
32696         * lib/cosl.c: Use GNU style indentation. Insert space before function
32697         argument list.
32698         * lib/sinl.c: Likewise.
32699         * lib/tsearch.c: Insert space after 'for'.
32700         Reported by Jim Meyering.
32701
32702 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32703
32704         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32705         config header before grepping, as it's not present before
32706         autoreconf/configure are run.  Reported by Simon Josefsson.
32707
32708 2010-03-23  Bruno Haible  <bruno@clisp.org>
32709
32710         pt_chown: Make it work with automake < 1.11.
32711         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32712         Reported by Simon Josefsson.
32713
32714 2010-03-23  Bruno Haible  <bruno@clisp.org>
32715
32716         pt_chown: Don't depend on GPLed modules.
32717         * lib/pt_chown.c: Don't include idpriv.h.
32718         (main): Don't drop privileges.
32719         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32720         Reported by Simon Josefsson.
32721
32722 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32723
32724         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32725         suggestions from karl@freefriends.org (Karl Berry).
32726
32727 2010-03-22  Eric Blake  <eblake@redhat.com>
32728
32729         gethostname: further tweaks
32730         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32731         are overriding gethostname.
32732         Suggested by Bruno Haible.
32733
32734 2010-03-21  Bruno Haible  <bruno@clisp.org>
32735
32736         Fix comments.
32737         * lib/forkpty.c (rpl_forkpty): Fix comment.
32738         * lib/openpty.c (rpl_openpty): Likewise.
32739         Reported by Eric Blake.
32740
32741 2010-03-22  Eric Blake  <eblake@redhat.com>
32742
32743         gethostname: fix build on mingw
32744         * lib/unistd.in.h (includes): Work around fact that mingw
32745         <winsock2.h> re-includes <unistd.h>, by avoiding any
32746         redeclarations if we are being included by <winsock2.h>.
32747         Reported by Matthias Bolte.
32748
32749 2010-03-21  Bruno Haible  <bruno@clisp.org>
32750
32751         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32752         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32753         modifications.
32754         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32755         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32756         provide the replacement.
32757         * modules/forkpty (Depends-on): Add openpty, login_tty.
32758         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32759         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32760         * doc/glibc-functions/forkpty.texi: More supported platforms.
32761         * config/srclist.txt: Add forkpty.c (commented).
32762
32763 2010-03-21  Bruno Haible  <bruno@clisp.org>
32764
32765         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32766         (Makefile.am): Verify that PTY_LIB is defined.
32767
32768         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32769
32770 2010-03-21  Bruno Haible  <bruno@clisp.org>
32771
32772         Tests for module 'login_tty'.
32773         * modules/login_tty-tests: New file.
32774         * tests/test-login_tty.c: New file.
32775
32776         New module 'login_tty'.
32777         * lib/login_tty.c: New file.
32778         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32779         * modules/login_tty: New file.
32780         * doc/glibc-functions/login_tty.texi: Mention the new module.
32781
32782 2010-03-21  Bruno Haible  <bruno@clisp.org>
32783
32784         login_tty: Documentation.
32785         * doc/glibc-functions/login_tty.texi: New file.
32786         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32787
32788 2010-03-21  Bruno Haible  <bruno@clisp.org>
32789
32790         pty: Consistent macro naming.
32791         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32792         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32793         * modules/pty (configure.ac): Update.
32794
32795 2010-03-21  Bruno Haible  <bruno@clisp.org>
32796
32797         Tests for openpty: Make stricter.
32798         * tests/test-openpty.c (main): Add test of canonical processing and
32799         erase.
32800         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32801
32802         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32803         * lib/openpty.c (openpty): New replacement function.
32804         * lib/pty.in.h: Include <termios.h>.
32805         (openpty): Update declaration. Add comments.
32806         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32807         is not declared, arrange to provide the replacement. Check for _getpty
32808         and posix_openpt.
32809         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32810         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32811         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32812         * modules/pty-tests (test_pty_c___LDADD): New variable.
32813         * doc/glibc-functions/openpty.texi: More supported platforms.
32814
32815 2010-03-21  Bruno Haible  <bruno@clisp.org>
32816
32817         setenv: Tweaks.
32818         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32819         the test program.
32820         * doc/posix-functions/setenv.texi: Update platforms list.
32821
32822 2010-03-21  Bruno Haible  <bruno@clisp.org>
32823
32824         New module 'unlockpt'.
32825         * lib/unlockpt.c: New file, from glibc with modifications.
32826         * m4/unlockpt.m4: New file.
32827         * modules/unlockpt: New file.
32828         * lib/stdlib.in.h (unlockpt): New declaration.
32829         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32830         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32831         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32832         HAVE_UNLOCKPT.
32833         * doc/posix-functions/unlockpt.texi: Mention the new module.
32834         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32835         * config/srclist.txt: Add unlockpt.c (commented).
32836
32837 2010-03-21  Jim Meyering  <meyering@redhat.com>
32838
32839         maint.mk: prohibit inclusion of "intprops.h" without use
32840         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32841
32842 2010-03-21  Bruno Haible  <bruno@clisp.org>
32843
32844         New module 'grantpt'.
32845         * lib/grantpt.c: New file, from glibc with modifications.
32846         * m4/grantpt.m4: New file.
32847         * modules/grantpt: New file.
32848         * lib/stdlib.in.h (grantpt): New declaration.
32849         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32850         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32851         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32852         HAVE_GRANTPT.
32853         * doc/posix-functions/grantpt.texi: Mention the new module.
32854         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32855         * config/srclist.txt: Add grantpt.c (commented).
32856
32857 2010-03-21  Bruno Haible  <bruno@clisp.org>
32858
32859         New module 'pt_chown'.
32860         * lib/pt_chown.c: New file, from glibc with modifications.
32861         * lib/pty-private.h: New file, from glibc with modifications.
32862         * modules/pt_chown: New file.
32863         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32864
32865 2010-03-21  Bruno Haible  <bruno@clisp.org>
32866
32867         Tests for module 'ptsname'.
32868         * modules/ptsname-tests: New file.
32869         * tests/test-ptsname.c: New file.
32870
32871         New module 'ptsname'.
32872         * lib/ptsname.c: New file, from glibc with modifications.
32873         * m4/ptsname.m4: New file.
32874         * modules/ptsname: New file.
32875         * lib/stdlib.in.h (ptsname): New declaration.
32876         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32877         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32878         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32879         HAVE_PTSNAME.
32880         * doc/posix-functions/ptsname.texi: Mention the new module.
32881         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32882         * config/srclist.txt: Add ptsname.c (commented).
32883
32884 2010-03-21  Bruno Haible  <bruno@clisp.org>
32885
32886         Tests for module 'ttyname_r'.
32887         * modules/ttyname_r-tests: New file.
32888         * tests/test-ttyname_r.c: New file.
32889
32890         New module 'ttyname_r'.
32891         * lib/ttyname_r.c: New file.
32892         * m4/ttyname_r.m4: New file.
32893         * modules/ttyname_r: New file.
32894         * lib/unistd.in.h (ttyname_r): New declaration.
32895         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32896         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32897         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32898         HAVE_TTYNAME_R.
32899         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32900         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32901
32902 2010-03-20  Bruno Haible  <bruno@clisp.org>
32903
32904         signal: Undefine macro definitions in C++ mode.
32905         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32906         sigfillset): Undefine macro definitions from the system header in C++
32907         mode.
32908         Reported by John W. Eaton <jwe@gnu.org>.
32909
32910 2010-03-20  Bruno Haible  <bruno@clisp.org>
32911
32912         Ensure no #include statements inside extern "C" { ... }.
32913         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32914         contain #include statements.
32915         * lib/time.in.h: Likewise.
32916
32917 2010-03-20  Bruno Haible  <bruno@clisp.org>
32918
32919         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32920         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32921         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32922         Reported by John W. Eaton <jwe@gnu.org>.
32923
32924 2010-03-20  Bruno Haible  <bruno@clisp.org>
32925
32926         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32927         Reported by Jim Meyering.
32928
32929 2010-03-20  Bruno Haible  <bruno@clisp.org>
32930
32931         pipe: Set errno upon failure.
32932         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32933         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32934         errno value in error message.
32935
32936 2010-03-20  Bruno Haible  <bruno@clisp.org>
32937             Jim Meyering  <meyering@redhat.com>
32938
32939         lchown: Avoid "unused variable" warning.
32940         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32941
32942 2010-03-20  Bruno Haible  <bruno@clisp.org>
32943
32944         Work around unlink() bug on MacOS X 10.5.6.
32945         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32946         attempting to unlink a parent directory.
32947         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32948         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32949         activate for the replacement function.
32950         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32951
32952 2010-03-20  Bruno Haible  <bruno@clisp.org>
32953
32954         Fix link errors on Solaris 8.
32955         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32956         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32957
32958 2010-03-19  Jim Meyering  <meyering@redhat.com>
32959
32960         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32961         The _LIBC implementation of build_range_exp correctly honors the
32962         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32963         However, the non-_LIBC implementation would ignore that syntax-bit
32964         flag and return REG_ERANGE unconditionally.
32965         This change makes it honor that flag.
32966         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32967         Make two pointer parameters "const".
32968         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32969         (parse_bracket_exp): Update caller.
32970
32971         regex.m4: correct the reversed range endpoint ([b-a]) test
32972         * m4/regex.m4: When requiring that [b-a] evoke failure,
32973         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32974         test pass once again for x86-based systems.
32975
32976 2010-03-19  Bruno Haible  <bruno@clisp.org>
32977
32978         scandir: Fix link error on Solaris 8.
32979         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32980         macros.
32981
32982 2010-03-19  Bruno Haible  <bruno@clisp.org>
32983
32984         getusershell: Fix documentation.
32985         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32986         module.
32987         * doc/glibc-functions/setusershell.texi: Likewise.
32988
32989         getusershell: Provide declaration, missing on Solaris 9.
32990         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32991         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32992         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32993         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32995         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32997         HAVE_GETUSERSHELL.
32998         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32999
33000 2010-03-19  Bruno Haible  <bruno@clisp.org>
33001
33002         wctype: Provide iswblank function.
33003         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33004         exists and is fine.
33005         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33006         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33007         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33008         * doc/posix-functions/iswblank.texi: Update.
33009
33010 2010-03-19  Bruno Haible  <bruno@clisp.org>
33011
33012         Tests of module 'pty' in C++ mode.
33013         * modules/pty-tests: New file.
33014         * tests/test-pty-c++.cc: New file.
33015         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33016
33017 2010-03-19  Eric Blake  <eblake@redhat.com>
33018
33019         logb: fix documentation
33020         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33021         1.5 declaration bug.
33022
33023         forkpty, openpty: prefer glibc's const-safe prototype
33024         * lib/forkpty.c (rpl_forkpty): New file.
33025         * lib/openpty.c (rpl_openpty): Likewise.
33026         * modules/forkpty (Files): Distribute it.
33027         * modules/openpty (Files): Likewise.
33028         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33029         check...
33030         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33031         replacement for for non-const BSD signature.
33032         * modules/pty (Makefile.am): Substitute witnesses.
33033         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33034         * tests/test-forkpty.c: Update signature check.
33035         * tests/test-openpty.c: Likewise.
33036         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33037         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33038
33039         forkpty, openpty: split functions into new modules
33040         * modules/pty (Makefile.am): Substitute new witnesses.
33041         (Libraries): Move library detection...
33042         * modules/forkpty: ...into new module.
33043         * modules/openpty: Another new module.
33044         * modules/pty-tests: Rename and split...
33045         * modules/forkpty-tests: ...to this...
33046         * modules/openpty-tests: ...and this.
33047         * tests/test-pty.c: Rename and split...
33048         * tests/test-forkpty.c: ...to this...
33049         * tests/test-openpty.c: ...and this.
33050         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33051         (gl_PTY): Split library searching...
33052         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33053         (gl_FORKPTY, gl_OPENPTY): New macros.
33054         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33055         * NEWS: Mention the split.
33056         * MODULES.html.sh (Misc): Document the modules.
33057         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33058         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33059
33060         pty: improve replacement header
33061         * lib/pty.in.h: New file.
33062         * modules/pty (Files): Ship it.
33063         (Makefile.am): Always build replacement.
33064         * m4/pty.m4: Rename...
33065         * m4/pty_h.m4: ...to this.
33066         (gl_PTY): Modernize setting of witness macros; update check of
33067         forkpty to take proper advantage of cache.
33068         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33069
33070         getopt: avoid compiler warning
33071         * lib/getopt.c (attribute_hidden): Remove unused macro.
33072
33073 2010-03-18  Bruno Haible  <bruno@clisp.org>
33074
33075         Fix link errors on Solaris 8.
33076         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33077         * modules/search-tests (test_search_c___LDADD): Likewise.
33078         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33079         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33080         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33081         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33082         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33083         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33084         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33085
33086 2010-03-18  Bruno Haible  <bruno@clisp.org>
33087
33088         Fix bug introduced on 2010-03-14.
33089         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33090         (gl_SPAWN_H): Require it.
33091         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33092         Reported by Simon Josefsson.
33093
33094 2010-03-18  Bruno Haible  <bruno@clisp.org>
33095
33096         Fix typo introduced on 2009-12-31.
33097         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33098         posix_spawn_file_actions_adddup2.
33099
33100 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33101         and Eric Blake  <eblake@redhat.com>
33102
33103         test-vc-list-files-git: make more robust
33104         * tests/test-vc-list-files-git.sh: Unset problematic environment
33105         variables.  Chain commands together.
33106
33107 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33108
33109         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33110         `AC_CHECK_DECL' invocation.
33111
33112 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33113
33114         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33115         appears before executable statements. Suggested by Petr Sumbera
33116         <Petr.Sumbera@Sun.COM>.
33117
33118 2010-03-14  Bruno Haible  <bruno@clisp.org>
33119
33120         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33121         portability problems. Instead use a simpler test.
33122         (main): Check that invalid arguments are rejected only on Linux.
33123
33124 2010-03-14  Bruno Haible  <bruno@clisp.org>
33125
33126         Fix bug introduced on 2009-12-31.
33127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33128         gl_PREREQ_SYS_H_WINSOCK2 always.
33129         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33130         SYS_SOCKET_H variable.
33131         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33132         Update comments.
33133         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33134         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33135         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33137         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33138
33139 2010-03-14  Bruno Haible  <bruno@clisp.org>
33140
33141         Fix values returned by sinl, cosl.
33142         * lib/trigl.h: Add specification comments.
33143         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33144         that combines the values from the precomputed table with the values of
33145         the Chebyshev polynomials.
33146
33147 2010-03-14  Bruno Haible  <bruno@clisp.org>
33148
33149         Fix compilation error when modules 'posix_spawn[p]' are not used.
33150         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33152
33153 2010-03-14  Bruno Haible  <bruno@clisp.org>
33154
33155         Fix compilation error on mingw when module 'time_r' is not used.
33156         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33157         is 1.
33158         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33159         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33160         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33161         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33162
33163 2010-03-14  Bruno Haible  <bruno@clisp.org>
33164
33165         Fix compilation error with Sun C.
33166         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33167         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33168         instead of GCC specific ULONG_LONG_MAX.
33169         * lib/xstrtoll.c: Likewise.
33170         * lib/xstrtoull.c: Likewise.
33171
33172 2010-03-13  Bruno Haible  <bruno@clisp.org>
33173
33174         Allow the user to disable C++ code and tests.
33175         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33176         (gl_PROG_ANSI_CXX): Require it.
33177
33178 2010-03-13  Bruno Haible  <bruno@clisp.org>
33179
33180         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33181         cases.
33182
33183 2010-03-13  Bruno Haible  <bruno@clisp.org>
33184
33185         Test that gnulib does not break the standard C++ headers.
33186         * tests/test-locale-c++2.cc: New file.
33187         * modules/locale-tests (Files): Add it.
33188         (Makefile.am): Compile it for test-locale-c++.
33189         * tests/test-math-c++2.cc: New file.
33190         * modules/math-tests (Files): Add it.
33191         (Makefile.am): Compile it for test-math-c++.
33192         * tests/test-signal-c++2.cc: New file.
33193         * modules/signal-tests (Files): Add it.
33194         (Makefile.am): Compile it for test-signal-c++.
33195         * tests/test-stdio-c++2.cc: New file.
33196         * modules/stdio-tests (Files): Add it.
33197         (Makefile.am): Compile it for test-stdio-c++.
33198         * tests/test-stdlib-c++2.cc: New file.
33199         * modules/stdlib-tests (Files): Add it.
33200         (Makefile.am): Compile it for test-stdlib-c++.
33201         * tests/test-string-c++2.cc: New file.
33202         * modules/string-tests (Files): Add it.
33203         (Makefile.am): Compile it for test-string-c++.
33204         * tests/test-time-c++2.cc: New file.
33205         * modules/time-tests (Files): Add it.
33206         (Makefile.am): Compile it for test-time-c++.
33207         Reported by John W. Eaton <jwe@gnu.org>.
33208
33209 2010-03-13  Bruno Haible  <bruno@clisp.org>
33210
33211         * gnulib-tool (func_usage): Clarify which options are available for
33212         --create-testdir and --create-megatestdir.
33213
33214 2010-03-13  Bruno Haible  <bruno@clisp.org>
33215
33216         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33217         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33218         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33219         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33220         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33221         when appropriate.
33222         Reported by Jim Meyering.
33223
33224 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33225
33226         * gnulib-tool (func_import): Explain origin of code.
33227
33228 2010-03-12  Bruno Haible  <bruno@clisp.org>
33229
33230         Fix problem with automake's definition of CXXLINK.
33231         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33232         Reported by Simon Josefsson and Ludovic Courtès.
33233
33234 2010-03-12  Bruno Haible  <bruno@clisp.org>
33235
33236         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33237         stable releases.
33238
33239 2010-03-11  Bruno Haible  <bruno@clisp.org>
33240
33241         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33242         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33243         whether the system provides one variant or multiple variants of the
33244         function.
33245         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33246         C++ compilers.
33247         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33248         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33249         Reported by Jim Meyering.
33250
33251 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33252
33253         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33254
33255 2010-03-08  Bruno Haible  <bruno@clisp.org>
33256
33257         gnulib-tool: Add support for --libtool in --create-testdir.
33258         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33259         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33260
33261 2010-03-08  Eric Blake  <eblake@redhat.com>
33262
33263         gnulib-tool.texi: mention possibility of git submodule
33264         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33265         submodules.
33266         * doc/.gitignore: Ignore another generated file.
33267
33268 2010-03-08  Karl Berry  <karl@gnu.org>
33269
33270         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33271         of committing gnulib files while skipping others.
33272
33273 2010-03-07  Bruno Haible  <bruno@clisp.org>
33274
33275         Tests of module 'wctype' in C++ mode.
33276         * tests/test-wctype-c++.cc: New file.
33277         * modules/wctype-tests (Files): Add it and tests/signature.h.
33278         (Depends-on): Add ansi-c++-opt.
33279         (Makefile.am): Arrange to compile and run test-wctype-c++.
33280
33281         Tests of module 'wchar' in C++ mode.
33282         * tests/test-wchar-c++.cc: New file.
33283         * modules/wchar-tests (Files): Add it and tests/signature.h.
33284         (Depends-on): Add ansi-c++-opt.
33285         (Makefile.am): Arrange to compile and run test-wchar-c++.
33286         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33287         gl_MODULE_INDICATOR.
33288
33289         Tests of module 'unistd' in C++ mode.
33290         * tests/test-unistd-c++.cc: New file.
33291         * modules/unistd-tests (Files): Add it and tests/signature.h.
33292         (Depends-on): Add ansi-c++-opt.
33293         (Makefile.am): Arrange to compile and run test-unistd-c++.
33294         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33295         gl_MODULE_INDICATOR.
33296
33297         Tests of module 'time' in C++ mode.
33298         * tests/test-time-c++.cc: New file.
33299         * modules/time-tests (Files): Add it and tests/signature.h.
33300         (Depends-on): Add ansi-c++-opt.
33301         (Makefile.am): Arrange to compile and run test-time-c++.
33302         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33303
33304         Tests of module 'sys_time' in C++ mode.
33305         * tests/test-sys_time-c++.cc: New file.
33306         * modules/sys_time-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_time-c++.
33309         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33310         gl_MODULE_INDICATOR.
33311
33312         Tests of module 'sys_stat' in C++ mode.
33313         * tests/test-sys_stat-c++.cc: New file.
33314         * modules/sys_stat-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_stat-c++.
33317         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33318         gl_MODULE_INDICATOR.
33319
33320         Tests of module 'sys_socket' in C++ mode.
33321         * tests/test-sys_socket-c++.cc: New file.
33322         * modules/sys_socket-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_socket-c++.
33325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33326         gl_MODULE_INDICATOR.
33327
33328         Tests of module 'sys_select' in C++ mode.
33329         * tests/test-sys_select-c++.cc: New file.
33330         * modules/sys_select-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_select-c++.
33333         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33334         gl_MODULE_INDICATOR.
33335
33336         Tests of module 'sys_ioctl' in C++ mode.
33337         * tests/test-sys_ioctl-c++.cc: New file.
33338         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33339         (Depends-on): Add ansi-c++-opt.
33340         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33341         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33342         gl_MODULE_INDICATOR.
33343
33344         Tests of module 'string' in C++ mode.
33345         * tests/test-string-c++.cc: New file.
33346         * modules/string-tests (Files): Add it and tests/signature.h.
33347         (Depends-on): Add ansi-c++-opt.
33348         (Makefile.am): Arrange to compile and run test-string-c++.
33349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33350         gl_MODULE_INDICATOR.
33351
33352         Tests of module 'stdlib' in C++ mode.
33353         * tests/test-stdlib-c++.cc: New file.
33354         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33355         (Depends-on): Add ansi-c++-opt.
33356         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33357         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33358         gl_MODULE_INDICATOR.
33359
33360         Tests of module 'stdio' in C++ mode.
33361         * tests/test-stdio-c++.cc: New file.
33362         * modules/stdio-tests (Files): Add it and tests/signature.h.
33363         (Depends-on): Add ansi-c++-opt.
33364         (Makefile.am): Arrange to compile and run test-stdio-c++.
33365         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33366         gl_MODULE_INDICATOR.
33367
33368         Tests of module 'spawn' in C++ mode.
33369         * tests/test-spawn-c++.cc: New file.
33370         * modules/spawn-tests (Files): Add it and tests/signature.h.
33371         (Depends-on): Add ansi-c++-opt.
33372         (Makefile.am): Arrange to compile and run test-spawn-c++.
33373         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33374         gl_MODULE_INDICATOR.
33375
33376         Tests of module 'signal' in C++ mode.
33377         * tests/test-signal-c++.cc: New file.
33378         * modules/signal-tests (Files): Add it and tests/signature.h.
33379         (Depends-on): Add ansi-c++-opt.
33380         (Makefile.am): Arrange to compile and run test-signal-c++.
33381         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33382         gl_MODULE_INDICATOR.
33383
33384         Tests of module 'search' in C++ mode.
33385         * tests/test-search-c++.cc: New file.
33386         * modules/search-tests (Files): Add it and tests/signature.h.
33387         (Depends-on): Add ansi-c++-opt.
33388         (Makefile.am): Arrange to compile and run test-search-c++.
33389         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33390         gl_MODULE_INDICATOR.
33391
33392         Tests of module 'math' in C++ mode.
33393         * tests/test-math-c++.cc: New file.
33394         * modules/math-tests (Files): Add it and tests/signature.h.
33395         (Depends-on): Add ansi-c++-opt.
33396         (Makefile.am): Arrange to compile and run test-math-c++.
33397         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33398
33399         Tests of module 'locale' in C++ mode.
33400         * tests/test-locale-c++.cc: New file.
33401         * modules/locale-tests (Files): Add it and tests/signature.h.
33402         (Depends-on): Add ansi-c++-opt.
33403         (Makefile.am): Arrange to compile and run test-locale-c++.
33404         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33405         gl_MODULE_INDICATOR.
33406
33407         Tests of module 'langinfo' in C++ mode.
33408         * tests/test-langinfo-c++.cc: New file.
33409         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33410         (Depends-on): Add ansi-c++-opt.
33411         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33412         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33413         gl_MODULE_INDICATOR.
33414
33415         Tests of module 'iconv-h' in C++ mode.
33416         * tests/test-iconv-h-c++.cc: New file.
33417         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33418         (Depends-on): Add ansi-c++-opt.
33419         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33420
33421         Tests of module 'glob' in C++ mode.
33422         * tests/test-glob-c++.cc: New file.
33423         * modules/glob-tests (Files): Add it.
33424         (Depends-on): Add ansi-c++-opt.
33425         (Makefile.am): Arrange to compile and run test-glob-c++.
33426
33427         Tests of module 'fcntl-h' in C++ mode.
33428         * tests/test-fcntl-h-c++.cc: New file.
33429         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33430         (Depends-on): Add ansi-c++-opt.
33431         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33432         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33433         gl_MODULE_INDICATOR.
33434
33435         Tests of module 'dirent' in C++ mode.
33436         * tests/test-dirent-c++.cc: New file.
33437         * modules/dirent-tests (Files): Add it and tests/signature.h.
33438         (Depends-on): Add ansi-c++-opt.
33439         (Makefile.am): Arrange to compile and run test-dirent-c++.
33440         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33441         gl_MODULE_INDICATOR.
33442
33443         New module 'ansi-c++-opt'.
33444         * modules/ansi-c++-opt: New file.
33445         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33446
33447         Document C++ namespace mode.
33448         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33449
33450         wctype: Avoid #define replacements in C++ mode.
33451         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33452         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33453         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33454         In C++, define a namespaced alias symbol.
33455         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33456         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33457         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33458         rule.
33459
33460         wchar: Avoid #define replacements in C++ mode.
33461         * lib/wchar.in.h: Include c++defs.h.
33462         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33463         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33464         symbol.
33465         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33466         * modules/wchar (Depends-on): Add c++defs.
33467         (Makefile.am): Update wchar.h rule.
33468
33469         unistd: Avoid #define replacements in C++ mode.
33470         * lib/unistd.in.h: Include c++defs.h.
33471         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33472         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33473         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33474         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33475         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33476         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33477         symbol.
33478         (environ): Update.
33479         * modules/unistd (Depends-on): Add c++defs.
33480         (Makefile.am): Update unistd.h rule.
33481
33482         time: Avoid #define replacements in C++ mode.
33483         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33484         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33485         define a namespaced alias symbol.
33486         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33487         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33488         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33489         * modules/time (Depends-on): Add c++defs, warn-on-use.
33490         (Makefile.am): Update time.h rule.
33491         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33492         * modules/nanosleep (configure.ac): Likewise.
33493         * modules/strptime (configure.ac): Likewise.
33494         * modules/timegm (configure.ac): Likewise.
33495
33496         sys_time: Avoid #define replacements in C++ mode.
33497         * lib/sys_time.in.h: Include c++defs.h.
33498         (gettimeofday): In C++, define a namespaced alias symbol.
33499         * modules/sys_time (Depends-on): Add c++defs.
33500         (Makefile.am): Update sys/time.h rule.
33501
33502         sys_stat: Avoid #define replacements in C++ mode.
33503         * lib/sys_stat.in.h: Include c++defs.h.
33504         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33505         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33506         namespaced alias symbol.
33507         In C++, define a namespaced alias symbol.
33508         * modules/sys_stat (Depends-on): Add c++defs.
33509         (Makefile.am): Update sys/stat.h rule.
33510
33511         sys_socket: Avoid #define replacements in C++ mode.
33512         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33513         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33514         definitions also when the system has a <sys/socket.h>.
33515         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33516         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33517         In C++, define a namespaced alias symbol.
33518         * modules/sys_socket (Depends-on): Add c++defs.
33519         (Makefile.am): Update sys/socket.h rule.
33520
33521         sys_select: Avoid #define replacements in C++ mode.
33522         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33523         definitions also when the system has a <sys/select.h>.
33524         (select): In C++, define a namespaced alias symbol.
33525         * modules/sys_select (Depends-on): Add c++defs.
33526         (Makefile.am): Update sys/select.h rule.
33527
33528         sys_ioctl: Avoid #define replacements in C++ mode.
33529         * lib/sys_ioctl.in.h: Include c++defs.h.
33530         (ioctl): In C++, define a namespaced alias symbol.
33531         * modules/sys_ioctl (Depends-on): Add c++defs.
33532         (Makefile.am): Update sys/ioctl.h rule.
33533
33534         string: Avoid #define replacements in C++ mode.
33535         * lib/string.in.h: Include c++defs.h.
33536         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33537         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33538         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33539         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33540         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33541         * modules/string (Depends-on): Add c++defs.
33542         (Makefile.am): Update string.h rule.
33543
33544         stdlib: Avoid #define replacements in C++ mode.
33545         * lib/stdlib.in.h: Include c++defs.h.
33546         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33547         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33548         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33549         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33550         symbol.
33551         * modules/stdlib (Depends-on): Add c++defs.
33552         (Makefile.am): Update stdlib.h rule.
33553
33554         stdio: Avoid #define replacements in C++ mode.
33555         * lib/stdio.in.h: Include c++defs.h.
33556         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33557         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33558         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33559         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33560         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33561         namespaced alias symbol.
33562         * modules/stdio (Depends-on): Add c++defs.
33563         (Makefile.am): Update stdio.h rule.
33564
33565         spawn: Avoid #define replacements in C++ mode.
33566         * lib/spawn.in.h: Include c++defs.h.
33567         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33568         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33569         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33570         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33571         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33572         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33573         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33574         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33575         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33576         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33577         In C++, define a namespaced alias symbol.
33578         * modules/spawn (Depends-on): Add c++defs.
33579         (Makefile.am): Update spawn.h rule.
33580
33581         signal: Avoid #define replacements in C++ mode.
33582         * lib/signal.in.h: Include c++defs.h.
33583         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33584         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33585         namespaced alias symbol.
33586         * modules/signal (Depends-on): Add c++defs.
33587         (Makefile.am): Update signal.h rule.
33588
33589         search: Avoid #define replacements in C++ mode.
33590         * lib/search.in.h: Include c++defs.h.
33591         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33592         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33593         symbol.
33594         * modules/search (Depends-on): Add c++defs.
33595         (Makefile.am): Update search.h rule.
33596
33597         math: Avoid #define replacements in C++ mode.
33598         * lib/math.in.h: Include c++defs.h.
33599         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33600         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33601         trunc, truncl): In C++, define a namespaced alias symbol.
33602         * modules/math (Depends-on): Add c++defs.
33603         (Makefile.am): Update math.h rule.
33604
33605         locale: Avoid #define replacements in C++ mode.
33606         * lib/locale.in.h: Include c++defs.h.
33607         (duplocale): In C++, define a namespaced alias symbol.
33608         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33609         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33610         * modules/locale (Depends-on): Add c++defs.
33611         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33612
33613         langinfo: Avoid #define replacements in C++ mode.
33614         * lib/langinfo.in.h: Include c++defs.h.
33615         (nl_langinfo): In C++, define a namespaced alias symbol.
33616         * modules/langinfo (Depends-on): Add c++defs.
33617         (Makefile.am): Update langinfo.h rule.
33618
33619         iconv-h: Avoid #define replacements in C++ mode.
33620         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33621         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33622         symbol.
33623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33624         whenever iconv is present.
33625         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33626         (Makefile.am): Update iconv.h rule.
33627
33628         glob: Avoid #define replacements in C++ mode.
33629         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33630         (_gl_glob_errfunc_fn): New type.
33631         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33632         symbol.
33633         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33634         (Makefile.am): Update glob.h rule.
33635
33636         fcntl-h: Avoid #define replacements in C++ mode.
33637         * lib/fcntl.in.h: Include c++defs.h.
33638         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33639         * modules/fcntl-h (Depends-on): Add c++defs.
33640         (Makefile.am): Update fcntl.h rule.
33641
33642         dirent: Avoid #define replacements in C++ mode.
33643         * lib/dirent.in.h: Include c++defs.h.
33644         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33645         namespaced alias symbol.
33646         (dirfd): Update declaration.
33647         * modules/dirent (Depends-on): Add c++defs.
33648         (Makefile.am): Update dirent.h rule.
33649
33650         ctype: Make it usable in C++ code.
33651         * lib/ctype.in.h: Include c++defs.h.
33652         (isblank): Declare as extern "C".
33653         * modules/ctype (Depends-on): Add c++defs.
33654         (Makefile.am): Update ctype.h rule.
33655
33656         New module 'c++defs'.
33657         * modules/c++defs: New file.
33658         * build-aux/c++defs.h: New file.
33659         Reported by John W. Eaton <jwe@gnu.org>.
33660
33661 2010-03-07  Bruno Haible  <bruno@clisp.org>
33662
33663         logb: Provide missing declaration for Cygwin.
33664         * lib/math.in.h (logb): New declaration.
33665         * m4/logb.m4: New file.
33666         * modules/logb (Files): Add m4/logb.m4.
33667         (Depends-on): Add math.
33668         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33669         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33671         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33672         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33673
33674 2010-03-07  Bruno Haible  <bruno@clisp.org>
33675
33676         Fix test-cond link error.
33677         * tests/test-cond.c: Include <stdio.h>.
33678
33679 2010-03-07  Bruno Haible  <bruno@clisp.org>
33680
33681         Fix test-dirent-safer link error.
33682         * modules/dirent-safer-tests (Makefile.am): Define
33683         test_dirent_safer_LDADD.
33684
33685 2010-03-07  Bruno Haible  <bruno@clisp.org>
33686
33687         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33688         among default module list.
33689
33690 2010-03-07  Bruno Haible  <bruno@clisp.org>
33691
33692         Fix link error on platforms with GNU libiconv.
33693         * modules/unistr/u8-strcoll-tests (Makefile): Define
33694         test_u8_strcoll_LDADD.
33695         * modules/unistr/u16-strcoll-tests (Makefile): Define
33696         test_u16_strcoll_LDADD.
33697         * modules/unistr/u32-strcoll-tests (Makefile): Define
33698         test_u32_strcoll_LDADD.
33699
33700 2010-03-07  Bruno Haible  <bruno@clisp.org>
33701
33702         Use POSIX declarations for socket functions.
33703         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33704         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33705         rpl_sendto): Change declaration to match POSIX.
33706         * lib/connect.c (rpl_connect): Likewise.
33707         * lib/accept.c (rpl_accept): Likewise.
33708         * lib/bind.c (rpl_bind): Likewise.
33709         * lib/getpeername.c (rpl_getpeername): Likewise.
33710         * lib/getsockname.c (rpl_getsockname): Likewise.
33711         * lib/recv.c (rpl_recv): Likewise.
33712         * lib/send.c (rpl_send): Likewise.
33713         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33714         * lib/sendto.c (rpl_sendto): Likewise.
33715
33716 2010-03-06  Bruno Haible  <bruno@clisp.org>
33717
33718         Clarify access, euidaccess, faccessat.
33719         * doc/posix-functions/faccessat.texi: Mention security problem under
33720         "Other problems", not "Portability problems".
33721         * doc/posix-functions/access.texi: Likewise. Mention a related security
33722         problem.
33723         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33724         * lib/euidaccess.c: Add comments about platforms.
33725         * lib/unistd.in.h (access, euidaccess): Add warnings.
33726
33727 2010-03-07  Bruno Haible  <bruno@clisp.org>
33728
33729         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33730         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33731         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33732         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33733         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33734         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33735         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33736         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33737         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33738         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33739         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33740         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33741         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33742         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33743         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33744         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33745         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33746         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33747         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33748         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33749         Likewise.
33750         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33751         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33752         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33753         Likewise.
33754         * tests/test-spawn.c (main): Make it work when
33755         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33756
33757 2010-03-07  Bruno Haible  <bruno@clisp.org>
33758
33759         Fix incorrect Makefile.am generation in German locale.
33760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33761         Execute sed command with character range in C locale.
33762
33763 2010-03-06  Bruno Haible  <bruno@clisp.org>
33764
33765         Tests for module 'iconv-h'.
33766         * modules/iconv-h-tests: New file.
33767         * tests/test-iconv-h.c: New file.
33768
33769         New module 'iconv-h'.
33770         * modules/iconv-h: New file.
33771         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33772         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33773         (configure.ac): Remove gl_ICONV_H.
33774         (Makefile.am): Remove rule for iconv.h.
33775
33776 2010-03-06  Bruno Haible  <bruno@clisp.org>
33777
33778         More consistent naming of *.m4 files.
33779         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33780         * modules/wctype (Files): Update.
33781
33782         More consistent naming of *.m4 files.
33783         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33784         * modules/wchar (Files): Update.
33785
33786 2010-03-06  Jim Meyering  <meyering@redhat.com>
33787
33788         euidaccess: relax license to LGPLv2+
33789         * modules/euidaccess (License): Relax to LGPLv2+.
33790
33791 2010-03-06  Bruno Haible  <bruno@clisp.org>
33792
33793         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33794         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33795         (Makefile.am): Augment lib_SOURCES instead.
33796
33797 2010-03-04  Jim Meyering  <meyering@redhat.com>
33798
33799         utime: remove obsolete module
33800         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33801         unnecessary for years, and has been marked as obsolete for 10 months.
33802         * modules/utime: Remove file.
33803         * lib/utime.c: Remove file.
33804         * m4/utime.m4: Remove file.
33805         * m4/utimes-null.m4: Remove file.
33806         * doc/posix-functions/utime.texi (utime): Remove reference to
33807         the module.  Move the sole "fixed by gnulib" item into the
33808         "problems not fixed by Gnulib" list.
33809         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33810
33811 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33812
33813         * modules/exit (License): Relax license to LGPLv2+.
33814         (Status): Mark as obsolete.
33815         * NEWS: Mention deprecated 'exit' module.
33816         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33817         of now obsolete 'exit'.
33818
33819 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33820
33821         fts-lgpl: remove unused module
33822         * modules/fts-lgpl: Remove.
33823         * MODULES.html.sh (func_all_modules): Adjust.
33824         * check-module (find_included_lib_files): Adjust.
33825         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33826
33827 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33828
33829         copy-acl: enhance Solaris ACL error handling
33830         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33831         * lib/set-mode-acl.c (qset_acl): Likewise.
33832
33833 2010-03-02  Bruno Haible  <bruno@clisp.org>
33834
33835         spawn: Don't override the system defined values on FreeBSD 8.
33836         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33837         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33838         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33839         if HAVE_POSIX_SPAWN is 1.
33840         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33841
33842 2010-03-01  Bruno Haible  <bruno@clisp.org>
33843
33844         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33845         regarding Automake.
33846
33847 2010-02-25  Bruno Haible  <bruno@clisp.org>
33848
33849         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33850         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33851         setting, not afterwards.
33852         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33853
33854 2010-02-24  Eric Blake  <eblake@redhat.com>
33855
33856         bootstrap, git-version-gen: use timestamp
33857         * build-aux/git-version-gen (scriptversion): Force UTC.
33858         * build-aux/bootstrap (scriptversion): New variable.
33859
33860         bootstrap: allow older git
33861         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33862         older than 1.6.4.  Requested by the libvirt project.
33863
33864 2010-02-23  Eric Blake  <eblake@redhat.com>
33865
33866         warn-on-use: work with old autoconf
33867         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33868         AS_VAR semantics of autoconf 2.60.
33869         Reported by Bruno Haible.
33870
33871         bootstrap: improve some comments
33872         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33873         clarification comments.
33874
33875         gettimeofday: provide correct function
33876         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33877         when replacement is declared, otherwise provide gettimeofday.
33878         Reported by Michael Goffioul.
33879
33880 2010-02-23  Jim Meyering  <meyering@redhat.com>
33881
33882         lib-ignore: relax license to "unlimited", not LGPLv2+
33883         * modules/lib-ignore (License): Relax to "unlimited".
33884
33885 2010-02-23  Jim Meyering  <meyering@redhat.com>
33886
33887         lib-ignore: relax license to LGPLv2+
33888         * modules/lib-ignore (License): Relax to LGPLv2+.
33889
33890 2010-02-22  Eric Blake  <eblake@redhat.com>
33891
33892         lseek: avoid bash 3.2 broken pipe bug
33893         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33894         warning from bash 3.2.
33895         Reported by Ben Pfaff, with analysis from Bruno Haible.
33896
33897         bootstrap: support non-FSF copyright holder
33898         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33899         bootstrap.conf override of COPYRIGHT_HOLDER.
33900         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33901
33902         bootstrap: interoperate with gettext 0.14.1
33903         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33904
33905         bootstrap: allow for alternate submodule location
33906         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33907         hardcoding submodule location.
33908         (gnulib_mk): Allow direct use of Makefile.am.
33909
33910         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33911         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33912         rather than reconfiguring where the submodule points.
33913
33914         gettimeofday: restore support for platforms that lack function
33915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33916         replacement if function is missing.
33917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33918         * modules/sys_time (Makefile.am): Substitute it.
33919         * lib/sys_time.in.h (gettimeofday): Check it.
33920         Reported by Michael Goffioul.
33921
33922 2010-02-21  Bruno Haible  <bruno@clisp.org>
33923
33924         * lib/stdio.in.h (obstack_printf): Fix typo.
33925
33926 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33927
33928         vc-list-files: use bzr ls's -R option
33929         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33930         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33931
33932 2010-02-21  Jim Meyering  <meyering@redhat.com>
33933
33934         init.sh: fix EXEEXT shims to work also for names like test-prog
33935         * tests/init.sh: Re-exec a better shell, when needed.
33936         If the current shell lacks support for posix $(...), an init.sh-using
33937         test will now try to find a shell that supports that.  If EXEEXT is
33938         nonempty, we also require support for hyphen-in-alias-name and shell
33939         substitutions like ${var#glob}.  Failure to find such a shell results
33940         in a skipped test.
33941
33942 2010-02-21  Bruno Haible  <bruno@clisp.org>
33943
33944         Really work around around "broken pipe" error message from bash 3.2.
33945         * gnulib-tool (func_reset_sigpipe): Remove function.
33946         (echo): In bash 3.2, define to a function that uses printf.
33947         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33948
33949 2010-02-20  Bruno Haible  <bruno@clisp.org>
33950
33951         Restore support for automake 1.9.6 with autoconf 2.61.
33952         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33953         Reported by James Youngman <jay@gnu.org>.
33954
33955 2010-02-20  Bruno Haible  <bruno@clisp.org>
33956
33957         Improve *printf warning condition.
33958         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33959         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33960         and the function is overridden due to SIGPIPE emulation.
33961
33962 2010-02-20  Bruno Haible  <bruno@clisp.org>
33963
33964         * lib/stdio.in.h: Tweak comments.
33965
33966 2010-02-19  Bruno Haible  <bruno@clisp.org>
33967
33968         Make it easier to find modules. New gnulib-tool option '--find'.
33969         * gnulib-tool: New option --find.
33970         (func_usage): Document it.
33971         (func_sanitize_modulelist): New function, extracted from
33972         func_all_modules.
33973         (func_all_modules): Invoke it.
33974         * doc/gnulib-tool.texi (Which modules?): New node.
33975
33976 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33977
33978         * lib/sys_select.in.h: Provide select replacement even if
33979         sys/select.h exists on a system, for Interix.
33980
33981 2010-02-18  Jim Meyering  <meyering@redhat.com>
33982
33983         init.sh: don't use $(...) just yet
33984         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33985         to accommodate e.g., Solaris' /bin/sh.
33986
33987 2010-02-17  Bruno Haible  <bruno@clisp.org>
33988
33989         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33990         Reported by Ludovic Courtès <ludo@gnu.org>.
33991
33992 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33993
33994         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33995         linking with -lintl.
33996
33997 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33998
33999         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34000         if not provided by the system's netdb.h.  Reported by
34001         ludo@gnu.org (Ludovic Courtès).
34002
34003 2010-02-15  Jim Meyering  <meyering@redhat.com>
34004
34005         init.sh: improve portability and efficiency
34006         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34007         "dummy" in a for loop.
34008         Use '!', not '^' to select the complement of a character set used
34009         in a "case" statement.
34010         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34011         Suggestions from Eric Blake.
34012
34013         init.sh: automatically accommodate programs with the .exe suffix
34014         Automatically arrange for an invocation of "prog" to execute the
34015         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34016         may use the simpler "prog", yet still work when built on a system
34017         that requires specifying the added suffix.
34018         Do this by constructing a function named "prog" that invokes
34019         "prog.exe" for each .exe file in selected directories.
34020         * tests/init.sh (find_exe_basenames_): New function.
34021         (create_exe_shim_functions_): New function.
34022         (path_prepend_): Use it.
34023
34024         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34025         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34026         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34027
34028 2010-02-14  Jim Meyering  <meyering@redhat.com>
34029
34030         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34031         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34032         (sc_prohibit_hash_pjw_without_use): New rule.
34033
34034         maint.mk: allow the default upload destination dir to be overridden
34035         * top/maint.mk (upload_dest_dir_): Define with a default that
34036         preserves the status quo.
34037         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34038         Reported by Peter Simons.
34039
34040         maint.mk: prohibit inclusion of "hash.h" without_use
34041         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34042
34043 2010-02-10  Jim Meyering  <meyering@redhat.com>
34044
34045         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34046         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34047
34048 2010-02-09  Eric Blake  <ebb9@byu.net>
34049         and Bruno Haible  <bruno@clisp.org>
34050
34051         obstack-printf-posix: ensure declaration
34052         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34053         extracted from gl_FUNC_OBSTACK_PRINTF.
34054         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34055         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34056         Likewise.
34057         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34058         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34059         0.
34060
34061 2010-02-08  Bruno Haible  <bruno@clisp.org>
34062
34063         gnulib-tool: Fix typo in 2010-02-07 commit.
34064         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34065         Reported by Eric Blake.
34066
34067 2010-02-07  Bruno Haible  <bruno@clisp.org>
34068
34069         gnulib-tool: Fix up caching patches.
34070         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34071         option --no-cache. Use associative arrays when supported by the shell.
34072         (sed_comments): New variable.
34073         (modcache): Renamed from do_cache.
34074         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34075         abbreviate unnecessarily.
34076         (have_associative): New variable.
34077         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34078         way also for ksh and zsh.
34079         (func_init_sed_convert_to_cache_statements): New function, extracted
34080         from func_cache_lookup_module. Add support for associative arrays.
34081         Don't set the c_MODULE_cached variable here. Ignore all lines before
34082         the first field header. Remove only the final newline, not all trailing
34083         newlines. Support empty fields correctly. Limit the use of 'eval' to
34084         assignments.
34085         (func_get_description, func_get_status, func_get_notice,
34086         func_get_applicability, func_get_filelist, func_get_dependencies,
34087         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34088         func_get_automake_snippet, func_get_include_directive,
34089         func_get_link_directive, func_get_license, func_get_maintainer):
34090         Update documentation. List the unoptimized code first. Add support for
34091         associative arrays. Limit the use of 'eval' to assignments.
34092         (func_get_applicability): Undo stylistic pessimisations.
34093         (func_get_automake_snippet, func_get_include_directive): Reduce code
34094         duplication.
34095         (func_modules_transitive_closure, func_modules_add_dummy,
34096         func_modules_notice, func_modules_to_filelist, func_add_file,
34097         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34098         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34099         func_create_testdir, func_create_megatestdir): Update documentation.
34100
34101 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34102
34103         * gnulib-tool (func_cache_lookup_module): Store the module name
34104         belonging to the cache variable; error out if two different
34105         module names map to the same cache variable name.
34106
34107 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34108
34109         gnulib-tool: Make caching optional.
34110         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34111         Update matching short versions of --no-changelog.
34112         (func_usage): Update.
34113         (sed_extract_cache_prog): Renamed from ...
34114         (sed_extract_prog): ... this; revert to old extraction script.
34115         (func_get_description, func_get_status)
34116         (func_get_notice, func_get_applicability, func_get_filelist)
34117         (func_get_dependencies, func_get_autoconf_early_snippet)
34118         (func_get_autoconf_snippet, func_get_automake_snippet)
34119         (func_get_include_directive, func_get_link_directive)
34120         (func_get_license, func_get_maintainer): If $do_cache is false,
34121         use old, non-caching extraction scripts.
34122         Suggestion by Bruno Haible.
34123
34124 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34125
34126         gnulib-tool: cache module metainformation.
34127         * gnulib-tool (sed_extract_prog): Match newline before each
34128         header, and rewrite header to a shell variable suffix.
34129         (func_cache_var, func_cache_lookup_module): New functions,
34130         to turn a module name into a cache variable prefix, and to
34131         look up and cache module metainformation.
34132         (func_get_description, func_get_status)
34133         (func_get_notice, func_get_applicability, func_get_filelist)
34134         (func_get_dependencies, func_get_autoconf_early_snippet)
34135         (func_get_autoconf_snippet, func_get_automake_snippet)
34136         (func_get_include_directive, func_get_link_directive)
34137         (func_get_license, func_get_maintainer): Use
34138         func_cache_lookup_module.
34139
34140 2010-02-07  Bruno Haible  <bruno@clisp.org>
34141
34142         fnctl: Fix missing dependency.
34143         * modules/fcntl (Depends-on): Add getdtablesize.
34144         Reported by John W. Eaton <jwe@gnu.org>.
34145
34146 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34147
34148         Argp: fix recognition of short alias options.
34149
34150         * lib/argp-parse.c (convert_options): Fix improper use of
34151         `|' between character values.
34152         * tests/test-argp.c (group1_option): New alias option
34153         --read (-r).
34154         (group1_parser): Special handling for 'r'.
34155         (test15): New test case.
34156         (test_fun): Add test15.
34157         * tests/test-argp-2.sh: Update expected --help and --usage
34158         outputs.
34159
34160 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34161
34162         * tests/test-argp.c: Fix indentation.
34163
34164 2010-02-04  Eric Blake  <ebb9@byu.net>
34165
34166         gettimeofday: expose type of second argument
34167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34168         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34169         * tests/test-gettimeofday.c: Use it to silence warning.
34170         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34171         the issue.
34172
34173 2010-02-03  Jim Meyering  <meyering@redhat.com>
34174
34175         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34176         * lib/regcomp.c (TYPE_SIGNED): Define.
34177         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34178
34179         regcomp.c: avoid a new -Wshadow warning
34180         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34181
34182 2010-02-01  Jim Meyering  <meyering@redhat.com>
34183
34184         removing useless parentheses in cpp #define directives
34185         For motivation, see commit c0221df4, "define STREQ(a,b)
34186         consistently, removing useless parentheses"
34187         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34188         * lib/mountlist.c (MNT_IGNORE): Likewise.
34189         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34190
34191 2010-02-01  Eric Blake  <ebb9@byu.net>
34192
34193         sys_time: use link-warning
34194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34195         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34196         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34197         * modules/sys_time (Depends-on): Add warn-on-use.
34198         (Makefile.am): Always build replacement.
34199         (configure.ac): Update substitutions.
34200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34201         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34202         bother with SYS_TIME_H.
34203         * modules/gettimeofday (configure.ac): Declare indicator.
34204         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34205         in use.
34206
34207         closein-tests: silence compiler warning
34208         * tests/test-closein.c (main): Ignore fread result.
34209         * modules/closein-tests (Depends-on): Add ignore-value.
34210
34211         tests: silence warning about system return
34212         * tests/test-areadlink-with-size.c (main): Ignore system result.
34213         * tests/test-areadlink.c (main): Likewise.
34214         * tests/test-areadlinkat-with-size.c (main): Likewise.
34215         * tests/test-areadlinkat.c (main): Likewise.
34216         * tests/test-canonicalize-lgpl.c (main): Likewise.
34217         * tests/test-canonicalize.c (main): Likewise.
34218         * tests/test-chown.c (main): Likewise.
34219         * tests/test-fchownat.c (main): Likewise.
34220         * tests/test-fdutimensat.c (main): Likewise.
34221         * tests/test-fstatat.c (main): Likewise.
34222         * tests/test-futimens.c (main): Likewise.
34223         * tests/test-lchown.c (main): Likewise.
34224         * tests/test-link.c (main): Likewise.
34225         * tests/test-linkat.c (main): Likewise.
34226         * tests/test-lstat.c (main): Likewise.
34227         * tests/test-mkdir.c (main): Likewise.
34228         * tests/test-mkdirat.c (main): Likewise.
34229         * tests/test-mkfifo.c (main): Likewise.
34230         * tests/test-mkfifoat.c (main): Likewise.
34231         * tests/test-mknod.c (main): Likewise.
34232         * tests/test-readlink.c (main): Likewise.
34233         * tests/test-remove.c (main): Likewise.
34234         * tests/test-rename.c (main): Likewise.
34235         * tests/test-renameat.c (main): Likewise.
34236         * tests/test-rmdir.c (main): Likewise.
34237         * tests/test-symlink.c (main): Likewise.
34238         * tests/test-symlinkat.c (main): Likewise.
34239         * tests/test-unlink.c (main): Likewise.
34240         * tests/test-unlinkat.c (main): Likewise.
34241         * tests/test-utimens.c (main): Likewise.
34242         * tests/test-utimensat.c (main): Likewise.
34243         * modules/areadlink-tests (Depends-on): Add ignore-value.
34244         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34245         * modules/areadlinkat-tests (Depends-on): Likewise.
34246         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34247         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34248         * modules/canonicalize-tests (Depends-on): Likewise.
34249         * modules/chown-tests (Depends-on): Likewise.
34250         * modules/fdutimensat-tests (Depends-on): Likewise.
34251         * modules/futimens-tests (Depends-on): Likewise.
34252         * modules/lchown-tests (Depends-on): Likewise.
34253         * modules/link-tests (Depends-on): Likewise.
34254         * modules/linkat-tests (Depends-on): Likewise.
34255         * modules/lstat-tests (Depends-on): Likewise.
34256         * modules/mkdir-tests (Depends-on): Likewise.
34257         * modules/mkfifo-tests (Depends-on): Likewise.
34258         * modules/mkfifoat-tests (Depends-on): Likewise.
34259         * modules/mknod-tests (Depends-on): Likewise.
34260         * modules/openat-tests (Depends-on): Likewise.
34261         * modules/readlink-tests (Depends-on): Likewise.
34262         * modules/remove-tests (Depends-on): Likewise.
34263         * modules/rename-tests (Depends-on): Likewise.
34264         * modules/renameat-tests (Depends-on): Likewise.
34265         * modules/rmdir-tests (Depends-on): Likewise.
34266         * modules/symlink-tests (Depends-on): Likewise.
34267         * modules/symlinkat-tests (Depends-on): Likewise.
34268         * modules/unlink-tests (Depends-on): Likewise.
34269         * modules/utimens-tests (Depends-on): Likewise.
34270         * modules/utimensat-tests (Depends-on): Likewise.
34271
34272 2010-01-31  Bruno Haible  <bruno@clisp.org>
34273
34274         Perform the same test for many <math.h> functions.
34275         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34276         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34277         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34278         of gl_MATHFUNC.
34279         * modules/acos (configure.ac): Likewise.
34280         * modules/asin (configure.ac): Likewise.
34281         * modules/atan (configure.ac): Likewise.
34282         * modules/atan2 (configure.ac): Likewise.
34283         * modules/cbrt (configure.ac): Likewise.
34284         * modules/copysign (configure.ac): Likewise.
34285         * modules/cos (configure.ac): Likewise.
34286         * modules/cosh (configure.ac): Likewise.
34287         * modules/erf (configure.ac): Likewise.
34288         * modules/erfc (configure.ac): Likewise.
34289         * modules/exp (configure.ac): Likewise.
34290         * modules/fmod (configure.ac): Likewise.
34291         * modules/hypot (configure.ac): Likewise.
34292         * modules/j0 (configure.ac): Likewise.
34293         * modules/j1 (configure.ac): Likewise.
34294         * modules/jn (configure.ac): Likewise.
34295         * modules/lgamma (configure.ac): Likewise.
34296         * modules/log (configure.ac): Likewise.
34297         * modules/log10 (configure.ac): Likewise.
34298         * modules/log1p (configure.ac): Likewise.
34299         * modules/pow (configure.ac): Likewise.
34300         * modules/remainder (configure.ac): Likewise.
34301         * modules/sin (configure.ac): Likewise.
34302         * modules/sinh (configure.ac): Likewise.
34303         * modules/tan (configure.ac): Likewise.
34304         * modules/tanh (configure.ac): Likewise.
34305         * modules/y0 (configure.ac): Likewise.
34306         * modules/y1 (configure.ac): Likewise.
34307         * modules/yn (configure.ac): Likewise.
34308         Suggested by Paolo Bonzini.
34309
34310 2010-01-31  Bruno Haible  <bruno@clisp.org>
34311
34312         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34313
34314 2010-01-31  Bruno Haible  <bruno@clisp.org>
34315
34316         Work around getdelim() bug on FreeBSD 8.0.
34317         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34318         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34319         not work.
34320         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34321         is 1.
34322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34323         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34324         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34325         a non-zero size.
34326         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34327
34328 2010-01-31  Bruno Haible  <bruno@clisp.org>
34329
34330         Work around getline() bug on FreeBSD 8.0.
34331         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34332         and a non-zero size.
34333         * tests/test-getline.c (main): Likewise.
34334         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34335         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34336
34337 2010-01-28  Eric Blake  <ebb9@byu.net>
34338
34339         regex: fix build failure
34340         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34341         platforms.
34342
34343 2010-01-28  Jim Meyering  <meyering@redhat.com>
34344
34345         regex: do not ignore memory allocation failure
34346         * lib/regex_internal.c (create_cd_newstate): Detect
34347         re_node_set_init_copy failure.   Extracted from glibc commit
34348         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34349
34350         regex: sync more white-space changes from libc
34351         * lib/regex_internal.c: White-space only changes.
34352         * lib/regexec.c: Likewise.
34353
34354         regex: add many uses of __attribute_warn_unused_result__
34355         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34356         * lib/regexec.c: Likewise.
34357         Extracted from a messy glibc commit.
34358
34359         regcomp.c: spelling and merge-artifact from glibc
34360         * lib/regcomp.c: Merge remainder of glibc's
34361         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34362
34363         regcomp.c: sync white-space changes from glibc
34364         * lib/regcomp.c: Merge to accommodate white space
34365         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34366
34367         regcomp.c: do not ignore internal return values
34368         * lib/regcomp.c: Do not ignore internal return values.
34369         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34370         but without its white-space changes and spelling fixes.
34371
34372         regex_internal.h: define __attribute_warn_unused_result__
34373         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34374
34375         maint: add a syntax-check rule to check for vulnerable Makefile.in
34376         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34377
34378 2010-01-27  Jim Meyering  <meyering@redhat.com>
34379
34380         ncftpput-ftp: clean up spaces
34381         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34382         Remove trailing blanks.
34383
34384 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34385
34386         * build-aux/git-version-gen: Fix copyright statement.
34387         * build-aux/gnupload: Likewise.
34388         * tests/test-arcfour.c: Likewise.
34389         * tests/test-arctwo.c: Likewise.
34390         * tests/test-count-one-bits.c: Likewise.
34391         * tests/test-crc.c: Likewise.
34392         * tests/test-des.c: Likewise.
34393         * tests/test-gc-arcfour.c: Likewise.
34394         * tests/test-gc-arctwo.c: Likewise.
34395         * tests/test-gc-des.c: Likewise.
34396         * tests/test-gc-hmac-md5.c: Likewise.
34397         * tests/test-gc-hmac-sha1.c: Likewise.
34398         * tests/test-gc-md2.c: Likewise.
34399         * tests/test-gc-md4.c: Likewise.
34400         * tests/test-gc-md5.c: Likewise.
34401         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34402         * tests/test-gc-rijndael.c: Likewise.
34403         * tests/test-gc-sha1.c: Likewise.
34404         * tests/test-gc.c: Likewise.
34405         * tests/test-gethostname.c: Likewise.
34406         * tests/test-gettimeofday.c: Likewise.
34407         * tests/test-hash.c: Likewise.
34408         * tests/test-hmac-md5.c: Likewise.
34409         * tests/test-hmac-sha1.c: Likewise.
34410         * tests/test-md2.c: Likewise.
34411         * tests/test-md4.c: Likewise.
34412         * tests/test-md5.c: Likewise.
34413         * tests/test-memchr.c: Likewise.
34414         * tests/test-memchr2.c: Likewise.
34415         * tests/test-memcmp.c: Likewise.
34416         * tests/test-memmem.c: Likewise.
34417         * tests/test-memrchr.c: Likewise.
34418         * tests/test-rawmemchr.c: Likewise.
34419         * tests/test-read-file.c: Likewise.
34420         * tests/test-rijndael.c: Likewise.
34421         * tests/test-sockets.c: Likewise.
34422         * tests/test-strchrnul.c: Likewise.
34423         * tests/test-strstr.c: Likewise.
34424         * tests/test-strtod.c: Likewise.
34425         * build-aux/ncftpput-ftp: Likewise.
34426
34427 2010-01-26  Eric Blake  <ebb9@byu.net>
34428
34429         ignore-value: update recommended header name
34430         * modules/ignore-value (Include): Only use <> for headers that
34431         exist in glibc.
34432
34433 2010-01-26  Jim Meyering  <meyering@redhat.com>
34434
34435         test-userspec.c: avoid compiler warnings
34436         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34437         and "initialization discards qualifiers..." warnings.
34438         Put the first "uid" in its own scope, and make char* members "const".
34439
34440 2010-01-25  Bruno Haible  <bruno@clisp.org>
34441
34442         gnulib-tool: Make warning diagnostics consistent.
34443         * gnulib-tool (func_warning): New function.
34444         Use it everywhere where gnulib-tool produces output to stderr and it is
34445         not a fatal error.
34446
34447 2010-01-25  Bruno Haible  <bruno@clisp.org>
34448
34449         Fix test dependencies.
34450         * modules/xstrtol-tests (Depends-on): Add inttypes.
34451         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34452
34453 2010-01-25 Pádraig Brady <P@draigBrady.com>
34454
34455         syntax-check: detect incorrect boolean macro values in config.h
34456         * modules/maintainer-makefile (configure.ac): Parameterize the location
34457         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34458         The logic is from Eric Blake and the location indicated by Jim Meyering.
34459         Note the more natural CONFIG_HEADER name is prohibited by automake
34460         for backwards compatibility reasons.
34461         * top/maint.mk (sc_Wundef_boolean): New rule.
34462
34463 2010-01-25  Jim Meyering  <meyering@redhat.com>
34464
34465         bootstrap: detect MacOS 10.6's shasum, too
34466         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34467         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34468
34469 2010-01-23  Jim Meyering  <meyering@redhat.com>
34470
34471         xstrtoll: new module
34472         * modules/xstrtoll: New file.
34473         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34474         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34475         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34476         ./configure fails if you use this module and lack "long long".
34477         * modules/xstrtoll-tests: New module.
34478         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34479         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34480         new init.sh-based test framework.
34481
34482 2010-01-24  Bruno Haible  <bruno@clisp.org>
34483
34484         Tests for module 'yn'.
34485         * modules/yn-tests: New file.
34486         * tests/test-yn.c: New file.
34487
34488         Tests for module 'y1'.
34489         * modules/y1-tests: New file.
34490         * tests/test-y1.c: New file.
34491
34492         Tests for module 'y0'.
34493         * modules/y0-tests: New file.
34494         * tests/test-y0.c: New file.
34495
34496         Tests for module 'tanh'.
34497         * modules/tanh-tests: New file.
34498         * tests/test-tanh.c: New file.
34499
34500         Tests for module 'tan'.
34501         * modules/tan-tests: New file.
34502         * tests/test-tan.c: New file.
34503
34504         Tests for module 'sqrt'.
34505         * modules/sqrt-tests: New file.
34506         * tests/test-sqrt.c: New file.
34507
34508         Tests for module 'sinh'.
34509         * modules/sinh-tests: New file.
34510         * tests/test-sinh.c: New file.
34511
34512         Tests for module 'sin'.
34513         * modules/sin-tests: New file.
34514         * tests/test-sin.c: New file.
34515
34516         Tests for module 'rint'.
34517         * modules/rint-tests: New file.
34518         * tests/test-rint.c: New file.
34519
34520         Tests for module 'remainder'.
34521         * modules/remainder-tests: New file.
34522         * tests/test-remainder.c: New file.
34523
34524         Tests for module 'pow'.
34525         * modules/pow-tests: New file.
34526         * tests/test-pow.c: New file.
34527
34528         Tests for module 'nextafter'.
34529         * modules/nextafter-tests: New file.
34530         * tests/test-nextafter.c: New file.
34531
34532         Tests for module 'modf'.
34533         * modules/modf-tests: New file.
34534         * tests/test-modf.c: New file.
34535
34536         Tests for module 'logb'.
34537         * modules/logb-tests: New file.
34538         * tests/test-logb.c: New file.
34539
34540         Tests for module 'log1p'.
34541         * modules/log1p-tests: New file.
34542         * tests/test-log1p.c: New file.
34543
34544         Tests for module 'log10'.
34545         * modules/log10-tests: New file.
34546         * tests/test-log10.c: New file.
34547
34548         Tests for module 'log'.
34549         * modules/log-tests: New file.
34550         * tests/test-log.c: New file.
34551
34552         Tests for module 'lgamma'.
34553         * modules/lgamma-tests: New file.
34554         * tests/test-lgamma.c: New file.
34555
34556         Tests for module 'ldexp'.
34557         * modules/ldexp-tests: New file.
34558         * tests/test-ldexp.c: New file.
34559
34560         Tests for module 'jn'.
34561         * modules/jn-tests: New file.
34562         * tests/test-jn.c: New file.
34563
34564         Tests for module 'j1'.
34565         * modules/j1-tests: New file.
34566         * tests/test-j1.c: New file.
34567
34568         Tests for module 'j0'.
34569         * modules/j0-tests: New file.
34570         * tests/test-j0.c: New file.
34571
34572         Tests for module 'hypot'.
34573         * modules/hypot-tests: New file.
34574         * tests/test-hypot.c: New file.
34575
34576         Tests for module 'fmod'.
34577         * modules/fmod-tests: New file.
34578         * tests/test-fmod.c: New file.
34579
34580         Tests for module 'fabs'.
34581         * modules/fabs-tests: New file.
34582         * tests/test-fabs.c: New file.
34583
34584         Tests for module 'exp'.
34585         * modules/exp-tests: New file.
34586         * tests/test-exp.c: New file.
34587
34588         Tests for module 'erfc'.
34589         * modules/erfc-tests: New file.
34590         * tests/test-erfc.c: New file.
34591
34592         Tests for module 'erf'.
34593         * modules/erf-tests: New file.
34594         * tests/test-erf.c: New file.
34595
34596         Tests for module 'cosh'.
34597         * modules/cosh-tests: New file.
34598         * tests/test-cosh.c: New file.
34599
34600         Tests for module 'cos'.
34601         * modules/cos-tests: New file.
34602         * tests/test-cos.c: New file.
34603
34604         Tests for module 'copysign'.
34605         * modules/copysign-tests: New file.
34606         * tests/test-copysign.c: New file.
34607
34608         Tests for module 'cbrt'.
34609         * modules/cbrt-tests: New file.
34610         * tests/test-cbrt.c: New file.
34611
34612         Tests for module 'atan2'.
34613         * modules/atan2-tests: New file.
34614         * tests/test-atan2.c: New file.
34615
34616         Tests for module 'atan'.
34617         * modules/atan-tests: New file.
34618         * tests/test-atan.c: New file.
34619
34620         Tests for module 'asin'.
34621         * modules/asin-tests: New file.
34622         * tests/test-asin.c: New file.
34623
34624         Tests for module 'acos'.
34625         * modules/acos-tests: New file.
34626         * tests/test-acos.c: New file.
34627
34628 2010-01-24  Bruno Haible  <bruno@clisp.org>
34629
34630         Fix tests for common <math.h> functions.
34631         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34632         code snippet that references the function pointer, rather than merely
34633         calling the function. Substitute the FUNC_LIBM variable.
34634         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34635         * modules/acos (configure.ac): Likewise.
34636         * modules/asin (configure.ac): Likewise.
34637         * modules/atan (configure.ac): Likewise.
34638         * modules/atan2 (configure.ac): Likewise.
34639         * modules/cbrt (configure.ac): Likewise.
34640         * modules/copysign (configure.ac): Likewise.
34641         * modules/cos (configure.ac): Likewise.
34642         * modules/cosh (configure.ac): Likewise.
34643         * modules/erf (configure.ac): Likewise.
34644         * modules/erfc (configure.ac): Likewise.
34645         * modules/exp (configure.ac): Likewise.
34646         * modules/fabs (configure.ac): Likewise.
34647         * modules/fmod (configure.ac): Likewise.
34648         * modules/hypot (configure.ac): Likewise.
34649         * modules/j0 (configure.ac): Likewise.
34650         * modules/j1 (configure.ac): Likewise.
34651         * modules/jn (configure.ac): Likewise.
34652         * modules/ldexp (configure.ac): Likewise.
34653         * modules/lgamma (configure.ac): Likewise.
34654         * modules/log (configure.ac): Likewise.
34655         * modules/log10 (configure.ac): Likewise.
34656         * modules/log1p (configure.ac): Likewise.
34657         * modules/logb (configure.ac): Likewise.
34658         * modules/modf (configure.ac): Likewise.
34659         * modules/nextafter (configure.ac): Likewise.
34660         * modules/pow (configure.ac): Likewise.
34661         * modules/remainder (configure.ac): Likewise.
34662         * modules/rint (configure.ac): Likewise.
34663         * modules/sin (configure.ac): Likewise.
34664         * modules/sinh (configure.ac): Likewise.
34665         * modules/tan (configure.ac): Likewise.
34666         * modules/tanh (configure.ac): Likewise.
34667         * modules/y0 (configure.ac): Likewise.
34668         * modules/y1 (configure.ac): Likewise.
34669         * modules/yn (configure.ac): Likewise.
34670
34671 2010-01-24  Bruno Haible  <bruno@clisp.org>
34672
34673         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34674         * tests/test-acosl.c (x): New variable.
34675         (main): Store argument in x and fetch it from x.
34676         * tests/test-asinl.c (x): New variable.
34677         (main): Store argument in x and fetch it from x.
34678         * tests/test-atanl.c (x): New variable.
34679         (main): Store argument in x and fetch it from x.
34680         * tests/test-cosl.c (x): New variable.
34681         (main): Store argument in x and fetch it from x.
34682         * tests/test-expl.c (x): New variable.
34683         (main): Store argument in x and fetch it from x.
34684         * tests/test-logl.c (x): New variable.
34685         (main): Store argument in x and fetch it from x.
34686         * tests/test-sinl.c (x): New variable.
34687         (main): Store argument in x and fetch it from x.
34688         * tests/test-sqrtl.c (x): New variable.
34689         (main): Store argument in x and fetch it from x.
34690         * tests/test-tanl.c (x): New variable.
34691         (main): Store argument in x and fetch it from x.
34692
34693 2010-01-24  Bruno Haible  <bruno@clisp.org>
34694
34695         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34696         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34697         assignments to the initial TESTS_ENVIRONMENT.
34698         * doc/gnulib.texi (Unit test modules): Document it.
34699         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34700         TESTS_ENVIRONMENT.
34701         * modules/btowc-tests (Makefile.am): Likewise.
34702         * modules/c-stack-tests (Makefile.am): Likewise.
34703         * modules/c-strcase-tests (Makefile.am): Likewise.
34704         * modules/copy-file-tests (Makefile.am): Likewise.
34705         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34706         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34707         * modules/mbrtowc-tests (Makefile.am): Likewise.
34708         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34709         * modules/mbscasestr-tests (Makefile.am): Likewise.
34710         * modules/mbschr-tests (Makefile.am): Likewise.
34711         * modules/mbscspn-tests (Makefile.am): Likewise.
34712         * modules/mbsinit-tests (Makefile.am): Likewise.
34713         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34714         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34715         * modules/mbspbrk-tests (Makefile.am): Likewise.
34716         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34717         * modules/mbsrchr-tests (Makefile.am): Likewise.
34718         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34719         * modules/mbsspn-tests (Makefile.am): Likewise.
34720         * modules/mbsstr-tests (Makefile.am): Likewise.
34721         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34722         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34723         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34724         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34725         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34726         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34727         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34728         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34729         * modules/wcrtomb-tests (Makefile.am): Likewise.
34730         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34731         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34732         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34733         assignments from TESTS_ENVIRONMENT.
34734         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34735         augmentation.
34736         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34737         * modules/atexit-tests (Makefile.am): Likewise.
34738         * modules/binary-io-tests (Makefile.am): Likewise.
34739         * modules/closein-tests (Makefile.am): Likewise.
34740         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34741         * modules/exclude-tests (Makefile.am): Likewise.
34742         * modules/fflush-tests (Makefile.am): Likewise.
34743         * modules/fpending-tests (Makefile.am): Likewise.
34744         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34745         * modules/freadahead-tests (Makefile.am): Likewise.
34746         * modules/freadptr-tests (Makefile.am): Likewise.
34747         * modules/freadseek-tests (Makefile.am): Likewise.
34748         * modules/fseek-tests (Makefile.am): Likewise.
34749         * modules/fseeko-tests (Makefile.am): Likewise.
34750         * modules/ftell-tests (Makefile.am): Likewise.
34751         * modules/ftello-tests (Makefile.am): Likewise.
34752         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34753         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34754         * modules/lseek-tests (Makefile.am): Likewise.
34755         * modules/parse-duration-tests (Makefile.am): Likewise.
34756         * modules/perror-tests (Makefile.am): Likewise.
34757         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34758         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34759         * modules/pipe-tests (Makefile.am): Likewise.
34760         * modules/pread-tests (Makefile.am): Likewise.
34761         * modules/printf-posix-tests (Makefile.am): Likewise.
34762         * modules/select-tests (Makefile.am): Likewise.
34763         * modules/sigpipe-tests (Makefile.am): Likewise.
34764         * modules/tsearch-tests (Makefile.am): Likewise.
34765         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34766         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34767         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34768         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34769         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34770         * modules/version-etc-tests (Makefile.am): Likewise.
34771         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34772         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34773         * modules/xalloc-die-tests (Makefile.am): Likewise.
34774         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34775         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34776         * modules/xstrtol-tests (Makefile.am): Likewise.
34777         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34778         * modules/yesno-tests (Makefile.am): Likewise.
34779         Suggested by Jim Meyering.
34780
34781 2010-01-24  Bruno Haible  <bruno@clisp.org>
34782
34783         More documentation.
34784         * doc/gnulib.texi (Writing modules): New chapter.
34785         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34786         the new chapter.
34787
34788 2010-01-24  Jim Meyering  <meyering@redhat.com>
34789
34790         maint.mk: do not prepend "./" after filtering
34791         * top/maint.mk (_prepend_srcdir_prefix): New variable
34792         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34793         "./" when $(srcdir) is ".".
34794
34795         define STREQ(a,b) consistently, removing useless parentheses
34796         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34797         since the only risk is that "a" or "b" contains an unparenthesized
34798         comma, but if either did that, STREQ would have 3 or more arguments.
34799         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34800         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34801         * lib/hash-triple.c (STREQ): Likewise.
34802         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34803         * lib/getugroups.c (STREQ): Likewise.
34804
34805 2010-01-23  Jim Meyering  <meyering@redhat.com>
34806
34807         maint.mk: fix syntax-check in a non-srcdir build directory
34808         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34809         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34810
34811 2010-01-22  Jim Meyering  <meyering@redhat.com>
34812
34813         userspec: add unit tests
34814         * tests/test-userspec.c: New file.
34815         * modules/userspec-tests: Likewise.
34816
34817 2010-01-21  Jim Meyering  <meyering@redhat.com>
34818
34819         maint.mk: handle source file names containing "." robustly
34820         * top/maint.mk (_dot_escaped_srcdir): Define.
34821         (VC_LIST): Use it in LHS of sed substitution.
34822
34823 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34824
34825         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34826         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34827         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34828         from a non-srcdir build.
34829
34830 2010-01-20  Eric Blake  <ebb9@byu.net>
34831
34832         warn-on-use: use instead of link-warning
34833         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34834         * modules/unistd (Depends-on, Makefile.am): Likewise.
34835         * modules/arpa_inet (Depends-on): Replace link-warning with
34836         warn-on-use.
34837         (Makefile.am): Update rules accordingly.
34838         * modules/ctype (Depends-on, Makefile.am): Likewise.
34839         * modules/dirent (Depends-on, Makefile.am): Likewise.
34840         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34841         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34842         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34843         * modules/locale (Depends-on, Makefile.am): Likewise.
34844         * modules/math (Depends-on, Makefile.am): Likewise.
34845         * modules/search (Depends-on, Makefile.am): Likewise.
34846         * modules/signal (Depends-on, Makefile.am): Likewise.
34847         * modules/spawn (Depends-on, Makefile.am): Likewise.
34848         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34849         * modules/string (Depends-on, Makefile.am): Likewise.
34850         * modules/strings (Depends-on, Makefile.am): Likewise.
34851         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34852         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34853         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34854         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34855         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34856         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34857         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34858         * modules/wchar (Depends-on, Makefile.am): Likewise.
34859         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34860         should be poisoned.
34861         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34862         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34863         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34864         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34865         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34866         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34867         * m4/math_h.m4 (gl_MATH_H): Likewise.
34868         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34869         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34870         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34871         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34872         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34873         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34874         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34875         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34880         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34881         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34882         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34883         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34884         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34885         GL_LINK_WARNING.
34886         * lib/ctype.in.h: Likewise.
34887         * lib/dirent.in.h: Likewise.
34888         * lib/fcntl.in.h: Likewise.
34889         * lib/inttypes.in.h: Likewise.
34890         * lib/langinfo.in.h: Likewise.
34891         * lib/locale.in.h: Likewise.
34892         * lib/math.in.h: Likewise.
34893         * lib/search.in.h: Likewise.
34894         * lib/signal.in.h: Likewise.
34895         * lib/spawn.in.h: Likewise.
34896         * lib/stdio.in.h: Likewise.
34897         * lib/stdlib.in.h: Likewise.
34898         * lib/string.in.h: Likewise.
34899         * lib/strings.in.h: Likewise.
34900         * lib/sys_file.in.h: Likewise.
34901         * lib/sys_ioctl.in.h: Likewise.
34902         * lib/sys_select.in.h: Likewise.
34903         * lib/sys_socket.in.h: Likewise.
34904         * lib/sys_stat.in.h: Likewise.
34905         * lib/sys_times.in.h: Likewise.
34906         * lib/sys_utsname.in.h: Likewise.
34907         * lib/unistd.in.h: Likewise.
34908         * lib/wchar.in.h: Likewise.
34909
34910 2010-01-20  Bruno Haible  <bruno@clisp.org>
34911
34912         Avoid duplicate -lm.
34913         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34914         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34915         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34916         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34917         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34918         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34919         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34920         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34921         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34922         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34923         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34924         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34925         Reported by Paolo Bonzini.
34926
34927 2010-01-19  Bruno Haible  <bruno@clisp.org>
34928
34929         langinfo, nl_langinfo: Relicense under LGPLv2+.
34930         * modules/langinfo (License): Change to LGPLv2+.
34931         * modules/nl_langinfo (License): Likewise.
34932         Patch by David Lutterkort <lutter@redhat.com>.
34933
34934 2010-01-19  Bruno Haible  <bruno@clisp.org>
34935
34936         Avoid compilation error with cc on OSF/1 5.1.
34937         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34938         statement, not before.
34939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34940
34941 2010-01-18  Bruno Haible  <bruno@clisp.org>
34942
34943         Avoid a link error due to the __printf__ symbol.
34944         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34945         and 2.6.x.
34946         (__format__, __printf__): Remove definitions.
34947         * lib/argp-fmtstream.h: Likewise.
34948         * lib/argp.h: Likewise.
34949         * lib/error.h: Likewise.
34950         * lib/vasnprintf.h: Likewise.
34951         * lib/xprintf.h: Likewise.
34952         * lib/xvasprintf.h: Likewise.
34953         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34954
34955 2010-01-18  Bruno Haible  <bruno@clisp.org>
34956
34957         Tests for module 'tanl'.
34958         * modules/tanl-tests: New file.
34959         * tests/test-tanl.c: New file.
34960
34961         Tests for module 'sqrtl'.
34962         * modules/sqrtl-tests: New file.
34963         * tests/test-sqrtl.c: New file.
34964
34965         Tests for module 'sinl'.
34966         * modules/sinl-tests: New file.
34967         * tests/test-sinl.c: New file.
34968
34969         Tests for module 'logl'.
34970         * modules/logl-tests: New file.
34971         * tests/test-logl.c: New file.
34972
34973         Tests for module 'expl'.
34974         * modules/expl-tests: New file.
34975         * tests/test-expl.c: New file.
34976
34977         Tests for module 'cosl'.
34978         * modules/cosl-tests: New file.
34979         * tests/test-cosl.c: New file.
34980
34981         Tests for module 'atanl'.
34982         * modules/atanl-tests: New file.
34983         * tests/test-atanl.c: New file.
34984
34985         Tests for module 'asinl'.
34986         * modules/asinl-tests: New file.
34987         * tests/test-asinl.c: New file.
34988
34989         Tests for module 'acosl'.
34990         * modules/acosl-tests: New file.
34991         * tests/test-acosl.c: New file.
34992
34993         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34994         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34995         tanl): Use the standard gnulib idiom.
34996         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34997         * lib/sinl.c: Likewise.
34998         * lib/tanl.c: Don't include trigl.c.
34999         (kernel_tanl): Make static.
35000         * lib/sincosl.c: Include trigl.h first.
35001         * lib/trigl.c: Likewise.
35002         * m4/acosl.m4: New file.
35003         * m4/asinl.m4: New file.
35004         * m4/atanl.m4: New file.
35005         * m4/cosl.m4: New file.
35006         * m4/expl.m4: New file.
35007         * m4/logl.m4: New file.
35008         * m4/sinl.m4: New file.
35009         * m4/sqrtl.m4: New file.
35010         * m4/tanl.m4: New file.
35011         * m4/mathl.m4: Remove file.
35012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35013         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35014         Don't initialize GNULIB_MATHL.
35015         * modules/acosl: New file.
35016         * modules/asinl: New file.
35017         * modules/atanl: New file.
35018         * modules/cosl: New file.
35019         * modules/expl: New file.
35020         * modules/logl: New file.
35021         * modules/sinl: New file.
35022         * modules/sqrtl: New file.
35023         * modules/tanl: New file.
35024         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35025         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35026         substitute GNULIB_MATHL.
35027         * modules/mathl: Rewritten.
35028         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35029         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35030         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35031         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35032         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35033         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35034         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35035         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35036         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35037
35038 2010-01-18  Bruno Haible  <bruno@clisp.org>
35039
35040         sqrt: Make gl_FUNC_SQRT requirable.
35041         * m4/sqrt.m4: New file.
35042         * modules/sqrt (Files): Add it.
35043         (configure.ac): Invoke gl_FUNC_SQRT.
35044
35045 2010-01-18  Bruno Haible  <bruno@clisp.org>
35046
35047         New modules for common <math.h> functions.
35048         * m4/mathfunc.m4: New file.
35049         * modules/acos: New file.
35050         * modules/asin: New file.
35051         * modules/atan: New file.
35052         * modules/atan2: New file.
35053         * modules/cbrt: New file.
35054         * modules/copysign: New file.
35055         * modules/cos: New file.
35056         * modules/cosh: New file.
35057         * modules/erf: New file.
35058         * modules/erfc: New file.
35059         * modules/exp: New file.
35060         * modules/fabs: New file.
35061         * modules/fmod: New file.
35062         * modules/hypot: New file.
35063         * modules/j0: New file.
35064         * modules/j1: New file.
35065         * modules/jn: New file.
35066         * modules/ldexp: New file.
35067         * modules/lgamma: New file.
35068         * modules/log: New file.
35069         * modules/log10: New file.
35070         * modules/log1p: New file.
35071         * modules/logb: New file.
35072         * modules/modf: New file.
35073         * modules/nextafter: New file.
35074         * modules/pow: New file.
35075         * modules/remainder: New file.
35076         * modules/rint: New file.
35077         * modules/sin: New file.
35078         * modules/sinh: New file.
35079         * modules/sqrt: New file.
35080         * modules/tan: New file.
35081         * modules/tanh: New file.
35082         * modules/y0: New file.
35083         * modules/y1: New file.
35084         * modules/yn: New file.
35085         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35086         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35087         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35088         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35089         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35090         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35091         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35092         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35093         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35094         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35095         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35096         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35097         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35098         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35099         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35100         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35101         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35102         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35103         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35104         * doc/posix-functions/log.texi: Mention the 'log' module.
35105         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35106         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35107         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35108         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35109         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35110         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35111         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35112         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35113         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35114         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35115         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35116         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35117         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35118         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35119         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35120         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35121
35122 2010-01-18  Jim Meyering  <meyering@redhat.com>
35123
35124         ignore-value: relax license to LGPLv2+
35125         * modules/ignore-value (License): Relax to LGPLv2+.
35126
35127         getdate: don't leak when TZ contains two or more '"'s
35128         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35129         double quote in TZ after the first one.
35130
35131         readtokens: do not leak internal token_lengths buffer
35132         * lib/readtokens.c (readtokens): Free the local, lengths,
35133         when the supplied "token_lengths" parameter is NULL.
35134
35135 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35136
35137         Fix a couple of missing LIBTHREAD link failures on AIX.
35138         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35139         $(LIBTHREAD).
35140         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35141
35142         Link test-poll against INET_PTON_LIB.
35143         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35144         for inet_pton on Solaris 10.
35145
35146 2010-01-17  Bruno Haible  <bruno@clisp.org>
35147
35148         unistdio/*-sprintf: Fix typo in module description.
35149         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35150         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35151         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35152         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35153         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35154         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35155         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35157
35158 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35159
35160         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35161         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35162         variables in shell case patterns, for AIX and HP-UX ksh.
35163
35164         Split large sed scripts, for HP-UX sed.
35165         * modules/stdio: Split sed scripts around 50 sed commands,
35166         to avoid HP-UX limit of 99 commands, in the near future.
35167         * modules/string: Likewise.
35168         * modules/unistd: Likewise.
35169
35170         gnulib-tool: avoid writing in the current directory.
35171         * gnulib-tool (func_emit_lib_Makefile_am)
35172         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35173         not in the current directory, so concurrent gnulib-tool
35174         instances do not interfere.
35175
35176 2010-01-16  Jim Meyering  <meyering@redhat.com>
35177
35178         doc: update users.txt
35179         * users.txt: Add grep.
35180         (diffutils, gzip): Update URLs.
35181
35182 2010-01-12  Bruno Haible  <bruno@clisp.org>
35183
35184         posix_spawn: Avoid test failure on Cygwin.
35185         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35186         characters.
35187         Reported by Simon Josefsson.
35188
35189 2010-01-12  Bruno Haible  <bruno@clisp.org>
35190
35191         * tests/test-cond.c (main): When skipping the test, show the reason.
35192
35193 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35194
35195         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35196
35197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35198
35199         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35200         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35201
35202 2010-01-12  Eric Blake  <ebb9@byu.net>
35203
35204         build: guarantee AS_VAR_IF
35205         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35206         (gl_AS_VAR_IF): Move...
35207         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35208         Reported by Simon Josefsson.
35209
35210 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35211
35212         * lib/stdio.in.h: Fix typo.
35213
35214 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35215
35216         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35217         libgpg-error.
35218
35219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35220
35221         * tests/test-xalloc-die.sh: Use $EXEEXT.
35222
35223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35224             Bruno Haible  <bruno@clisp.org>
35225
35226         getlogin, getlogin_r: Avoid test failure.
35227         * tests/test-getlogin.c: Include <stdio.h>.
35228         (main): Skip the test when the function fails because stdin is not a
35229         tty.
35230         * tests/test-getlogin_r.c: Include <stdio.h>.
35231         (main): Skip the test when the function fails because stdin is not a
35232         tty.
35233
35234 2010-01-11  Eric Blake  <ebb9@byu.net>
35235
35236         tests: avoid more large file warnings
35237         * tests/test-fflush.c: Avoid warning about ftell use.
35238         * tests/test-fseek.c: Avoid warning about fseek use.
35239
35240 2010-01-10  Bruno Haible  <bruno@clisp.org>
35241
35242         nproc: Work better on Linux when /proc and /sys are not mounted.
35243         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35244         as lower bound when, on glibc/Linux systems,
35245         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35246         Suggested by Pádraig Brady <P@draigbrady.com>.
35247         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35248
35249         nproc: Refactor.
35250         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35251         extracted from num_processors.
35252         (num_processors): Call it.
35253
35254 2010-01-11  Jim Meyering  <meyering@redhat.com>
35255
35256         utimecmp: avoid new warning from upcoming gcc-4.5.0
35257         * lib/utimecmp.c (BILLION): Define using #define rather than an
35258         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35259
35260 2010-01-11  Eric Blake  <ebb9@byu.net>
35261
35262         math: add portability warnings for classification macros
35263         * modules/math (Depends-on): Add warn-on-use.
35264         (Makefile.am): Provide new substitutions.
35265         * m4/math_h.m4 (gl_MATH_H): Require inline.
35266         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35267         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35268         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35269         implement warnings.
35270
35271         unistd: warn on use of environ without module
35272         * modules/unistd (Depends-on): Add warn-on-use.
35273         (Makefile.am): Provide new substitutions.
35274         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35275         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35276
35277         stdio: warn on suspicious uses
35278         * modules/stdio (Depends-on): Add warn-on-use.
35279         (Makefile.am): Provide new substitutions.
35280         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35281         fseeko.
35282         * lib/stdio.in.h (gets): Always warn on use.
35283         (fseek, ftell): Adjust when warnings are issued, and honor
35284         _GL_NO_LARGE_FILES as a way to silence the warning.
35285         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35286         any warning about large file offsets.
35287         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35288         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35289         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35290         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35291         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35292         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35293         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35294         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35295
35296         warn-on-use: new module
35297         * modules/warn-on-use: New file.
35298         * build-aux/warn-on-use.h: Likewise.
35299         * m4/warn-on-use.m4: Likewise.
35300         * MODULES.html.sh (Support for building): Mention it.
35301
35302 2010-01-10  Bruno Haible  <bruno@clisp.org>
35303
35304         Tests for module 'unistr/u32-strdup'.
35305         * modules/unistr/u32-strdup-tests: New file.
35306         * tests/unistr/test-u32-strdup.c: New file.
35307
35308         Tests for module 'unistr/u16-strdup'.
35309         * modules/unistr/u16-strdup-tests: New file.
35310         * tests/unistr/test-u16-strdup.c: New file.
35311
35312         Tests for module 'unistr/u8-strdup'.
35313         * modules/unistr/u8-strdup-tests: New file.
35314         * tests/unistr/test-u8-strdup.c: New file.
35315         * tests/unistr/test-strdup.h: New file.
35316
35317         Tests for module 'unistr/u32-strncmp'.
35318         * modules/unistr/u32-strncmp-tests: New file.
35319         * tests/unistr/test-u32-strncmp.c: New file.
35320
35321         Tests for module 'unistr/u16-strncmp'.
35322         * modules/unistr/u16-strncmp-tests: New file.
35323         * tests/unistr/test-u16-strncmp.c: New file.
35324
35325         Tests for module 'unistr/u8-strncmp'.
35326         * modules/unistr/u8-strncmp-tests: New file.
35327         * tests/unistr/test-u8-strncmp.c: New file.
35328         * tests/unistr/test-strncmp.h: New file.
35329
35330         Tests for module 'unistr/u32-strcoll'.
35331         * modules/unistr/u32-strcoll-tests: New file.
35332         * tests/unistr/test-u32-strcoll.c: New file.
35333
35334         Tests for module 'unistr/u16-strcoll'.
35335         * modules/unistr/u16-strcoll-tests: New file.
35336         * tests/unistr/test-u16-strcoll.c: New file.
35337
35338         Tests for module 'unistr/u8-strcoll'.
35339         * modules/unistr/u8-strcoll-tests: New file.
35340         * tests/unistr/test-u8-strcoll.c: New file.
35341
35342         Tests for module 'unistr/u32-strcmp'.
35343         * modules/unistr/u32-strcmp-tests: New file.
35344         * tests/unistr/test-u32-strcmp.c: New file.
35345         * tests/unistr/test-u32-strcmp.h: New file.
35346
35347         Tests for module 'unistr/u16-strcmp'.
35348         * modules/unistr/u16-strcmp-tests: New file.
35349         * tests/unistr/test-u16-strcmp.c: New file.
35350         * tests/unistr/test-u16-strcmp.h: New file.
35351
35352         Tests for module 'unistr/u8-strcmp'.
35353         * modules/unistr/u8-strcmp-tests: New file.
35354         * tests/unistr/test-u8-strcmp.c: New file.
35355         * tests/unistr/test-u8-strcmp.h: New file.
35356         * tests/unistr/test-strcmp.h: New file.
35357
35358         Tests for module 'unistr/u32-strncat'.
35359         * modules/unistr/u32-strncat-tests: New file.
35360         * tests/unistr/test-u32-strncat.c: New file.
35361
35362         Tests for module 'unistr/u16-strncat'.
35363         * modules/unistr/u16-strncat-tests: New file.
35364         * tests/unistr/test-u16-strncat.c: New file.
35365
35366         Tests for module 'unistr/u8-strncat'.
35367         * modules/unistr/u8-strncat-tests: New file.
35368         * tests/unistr/test-u8-strncat.c: New file.
35369         * tests/unistr/test-strncat.h: New file.
35370
35371         Tests for module 'unistr/u32-strcat'.
35372         * modules/unistr/u32-strcat-tests: New file.
35373         * tests/unistr/test-u32-strcat.c: New file.
35374
35375         Tests for module 'unistr/u16-strcat'.
35376         * modules/unistr/u16-strcat-tests: New file.
35377         * tests/unistr/test-u16-strcat.c: New file.
35378
35379         Tests for module 'unistr/u8-strcat'.
35380         * modules/unistr/u8-strcat-tests: New file.
35381         * tests/unistr/test-u8-strcat.c: New file.
35382         * tests/unistr/test-strcat.h: New file.
35383
35384         Tests for module 'unistr/u32-stpncpy'.
35385         * modules/unistr/u32-stpncpy-tests: New file.
35386         * tests/unistr/test-u32-stpncpy.c: New file.
35387
35388         Tests for module 'unistr/u16-stpncpy'.
35389         * modules/unistr/u16-stpncpy-tests: New file.
35390         * tests/unistr/test-u16-stpncpy.c: New file.
35391
35392         Tests for module 'unistr/u8-stpncpy'.
35393         * modules/unistr/u8-stpncpy-tests: New file.
35394         * tests/unistr/test-u8-stpncpy.c: New file.
35395         * tests/unistr/test-stpncpy.h: New file.
35396
35397         Tests for module 'unistr/u32-strncpy'.
35398         * modules/unistr/u32-strncpy-tests: New file.
35399         * tests/unistr/test-u32-strncpy.c: New file.
35400
35401         Tests for module 'unistr/u16-strncpy'.
35402         * modules/unistr/u16-strncpy-tests: New file.
35403         * tests/unistr/test-u16-strncpy.c: New file.
35404
35405         Tests for module 'unistr/u8-strncpy'.
35406         * modules/unistr/u8-strncpy-tests: New file.
35407         * tests/unistr/test-u8-strncpy.c: New file.
35408         * tests/unistr/test-strncpy.h: New file.
35409
35410         Tests for module 'unistr/u32-stpcpy'.
35411         * modules/unistr/u32-stpcpy-tests: New file.
35412         * tests/unistr/test-u32-stpcpy.c: New file.
35413
35414         Tests for module 'unistr/u16-stpcpy'.
35415         * modules/unistr/u16-stpcpy-tests: New file.
35416         * tests/unistr/test-u16-stpcpy.c: New file.
35417
35418         Tests for module 'unistr/u8-stpcpy'.
35419         * modules/unistr/u8-stpcpy-tests: New file.
35420         * tests/unistr/test-u8-stpcpy.c: New file.
35421         * tests/unistr/test-stpcpy.h: New file.
35422
35423         Tests for module 'unistr/u32-strcpy'.
35424         * modules/unistr/u32-strcpy-tests: New file.
35425         * tests/unistr/test-u32-strcpy.c: New file.
35426
35427         Tests for module 'unistr/u16-strcpy'.
35428         * modules/unistr/u16-strcpy-tests: New file.
35429         * tests/unistr/test-u16-strcpy.c: New file.
35430
35431         Tests for module 'unistr/u8-strcpy'.
35432         * modules/unistr/u8-strcpy-tests: New file.
35433         * tests/unistr/test-u8-strcpy.c: New file.
35434         * tests/unistr/test-strcpy.h: New file.
35435
35436         Tests for module 'unistr/u32-strnlen'.
35437         * modules/unistr/u32-strnlen-tests: New file.
35438         * tests/unistr/test-u32-strnlen.c: New file.
35439
35440         Tests for module 'unistr/u16-strnlen'.
35441         * modules/unistr/u16-strnlen-tests: New file.
35442         * tests/unistr/test-u16-strnlen.c: New file.
35443
35444         Tests for module 'unistr/u8-strnlen'.
35445         * modules/unistr/u8-strnlen-tests: New file.
35446         * tests/unistr/test-u8-strnlen.c: New file.
35447         * tests/unistr/test-strnlen.h: New file.
35448
35449         Tests for module 'unistr/u32-strlen'.
35450         * modules/unistr/u32-strlen-tests: New file.
35451         * tests/unistr/test-u32-strlen.c: New file.
35452
35453         Tests for module 'unistr/u16-strlen'.
35454         * modules/unistr/u16-strlen-tests: New file.
35455         * tests/unistr/test-u16-strlen.c: New file.
35456
35457         Tests for module 'unistr/u8-strlen'.
35458         * modules/unistr/u8-strlen-tests: New file.
35459         * tests/unistr/test-u8-strlen.c: New file.
35460
35461         Tests for module 'unistr/u32-prev'.
35462         * modules/unistr/u32-prev-tests: New file.
35463         * tests/unistr/test-u32-prev.c: New file.
35464
35465         Tests for module 'unistr/u16-prev'.
35466         * modules/unistr/u16-prev-tests: New file.
35467         * tests/unistr/test-u16-prev.c: New file.
35468
35469         Tests for module 'unistr/u8-prev'.
35470         * modules/unistr/u8-prev-tests: New file.
35471         * tests/unistr/test-u8-prev.c: New file.
35472
35473         Tests for module 'unistr/u32-next'.
35474         * modules/unistr/u32-next-tests: New file.
35475         * tests/unistr/test-u32-next.c: New file.
35476
35477         Tests for module 'unistr/u16-next'.
35478         * modules/unistr/u16-next-tests: New file.
35479         * tests/unistr/test-u16-next.c: New file.
35480
35481         Tests for module 'unistr/u8-next'.
35482         * modules/unistr/u8-next-tests: New file.
35483         * tests/unistr/test-u8-next.c: New file.
35484
35485         Tests for module 'unistr/u32-strmbtouc'.
35486         * modules/unistr/u32-strmbtouc-tests: New file.
35487         * tests/unistr/test-u32-strmbtouc.c: New file.
35488
35489         Tests for module 'unistr/u16-strmbtouc'.
35490         * modules/unistr/u16-strmbtouc-tests: New file.
35491         * tests/unistr/test-u16-strmbtouc.c: New file.
35492
35493         Tests for module 'unistr/u8-strmbtouc'.
35494         * modules/unistr/u8-strmbtouc-tests: New file.
35495         * tests/unistr/test-u8-strmbtouc.c: New file.
35496
35497         Tests for module 'unistr/u32-strmblen'.
35498         * modules/unistr/u32-strmblen-tests: New file.
35499         * tests/unistr/test-u32-strmblen.c: New file.
35500
35501         Tests for module 'unistr/u16-strmblen'.
35502         * modules/unistr/u16-strmblen-tests: New file.
35503         * tests/unistr/test-u16-strmblen.c: New file.
35504
35505         Tests for module 'unistr/u8-strmblen'.
35506         * modules/unistr/u8-strmblen-tests: New file.
35507         * tests/unistr/test-u8-strmblen.c: New file.
35508
35509         Tests for module 'unistr/u32-cpy-alloc'.
35510         * modules/unistr/u32-cpy-alloc-tests: New file.
35511         * tests/unistr/test-u32-cpy-alloc.c: New file.
35512
35513         Tests for module 'unistr/u16-cpy-alloc'.
35514         * modules/unistr/u16-cpy-alloc-tests: New file.
35515         * tests/unistr/test-u16-cpy-alloc.c: New file.
35516
35517         Tests for module 'unistr/u8-cpy-alloc'.
35518         * modules/unistr/u8-cpy-alloc-tests: New file.
35519         * tests/unistr/test-u8-cpy-alloc.c: New file.
35520         * tests/unistr/test-cpy-alloc.h: New file.
35521
35522         Tests for module 'unistr/u32-mbsnlen'.
35523         * modules/unistr/u32-mbsnlen-tests: New file.
35524         * tests/unistr/test-u32-mbsnlen.c: New file.
35525
35526         Tests for module 'unistr/u16-mbsnlen'.
35527         * modules/unistr/u16-mbsnlen-tests: New file.
35528         * tests/unistr/test-u16-mbsnlen.c: New file.
35529
35530         Tests for module 'unistr/u8-mbsnlen'.
35531         * modules/unistr/u8-mbsnlen-tests: New file.
35532         * tests/unistr/test-u8-mbsnlen.c: New file.
35533
35534         Tests for module 'unistr/u32-chr'.
35535         * modules/unistr/u32-chr-tests: New file.
35536         * tests/unistr/test-u32-chr.c: New file.
35537
35538         Tests for module 'unistr/u16-chr'.
35539         * modules/unistr/u16-chr-tests: New file.
35540         * tests/unistr/test-u16-chr.c: New file.
35541
35542         Tests for module 'unistr/u8-chr'.
35543         * modules/unistr/u8-chr-tests: New file.
35544         * tests/unistr/test-u8-chr.c: New file.
35545         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35546
35547         Tests for module 'unistr/u32-cmp2'.
35548         * modules/unistr/u32-cmp2-tests: New file.
35549         * tests/unistr/test-u32-cmp2.c: New file.
35550
35551         Tests for module 'unistr/u16-cmp2'.
35552         * modules/unistr/u16-cmp2-tests: New file.
35553         * tests/unistr/test-u16-cmp2.c: New file.
35554
35555         Tests for module 'unistr/u8-cmp2'.
35556         * modules/unistr/u8-cmp2-tests: New file.
35557         * tests/unistr/test-u8-cmp2.c: New file.
35558         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35559
35560         Tests for module 'unistr/u32-cmp'.
35561         * modules/unistr/u32-cmp-tests: New file.
35562         * tests/unistr/test-u32-cmp.c: New file.
35563
35564         Tests for module 'unistr/u16-cmp'.
35565         * modules/unistr/u16-cmp-tests: New file.
35566         * tests/unistr/test-u16-cmp.c: New file.
35567
35568         Tests for module 'unistr/u8-cmp'.
35569         * modules/unistr/u8-cmp-tests: New file.
35570         * tests/unistr/test-u8-cmp.c: New file.
35571         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35572
35573         Tests for module 'unistr/u32-set'.
35574         * modules/unistr/u32-set-tests: New file.
35575         * tests/unistr/test-u32-set.c: New file.
35576
35577         Tests for module 'unistr/u16-set'.
35578         * modules/unistr/u16-set-tests: New file.
35579         * tests/unistr/test-u16-set.c: New file.
35580
35581         Tests for module 'unistr/u8-set'.
35582         * modules/unistr/u8-set-tests: New file.
35583         * tests/unistr/test-u8-set.c: New file.
35584         * tests/unistr/test-set.h: New file.
35585
35586         Tests for module 'unistr/u32-move'.
35587         * modules/unistr/u32-move-tests: New file.
35588         * tests/unistr/test-u32-move.c: New file.
35589
35590         Tests for module 'unistr/u16-move'.
35591         * modules/unistr/u16-move-tests: New file.
35592         * tests/unistr/test-u16-move.c: New file.
35593
35594         Tests for module 'unistr/u8-move'.
35595         * modules/unistr/u8-move-tests: New file.
35596         * tests/unistr/test-u8-move.c: New file.
35597         * tests/unistr/test-move.h: New file.
35598
35599         Tests for module 'unistr/u32-cpy'.
35600         * modules/unistr/u32-cpy-tests: New file.
35601         * tests/unistr/test-u32-cpy.c: New file.
35602
35603         Tests for module 'unistr/u16-cpy'.
35604         * modules/unistr/u16-cpy-tests: New file.
35605         * tests/unistr/test-u16-cpy.c: New file.
35606
35607         Tests for module 'unistr/u8-cpy'.
35608         * modules/unistr/u8-cpy-tests: New file.
35609         * tests/unistr/test-u8-cpy.c: New file.
35610         * tests/unistr/test-cpy.h: New file.
35611
35612 2010-01-09  Bruno Haible  <bruno@clisp.org>
35613
35614         Tests for module 'unistr/u32-uctomb'.
35615         * modules/unistr/u32-uctomb-tests: New file.
35616         * tests/unistr/test-u32-uctomb.c: New file.
35617
35618         Tests for module 'unistr/u16-uctomb'.
35619         * modules/unistr/u16-uctomb-tests: New file.
35620         * tests/unistr/test-u16-uctomb.c: New file.
35621
35622         Tests for module 'unistr/u8-uctomb'.
35623         * modules/unistr/u8-uctomb-tests: New file.
35624         * tests/unistr/test-u8-uctomb.c: New file.
35625
35626         Tests for module 'unistr/u32-mbtoucr'.
35627         * modules/unistr/u32-mbtoucr-tests: New file.
35628         * tests/unistr/test-u32-mbtoucr.c: New file.
35629
35630         Tests for module 'unistr/u16-mbtoucr'.
35631         * modules/unistr/u16-mbtoucr-tests: New file.
35632         * tests/unistr/test-u16-mbtoucr.c: New file.
35633
35634         Tests for module 'unistr/u8-mbtoucr'.
35635         * modules/unistr/u8-mbtoucr-tests: New file.
35636         * tests/unistr/test-u8-mbtoucr.c: New file.
35637
35638         Tests for module 'unistr/u32-mbtouc'.
35639         * modules/unistr/u32-mbtouc-tests: New file.
35640         * tests/unistr/test-u32-mbtouc.c: New file.
35641
35642         Tests for module 'unistr/u16-mbtouc'.
35643         * modules/unistr/u16-mbtouc-tests: New file.
35644         * tests/unistr/test-u16-mbtouc.c: New file.
35645
35646         Tests for module 'unistr/u8-mbtouc'.
35647         * modules/unistr/u8-mbtouc-tests: New file.
35648         * tests/unistr/test-u8-mbtouc.c: New file.
35649
35650         Tests for module 'unistr/u32-mbtouc-unsafe'.
35651         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35652         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35653         * tests/unistr/test-u32-mbtouc.h: New file.
35654
35655         Tests for module 'unistr/u16-mbtouc-unsafe'.
35656         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35657         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35658         * tests/unistr/test-u16-mbtouc.h: New file.
35659
35660         Tests for module 'unistr/u8-mbtouc-unsafe'.
35661         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35662         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35663         * tests/unistr/test-u8-mbtouc.h: New file.
35664
35665         Tests for module 'unistr/u32-mblen'.
35666         * modules/unistr/u32-mblen-tests: New file.
35667         * tests/unistr/test-u32-mblen.c: New file.
35668
35669         Tests for module 'unistr/u16-mblen'.
35670         * modules/unistr/u16-mblen-tests: New file.
35671         * tests/unistr/test-u16-mblen.c: New file.
35672
35673         Tests for module 'unistr/u8-mblen'.
35674         * modules/unistr/u8-mblen-tests: New file.
35675         * tests/unistr/test-u8-mblen.c: New file.
35676
35677         Tests for module 'unistr/u32-to-u16'.
35678         * modules/unistr/u32-to-u16-tests: New file.
35679         * tests/unistr/test-u32-to-u16.c: New file.
35680
35681         Tests for module 'unistr/u32-to-u8'.
35682         * modules/unistr/u32-to-u8-tests: New file.
35683         * tests/unistr/test-u32-to-u8.c: New file.
35684
35685         Tests for module 'unistr/u16-to-u32'.
35686         * modules/unistr/u16-to-u32-tests: New file.
35687         * tests/unistr/test-u16-to-u32.c: New file.
35688
35689         Tests for module 'unistr/u16-to-u8'.
35690         * modules/unistr/u16-to-u8-tests: New file.
35691         * tests/unistr/test-u16-to-u8.c: New file.
35692
35693         Tests for module 'unistr/u8-to-u32'.
35694         * modules/unistr/u8-to-u32-tests: New file.
35695         * tests/unistr/test-u8-to-u32.c: New file.
35696
35697         Tests for module 'unistr/u8-to-u16'.
35698         * modules/unistr/u8-to-u16-tests: New file.
35699         * tests/unistr/test-u8-to-u16.c: New file.
35700
35701         Tests for module 'unistr/u32-check'.
35702         * modules/unistr/u32-check-tests: New file.
35703         * tests/unistr/test-u32-check.c: New file.
35704
35705         Tests for module 'unistr/u16-check'.
35706         * modules/unistr/u16-check-tests: New file.
35707         * tests/unistr/test-u16-check.c: New file.
35708
35709         Tests for module 'unistr/u8-check'.
35710         * modules/unistr/u8-check-tests: New file.
35711         * tests/unistr/test-u8-check.c: New file.
35712
35713         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35714         (category_equals): New function.
35715         (main): Add more tests.
35716         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35717
35718         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35719
35720 2010-01-10  Bruno Haible  <bruno@clisp.org>
35721
35722         unistr/u*-strcoll: Try harder to distinguish different strings.
35723         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35724         compare s1 and s2 to see if they are different.
35725
35726 2010-01-10  Bruno Haible  <bruno@clisp.org>
35727
35728         unistr/u*-stpncpy: Fix the return value.
35729         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35730         description of the return value consistent with stpncpy in glibc.
35731         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35732         written non-NUL unit.
35733
35734 2010-01-10  Bruno Haible  <bruno@clisp.org>
35735
35736         unistr/u*-next: Add missing dependencies.
35737         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35738         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35739         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35740
35741 2010-01-10  Bruno Haible  <bruno@clisp.org>
35742
35743         unistr/u8-mbsnlen: Fix return value for incomplete character.
35744         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35745         u8_mblen.
35746         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35747         Remove unistr/u8-mblen.
35748         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35749         u16_mblen.
35750         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35751         Remove unistr/u16-mblen.
35752
35753 2010-01-10  Bruno Haible  <bruno@clisp.org>
35754
35755         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35756         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35757         Reported by Brian Gough <bjg@gnu.org> and
35758         Chris Clayton <chris2553@googlemail.com> via
35759         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35760
35761 2010-01-09  Bruno Haible  <bruno@clisp.org>
35762
35763         unistr/u16-to-u32: Reject invalid input.
35764         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35765         u16_mbtouc.
35766         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35767         Remove unistr/u16-mbtouc.
35768
35769         unistr/u16-to-u8: Reject invalid input.
35770         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35771         u16_mbtouc.
35772         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35773         Remove unistr/u16-mbtouc.
35774
35775         unistr/u8-to-u32: Reject invalid input.
35776         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35777         u8_mbtouc.
35778         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35779         Remove unistr/u8-mbtouc.
35780
35781         unistr/u8-to-u16: Reject invalid input.
35782         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35783         u8_mbtouc.
35784         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35785         Remove unistr/u8-mbtouc.
35786
35787 2010-01-09  Bruno Haible  <bruno@clisp.org>
35788
35789         Tests for module 'getlogin'.
35790         * modules/getlogin-tests: New file.
35791         * tests/test-getlogin.c: New file.
35792
35793         New module 'getlogin'.
35794         * lib/unistd.in.h (getlogin): New declaration.
35795         * lib/getlogin.c: New file.
35796         * m4/getlogin.m4: New file.
35797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35798         HAVE_GETLOGIN.
35799         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35800         HAVE_GETLOGIN.
35801         * modules/getlogin: New file.
35802         * doc/posix-functions/getlogin.texi: Mention the new module.
35803         Reported by John W. Eaton <jwe@gnu.org>.
35804
35805 2010-01-09  Bruno Haible  <bruno@clisp.org>
35806
35807         getlogin_r: Support for native Windows.
35808         * lib/getlogin_r.c: Include <windows.h>
35809         (getlogin_r): Implement for native Windows.
35810         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35811         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35812         via John W. Eaton <jwe@gnu.org>.
35813
35814 2010-01-09  Bruno Haible  <bruno@clisp.org>
35815
35816         getlogin_r: Small fixes.
35817         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35818         succeeds.
35819         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35820         before testing whether getlogin_r is declared. No need to set
35821         HAVE_DECL_GETLOGIN_R to 1.
35822         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35823
35824 2010-01-09  Bruno Haible  <bruno@clisp.org>
35825
35826         * lib/unistd.in.h (getlogin_r): Add comment.
35827
35828 2010-01-09  Bruno Haible  <bruno@clisp.org>
35829
35830         Tests for module 'getlogin_r'.
35831         * modules/getlogin_r-tests: New file.
35832         * tests/test-getlogin_r.c: New file.
35833
35834 2010-01-09  Jim Meyering  <meyering@redhat.com>
35835
35836         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35837         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35838         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35839
35840 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35841
35842         * lib/dup2.c (rpl_dup2): Improve comment.
35843
35844 2010-01-08  Eric Blake  <ebb9@byu.net>
35845
35846         maint.mk: allow packages to add makefile @@ exceptions
35847         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35848         (sc_makefile_check): Rename...
35849         (sc_makefile_at_at_check): ...to this, and use hook.
35850
35851         dup2: work around mingw bug
35852         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35853         Reported by Simon Josefsson.
35854
35855 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35856
35857         glob: Fix C++ compilation.
35858         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35859         C++.
35860
35861 2010-01-07  Bruno Haible  <bruno@clisp.org>
35862
35863         Fix indentation of wctype.in.h, broken since 2007-01-06.
35864         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35865
35866 2010-01-07  Bruno Haible  <bruno@clisp.org>
35867
35868         mbslen: Avoid collision with system function.
35869         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35870         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35871         * m4/mbslen.m4: New file.
35872         * modules/mbslen (Files): Add it.
35873         (configure.ac): Invoke gl_MBSLEN.
35874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35875         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35876         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35877         via Ian Beckwith <ianb@erislabs.net>.
35878
35879 2010-01-07  Bruno Haible  <bruno@clisp.org>
35880
35881         dirent: Document the last fix.
35882         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35883
35884 2010-01-07  Bruno Haible  <bruno@clisp.org>
35885
35886         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35887         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35888         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35889         va_list are defined.
35890         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35891         Reported by Eric Blake.
35892
35893 2010-01-07  Bruno Haible  <bruno@clisp.org>
35894
35895         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35896         * modules/xlist (Depends-on): Add 'list',
35897         * modules/xoset (Depends-on): Add 'oset'.
35898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35899
35900 2010-01-07  Bruno Haible  <bruno@clisp.org>
35901
35902         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35903         * doc/posix-functions/strncasecmp.texi: Likewise.
35904
35905 2010-01-07  Bruno Haible  <bruno@clisp.org>
35906
35907         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35908
35909 2010-01-07  John W. Eaton  <jwe@octave.org>
35910
35911         wctype: allow C++ use
35912         * lib/wctype.in.h: Add extern "C" block for C++.
35913
35914 2010-01-06  Eric Blake  <ebb9@byu.net>
35915
35916         maint.mk: detect incorrect GFDL usage
35917         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35918
35919 2010-01-06  Jim Meyering  <meyering@redhat.com>
35920         and Eric Blake  <ebb9@byu.net>
35921
35922         maint.mk: ignore multi-line copyright in NEWS
35923         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35924
35925 2010-01-06  Eric Blake  <ebb9@byu.net>
35926
35927         select: add missing dependency
35928         * modules/select-tests (Depends-on): Move sockets dependency...
35929         * modules/select (Depends-on): ...here.
35930         Reported by Ian Beckwith.
35931
35932         doc: regenerate INSTALL
35933         * doc/INSTALL: Reflect recent autoconf update.
35934         * doc/INSTALL.ISO: Likewise.
35935         * doc/INSTALL.UTF-8: Likewise.
35936
35937         pread: fix compilation on glibc
35938         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35939         Reported by Ralf Wildenhues.
35940
35941         dirent: fix test failure
35942         * lib/dirent.in.h (includes): Guarantee ino_t.
35943         Reported by Ralf Wildenhues.
35944
35945 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35946
35947         linkat, renameat: avoid bad free
35948         * lib/at-func2.c (at_func2): Fix typo.
35949         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35950
35951 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35952
35953         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35954         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35955         to avoid failure of symlink test later.
35956
35957 2010-01-06  Eric Blake  <ebb9@byu.net>
35958
35959         stdio, unistd: guarantee ssize_t
35960         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35961         2008 are exposed when needed.
35962         * lib/stdio.in.h (includes): Likewise.
35963         Reported by Ralf Wildenhues.
35964
35965 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35966
35967         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35968         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35969         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35970
35971 2010-01-06  Jim Meyering  <meyering@redhat.com>
35972
35973         readtokens: this module *does* require xalloc.h
35974         It uses only functions that were omitted by the old syntax-check rule.
35975         * lib/readtokens.c: Include "xalloc.h" once again.
35976         * modules/readtokens (Depends-on): Add xalloc.
35977         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35978
35979 2010-01-05  Eric Blake  <ebb9@byu.net>
35980
35981         maint: support 'make announcement' from a VPATH build
35982         * top/maint.mk (announcement): Look for correct NEWS file.
35983
35984 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35985
35986         utimens (fdutimens): ignore a negative FD, per contract
35987         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35988         when we have a valid file descriptor.  Otherwise, using a brand
35989         new glibc (with just-patched futimens that now fails with EBADF)
35990         would cause this function to fail with ENOSYS.
35991         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35992         See also http://bugzilla.redhat.com/552320.
35993
35994 2010-01-05  Eric Blake  <ebb9@byu.net>
35995
35996         strcase: document what it provides
35997         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35998         gnulib module.
35999         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36000         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36001
36002 2010-01-05  Jim Meyering  <meyering@redhat.com>
36003
36004         maint: remove useless inclusions of "xalloc.h"
36005         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36006         * lib/readtokens.c: Likewise.
36007         * lib/same.c: Likewise.
36008         * modules/getloadavg (Depends-on): Remove xalloc.
36009         * modules/readtokens: Likewise.
36010         * modules/same: Likewise.
36011
36012         maint.mk: include 4 more function names in alloca.h-checking regexp
36013         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36014         regexp.  Before, we would give a false-positive (saying alloca.h
36015         is included unnecessarily) when the only uses involved omitted symbols.
36016
36017         xalloc.h: use consistent formatting
36018         * lib/xalloc.h: Move declarations to start in the first column.
36019
36020 2010-01-05  Eric Blake  <ebb9@byu.net>
36021
36022         mkdir: avoid xalloc
36023         * lib/mkdir.c (includes): Drop unused header.
36024         Reported by John W. Eaton.
36025
36026 2010-01-04  Jim Meyering  <meyering@redhat.com>
36027
36028         nl_langinfo: avoid configure-time syntax error
36029         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36030         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36031         the empty string.  Don't let that provoke a shell syntax error.
36032
36033         regcomp, regexec, fnmatch: avoid array bounds read error
36034         * lib/regcomp.c (build_equiv_class): From glibc:
36035         Use only the low 24 bits of a findidx return value as an index
36036         into the weights array.  Patch by Ulrich Drepper:
36037         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36038         * lib/regexec.c (check_node_accept_bytes): Likewise.
36039         * lib/fnmatch_loop.c (FCT): Likewise.
36040
36041         regcomp: skip collseq lookup when there are no rules
36042         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36043         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36044
36045         regcomp: recognize ill-formed { } expressions
36046         * lib/regcomp.c (parse_dup_op): From glibc:
36047         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36048
36049         regcomp: fix typo in comment
36050         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36051         s/satisfy/satisfies/.
36052
36053         regcomp: sync from glibc: remove dead store
36054         * lib/regcomp.c (duplicate_node_closure): Remove useless
36055         search_duplicated_node call and dead store.
36056
36057         regcomp: sync from glibc; always use nl_langinfo
36058         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36059         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36060         * modules/regex (Depends-on): Add nl_langinfo.
36061
36062 2010-01-04  Eric Blake  <ebb9@byu.net>
36063
36064         fdopendir: fix configure test
36065         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36066
36067 2010-01-01  Bruno Haible  <bruno@clisp.org>
36068
36069         wchar: Remove unused configure check.
36070         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36071
36072 2010-01-01  Eric Blake  <ebb9@byu.net>
36073
36074         headers: make check of system header explicit
36075         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36076         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36077         ourselves.
36078         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36080         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36081         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36082         internals.
36083         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36084         missing.
36085         Suggested by Bruno Haible.
36086
36087 2010-01-01  Jim Meyering  <meyering@redhat.com>
36088
36089         ChangeLog: tweak to eliminate unnecessary copyright line
36090         * ChangeLog: Remove a copyright line that was mistakenly updated
36091         by today's update-copyright run.  Reported by Eric Blake.
36092
36093         test-update-copyright: don't let envvar setting cause test failure
36094         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36095
36096 2010-01-01  Bruno Haible  <bruno@clisp.org>
36097
36098         localename: Avoid gcc warning.
36099         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36100         function if it is not used.
36101
36102 2010-01-01  Jim Meyering  <meyering@redhat.com>
36103
36104         update nearly all FSF copyright year lists to include 2010
36105         Use the same procedure as for 2009, outlined in
36106         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36107
36108         version-etc: set COPYRIGHT_YEAR to 2010
36109         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36110
36111 2009-12-31  Eric Blake  <ebb9@byu.net>
36112
36113         doc: correct availability of cygwin 1.5.x getopt
36114         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36115         variables.
36116         * doc/posix-functions/opterr.texi (opterr): Likewise.
36117         * doc/posix-functions/optind.texi (optind): Likewise.
36118         * doc/posix-functions/optopt.texi (optopt): Likewise.
36119         * doc/posix-functions/tzname.texi (tzname): Likewise.
36120
36121         openat: update maintainer
36122         * modules/openat (Maintainer): Add myself.
36123
36124         utimens: avoid shadowing warning
36125         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36126         buffers into one, to avoid shadowing, as well as avoiding a
36127         redundant stat.
36128         Reported by Jim Meyering.
36129
36130         test-dup2: avoid compiler warning
36131         * tests/test-dup2.c (is_inheritable): Only define if used.
36132
36133 2010-01-01  Bruno Haible  <bruno@clisp.org>
36134
36135         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36136         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36137         defined, use wctomb instead of wcrtomb.
36138
36139 2010-01-01  Bruno Haible  <bruno@clisp.org>
36140
36141         iconv: Reject native Solaris iconv.
36142         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36143         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36144
36145 2009-12-31  Bruno Haible  <bruno@clisp.org>
36146
36147         * tests/test-signal.c (main): Remove test of 'SIG'.
36148
36149 2009-12-31  Bruno Haible  <bruno@clisp.org>
36150
36151         spawn: Fix incomplete fix.
36152         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36153         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36154         warnings for GNULIB_POSIXCHECK again.
36155         Reported by Eric Blake.
36156
36157 2009-12-31  Bruno Haible  <bruno@clisp.org>
36158
36159         Avoid namespace pollution on glibc systems.
36160         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36161         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36162         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36163         glibc systems.
36164
36165 2009-12-31  Bruno Haible  <bruno@clisp.org>
36166
36167         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36168         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36169         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36170         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36171         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36172         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36173         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36174
36175 2009-12-31  Bruno Haible  <bruno@clisp.org>
36176
36177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36178         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36179         afterwards.
36180
36181 2009-12-31  Bruno Haible  <bruno@clisp.org>
36182
36183         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36184         SYS_UTSNAME_H.
36185
36186 2009-12-31  Bruno Haible  <bruno@clisp.org>
36187
36188         spawn: Fix misapplied patch.
36189         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36190         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36191         warnings for GNULIB_POSIXCHECK.
36192
36193 2009-12-31  Bruno Haible  <bruno@clisp.org>
36194
36195         times: Update after sys_times changed.
36196         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36197         * modules/times (Files): Add it.
36198         (configure.ac): Invoke gl_FUNC_TIMES.
36199
36200 2009-12-31  Bruno Haible  <bruno@clisp.org>
36201
36202         Use AC_C_INLINE where necessary.
36203         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36206         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36207         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36208         * m4/mbiter.m4 (gl_MBITER): Likewise.
36209         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36210         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36211         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36212         * modules/u64 (configure.ac): Likewise.
36213
36214 2009-12-31  Bruno Haible  <bruno@clisp.org>
36215
36216         Use AC_C_INLINE instead of module 'inline' where possible.
36217         * modules/inline (Description): Clarify purpose.
36218         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36219         * modules/count-one-bits (Depends-on): Remove inline.
36220         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36221         * modules/openat (Depends-on): Remove inline.
36222         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36223         instead of depending on module 'inline'.
36224         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36225         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36226         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36227         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36228         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36229         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36230         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36231         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36232         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36233         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36234         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36235         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36236         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36237         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36238         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36239         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36240         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36241         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36242         Likewise.
36243         * modules/unictype/property-ascii-hex-digit (Depends-on,
36244         configure.ac): Likewise.
36245         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36246         configure.ac): Likewise.
36247         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36248         configure.ac): Likewise.
36249         * modules/unictype/property-bidi-block-separator (Depends-on,
36250         configure.ac): Likewise.
36251         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36252         configure.ac): Likewise.
36253         * modules/unictype/property-bidi-common-separator (Depends-on,
36254         configure.ac): Likewise.
36255         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36256         Likewise.
36257         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36258         configure.ac): Likewise.
36259         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36260         configure.ac): Likewise.
36261         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36262         configure.ac): Likewise.
36263         * modules/unictype/property-bidi-european-digit (Depends-on,
36264         configure.ac): Likewise.
36265         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36266         configure.ac): Likewise.
36267         * modules/unictype/property-bidi-left-to-right (Depends-on,
36268         configure.ac): Likewise.
36269         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36270         configure.ac): Likewise.
36271         * modules/unictype/property-bidi-other-neutral (Depends-on,
36272         configure.ac): Likewise.
36273         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36274         Likewise.
36275         * modules/unictype/property-bidi-segment-separator (Depends-on,
36276         configure.ac): Likewise.
36277         * modules/unictype/property-bidi-whitespace (Depends-on,
36278         configure.ac): Likewise.
36279         * modules/unictype/property-combining (Depends-on, configure.ac):
36280         Likewise.
36281         * modules/unictype/property-composite (Depends-on, configure.ac):
36282         Likewise.
36283         * modules/unictype/property-currency-symbol (Depends-on,
36284         configure.ac): Likewise.
36285         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36286         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36287         Likewise.
36288         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36289         configure.ac): Likewise.
36290         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36291         Likewise.
36292         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36293         Likewise.
36294         * modules/unictype/property-extender (Depends-on, configure.ac):
36295         Likewise.
36296         * modules/unictype/property-format-control (Depends-on, configure.ac):
36297         Likewise.
36298         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36299         Likewise.
36300         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36301         Likewise.
36302         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36303         Likewise.
36304         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36305         Likewise.
36306         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36307         Likewise.
36308         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36309         Likewise.
36310         * modules/unictype/property-id-start (Depends-on, configure.ac):
36311         Likewise.
36312         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36313         Likewise.
36314         * modules/unictype/property-ids-binary-operator (Depends-on,
36315         configure.ac): Likewise.
36316         * modules/unictype/property-ids-trinary-operator (Depends-on,
36317         configure.ac): Likewise.
36318         * modules/unictype/property-ignorable-control (Depends-on,
36319         configure.ac): Likewise.
36320         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36321         Likewise.
36322         * modules/unictype/property-join-control (Depends-on, configure.ac):
36323         Likewise.
36324         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36325         Likewise.
36326         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36327         Likewise.
36328         * modules/unictype/property-logical-order-exception (Depends-on,
36329         configure.ac): Likewise.
36330         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36331         Likewise.
36332         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36333         * modules/unictype/property-non-break (Depends-on, configure.ac):
36334         Likewise.
36335         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36336         Likewise.
36337         * modules/unictype/property-numeric (Depends-on, configure.ac):
36338         Likewise.
36339         * modules/unictype/property-other-alphabetic (Depends-on,
36340         configure.ac): Likewise.
36341         * modules/unictype/property-other-default-ignorable-code-point
36342         (Depends-on, configure.ac): Likewise.
36343         * modules/unictype/property-other-grapheme-extend (Depends-on,
36344         configure.ac): Likewise.
36345         * modules/unictype/property-other-id-continue (Depends-on,
36346         configure.ac): Likewise.
36347         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36348         Likewise.
36349         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36350         Likewise.
36351         * modules/unictype/property-other-math (Depends-on, configure.ac):
36352         Likewise.
36353         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36354         Likewise.
36355         * modules/unictype/property-paired-punctuation (Depends-on,
36356         configure.ac): Likewise.
36357         * modules/unictype/property-paragraph-separator (Depends-on,
36358         configure.ac): Likewise.
36359         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36360         Likewise.
36361         * modules/unictype/property-pattern-white-space (Depends-on,
36362         configure.ac): Likewise.
36363         * modules/unictype/property-private-use (Depends-on, configure.ac):
36364         Likewise.
36365         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36366         Likewise.
36367         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36368         Likewise.
36369         * modules/unictype/property-radical (Depends-on, configure.ac):
36370         Likewise.
36371         * modules/unictype/property-sentence-terminal (Depends-on,
36372         configure.ac): Likewise.
36373         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36374         Likewise.
36375         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36376         * modules/unictype/property-terminal-punctuation (Depends-on,
36377         configure.ac): Likewise.
36378         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36379         Likewise.
36380         * modules/unictype/property-unassigned-code-value (Depends-on,
36381         configure.ac): Likewise.
36382         * modules/unictype/property-unified-ideograph (Depends-on,
36383         configure.ac): Likewise.
36384         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36385         Likewise.
36386         * modules/unictype/property-variation-selector (Depends-on,
36387         configure.ac): Likewise.
36388         * modules/unictype/property-white-space (Depends-on, configure.ac):
36389         Likewise.
36390         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36391         Likewise.
36392         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36393         Likewise.
36394         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36395         Likewise.
36396         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36397         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36398         Likewise.
36399
36400 2009-12-31  Bruno Haible  <bruno@clisp.org>
36401
36402         Remove unnecessary AC_C_INLINE invocation.
36403         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36404         since 2009-08-21.
36405
36406 2009-12-31  Jim Meyering  <meyering@redhat.com>
36407
36408         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36409         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36410         With this change, we can all remove the gpg_key_ID = ... definition
36411         from our respective cfg.mk files.
36412
36413         maint.mk: create announcement template in ~/, not in /tmp
36414         * top/maint.mk (emit_upload_commands): Adjust.
36415         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36416         Remove temporary file, .ci-msg.
36417
36418 2009-12-31  Eric Blake  <ebb9@byu.net>
36419
36420         link-warning: always build headers with link warnings
36421         * modules/arpa_inet (Makefile.am): Always build replacement
36422         header.
36423         * modules/ctype (Makefile.am): Likewise.
36424         * modules/dirent (Makefile.am): Likewise.
36425         * modules/inttypes (Makefile.am): Likewise.
36426         * modules/langinfo (Makefile.am): Likewise.
36427         * modules/locale (Makefile.am): Likewise.
36428         * modules/spawn (Makefile.am): Likewise.
36429         * modules/sys_file (Makefile.am): Likewise.
36430         * modules/sys_ioctl (Makefile.am): Likewise.
36431         * modules/sys_select (Makefile.am): Likewise.
36432         * modules/sys_socket (Makefile.am): Likewise.
36433         * modules/sys_times (Makefile.am): Likewise.
36434         * modules/sys_utsname (Makefile.am): Likewise.
36435         * modules/sys_wait (Makefile.am): Likewise.
36436         * modules/wchar (Makefile.am): Likewise.
36437         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36438         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36439         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36440         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36441         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36442         Likewise.
36443         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36444         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36445         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36446         Likewise.
36447         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36448         Likewise.
36449         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36450         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36451         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36453         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36455         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36456         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36457         (gl_WCHAR_H_DEFAULTS): Likewise.
36458
36459 2009-12-31  Eric Blake  <ebb9@byu.net>
36460
36461         signal, spawn: use link warnings
36462         * lib/signal.in.h (sigset_t): Make unconditional.
36463         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36464         (sigpending, sigprocmask, sigaction): Add link warnings.
36465         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36466         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36467         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36468         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36469         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36470         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36471         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36472         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36473         (posix_spawn_file_actions_destroy)
36474         (posix_spawn_file_actions_addopen)
36475         (posix_spawn_file_actions_addclose)
36476         (posix_spawn_file_actions_adddup2): Likewise.
36477         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36478         * tests/test-signal.c (main): Enhance test.
36479
36480         spawn: improve wrapper support
36481         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36482         (gl_SPAWN_H_DEFAULTS): New defaults.
36483         * modules/spawn (Makefile.am): Substitute them.
36484         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36485         Only declare if missing or broken.
36486
36487         sys_times, sys_utsname: use include_next
36488         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36489         header.
36490         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36491         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36492         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36493         * modules/sys_times (Depends-on): Add include_next.
36494         (Makefile.am): Substitute additional values.
36495         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36496         * lib/sys_times.in.h (includes): Include native header, if
36497         available.
36498         * lib/sys_utsname.in.h (includes): Likewise.
36499         * tests/test-sys_times.c (main): Enhance test.
36500
36501         fdutimensat: revert prior patch
36502         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36503         utimens.h.
36504         Reported by Bruno Haible.
36505
36506 2009-12-30  Eric Blake  <ebb9@byu.net>
36507
36508         sys_wait: drop link-warning dependency
36509         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36510         link-warning efforts.
36511         * lib/sys_wait.in.h: Likewise.
36512
36513         fdutimensat: remove bogus dependency
36514         * modules/fdutimensat (Depends-on): Drop inline.
36515
36516         unistd: fix typo
36517         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36518
36519 2009-12-30  Bruno Haible  <bruno@clisp.org>
36520
36521         Fix compilation error with Solaris cc.
36522         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36523         * lib/unicase/u16-is-invariant.c: Likewise.
36524         * lib/unicase/u32-is-invariant.c: Likewise.
36525         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36526
36527 2009-12-30  Bruno Haible  <bruno@clisp.org>
36528
36529         Fix test crash.
36530         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36531         locales.
36532         Reported by Simon Josefsson <simon@josefsson.org>.
36533
36534 2009-12-30  Bruno Haible  <bruno@clisp.org>
36535
36536         Fix compilation error on most platforms.
36537         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36538         Reported by Simon Josefsson <simon@josefsson.org>
36539         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36540
36541 2009-12-30  Eric Blake  <ebb9@byu.net>
36542
36543         futimens, utimensat: work around ntfs-3g bug
36544         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36545         a ctime bug is present, and expand workaround to cover ntfs-3g.
36546         * lib/utimens.c (fdutimens, lutimens): Likewise.
36547         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36548         (validate_timespec): Adjust return value.
36549         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36550         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36551         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36552
36553 2009-12-29  Eric Blake  <ebb9@byu.net>
36554
36555         link-warning: make usage consistent
36556         * modules/ctype (Depends-on): Add link-warning.
36557         (Makefile.am): Update rules accordingly.
36558         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36559         * modules/locale (Depends-on, Makefile.am): Likewise.
36560         * modules/sys_file (Makefile.am): Likewise.
36561         * modules/getopt-posix (Makefile.am): Delete unused link warning
36562         efforts.
36563         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36564         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36565         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36566         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36567
36568         stdio: remove unused variables
36569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36571         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36572
36573         tests: test more substitute headers
36574         * modules/ctype-tests: New file.
36575         * modules/dirent-tests: Likewise.
36576         * modules/spawn-tests: Likewise.
36577         * modules/sys_file-tests: Likewise.
36578         * modules/sys_ioctl-tests: Likewise.
36579         * modules/sys_wait-tests: Likewise.
36580         * tests/test-ctype.c: Likewise.
36581         * tests/test-dirent.c: Likewise.
36582         * tests/test-spawn.c: Likewise.
36583         * tests/test-sys_file.c: Likewise.
36584         * tests/test-sys_ioctl.c: Likewise.
36585         * tests/test-sys_wait.c: Likewise.
36586         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36587         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36588         whether or not flock is in use.
36589
36590         tests: remove License section from module
36591         * modules/arpa_inet-tests: Remove unneeded section.
36592         * modules/byteswap-tests: Likewise.
36593         * modules/ceilf-tests: Likewise.
36594         * modules/ceill-tests: Likewise.
36595         * modules/crypto/des-tests: Likewise.
36596         * modules/crypto/gc-arcfour-tests: Likewise.
36597         * modules/crypto/gc-arctwo-tests: Likewise.
36598         * modules/crypto/gc-des-tests: Likewise.
36599         * modules/crypto/gc-hmac-md5-tests: Likewise.
36600         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36601         * modules/crypto/gc-md2-tests: Likewise.
36602         * modules/crypto/gc-md4-tests: Likewise.
36603         * modules/crypto/gc-md5-tests: Likewise.
36604         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36605         * modules/crypto/gc-rijndael-tests: Likewise.
36606         * modules/crypto/gc-sha1-tests: Likewise.
36607         * modules/crypto/gc-tests: Likewise.
36608         * modules/crypto/md2-tests: Likewise.
36609         * modules/crypto/md4-tests: Likewise.
36610         * modules/fcntl-h-tests: Likewise.
36611         * modules/floorf-tests: Likewise.
36612         * modules/floorl-tests: Likewise.
36613         * modules/frexp-nolibm-tests: Likewise.
36614         * modules/frexp-tests: Likewise.
36615         * modules/frexpl-nolibm-tests: Likewise.
36616         * modules/frexpl-tests: Likewise.
36617         * modules/getaddrinfo-tests: Likewise.
36618         * modules/inttypes-tests: Likewise.
36619         * modules/isfinite-tests: Likewise.
36620         * modules/isinf-tests: Likewise.
36621         * modules/ldexpl-tests: Likewise.
36622         * modules/locale-tests: Likewise.
36623         * modules/math-tests: Likewise.
36624         * modules/netdb-tests: Likewise.
36625         * modules/netinet_in-tests: Likewise.
36626         * modules/printf-frexp-tests: Likewise.
36627         * modules/printf-frexpl-tests: Likewise.
36628         * modules/priv-set-tests: Likewise.
36629         * modules/random_r-tests: Likewise.
36630         * modules/round-tests: Likewise.
36631         * modules/roundf-tests: Likewise.
36632         * modules/roundl-tests: Likewise.
36633         * modules/search-tests: Likewise.
36634         * modules/select-tests: Likewise.
36635         * modules/signal-tests: Likewise.
36636         * modules/stdbool-tests: Likewise.
36637         * modules/stddef-tests: Likewise.
36638         * modules/stdint-tests: Likewise.
36639         * modules/stdio-tests: Likewise.
36640         * modules/stdlib-tests: Likewise.
36641         * modules/string-tests: Likewise.
36642         * modules/strings-tests: Likewise.
36643         * modules/sys_select-tests: Likewise.
36644         * modules/sys_socket-tests: Likewise.
36645         * modules/sys_stat-tests: Likewise.
36646         * modules/sys_time-tests: Likewise.
36647         * modules/sys_utsname-tests: Likewise.
36648         * modules/sysexits-tests: Likewise.
36649         * modules/time-tests: Likewise.
36650         * modules/trunc-tests: Likewise.
36651         * modules/truncf-tests: Likewise.
36652         * modules/truncl-tests: Likewise.
36653         * modules/tsearch-tests: Likewise.
36654         * modules/unistd-tests: Likewise.
36655         * modules/wchar-tests: Likewise.
36656         * modules/wctype-tests: Likewise.
36657
36658         tests: fix license on several tests
36659         * tests/test-des.c: Update to GPLv3+.
36660         * tests/test-flock.c: Likewise.
36661         * tests/test-fsync.c: Likewise.
36662         * tests/test-futimens.h: Likewise.
36663         * tests/test-gc-arcfour.c: Likewise.
36664         * tests/test-gc-arctwo.c: Likewise.
36665         * tests/test-gc-des.c: Likewise.
36666         * tests/test-gc-hmac-md5.c: Likewise.
36667         * tests/test-gc-hmac-sha1.c: Likewise.
36668         * tests/test-gc-md2.c: Likewise.
36669         * tests/test-gc-md4.c: Likewise.
36670         * tests/test-gc-md5.c: Likewise.
36671         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36672         * tests/test-gc-rijndael.c: Likewise.
36673         * tests/test-gc-sha1.c: Likewise.
36674         * tests/test-gc.c: Likewise.
36675         * tests/test-getcwd.c: Likewise.
36676         * tests/test-link.c: Likewise.
36677         * tests/test-link.h: Likewise.
36678         * tests/test-lutimens.h: Likewise.
36679         * tests/test-md2.c: Likewise.
36680         * tests/test-md4.c: Likewise.
36681         * tests/test-mkdir.h: Likewise.
36682         * tests/test-rename.c: Likewise.
36683         * tests/test-rename.h: Likewise.
36684         * tests/test-safe-alloc.c: Likewise.
36685         * tests/test-utimens-common.h: Likewise.
36686         * tests/test-utimens.h: Likewise.
36687
36688         maint: sync license texts
36689         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36690         * doc/gpl-3.0.texi: Revert copyright year update.
36691         * doc/lgpl-3.0.texi: Likewise.
36692
36693 2009-12-29  Jim Meyering  <meyering@redhat.com>
36694
36695         update nearly all FSF copyright year lists to include 2009
36696         The files named by the following are exempted:
36697             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36698               test -f "$dst" && { echo "$dst"; continue; }
36699               test -d "$dst" || continue
36700               echo "$dst"/$(basename "$src")
36701             done > exempt
36702             git ls-files tests/unictype >> exempt
36703         In the remaining files, convert to all-interval notation if
36704         - there is already at least one year interval like 2000-2003
36705         - the file is maintained by me
36706         - the file is in lib/uni*/, where that style already prevails
36707         Otherwise, use update-copyright's default.
36708
36709 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36710         and Eric Blake  <ebb9@byu.net>
36711
36712         tests: don't require debug system() to pass
36713         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36714         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36715         * tests/test-unlink.h (test_unlink_func): Likewise.
36716         * tests/test-fstatat.c (main): ...into callers.
36717         * tests/test-lstat.c (main): Likewise.
36718         * tests/test-rmdir.c (main): Likewise.
36719         * tests/test-unlink.c (main): Likewise.
36720         * tests/test-unlinkat.c (main): Likewise.
36721         * tests/test-areadlink-with-size.c (main): Don't require a
36722         debug-only system call to pass, aiding cross-testing to mingw.
36723         * tests/test-areadlink.c (main): Likewise.
36724         * tests/test-areadlinkat-with-size.c (main): Likewise.
36725         * tests/test-areadlinkat.c (main): Likewise.
36726         * tests/test-canonicalize-lgpl.c (main): Likewise.
36727         * tests/test-canonicalize.c (main): Likewise.
36728         * tests/test-chown.c (main): Likewise.
36729         * tests/test-fchownat.c (main): Likewise.
36730         * tests/test-lchown.c (main): Likewise.
36731         * tests/test-fdutimensat.c (main): Likewise.
36732         * tests/test-futimens.c (main): Likewise.
36733         * tests/test-link.c (main): Likewise.
36734         * tests/test-linkat.c (main): Likewise.
36735         * tests/test-mkdir.c (main): Likewise.
36736         * tests/test-mkdirat.c (main): Likewise.
36737         * tests/test-mkfifo.c (main): Likewise.
36738         * tests/test-mkfifoat.c (main): Likewise.
36739         * tests/test-mknod.c (main): Likewise.
36740         * tests/test-readlink.c (main): Likewise.
36741         * tests/test-remove.c (main): Likewise.
36742         * tests/test-rename.c (main): Likewise.
36743         * tests/test-renameat.c (main): Likewise.
36744         * tests/test-symlink.c (main): Likewise.
36745         * tests/test-symlinkat.c (main): Likewise.
36746         * tests/test-utimens.c (main): Likewise.
36747         * tests/test-utimensat.c (main): Likewise.
36748
36749 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36750
36751         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36752         on $(UNUSED_PARAMETER_H) to avoid build failure.
36753
36754 2009-12-28  Jim Meyering  <meyering@redhat.com>
36755
36756         update-copyright: you may specify a max. line length other than 72
36757         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36758
36759         maint: use consistent FSF copyright line syntax
36760         * lib/posixtm.c: Add missing comma in FSF copyright line.
36761         * lib/posixtm.h: Likewise.
36762         * lib/getugroups.c: Add missing ", Inc.".
36763
36764         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36765         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36766         FSF copyright line.  Remove trailing blanks.
36767
36768 2009-12-28  Eric Blake  <ebb9@byu.net>
36769
36770         test-dup2: reduce dependencies
36771         * modules/cloexec (Configure.ac): Set witness.
36772         * modules/dup2-tests (Depends-on): Drop cloexec.
36773         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36774         not present.
36775         Suggested by Bruno Haible.
36776
36777 2009-12-26  Bruno Haible  <bruno@clisp.org>
36778
36779         Remove an unneeded dependency.
36780         * modules/fseterr (Depends-on): Remove dup2.
36781
36782 2009-12-26  Eric Blake  <ebb9@byu.net>
36783
36784         tests: use macros.h in more places
36785         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36786         (ASSERT_STREAM): Provide default of stderr.
36787         * tests/test-dirent-safer.c: Include macros.h, using alternate
36788         stream for assertions.
36789         * tests/test-dup-safer.c: Likewise.
36790         * tests/test-freopen-safer.c: Likewise.
36791         * tests/test-getopt.c: Likewise.
36792         * tests/test-openat-safer.c: Likewise.
36793         * tests/test-pipe.c: Likewise.
36794         * tests/test-popen-safer.c: Likewise.
36795         * modules/dirent-safer-tests (Files): Include macros.h.
36796         * modules/unistd-safer-tests (Files): Likewise.
36797         * modules/freopen-safer-tests (Files): Likewise.
36798         * modules/getopt-posix-tests (Files): Likewise.
36799         * modules/openat-safer-tests (Files): Likewise.
36800         * modules/pipe-tests (Files): Likewise.
36801
36802 2009-12-26  Bruno Haible  <bruno@clisp.org>
36803
36804         javacomp: Portability fix.
36805         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36806         that it also works on Solaris.
36807
36808 2009-12-26  Bruno Haible  <bruno@clisp.org>
36809
36810         localename: Fix storage allocation of gl_locale_name_thread's result.
36811         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36812         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36813         all platforms that have 'uselocale'.
36814         (gl_locale_name_thread_unsafe): New function, extracted from
36815         gl_locale_name_thread.
36816         (gl_locale_name_thread): Call struniq on all platforms that have
36817         'uselocale'.
36818         * tests/test-localename.c (test_locale_name_thread): Check that the
36819         resulting strings are permanently allocated.
36820         * modules/localename-tests (Depends-on): Add strdup.
36821
36822 2009-12-26  Bruno Haible  <bruno@clisp.org>
36823
36824         * tests/test-localename.c (categories): Fill in the strings.
36825
36826 2009-12-26  Jim Meyering  <meyering@redhat.com>
36827
36828         isdir: complete the removal of m4/isdir.m4
36829         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36830
36831         isdir: clean up, since at least grep still uses it
36832         * lib/isdir.c: Include "isdir.h".
36833         (S_ISDIR): Remove now-unneeded definition.
36834         * modules/isdir (Files): Add lib/isdir.h.
36835         * lib/isdir.h: New file, with declaration.
36836         * m4/isdir.m4: Remove file -- unneeded.
36837
36838 2009-12-25  Bruno Haible  <bruno@clisp.org>
36839
36840         selinux-h: Make generated .h files standalone.
36841         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36842         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36843         * lib/se-selinux.in.h: Likewise.
36844         * modules/selinux-h (Depends-on): Add unused-parameter.
36845         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36846         selinux/selinux.h and selinux/context.h.
36847         Suggested by Eric Blake.
36848
36849 2009-12-25  Bruno Haible  <bruno@clisp.org>
36850
36851         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36852         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36853         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36854         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36855         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36856
36857 2009-12-24  Bruno Haible  <bruno@clisp.org>
36858
36859         openat: Fix warning.
36860         * lib/openat-proc.c: Include <unistd.h>.
36861
36862 2009-12-24  Bruno Haible  <bruno@clisp.org>
36863
36864         New module 'unused-parameter'.
36865         * build-aux/unused-parameter.h: New file, extracted from earlier
36866         gnulib-common.m4.
36867         * modules/unused-parameter: New file.
36868         * lib/unistr.h: Include unused-parameter.h.
36869         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36870         _GL_UNUSED.
36871         * modules/unistr/base (Depends-on): Add unused-parameter.
36872
36873 2009-12-24  Bruno Haible  <bruno@clisp.org>
36874
36875         Add missing dependencies to 'extensions' module.
36876         * m4/extensions.m4: Add comment.
36877         * modules/accept4 (Depends-on): Add extensions.
36878         * modules/dup3 (Depends-on): Likewise.
36879         * modules/fcntl (Depends-on): Likewise.
36880         * modules/futimens (Depends-on): Likewise.
36881         * modules/mknod (Depends-on): Likewise.
36882         * modules/pipe2 (Depends-on): Likewise.
36883         * modules/stat-time (Depends-on): Likewise.
36884         * modules/strcasestr-simple (Depends-on): Likewise.
36885         * modules/strsignal (Depends-on): Likewise.
36886         * modules/utimensat (Depends-on): Likewise.
36887         * modules/localcharset (Depends-on): Likewise. Needed because of
36888         gl_FCNTL_O_FLAGS.
36889         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36890         AC_TYPE_MBSTATE_T.
36891         * modules/wcsnrtombs (Depends-on): Likewise.
36892         * modules/wcsrtombs (Depends-on): Likewise.
36893
36894 2009-12-24  Bruno Haible  <bruno@clisp.org>
36895
36896         binary-io: Avoid gcc warning due to SET_BINARY.
36897         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36898         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36899
36900 2009-12-24  Bruno Haible  <bruno@clisp.org>
36901
36902         Avoid future namespace pollution on glibc systems.
36903         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36904         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36905         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36906         glibc systems.
36907
36908 2009-12-24  Bruno Haible  <bruno@clisp.org>
36909
36910         Refactor common macros used in tests.
36911         * tests/macros.h: New file.
36912         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36913         and/or <stdlib.h>, if appropriate.
36914         (ASSERT, SIZEOF): Remove macros.
36915         * tests/test-areadlink-with-size.c: Likewise.
36916         * tests/test-areadlinkat.c: Likewise.
36917         * tests/test-areadlinkat-with-size.c: Likewise.
36918         * tests/test-argmatch.c: Likewise.
36919         * tests/test-argv-iter.c: Likewise.
36920         * tests/test-array-mergesort.c: Likewise.
36921         * tests/test-array_list.c: Likewise.
36922         * tests/test-array_oset.c: Likewise.
36923         * tests/test-avltree_list.c: Likewise.
36924         * tests/test-avltree_oset.c: Likewise.
36925         * tests/test-avltreehash_list.c: Likewise.
36926         * tests/test-base64.c: Likewise.
36927         * tests/test-binary-io.c: Likewise.
36928         * tests/test-bitrotate.c: Likewise.
36929         * tests/test-btowc.c: Likewise.
36930         * tests/test-byteswap.c: Likewise.
36931         * tests/test-c-ctype.c: Likewise.
36932         * tests/test-c-stack.c: Likewise.
36933         * tests/test-c-strcasecmp.c: Likewise.
36934         * tests/test-c-strcasestr.c: Likewise.
36935         * tests/test-c-strncasecmp.c: Likewise.
36936         * tests/test-c-strstr.c: Likewise.
36937         * tests/test-canonicalize-lgpl.c: Likewise.
36938         * tests/test-canonicalize.c: Likewise.
36939         * tests/test-carray_list.c: Likewise.
36940         * tests/test-ceilf1.c: Likewise.
36941         * tests/test-ceilf2.c: Likewise.
36942         * tests/test-ceill.c: Likewise.
36943         * tests/test-chown.c: Likewise.
36944         * tests/test-cloexec.c: Likewise.
36945         * tests/test-copy-acl.c: Likewise.
36946         * tests/test-copy-file.c: Likewise.
36947         * tests/test-count-one-bits.c: Likewise.
36948         * tests/test-dprintf-posix.c: Likewise.
36949         * tests/test-dup2.c: Likewise.
36950         * tests/test-dup3.c: Likewise.
36951         * tests/test-duplocale.c: Likewise.
36952         * tests/test-fbufmode.c: Likewise.
36953         * tests/test-fchdir.c: Likewise.
36954         * tests/test-fchownat.c: Likewise.
36955         * tests/test-fcntl-safer.c: Likewise.
36956         * tests/test-fcntl.c: Likewise.
36957         * tests/test-fdopendir.c: Likewise.
36958         * tests/test-fdutimensat.c: Likewise.
36959         * tests/test-fflush2.c: Likewise.
36960         * tests/test-file-has-acl.c: Likewise.
36961         * tests/test-filevercmp.c: Likewise.
36962         * tests/test-flock.c: Likewise.
36963         * tests/test-floorf1.c: Likewise.
36964         * tests/test-floorf2.c: Likewise.
36965         * tests/test-floorl.c: Likewise.
36966         * tests/test-fnmatch.c: Likewise.
36967         * tests/test-fopen.h: Likewise.
36968         * tests/test-fpending.c: Likewise.
36969         * tests/test-fprintf-posix.c: Likewise.
36970         * tests/test-fpurge.c: Likewise.
36971         * tests/test-freadable.c: Likewise.
36972         * tests/test-freadahead.c: Likewise.
36973         * tests/test-freading.c: Likewise.
36974         * tests/test-freadptr.c: Likewise.
36975         * tests/test-freadptr2.c: Likewise.
36976         * tests/test-freadseek.c: Likewise.
36977         * tests/test-freopen.c: Likewise.
36978         * tests/test-frexp.c: Likewise.
36979         * tests/test-frexpl.c: Likewise.
36980         * tests/test-fseek.c: Likewise.
36981         * tests/test-fseeko.c: Likewise.
36982         * tests/test-fstatat.c: Likewise.
36983         * tests/test-fstrcmp.c: Likewise.
36984         * tests/test-fsync.c: Likewise.
36985         * tests/test-ftell.c: Likewise.
36986         * tests/test-ftello.c: Likewise.
36987         * tests/test-func.c: Likewise.
36988         * tests/test-futimens.c: Likewise.
36989         * tests/test-fwritable.c: Likewise.
36990         * tests/test-fwriting.c: Likewise.
36991         * tests/test-getcwd.c: Likewise.
36992         * tests/test-getdate.c: Likewise.
36993         * tests/test-getdelim.c: Likewise.
36994         * tests/test-getdtablesize.c: Likewise.
36995         * tests/test-getgroups.c: Likewise.
36996         * tests/test-getline.c: Likewise.
36997         * tests/test-getndelim2.c: Likewise.
36998         * tests/test-glob.c: Likewise.
36999         * tests/test-hash.c: Likewise.
37000         * tests/test-i-ring.c: Likewise.
37001         * tests/test-iconv-utf.c: Likewise.
37002         * tests/test-iconv.c: Likewise.
37003         * tests/test-idpriv-drop.c: Likewise.
37004         * tests/test-idpriv-droptemp.c: Likewise.
37005         * tests/test-inet_ntop.c: Likewise.
37006         * tests/test-inet_pton.c: Likewise.
37007         * tests/test-isblank.c: Likewise.
37008         * tests/test-isfinite.c: Likewise.
37009         * tests/test-isinf.c: Likewise.
37010         * tests/test-isnan.c: Likewise.
37011         * tests/test-isnand.h: Likewise.
37012         * tests/test-isnanf.h: Likewise.
37013         * tests/test-isnanl.h: Likewise.
37014         * tests/test-lchown.c: Likewise.
37015         * tests/test-ldexpl.c: Likewise.
37016         * tests/test-link.c: Likewise.
37017         * tests/test-linkat.c: Likewise.
37018         * tests/test-linked_list.c: Likewise.
37019         * tests/test-linkedhash_list.c: Likewise.
37020         * tests/test-localename.c: Likewise.
37021         * tests/test-lseek.c: Likewise.
37022         * tests/test-lstat.c: Likewise.
37023         * tests/test-mbmemcasecmp.c: Likewise.
37024         * tests/test-mbmemcasecoll.c: Likewise.
37025         * tests/test-mbrtowc.c: Likewise.
37026         * tests/test-mbscasecmp.c: Likewise.
37027         * tests/test-mbscasestr1.c: Likewise.
37028         * tests/test-mbscasestr2.c: Likewise.
37029         * tests/test-mbscasestr3.c: Likewise.
37030         * tests/test-mbscasestr4.c: Likewise.
37031         * tests/test-mbschr.c: Likewise.
37032         * tests/test-mbscspn.c: Likewise.
37033         * tests/test-mbsinit.c: Likewise.
37034         * tests/test-mbsncasecmp.c: Likewise.
37035         * tests/test-mbsnrtowcs.c: Likewise.
37036         * tests/test-mbspbrk.c: Likewise.
37037         * tests/test-mbspcasecmp.c: Likewise.
37038         * tests/test-mbsrchr.c: Likewise.
37039         * tests/test-mbsrtowcs.c: Likewise.
37040         * tests/test-mbsspn.c: Likewise.
37041         * tests/test-mbsstr1.c: Likewise.
37042         * tests/test-mbsstr2.c: Likewise.
37043         * tests/test-mbsstr3.c: Likewise.
37044         * tests/test-memchr.c: Likewise.
37045         * tests/test-memchr2.c: Likewise.
37046         * tests/test-memcmp.c: Likewise.
37047         * tests/test-memmem.c: Likewise.
37048         * tests/test-memrchr.c: Likewise.
37049         * tests/test-mkdir.c: Likewise.
37050         * tests/test-mkdirat.c: Likewise.
37051         * tests/test-mkfifo.c: Likewise.
37052         * tests/test-mkfifoat.c: Likewise.
37053         * tests/test-mknod.c: Likewise.
37054         * tests/test-nanosleep.c: Likewise.
37055         * tests/test-nl_langinfo.c: Likewise.
37056         * tests/test-obstack-printf.c: Likewise.
37057         * tests/test-open.c: Likewise.
37058         * tests/test-openat.c: Likewise.
37059         * tests/test-pipe-filter-gi1.c: Likewise.
37060         * tests/test-pipe-filter-gi2-main.c: Likewise.
37061         * tests/test-pipe-filter-ii1.c: Likewise.
37062         * tests/test-pipe-filter-ii2-main.c: Likewise.
37063         * tests/test-pipe2.c: Likewise.
37064         * tests/test-popen.h: Likewise.
37065         * tests/test-posixtm.c: Likewise.
37066         * tests/test-pread.c: Likewise.
37067         * tests/test-printf-frexp.c: Likewise.
37068         * tests/test-printf-frexpl.c: Likewise.
37069         * tests/test-printf-posix.c: Likewise.
37070         * tests/test-priv-set.c: Likewise.
37071         * tests/test-quotearg.c: Likewise.
37072         * tests/test-random_r.c: Likewise.
37073         * tests/test-rawmemchr.c: Likewise.
37074         * tests/test-rbtree_list.c: Likewise.
37075         * tests/test-rbtree_oset.c: Likewise.
37076         * tests/test-rbtreehash_list.c: Likewise.
37077         * tests/test-readlink.c: Likewise.
37078         * tests/test-remove.c: Likewise.
37079         * tests/test-rename.c: Likewise.
37080         * tests/test-renameat.c: Likewise.
37081         * tests/test-rmdir.c: Likewise.
37082         * tests/test-round1.c: Likewise.
37083         * tests/test-roundf1.c: Likewise.
37084         * tests/test-roundl.c: Likewise.
37085         * tests/test-safe-alloc.c: Likewise.
37086         * tests/test-sameacls.c: Likewise.
37087         * tests/test-set-mode-acl.c: Likewise.
37088         * tests/test-setenv.c: Likewise.
37089         * tests/test-sigaction.c: Likewise.
37090         * tests/test-signbit.c: Likewise.
37091         * tests/test-sleep.c: Likewise.
37092         * tests/test-snprintf-posix.c: Likewise.
37093         * tests/test-snprintf.c: Likewise.
37094         * tests/test-sprintf-posix.c: Likewise.
37095         * tests/test-stat-time.c: Likewise.
37096         * tests/test-stat.c: Likewise.
37097         * tests/test-strcasestr.c: Likewise.
37098         * tests/test-strchrnul.c: Likewise.
37099         * tests/test-strerror.c: Likewise.
37100         * tests/test-striconv.c: Likewise.
37101         * tests/test-striconveh.c: Likewise.
37102         * tests/test-striconveha.c: Likewise.
37103         * tests/test-strsignal.c: Likewise.
37104         * tests/test-strstr.c: Likewise.
37105         * tests/test-strtod.c: Likewise.
37106         * tests/test-strverscmp.c: Likewise.
37107         * tests/test-symlink.c: Likewise.
37108         * tests/test-symlinkat.c: Likewise.
37109         * tests/test-trunc1.c: Likewise.
37110         * tests/test-trunc2.c: Likewise.
37111         * tests/test-truncf1.c: Likewise.
37112         * tests/test-truncf2.c: Likewise.
37113         * tests/test-truncl.c: Likewise.
37114         * tests/test-uname.c: Likewise.
37115         * tests/test-unlink.c: Likewise.
37116         * tests/test-unlinkat.c: Likewise.
37117         * tests/test-unsetenv.c: Likewise.
37118         * tests/test-usleep.c: Likewise.
37119         * tests/test-utimens.c: Likewise.
37120         * tests/test-utimensat.c: Likewise.
37121         * tests/test-vasnprintf-posix.c: Likewise.
37122         * tests/test-vasnprintf-posix2.c: Likewise.
37123         * tests/test-vasnprintf.c: Likewise.
37124         * tests/test-vasprintf-posix.c: Likewise.
37125         * tests/test-vasprintf.c: Likewise.
37126         * tests/test-vdprintf-posix.c: Likewise.
37127         * tests/test-vfprintf-posix.c: Likewise.
37128         * tests/test-vprintf-posix.c: Likewise.
37129         * tests/test-vsnprintf-posix.c: Likewise.
37130         * tests/test-vsnprintf.c: Likewise.
37131         * tests/test-vsprintf-posix.c: Likewise.
37132         * tests/test-wcrtomb.c: Likewise.
37133         * tests/test-wcsnrtombs.c: Likewise.
37134         * tests/test-wcsrtombs.c: Likewise.
37135         * tests/test-wctype.c: Likewise.
37136         * tests/test-wcwidth.c: Likewise.
37137         * tests/test-xfprintf-posix.c: Likewise.
37138         * tests/test-xmemdup0.c: Likewise.
37139         * tests/test-xprintf-posix.c: Likewise.
37140         * tests/test-xvasprintf.c: Likewise.
37141         * tests/unicase/test-locale-language.c: Likewise.
37142         * tests/unicase/test-mapping-part1.h: Likewise.
37143         * tests/unicase/test-predicate-part1.h: Likewise.
37144         * tests/unicase/test-u8-casecmp.c: Likewise.
37145         * tests/unicase/test-u8-casecoll.c: Likewise.
37146         * tests/unicase/test-u8-casefold.c: Likewise.
37147         * tests/unicase/test-u8-is-cased.c: Likewise.
37148         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37149         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37150         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37151         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37152         * tests/unicase/test-u8-tolower.c: Likewise.
37153         * tests/unicase/test-u8-totitle.c: Likewise.
37154         * tests/unicase/test-u8-toupper.c: Likewise.
37155         * tests/unicase/test-u16-casecmp.c: Likewise.
37156         * tests/unicase/test-u16-casecoll.c: Likewise.
37157         * tests/unicase/test-u16-casefold.c: Likewise.
37158         * tests/unicase/test-u16-is-cased.c: Likewise.
37159         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37160         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37161         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37162         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37163         * tests/unicase/test-u16-tolower.c: Likewise.
37164         * tests/unicase/test-u16-totitle.c: Likewise.
37165         * tests/unicase/test-u16-toupper.c: Likewise.
37166         * tests/unicase/test-u32-casecmp.c: Likewise.
37167         * tests/unicase/test-u32-casecoll.c: Likewise.
37168         * tests/unicase/test-u32-casefold.c: Likewise.
37169         * tests/unicase/test-u32-is-cased.c: Likewise.
37170         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37171         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37172         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37173         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37174         * tests/unicase/test-u32-tolower.c: Likewise.
37175         * tests/unicase/test-u32-totitle.c: Likewise.
37176         * tests/unicase/test-u32-toupper.c: Likewise.
37177         * tests/unicase/test-ulc-casecmp.c: Likewise.
37178         * tests/unicase/test-ulc-casecoll.c: Likewise.
37179         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37180         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37181         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37182         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37183         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37184         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37185         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37186         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37187         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37188         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37189         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37190         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37191         * tests/unictype/test-bidi_byname.c: Likewise.
37192         * tests/unictype/test-bidi_name.c: Likewise.
37193         * tests/unictype/test-bidi_of.c: Likewise.
37194         * tests/unictype/test-bidi_test.c: Likewise.
37195         * tests/unictype/test-block_list.c: Likewise.
37196         * tests/unictype/test-block_of.c: Likewise.
37197         * tests/unictype/test-block_test.c: Likewise.
37198         * tests/unictype/test-categ_and.c: Likewise.
37199         * tests/unictype/test-categ_and_not.c: Likewise.
37200         * tests/unictype/test-categ_byname.c: Likewise.
37201         * tests/unictype/test-categ_name.c: Likewise.
37202         * tests/unictype/test-categ_none.c: Likewise.
37203         * tests/unictype/test-categ_of.c: Likewise.
37204         * tests/unictype/test-categ_or.c: Likewise.
37205         * tests/unictype/test-categ_test_withtable.c: Likewise.
37206         * tests/unictype/test-combining.c: Likewise.
37207         * tests/unictype/test-decdigit.c: Likewise.
37208         * tests/unictype/test-digit.c: Likewise.
37209         * tests/unictype/test-mirror.c: Likewise.
37210         * tests/unictype/test-numeric.c: Likewise.
37211         * tests/unictype/test-pr_byname.c: Likewise.
37212         * tests/unictype/test-pr_test.c: Likewise.
37213         * tests/unictype/test-predicate-part1.h: Likewise.
37214         * tests/unictype/test-scripts.c: Likewise.
37215         * tests/unictype/test-sy_c_ident.c: Likewise.
37216         * tests/unictype/test-sy_java_ident.c: Likewise.
37217         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37218         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37219         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37220         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37221         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37222         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37223         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37224         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37225         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37226         * tests/uninorm/test-compat-decomposition.c: Likewise.
37227         * tests/uninorm/test-composition.c: Likewise.
37228         * tests/uninorm/test-decomposing-form.c: Likewise.
37229         * tests/uninorm/test-decomposition.c: Likewise.
37230         * tests/uninorm/test-u8-nfc.c: Likewise.
37231         * tests/uninorm/test-u8-nfd.c: Likewise.
37232         * tests/uninorm/test-u8-nfkc.c: Likewise.
37233         * tests/uninorm/test-u8-nfkd.c: Likewise.
37234         * tests/uninorm/test-u8-normcmp.c: Likewise.
37235         * tests/uninorm/test-u8-normcoll.c: Likewise.
37236         * tests/uninorm/test-u16-nfc.c: Likewise.
37237         * tests/uninorm/test-u16-nfd.c: Likewise.
37238         * tests/uninorm/test-u16-nfkc.c: Likewise.
37239         * tests/uninorm/test-u16-nfkd.c: Likewise.
37240         * tests/uninorm/test-u16-normcmp.c: Likewise.
37241         * tests/uninorm/test-u16-normcoll.c: Likewise.
37242         * tests/uninorm/test-u32-nfc.c: Likewise.
37243         * tests/uninorm/test-u32-nfd.c: Likewise.
37244         * tests/uninorm/test-u32-nfkc.c: Likewise.
37245         * tests/uninorm/test-u32-nfkd.c: Likewise.
37246         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37247         * tests/uninorm/test-u32-normcmp.c: Likewise.
37248         * tests/uninorm/test-u32-normcoll.c: Likewise.
37249         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37250         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37251         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37252         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37253         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37254         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37255         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37256         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37257         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37258         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37259         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37260         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37261         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37262         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37263         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37264         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37265         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37266         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37267         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37268         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37269         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37270         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37271         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37272         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37273         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37274         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37275         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37276         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37277         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37278         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37279         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37280         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37281         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37282         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37283         * tests/uniwidth/test-u8-width.c: Likewise.
37284         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37285         * tests/uniwidth/test-u16-width.c: Likewise.
37286         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37287         * tests/uniwidth/test-u32-width.c: Likewise.
37288         * tests/uniwidth/test-uc_width.c: Likewise.
37289         * tests/uniwidth/test-uc_width2.c: Likewise.
37290         * modules/acl-tests (Files): Add tests/macros.h.
37291         * modules/areadlink-tests (Files): Likewise.
37292         * modules/areadlink-with-size-tests (Files): Likewise.
37293         * modules/areadlinkat-tests (Files): Likewise.
37294         * modules/areadlinkat-with-size-tests (Files): Likewise.
37295         * modules/argmatch-tests (Files): Likewise.
37296         * modules/argv-iter-tests (Files): Likewise.
37297         * modules/array-list-tests (Files): Likewise.
37298         * modules/array-mergesort-tests (Files): Likewise.
37299         * modules/array-oset-tests (Files): Likewise.
37300         * modules/avltree-list-tests (Files): Likewise.
37301         * modules/avltree-oset-tests (Files): Likewise.
37302         * modules/avltreehash-list-tests (Files): Likewise.
37303         * modules/base64-tests (Files): Likewise.
37304         * modules/binary-io-tests (Files): Likewise.
37305         * modules/bitrotate-tests (Files): Likewise.
37306         * modules/btowc-tests (Files): Likewise.
37307         * modules/byteswap-tests (Files): Likewise.
37308         * modules/c-ctype-tests (Files): Likewise.
37309         * modules/c-stack-tests (Files): Likewise.
37310         * modules/c-strcase-tests (Files): Likewise.
37311         * modules/c-strcasestr-tests (Files): Likewise.
37312         * modules/c-strstr-tests (Files): Likewise.
37313         * modules/canonicalize-lgpl-tests (Files): Likewise.
37314         * modules/canonicalize-tests (Files): Likewise.
37315         * modules/carray-list-tests (Files): Likewise.
37316         * modules/ceilf-tests (Files): Likewise.
37317         * modules/ceill-tests (Files): Likewise.
37318         * modules/chown-tests (Files): Likewise.
37319         * modules/cloexec-tests (Files): Likewise.
37320         * modules/copy-file-tests (Files): Likewise.
37321         * modules/count-one-bits-tests (Files): Likewise.
37322         * modules/dprintf-posix-tests (Files): Likewise.
37323         * modules/dup2-tests (Files): Likewise.
37324         * modules/dup3-tests (Files): Likewise.
37325         * modules/duplocale-tests (Files): Likewise.
37326         * modules/fbufmode-tests (Files): Likewise.
37327         * modules/fchdir-tests (Files): Likewise.
37328         * modules/fcntl-safer-tests (Files): Likewise.
37329         * modules/fcntl-tests (Files): Likewise.
37330         * modules/fdopendir-tests (Files): Likewise.
37331         * modules/fdutimensat-tests (Files): Likewise.
37332         * modules/fflush-tests (Files): Likewise.
37333         * modules/filevercmp-tests (Files): Likewise.
37334         * modules/flock-tests (Files): Likewise.
37335         * modules/floorf-tests (Files): Likewise.
37336         * modules/floorl-tests (Files): Likewise.
37337         * modules/fnmatch-tests (Files): Likewise.
37338         * modules/fopen-safer-tests (Files): Likewise.
37339         * modules/fopen-tests (Files): Likewise.
37340         * modules/fpending-tests (Files): Likewise.
37341         * modules/fprintf-posix-tests (Files): Likewise.
37342         * modules/fpurge-tests (Files): Likewise.
37343         * modules/freadable-tests (Files): Likewise.
37344         * modules/freadahead-tests (Files): Likewise.
37345         * modules/freading-tests (Files): Likewise.
37346         * modules/freadptr-tests (Files): Likewise.
37347         * modules/freadseek-tests (Files): Likewise.
37348         * modules/freopen-tests (Files): Likewise.
37349         * modules/frexp-nolibm-tests (Files): Likewise.
37350         * modules/frexp-tests (Files): Likewise.
37351         * modules/frexpl-nolibm-tests (Files): Likewise.
37352         * modules/frexpl-tests (Files): Likewise.
37353         * modules/fseek-tests (Files): Likewise.
37354         * modules/fseeko-tests (Files): Likewise.
37355         * modules/fstrcmp-tests (Files): Likewise.
37356         * modules/fsync-tests (Files): Likewise.
37357         * modules/ftell-tests (Files): Likewise.
37358         * modules/ftello-tests (Files): Likewise.
37359         * modules/func-tests (Files): Likewise.
37360         * modules/futimens-tests (Files): Likewise.
37361         * modules/fwritable-tests (Files): Likewise.
37362         * modules/fwriting-tests (Files): Likewise.
37363         * modules/getcwd-tests (Files): Likewise.
37364         * modules/getdate-tests (Files): Likewise.
37365         * modules/getdelim-tests (Files): Likewise.
37366         * modules/getdtablesize-tests (Files): Likewise.
37367         * modules/getgroups-tests (Files): Likewise.
37368         * modules/getline-tests (Files): Likewise.
37369         * modules/getndelim2-tests (Files): Likewise.
37370         * modules/glob-tests (Files): Likewise.
37371         * modules/hash-tests (Files): Likewise.
37372         * modules/i-ring-tests (Files): Likewise.
37373         * modules/iconv-tests (Files): Likewise.
37374         * modules/iconv_open-utf-tests (Files): Likewise.
37375         * modules/idpriv-drop-tests (Files): Likewise.
37376         * modules/idpriv-droptemp-tests (Files): Likewise.
37377         * modules/inet_ntop-tests (Files): Likewise.
37378         * modules/inet_pton-tests (Files): Likewise.
37379         * modules/isblank-tests (Files): Likewise.
37380         * modules/isfinite-tests (Files): Likewise.
37381         * modules/isinf-tests (Files): Likewise.
37382         * modules/isnan-tests (Files): Likewise.
37383         * modules/isnand-nolibm-tests (Files): Likewise.
37384         * modules/isnand-tests (Files): Likewise.
37385         * modules/isnanf-nolibm-tests (Files): Likewise.
37386         * modules/isnanf-tests (Files): Likewise.
37387         * modules/isnanl-nolibm-tests (Files): Likewise.
37388         * modules/isnanl-tests (Files): Likewise.
37389         * modules/lchown-tests (Files): Likewise.
37390         * modules/ldexpl-tests (Files): Likewise.
37391         * modules/link-tests (Files): Likewise.
37392         * modules/linkat-tests (Files): Likewise.
37393         * modules/linked-list-tests (Files): Likewise.
37394         * modules/linkedhash-list-tests (Files): Likewise.
37395         * modules/localename-tests (Files): Likewise.
37396         * modules/lseek-tests (Files): Likewise.
37397         * modules/lstat-tests (Files): Likewise.
37398         * modules/mbmemcasecmp-tests (Files): Likewise.
37399         * modules/mbmemcasecoll-tests (Files): Likewise.
37400         * modules/mbrtowc-tests (Files): Likewise.
37401         * modules/mbscasecmp-tests (Files): Likewise.
37402         * modules/mbscasestr-tests (Files): Likewise.
37403         * modules/mbschr-tests (Files): Likewise.
37404         * modules/mbscspn-tests (Files): Likewise.
37405         * modules/mbsinit-tests (Files): Likewise.
37406         * modules/mbsncasecmp-tests (Files): Likewise.
37407         * modules/mbsnrtowcs-tests (Files): Likewise.
37408         * modules/mbspbrk-tests (Files): Likewise.
37409         * modules/mbspcasecmp-tests (Files): Likewise.
37410         * modules/mbsrchr-tests (Files): Likewise.
37411         * modules/mbsrtowcs-tests (Files): Likewise.
37412         * modules/mbsspn-tests (Files): Likewise.
37413         * modules/mbsstr-tests (Files): Likewise.
37414         * modules/memchr-tests (Files): Likewise.
37415         * modules/memchr2-tests (Files): Likewise.
37416         * modules/memcmp-tests (Files): Likewise.
37417         * modules/memmem-tests (Files): Likewise.
37418         * modules/memrchr-tests (Files): Likewise.
37419         * modules/mkdir-tests (Files): Likewise.
37420         * modules/mkfifo-tests (Files): Likewise.
37421         * modules/mkfifoat-tests (Files): Likewise.
37422         * modules/mknod-tests (Files): Likewise.
37423         * modules/nanosleep-tests (Files): Likewise.
37424         * modules/nl_langinfo-tests (Files): Likewise.
37425         * modules/obstack-printf-tests (Files): Likewise.
37426         * modules/open-tests (Files): Likewise.
37427         * modules/openat-tests (Files): Likewise.
37428         * modules/pipe-filter-gi-tests (Files): Likewise.
37429         * modules/pipe-filter-ii-tests (Files): Likewise.
37430         * modules/pipe2-tests (Files): Likewise.
37431         * modules/popen-safer-tests (Files): Likewise.
37432         * modules/popen-tests (Files): Likewise.
37433         * modules/posixtm-tests (Files): Likewise.
37434         * modules/pread-tests (Files): Likewise.
37435         * modules/printf-frexp-tests (Files): Likewise.
37436         * modules/printf-frexpl-tests (Files): Likewise.
37437         * modules/printf-posix-tests (Files): Likewise.
37438         * modules/priv-set-tests (Files): Likewise.
37439         * modules/quotearg-tests (Files): Likewise.
37440         * modules/random_r-tests (Files): Likewise.
37441         * modules/rawmemchr-tests (Files): Likewise.
37442         * modules/rbtree-list-tests (Files): Likewise.
37443         * modules/rbtree-oset-tests (Files): Likewise.
37444         * modules/rbtreehash-list-tests (Files): Likewise.
37445         * modules/readlink-tests (Files): Likewise.
37446         * modules/remove-tests (Files): Likewise.
37447         * modules/rename-tests (Files): Likewise.
37448         * modules/renameat-tests (Files): Likewise.
37449         * modules/rmdir-tests (Files): Likewise.
37450         * modules/round-tests (Files): Likewise.
37451         * modules/roundf-tests (Files): Likewise.
37452         * modules/roundl-tests (Files): Likewise.
37453         * modules/safe-alloc-tests (Files): Likewise.
37454         * modules/setenv-tests (Files): Likewise.
37455         * modules/sigaction-tests (Files): Likewise.
37456         * modules/signbit-tests (Files): Likewise.
37457         * modules/sleep-tests (Files): Likewise.
37458         * modules/snprintf-posix-tests (Files): Likewise.
37459         * modules/snprintf-tests (Files): Likewise.
37460         * modules/sprintf-posix-tests (Files): Likewise.
37461         * modules/stat-tests (Files): Likewise.
37462         * modules/stat-time-tests (Files): Likewise.
37463         * modules/strcasestr-tests (Files): Likewise.
37464         * modules/strchrnul-tests (Files): Likewise.
37465         * modules/strerror-tests (Files): Likewise.
37466         * modules/striconv-tests (Files): Likewise.
37467         * modules/striconveh-tests (Files): Likewise.
37468         * modules/striconveha-tests (Files): Likewise.
37469         * modules/strsignal-tests (Files): Likewise.
37470         * modules/strstr-tests (Files): Likewise.
37471         * modules/strtod-tests (Files): Likewise.
37472         * modules/strverscmp-tests (Files): Likewise.
37473         * modules/symlink-tests (Files): Likewise.
37474         * modules/symlinkat-tests (Files): Likewise.
37475         * modules/trunc-tests (Files): Likewise.
37476         * modules/truncf-tests (Files): Likewise.
37477         * modules/truncl-tests (Files): Likewise.
37478         * modules/uname-tests (Files): Likewise.
37479         * modules/unicase/cased-tests (Files): Likewise.
37480         * modules/unicase/ignorable-tests (Files): Likewise.
37481         * modules/unicase/locale-language-tests (Files): Likewise.
37482         * modules/unicase/tolower-tests (Files): Likewise.
37483         * modules/unicase/totitle-tests (Files): Likewise.
37484         * modules/unicase/toupper-tests (Files): Likewise.
37485         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37486         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37487         * modules/unicase/u8-casefold-tests (Files): Likewise.
37488         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37489         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37490         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37491         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37492         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37493         * modules/unicase/u8-tolower-tests (Files): Likewise.
37494         * modules/unicase/u8-totitle-tests (Files): Likewise.
37495         * modules/unicase/u8-toupper-tests (Files): Likewise.
37496         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37497         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37498         * modules/unicase/u16-casefold-tests (Files): Likewise.
37499         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37500         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37501         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37502         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37503         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37504         * modules/unicase/u16-tolower-tests (Files): Likewise.
37505         * modules/unicase/u16-totitle-tests (Files): Likewise.
37506         * modules/unicase/u16-toupper-tests (Files): Likewise.
37507         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37508         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37509         * modules/unicase/u32-casefold-tests (Files): Likewise.
37510         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37511         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37512         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37513         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37514         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37515         * modules/unicase/u32-tolower-tests (Files): Likewise.
37516         * modules/unicase/u32-totitle-tests (Files): Likewise.
37517         * modules/unicase/u32-toupper-tests (Files): Likewise.
37518         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37519         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37520         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37521         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37522         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37523         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37524         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37525         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37526         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37527         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37528         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37529         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37530         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37531         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37532         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37533         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37534         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37535         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37536         * modules/unictype/block-list-tests (Files): Likewise.
37537         * modules/unictype/block-of-tests (Files): Likewise.
37538         * modules/unictype/block-test-tests (Files): Likewise.
37539         * modules/unictype/category-C-tests (Files): Likewise.
37540         * modules/unictype/category-Cc-tests (Files): Likewise.
37541         * modules/unictype/category-Cf-tests (Files): Likewise.
37542         * modules/unictype/category-Cn-tests (Files): Likewise.
37543         * modules/unictype/category-Co-tests (Files): Likewise.
37544         * modules/unictype/category-Cs-tests (Files): Likewise.
37545         * modules/unictype/category-L-tests (Files): Likewise.
37546         * modules/unictype/category-Ll-tests (Files): Likewise.
37547         * modules/unictype/category-Lm-tests (Files): Likewise.
37548         * modules/unictype/category-Lo-tests (Files): Likewise.
37549         * modules/unictype/category-Lt-tests (Files): Likewise.
37550         * modules/unictype/category-Lu-tests (Files): Likewise.
37551         * modules/unictype/category-M-tests (Files): Likewise.
37552         * modules/unictype/category-Mc-tests (Files): Likewise.
37553         * modules/unictype/category-Me-tests (Files): Likewise.
37554         * modules/unictype/category-Mn-tests (Files): Likewise.
37555         * modules/unictype/category-N-tests (Files): Likewise.
37556         * modules/unictype/category-Nd-tests (Files): Likewise.
37557         * modules/unictype/category-Nl-tests (Files): Likewise.
37558         * modules/unictype/category-No-tests (Files): Likewise.
37559         * modules/unictype/category-P-tests (Files): Likewise.
37560         * modules/unictype/category-Pc-tests (Files): Likewise.
37561         * modules/unictype/category-Pd-tests (Files): Likewise.
37562         * modules/unictype/category-Pe-tests (Files): Likewise.
37563         * modules/unictype/category-Pf-tests (Files): Likewise.
37564         * modules/unictype/category-Pi-tests (Files): Likewise.
37565         * modules/unictype/category-Po-tests (Files): Likewise.
37566         * modules/unictype/category-Ps-tests (Files): Likewise.
37567         * modules/unictype/category-S-tests (Files): Likewise.
37568         * modules/unictype/category-Sc-tests (Files): Likewise.
37569         * modules/unictype/category-Sk-tests (Files): Likewise.
37570         * modules/unictype/category-Sm-tests (Files): Likewise.
37571         * modules/unictype/category-So-tests (Files): Likewise.
37572         * modules/unictype/category-Z-tests (Files): Likewise.
37573         * modules/unictype/category-Zl-tests (Files): Likewise.
37574         * modules/unictype/category-Zp-tests (Files): Likewise.
37575         * modules/unictype/category-Zs-tests (Files): Likewise.
37576         * modules/unictype/category-and-not-tests (Files): Likewise.
37577         * modules/unictype/category-and-tests (Files): Likewise.
37578         * modules/unictype/category-byname-tests (Files): Likewise.
37579         * modules/unictype/category-name-tests (Files): Likewise.
37580         * modules/unictype/category-none-tests (Files): Likewise.
37581         * modules/unictype/category-of-tests (Files): Likewise.
37582         * modules/unictype/category-or-tests (Files): Likewise.
37583         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37584         * modules/unictype/combining-class-tests (Files): Likewise.
37585         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37586         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37587         * modules/unictype/ctype-blank-tests (Files): Likewise.
37588         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37589         * modules/unictype/ctype-digit-tests (Files): Likewise.
37590         * modules/unictype/ctype-graph-tests (Files): Likewise.
37591         * modules/unictype/ctype-lower-tests (Files): Likewise.
37592         * modules/unictype/ctype-print-tests (Files): Likewise.
37593         * modules/unictype/ctype-punct-tests (Files): Likewise.
37594         * modules/unictype/ctype-space-tests (Files): Likewise.
37595         * modules/unictype/ctype-upper-tests (Files): Likewise.
37596         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37597         * modules/unictype/decimal-digit-tests (Files): Likewise.
37598         * modules/unictype/digit-tests (Files): Likewise.
37599         * modules/unictype/mirror-tests (Files): Likewise.
37600         * modules/unictype/numeric-tests (Files): Likewise.
37601         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37602         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37603         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37604         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37605         Likewise.
37606         * modules/unictype/property-bidi-block-separator-tests (Files):
37607         Likewise.
37608         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37609         Likewise.
37610         * modules/unictype/property-bidi-common-separator-tests (Files):
37611         Likewise.
37612         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37613         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37614         Likewise.
37615         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37616         Likewise.
37617         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37618         Likewise.
37619         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37620         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37621         Likewise.
37622         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37623         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37624         Likewise.
37625         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37626         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37627         * modules/unictype/property-bidi-segment-separator-tests (Files):
37628         Likewise.
37629         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37630         * modules/unictype/property-byname-tests (Files): Likewise.
37631         * modules/unictype/property-combining-tests (Files): Likewise.
37632         * modules/unictype/property-composite-tests (Files): Likewise.
37633         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37634         * modules/unictype/property-dash-tests (Files): Likewise.
37635         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37636         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37637         Likewise.
37638         * modules/unictype/property-deprecated-tests (Files): Likewise.
37639         * modules/unictype/property-diacritic-tests (Files): Likewise.
37640         * modules/unictype/property-extender-tests (Files): Likewise.
37641         * modules/unictype/property-format-control-tests (Files): Likewise.
37642         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37643         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37644         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37645         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37646         * modules/unictype/property-hyphen-tests (Files): Likewise.
37647         * modules/unictype/property-id-continue-tests (Files): Likewise.
37648         * modules/unictype/property-id-start-tests (Files): Likewise.
37649         * modules/unictype/property-ideographic-tests (Files): Likewise.
37650         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37651         * modules/unictype/property-ids-trinary-operator-tests (Files):
37652         Likewise.
37653         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37654         * modules/unictype/property-iso-control-tests (Files): Likewise.
37655         * modules/unictype/property-join-control-tests (Files): Likewise.
37656         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37657         * modules/unictype/property-line-separator-tests (Files): Likewise.
37658         * modules/unictype/property-logical-order-exception-tests (Files):
37659         Likewise.
37660         * modules/unictype/property-lowercase-tests (Files): Likewise.
37661         * modules/unictype/property-math-tests (Files): Likewise.
37662         * modules/unictype/property-non-break-tests (Files): Likewise.
37663         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37664         * modules/unictype/property-numeric-tests (Files): Likewise.
37665         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37666         * modules/unictype/property-other-default-ignorable-code-point-tests
37667         (Files): Likewise.
37668         * modules/unictype/property-other-grapheme-extend-tests (Files):
37669         Likewise.
37670         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37671         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37672         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37673         * modules/unictype/property-other-math-tests (Files): Likewise.
37674         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37675         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37676         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37677         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37678         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37679         * modules/unictype/property-private-use-tests (Files): Likewise.
37680         * modules/unictype/property-punctuation-tests (Files): Likewise.
37681         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37682         * modules/unictype/property-radical-tests (Files): Likewise.
37683         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37684         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37685         * modules/unictype/property-space-tests (Files): Likewise.
37686         * modules/unictype/property-terminal-punctuation-tests (Files):
37687         Likewise.
37688         * modules/unictype/property-test-tests (Files): Likewise.
37689         * modules/unictype/property-titlecase-tests (Files): Likewise.
37690         * modules/unictype/property-unassigned-code-value-tests (Files):
37691         Likewise.
37692         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37693         * modules/unictype/property-uppercase-tests (Files): Likewise.
37694         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37695         * modules/unictype/property-white-space-tests (Files): Likewise.
37696         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37697         * modules/unictype/property-xid-start-tests (Files): Likewise.
37698         * modules/unictype/property-zero-width-tests (Files): Likewise.
37699         * modules/unictype/scripts-tests (Files): Likewise.
37700         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37701         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37702         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37703         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37704         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37705         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37706         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37707         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37708         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37709         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37710         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37711         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37712         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37713         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37714         * modules/uninorm/composition-tests (Files): Likewise.
37715         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37716         * modules/uninorm/decomposition-tests (Files): Likewise.
37717         * modules/uninorm/filter-tests (Files): Likewise.
37718         * modules/uninorm/nfc-tests (Files): Likewise.
37719         * modules/uninorm/nfd-tests (Files): Likewise.
37720         * modules/uninorm/nfkc-tests (Files): Likewise.
37721         * modules/uninorm/nfkd-tests (Files): Likewise.
37722         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37723         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37724         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37725         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37726         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37727         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37728         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37729         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37730         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37731         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37732         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37733         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37734         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37735         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37736         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37737         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37738         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37739         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37740         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37741         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37742         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37743         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37744         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37745         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37746         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37747         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37748         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37749         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37750         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37751         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37752         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37753         * modules/uniwidth/u8-width-tests (Files): Likewise.
37754         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37755         * modules/uniwidth/u16-width-tests (Files): Likewise.
37756         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37757         * modules/uniwidth/u32-width-tests (Files): Likewise.
37758         * modules/uniwidth/width-tests (Files): Likewise.
37759         * modules/unlink-tests (Files): Likewise.
37760         * modules/unsetenv-tests (Files): Likewise.
37761         * modules/usleep-tests (Files): Likewise.
37762         * modules/utimens-tests (Files): Likewise.
37763         * modules/utimensat-tests (Files): Likewise.
37764         * modules/vasnprintf-posix-tests (Files): Likewise.
37765         * modules/vasnprintf-tests (Files): Likewise.
37766         * modules/vasprintf-posix-tests (Files): Likewise.
37767         * modules/vasprintf-tests (Files): Likewise.
37768         * modules/vdprintf-posix-tests (Files): Likewise.
37769         * modules/vfprintf-posix-tests (Files): Likewise.
37770         * modules/vprintf-posix-tests (Files): Likewise.
37771         * modules/vsnprintf-posix-tests (Files): Likewise.
37772         * modules/vsnprintf-tests (Files): Likewise.
37773         * modules/vsprintf-posix-tests (Files): Likewise.
37774         * modules/wcrtomb-tests (Files): Likewise.
37775         * modules/wcsnrtombs-tests (Files): Likewise.
37776         * modules/wcsrtombs-tests (Files): Likewise.
37777         * modules/wctype-tests (Files): Likewise.
37778         * modules/wcwidth-tests (Files): Likewise.
37779         * modules/xmemdup0-tests (Files): Likewise.
37780         * modules/xprintf-posix-tests (Files): Likewise.
37781         * modules/xvasprintf-tests (Files): Likewise.
37782
37783 2009-12-24  Eric Blake  <ebb9@byu.net>
37784
37785         test-nanosleep: fix typo
37786         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37787         patch.
37788         Reported by Bruno Haible.
37789
37790 2009-12-24  Bruno Haible  <bruno@clisp.org>
37791
37792         Reduce namespace pollution on glibc systems.
37793         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37794         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37795         systems.
37796         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37797         <getopt.h> on glibc systems.
37798         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37799         systems.
37800         * lib/fcntl.c: Include <unistd.h> here instead.
37801
37802 2009-12-24  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37805
37806 2009-12-24  Eric Blake  <ebb9@byu.net>
37807
37808         tests: add signature checks
37809         * tests/signature.h (SIGNATURE_CHECK): New file.
37810         * modules/atexit-tests (Files): Use it.
37811         * modules/btowc-tests (Files): Likewise.
37812         * modules/canonicalize-lgpl-tests (Files): Likewise.
37813         * modules/ceilf-tests (Files): Likewise.
37814         * modules/ceill-tests (Files): Likewise.
37815         * modules/chown-tests (Files): Likewise.
37816         * modules/dprintf-posix-tests (Files): Likewise.
37817         * modules/dup2-tests (Files): Likewise.
37818         * modules/dup3-tests (Files): Likewise.
37819         * modules/duplocale-tests (Files): Likewise.
37820         * modules/fchdir-tests (Files): Likewise.
37821         * modules/fcntl-tests (Files): Likewise.
37822         * modules/fdopendir-tests (Files): Likewise.
37823         * modules/fflush-tests (Files): Likewise.
37824         * modules/flock-tests (Files): Likewise.
37825         * modules/floorf-tests (Files): Likewise.
37826         * modules/floorl-tests (Files): Likewise.
37827         * modules/fnmatch-tests (Files): Likewise.
37828         * modules/fopen-tests (Files): Likewise.
37829         * modules/fprintf-posix-tests (Files): Likewise.
37830         * modules/freopen-tests (Files): Likewise.
37831         * modules/frexp-nolibm-tests (Files): Likewise.
37832         * modules/frexp-tests (Files): Likewise.
37833         * modules/frexpl-nolibm-tests (Files): Likewise.
37834         * modules/frexpl-tests (Files): Likewise.
37835         * modules/fseek-tests (Files): Likewise.
37836         * modules/fseeko-tests (Files): Likewise.
37837         * modules/fsync-tests (Files): Likewise.
37838         * modules/ftell-tests (Files): Likewise.
37839         * modules/ftello-tests (Files): Likewise.
37840         * modules/futimens-tests (Files): Likewise.
37841         * modules/getaddrinfo-tests (Files): Likewise.
37842         * modules/getcwd-tests (Files): Likewise.
37843         * modules/getdelim-tests (Files): Likewise.
37844         * modules/getdtablesize-tests (Files): Likewise.
37845         * modules/getgroups-tests (Files): Likewise.
37846         * modules/gethostname-tests (Files): Likewise.
37847         * modules/getline-tests (Files): Likewise.
37848         * modules/getopt-posix-tests (Files): Likewise.
37849         * modules/gettimeofday-tests (Files): Likewise.
37850         * modules/glob-tests (Files): Likewise.
37851         * modules/iconv-tests (Files): Likewise.
37852         * modules/inet_ntop-tests (Files): Likewise.
37853         * modules/inet_pton-tests (Files): Likewise.
37854         * modules/isblank-tests (Files): Likewise.
37855         * modules/lchown-tests (Files): Likewise.
37856         * modules/ldexpl-tests (Files): Likewise.
37857         * modules/link-tests (Files): Likewise.
37858         * modules/linkat-tests (Files): Likewise.
37859         * modules/lseek-tests (Files): Likewise.
37860         * modules/lstat-tests (Files): Likewise.
37861         * modules/mbrtowc-tests (Files): Likewise.
37862         * modules/mbsinit-tests (Files): Likewise.
37863         * modules/mbsnrtowcs-tests (Files): Likewise.
37864         * modules/mbsrtowcs-tests (Files): Likewise.
37865         * modules/memchr-tests (Files): Likewise.
37866         * modules/memcmp-tests (Files): Likewise.
37867         * modules/memmem-tests (Files): Likewise.
37868         * modules/memrchr-tests (Files): Likewise.
37869         * modules/mkdir-tests (Files): Likewise.
37870         * modules/mkfifo-tests (Files): Likewise.
37871         * modules/mkfifoat-tests (Files): Likewise.
37872         * modules/mknod-tests (Files): Likewise.
37873         * modules/nanosleep-tests (Files): Likewise.
37874         * modules/nl_langinfo-tests (Files): Likewise.
37875         * modules/obstack-printf-tests (Files): Likewise.
37876         * modules/open-tests (Files): Likewise.
37877         * modules/openat-tests (Files): Likewise.
37878         * modules/perror-tests (Files): Likewise.
37879         * modules/pipe2-tests (Files): Likewise.
37880         * modules/poll-tests (Files): Likewise.
37881         * modules/popen-tests (Files): Likewise.
37882         * modules/posix_spawn-tests (Files): Likewise.
37883         * modules/posix_spawnp-tests (Files): Likewise.
37884         * modules/pread-tests (Files): Likewise.
37885         * modules/printf-posix-tests (Files): Likewise.
37886         * modules/pty-tests (Files): Likewise.
37887         * modules/random_r-tests (Files): Likewise.
37888         * modules/rawmemchr-tests (Files): Likewise.
37889         * modules/readlink-tests (Files): Likewise.
37890         * modules/remove-tests (Files): Likewise.
37891         * modules/rename-tests (Files): Likewise.
37892         * modules/renameat-tests (Files): Likewise.
37893         * modules/rmdir-tests (Files): Likewise.
37894         * modules/round-tests (Files): Likewise.
37895         * modules/roundf-tests (Files): Likewise.
37896         * modules/roundl-tests (Files): Likewise.
37897         * modules/select-tests (Files): Likewise.
37898         * modules/setenv-tests (Files): Likewise.
37899         * modules/sigaction-tests (Files): Likewise.
37900         * modules/sleep-tests (Files): Likewise.
37901         * modules/snprintf-posix-tests (Files): Likewise.
37902         * modules/snprintf-tests (Files): Likewise.
37903         * modules/sprintf-posix-tests (Files): Likewise.
37904         * modules/stat-tests (Files): Likewise.
37905         * modules/strcasestr-tests (Files): Likewise.
37906         * modules/strchrnul-tests (Files): Likewise.
37907         * modules/strerror-tests (Files): Likewise.
37908         * modules/strsignal-tests (Files): Likewise.
37909         * modules/strstr-tests (Files): Likewise.
37910         * modules/strtod-tests (Files): Likewise.
37911         * modules/strverscmp-tests (Files): Likewise.
37912         * modules/symlink-tests (Files): Likewise.
37913         * modules/symlinkat-tests (Files): Likewise.
37914         * modules/times-tests (Files): Likewise.
37915         * modules/trunc-tests (Files): Likewise.
37916         * modules/truncf-tests (Files): Likewise.
37917         * modules/truncl-tests (Files): Likewise.
37918         * modules/tsearch-tests (Files): Likewise.
37919         * modules/uname-tests (Files): Likewise.
37920         * modules/unlink-tests (Files): Likewise.
37921         * modules/unsetenv-tests (Files): Likewise.
37922         * modules/usleep-tests (Files): Likewise.
37923         * modules/utimensat-tests (Files): Likewise.
37924         * modules/vasprintf-tests (Files): Likewise.
37925         * modules/vdprintf-posix-tests (Files): Likewise.
37926         * modules/vfprintf-posix-tests (Files): Likewise.
37927         * modules/vprintf-posix-tests (Files): Likewise.
37928         * modules/vsnprintf-posix-tests (Files): Likewise.
37929         * modules/vsnprintf-tests (Files): Likewise.
37930         * modules/vsprintf-posix-tests (Files): Likewise.
37931         * modules/wcrtomb-tests (Files): Likewise.
37932         * modules/wcsnrtombs-tests (Files): Likewise.
37933         * modules/wcsrtombs-tests (Files): Likewise.
37934         * modules/wcwidth-tests (Files): Likewise.
37935         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37936         * tests/test-isinf.c (isinf): Likewise.
37937         * tests/test-isnan.c (isnan): Likewise.
37938         * tests/test-signbit.c (signbit): Likewise.
37939         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37940         declaration, either as macro or with correct signature.
37941         (select): Ensure function under test is declared with correct
37942         signature in correct header.
37943         * tests/test-atexit.c (atexit): Likewise.
37944         * tests/test-btowc.c (btowc): Likewise.
37945         * tests/test-canonicalize-lgpl.c (realpath)
37946         (canonicalize_file_name): Likewise.
37947         * tests/test-ceilf1.c (ceilf): Likewise.
37948         * tests/test-ceill.c (ceill): Likewise.
37949         * tests/test-chown.c (chown): Likewise.
37950         * tests/test-dprintf-posix.c (dprintf): Likewise.
37951         * tests/test-dup2.c (dup2): Likewise.
37952         * tests/test-dup3.c (dup3): Likewise.
37953         * tests/test-duplocale.c (duplocale): Likewise.
37954         * tests/test-fchdir.c (fchdir): Likewise.
37955         * tests/test-fchownat.c (fchownat): Likewise.
37956         * tests/test-fcntl.c (fcntl): Likewise.
37957         * tests/test-fdopendir.c (fdopendir): Likewise.
37958         * tests/test-fflush.c (fflush): Likewise.
37959         * tests/test-flock.c (flock): Likewise.
37960         * tests/test-floorf1.c (floorf): Likewise.
37961         * tests/test-floorl.c (floorl): Likewise.
37962         * tests/test-fnmatch.c (fnmatch): Likewise.
37963         * tests/test-fopen.c (fopen): Likewise.
37964         * tests/test-fprintf-posix.c (fprintf): Likewise.
37965         * tests/test-freopen.c (freopen): Likewise.
37966         * tests/test-frexp.c (frexp): Likewise.
37967         * tests/test-frexpl.c (frexpl): Likewise.
37968         * tests/test-fseek.c (fseek): Likewise.
37969         * tests/test-fseeko.c (fseeko): Likewise.
37970         * tests/test-fstatat.c (fstatat): Likewise.
37971         * tests/test-fsync.c (fsync): Likewise.
37972         * tests/test-ftell.c (ftell): Likewise.
37973         * tests/test-ftello.c (ftello): Likewise.
37974         * tests/test-futimens.c (futimens): Likewise.
37975         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37976         (gai_strerror): Likewise.
37977         * tests/test-getcwd.c (getcwd): Likewise.
37978         * tests/test-getdelim.c (getdelim): Likewise.
37979         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37980         * tests/test-getgroups.c (getgroups): Likewise.
37981         * tests/test-gethostname.c (gethostname): Likewise.
37982         * tests/test-getline.c (getline): Likewise.
37983         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37984         Likewise.
37985         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37986         * tests/test-glob.c (glob, globfree): Likewise.
37987         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37988         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37989         * tests/test-inet_pton.c (inet_pton): Likewise.
37990         * tests/test-isblank.c (isblank): Likewise.
37991         * tests/test-lchown.c (lchown): Likewise.
37992         * tests/test-ldexpl.c (ldexpl): Likewise.
37993         * tests/test-link.c (link): Likewise.
37994         * tests/test-linkat.c (linkat): Likewise.
37995         * tests/test-lseek.c (lseek): Likewise.
37996         * tests/test-lstat.c (lstat): Likewise.
37997         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37998         * tests/test-mbsinit.c (mbsinit): Likewise.
37999         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38000         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38001         * tests/test-memchr.c (memchr): Likewise.
38002         * tests/test-memcmp.c (memcmp): Likewise.
38003         * tests/test-memmem.c (memmem): Likewise.
38004         * tests/test-memrchr.c (memrchr): Likewise.
38005         * tests/test-mkdir.c (mkdir): Likewise.
38006         * tests/test-mkdirat.c (mkdirat): Likewise.
38007         * tests/test-mkfifo.c (mkfifo): Likewise.
38008         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38009         * tests/test-mknod.c (mknod): Likewise.
38010         * tests/test-nanosleep.c (nanosleep): Likewise.
38011         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38012         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38013         Likewise.
38014         * tests/test-open.c (open): Likewise.
38015         * tests/test-openat.c (openat): Likewise.
38016         * tests/test-perror.c (perror): Likewise.
38017         * tests/test-pipe2.c (pipe2): Likewise.
38018         * tests/test-poll.c (poll): Likewise.
38019         * tests/test-popen.c (popen, pclose): Likewise.
38020         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38021         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38022         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38023         (posix_spawn_file_actions_destroy)
38024         (posix_spawn_file_actions_addclose)
38025         (posix_spawn_file_actions_addopen)
38026         (posix_spawn_file_actions_adddup2): Likewise.
38027         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38028         * tests/test-pread.c (pread): Likewise.
38029         * tests/test-printf-posix.c (printf): Likewise.
38030         * tests/test-pty.c (openpty, forkpty): Likewise.
38031         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38032         (random_r): Likewise.
38033         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38034         * tests/test-readlink.c (readlink): Likewise.
38035         * tests/test-remove.c (remove): Likewise.
38036         * tests/test-rename.c (rename): Likewise.
38037         * tests/test-renameat.c (renameat): Likewise.
38038         * tests/test-rmdir.c (rmdir): Likewise.
38039         * tests/test-round1.c (round): Likewise.
38040         * tests/test-roundf1.c (roundf): Likewise.
38041         * tests/test-roundl.c (roundl): Likewise.
38042         * tests/test-setenv.c (setenv): Likewise.
38043         * tests/test-sigaction.c (sigaction): Likewise.
38044         * tests/test-sleep.c (sleep): Likewise.
38045         * tests/test-snprintf.c (snprintf): Likewise.
38046         * tests/test-sprintf-posix.c (sprintf): Likewise.
38047         * tests/test-stat.c (stat): Likewise.
38048         * tests/test-stpncpy.c (stpncpy): Likewise.
38049         * tests/test-strcasestr.c (strcasestr): Likewise.
38050         * tests/test-strchrnul.c (strchrnul): Likewise.
38051         * tests/test-strerror.c (strerror): Likewise.
38052         * tests/test-strsignal.c (strsignal): Likewise.
38053         * tests/test-strstr.c (strstr): Likewise.
38054         * tests/test-strtod.c (strtod): Likewise.
38055         * tests/test-strverscmp.c (strverscmp): Likewise.
38056         * tests/test-symlink.c (symlink): Likewise.
38057         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38058         * tests/test-times.c (times): Likewise.
38059         * tests/test-trunc1.c (trunc): Likewise.
38060         * tests/test-truncf1.c (truncf): Likewise.
38061         * tests/test-truncl.c (truncl): Likewise.
38062         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38063         Likewise.
38064         * tests/test-uname.c (uname): Likewise.
38065         * tests/test-unlink.c (unlink): Likewise.
38066         * tests/test-unlinkat.c (unlinkat): Likewise.
38067         * tests/test-unsetenv.c (unsetenv): Likewise.
38068         * tests/test-usleep.c (usleep): Likewise.
38069         * tests/test-utimensat.c (utimensat): Likewise.
38070         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38071         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38072         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38073         * tests/test-vprintf-posix.c (vprintf): Likewise.
38074         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38075         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38076         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38077         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38078         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38079         * tests/test-wcwidth.c (wcwidth): Likewise.
38080
38081         build: pull in conditional headers during GNULIB_POSIXCHECK
38082         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38083         definitions from any conditionally-included headers.
38084         * lib/stdlib.in.h (includes): Likewise.
38085         * lib/unistd.in.h (includes): Likewise.
38086
38087 2009-12-24  Bruno Haible  <bruno@clisp.org>
38088
38089         * tests/test-argv-iter.c: Include header file being tested immediately
38090         after config.h.
38091         * tests/test-base64.c: Likewise.
38092         * tests/test-flock.c: Likewise.
38093         * tests/test-fsync.c: Likewise.
38094         * tests/test-getdate.c: Likewise.
38095         * tests/test-getndelim2.c: Likewise.
38096         * tests/test-isfinite.c: Likewise.
38097         * tests/test-isinf.c: Likewise.
38098         * tests/test-strerror.c: Likewise.
38099         * tests/test-strsignal.c: Likewise.
38100
38101 2009-12-23  Eric Blake  <ebb9@byu.net>
38102
38103         unistd: work around cygwin bug
38104         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38105         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38106         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38107
38108 2009-12-23  Bruno Haible  <bruno@clisp.org>
38109
38110         localename: More tests.
38111         * tests/test-localename.c (SIZEOF): New macro.
38112         (categories): New variable.
38113         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38114         test_locale_name_default): Add test w.r.t. thread locale.
38115         (test_locale_name_thread): New function.
38116         (main): Invoke it.
38117
38118         localename: Make aware of thread locale.
38119         * lib/localename.h (gl_locale_name_thread): New declaration.
38120         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38121         behaviour with respect to thread locale.
38122         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38123         <langinfo.h>, glthread/lock.h.
38124         (SIZE_BITS): New macro.
38125         (string_hash): New function.
38126         (struct hash_node): New type.
38127         (HASH_TABLE_SIZE): New macro.
38128         (struniq_hash_table, struniq_lock): New variables.
38129         (struniq): New function.
38130         (gl_locale_name_thread): New function.
38131         (gl_locale_name): Invoke it.
38132         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38133         * modules/localename (Depends-on): Add lock.
38134         Reported by Mike Gran <spk121@yahoo.com>.
38135
38136 2009-12-23  Eric Blake  <ebb9@byu.net>
38137
38138         va-args: new module
38139         * modules/va-args: New file.
38140         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38141         * MODULES.html.sh (Core language properties): Mention it.
38142
38143         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38144         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38145         named alias for __attribute__((__unused__)).
38146         * lib/chown.c: Update client.
38147         * lib/fchmodat.c: Likewise.
38148         * lib/fts.c: Likewise.
38149         * lib/getdate.y: Likewise.
38150         * lib/getgroups.c: Likewise.
38151         * lib/getopt.c: Likewise.
38152         * lib/getugroups.c: Likewise.
38153         * lib/mkdir.c: Likewise.
38154         * lib/mkfifo.c: Likewise.
38155         * lib/mkfifoat.c: Likewise.
38156         * lib/mknod.c: Likewise.
38157         * lib/mknodat.c: Likewise.
38158         * lib/readlink.c: Likewise.
38159         * lib/se-context.in.h: Likewise.
38160         * lib/se-selinux.in.h: Likewise.
38161         * lib/sockets.c: Likewise.
38162         * lib/symlink.c: Likewise.
38163         * lib/symlinkat.c: Likewise.
38164         * lib/unicodeio.c: Likewise.
38165         * lib/unistr.h: Likewise.
38166         * tests/test-areadlink.c: Likewise.
38167         * tests/test-areadlinkat.c: Likewise.
38168         * tests/test-filenamecat.c: Likewise.
38169         * tests/test-fseeko.c: Likewise.
38170         * tests/test-ftello.c: Likewise.
38171         * tests/test-getdate.c: Likewise.
38172         * tests/test-getgroups.c: Likewise.
38173         * tests/test-gethostname.c: Likewise.
38174         * tests/test-quotearg.c: Likewise.
38175         * tests/test-version-etc.c: Likewise.
38176         * tests/test-xalloc-die.c: Likewise.
38177         * tests/test-xfprintf-posix.c: Likewise.
38178         * tests/test-xprintf-posix.c: Likewise.
38179         * tests/test-xvasprintf.c: Likewise.
38180
38181         tests: avoid compiler warnings
38182         * tests/test-fcntl.c (main): Delete unused parameters.
38183         * tests/test-freopen-safer.c (main): Likewise.
38184         * tests/test-xalloc-die.c (main): Mark unused parameters.
38185         * tests/test-fseeko.c (main): Likewise.
38186         * tests/test-ftello.c (main): Likewise.
38187         * tests/test-nanosleep.c (main): Avoid declaration warning.
38188         * tests/test-sleep.c (main): Likewise.
38189         * tests/test-unsetenv.c (main): Silence warning about string
38190         literal.
38191         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38192
38193 2009-12-23  Bruno Haible  <bruno@clisp.org>
38194
38195         * tests/test-localename.c (test_locale_name): New function, extracted
38196         from main. Also test mixed situations.
38197         (test_locale_name_posix, test_locale_name_environ,
38198         test_locale_name_default): New functions.
38199         (main): Invoke them all.
38200         * modules/localename-tests (configure.ac): Test for newlocale.
38201
38202 2009-12-23  Bruno Haible  <bruno@clisp.org>
38203
38204         unistd: Ensure getcwd gets declared before being overridden.
38205         * lib/unistd.in.h: Conditionally include <io.h>.
38206
38207 2009-12-22  Bruno Haible  <bruno@clisp.org>
38208
38209         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38210         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38211         (gl_WCHAR_H): Invoke it.
38212         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38213         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38214         Reported by Karl Berry <karl@freefriends.org>.
38215
38216 2009-12-22  Eric Blake  <ebb9@byu.net>
38217
38218         math, unistd: avoid redundant includes
38219         * lib/math.in.h (isnan): No need to re-include <math.h>.
38220         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38221
38222         getsubopt: work around cygwin bug
38223         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38224         avoid conflicting with system getsubopt.
38225         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38226         bug.
38227
38228         getopt: synchronize from glibc
38229         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38230         parameter order.  Adjust all callers.
38231         (_getopt_internal_r, main): Adjust quoting in error messages.
38232         Drop considerations for outdated POSIX 1003.2 error message.
38233         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38234         callers.
38235         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38236
38237         test-getopt: test stderr behavior
38238         * modules/getopt-posix-tests (Depends-on): Add dup2.
38239         * tests/test-getopt.c (ASSERT): Avoid stderr.
38240         (main): Move stderr to a temporary file.
38241         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38242         Instead, add parameter to inform caller if output occurred.
38243         (test_getopt): Adjust all existing tests to expect silence, and
38244         add new tests of leading ":".
38245         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38246         glibc shortcomings with leading "-:" or "+:" in optstring.
38247         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38248         Likewise.
38249         * doc/posix-functions/getopt.texi (getopt): Likewise.
38250
38251         test-getopt: enhance test
38252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38253         supports optind=0.
38254         * tests/test-getopt.c (OPTIND_MIN): Move...
38255         * tests/test-getopt.h (OPTIND_MIN): ...here.
38256         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38257         Require that optind=0 works, since modern BSD supports it in
38258         addition to optreset, and since coreutils expects it.
38259         (test_getopt_long_only): New test.
38260         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38261         glibc shortcomings with 'W;', and enforcement of optind=0.
38262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38263         Likewise.
38264
38265 2009-12-21  Bruno Haible  <bruno@clisp.org>
38266
38267         localename: Improvements for MacOS X and Cygwin.
38268         * lib/localename.h (gl_locale_name_environ): New declaration.
38269         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38270         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38271         (gl_locale_name_posix): Invoke it.
38272         (gl_locale_name_default): Add comments. Use Windows native API also on
38273         Cygwin.
38274
38275 2009-12-21  Bruno Haible  <bruno@clisp.org>
38276
38277         Update list of Win32 locale ids.
38278         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38279         (LANG_SAMI): Renamed from LANG_SAAMI.
38280         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38281         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38282         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38283         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38284         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38285         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38286         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38287         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38288         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38289         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38290         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38291         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38292         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38293         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38294         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38295         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38296         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38297         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38298         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38299         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38300         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38301         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38302         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38303         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38304         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38305         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38306         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38307         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38308         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38309         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38310         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38311         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38312         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38313         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38314         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38315         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38316         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38317         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38318         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38319         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38320         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38321         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38322         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38323         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38324         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38325         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38326         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38327         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38328         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38329         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38330         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38331         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38332         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38333         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38334         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38335         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38336         Add more languages and countries for Sami, Sorbian. Add more countries
38337         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38338         for Pashto. Change country for Syriac, Tswana.
38339
38340 2009-12-21  Eric Blake  <ebb9@byu.net>
38341
38342         test-utimens: avoid spurious failure
38343         * tests/test-chown.h (nap): Factor...
38344         * tests/nap.h: ...into new file.
38345         * tests/test-lchown.h (nap): Avoid duplication.
38346         * tests/test-utimens-common.h (nap): Use shared implementation,
38347         necessary on file systems with 1-second resolution.
38348         * modules/chown-tests (Files): Include new file.
38349         * modules/fdutimensat-tests (Files): Likewise.
38350         * modules/futimens-tests (Files): Likewise.
38351         * modules/lchown-tests (Files): Likewise.
38352         * modules/openat-tests (Files): Likewise.
38353         * modules/utimens-tests (Files): Likewise.
38354         * modules/utimensat-tests (Files): Likewise.
38355
38356 2009-12-19  Eric Blake  <ebb9@byu.net>
38357
38358         futimens, utimensat: work around Linux bug
38359         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38360         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38361         * lib/utimensat.c (rpl_utimensat): Work around it.
38362         * lib/futimens.c (rpl_futimens): Adjust comment.
38363
38364         utimens: work around Linux ctime bug
38365         * lib/utimens.c (detect_ctime_bug): New helper function.
38366         (update_timespec): Differentiate between workaround needed for
38367         this bug vs. what is needed for systems that lack utimensat.
38368         (fdutimens, lutimens): Work around bug.
38369
38370         utimens: check for ctime update
38371         * tests/test-utimens-common.h (check_ctime): Define.
38372         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38373         * tests/test-futimens.h (test_futimens): Likewise.
38374         * tests/test-lutimens.h (test_lutimens): Likewise.
38375         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38376         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38377
38378 2009-12-19  Bruno Haible  <bruno@clisp.org>
38379
38380         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38381         * tests/test-dprintf-posix2.sh: New file.
38382         * tests/test-dprintf-posix2.c: New file.
38383         * modules/dprintf-posix-tests (Files): Add them.
38384         (configure.ac): Check for getrlimit and setrlimit.
38385         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38386
38387 2009-12-19  Bruno Haible  <bruno@clisp.org>
38388
38389         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38390         * tests/test-fprintf-posix3.sh: New file.
38391         * tests/test-fprintf-posix3.c: New file.
38392         * modules/fprintf-posix-tests (Files): Add them.
38393         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38394
38395 2009-12-19  Eric Blake  <ebb9@byu.net>
38396
38397         dirfd: fix prototype
38398         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38399         * lib/dirfd.c (dirfd): Likewise.
38400
38401         canonicalize: reduce memory usage
38402         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38403         allocation to size.
38404         Reported by Solar Designer <solar@openwall.com>.
38405
38406 2009-12-19  Bruno Haible  <bruno@clisp.org>
38407
38408         New module attribute 'Applicability'.
38409         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38410         * gnulib-tool: New option --extract-applicability.
38411         (func_usage): Document it.
38412         (sed_extract_prog): Recognize it.
38413         (func_get_applicability): New function.
38414         (func_import): Generalize handling of 'link-warning' module.
38415         * modules/link-warning (Applicability): New section.
38416         * modules/arg-nonnull (Applicability): New section.
38417         Repoted by Simon Josefsson <simon@josefsson.org>.
38418
38419 2009-12-19  Bruno Haible  <bruno@clisp.org>
38420
38421         fflush: tweak
38422         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38423         * lib/fseeko.c (rpl_fseeko): Likewise.
38424
38425 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38426
38427         * lib/gl_list.h: Fix typo in comment.
38428
38429 2009-12-16  Eric Blake  <ebb9@byu.net>
38430
38431         fcntl: use to simplify other modules
38432         * modules/cloexec (Depends-on): Add fcntl.
38433         * modules/fchdir (Depends-on): Likewise.
38434         * modules/fd-safer-flag (Depends-on): Likewise.
38435         * modules/unistd-safer (Depends-on): Likewise.
38436         * modules/dup3 (configure.ac): Set module indicator.
38437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38438         missing.
38439         * lib/fchdir.c (_gl_register_dup): Fix comment.
38440         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38441         * lib/dup-safer.c (dup_safer): Likewise.
38442         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38443         * lib/dup3.c (dup3): Likewise.
38444         * tests/test-fchdir.c (main): Enhance test.
38445         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38446
38447         fcntl: port portions of fcntl to mingw
38448         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38449         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38450         replacement for mingw.
38451         * modules/fcntl (Description): Update.
38452         (Depends-on): Add dup2.
38453         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38454         * modules/fcntl-h (Makefile.am): Substitute it.
38455         * lib/fcntl.in.h (fcntl): Update declaration.
38456         (F_DUPFD, F_GETFD): New macros, when needed.
38457         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38458         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38459         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38460         we now guarantee.
38461
38462         fcntl: work around cygwin bug in F_DUPFD
38463         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38464         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38465         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38466         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38467         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38468
38469         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38470         * modules/fcntl (Files): List new files.
38471         (configure.ac): Run a test.
38472         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38473         * lib/fcntl.c (rpl_fcntl): Likewise.
38474         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38475         (gl_FCNTL_H): Always replace fcntl.h.
38476         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38477         * lib/fcntl.in.h (fcntl): Declare replacement.
38478         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38479         needed, plus a witness.
38480         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38481         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38482         * tests/test-fcntl.c: New file.
38483         * modules/fcntl-tests: Likewise.
38484
38485         binary-io: avoid potential compilation warning
38486         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38487         directives.
38488
38489         fflush: avoid compilation error on NetBSD
38490         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38491         between off_t and fpos_t, since the latter is sometimes a struct.
38492         * lib/fseeko.c (rpl_fseeko): Likewise.
38493         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38494
38495 2009-12-15  Eric Blake  <ebb9@byu.net>
38496
38497         fcntl-h, stdio, sys_ioctl: fix declarations
38498         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38499         function must not take arguments.
38500         * lib/sys_ioctl.in.h (ioctl): Likewise.
38501         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38502         (open): Add a link warning.
38503
38504 2009-12-15  Jim Meyering  <meyering@redhat.com>
38505
38506         areadlink, areadlink-with-size: relax license to LGPLv2+
38507         * modules/areadlink (License): Relax to LGPLv2+.
38508         * modules/areadlink-with-size (License): Likewise.
38509
38510 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38511             Bruno Haible  <bruno@clisp.org>
38512
38513         *printf: Fix memory leak.
38514         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38515         * lib/vfprintf.c (vfprintf): Likewise.
38516         * lib/dprintf.c (dprintf): Likewise.
38517         * lib/vdprintf.c (vdprintf): Likewise.
38518
38519 2009-12-14  Eric Blake  <ebb9@byu.net>
38520
38521         accept4: adjust module dependencies
38522         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38523
38524         utimens: one more try at avoiding compiler warning
38525         * lib/utimens.c (lutimens): Lower scope of result.
38526
38527 2009-12-13  Bruno Haible  <bruno@clisp.org>
38528
38529         Move the malloc checking from module 'list' to new module 'xlist'.
38530         * modules/xlist: New file.
38531         * lib/gl_xlist.h: New file.
38532         * lib/gl_xlist.c: New file.
38533         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38534         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38535         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38536         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38537         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38538         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38539         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38540         gl_sortedlist_nx_add): New declarations.
38541         (struct gl_list_implementation): Rename and change methods accordingly.
38542         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38543         (gl_list_nx_create): Renamed from gl_list_create.
38544         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38545         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38546         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38547         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38548         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38549         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38550         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38551         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38552         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38553         gl_list_create_empty.
38554         (gl_list_nx_create): Renamed from gl_list_create.
38555         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38556         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38557         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38558         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38559         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38560         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38561         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38562         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38563         * lib/gl_array_list.c: Don't include xalloc.h.
38564         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38565         NULL upon out-of-memory.
38566         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38567         out-of-memory.
38568         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38569         Change return type to 'int'.
38570         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38571         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38572         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38573         upon out-of-memory.
38574         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38575         upon out-of-memory.
38576         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38577         upon out-of-memory.
38578         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38579         upon out-of-memory.
38580         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38581         out-of-memory.
38582         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38583         Update.
38584         (gl_array_list_implementation): Update.
38585         * lib/gl_carray_list.c: Don't include xalloc.h.
38586         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38587         Return NULL upon out-of-memory.
38588         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38589         out-of-memory.
38590         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38591         Change return type to 'int'.
38592         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38593         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38594         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38595         upon out-of-memory.
38596         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38597         upon out-of-memory.
38598         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38599         out-of-memory.
38600         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38601         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38602         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38603         Update.
38604         (gl_carray_list_implementation): Update.
38605         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38606         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38607         gl_linked_create_empty. Return NULL upon out-of-memory.
38608         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38609         out-of-memory.
38610         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38611         Change return type to 'int'. Return -1 upon out-of-memory.
38612         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38613         out-of-memory.
38614         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38615         upon out-of-memory.
38616         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38617         upon out-of-memory.
38618         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38619         NULL upon out-of-memory.
38620         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38621         upon out-of-memory.
38622         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38623         out-of-memory.
38624         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38625         Update.
38626         * lib/gl_linked_list.c: Don't include xalloc.h.
38627         (gl_linked_list_implementation): Update.
38628         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38629         (add_to_bucket): Change return type to 'int'.
38630         (gl_linkedhash_list_implementation): Update.
38631         * lib/gl_anytree_list1.h (free_subtree): New function.
38632         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38633         gl_tree_create_empty. Return NULL upon out-of-memory.
38634         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38635         Change return type to 'int'. Return -1 upon out-of-memory.
38636         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38637         out-of-memory.
38638         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38639         (gl_tree_remove_node): New function, moved here from
38640         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38641         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38642         Update.
38643         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38644         malloc, not xmalloc. Return NULL upon out-of-memory.
38645         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38646         out-of-memory.
38647         (gl_tree_remove_node_from_tree): New function, extracted from
38648         gl_tree_remove_node.
38649         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38650         upon out-of-memory.
38651         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38652         out-of-memory.
38653         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38654         upon out-of-memory.
38655         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38656         upon out-of-memory.
38657         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38658         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38659         not xmalloc. Return NULL upon out-of-memory.
38660         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38661         out-of-memory.
38662         (gl_tree_remove_node_from_tree): New function, extracted from
38663         gl_tree_remove_node.
38664         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38665         upon out-of-memory.
38666         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38667         out-of-memory.
38668         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38669         upon out-of-memory.
38670         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38671         upon out-of-memory.
38672         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38673         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38674         gl_anytree_list1.h before gl_anyavltree_list2.h.
38675         (gl_avltree_list_implementation): Update.
38676         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38677         gl_anytree_list1.h before gl_anyavltree_list2.h.
38678         (gl_rbtree_list_implementation): Update.
38679         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38680         Change return type to 'int'. Return -1 upon out-of-memory. Use
38681         __builtin_expect.
38682         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38683         (gl_avltreehash_list_implementation): Update.
38684         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38685         (gl_rbtreehash_list_implementation): Update.
38686         * modules/array-list (Depends-on): Remove xalloc.
38687         * modules/carray-list (Depends-on): Likewise.
38688         * modules/linked-list (Depends-on): Likewise.
38689         * modules/linkedhash-list (Depends-on): Likewise.
38690         * modules/avltree-list (Depends-on): Likewise.
38691         * modules/rbtree-list (Depends-on): Likewise.
38692         * modules/avltreehash-list (Depends-on): Likewise.
38693         * modules/rbtreehash-list (Depends-on): Likewise.
38694
38695         * modules/xsublist: New file.
38696         * lib/gl_xsublist.h: New file.
38697         * lib/gl_xsublist.c: New file.
38698         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38699         (gl_sublist_nx_create): New declaration.
38700         * lib/gl_sublist.c: Don't include xalloc.h.
38701         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38702         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38703         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38704         Change return type to 'int'. Return -1 upon out-of-memory.
38705         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38706         upon out-of-memory.
38707         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38708         NULL upon out-of-memory.
38709         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38710         upon out-of-memory.
38711         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38712         NULL upon out-of-memory.
38713         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38714         NULL upon out-of-memory.
38715         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38716         upon out-of-memory.
38717         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38718         (gl_sublist_list_implementation): Update.
38719         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38720         upon out-of-memory.
38721         * modules/sublist (Depends-on): Remove xalloc.
38722
38723         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38724         * tests/test-carray_list.c: Likewise.
38725         * tests/test-linked_list.c: Likewise.
38726         * tests/test-linkedhash_list.c: Likewise.
38727         * tests/test-avltree_list.c: Likewise.
38728         * tests/test-rbtree_list.c: Likewise.
38729         * tests/test-avltreehash_list.c: Likewise.
38730         * tests/test-rbtreehash_list.c: Likewise.
38731         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38732         * modules/carray-list-tests (Makefile.am): Likewise.
38733         * modules/linked-list-tests (Makefile.am): Likewise.
38734         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38735         * modules/avltree-list-tests (Makefile.am): Likewise.
38736         * modules/rbtree-list-tests (Makefile.am): Likewise.
38737         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38738         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38739
38740         * NEWS: Mention the changes.
38741
38742         * lib/clean-temp.c: Include gl_xlist.h.
38743         * modules/clean-temp (Depends-on): Add xlist.
38744
38745         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38746         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38747
38748         * tests/test-array_oset.c: Include gl_xlist.h.
38749         * modules/array-oset-tests (Depends-on): Add xlist.
38750
38751         Reported by José E. Marchesi <jemarch@gnu.org>.
38752
38753 2009-12-13  Bruno Haible  <bruno@clisp.org>
38754
38755         Move the malloc checking from module 'oset' to new module 'xoset'.
38756         * modules/xoset: New file.
38757         * lib/gl_xoset.h: New file.
38758         * lib/gl_xoset.c: New file.
38759         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38760         declarations.
38761         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38762         (struct gl_oset_implementation): Rename and change methods accordingly.
38763         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38764         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38765         'int'. Mark as __warn_unused_result__.
38766         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38767         gl_oset_create_empty.
38768         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38769         'int'.
38770         * lib/gl_array_oset.c: Don't include xalloc.h.
38771         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38772         malloc, not xmalloc.
38773         (grow): Change return type to 'int'. Don't call xalloc_die.
38774         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38775         to 'int'.
38776         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38777         'int'.
38778         (gl_array_oset_implementation): Update.
38779         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38780         gl_tree_create_empty.
38781         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38782         'int'.
38783         * lib/gl_avltree_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_avltree_oset_implementation): Update.
38791         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38792         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38793         xmalloc.
38794         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38795         not xmalloc.
38796         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38797         xmalloc.
38798         (gl_rbtree_oset_implementation): Update.
38799         * modules/array-oset (Depends-on): Remove xalloc.
38800         * modules/avltree-oset (Depends-on): Likewise.
38801         * modules/rbtree-oset (Depends-on): Likewise.
38802         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38803         * tests/test-avltree_oset.c: Likewise.
38804         * tests/test-rbtree_oset.c: Likewise.
38805         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38806         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38807         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38808         * NEWS: Mention the change.
38809
38810 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38811
38812         maint.mk: allow a project to override release-prep commands
38813         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38814         commands into a new rule.
38815         (release-prep): New rule.
38816         (release-prep-hook): New overridable variable.
38817
38818 2009-12-13  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38821
38822 2009-12-13  Jim Meyering  <meyering@redhat.com>
38823
38824         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38825         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38826
38827 2009-12-12  Bruno Haible  <bruno@clisp.org>
38828
38829         duplocale: Tweak.
38830         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38831
38832 2009-12-12  Karl Berry  <karl@gnu.org>
38833
38834         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38835
38836 2009-12-12  Bruno Haible  <bruno@clisp.org>
38837
38838         * m4/po.m4: Undo incorrect untabification.
38839
38840 2009-12-12  Bruno Haible  <bruno@clisp.org>
38841
38842         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38843         * modules/c-strtod (Depends-on): Add locale.
38844         * modules/c-strtold (Depends-on): Likewise.
38845
38846 2009-12-12  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38849
38850 2009-12-11  Eric Blake  <ebb9@byu.net>
38851
38852         setenv: relax requirement in light of POSIX ruling
38853         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38854         not NULL.
38855         * tests/test-setenv.c (main): Relax test.
38856         * tests/test-unsetenv.c (main): Likewise.
38857         * doc/posix-functions/setenv.texi (setenv): Document this.
38858         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38859
38860 2009-12-11  Bruno Haible  <bruno@clisp.org>
38861
38862         New module 'fd-safer-flag'.
38863         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38864         * lib/dup-safer.c (dup_safer_flag): Remove function.
38865         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38866         * lib/fd-safer.c (fd_safer_flag): Remove function.
38867         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38868         * modules/cloexec (configure.ac): Drop indicator macro.
38869         * modules/fd-safer-flag: New file.
38870         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38871         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38872         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38873
38874 2009-12-11  Bruno Haible  <bruno@clisp.org>
38875
38876         Tests for module 'nl_langinfo'.
38877         * modules/nl_langinfo-tests: New file.
38878         * tests/test-nl_langinfo.sh: New file.
38879         * tests/test-nl_langinfo.c: New file.
38880
38881         New module 'nl_langinfo'.
38882         * lib/nl_langinfo.c: New file.
38883         * m4/nl_langinfo.m4: New file.
38884         * modules/nl_langinfo: New file.
38885         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38886
38887 2009-12-11  Bruno Haible  <bruno@clisp.org>
38888
38889         Tests for module 'langinfo'.
38890         * modules/langinfo-tests: New file.
38891         * tests/test-langinfo.c: New file.
38892
38893         New module 'langinfo'.
38894         * lib/langinfo.in.h: New file.
38895         * m4/langinfo_h.m4: New file.
38896         * modules/langinfo: New file.
38897         * doc/posix-headers/langinfo.texi: Mention the new module.
38898
38899 2009-12-11  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/config.charset: Untabify.
38902
38903 2009-12-11  Bruno Haible  <bruno@clisp.org>
38904
38905         * modules/unistd-safer (configure.ac): Drop indicator macro.
38906
38907 2009-12-11  Bruno Haible  <bruno@clisp.org>
38908
38909         Move pipe2-safer code to its own file.
38910         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38911         * lib/pipe-safer.c (pipe2_safer): Remove function.
38912         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38913         (Makefile.am): Add it to lib_SOURCES.
38914
38915 2009-12-10  Bruno Haible  <bruno@clisp.org>
38916
38917         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38918
38919 2009-12-10  Bruno Haible  <bruno@clisp.org>
38920
38921         Declare which arguments expect non-NULL values, for GCC and clang.
38922         * build-aux/arg-nonnull.h: New file.
38923         * modules/arg-nonnull: New file.
38924         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38925         (inet_ntop, inet_pton): Use it.
38926         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38927         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38928         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38929         (open, openat): Use it.
38930         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38931         (fnmatch): Use it.
38932         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38933         (getopt, getopt_long, getopt_long_only): Use it.
38934         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38935         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38936         Use it.
38937         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38938         (iconv_open): Use it.
38939         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38940         (strtoimax, strtoumax): Use it.
38941         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38942         (duplocale): Use it.
38943         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38944         (frexp, frexpl): Use it.
38945         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38946         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38947         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38948         (tsearch, tfind, tdelete, twalk): Use it.
38949         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38950         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38951         sigpending): Use it.
38952         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38953         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38954         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38955         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38956         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38957         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38958         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38959         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38960         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38961         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38962         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38963         Use it.
38964         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38965         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38966         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38967         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38968         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38969         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38970         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38971         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38972         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38973         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38974         strtoull, unsetenv): Use it.
38975         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38976         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38977         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38978         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38979         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38980         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38981         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38982         (strcasecmp, strncasecmp): Use it.
38983         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38984         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38985         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38986         rpl_setsockopt): Use it.
38987         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38988         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38989         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38990         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38991         (gettimeofday): Use it.
38992         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38993         (times): Use it.
38994         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38995         (uname): Use it.
38996         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38997         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38998         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38999         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39000         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39001         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39002         unlinkat, write): Use it.
39003         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39004         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39005         * lib/argv-iter.h: Include arg-nonnull.h.
39006         (_ATTRIBUTE_NONNULL_): Remove macro.
39007         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39008         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39009         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39010         optimization.
39011         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39012         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39013         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39014         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39015         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39016         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39017         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39018         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39019         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39020         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39021         * modules/dirent (Depends-on): Add arg-nonnull.
39022         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39023         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39024         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39025         * modules/fnmatch (Depends-on): Add arg-nonnull.
39026         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39027         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39028         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39029         * modules/glob (Depends-on): Add arg-nonnull.
39030         (Makefile.am): Insert arg-nonnull.h into glob.h.
39031         * modules/iconv_open (Depends-on): Add arg-nonnull.
39032         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39033         * modules/inttypes (Depends-on): Add arg-nonnull.
39034         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39035         * modules/locale (Depends-on): Add arg-nonnull.
39036         (Makefile.am): Insert arg-nonnull.h into locale.h.
39037         * modules/math (Depends-on): Add arg-nonnull.
39038         (Makefile.am): Insert arg-nonnull.h into math.h.
39039         * modules/netdb (Depends-on): Add arg-nonnull.
39040         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39041         * modules/search (Depends-on): Add arg-nonnull.
39042         (Makefile.am): Insert arg-nonnull.h into search.h.
39043         * modules/signal (Depends-on): Add arg-nonnull.
39044         (Makefile.am): Insert arg-nonnull.h into signal.h.
39045         * modules/spawn (Depends-on): Add arg-nonnull.
39046         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39047         * modules/stdio (Depends-on): Add arg-nonnull.
39048         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39049         * modules/stdlib (Depends-on): Add arg-nonnull.
39050         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39051         * modules/string (Depends-on): Add arg-nonnull.
39052         (Makefile.am): Insert arg-nonnull.h into string.h.
39053         * modules/strings (Depends-on): Add arg-nonnull.
39054         (Makefile.am): Insert arg-nonnull.h into strings.h.
39055         * modules/sys_socket (Depends-on): Add arg-nonnull.
39056         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39057         * modules/sys_stat (Depends-on): Add arg-nonnull.
39058         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39059         * modules/sys_time (Depends-on): Add arg-nonnull.
39060         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39061         * modules/sys_times (Depends-on): Add arg-nonnull.
39062         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39063         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39064         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39065         * modules/time (Depends-on): Add arg-nonnull.
39066         (Makefile.am): Insert arg-nonnull.h into time.h.
39067         * modules/unistd (Depends-on): Add arg-nonnull.
39068         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39069         * modules/wchar (Depends-on): Add arg-nonnull.
39070         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39071         * modules/argv-iter (Depends-on): Add arg-nonnull.
39072         * tests/test-canonicalize.c (null_ptr): New function.
39073         (main): Use it.
39074         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39075         (main): Use it.
39076         * tests/test-memmem.c (null_ptr): New function.
39077         (main): Use it.
39078         Reported by Jim Meyering.
39079
39080 2009-12-10  Bruno Haible  <bruno@clisp.org>
39081
39082         Use spaces for indentation, not tabs.
39083         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39084         * m4/*.m4: Untabify.
39085         * build-aux/*.h: Untabify.
39086         * tests/**/*.[hc]: Untabify.
39087         * README: New section "Indent with spaces, not TABs", based on
39088         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39089         * NEWS: Mention the change.
39090
39091 2009-12-10  Bruno Haible  <bruno@clisp.org>
39092
39093         pty test: Fix link error.
39094         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39095         test_pty_LDADD.
39096
39097 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39098
39099         * modules/pty: New file.
39100         * modules/pty-tests: New file.
39101         * m4/pty.m4: New file.
39102         * tests/test-pty.c: New file.
39103         * doc/glibc-headers/pty.texi: Modified.
39104         * doc/glibc-functions/forkpty.texi: Modified.
39105         * doc/glibc-functions/openpty.texi: Modified.
39106
39107 2009-12-10  Bruno Haible  <bruno@clisp.org>
39108
39109         Avoid syntax error in C++ mode.
39110         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39111
39112 2009-12-10  Bruno Haible  <bruno@clisp.org>
39113
39114         Use sed with option -e.
39115         * gnulib-tool (func_version, func_emit_copyright_notice,
39116         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39117         option -e to sed.
39118         * modules/link-warning (Makefile.am): Likewise.
39119
39120 2009-12-10  Jim Meyering  <meyering@redhat.com>
39121
39122         mgetgroups: do not write bytes beyond end of malloc'd buffer
39123         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39124         username, we call getgroups with a one-element-shorter buffer,
39125         but still told it the length was original, max_n_groups.
39126
39127 2009-12-09  Eric Blake  <ebb9@byu.net>
39128
39129         cloexec: relax license
39130         * modules/cloexec (Maintainer): Add myself.
39131         (License): Use LGPL, not GPL.
39132
39133         link-warning: optimize generation
39134         * modules/link-warning (Makefile.am): Reduce process usage.
39135
39136 2009-12-09  Bruno Haible  <bruno@clisp.org>
39137
39138         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39139         workaround was added on 2009-11-17.
39140
39141 2009-12-09  Jim Meyering  <meyering@redhat.com>
39142             Bruno Haible  <bruno@clisp.org>
39143
39144         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39145         * modules/link-warning (Makefile.am): Make the comment-removing sed
39146         command more robust in the face of bootstrap-prepended comment lines.
39147
39148 2009-12-09  Bruno Haible  <bruno@clisp.org>
39149
39150         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39151         most one group.
39152
39153 2009-12-09  Simon Josefsson <simon@josefsson.org>
39154             Bruno Haible  <bruno@clisp.org>
39155
39156         * build-aux/link-warning.h: Add copyright notice.
39157         * modules/link-warning (Makefile.am): Generate link-warning.h from
39158         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39159         * NEWS: Mention change in link-warning module.
39160         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39161         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39162         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39163         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39164         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39165         * modules/math (Makefile.am): Add dependency to math.h.
39166         * modules/search (Makefile.am): Add dependency to search.h.
39167         * modules/signal (Makefile.am): Add dependency to signal.h.
39168         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39169         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39170         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39171         * modules/string (Makefile.am): Add dependency to string.h.
39172         * modules/strings (Makefile.am): Add dependency to strings.h.
39173         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39174         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39175         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39176         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39177         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39178         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39179         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39180         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39181         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39182
39183 2009-12-09  Bruno Haible  <bruno@clisp.org>
39184
39185         fchdir: Optimize away rpl_fstat when possible.
39186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39187         REPLACE_OPEN_DIRECTORY.
39188         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39189
39190 2009-12-09  Bruno Haible  <bruno@clisp.org>
39191
39192         * lib/fchdir.c: Update comment.
39193
39194 2009-12-09  Bruno Haible  <bruno@clisp.org>
39195
39196         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39197
39198 2009-12-08  Eric Blake  <ebb9@byu.net>
39199
39200         fchdir: avoid memory leak on re-registration.
39201         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39202
39203 2009-12-08  Jim Meyering  <meyering@redhat.com>
39204
39205         init.sh: avoid Solaris 10 /bin/sh portability problem
39206         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39207         sourced script:
39208           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39209           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39210           bar
39211         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39212         and two tests used that idiom.
39213         * tests/init.sh: Update suggested usage comments.
39214         (path_prepend_): New function, to be used in place
39215         of the --src-path=DIR option.
39216         (setup_): Move PATH-prepending code into path_prepend_.
39217         * tests/test-pread.sh: Adapt to new usage.
39218         * tests/test-xalloc-die.sh: Likewise.
39219
39220 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39221
39222         * doc/gnulib.texi (Glibc pty.h): Add.
39223         * doc/glibc-functions/forkpty.texi: Add.
39224         * doc/glibc-functions/openpty.texi: Add.
39225         Suggested by Bruno Haible.
39226
39227 2009-12-08  Eric Blake  <ebb9@byu.net>
39228
39229         fchdir: fix logic bugs
39230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39231         * tests/test-fchdir.c (main): Enhance test.
39232         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39233         is in use.
39234
39235         dup2: fix logic bugs
39236         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39237         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39238         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39239         exists.
39240         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39241
39242 2009-12-07  Eric Blake  <ebb9@byu.net>
39243
39244         unlink: fix m4 detection
39245         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39246
39247         unistd-safer: add unit test
39248         * modules/unistd-safer-tests: New file.
39249         * tests/test-dup-safer.c: Likewise.
39250         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39251         * tests/test-dup2.c (setmode): Likewise.
39252         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39253
39254         cloexec: preserve text vs. binary across dup_cloexec
39255         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39256         mode.
39257         * modules/dup2-tests (Depends-on): Add binary-io.
39258         * modules/cloexec-tests (Depends-on): Likewise.
39259         * tests/test-dup2.c (setmode, is_mode): New helpers.
39260         (main): Add tests that translation mode is preserved.
39261         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39262         Reported by Bruno Haible.
39263
39264         mgetgroups: reduce duplicate listings
39265         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39266         resulting array.
39267         * tests/test-chown.h (test_chown): Simplify client.
39268         * tests/test-lchown.h (test_lchown): Likewise.
39269
39270 2009-12-06  Bruno Haible  <bruno@clisp.org>
39271
39272         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39273         value.
39274
39275 2009-12-06  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/progname.c: Include stdio.h, stdlib.h.
39278         (set_program_name): Reject a NULL argument.
39279
39280 2009-12-05  Eric Blake  <ebb9@byu.net>
39281
39282         pipe2-safer: new module
39283         * modules/pipe2-safer: New file.
39284         * lib/unistd-safer.h (pipe2_safer): New prototype.
39285         * lib/unistd--.h (pipe2): New wrapper.
39286         * lib/pipe-safer.c (pipe2_safer): New function.
39287         * modules/pipe (Depends-on): Add pipe2-safer.
39288         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39289
39290         stdlib-safer: preserve cloexec flag for mkostemp[s]
39291         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39292         fd_safer_flag.
39293
39294         unistd-safer: allow preservation of cloexec status via flag
39295         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39296         prototypes.
39297         * lib/dup-safer.c (dup_safer_flag): New function.
39298         * lib/fd-safer.c (fd_safer_flag): Likewise.
39299         * modules/cloexec (configure.ac): Set witness.
39300
39301         test-dup2: enhance test
39302         * modules/dup2-tests (Depends-on): Add cloexec.
39303         * tests/test-dup2.c (main): Enhance test.
39304
39305         cloexec: add dup_cloexec
39306         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39307         header and comments.
39308         * lib/cloexec.c (set_cloexec_flag): Add comments.
39309         (dup_cloexec): New function, with mingw implementation borrowed
39310         from...
39311         * lib/w32spawn.h (dup_noinherit): ...here.
39312         * modules/execute (Depends-on): Add cloexec.
39313         * modules/pipe (Depends-on): Likewise.
39314         * modules/cloexec (Depends-on): Add dup2.
39315         * modules/cloexec-tests (Files): New file.
39316         * tests/test-cloexec.c: Likewise.
39317
39318         test-xalloc-die: fix test for mingw
39319         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39320         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39321         directory and .exe suffix off argv[0] output.
39322
39323         test-fseeko: fix test for mingw
39324         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39325         than undefining fseek, so test will pass on mingw.
39326
39327 2009-12-05  Bruno Haible  <bruno@clisp.org>
39328
39329         * lib/progname.h (set_program_name): Clarify specification.
39330         * lib/progname.c (set_program_name): Likewise.
39331         Reported by Jim Meyering.
39332
39333 2009-12-05  Jim Meyering  <meyering@redhat.com>
39334
39335         maint.mk: backslash-escape parens in default regexp
39336         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39337         backslash-escape the literal parentheses.
39338
39339         maint.mk: news-date-check: use grep -E
39340         * top/maint.mk (today): Define a Make variable, not a...
39341         (news-date-check): ...shell variable.
39342         (news-date-regexp): Use the Make variable.
39343         Use grep's -E option.  Change the failing diagnostic to mention
39344         the variable, $(news-date-regexp).
39345
39346 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39347
39348         maintainer-makefile: allow customization of NEWS entry format
39349         * top/maint.mk (news-date-regexp): New overridable variable.
39350         (news-date-check): Use it.
39351
39352 2009-12-04  Eric Blake  <ebb9@byu.net>
39353
39354         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39355         * lib/mgetgroups.h (xgetgroups): New prototype.
39356         * lib/mgetgroups.c (xgetgroups): New wrapper.
39357         (mgetgroups): Handle ENOSYS.
39358         * modules/mgetgroups (Depends-on): Add realloc.
39359         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39360
39361         mgetgroups: avoid argument promotion issues with -1
39362         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39363         for invalid gid_t.
39364         * tests/test-chown.h (getegid, test_chown): Likewise.
39365         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39366
39367 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39368
39369         exclude: Fix header file problems.
39370         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39371
39372 2009-12-01  Jim Meyering  <meyering@redhat.com>
39373
39374         fts: fts_open: do not let an empty string cause immediate failure
39375         This is required in support of GNU rm, for which the command
39376         "rm A '' B" must process and remove both A and B, in spite of
39377         the empty string argument.
39378         * lib/fts.c (fts_open): Do not let the presence of an empty string
39379         cause fts_open to fail immediately.  Most fts-using tools must be
39380         able to process all arguments, in order, and can be expected to
39381         diagnose such arguments themselves.
39382
39383 2009-11-30  Eric Blake  <ebb9@byu.net>
39384
39385         utimens: fix compilation error
39386         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39387         Declare variable at right scope.
39388
39389 2009-11-29  Jim Meyering  <meyering@redhat.com>
39390
39391         bootstrap: handle perl-5.11's changed --version output
39392         * build-aux/bootstrap (get_version): Handle perl separately,
39393         since perl-5.11's --version output is different.
39394
39395 2009-11-28  Jim Meyering  <meyering@redhat.com>
39396
39397         userspec: depend on the inttostr module, too
39398         * modules/userspec (Depends-on): Add inttostr.
39399
39400         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39401         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39402         number of MAXUID when it evaluates to (uid_t) -1.
39403         Likewise for group ID.  Reported by Matt McCutchen in
39404         <http://savannah.gnu.org/bugs/?28113>
39405
39406         userspec: reformat to use spaces, not TABs
39407         * lib/userspec.c: Expand TABs to spaces.
39408         Add Emacs' "indent-tabs-mode: nil" hint.
39409
39410 2009-11-27  Eric Blake  <ebb9@byu.net>
39411
39412         getopt-gnu: flush out another BSD bug
39413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39414         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39415         flush out BSD bug.
39416         * tests/test-getopt.h (test_getopt): End lists with NULL.
39417         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39418         (test_getopt_long_posix): Enhance test.
39419         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39420         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39421         getopt-gnu.
39422         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39423         Likewise.
39424
39425 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39426
39427         * modules/idpriv-droptemp-tests (Notice): Fix text.
39428
39429 2009-11-27  Jim Meyering  <meyering@redhat.com>
39430
39431         test-xalloc-die: avoid spurious failure due to libtool argv difference
39432         In a libtool-enabled project, this test would fail due to a difference
39433         in the emitted program name, e.g.,
39434         -test-xalloc-die: memory exhausted
39435         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39436         Use program to avoid that.
39437         * modules/xalloc-die-tests (Depends-on): Add progname.
39438         * tests/test-xalloc-die.c: Include progname.h".
39439         (program_name): Remove decl.
39440         (main): Call set_program_name.
39441         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39442
39443 2009-11-26  Richard Jones  <rjones@redhat.com>
39444
39445         w32sock: leave win32 error in place.
39446         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39447
39448 2009-11-26  Eric Blake  <ebb9@byu.net>
39449
39450         init.sh: suggest to use skip_ and fail_ functions in comments
39451         * tests/init.sh: Add a sentence.
39452
39453 2009-11-25  Bruno Haible  <bruno@clisp.org>
39454
39455         init.sh: add documentation in comments
39456         * tests/init.sh: Add some developer and user documentation.
39457
39458 2009-11-26  Jim Meyering  <meyering@redhat.com>
39459
39460         init.sh: accommodate even those who specify bogus srcdir manually
39461         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39462         configure-time tests to be sanitized, so that there is no need to
39463         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39464         (with no double quotes) suffices.  However, since tests may be
39465         invoked manually, and since you may explicitly set srcdir to the
39466         name of a directory containing spaces, do quote its uses here.
39467         * tests/test-pread.sh: Likewise.
39468         Suggested by Bruno Haible.
39469
39470         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39471         * tests/test-pread.sh: Write no data into the pipe, because
39472         test-pread actually reads none.  This avoids a diagnostic,
39473         "bash: echo: write error: Broken pipe", that arises in the unusual
39474         event something is ignoring SIGPIPE, and might be interpreted
39475         as some sort of failure.  Reported by Bruno Haible.
39476
39477 2009-11-25  Jim Meyering  <meyering@redhat.com>
39478
39479         test-pread: cover failure with ESPIPE and EINVAL
39480         * tests/test-pread.c (main): Test for failure, too.
39481         * tests/test-pread.sh: Invoke with stdin on a pipe.
39482         Suggested by Eric Blake.
39483
39484         pread: improvement and fix
39485         * modules/pread (Depends-on): Depend on lseek, for portability to
39486         e.g., mingw.  Suggested by Eric Blake.
39487         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39488
39489         unistd.in.h: correct declaration of pread
39490         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39491         Reported by Richard W.M. Jones.
39492
39493         test-pread.sh: distribute the test script
39494         * modules/pread-tests (Files): Include test-pread.sh.
39495
39496         test-pread.sh: clean up
39497         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39498         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39499         That is unnecessary, since it's always ".".
39500         Suggestion from Eric Blake.
39501
39502         test-pread.sh: make executable
39503         * tests/test-pread.sh: Set executable bit.
39504         Reported by Eric Blake.
39505
39506         correct typo in test-pread.sh
39507         * tests/test-pread.sh: Add #! line.
39508
39509         test pread
39510         * tests/test-pread.c: New file.
39511         * tests/test-pread.sh: Likewise.
39512         * modules/pread-tests: Likewise.
39513
39514         pread: new module
39515         * modules/pread: New file.
39516         * lib/unistd.in.h (pread): Define/declare.
39517         * lib/pread.c (pread): New file.
39518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39519         * modules/unistd (Makefile.am): Substitute witnesses.
39520         * doc/posix-functions/pread.texi (pread): Update.
39521         * MODULES.html.sh: Add pread.
39522
39523 2009-11-25  Jim Meyering  <meyering@redhat.com>
39524
39525         tests/init.sh: new file to be used via most *.sh tests
39526         * tests/init.sh: New file.
39527
39528 2009-11-25  Eric Blake  <ebb9@byu.net>
39529
39530         utimens: work around older Linux failure with symlinks
39531         * lib/utimens.c (lutimensat_works_really): New variable.
39532         (fdutimens, lutimens): Use it to manage kernels that support
39533         nanosecond times on files, but not on symlinks.
39534         Reported by Ondřej Vašík.
39535
39536         utimes: fix configure grammar
39537         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39538
39539 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39540
39541         regex: Fix fastmap for multibyte character ranges.
39542         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39543         characters when a multibyte character range is included.
39544
39545 2009-11-22  Andy Wingo  <wingo@pobox.com>
39546
39547         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39548         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39549
39550 2009-11-24  Bruno Haible  <bruno@clisp.org>
39551
39552         doc: Most *_l functions exist in MacOS X 10.5.
39553         * doc/posix-functions/duplocale.texi: Update platforms list.
39554         * doc/posix-functions/freelocale.texi: Likewise.
39555         * doc/posix-functions/newlocale.texi: Likewise.
39556         * doc/posix-functions/uselocale.texi: Likewise.
39557         * doc/posix-functions/isalnum_l.texi: Likewise.
39558         * doc/posix-functions/isalpha_l.texi: Likewise.
39559         * doc/posix-functions/isblank_l.texi: Likewise.
39560         * doc/posix-functions/iscntrl_l.texi: Likewise.
39561         * doc/posix-functions/isdigit_l.texi: Likewise.
39562         * doc/posix-functions/isgraph_l.texi: Likewise.
39563         * doc/posix-functions/islower_l.texi: Likewise.
39564         * doc/posix-functions/isprint_l.texi: Likewise.
39565         * doc/posix-functions/ispunct_l.texi: Likewise.
39566         * doc/posix-functions/isspace_l.texi: Likewise.
39567         * doc/posix-functions/isupper_l.texi: Likewise.
39568         * doc/posix-functions/iswalnum_l.texi: Likewise.
39569         * doc/posix-functions/iswalpha_l.texi: Likewise.
39570         * doc/posix-functions/iswblank_l.texi: Likewise.
39571         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39572         * doc/posix-functions/iswctype_l.texi: Likewise.
39573         * doc/posix-functions/iswdigit_l.texi: Likewise.
39574         * doc/posix-functions/iswgraph_l.texi: Likewise.
39575         * doc/posix-functions/iswlower_l.texi: Likewise.
39576         * doc/posix-functions/iswprint_l.texi: Likewise.
39577         * doc/posix-functions/iswpunct_l.texi: Likewise.
39578         * doc/posix-functions/iswspace_l.texi: Likewise.
39579         * doc/posix-functions/iswupper_l.texi: Likewise.
39580         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39581         * doc/posix-functions/isxdigit_l.texi: Likewise.
39582         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39583         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39584         * doc/posix-functions/strcoll_l.texi: Likewise.
39585         * doc/posix-functions/strfmon_l.texi: Likewise.
39586         * doc/posix-functions/strftime_l.texi: Likewise.
39587         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39588         * doc/posix-functions/strxfrm_l.texi: Likewise.
39589         * doc/posix-functions/tolower_l.texi: Likewise.
39590         * doc/posix-functions/toupper_l.texi: Likewise.
39591         * doc/posix-functions/towctrans_l.texi: Likewise.
39592         * doc/posix-functions/towlower_l.texi: Likewise.
39593         * doc/posix-functions/towupper_l.texi: Likewise.
39594         * doc/posix-functions/wcscoll_l.texi: Likewise.
39595         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39596         * doc/posix-functions/wctrans_l.texi: Likewise.
39597         * doc/posix-functions/wctype_l.texi: Likewise.
39598         * doc/glibc-functions/strptime_l.texi: Likewise.
39599         * doc/glibc-functions/strtod_l.texi: Likewise.
39600         * doc/glibc-functions/strtof_l.texi: Likewise.
39601         * doc/glibc-functions/strtol_l.texi: Likewise.
39602         * doc/glibc-functions/strtold_l.texi: Likewise.
39603         * doc/glibc-functions/strtoll_l.texi: Likewise.
39604         * doc/glibc-functions/strtoul_l.texi: Likewise.
39605         * doc/glibc-functions/strtoull_l.texi: Likewise.
39606         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39607         * doc/glibc-functions/wcstod_l.texi: Likewise.
39608         * doc/glibc-functions/wcstof_l.texi: Likewise.
39609         * doc/glibc-functions/wcstol_l.texi: Likewise.
39610         * doc/glibc-functions/wcstold_l.texi: Likewise.
39611         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39612         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39613         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39614
39615 2009-11-24  Bruno Haible  <bruno@clisp.org>
39616
39617         duplocale: Fix logic bug.
39618         * lib/duplocale.c: Don't include <langinfo.h>.
39619         (_NL_LOCALE_NAME): Remove macro.
39620         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39621         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39622
39623 2009-11-23  Jim Meyering  <meyering@redhat.com>
39624
39625         test-update-copyright: don't hard-code /usr/bin/perl
39626         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39627         perl to print the current year.  Gilles Espinasse reported that
39628         the replaced use of perl was hard-coded as /usr/bin/perl.
39629
39630 2009-11-23  Bruno Haible  <bruno@clisp.org>
39631
39632         duplocale: Add support for glibc 2.3.x.
39633         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39634
39635 2009-11-22  Bruno Haible  <bruno@clisp.org>
39636
39637         vasnprintf: Tiny optimization.
39638         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39639         MacOS X.
39640
39641 2009-11-22  Bruno Haible  <bruno@clisp.org>
39642
39643         Tests for module 'duplocale'.
39644         * modules/duplocale-tests: New file.
39645         * tests/test-duplocale.c: New file.
39646
39647         New module 'duplocale'.
39648         * m4/duplocale.m4: New file.
39649         * lib/locale.in.h (duplocale): New declaration.
39650         * lib/duplocale.c: New file.
39651         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39652         gl_LOCALE_H_DEFAULTS): New macros.
39653         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39654         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39655         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39656         REPLACE_DUPLOCALE.
39657         * modules/duplocale: New file.
39658         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39659
39660 2009-11-22  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/locale-tests (configure.ac): Test for newlocale function.
39663         * tests/test-locale.c: When the system has extended locale functions,
39664         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39665
39666         locale: Make locale_t available when possible.
39667         * lib/locale.in.h: Include <xlocale.h> when it exists.
39668         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39669         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39670         * modules/locale (Depends-on): Add extensions.
39671         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39672         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39673
39674 2009-11-22  Bruno Haible  <bruno@clisp.org>
39675
39676         Add comments.
39677         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39678         invocation.
39679         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39680         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39681         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39682
39683 2009-11-22  Bruno Haible  <bruno@clisp.org>
39684
39685         error: account for the possibility of freopen (stdout).
39686         * lib/error.c: Include <unistd.h>.
39687         (flush_stdout): New function, extracted from error and error_at_line.
39688         Determine stdout's fd dynamically.
39689         (error, error_at_line): Invoke flush_stdout.
39690         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39691         * modules/error (Depends-on): Add unistd.
39692
39693 2009-11-22  Bruno Haible  <bruno@clisp.org>
39694
39695         diffseq: Add comment.
39696         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39697
39698 2009-11-22  Jim Meyering  <meyering@redhat.com>
39699
39700         c-stack: avoid defining an unused static function
39701         * lib/c-stack.c (find_stack_direction): Do not define this function
39702         when it will not be used.
39703
39704         diffseq: avoid spurious gcc warnings
39705         * lib/diffseq.h (IF_LINT2): Define.
39706         (compareseq): Use it to initialize two members of "part".
39707         This avoids two used-uninitialized warnings.
39708
39709 2009-11-21  Jim Meyering  <meyering@redhat.com>
39710
39711         c-stack: avoid "ignoring return value of `write'" warning
39712         * lib/c-stack.c: Include "ignore-value.h".
39713         (die): Explicitly ignore each write return value.
39714         * modules/c-stack (Depends-on): Add ignore-value.
39715
39716 2009-11-21  Bruno Haible  <bruno@clisp.org>
39717
39718         diffseq: reduce scope of variable 'best'.
39719         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39720         variable, earlier used for two different purposes.
39721
39722 2009-11-21  Jim Meyering  <meyering@redhat.com>
39723
39724         diffseq: remove useless assignment to "best"
39725         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39726         assignment.  At that point "best" is already guaranteed to be zero.
39727
39728 2009-11-20  Eric Blake  <ebb9@byu.net>
39729
39730         build: mention ftp redirector in release announcements
39731         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39732         values that used to come from cfg.mk; mention FTP redirect URL.
39733         * build-aux/announce-gen: Mention the mirror list.
39734         Suggested by Karl Berry.
39735
39736         nanosleep: improve port to mingw
39737         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39739         LIB_NANOSLEEP, but only when needed.
39740         * modules/select (Link): Document LIBSOCKET.
39741         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39742         enough.
39743
39744         nanosleep: work around cygwin bug
39745         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39746         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39747         bug.
39748         (getnow): Delete, not needed.
39749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39750         LIB_CLOCK_GETTIME.
39751         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39752         clock-time, gettime.
39753         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39754         bug.
39755         * modules/nanosleep-tests: New test.
39756         * tests/test-nanosleep.c: New file.
39757
39758         sleep: work around cygwin bug
39759         * lib/sleep.c (rpl_sleep): Work around the bug.
39760         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39761         (gl_PREREQ_SLEEP): Delete unused macro.
39762         * modules/sleep (Depends-on): Add verify.
39763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39764         * modules/unistd (Makefile.am): Substitute witness.
39765         * lib/unistd.in.h (sleep): Update prototype.
39766         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39767         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39768         * modules/sleep-tests (Depends-on): Check for alarm.
39769
39770 2009-11-20  Jim Meyering  <meyering@redhat.com>
39771
39772         maint.mk: improve sc_prohibit_magic_number_exit
39773         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39774         so it does not match uses like System.exit(1).
39775         Add comments showing how to correct all offenders.
39776
39777 2009-11-19  Eric Blake  <ebb9@byu.net>
39778
39779         xalloc-die-tests: add missing library
39780         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39781
39782         test-xvasprintf: silence compiler warnings
39783         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39784         empty string from gcc.
39785
39786 2009-11-19  Jim Meyering  <meyering@redhat.com>
39787
39788         xfreopen: new module, from coreutils
39789         * modules/xfreopen: New module.
39790         * lib/xfreopen.c: New file.
39791         * lib/xfreopen.h: New file.
39792         * MODULES.html.sh (File stream based Input/Output"): Add it.
39793
39794 2009-11-19  Eric Blake  <ebb9@byu.net>
39795
39796         manywarnings: depend on warnings
39797         * modules/manywarnings (Depends-on): Add warnings.
39798
39799         build: avoid compiler warnings
39800         * lib/select.c (rpl_select): Delete unused variable.
39801         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39802
39803 2009-11-18  Eric Blake  <ebb9@byu.net>
39804
39805         tests: avoid false negative with --with-packager
39806         * tests/test-version-etc.sh: Discard packager information.
39807         * tests/test-argp-version-etc-1.sh: Likewise.
39808         Reported by Mike Frysinger.
39809
39810         utimens: fix regression on Solaris
39811         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39812         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39813         can only change fd timestamps via futimesat.  Instead, use an
39814         additional witness macro to avoid BSD bug.
39815         Reported by Jim Meyering.
39816
39817 2009-11-17  Eric Blake  <ebb9@byu.net>
39818
39819         usleep: use it to simplify tests
39820         * modules/stat-time-tests (Depends-on): Add usleep.
39821         (configure.ac): Drop usleep check.
39822         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39823         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39824         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39825         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39826         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39827         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39828         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39829         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39830         Likewise.
39831         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39832         * tests/test-lchown.h (nap): Likewise.
39833         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39834         * tests/test-stat-time.c (nap): Likewise.
39835         * tests/test-utimens-common.h (nap): Update comments.
39836
39837         usleep: new module
39838         * modules/usleep: New file.
39839         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39840         * lib/usleep.c (usleep): Likewise.
39841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39842         * modules/unistd (Makefile.am): Substitute witnesses.
39843         * lib/unistd.in.h (usleep): Add declaration.
39844         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39845         * MODULES.html.sh (Date and time): Likewise.
39846         * modules/usleep-tests (Depends-on): New test.
39847         * tests/test-usleep.c: New file.
39848
39849         chown: work around OpenBSD bug
39850         * lib/chown.c (rpl_chown): Work around the bug.
39851         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39852         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39853         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39854         * modules/chown (Depends-on): Add stdbool.
39855         * modules/lchown (Depends-on): Likewise.
39856         * doc/posix-functions/chown.texi (chown): Document the bug.
39857         * doc/posix-functions/lchown.texi (lchown): Likewise.
39858         * tests/test-lchown.h (test_chown): Relax test.
39859
39860         mkstemp: avoid conflict with C++ keyword template
39861         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39862         * lib/mkostemp.c (mkostemp): Likewise.
39863         * lib/mkostemps.c (mkostemps): Likewise.
39864         * lib/mkstemp.c (mkstemp): Likewise.
39865         * lib/mkstemps.c (mkstemps): Likewise.
39866
39867         xalloc-die-tests: optimize
39868         * tests/test-xalloc-die.sh: Reduce number of processes.
39869
39870 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39871
39872         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39873         patch from ludo@gnu.org (Ludovic Courtès).
39874
39875 2009-11-17  Jim Meyering  <meyering@redhat.com>
39876
39877         version-etc: use proper license string
39878         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39879         * modules/version-etc-fsf: Likewise.
39880
39881 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39882
39883         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39884         printed to stdout.  Deal with EOL differences.
39885
39886 2009-11-17  Eric Blake  <ebb9@byu.net>
39887
39888         unsetenv: work around Solaris bug
39889         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39890         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39891         Reported by Jim Meyering.
39892
39893         vasnprintf: avoid compiler warnings
39894         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39895         variables.
39896         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39897
39898 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39899
39900         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39901         settings since xalloc-die is no longer the self test,
39902         xalloc-die.sh is.
39903
39904 2009-11-17  Jim Meyering  <meyering@redhat.com>
39905
39906         test-xalloc-die.sh: make the code agree with the commit log
39907         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39908         at the end, just in case you happen to have a test-xalloc-die
39909         program in some other PATH directory.
39910
39911         test-xalloc-die.sh: fix a portability bug
39912         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39913         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39914         Otherwise, argv[0] (as often seen in diagnostics) would be too
39915         system-dependent, sometimes with, and sometimes without the leading "./".
39916
39917         version-etc-fsf: relax license to LGPLv3+
39918         * modules/version-etc-fsf (License): Relax license.
39919
39920 2009-11-16  Eric Blake  <ebb9@byu.net>
39921
39922         xalloc-die-tests: avoid printing null pointer
39923         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39924         shell script.
39925         * tests/test-xalloc-die.c (program_name): Declare.
39926         * tests/test-xalloc-die.sh (tmpfiles): New file.
39927
39928         setenv, unsetenv: work around various bugs
39929         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39930         (setenv) [HAVE_SETENV]: Work around bugs.
39931         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39932         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39933         for bugs.
39934         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39935         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39937         * modules/stdlib (Makefile.am): Update substitutions.
39938         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39939         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39940         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39941         * modules/setenv-tests: New test.
39942         * modules/unsetenv-tests: Likewise.
39943         * tests/test-setenv.c: New file.
39944         * tests/test-unsetenv.c: Likewise.
39945
39946 2009-11-16  Jim Meyering  <meyering@redhat.com>
39947
39948         version-etc: relax license to LGPLv3+
39949         * modules/version-etc (License): Relax license.
39950
39951         better AC_REQUIRE expanded-before-required-warning avoidance
39952         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39953         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39954         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39955         which is no longer needed.
39956
39957 2009-11-16  Eric Blake  <ebb9@byu.net>
39958
39959         test-freading: clean up temporary file
39960         * tests/test-freading.c (main): Remove file on success, and use
39961         ASSERT more liberally.
39962         Reported by Jim Meyering.
39963
39964 2009-11-16  Jim Meyering  <meyering@redhat.com>
39965
39966         avoid new AC_REQUIRE expanded-before-required warnings
39967         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39968         merely using it.
39969         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39970         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39971
39972 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39973
39974         * tests/test-xalloc-die.c: New file.
39975         * modules/xalloc-die-tests: New file.
39976         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39977         XFAIL_TESTS so it can be appended by modules.
39978
39979 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39980
39981         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39982         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39983
39984 2009-11-14  Eric Blake  <ebb9@byu.net>
39985
39986         fnmatch: avoid compiler warning
39987         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39988         to silence compiler warning about mismatch signedness in ?:.
39989         Reported by Robert Millan.
39990
39991         intprops: add double-inclusion guard
39992         * lib/intprops.h: Allow idempotent includes.
39993         Suggested by Bruce Korb.
39994
39995         openat: detect Solaris fchownat bug
39996         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39997         penalizing glibc chownat when only lchownat is broken.
39998         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39999         trailing slash bugs.
40000         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40001         * modules/openat-tests (Files): Include more files.
40002         (Depends-on): Add mgetgroups, sleep, stat-time.
40003         (configure.ac): Add additional checks.
40004         (Makefile.am): Build new test.
40005         * tests/test-fchownat.c: New file.
40006
40007         lchown: detect Solaris and FreeBSD bug
40008         * lib/lchown.c (rpl_lchown): Work around bug.
40009         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40011         * modules/unistd (Makefile.am): Populate it.
40012         * lib/unistd.in.h (lchown): Update declaration.
40013         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40014         * modules/lchown-tests: New file.
40015         * tests/test-lchown.h (test_lchown): Likewise.
40016         * tests/test-lchown.c (main): Likewise.
40017
40018         chown: detect Solaris and FreeBSD bug
40019         * lib/chown.c (rpl_chown): Work around bug.
40020         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40021         (gl_PREREQ_CHOWN): Delete.
40022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40023         * modules/unistd (Makefile.am): Populate it.
40024         * lib/unistd.in.h (chown): Update declaration.
40025         * lib/lchown.c (chown): Update client.
40026         * modules/lchown (Depends-on): Add lstat.
40027         * doc/posix-functions/chown.texi (chown): Document the bug.
40028         * doc/posix-functions/getgroups.texi (getgroups): Document
40029         getgroups pitfall.
40030         * modules/chown-tests: New file.
40031         * tests/test-chown.h (test_chown): Likewise.
40032         * tests/test-chown.c (main): Likewise.
40033
40034 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40035
40036         gnulib-tool: correctly detect absence of m4 directories
40037         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40038
40039 2009-11-14  Jim Meyering  <meyering@redhat.com>
40040
40041         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40042         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40043
40044 2009-11-14  John W. Eaton  <jwe@gnu.org>
40045
40046         strftime.h: wrap function declaration in extern "C" block
40047         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40048
40049 2009-11-13  Eric Blake  <ebb9@byu.net>
40050
40051         getgroups: avoid compiler warning
40052         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40053
40054         getgroups: work around FreeBSD bug
40055         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40056         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40057         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40058         * tests/test-getgroups.c (main): Fix buffer overrun.
40059
40060         getgroups: avoid compilation failure
40061         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40062         * modules/getgroups (Depends-on): Add stdint.
40063
40064 2009-11-13  Jim Meyering  <meyering@redhat.com>
40065
40066         test-getgroups: avoid compilation failure
40067         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40068
40069 2009-11-13  Eric Blake  <ebb9@byu.net>
40070
40071         mgetgroups: new module, taken from coreutils
40072         * modules/mgetgroups: New file.
40073         * lib/mgetgroups.h: Likewise.
40074         * lib/mgetgroups.c (mgetgroups): Likewise.
40075         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40076         * MODULES.html.sh (Users and groups): Mention it.
40077
40078         getgroups: don't expose GETGROUPS_T to user
40079         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40080         an element at a time if GETGROUPS_T is wrong size.
40081         * lib/getugroups.h (getugroups): Change signature.
40082         * lib/unistd.in.h (getgroups): Likewise.
40083         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40084         signature needs fixing.
40085         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40086         AC_TYPE_GETGROUPS.
40087         * modules/group-member (Depends-on): Add getgroups.
40088         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40089         (group_member): Rely on getgroups replacement.
40090         * lib/getugroups.c (getugroups): Use gid_t.
40091         * tests/test-getgroups.c (main): Likewise.
40092         * NEWS: Mention the signature change.
40093         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40094         problem with signature.
40095         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40096         GETGROUPS_T is still useful for setgroups.
40097
40098         getgroups, getugroups: provide stubs for mingw
40099         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40100         * lib/getugroups.c (getugroups): Likewise.
40101         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40102         function.  Modernize replacement scheme.
40103         (gl_PREREQ_GETGROUPS): Delete.
40104         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40105         * modules/getgroups (configure.ac): Declare witness.
40106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40107         * modules/unistd (Depends-on): Substitute witness.
40108         * lib/unistd.in.h (getgroups): Declare replacement.
40109
40110         getgroups: avoid calling exit
40111         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40112         drop xalloc.
40113         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40114         dependencies.
40115         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40116         exiting, in the rare case of malloc failure.
40117
40118         getgroups: fix logic error
40119         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40120         has more than 20 groups.
40121         * modules/getgroups-tests: New test.
40122         * tests/test-getgroups.c: New file.
40123
40124 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40125
40126         * tests/test-base64.c: Improve.
40127
40128 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40129
40130         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40131         Blake <ebb9@byu.net>.
40132
40133 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40134
40135         * tests/test-xvasprintf.c: Add %s%s related checks.
40136
40137 2009-11-12  Eric Blake  <ebb9@byu.net>
40138
40139         version-etc: match standards.texi style
40140         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40141         and use <> only for URLs.
40142
40143 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40144
40145         fts: do not fail on a submount during traversal
40146         * lib/fts.c (fts_build): Read the stat info again after opening
40147         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40148         Original report at http://bugzilla.redhat.com/501848.
40149
40150 2009-11-12  Jim Meyering  <meyering@redhat.com>
40151
40152         bootstrap: sync from coreutils
40153         * build-aux/bootstrap (bootstrap_epilogue): New function.
40154         Use git_modules_config in one more place.  This make bootstrap's
40155         --gnulib-srcdir option more useful for testing.
40156
40157         bootstrap: generalize autoheader check
40158         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40159         AC_CONFIG_HEADERS.
40160
40161 2009-11-11  Eric Blake  <ebb9@byu.net>
40162
40163         mkfifoat: use new modules for Solaris and BSD bugs
40164         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40165         * lib/mkfifoat.c (mknodat): Split...
40166         * lib/mknodat.c (mknodat): ...into new file.
40167         * modules/mkfifoat (Files): Ship new file.
40168         (Depends-on): Add mkfifo, mknod.
40169         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40170         (Depends-on): Add symlink.
40171         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40172         redundant with test_mkfifo.h.
40173         (do_mkfifoat, do_mknodat): New helpers.
40174
40175         mknod: new module
40176         * modules/mknod: New file.
40177         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40178         * lib/mknod.c (mknod): Likewise.
40179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40180         defaults.
40181         * modules/sys_stat (Makefile.am): Substitute them.
40182         * lib/sys_stat.in.h (mknod): Declare replacement.
40183         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40184         Document it.
40185         * doc/posix-functions/mknod.texi (mknod): Likewise.
40186         * modules/mknod-tests: New test.
40187         * tests/test-mknod.c: Likewise.
40188
40189         mkfifo: new module
40190         * modules/mkfifo: New file.
40191         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40192         * lib/mkfifo.c (mkfifo): Likewise.
40193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40194         defaults.
40195         * modules/sys_stat (Makefile.am): Substitute them.
40196         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40197         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40198         Document it.
40199         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40200         * modules/mkfifo-tests: New test.
40201         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40202         from test-mkfifoat.c.
40203         * tests/test-mkfifo.c: New file.
40204
40205         readlink: detect FreeBSD bug
40206         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40207         slash on symlink.
40208         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40209         * tests/test-readlink.h (test_readlink): Enhance test.
40210
40211         symlink: detect FreeBSD bug
40212         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40213         slash on symlink.
40214         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40215         * tests/test-symlink.h (test_symlink): Enhance test.
40216
40217 2009-11-10  Eric Blake  <ebb9@byu.net>
40218
40219         link: detect FreeBSD bug
40220         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40221         symlink.
40222         * doc/posix-functions/link.texi (link): Document the bug.
40223         * tests/test-link.h (test_link): Enhance test.
40224         * tests/test-linkat.c (main): Update caller.
40225
40226         unlink, remove: detect FreeBSD bug
40227         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40228         slash on symlink.
40229         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40230         * doc/posix-functions/remove.texi (remove): Likewise.
40231         * tests/test-unlink.h (test_unlink): Enhance test.
40232         * tests/test-remove.c (main): Likewise.
40233
40234 2009-11-09  Eric Blake  <ebb9@byu.net>
40235
40236         rename: detect FreeBSD bug
40237         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40238         slash on symlink.
40239         * modules/renameat-tests (Depends-on): Add filenamecat.
40240         * tests/test-rename.h (test_rename): Allow one more errno.
40241         * tests/test-renameat.c (main): Likewise.
40242         * doc/posix-functions/rename.texi (rename): Document the bug.
40243
40244         open: detect FreeBSD bug
40245         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40246         symlink.
40247         * doc/posix-functions/open.texi (open): Document the bug.
40248         * doc/posix-functions/utimes.texi (utimes): Likewise.
40249         * tests/test-open.h (test_open): Add parameters, and test symlink
40250         handling.
40251         * tests/test-open.c (main): Adjust caller.
40252         * tests/test-fcntl-safer.c (main): Likewise.
40253         * modules/open-tests (Depends-on): Add stdbool, symlink.
40254         * modules/fcntl-safer-tests (Depends-on): Likewise.
40255         * tests/test-openat.c (main): Add test-open tests.
40256
40257         stat: detect FreeBSD bug
40258         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40259         symlink.
40260         * doc/posix-functions/stat.texi (stat): Document the bug.
40261         * tests/test-stat.h (test_stat_func): Add argument.
40262         * tests/test-stat.c (main): Adjust caller.
40263         * tests/test-fstatat.c (main): Likewise.
40264         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40265         Reported by Jim Meyering.
40266
40267 2009-11-09  James Youngman  <jay@gnu.org>
40268
40269         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40270         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40271
40272 2009-11-08  Jim Meyering  <meyering@redhat.com>
40273
40274         utimens: remove invalid futimesat call
40275         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40276         It used the file descriptor of the target file as the DIR_FD
40277         parameter and NULL as the file name.  That caused failure with
40278         errno == EFAULT on FreeBSD-8.0-rc2
40279
40280 2009-11-07  Eric Blake  <ebb9@byu.net>
40281
40282         fflush, freadseek: use fseeko, not fseek
40283         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40284         (clear_ungetc_buffer): Avoid potential problems on large files.
40285         * lib/freadseek.c (freadseek): Likewise.
40286         * modules/freadseek (Depends-on): Add fseeko.
40287         * modules/fseek (configure.ac): Set a witness.
40288         * tests/test-fflush.c (main): Use fseeko.
40289         * tests/test-fpurge.c (fseek): Disable link warning.
40290         * tests/test-freadable.c (fseek): Likewise.
40291         * tests/test-freading.c (fseek): Likewise.
40292         * tests/test-fseeko.c (fseek): Likewise.
40293         * tests/test-ftell.c (fseek): Likewise.
40294         * tests/test-ftello.c (fseek): Likewise.
40295         * tests/test-fwritable.c (fseek): Likewise.
40296         * tests/test-fwriting.c (fseek): Likewise.
40297
40298 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40299
40300         * modules/memchr (Depends-on): Drop getpagesize dependency.
40301
40302 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40303
40304         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40305         Reported by Ludovic Courtès.
40306         * build-aux/pmccabe2html: Improve example usage.
40307         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40308
40309 2009-11-06  Jim Meyering  <meyering@redhat.com>
40310
40311         do-release-commit-and-tag: New module.
40312         Automate the release-commit and tag process.
40313         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40314         * modules/do-release-commit-and-tag: New file.
40315         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40316
40317 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40318
40319         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40320         because test-select.c uses inet_pton.
40321
40322 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40323
40324         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40325         GETADDRINFO_LIB.  Bump serial number.
40326         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40327         Suggested by Eric Blake <ebb9@byu.net>.
40328
40329 2009-11-05  Eric Blake  <ebb9@byu.net>
40330
40331         strtod: detect darwin bug
40332         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40333         Reported by Leo Davis.
40334
40335         freopen-safer: new module
40336         * modules/freopen-safer: New module.
40337         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40338         * lib/freopen-safer.c (freopen_safer): New file.
40339         * lib/stdio-safer.h (freopen_safer): New declaration.
40340         * lib/stdio--.h (freopen): New override.
40341         * MODULES.html.sh (File stream based Input/Output): Mention it.
40342         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40343         freopen-safer module.
40344         * doc/posix-functions/stderr.texi (stderr): Likewise.
40345         * doc/posix-functions/stdin.texi (stdin): Likewise.
40346         * doc/posix-functions/stdout.texi (stdout): Likewise.
40347         * modules/freopen-safer-tests: New test.
40348         * tests/test-reopen-safer.c: New file.
40349
40350 2009-11-05  Jim Meyering  <meyering@redhat.com>
40351
40352         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40353         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40354
40355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40356
40357         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40358
40359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40360
40361         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40362
40363 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40364
40365         Fix link error.
40366         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40367         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40368
40369 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40370
40371         * tests/test-func.c: Also test value of __func__.
40372
40373 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40374
40375         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40376         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40377
40378 2009-11-05  Bruno Haible  <bruno@clisp.org>
40379
40380         Fix link error.
40381         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40382         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40383         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40384
40385 2009-11-05  Bruno Haible  <bruno@clisp.org>
40386
40387         Tests for module 'inet_pton'.
40388         * modules/inet_pton-tests: New file.
40389         * tests/test-inet_pton.c: New file.
40390
40391 2009-11-05  Bruno Haible  <bruno@clisp.org>
40392
40393         Tests for module 'inet_ntop'.
40394         * modules/inet_ntop-tests: New file.
40395         * tests/test-inet_ntop.c: New file.
40396
40397 2009-11-04  Eric Blake  <ebb9@byu.net>
40398
40399         stdlib-safer: wrap all mkstemp variants
40400         * modules/mkostemp (configure.ac): Set witness.
40401         * modules/mkostemps (configure.ac): Likewise.
40402         * modules/mkstemps (configure.ac): Likewise.
40403         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40404         (mkstemps_safer): Wrap more functions.
40405         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40406         wrapping.
40407         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40408         (mkstemps_safer): Implement the wrappers.
40409
40410         mkstemps, mkostemps: new modules
40411         * modules/mkostemps: New module.
40412         * modules/mkstemps: Likewise.
40413         * lib/mkostemps.c (mkostemps): New file.
40414         * lib/mkstemps.c (mkstemps): Likewise.
40415         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40416         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40418         * modules/stdlib (Makefile.am): Substitute them.
40419         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40420         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40421         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40422         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40423         * MODULES.html.sh (File system functions): Mention them.
40424
40425         tempname: resync from glibc
40426         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40427         same values for __GT_FILE as glibc.  Abort even when assertions
40428         are disabled.
40429         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40430         match its value otherwise.  Allow idempotent inclusion.
40431         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40432         * lib/mkostemp.c (mkostemp): Likewise.
40433         * lib/mkstemp.c (mkstemp): Likewise.
40434         * lib/tmpfile.c (tmpfile): Likewise.
40435         * NEWS: Document this.
40436
40437         utimens: fix use of futimens on older Linux
40438         * lib/utimens.c (fdutimens): Use updated, rather than original,
40439         timespec to avoid bug in older Linux kernel.
40440         Reported by Simon Josefsson.
40441
40442 2009-11-04  Bruno Haible  <bruno@clisp.org>
40443
40444         Make num_processors more flexible and consistent.
40445         * lib/nproc.h (enum nproc_query): New type.
40446         (num_processors): Add a 'query' argument.
40447         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40448         (num_processors): Add a 'query' argument. Test the value of the
40449         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40450         mingw, count the number of CPUs available for the current process.
40451         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40452         Check for sched_getaffinity and sched_getaffinity_np.
40453         * modules/nproc (Depends-on): Add c-ctype, extensions.
40454         * NEWS: Mention the change.
40455
40456 2009-11-03  Bruno Haible  <bruno@clisp.org>
40457
40458         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40459
40460 2009-11-03  Jim Meyering  <meyering@redhat.com>
40461
40462         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40463         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40464         if it is defined.
40465
40466 2009-11-02  Eric Blake  <ebb9@byu.net>
40467
40468         mktime, timegm: share common declaration
40469         * lib/mktime-internal.h: New file.
40470         * lib/mktime.c: Use it rather than open-coding a declaration.
40471         * lib/timegm.c: Likewise.
40472         * modules/mktime (Files): Ship it.
40473         * modules/timegm (Files): Likewise.
40474         Suggested by Bruno Haible.
40475
40476         test-update-copyright: update test to match script changes
40477         * tests/test-update-copyright.sh: Avoid hard-coding perl
40478         location.  Don't update *.bak created by earlier runs.
40479
40480 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40481             Simon Josefsson  <simon@josefsson.org>
40482             Bruno Haible  <bruno@clisp.org>
40483
40484         Fix link error on Solaris 8.
40485         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40486         also in libnsl. Define also INET_PTON_LIB.
40487         * modules/inet_pton (Link): New section.
40488
40489 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40490             Bruno Haible  <bruno@clisp.org>
40491
40492         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40493         * modules/inet_ntop (Link): New section.
40494         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40495
40496 2009-11-02  Eric Blake  <ebb9@byu.net>
40497
40498         maint: avoid compiler warnings in m4 macros
40499         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40501
40502 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40503
40504         * m4/pmccabe2html.m4: Remove file.
40505         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40506         function.  Change maintainer.
40507         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40508         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40509         Courtès).
40510
40511 2009-10-31  Eric Blake  <ebb9@byu.net>
40512
40513         fseeko: fix m4 regression
40514         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40515         regression from 2009-10-27.
40516         Reported by Ralf Wildenhues.
40517
40518 2009-10-31  Jim Meyering  <meyering@redhat.com>
40519
40520         inttostr: aesthetics and improved (compile-time) safety
40521         Define inttype_is_signed rather than inttype_is_unsigned,
40522         since the sole use is via "#if inttype_is_signed".
40523         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40524         inttype_is_unsigned.
40525         * lib/offtostr.c (inttype_is_signed): Likewise.
40526         * lib/uinttostr.c (inttype_is_signed): Likewise.
40527         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40528         * lib/inttostr.c (inttostr): Use verify to cross-check the
40529         inttype_is_signed value and the signedness of the actual type.
40530         * modules/inttostr (Depends-on): Add verify.
40531
40532 2009-10-30  Eric Blake  <ebb9@byu.net>
40533
40534         build: avoid compiler warnings
40535         * lib/fchmodat.c (lchmod): Mark unused variables.
40536         * lib/getopt.c (_getopt_initialize): Likewise.
40537         * lib/mktime.c (__mktime_internal): Provide prototype.
40538         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40539         older gcc that do not understand #pragma GCC diagnostic.
40540         * lib/uinttostr.c (inttype_is_unsigned): Define.
40541         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40542
40543 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40544
40545         stat: fix compilation on AIX
40546         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40547         only see struct stat64.
40548
40549 2009-10-30  Eric Blake  <ebb9@byu.net>
40550
40551         exclude: make more robust
40552         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40553         rather than masking a coding bug.
40554         Suggested by Bruno Haible.
40555
40556 2009-10-30  Jim Meyering  <meyering@redhat.com>
40557
40558         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40559         Rather than putting #!/usr/bin/perl on the first line,
40560         start with a variant of what's recommended by "man perlrun" that
40561         invokes the first "perl" program from your shell's search path.
40562         * build-aux/gitlog-to-changelog: Replace #!... as above.
40563         Add a "Local Variables" perl mode setting.
40564         Prompted by a patch from Ludovic Courtès.
40565         Improved by Eric Blake.
40566         * build-aux/useless-if-before-free: Likewise.
40567         * build-aux/announce-gen: Likewise.
40568         * build-aux/update-copyright: Likewise.
40569
40570 2009-10-29  Eric Blake  <ebb9@byu.net>
40571
40572         filenamecat-lgpl: adjust clients
40573         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40574         filenamecat.
40575         * modules/renameat (Depends-on): Likewise.
40576
40577         filenamecat: split into filenamecat-lgpl
40578         * modules/filenamecat-lgpl: New module.
40579         * modules/filenamecat (Files): Move library-safe files into
40580         filenamecat-lgpl.
40581         (Depends-on): Add filenamecat-lgpl.
40582         (configure.ac): Declare witness.
40583         * lib/filenamecat.h (file_name_concat): Only declare when using
40584         GPL module.
40585         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40586         Move...
40587         * lib/filenamecat-lgpl.c: ...into new file.
40588         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40589         (gl_FILE_NAME_CONCAT): Use it.
40590         * MODULES.html.sh (File system functions): Mention new module.
40591
40592         argp: avoid memory leak
40593         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40594         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40595         base_name, since the latter malloc()s and can call exit().
40596         Leak introduced 2006-07-03.
40597
40598         dirname-lgpl: adjust clients that don't need full dirname
40599         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40600         * modules/filenamecat (Depends-on): Likewise.
40601         * modules/linkat (Depends-on): Likewise.
40602         * modules/mkancesdirs (Depends-on): Likewise.
40603         * modules/mkdir (Depends-on): Likewise.
40604         * modules/openat (Depends-on): Likewise.
40605         * modules/savewd (Depends-on): Likewise.
40606         * modules/rename (Depends-on): Likewise.
40607         (License): Relax license.
40608         * modules/mkdir-tests (Depends-on): Drop progname.
40609         (Makefile.am): Delete unneeded LDADD.
40610         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40611
40612         dirname: split into dirname-lgpl
40613         * modules/dirname-lgpl: New module.
40614         * modules/dirname (Files): Move library-safe files into
40615         dirname-lgpl.
40616         (Depends-on): Add dirname-lgpl.
40617         (configure.ac): Declare witness.
40618         * modules/double-slash-root (License): Relax license.
40619         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40620         module.
40621         * lib/dirname.c (dir_len, mdir_name): Move...
40622         * lib/dirname-lgpl.c: ...into new file.
40623         * lib/basename.c (last_component, base_len): Move...
40624         * lib/basename-lgpl.c: ...into new file.
40625         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40626         (gl_DIRNAME): Use it.
40627         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40628         Mention new module.
40629         * modules/dirname-tests (Depends-on): Add progname.
40630         * tests/test-dirname.c (program_name): Delete.
40631
40632         mkdir: make safe for libraries
40633         * modules/mkdir (Depends-on): Drop xalloc.
40634         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40635         exit.
40636
40637         tests: avoid some compiler warnings
40638         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40639         literals.
40640         * tests/test-memchr.c (main): Avoid type mismatch.
40641         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40642         * tests/test-base64.c (main): Likewise.
40643         * tests/test-getdelim.c (main): Likewise.
40644         * tests/test-gethostname.c (main): Likewise.
40645         * tests/test-getline.c (main): Likewise.
40646         * tests/test-netinet_in.c (main): Likewise.
40647         * tests/test-select.c (open_server_socket, main): Likewise.
40648         * tests/test-select-stdin.c (main): Likewise.
40649         * tests/test-sockets.c (main): Likewise.
40650         * tests/test-strsignal.c (main): Likewise.
40651         * tests/test-sys_select.c (main): Likewise.
40652         * tests/test-sys_socket.c (main): Likewise.
40653         * tests/test-u64.c (main): Likewise.
40654         * tests/test-xfprintf-posix.c (main): Likewise.
40655         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40656
40657         sockets: avoid compiler warning
40658         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40659
40660         maint: detect usage(1) and other suspicious exits
40661         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40662
40663 2009-10-29  Jim Meyering  <meyering@redhat.com>
40664
40665         timespec: long-to-int truncation could make timespec_cmp malfunction
40666         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40667         a multiple of 2^32 nanoseconds as no difference.
40668
40669 2009-10-28  Jim Meyering  <meyering@redhat.com>
40670
40671         fprintftime: wrap macro code argument in "do {...} while(0)"
40672         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40673         cpy macro must be a statement that can be followed by a semicolon.
40674         Now that the else clause contains a comment and is hence longer
40675         than one line, I require curly braces.  That in turn requires
40676         that we wrap this code block in the standard do...while(0).
40677
40678         fprintftime: remove stray semicolon from previous change
40679         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40680
40681         fprintftime: avoid a warning about ignored fwrite return value
40682         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40683         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40684         that is unsafe.
40685         * modules/fprintftime (Depends-on): Add ignore-value.
40686
40687         exclude: avoid an unwarranted warning
40688         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40689
40690 2009-10-27  Eric Blake  <ebb9@byu.net>
40691
40692         fseek: avoid compilation failure when fflush is replaced
40693         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40694         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40695         module is in use.
40696         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40697         module is not in use; since REPLACE_FSEEK worked otherwise.
40698         (GNULIB_FTELLO): Likewise for ftell.
40699         Reported by Ian Beckwith and others.
40700
40701 2009-10-27  Bruno Haible  <bruno@clisp.org>
40702
40703         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40704         Reported by Jim Meyering.
40705
40706 2009-10-27  Jim Meyering  <jim@meyering.net>
40707             Bruno Haible  <bruno@clisp.org>
40708
40709         Avoid warning despite dropping the return value of fwrite.
40710         * lib/unicodeio.c: Include ignore-value.h.
40711         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40712         * modules/unicodeio (Depends-on): Add ignore-value.
40713
40714 2009-10-26  Eric Blake  <ebb9@byu.net>
40715
40716         areadlinkat: fix fallback path
40717         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40718         pointer and zero.
40719
40720 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40721
40722         Use a better IO block size for modern systems
40723         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40724         * lib/md2.c: Likewise.
40725         * lib/md4.c: Likewise.
40726         * lib/md5.c: Likewise.
40727         * lib/sha1.c: Likewise.
40728         * lib/sha256.c: Likewise.
40729         * lib/sha512.c: Likewise.
40730
40731 2009-10-22  Eric Blake  <ebb9@byu.net>
40732
40733         tests: avoid several compiler warnings
40734         * tests/test-getcwd.c (main): Avoid buffer underflow.
40735         * tests/test-getdate.c (main): String literals are not safe with
40736         putenv, so use setenv.  Declare unused argument.
40737         * modules/getdate-tests (Depends-on): Add setenv.
40738         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40739         problems with string literals in char *.
40740         * tests/test-hash.c (main): Avoid shadowing declaration.
40741         (insert_new): Treat string literals as char const *.
40742         * tests/test-getopt.h (test_getopt): Likewise.
40743         (getopt_loop): Alter types to minimize casting elsewhere.
40744         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40745         (test_getopt_long_posix): Likewise.
40746         (do_getopt_long): Add wrapper to minimize casting.
40747         * tests/test-atexit.c (clear_temp_file): Use void.
40748         * tests/test-areadlink-with-size.c (main): Declare unused
40749         arguments.
40750         * tests/test-areadlink.c (main): Likewise.
40751         * tests/test-areadlinkat-with-size.c (main): Likewise.
40752         * tests/test-areadlinkat.c (main): Likewise.
40753         * tests/test-canonicalize-lgpl.c (main): Likewise.
40754         * tests/test-canonicalize.c (main): Likewise.
40755         * tests/test-dirent-safer.c (main): Likewise.
40756         * tests/test-dirname.c (main): Likewise.
40757         * tests/test-dup2.c (main): Likewise.
40758         * tests/test-fchdir.c (main): Likewise.
40759         * tests/test-fcntl-h.c (main): Likewise.
40760         * tests/test-fcntl-safer.c (main): Likewise.
40761         * tests/test-fdopendir.c (main): Likewise.
40762         * tests/test-fdutimensat.c (main): Likewise.
40763         * tests/test-fflush.c (main): Likewise.
40764         * tests/test-filenamecat.c (main): Likewise.
40765         * tests/test-filevercmp.c (main): Likewise.
40766         * tests/test-fopen-safer.c (main): Likewise.
40767         * tests/test-fopen.c (main): Likewise.
40768         * tests/test-fpending.c (main): Likewise.
40769         * tests/test-fpurge.c (main): Likewise.
40770         * tests/test-freading.c (main): Likewise.
40771         * tests/test-fstatat.c (main): Likewise.
40772         * tests/test-fsync.c (main): Likewise.
40773         * tests/test-futimens.c (main): Likewise.
40774         * tests/test-getndelim2.c (main): Likewise.
40775         * tests/test-gettimeofday.c (main): Likewise.
40776         * tests/test-getopt.c (main): Likewise.
40777         * tests/test-i-ring.c (main): Likewise.
40778         * tests/test-inttypes.c (main): Likewise.
40779         * tests/test-link.c (main): Likewise.
40780         * tests/test-lstat.c (main): Likewise.
40781         * tests/test-math.c (main): Likewise.
40782         * tests/test-md5.c (main): Likewise.
40783         * tests/test-memchr2.c (main): Likewise.
40784         * tests/test-memrchr.c (main): Likewise.
40785         * tests/test-mkdir.c (main): Likewise.
40786         * tests/test-mkdirat.c (main): Likewise.
40787         * tests/test-mkfifoat.c (main): Likewise.
40788         * tests/test-open.c (main): Likewise.
40789         * tests/test-openat-safer.c (main): Likewise.
40790         * tests/test-openat.c (main): Likewise.
40791         * tests/test-quotearg.c (main): Likewise.
40792         * tests/test-rawmemchr.c (main): Likewise.
40793         * tests/test-readlink.c (main): Likewise.
40794         * tests/test-remove.c (main): Likewise.
40795         * tests/test-rename.c (main): Likewise.
40796         * tests/test-renameat.c (main): Likewise.
40797         * tests/test-rmdir.c (main): Likewise.
40798         * tests/test-sha1.c (main): Likewise.
40799         * tests/test-signal.c (main): Likewise.
40800         * tests/test-sigaction.c (main): Likewise.
40801         * tests/test-stat.c (main): Likewise.
40802         * tests/test-stat-time.c (main): Likewise.
40803         * tests/test-stddef.c (main): Likewise.
40804         * tests/test-stdint.c (main): Likewise.
40805         * tests/test-stdio.c (main): Likewise.
40806         * tests/test-stdlib.c (main): Likewise.
40807         * tests/test-strchrnul.c (main): Likewise.
40808         * tests/test-strerror.c (main): Likewise.
40809         * tests/test-string.c (main): Likewise.
40810         * tests/test-strtod.c (main): Likewise.
40811         * tests/test-strverscmp.c (main): Likewise.
40812         * tests/test-symlink.c (main): Likewise.
40813         * tests/test-symlinkat.c (main): Likewise.
40814         * tests/test-sys_stat.c (main): Likewise.
40815         * tests/test-sys_time.c (main): Likewise.
40816         * tests/test-time.c (main): Likewise.
40817         * tests/test-unistd.c (main): Likewise.
40818         * tests/test-unlink.c (main): Likewise.
40819         * tests/test-unlinkat.c (main): Likewise.
40820         * tests/test-utimens.c (main): Likewise.
40821         * tests/test-utimensat.c (main): Likewise.
40822         * tests/test-version-etc.c (main): Likewise.
40823         * tests/test-wchar.c (main): Likewise.
40824         * tests/test-wctype.c (main): Likewise.
40825         * tests/test-xprintf-posix.c (main): Likewise.
40826         * tests/test-posixtm.c (main): Likewise.
40827         (STREQ): Delete unused macro.
40828         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40829         shadowed variables.
40830         * tests/test-memchr.c (main): Likewise.
40831
40832 2009-10-21  Eric Blake  <ebb9@byu.net>
40833
40834         areadlinkat: avoid failure on older glibc
40835         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40836         rather than mis-comparing 0 against FUNC_RESULT of char*.
40837
40838 2009-10-21  Bruno Haible  <bruno@clisp.org>
40839
40840         * modules/stpncpy (License): Relicense under LGPLv2+.
40841         Reported by David Lutterkort <lutter@redhat.com>.
40842
40843 2009-10-20  Eric Blake  <ebb9@byu.net>
40844
40845         utimensat: work around Solaris 9 bug
40846         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40847         has trailing slash bugs.
40848         * tests/test-lutimens.h (test_lutimens): Enhance test.
40849         * tests/test-utimens.h (test_utimens): Likewise.
40850         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40851         * doc/posix-functions/utimes.texi (utimes): Likewise.
40852         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40853         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40854         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40855         * doc/posix-functions/futimens.texi (futimens): Likewise.
40856
40857         fdutimensat: new module
40858         * modules/fdutimensat: New file.
40859         * lib/fdutimensat.c (fdutimensat): Likewise.
40860         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40861         * MODULES.html.sh (File system functions): Mention module.
40862         * modules/fdutimensat-tests: New test.
40863         * tests/test-fdutimensat.c: Likewise.
40864
40865         doc: regenerate INSTALL
40866         * doc/INSTALL: Reflect recent autoconf update.
40867         * doc/INSTALL.ISO: Likewise.
40868         * doc/INSTALL.UTF-8: Likewise.
40869
40870 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40871
40872         acl: warn if ACL support is not detected
40873         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40874
40875 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40876
40877         * lib/nproc.h: Add extern "C" block for C++.
40878
40879 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40880             Bruno Haible  <bruno@clisp.org>
40881
40882         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40883         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40884         * doc/posix-functions/isalpha.texi: Likewise.
40885         * doc/posix-functions/isblank.texi: Likewise.
40886         * doc/posix-functions/iscntrl.texi: Likewise.
40887         * doc/posix-functions/isdigit.texi: Likewise.
40888         * doc/posix-functions/isgraph.texi: Likewise.
40889         * doc/posix-functions/islower.texi: Likewise.
40890         * doc/posix-functions/isprint.texi: Likewise.
40891         * doc/posix-functions/ispunct.texi: Likewise.
40892         * doc/posix-functions/isspace.texi: Likewise.
40893         * doc/posix-functions/isupper.texi: Likewise.
40894         * doc/posix-functions/isxdigit.texi: Likewise.
40895
40896 2009-10-18  Bruno Haible  <bruno@clisp.org>
40897
40898         Tests for module 'isblank'.
40899         * modules/isblank-tests: New file.
40900         * tests/test-isblank.c: New file.
40901
40902         New module 'isblank'.
40903         * lib/isblank.c: New file.
40904         * m4/isblank.m4: New file.
40905         * modules/isblank: New file.
40906         * doc/posix-functions/isblank.texi: Mention the new module.
40907
40908 2009-10-18  Bruno Haible  <bruno@clisp.org>
40909
40910         New module 'ctype'.
40911         * lib/ctype.in.h: New file.
40912         * m4/ctype.m4: New file.
40913         * modules/ctype: New file.
40914         * doc/posix-headers/ctype.texi: Mention the new module.
40915
40916 2009-10-18  Jim Meyering  <meyering@redhat.com>
40917
40918         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40919         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40920         right after its initialization, rather than farther down.
40921         Keeping these in close proximity makes it easier to ensure
40922         that each such variable is initialized.  E.g.,
40923
40924             LIB_CLOCK_GETTIME=
40925             AC_SUBST([LIB_CLOCK_GETTIME])
40926
40927         This change also increments these serial numbers.
40928         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40929         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40931
40932 2009-10-18  Bruno Haible  <bruno@clisp.org>
40933
40934         Don't let environment variables perturb build.
40935         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40936         (gl_PREREQ_GETHRXTIME): ... not here.
40937
40938 2009-10-18  Bruno Haible  <bruno@clisp.org>
40939
40940         Avoid symlink attack in localcharset module.
40941         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40942         (O_NOFOLLOW): Define fallback.
40943         (get_charset_aliases): Don't open the file if it is a symbolic link.
40944         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40945         gl_FCNTL_H.
40946         (gl_FCNTL_H): Require it.
40947         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40948         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40949         Reported by Fergal Glynn <fglynn@veracode.com>.
40950
40951 2009-10-18  Bruno Haible  <bruno@clisp.org>
40952
40953         Implement nproc for mingw.
40954         * lib/nproc.c: Include <windows.h>
40955         (num_processors): On native Windows platforms, try GetSystemInfo.
40956
40957 2009-10-18  Bruno Haible  <bruno@clisp.org>
40958
40959         Implement nproc for IRIX.
40960         * lib/nproc.c: Include <sys/sysmp.h>.
40961         (num_processors): On IRIX systems, try sysmp.
40962         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40963
40964 2009-10-18  Bruno Haible  <bruno@clisp.org>
40965
40966         Implement nproc for HP-UX.
40967         * lib/nproc.c: Include <sys/pstat.h>
40968         (num_processors): On HP-UX systems, try pstat_getdynamic.
40969         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40970         pstat_getdynamic.
40971
40972 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40973             Bruno Haible  <bruno@clisp.org>
40974
40975         Implement nproc for NetBSD, OpenBSD.
40976         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40977         (ARRAY_SIZE): New macro.
40978         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40979         * m4/nproc.m4: New file.
40980         * modules/nproc (Files): Add m4/nproc.m4.
40981         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40982         (Makefile.am): Instead, augment lib_SOURCES.
40983
40984 2009-10-18  Bruno Haible  <bruno@clisp.org>
40985
40986         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40987         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40988         sys/param.h.
40989
40990 2009-10-16  Eric Blake  <ebb9@byu.net>
40991
40992         utimensat: new module
40993         * modules/utimensat: New file.
40994         * lib/utimensat.c (utimensat): Likewise.
40995         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40996         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40997         so we can work around Linux bugs.
40998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40999         * modules/sys_stat (Makefile.am): Substitute them.
41000         * lib/sys_stat.in.h (utimensat): Declare it.
41001         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41002         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41003         * modules/utimensat-tests: New test.
41004         * tests/test-utimensat.c: Likewise.
41005
41006         utimens: let lutimens work on non-symlinks
41007         * lib/utimens.c (lutimens): Fall back to utimens rather than
41008         failing with ENOSYS, when file is not a symlink.
41009         (utimens): Reduce redirection.
41010         * tests/test-lutimens.h (test_lutimens): Update test to cover
41011         non-symlinks.
41012         * tests/test-utimens.h (test_utimens): Update test to cover
41013         symlinks.
41014         * tests/test-utimens.c (main): Update caller.
41015
41016         utimens: cache whether utimensat syscall works
41017         * lib/utimens.c (utimensat_works_really): New cache variable.
41018         (fdutimens, lutimens): Use it to avoid failing syscall.
41019
41020         test-stat-time, test-utimens: improve portability
41021         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41022         ext4 on alpha, and for cygwin.
41023         * tests/test-utimens-common.h: New file.
41024         (nap): Factor delays into single function.
41025         * tests/test-lutimens.h (test_lutimens): Use new header.
41026         * tests/test-futimens.h (test_futimens): Likewise.
41027         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41028         timestamps to occur from same machine, as was done previously for
41029         test_utimens.
41030         * modules/utimens-tests (Files): Ship new file.
41031         * modules/futimens-tests (Files): Likewise.
41032         Reported in part by Jim Meyering.
41033
41034         sys_stat: sort replacement declarations
41035         * lib/sys_stat.in.h: Sort declarations.
41036         * lib/futimens.c (futimens): Fix typo.
41037
41038 2009-10-15  Jim Meyering  <meyering@redhat.com>
41039
41040         don't let environment settings perturb build
41041         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41042         could cause a configure-time and/or build-time malfunction.
41043         Typically, a configure-time function-in-library test is performed
41044         via code like this:
41045
41046           LIB_VAR=
41047           AC_SUBST([LIB_VAR])
41048           prefix_saved_LIBS=$LIBS
41049             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41050                        [test "$ac_cv_search_FUNC" = "none required" ||
41051                         LIB_VAR=$ac_cv_search_FUNC])
41052           LIBS=$prefix_saved_LIBS
41053
41054         However, in each of the files affected by this change, the LIB_VAR=
41055         initialization was omitted.  Thus, when set in the environment, its
41056         value would propagate into generated Makefiles when FUNC is not found
41057         in LIB_NAME.
41058         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41059         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41061
41062 2009-10-14  Eric Blake  <ebb9@byu.net>
41063
41064         fchdir: avoid infinite recursion in mingw
41065         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41066         recursing.
41067
41068         test-stat-time: port to mingw
41069         * tests/test-stat-time.c (force_unlink): Return a value.
41070         (test_ctime) [W32]: Fix compilation error.
41071         (nap): Don't call usleep with too large an argument.  Use
41072         force_unlink.
41073         * doc/pastposix-functions/usleep.texi (usleep): Document the
41074         portability issue.
41075
41076 2009-10-13  Jim Meyering  <meyering@redhat.com>
41077
41078         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41079         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41080         * modules/pipe-filter-ii: Likewise.
41081         * modules/sys_socket-tests: Likewise.
41082         * modules/tsearch-tests: Likewise.
41083         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41084         (check): Depend on it.
41085
41086 2009-10-12  Eric Blake  <ebb9@byu.net>
41087
41088         utimens-tests: port to NFS file systems
41089         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41090         comparisons to avoid spurious failures from timestamp drift
41091         between NFS machines.
41092
41093 2009-10-12  Eric Blake  <ebb9@byu.net>
41094
41095         stat-time-tests: minor cleanups
41096         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41097         * tests/test-stat-time.c (nap): Separate assignment from call.
41098         Suggested by Paolo Bonzini and Bruno Haible.
41099
41100         sys_stat: guarantee struct timespec
41101         * lib/sys_stat.in.h (includes): Always include <time.h>
41102         * modules/sys_stat (Depends-on): Add time.
41103         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41104         mode_t permission values.
41105         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41106         get at subsecond timestamps.
41107
41108 2009-10-10  Eric Blake  <ebb9@byu.net>
41109
41110         futimens: new module
41111         * modules/futimens: New file.
41112         * lib/futimens.c (futimens): Likewise.
41113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41114         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41115         we can work around Linux bugs.
41116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41117         * modules/sys_stat (Makefile.am): Substitute them.
41118         * lib/sys_stat.in.h (futimens): Declare it.
41119         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41120         * doc/posix-functions/futimens.texi (futimens): Likewise.
41121         * modules/futimens-tests: New test.
41122         * tests/test-futimens.c: Likewise.
41123
41124         utimens: introduce fdutimens
41125         * lib/utimens.h (fdutimens): New prototype.
41126         * lib/utimens.c (gl_futimens): Move guts...
41127         (fdutimens): ...to new interface.
41128         * tests/test-utimens.c (do_fdutimens): Use it.
41129
41130         utimens: add UTIME_NOW and UTIME_OMIT support
41131         * lib/utimens.c (validate_timespec, update_timespec): New helper
41132         functions.
41133         (gl_futimens, lutimens): Use them.
41134         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41135         stdbool, sys_stat.
41136         (Link): Mention resulting library dependency.
41137         * modules/utimecmp (Link): Likewise.
41138         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41139         (Makefile.am): Pick up library dependency.
41140         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41141         definition.
41142         * tests/test-sys_stat.c: Test the definitions.
41143         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41144         * NEWS: Document library dependency.
41145
41146         utimecmp: support symlink timestamps
41147         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41148         hashing when possible.  Use pathconf when available.
41149         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41150         * modules/utimecmp (Depends-on): Add lstat.
41151
41152         utimens: add lutimens interface
41153         * lib/utimens.c (lutimens): New function.
41154         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41155         * lib/utimens.h (lutimens): Declare new interface.
41156         * tests/test-utimens.c (main): Enhance test.
41157         * tests/test-lutimens.h (test_lutimens): New file.
41158         * modules/utimens-tests (Files): Distribute it.
41159         (Depends-on): Add symlink.
41160         (configure.ac): Check for usleep.
41161
41162         utimens: validate futimens usage
41163         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41164         fewer syscalls on failure later on.  Avoid compiler warning on
41165         mingw.
41166         * modules/utimens (Depends-on): Add dup2.
41167
41168         utimens: add test
41169         * modules/utimens-tests: New test.
41170         * tests/test-utimens.h: New file.
41171         * tests/test-futimens.h: Likewise.
41172         * tests/test-utimens.c: Likewise.
41173
41174         doc: mention timestamp portability issues
41175         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41176         instead.
41177         * doc/posix-functions/utime.texi (utime): Likewise.
41178         * doc/posix-functions/utimes.texi (utimes): Likewise.
41179         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41180         instead.
41181         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41182         module.
41183         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41184         Mention weakness with symlink timestamps.
41185         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41186         to utimensat/futimens instead.
41187         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41188
41189         test-dup2: enhance test
41190         * tests/test-dup2.c (main): Also check AT_FDCWD.
41191
41192         test-stat-time: avoid more spurious failures
41193         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41194         xfs; and avoid race if the two timestamps cross quantization edge.
41195
41196         relocatable: prefer 'file system' over 'filesystem'
41197         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41198         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41199         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41200         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41201         * lib/relocatable.c (compute_curr_prefix): Likewise.
41202
41203 2009-10-10  Jim Meyering  <meyering@redhat.com>
41204
41205         stat-time-tests: check for the usleep function
41206         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41207
41208 2009-10-10  Bruno Haible  <bruno@clisp.org>
41209
41210         * modules/xnanosleep: Put the Link section after the Include section.
41211
41212 2009-10-09  Eric Blake  <ebb9@byu.net>
41213
41214         dup2: work around FreeBSD 6.1 bug
41215         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41216         * doc/posix-functions/dup2.texi (dup2): Document it.
41217         Reported by Nelson H. F. Beebe and Jim Meyering.
41218
41219         test-stat-time: port to buggy NFS clients
41220         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41221         (test_ctime): Also skip test if mtime and ctime are skewed.
41222
41223         maint: prefer 'file system' over 'filesystem'
41224         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41225         * doc/posix-functions/lstat.texi (lstat): Likewise.
41226         * lib/file-has-acl.c (file_has_acl): Likewise.
41227         * lib/fwriteerror.c [TEST]: Likewise.
41228         * tests/test-areadlink.h (test_areadlink): Likewise.
41229         * tests/test-areadlinkat-with-size.c (main): Likewise.
41230         * tests/test-areadlinkat.c (main): Likewise.
41231         * tests/test-canonicalize-lgpl.c (main): Likewise.
41232         * tests/test-canonicalize.c (main): Likewise.
41233         * tests/test-fstatat.c (main): Likewise.
41234         * tests/test-linkat.c (main): Likewise.
41235         * tests/test-lstat.h (test_lstat_func): Likewise.
41236         * tests/test-mkdir.h (test_mkdir): Likewise.
41237         * tests/test-readlink.h (test_readlink): Likewise.
41238         * tests/test-remove.c (main): Likewise.
41239         * tests/test-rename.h (test_rename): Likewise.
41240         * tests/test-renameat.c (main): Likewise.
41241         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41242         * tests/test-symlink.h (test_symlink): Likewise.
41243         * tests/test-symlinkat.c (main): Likewise.
41244         * tests/test-unlink.h (test_unlink_func): Likewise.
41245         * tests/test-unlinkat.c (main): Likewise.
41246
41247         maint: make realtime library usage explicit
41248         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41249         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41250         * modules/settime (Link): Likewise.
41251         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41252
41253         test-stat-time: speed up execution
41254         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41255         warning on mingw.
41256         (nap): New helper function.
41257         (prepare_test): Use it to reduce sleep time.
41258         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41259         execution.
41260         * modules/stat-time-tests (configure.ac): Check for usleep.
41261
41262 2009-10-09  Jim Meyering  <meyering@redhat.com>
41263
41264         selinux-h: always use getfilecon wrappers
41265         * lib/getfilecon.c: New file.
41266         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41267         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41268         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41269         (fgetfilecon): Provide a stub.
41270         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41271         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41272         file unconditionally.
41273         When <selinux/selinux.h> is found, arrange to use wrappers.
41274         * modules/selinux-h (Files): Add getfilecon.c.
41275         (Makefile.am): Substitute include-next-related bits
41276         into the now-always-generated selinux/selinux.h file.
41277         * doc/glibc-functions/lgetfilecon.texi: New file.
41278         * doc/glibc-functions/fgetfilecon.texi: New file.
41279         * doc/glibc-functions/getfilecon.texi: New file.
41280         * doc/glibc-functions/getfilecon-desc.texi: New file.
41281         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41282         which to pull in the new files.
41283         * MODULES.html.sh (Misc): Add selinux-h.
41284
41285 2009-10-08  Jim Meyering  <meyering@redhat.com>
41286
41287         unistd: fix comment typo
41288         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41289
41290 2009-10-08  Eric Blake  <ebb9@byu.net>
41291
41292         areadlink: use SIZE_MAX consistently
41293         * modules/areadlink (Depends-on): Add stdint.
41294         * modules/areadlink-with-size (Depends-on): Likewise.
41295         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41296         gives NULL; drop sys/types, since unistd gives size_t; and add
41297         stdint for SIZE_MAX.
41298         (SIZE_MAX): Rely on headers.
41299         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41300         and add stdint.
41301         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41302         (SIZE_MAX): Likewise.
41303         (INITIAL_BUF_SIZE): Turn into enum.
41304         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41305
41306 2009-10-08  Jim Meyering  <meyering@redhat.com>
41307
41308         areadlinkat: avoid compilation failure
41309         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41310         Fix typo in comment.
41311
41312 2009-10-07  Eric Blake  <ebb9@byu.net>
41313
41314         areadlinkat-with-size: new module
41315         * modules/areadlinkat-with-size: New module.
41316         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41317         * lib/areadlink.h (areadlinkat): Declare it.
41318         * MODULES.html.sh (File system functions): Mention it.
41319         * modules/areadlinkat-with-size-tests: New test.
41320         * tests/test-areadlinkat-with-size.c: New file.
41321
41322         xreadlinkat: new module
41323         * modules/xreadlinkat: New module.
41324         * lib/xreadlinkat.c (xreadlinkat): New file.
41325         * lib/xreadlink.h (xreadlinkat): Declare it.
41326         * MODULES.html.sh (File system functions): Mention it.
41327
41328         areadlinkat: new module
41329         * lib/at-func.c (FUNC_FAIL): New define.
41330         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41331         * modules/areadlinkat: New module.
41332         * lib/linkat.c (areadlinkat): Move...
41333         * lib/areadlinkat.c (areadlinkat): ...to new file.
41334         * lib/areadlink.h (areadlinkat): Declare it.
41335         * modules/linkat (Depends-on): Add areadlinkat.
41336         * MODULES.html.sh (File system functions): Mention it.
41337         * modules/areadlinkat-tests: New test.
41338         * tests/test-areadlinkat.c: New file.
41339
41340         areadlink, areadlink-with-size: add tests
41341         * modules/areadlink-tests: New test.
41342         * modules/areadlink-with-size-tests: Likewise.
41343         * tests/test-areadlink.h: New file.
41344         * tests/test-areadlink.c: Likewise.
41345         * tests/test-areadlink-with-size.c: Likewise.
41346
41347         maint: minor cleanups
41348         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41349         _UNUSED_PARAMETER_ instead.
41350         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41351         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41352         * modules/linkat-tests (Files): Distribute test-link.h.
41353
41354         openat, utimens: whitespace cleanup
41355         * lib/openat.c: Prefer space throughout, rather than mix of 8
41356         spaces vs. tabs.
41357         * lib/at-func.c: Likewise.
41358         * lib/utimens.c: Likewise.
41359
41360         openat: avoid using wrong fd
41361         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41362         working directory chooses same fd.
41363         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41364
41365         mkdir, mkdirat: fix cygwin 1.5.x bug
41366         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41367         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41368         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41369         bug.
41370         (gl_PREREQ_MKDIR): Delete unused macro.
41371         * modules/mkdir (Files): Track file rename.
41372         (configure.ac): Update macro name.
41373         * modules/openat (Depends-on): Add mkdir.
41374         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41375
41376         mkdir, mkdirat: add tests
41377         * modules/mkdir-tests: New test.
41378         * tests/test-mkdir.h: New file.
41379         * tests/test-mkdir.c: Likewise.
41380         * tests/test-mkdirat.c: Likewise.
41381         * modules/openat-tests (Files): Add new files.
41382         (Makefile.am): Run new test.
41383
41384 2009-10-06  Eric Blake  <ebb9@byu.net>
41385
41386         doc: tweak *at function documentation
41387         * doc/posix-functions/faccessat.texi (faccessat): Mention
41388         known issue with replacement.
41389         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41390         * doc/posix-functions/linkat.texi (linkat): Likewise.
41391         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41392         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41393         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41394         * doc/posix-functions/renameat.texi (renameat): Likewise.
41395         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41396
41397         openat: fix GNU/Hurd bug in unlinkat
41398         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41399         broken.
41400         * doc/posix-functions/unlink.texi (unlink): Document this.
41401         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41402
41403         fdopendir: fix GNU/Hurd bug
41404         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41405         allowing non-directory fds.
41406         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41408         * modules/dirent (Makefile.am): Substitute it.
41409         * lib/dirent.in.h (fdopendir): Declare replacement.
41410         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41411         * tests/test-fdopendir.c (main): Test something other than
41412         /dev/null, since on Hurd that behaves like a directory.
41413
41414         test-symlink: port to GNU/Hurd
41415         * tests/test-symlink.h (test_symlink): Relax expected errno.
41416
41417         doc: tweak more cygwin information
41418         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41419         now compatible with glibc.
41420         * doc/posix-functions/getopt.texi (getopt): Likewise.
41421
41422         getopt-gnu: add another test
41423         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41424         guarantee behavior relied on by m4.
41425         * tests/test-getopt.c (main): Use it.
41426         * modules/getopt-posix-tests (Depends-on): Add setenv.
41427         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41428
41429         getopt: fix compilation on darwin
41430         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41431         include.
41432         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41433         Reported by Ludovic Courtès.
41434
41435 2009-10-06  Bruno Haible  <bruno@clisp.org>
41436
41437         * modules/size_max (Description): Discourage its use.
41438         Reported by Simon Josefsson.
41439
41440 2009-10-06  Jim Meyering  <meyering@redhat.com>
41441
41442         linkat: avoid compilation failure
41443         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41444
41445 2009-10-05  Eric Blake  <ebb9@byu.net>
41446
41447         linkat: support Linux 2.6.17
41448         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41449         linkat on Linux, but allow cache variable override.
41450         * lib/linkat.c (rpl_linkat): Define override.
41451         * modules/linkat (Depends-on): Add symlinkat.
41452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41453         * modules/unistd (Makefile.am): Substitute it.
41454         * lib/unistd.in.h (linkat): Declare replacement.
41455         Reported by Pádraig Brady.
41456
41457         quotearg: port test to systems with C.UTF-8 locale
41458         * tests/test-quotearg.c (struct result_strings): Add another
41459         member, differentiating between C.ASCII and C.UTF-8 handling.
41460         (compare_strings): Add parameter.
41461         (main): Adjust all callers.
41462
41463         getopt: avoid clash with FreeBSD _getopt_internal
41464         * lib/getopt.in.h (_getopt_internal): Override the name.
41465         * lib/getopt_int.h (includes): Pick up any overrides.
41466         Reported by Reuben Thomas.
41467
41468         hash: allow C89 compilation
41469         * lib/hash.c (check_tuning): Move declaration before statement.
41470         Reported by Reuben Thomas.
41471
41472 2009-10-05  Karl Berry  <karl@gnu.org>
41473
41474         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41475
41476 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41477             Bruno Haible  <bruno@clisp.org>
41478
41479         * lib/uname.c (uname): Use a table-driven algorithm to compute
41480         Windows NT versions.
41481
41482 2009-10-04  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41485         program_invocation_short_name.
41486         * modules/progname (configure.ac): Test for presence of
41487         program_invocation_short_name.
41488         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41489
41490 2009-10-04  Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/progname.c (set_program_name): Fix comment.
41493         Reported by Jim Meyering.
41494
41495 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41496             Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/uname.c: Include <string.h>.
41499         (uname): Do only one call to GetVersionEx in the common case.
41500
41501 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41502             Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41505         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41506         (uname): Add support for Windows CE and various non-x86 CPU types.
41507
41508 2009-10-03  Bruno Haible  <bruno@clisp.org>
41509
41510         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41511         invocation to tests/configure.ac.
41512         Reported by Ian Beckwith <ianb@erislabs.net>.
41513
41514 2009-10-02  Eric Blake  <ebb9@byu.net>
41515
41516         fchdir: avoid compiler warning
41517         * lib/fchdir.c (canonicalize_file_name)
41518         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41519
41520         test-open: support mingw errno values
41521         * tests/test-open.h (test_open): Relax test.
41522         * tests/test-fopen.h (test_fopen): Likewise.
41523         * tests/test-openat-safer.c (main): Likewise.
41524
41525         open: fix opening directory on mingw
41526         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41527
41528         test-open: on GNU/Hurd, /dev/null is a directory
41529         * tests/test-fopen.h (main): Rename...
41530         (test_fopen): ...to this.  Use a guaranteed non-directory when
41531         confirming open behavior on trailing slash.
41532         * tests/test-openat-safer.c (main): Likewise.
41533         * tests/test-open.h (main): Likewise....
41534         (test_open): ...to this.
41535         * tests/test-fopen.c (main): Adjust caller.
41536         * tests/test-fopen-safer.c (main): Likewise.
41537         * tests/test-open.c (main): Likewise.
41538         * tests/test-fcntl-safer.c (main): Likewise.
41539         Reported by Samuel Thibault.
41540
41541         rename, fchdir: don't ignore chdir failure
41542         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41543         * lib/rename.c (rpl_rename) [W32]: Likewise.
41544         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41545         an empty destination directory if source cannot be renamed,
41546         although there is still possibility for failure.
41547         * doc/posix-functions/rename.texi (rename): Document the race.
41548         Reported by Jim Meyering.
41549
41550         maint: cleanup whitespace in recent commits
41551         * lib/rename.c (rpl_rename): Remove tabs.
41552         * tests/test-link.h (test_link): Likewise.
41553         * lib/fchdir.c (get_name): Likewise.
41554         Reported by Jim Meyering.
41555
41556 2009-10-02  Ben Pfaff  <blp@gnu.org>
41557
41558         relocatable-prog-wrapper: Add missing dependency on
41559         double-slash-root.
41560         * modules/relocatable-prog-wrapper: Add dependency.
41561         Reported by Ian Beckwith <ianb@erislabs.net>.
41562
41563 2009-10-02  Eric Blake  <ebb9@byu.net>
41564
41565         renameat: fix Solaris bugs
41566         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41567         needed fixing.
41568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41569         * modules/stdio (Makefile.am): Substitute it.
41570         * lib/stdio.in.h (renameat): Declare replacement.
41571         * lib/renameat.c (rpl_renameat): Implement fix.
41572
41573         renameat: new module
41574         * modules/renameat: New file.
41575         * lib/renameat.c (renameat): Likewise.
41576         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41578         * modules/stdio (Makefile.am): Substitute them.
41579         * lib/stdio.in.h (renameat): Declare it.
41580         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41581         * doc/posix-functions/renameat.texi (renameat): Likewise.
41582         * modules/renameat-tests: New test.
41583         * tests/test-renameat.c: Likewise.
41584
41585         rename: fix mingw bugs
41586         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41587         directory overwrite bugs.
41588
41589         rename: fix another cygwin 1.5 bug
41590         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41591         checks.
41592         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41593         unnecessary cygwin workarounds.  Also work around bug with moving
41594         full directory onto an empty one.
41595         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41596
41597         rename-dest-slash: merge into rename module
41598         * modules/rename-dest-slash (Status): Mark obsolete.
41599         (Depends-on): Add rename.
41600         (Files): Let rename do it all.
41601         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41602         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41603         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41604         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41605         * lib/rename.c (rpl_rename): Update comments.
41606
41607         rename: fix cygwin 1.5.x bugs
41608         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41609         * lib/rename.c (rpl_rename): Work around them.
41610         * modules/rename (Depends-on): Add same-inode.
41611
41612         rename: fix Solaris 10 bug
41613         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41614         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41615         was the only bug.
41616
41617         rename: fix Solaris 9 bug
41618         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41619         on non-directory.  Avoid calling exit.
41620         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41621         strdup.
41622         * modules/rename-tests (Depends-on): Drop lstat.
41623         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41624         (gl_PREREQ_RENAME): Delete unused macro.
41625
41626         rename-dest-slash: fix NetBSD bug
41627         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41628         links.
41629         * modules/rename-dest-slash (Depends-on): Add same-inode.
41630
41631         rename-tests: new test, exposes several platform bugs
41632         * modules/rename-tests: New file.
41633         * tests/test-rename.h: Likewise.
41634         * tests/test-rename.c: Likewise.
41635         * doc/posix-functions/rename.texi (rename): Improve documentation,
41636         including bugs that will eventually be fixed in gnulib.
41637
41638 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41639
41640         * lib/uname.c: Include <stdlib.h>
41641         (uname): Assume version info is available.
41642
41643 2009-10-02  Jim Meyering  <meyering@redhat.com>
41644
41645         gnu-web-doc-update: correct --help output
41646         * build-aux/gnu-web-doc-update: Make --help output relevant.
41647
41648         gnu-web-doc-update: add standard options
41649         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41650
41651         gnu-web-doc-update: New module.
41652         Use this script to automatically update the on-line web documentation
41653         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41654         * modules/gnu-web-doc-update: New file, from coreutils.
41655         * build-aux/gnu-web-doc-update: New script.
41656
41657 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41658
41659         link: LoadLibrary is not needed.
41660         * lib/link.c: Use GetModuleHandle.
41661
41662 2009-10-01  Eric Blake  <ebb9@byu.net>
41663
41664         getopt: bump serial number
41665         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41666         change.
41667
41668         tests: tighten link, rmdir, and remove tests
41669         * tests/test-link.h (includes): No need to use <config.h> here.
41670         Clean up if directory hard link was created, otherwise test for
41671         trailing '.'.
41672         * tests/test-linkat.c (main): Simplify.
41673         * tests/test-remove.c (main): Enhance test for trailing '.'.
41674         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41675
41676 2009-10-01  Jim Meyering  <meyering@redhat.com>
41677
41678         maint.mk: requiring "make major" was annoying, for a "minor" release.
41679         What is intended is "stable", to contrast with alpha and beta,
41680         so require "make stable", not "make major".
41681         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41682         (get_tool_versions): Likewise.
41683         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41684
41685 2009-09-30  Ben Pfaff  <blp@gnu.org>
41686
41687         Fix broken build of replacement for Windows tmpfile().
41688         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41689         flags argument added along with the 'mkostemp' module.
41690
41691 2009-09-28  Bruno Haible  <bruno@clisp.org>
41692
41693         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41694         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41695         to 'remove_elt'.
41696         (gl_list_remove): Update.
41697         * lib/gl_list.c (gl_list_remove): Update.
41698         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41699         to 'remove_elt'.
41700         (gl_oset_remove): Update.
41701         * lib/gl_list.c (gl_oset_remove): Update.
41702         Reported by Eric Blake.
41703
41704 2009-09-28  Eric Blake  <ebb9@byu.net>
41705
41706         doc: mention yet more cygwin 1.7 status
41707         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41708         cygwin.
41709         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41710         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41711
41712         argp: fix test failure
41713         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41714         that are not upper-case.  Pass correct range to tolower.
41715
41716 2009-09-27  Jim Meyering  <meyering@redhat.com>
41717
41718         test-yesno: work around sparc-dash here-document infelicity
41719         Without this change, the literal \177 byte in a here document
41720         would make dash 0.5.5.1-3 access uninitialized memory.
41721         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41722         Instead, use a marker, "@", and filter through tr to create the desired
41723         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41724
41725 2009-09-27  Bruno Haible  <bruno@clisp.org>
41726
41727         Disable untested support for new flavours of ACLs on AIX.
41728         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41729         progress.
41730         * lib/set-mode-acl.c (qset_acl): Likewise.
41731
41732 2008-12-07  Bruno Haible  <bruno@clisp.org>
41733
41734         Add support for new flavours of ACLs on AIX. (Untested.)
41735         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41736         (file_has_acl): Add support for newer AIX.
41737         * lib/set-mode-acl.c (qset_acl): Likewise.
41738         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41739         Rainer Tammer <tammer@tammer.net>.
41740
41741 2009-09-26  Eric Blake  <ebb9@byu.net>
41742
41743         argp: fix compilation of getopt
41744         * lib/getopt.in.h (includes): Use different guard than glibc.
41745         Reported by Sergey Poznyakoff.
41746
41747         doc: mention more cygwin 1.7 status
41748         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41749         bug.
41750         * doc/posix-functions/execl.texi (execl): Likewise.
41751         * doc/posix-functions/execle.texi (execle): Likewise.
41752         * doc/posix-functions/execlp.texi (execlp): Likewise.
41753         * doc/posix-functions/execv.texi (execv): Likewise.
41754         * doc/posix-functions/execve.texi (execve): Likewise.
41755         * doc/posix-functions/execvp.texi (execvp): Likewise.
41756         * doc/glibc-functions/canonicalize_file_name.texi
41757         (canonicalize_file_name): Cygwin 1.7 now provides this.
41758         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41759         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41760         on AT_SYMLINK_NOFOLLOW.
41761
41762 2009-09-24  Eric Blake  <ebb9@byu.net>
41763
41764         test-linkat: make test more robust
41765         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41766
41767         getopt: fix inclusion guards for cygwin
41768         * modules/getopt-posix (Depends-on): Add include-next.
41769         (Makefile.am): Substitute more items in replacement header.
41770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41771         <getopt.h>.
41772         * lib/getopt.in.h (includes): Use split inclusion guard, and
41773         prefer <getopt.h> over include <unistd.h> when one is present.
41774         (option): Also override name of 'struct option'.
41775
41776         same-inode: revert prior change; it is not yet ready
41777         * NEWS: Undo mention of this change.
41778         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41779         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41780         * lib/cycle-check.c (cycle_check): Likewise.
41781         * lib/same.c (same_name): Likewise.
41782         * lib/at-func2.c (at_func2): Likewise.
41783
41784 2009-09-23  Eric Blake  <ebb9@byu.net>
41785
41786         linkat: new module
41787         * modules/linkat: New file.
41788         * lib/at-func2.c (at_func2): Likewise.
41789         * lib/linkat.c (linkat): Likewise.
41790         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41791         * lib/openat-priv.h (at_func2): Add declaration.
41792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41793         * modules/unistd (Makefile.am): Substitute them.
41794         * lib/unistd.in.h (linkat): Declare it.
41795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41796         * doc/posix-functions/linkat.texi (linkat): Likewise.
41797         * doc/posix-functions/link.texi (link): Tweak wording.
41798         * tests/test-link.c (main): Move guts...
41799         * tests/test-link.h (test_link): ...into new file.
41800         * modules/linkat-tests: New test.
41801         * tests/test-linkat.c: Likewise.
41802         * modules/link-tests (Files): Ship new file.
41803         (Depends-on): Add stdbool.
41804
41805         dirname: add library-safe mdir_name
41806         * lib/dirname.h (mdir_name): New prototype.
41807         * lib/dirname.c (dir_name): Move guts...
41808         (mdir_name): ...to new function that avoids xalloc_die.
41809
41810         fchdir: another mingw fix
41811         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41812         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41813         on mingw (where it has not yet been ported), and make it optional
41814         elsewhere.
41815         (_gl_register_fd): Use it.
41816
41817         same-inode: make SAME_INODE tri-state, to port to mingw
41818         * NEWS: Mention this change.
41819         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41820         st_ino always being 0.
41821         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41822         * lib/cycle-check.c (cycle_check): Likewise.
41823         * lib/same.c (same_name): Likewise.
41824
41825         lstat: avoid mingw compilation error
41826         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41827         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41828         lstat ourselves.
41829         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41830         was adequate.
41831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41832         the checks for lstat.
41833         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41834
41835         link: fix test failure on Solaris 9
41836         * lib/link.c (rpl_link): Don't assume link will catch bogus
41837         trailing slash on source.
41838
41839         test-symlinkat: enhance test
41840         * tests/test-readlink.c (main): Move guts...
41841         * tests/test-readlink.h (test_readlink): ...into new file.
41842         * tests/test-symlink.c (main): Move guts...
41843         * tests/test-symlink.h (test_symlink): ...into new file.
41844         * tests/test-symlinkat.c (main): Use new files for further
41845         coverage.
41846         (do_symlink, do_readlink): New helper functions.
41847         * modules/symlink-tests (Files): Ship new file.
41848         (Depends-on): Add stdbool.
41849         * modules/readlink-tests (Files): Ship new file.
41850         (Depends-on): Add stdbool.
41851         * modules/symlinkat-tests (Files): Use new files.
41852
41853 2009-09-23  Eric Blake  <ebb9@byu.net>
41854
41855         readlink: document portability issue with symlink length
41856         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41857         systems have bogus st_size on symlinks, and mention the
41858         areadlink-with-size module.
41859         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41860         * doc/posix-functions/readlink.texi (readlink): Mention the
41861         areadlink module, and ERANGE failure.
41862         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41863         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41864
41865         readlink: fix Solaris 9 bug with trailing slash
41866         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41867         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41868         * doc/posix-functions/readlink.texi (readlink): Document this.
41869         * modules/readlink-tests: New test.
41870         * tests/test-readlink.c: Likewise.
41871
41872         readlink: fix cygwin 1.5.x bug with return type
41873         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41874         * lib/unistd.in.h (readlink): Use ssize_t.
41875         * lib/readlink.c (readlink): Likewise.
41876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41877         * modules/unistd (Makefile.am): Substitute it.
41878         * lib/unistd.in.h (readlink): Declare replacement.
41879         * doc/posix-functions/readlink.texi (readlink): Document this.
41880
41881         symlink: use throughout gnulib
41882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41883         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41884         symlink is not used.
41885         * modules/symlinkat (Depends-on): Add symlink.
41886         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41887         * modules/canonicalize-tests (Depends-on): Likewise.
41888         * modules/lstat-tests (Depends-on): Likewise.
41889         * modules/openat-tests (Depends-on): Likewise.
41890         * modules/remove-tests (Depends-on): Likewise.
41891         * modules/rmdir-tests (Depends-on): Likewise.
41892         * modules/unlink-tests (Depends-on): Likewise.
41893         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41894         * tests/test-canonicalize.c (symlink): Likewise.
41895         * tests/test-fstatat.c (symlink): Likewise.
41896         * tests/test-lstat.c (symlink): Likewise.
41897         * tests/test-remove.c (symlink): Likewise.
41898         * tests/test-rmdir.c (symlink): Likewise.
41899         * tests/test-unlink.c (symlink): Likewise.
41900         * tests/test-unlinkat.c (symlink): Likewise.
41901
41902         symlink: new module, for Solaris 9 bug
41903         * modules/symlink: New file.
41904         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41905         * lib/symlink.c: Likewise.
41906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41907         * modules/unistd (Makefile.am): Substitute them.
41908         * lib/unistd.in.h (symlink): Declare replacement.
41909         * MODULES.html.sh (File system functions): Mention it.
41910         * doc/posix-functions/symlink.texi (symlink): Likewise.
41911         * modules/symlink-tests: New test.
41912         * tests/test-symlink.c: Likewise.
41913
41914 2009-09-23  Bruno Haible  <bruno@clisp.org>
41915
41916         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41917         when needed.
41918         Test case: gnulib-tool --import --with-tests atexit inttypes.
41919         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41920
41921 2009-09-23  Bruno Haible  <bruno@clisp.org>
41922
41923         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41924         subcommand, not in a subshell.
41925
41926 2009-09-22  Eric Blake  <ebb9@byu.net>
41927
41928         unistd: sort replacement declarations
41929         * lib/unistd.in.h: Sort declarations.
41930
41931         open, openat: minor optimization
41932         * lib/open.c (open): If open succeeded, len is non-zero.
41933         * lib/openat.c (rpl_openat): Likewise.
41934
41935         link-follow: ensure correct result
41936         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41937         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41938         distinguish between possible failures.
41939
41940 2009-09-21  Eric Blake  <ebb9@byu.net>
41941
41942         fts: avoid compiler warning
41943         * lib/fts.c (dirent_inode_sort_may_be_useful)
41944         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41945
41946 2009-09-19  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/progreloc.c (canonicalize_file_name): New declaration.
41949
41950 2009-09-19  Eric Blake  <ebb9@byu.net>
41951
41952         link: fix quoting
41953         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41954
41955         openat: fix openat bugs on Solaris 9
41956         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41957         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41958         * modules/openat (Depends-on): Add open.
41959         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41960         * modules/fcntl-h (Makefile.am): Substitute it.
41961         * lib/fcntl.in.h (openat): Declare replacement.
41962         * doc/posix-functions/openat.texi (openat): Document this.
41963
41964         openat: move fstatat and unlinkat into correct files
41965         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41966         compiled.
41967         * lib/openat.c (fstatat, unlinkat): Move...
41968         * lib/fstatat.c (fstatat): ...into correct files.
41969         * lib/unlinkat.c (unlinkat): Likewise.
41970
41971         openat: fix unlinkat bugs on Solaris 9
41972         * lib/unlinkat.c (unlinkat): New file.
41973         * modules/openat (Depends-on): Add unlink.
41974         (Files): Distribute it.
41975         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41976         trailing slash behavior is broken.
41977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41978         * modules/unistd (Makefile.am): Substitute it.
41979         * lib/unistd.in.h (unlinkat): Declare replacement.
41980         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41981
41982         openat: fix fstatat bugs on Solaris 9
41983         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41984         stat.
41985         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41986
41987         test-unlinkat: enhance test, to expose Solaris 9 bug
41988         * tests/test-unlink.c (main): Factor guts...
41989         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41990         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41991         * tests/test-rmdir.c (main): Adjust caller.
41992         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41993         (unlinker): New helper function.
41994         (rmdirat): Enhance check.
41995         * modules/rmdir-tests (Depends-on): Add stdbool.
41996         * modules/unlink-tests (Depends-on): Likewise.
41997         (Files): Add test-unlink.h.
41998         * modules/openat-tests (Files): Likewise.
41999         (Depends-on): Add unlinkdir.
42000
42001         test-fstatat: new test, to expose Solaris 9 bugs
42002         * tests/test-stat.c (main): Factor guts...
42003         * tests/test-stat.h (test_stat_func): ...into new file.
42004         * tests/test-lstat.c (main): Factor guts...
42005         * tests/test-lstat.h (test_lstat_func): ...into new file.
42006         * tests/test-fstatat.c: New file.
42007         * modules/stat-tests (Files): Add test-stat.h.
42008         * modules/lstat-tests (Files): Add test-lstat.h.
42009         (Depends-on): Add stdbool.
42010         * modules/openat-tests (Depends-on): Add pathmax.
42011         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42012         (Makefile.am): Run new test.
42013
42014         remove: new module, for mingw and Solaris 9 bugs
42015         * modules/remove: New file.
42016         * lib/remove.c: Likewise.
42017         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42019         * modules/stdio (Makefile.am): Use them.
42020         * lib/stdio.in.h (remove): Declare replacement.
42021         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42022         * doc/posix-functions/remove.texi (remove): Likewise.
42023         * modules/remove-tests: New test.
42024         * tests/test-remove.c: Likewise.
42025
42026         unlink: new module, for Solaris 9 bug
42027         * modules/unlink: New file.
42028         * lib/unlink.c: Likewise.
42029         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42031         * modules/unistd (Makefile.am): Use them.
42032         * lib/unistd.in.h (stat): Declare replacement.
42033         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42034         * doc/posix-functions/unlink.texi (unlink): Likewise.
42035         * modules/unlink-tests: New test.
42036         * tests/test-unlink.c: Likewise.
42037
42038         lstat: fix Solaris 9 bug
42039         * lib/lstat.c (lstat): Also check for trailing slash on
42040         non-symlink, non-directories.  Use stat module to simplify logic.
42041         * doc/posix-functions/lstat.texi (lstat): Document it.
42042         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42043         (configure.ac): Check for symlink.
42044         * tests/test-lstat.c (main): Add more tests.
42045
42046         stat: add as dependency to other modules
42047         * modules/chown (Depends-on): Add stat.
42048         * modules/euidaccess (Depends-on): Likewise.
42049         * modules/fchdir (Depends-on): Likewise.
42050         * modules/isdir (Depends-on): Likewise.
42051         * modules/link (Depends-on): Likewise.
42052         * modules/lstat (Depends-on): Likewise.
42053         * modules/mkdir-p (Depends-on): Likewise.
42054         * modules/modechange (Depends-on): Likewise.
42055         * modules/open (Depends-on): Likewise.
42056         * modules/readlink (Depends-on): Likewise.
42057         * modules/same (Depends-on): Likewise.
42058
42059         stat: fix Solaris 9 bug
42060         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42061         slash.
42062         * lib/stat.c (rpl_stat): Work around it.
42063         * doc/posix-functions/stat.texi (stat): Update documentation.
42064
42065         stat: new module, for mingw bug
42066         * modules/stat: New file.
42067         * lib/stat.c: Likewise.
42068         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42070         * modules/sys_stat (Makefile.am): Use them.
42071         * lib/sys_stat.in.h (stat): Declare replacement.
42072         * lib/openat.c (fstatat): Deal with lstat and stat being function
42073         macros.
42074         * modules/openat (Depends-on): Add inline.
42075         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42076         * doc/posix-functions/stat.texi (stat): Likewise.
42077         * modules/stat-tests: New test.
42078         * tests/test-stat.c: Likewise.
42079
42080 2009-09-19  Jim Meyering  <meyering@redhat.com>
42081
42082         syntax-check: detect unnecessary inclusion of canonicalize.h
42083         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42084
42085 2009-09-19  Eric Blake  <ebb9@byu.net>
42086
42087         canonicalize-lgpl: adjust clients to use correct header
42088         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42089         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42090         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42091         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42092         * lib/progreloc.c (includes): Likewise.
42093
42094 2009-09-19  Jim Meyering  <meyering@redhat.com>
42095
42096         test-posixtm.c: correct a comment
42097         * tests/test-posixtm.c: Correct first-line comment.
42098         Spotted by Eric Blake.
42099
42100 2009-09-16  Jim Meyering  <meyering@redhat.com>
42101
42102         posixtm-tests: make T const-correct; add a test case
42103         * tests/test-posixtm.c (T): Declare const.
42104         Add a test for -(2^31+1).
42105         Remove useless can-succeed-only-in-2002 test.
42106
42107         posixtm-tests: adjust the sole failing test
42108         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42109         expected output matches what mktime now produces.  Cross-checked via
42110         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42111
42112         posixtm: move #ifdef'd tests into a new module
42113         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42114         * tests/test-posixtm.c: ... this new file.
42115         * modules/posixtm-tests: New module.
42116
42117 2009-09-19  Eric Blake  <ebb9@byu.net>
42118
42119         openat: simplify use of at-func.c
42120         * lib/at-func.c (includes): Include prerequisites here, to
42121         simplify requirements on client files.
42122         * lib/openat-priv.h: Add double-inclusion guard.
42123         * lib/faccessat.c (includes): Simplify.
42124         * lib/fchmodat.c (includes): Likewise.
42125         * lib/fchownat.c (includes): Likewise.
42126         * lib/mkdirat.c (includes): Likewise.
42127         * lib/mkfifoat.c (includes): Likewise.
42128         * lib/symlinkat.c (includes): Likewise.
42129
42130         openat: allow return of fd 0
42131         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42132         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42133         unistd-safer.
42134         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42135         <fcntl.h>; this module does not leak fds.
42136         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42137         must be allowed to return 0, leaving openat_safer to add the
42138         safety.
42139         (openat_permissive): Avoid writing to just-opened fd 2 if
42140         restoring the current directory fails.
42141         * lib/openat-die.c (openat_restore_fail): Add comment.
42142         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42143         (save_cwd): Guarantee safe fd, but without use of open_safer.
42144         * tests/test-openat.c: New test.
42145         * modules/openat-tests (Files, Makefile.am): Distribute and build
42146         new file.
42147
42148         relocatable-prog-wrapper: fix build
42149         * modules/relocatable-prog-wrapper (Files): Update name of
42150         canonicalize m4 file, broken on 2009-09-17.
42151         Reported by emad hajjar <aleppos@hotmail.com>.
42152
42153 2009-09-19  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42156         * lib/safe-alloc.c: Likewise.
42157         Reported by Ian Beckwith <ianb@erislabs.net>.
42158
42159 2009-09-18  Bruno Haible  <bruno@clisp.org>
42160
42161         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42162         Reported by <erobles@sensacd.com.mx>.
42163
42164 2009-09-17  Eric Blake  <ebb9@byu.net>
42165
42166         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42167         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42168         slashes when checking if last component is missing.
42169         * tests/test-canonicalize.c (main): Test this.
42170
42171         canonicalize, canonicalize-lgpl: honor // if distinct from /
42172         * modules/canonicalize (Files): Add double-slash-root.m4.
42173         * modules/canonicalize-lgpl (Files): Likewise.
42174         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42175         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42176         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42177         fallback definition.
42178         (canonicalize_filename_mode): Use it to protect //.
42179         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42180         (__realpath): Likewise.
42181         * tests/test-canonicalize.c (main): Test this.
42182         * tests/test-canonicalize-lgpl.c (main): Likewise.
42183         * modules/canonicalize-tests (Depends-on): Add same-inode.
42184         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42185
42186         canonicalize-lgpl: fix glibc bug with trailing slash
42187         * m4/canonicalize-lgpl.m4: Move contents...
42188         * m4/canonicalize.m4: ...here.
42189         (gl_CANONICALIZE_LGPL): Factor realpath check...
42190         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42191         glibc 2.3.5 bug, fixed 2005-04-27.
42192         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42193         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42194         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42195         * modules/canonicalize-lgpl (Files): Manage file rename.
42196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42197         * modules/stdlib (Makefile.am): Substitute witness.
42198         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42199         is needed.
42200         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42201         replacement is required.
42202         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42203         * doc/glibc-functions/canonicalize_file_name.texi
42204         (canonicalize_file_name): Document this.
42205         * doc/posix-functions/realpath.texi (realpath): Likewise.
42206
42207         canonicalize-lgpl: reject non-directory with trailing slash
42208         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42209         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42210         catches failures in glibc 2.3.5.
42211         * tests/test-canonicalize.c (main): Likewise.
42212
42213         canonicalize-lgpl: use native realpath if it works
42214         * lib/canonicalize-lgpl.c (realpath): Guard with
42215         FUNC_REALPATH_WORKS.
42216         * lib/stdlib.in.h (realpath): Make declaration optional based on
42217         HAVE_REALPATH.
42218         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42219         native realpath works.
42220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42221         * modules/stdlib (Makefile.am): Substitute witness.
42222
42223         canonicalize, canonicalize-lgpl: use <stdlib.h>
42224         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42225         (Include): Mention <stdlib.h>.
42226         (configure.ac): Mention functions we provide.
42227         * modules/canonicalize (configure.ac): Likewise.
42228         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42229         realpath if canonicalize_file_name is missing.
42230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42231         * modules/stdlib (Makefile.am): Substitute witnesses.
42232         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42233         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42234         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42235         * NEWS: Document this.
42236         * doc/glibc-functions/canonicalize_file_name.texi
42237         (canonicalize_file_name): Likewise.
42238         * doc/posix-functions/realpath.texi (realpath): Likewise.
42239         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42240
42241         test-canonicalize: consolidate into single C program
42242         * tests/test-canonicalize.sh: Delete; move setup into...
42243         * tests/test-canonicalize.c (main): ...the program, making it
42244         easier to run in debugger.  Add some tests.
42245         * modules/canonicalize-tests (Files): Remove unused file.
42246         (Depends-on): Add progname.
42247         (configure.ac, Makefile.am): Simplify.
42248
42249         test-canonicalize-lgpl: consolidate into single C program
42250         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42251         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42252         easier to run in debugger.  Add some tests.
42253         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42254         (configure.ac, Makefile.am): Simplify.
42255
42256         canonicalize: avoid resolvepath
42257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42258         unnecessary checks.
42259         * lib/canonicalize.c (includes): Simplify.
42260         (canonicalize_file_name): Drop resolvepath implementation.
42261         * modules/canonicalize (Depends-on): Drop filenamecat.
42262
42263         canonicalize: don't lose errno
42264         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42265         over calls to free.
42266
42267         canonicalize: simplify errno handling
42268         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42269         assignment.
42270
42271         canonicalize, canonicalize-lgpl: update module dependencies
42272         * modules/canonicalize (Depends-on): Add extensions, lstat,
42273         pathmax, stdlib.
42274         (Files): Drop pathmax.h.
42275         (configure.ac): Adjust macro name.
42276         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42277         lstat, stdlib, sys_stat.
42278         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42279         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42280         extensions.
42281         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42282         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42283         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42284         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42285         declaration, if available.
42286         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42287         we can rely on the readlink module.
42288         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42289         (includes): Use <unistd.h> unconditionally.
42290
42291 2009-09-17  Eric Blake  <ebb9@byu.net>
42292
42293         maint: make Include sections of modules consistent
42294         * modules/alloca: Use only header name; no need to list #include.
42295         * modules/alloca-opt: Likewise.
42296         * modules/arpa_inet: Likewise.
42297         * modules/canon-host: Likewise.
42298         * modules/configmake: Likewise.
42299         * modules/dirent: Likewise.
42300         * modules/eealloc: Likewise.
42301         * modules/environ: Likewise.
42302         * modules/fchdir: Likewise.
42303         * modules/fcntl: Likewise.
42304         * modules/fcntl-h: Likewise.
42305         * modules/gethrxtime: Likewise.
42306         * modules/gettime: Likewise.
42307         * modules/ignore-value: Likewise.
42308         * modules/inet_ntop: Likewise.
42309         * modules/inet_pton: Likewise.
42310         * modules/inttypes: Likewise.
42311         * modules/isnand-nolibm: Likewise.
42312         * modules/isnanf-nolibm: Likewise.
42313         * modules/mbchar: Likewise.
42314         * modules/mbfile: Likewise.
42315         * modules/mbiter: Likewise.
42316         * modules/mbuiter: Likewise.
42317         * modules/netdb: Likewise.
42318         * modules/netinet_in: Likewise.
42319         * modules/nproc: Likewise.
42320         * modules/pagealign_alloc: Likewise.
42321         * modules/poll: Likewise.
42322         * modules/printf-frexp: Likewise.
42323         * modules/pthread: Likewise.
42324         * modules/putenv: Likewise.
42325         * modules/random_r: Likewise.
42326         * modules/relocatable-prog: Likewise.
42327         * modules/search: Likewise.
42328         * modules/select: Likewise.
42329         * modules/selinux-h: Likewise.
42330         * modules/settime: Likewise.
42331         * modules/signal: Likewise.
42332         * modules/size_max: Likewise.
42333         * modules/socklen: Likewise.
42334         * modules/ssize_t: Likewise.
42335         * modules/stdarg: Likewise.
42336         * modules/stdbool: Likewise.
42337         * modules/stddef: Likewise.
42338         * modules/stdint: Likewise.
42339         * modules/stdio: Likewise.
42340         * modules/stdlib: Likewise.
42341         * modules/string: Likewise.
42342         * modules/strings: Likewise.
42343         * modules/sys_file: Likewise.
42344         * modules/sys_ioctl: Likewise.
42345         * modules/sys_select: Likewise.
42346         * modules/sys_socket: Likewise.
42347         * modules/sys_stat: Likewise.
42348         * modules/sys_time: Likewise.
42349         * modules/sys_times: Likewise.
42350         * modules/sys_utsname: Likewise.
42351         * modules/sys_wait: Likewise.
42352         * modules/sysexits: Likewise.
42353         * modules/time: Likewise.
42354         * modules/times: Likewise.
42355         * modules/tmpfile: Likewise.
42356         * modules/trim: Likewise.
42357         * modules/unistd: Likewise.
42358         * modules/wchar: Likewise.
42359         * modules/wctype: Likewise.
42360
42361 2009-09-17  Bruno Haible  <bruno@clisp.org>
42362
42363         Make getdate.y compile on QNX and NetBSD 5 / i386.
42364         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42365         TIME_T_FITS_IN_LONG_INT.
42366         * lib/getdate.y (long_time_t): New type.
42367         (relative_time): Change type of 'seconds' field to long_time_t.
42368         (get_date): Update types of local variables. Check against overflow
42369         during conversion from long_time_t to time_t.
42370         Reported by Matt Kraai <kraai@ftbfs.org>
42371         and Hasso Tepper <hasso@netbsd.org>.
42372
42373 2009-09-17  Bruno Haible  <bruno@clisp.org>
42374
42375         * modules/COPYING: Update copyright years.
42376         * modules/README: Likeiwse.
42377         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42378         Reported by Ian Beckwith <ianb@erislabs.net>.
42379
42380 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42381
42382         * users.txt: Update references for gnuit package.
42383
42384 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42385
42386         * m4/getdelim.m4: Fix typo in copyright line.
42387
42388 2009-09-17  Bruno Haible  <bruno@clisp.org>
42389
42390         * lib/atoll.c: Use the standard header with GPL copyright.
42391         * lib/argz.in.h: Likewise.
42392         * lib/glob.c: Likewise.
42393         * lib/glob-libc.h: Likewise.
42394         * lib/random_r.c: Likewise.
42395         * lib/siglist.h: Likewise.
42396         * lib/strsignal.c: Likewise.
42397         Reported by Ian Beckwith <ianb@erislabs.net>.
42398
42399 2009-09-17  Eric Blake  <ebb9@byu.net>
42400
42401         rmdir: ensure correct dependency order
42402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42403
42404 2009-09-17  Bruno Haible  <bruno@clisp.org>
42405
42406         Disable assertion that fails on NetBSD 5 / i386.
42407         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42408         Reported by Sam Steingold <sds@gnu.org>
42409         and Hasso Tepper <hasso@netbsd.org>.
42410
42411 2009-09-16  Eric Blake  <ebb9@byu.net>
42412
42413         unlinkdir: port to mingw
42414         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42415         on which no one can unlink a directory.
42416
42417         stdlib: sort witness names
42418         * modules/stdlib (Makefile.am): Sort replacements.
42419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42420         * lib/stdlib.in.h: Likewise.
42421
42422         parse-duration-tests: avoid link failure
42423         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42424         LIBINTL.
42425         Reported by Tom G. Christensen.
42426
42427         openat-tests: ensure unlinkat behaves like rmdir
42428         * tests/test-rmdir.c (main): Factor guts...
42429         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42430         * modules/rmdir-tests (Files): Ship new file.
42431         * modules/openat-tests: New test.
42432         * tests/test-unlinkat.c: Likewise.
42433
42434         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42435         * modules/rmdir-errno (Status, Notice): Now obsolete.
42436
42437         rmdir: work around cygwin 1.5.x and mingw bugs
42438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42439         * lib/rmdir.c (rmdir): Work around it.
42440         * modules/rmdir (Status, Notice): No longer obsolete.
42441         (Files): Add dos.m4.
42442         (Depends-on): Add unistd.
42443         (configure.ac): Set witnesses.
42444         (License): Relax to LGPLv2+.
42445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42446         * modules/unistd (Makefile.am): Substitute witnesses.
42447         * lib/unistd.in.h (rmdir): Declare replacement.
42448         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42449         * modules/rmdir-tests: New tests.
42450         * tests/test-rmdir.c: Likewise.
42451
42452 2009-09-15  Eric Blake  <ebb9@byu.net>
42453
42454         fchdir: improve use of replacement functions
42455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42456         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42457         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42458         REPLACE_CLOSEDIR.
42459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42460         * modules/sys_stat (Makefile.am): Substitute correct witness.
42461         * modules/dirent (Makefile.am): Likewise.
42462         * modules/unistd (Makefile.am): Likewise.
42463         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42464         * lib/unistd.in.h (dup): Likewise.
42465         * lib/sys_stat.in.h (fstat): Likewise.
42466
42467         maint: ignore gnulib-tool temp files
42468         * .gitignore: Ignore files created during gnulib-tool --test.
42469
42470 2009-09-13  Jim Meyering  <meyering@redhat.com>
42471
42472         posixtm: don't reject a time that specify "60" as the number of seconds
42473         * lib/posixtm.c (posixtime): The code to reject invalid dates
42474         would also reject a time specified with the .60 suffix.
42475         But POSIX allows that, in order to accommodate leap seconds.
42476         So don't reject it.
42477         (main): Adjust tests accordingly.
42478         * modules/posixtm (Depends-on): Add stpcpy.
42479
42480 2009-09-11  Jim Meyering  <meyering@redhat.com>
42481
42482         announce-gen: include [$release_type] in emitted Subject:
42483         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42484         e.g., [stable] in the emitted Subject: line.
42485
42486 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42487
42488         Remove obsolete macros from several modules.
42489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42490         obsolete Autoconf macros with their modern counterparts.
42491         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42492         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42494         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42495         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42498         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42499         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42500         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42501         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42502         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42503         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42504         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42505         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42506         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42507         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42508         * m4/time_r.m4 (gl_TIME_R): Likewise.
42509         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42510         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42511         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42512
42513         Fix copyright header in build-aux scripts.
42514         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42515         recommendation.
42516         * build-aux/ncftpput-ftp: Likewise.
42517         * build-aux/update-copyright: Likewise.
42518
42519 2009-09-09  Eric Blake  <ebb9@byu.net>
42520
42521         test-link: allow Linux choice of errno
42522         * tests/test-link.c (main): Relax test for alternate error.
42523
42524         strndup: fix improper m4 caching
42525         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42526         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42527         (gl_PREREQ_STRNDUP): Delete.
42528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42529         * modules/string (Makefile.am): Substitute it.
42530         * lib/string.in.h (strndup): Modernize prototype.
42531
42532         getcwd: port to mingw
42533         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42534         different from the POSIX assumptions made throughout the getcwd
42535         module; fortunately, the mingw getcwd does not need replacement.
42536         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42537         * modules/getcwd-tests: New test.
42538         * tests/test-getcwd.c: Likewise.
42539
42540         link: fix platform bugs
42541         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42542         * lib/link.c (link): Work around them.  Fix related mingw bug.
42543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42544         * modules/unistd (Makefile.am): Substitute it.
42545         * lib/unistd.in.h (link): Declare replacement.
42546         * doc/posix-functions/link.texi (link): Document this.
42547         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42548
42549         test-link: consolidate into single C program, test more cases
42550         * tests/test-link.sh: Delete.
42551         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42552         at least Cygwin and Solaris.
42553         * modules/link-tests (Files): Remove unused file.
42554         (Depends-on): Add errno, sys_stat.
42555         (Makefile.am): Simplify.
42556
42557 2009-09-08  Bruno Haible  <bruno@clisp.org>
42558
42559         Work around towlower, towupper bug on mingw.
42560         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42561         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42562         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42563         * doc/posix-functions/towupper.texi: Likewise.
42564         Reported by Eric Blake.
42565
42566 2009-09-08  Jim Meyering  <meyering@redhat.com>
42567
42568         build: don't try to run autoheader if we don't use it
42569         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42570         is not used in configure.ac.
42571
42572 2009-09-08  Eric Blake  <ebb9@byu.net>
42573
42574         euidaccess: fix compilation error
42575         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42576
42577         rawmemchr: relax license
42578         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42579         okay.
42580         Reported by Jim Meyering.
42581
42582         mkfifoat: new module
42583         * modules/mkfifoat: New file.
42584         * lib/mkfifoat.c: Likewise.
42585         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42587         * modules/sys_stat (Makefile.am): Use them.
42588         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42589         * MODULES.html.sh (File system functions): Mention module.
42590         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42591         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42592         * modules/mkfifoat-tests: New test.
42593         * tests/test-mkfifoat.c: Likewise.
42594
42595         strchrnul: relax license
42596         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42597         okay.
42598         Reported by Jim Meyering.
42599
42600 2009-09-08  Eric Blake  <ebb9@byu.net>
42601
42602         fstatat: fix compilation on Solaris
42603         * lib/fstatat.c (includes): Add fcntl.h.
42604         Reported by Pádraig Brady.
42605
42606 2009-09-07  Eric Blake  <ebb9@byu.net>
42607
42608         rename: modernize replacement
42609         * modules/rename (Depends-on): Add stdio.
42610         (configure.ac): Declare witness.
42611         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42612         stdio take care of replacement.
42613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42614         * modules/stdio (Makefile.am): Substitute them.
42615         * lib/stdio.in.h (rename): Declare replacement.
42616         * lib/rename.c (includes): Allow cross-compilation to non-windows
42617         machines.
42618         * doc/posix-functions/rename.texi (rename): Improve
42619         documentation.
42620
42621         stdio: sort witness names
42622         * modules/stdio (Makefile.am): Sort replacements.
42623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42624         * lib/stdio.in.h: Likewise.
42625
42626         getcwd: minor cleanups
42627         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42628         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42629
42630         openat: provide more convenience names
42631         * modules/faccessat (configure.ac): Add C witness.
42632         * lib/unistd.in.h (readlinkat): Fix typo.
42633         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42634         convenience wrappers.
42635         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42636         wrappers in syntax checks.
42637
42638 2009-09-06  Eric Blake  <ebb9@byu.net>
42639
42640         doc: fix comments in recent patches
42641         * lib/faccessat.c: Mention correct function.
42642         * lib/fchmodat.c: Likewise.
42643         * lib/fchownat.c: Likewise.
42644         * lib/symlinkat.c: Likewise.
42645         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42646         constants.
42647
42648         faccessat, symlinkat: continue cleanup of previous patch
42649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42650         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42651         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42653         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42654         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42655         set.
42656
42657 2009-09-06  Bruno Haible  <bruno@clisp.org>
42658
42659         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42660         (fstatat): Declare if GNULIB_FSTATAT is set.
42661         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42662         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42663         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42664         * modules/fcntl-h (Files): Remove m4/openat.m4.
42665         * modules/sys_stat (Files): Remove m4/openat.m4.
42666         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42667         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42668         * modules/unistd (Files): Remove m4/openat.m4.
42669         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42670         GNULIB_OPENAT.
42671         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42672         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42673         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42674         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42675         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42676         gl_OPENAT_DEFAULTS.
42677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42678         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42679         Don't require gl_OPENAT_DEFAULTS.
42680         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42681         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42682         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42683         (gl_OPENAT_DEFAULTS): Remove macro.
42684
42685 2009-09-06  Bruno Haible  <bruno@clisp.org>
42686
42687         * modules/openat (configure.ac): Remove unneeded witness.
42688
42689 2009-09-06  Bruno Haible  <bruno@clisp.org>
42690
42691         Set errno to ENOSYS when a function is entirely unsupported.
42692         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42693         EOPNOTSUPP.
42694         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42695         * modules/chown (Depends-on): Remove errno.
42696
42697 2009-09-06  Bruno Haible  <bruno@clisp.org>
42698
42699         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42700
42701 2009-09-06  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42704
42705 2009-09-06  Ben Pfaff  <blp@gnu.org>
42706             Bruno Haible  <bruno@clisp.org>
42707
42708         Work around a glibc bug in strtok_r.
42709         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42710         Undefine if UNDEFINE_STRTOK_R is set.
42711         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42713         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42715         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42716         UNDEFINE_STRTOK_R.
42717         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42718
42719 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42720
42721         exclude: minor fix
42722         * lib/exclude.c: Include wctype.h
42723
42724 2009-09-06  Akim Demaille  <demaille@gostai.com>
42725
42726         bootstrap: improve error message
42727         * build-aux/bootstrap (find_tool): Upon failure, report the list
42728         of candidates.
42729         Honor the initial value of the envvar.
42730
42731 2009-09-05  Eric Blake  <ebb9@byu.net>
42732
42733         symlinkat: new module
42734         * modules/symlinkat: New file.
42735         * lib/symlinkat.c: Likewise.
42736         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42738         * modules/unistd (Makefile.am): Use them.
42739         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42740         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42741         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42742         * MODULES.html.sh (File system functions): Mention module.
42743         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42745         * modules/symlinkat-tests: New test.
42746         * tests/test-symlinkat.c: Likewise.
42747
42748         test-openat-safer: add more checks
42749         * tests/test-openat-safer.c (main): Check more code paths.
42750
42751 2009-09-05  Jim Meyering  <meyering@redhat.com>
42752
42753         syntax-check: detect unnecessary inclusion of openat.h
42754         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42755
42756 2009-09-05  Bruno Haible  <bruno@clisp.org>
42757
42758         Support towlower, towupper.
42759         * doc/posix-functions/towlower.texi: Mention module wctype.
42760         * doc/posix-functions/towupper.texi: Likewise.
42761         * lib/wctype.in.h (towlower, towupper): New functions.
42762         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42763         (ASSERT): New macro.
42764         (e): New variable.
42765         (main): Test also towlower, towupper. Test WEOF argument.
42766         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42767
42768 2009-09-05  Bruno Haible  <bruno@clisp.org>
42769
42770         Fix conversion behaviour when the input is invalid.
42771         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42772         mark occurring in first pass of indirect conversion.
42773         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42774         input.
42775         Found by clang's static analyzer.
42776
42777 2009-09-05  Bruno Haible  <bruno@clisp.org>
42778
42779         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42780         where direct conversion is possible.
42781
42782 2009-09-04  Eric Blake  <ebb9@byu.net>
42783
42784         openat: fail with ENOENT on empty name
42785         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42786         buffer.
42787
42788         link-follow: fix logic bug in prior patch
42789         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42790         reversed sense of yes and no in prior patch.  Avoid confusing
42791         compilation failure with desired semantics.
42792
42793         link-follow: accommodate mingw and cross-compilation
42794         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42795         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42796         cross-compilation results to -1, to make linkat easier to
42797         implement when cross-compiling.  Trivially support mingw.
42798         * modules/link-follow (configure.ac): Call new name.
42799         * NEWS: Mention this.
42800
42801 2009-09-03  Eric Blake  <ebb9@byu.net>
42802
42803         faccessat: compile replacement
42804         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42805         needed.
42806
42807         fts: fix compilation error
42808         * lib/fts.c (includes): Re-add "openat.h", for
42809         openat_needs_fchdir.
42810
42811         faccessat: new module
42812         * modules/faccessat: New file.
42813         * lib/faccessat.c: Likewise.
42814         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42816         * modules/unistd (Makefile.am): Use it.
42817         * lib/unistd.in.h (faccessat): Declare it.
42818         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42819         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42820         * MODULES.html.sh (File system functions): Mention it.
42821         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42822         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42823
42824         euidaccess: prefer POSIX over non-standard implementation
42825         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42826         * lib/euidaccess.c (euidaccess): Use it if available.
42827
42828         openat: make template easier to use
42829         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42830         AT_FUNC_F2 to be undefined.
42831         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42832         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42833         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42834         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42835         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42836         Likewise.
42837         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42838         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42839         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42840         Likewise.
42841
42842         openat: declare in POSIX headers
42843         * NEWS: Mention this.
42844         * modules/openat (configure.ac): Declare witnesses.
42845         (Depends-on): Add fcntl-h, sys_stat, unistd.
42846         (Include): Mention correct headers.
42847         * modules/fcntl-h (Depends-on): Add link-warning.
42848         (Files): Add openat.m4.
42849         (Makefile.am): Substitute witnesses.
42850         * modules/sys_stat (Files, Makefile.am): Likewise.
42851         * modules/unistd (Files, Makefile.am): Likewise.
42852         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42853         (gl_OPENAT_DEFAULTS): New macro.
42854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42857         (SYS_STAT_H): Remove unused variable.
42858         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42859         * lib/fcntl--.h (includes): Remove unneeded header.
42860         * lib/openat-safer.c (includes): Likewise.
42861         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42862         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42863         appropriate headers.
42864         (__OPENAT_PREFIX): Delete.
42865         * lib/fcntl.in.h (openat): Provide declaration.
42866         (AT_FDCWD): Fix Solaris bug.
42867         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42868         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42869         * lib/fchmodat.c (includes):  Adjust to find declaration.
42870         * lib/fchownat.c (includes): Likewise.
42871         * lib/mkdirat.c (includes): Likewise.
42872         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42873         still visible.
42874
42875 2009-09-02  Eric Blake  <ebb9@byu.net>
42876
42877         errno: use consistently
42878         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42879         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42880         * lib/canonicalize.c (ELOOP): Likewise.
42881         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42882         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42883         * lib/lchown.c (EOPNOTSUPP): Likewise.
42884         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42885         * lib/savewd.c (ESTALE): Likewise.
42886         * lib/settime.c (ENOSYS): Likewise.
42887         * lib/utimens.c (ENOSYS): Likewise.
42888         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42889         * lib/chdir-safer.c (ELOOP): Likewise.
42890         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42891         * modules/c-stack (Depends-on): Add errno.
42892         * modules/canonicalize (Depends-on): Likewise.
42893         * modules/chdir-safer (Depends-on): Likewise.
42894         * modules/fdopendir (Depends-on): Likewise.
42895         * modules/inet_ntop (Depends-on): Likewise.
42896         * modules/inet_pton (Depends-on): Likewise.
42897         * modules/lchown (Depends-on): Likewise.
42898         * modules/openat (Depends-on): Likewise.
42899         * modules/savewd (Depends-on): Likewise.
42900         * modules/settime (Depends-on): Likewise.
42901         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42902
42903         fts: avoid leaking fds
42904         * modules/fts (Depends-on): Add cloexec.
42905         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42906         flag.
42907
42908         fts: make directory fds more robust
42909         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42910         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42911
42912         backupfile, chdir-long, fts, savedir: make safer
42913         * lib/backupfile.c (includes): Use "dirent--.h", since
42914         numbered_backup can write to stderr during readdir.
42915         * lib/savedir.c (includes): Likewise.
42916         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42917         emulation can write to stderr on failure.
42918         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42919         * lib/getcwd.c: Document why opendir_safer is unused.
42920         * lib/glob.c: Likewise.
42921         * lib/scandir.c: Likewise.
42922         * lib/openat-proc.c: Likewise, for open_safer.
42923         * modules/backupfile (Depends-on): Add dirent-safer.
42924         * modules/savedir (Depends-on): Likewise.
42925         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42926         * modules/chdir-long (Depends-on): Add openat-safer.
42927
42928         openat-safer: new module
42929         * modules/openat-safer: New file.
42930         * lib/openat-safer.c: Likewise.
42931         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42932         * lib/fcntl-safer.h (openat_safer): Declare.
42933         * lib/fcntl--.h (openat): Override.
42934         * MODULES.html.sh (File descriptor based I/O): Mention it.
42935         * lib/openat.h: Add double-inclusion guards.
42936         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42937         "fcntl--.h", so we can implement openat.
42938         * modules/openat-safer-tests: New test.
42939         * tests/test-openat-safer.c: New file.
42940
42941         dirent-safer: new module
42942         * modules/dirent-safer: New file.
42943         * lib/dirent--.h: Likewise.
42944         * lib/dirent-safer.h: Likewise.
42945         * lib/opendir-safer.c: Likewise.
42946         * m4/dirent-safer.m4: Likewise.
42947         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42948         * modules/dirent-safer-tests: New test.
42949         * tests/test-dirent-safer.c: New file.
42950         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42951
42952         fdopendir: optimize on mingw
42953         * lib/unistd.in.h (_gl_directory_name): New prototype.
42954         * lib/fchdir.c (_gl_directory_name): Implement it.
42955         (fchdir): Use it to simplify implementation.
42956         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42957         fchdir, when available, to avoid calling [f]chdir().
42958
42959         fdopendir: split into its own module
42960         * lib/openat.c (fdopendir): Move...
42961         * lib/fdopendir.c: ...into new file.
42962         * modules/fdopendir: New module.
42963         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42964         * modules/openat (Depends-on): Add fdopendir.
42965         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42966         fdopendir here.
42967         * modules/savedir (Depends-on): Only need fdopendir, not full
42968         openat.
42969         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42970         * lib/openat.h (fdopendir): Drop prototype.
42971         * lib/dirent.in.h (fdopendir): Provide prototype.
42972         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42973         * modules/dirent (Makefile.am): Substitute them.
42974         * MODULES.html.sh (File system functions): Mention it.
42975         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42976         * modules/fdopendir-tests: New file.
42977         * tests/test-fdopendir.c: Likewise.
42978
42979         fchdir: use more consistent macro convention
42980         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42981         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42982         REPLACE_FCHDIR, rather than relying on config.h macros.
42983         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42984         inside a single make-time REPLACE_FCHDIR block, rather than using
42985         the config.h FCHDIR_REPLACEMENT.
42986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42987         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42988         Manage fstat replacement.
42989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42990         REPLACE_FCHDIR.
42991         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42992         (Makefile.am): Substitute REPLACE_FCHDIR.
42993         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42994         FCHDIR_REPLACEMENT.
42995         * lib/dup-safer.c (dup_safer): Likewise.
42996         * lib/dup2.c (rpl_dup2): Likewise.
42997         * lib/dup3.c (rpl_dup3): Likewise.
42998         * lib/open.c (rpl_open): Likewise.
42999
43000         fchdir: simplify error handling, and support dup3
43001         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43002         stdbool, malloc-posix, realloc-posix.
43003         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43004         (ensure_dirs_slot): Return false on allocation failure.
43005         (rpl_dup2): Delete.
43006         (_gl_register_dup): New function.
43007         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43008         (_gl_register_fd): Close fd on allocation failure.
43009         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43010         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43011         prototype.
43012         (rpl_dup2_fchdir): Delete prototype.
43013         * lib/open.c (open): Update caller.
43014         * lib/dup2.c (dup2): Track fchdir metadata.
43015         * lib/dup3.c (dup3): Likewise.
43016         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43018
43019 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43020
43021         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43022         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43023         don't pass arguments to AC_OUTPUT.
43024
43025 2009-09-02  Bruno Haible  <bruno@clisp.org>
43026
43027         * modules/mkdtemp (License): Relicense under LGPLv2+.
43028         Reported by Paolo Bonzini.
43029
43030 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43031
43032         Replace uses of obsolete autoconf macros in Jim's modules.
43033         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43034         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43035         can evoke a warning from autoconf when run with -Wobsolete
43036         enabled.  They were declared obsolete for good reasons (see
43037         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43038         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43039         should not continue using the deprecated macros.
43040         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43041         obsolete Autoconf macros with modern counterparts.
43042         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43043         * m4/dos.m4 (gl_AC_DOS): Likewise.
43044         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43046         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43047         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43048         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43050         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43051         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43052         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43053         Likewise.
43054         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43055         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43056         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43057         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43058         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43059         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43060
43061 2009-09-01  Eric Blake  <ebb9@byu.net>
43062
43063         fchdir: fix off-by-one bug in previous patch
43064         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43065         (_gl_unregister_fd): Delete useless if.
43066
43067 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43068
43069         maint.mk: sort the list of syntax-check rules
43070         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43071         easier to get a sense of progress when the rules are run sequentially
43072         and take a long time.
43073
43074 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43075
43076         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43077         * modules/netinet_in: Likewise.
43078         * modules/sys_file: Likewise.
43079         * modules/sys_ioctl: Likewise.
43080         * modules/sys_select: Likewise.
43081         * modules/sys_socket: Likewise.
43082         * modules/sys_stat: Likewise.
43083         * modules/sys_time: Likewise.
43084         * modules/sys_times: Likewise.
43085         * modules/sys_utsname: Likewise.
43086         * modules/sys_wait: Likewise.
43087
43088 2009-09-01  Jim Meyering  <meyering@redhat.com>
43089
43090         fts: help ensure that return values are not ignored
43091         * lib/fts_.h (__GNUC_PREREQ): Define.
43092         (__attribute_warn_unused_result__): Define.
43093         (fts_children, fts_close, fts_open, fts_read): Declare with
43094         __attribute_warn_unused_result__.
43095
43096         fts: fts_close now fails also when closing a dir file descriptor fails
43097         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43098         and propagate to caller, along with errno.
43099
43100         announce-gen: correct formatting in --help output
43101         * build-aux/announce-gen (usage): Move the one-line description in
43102         --help output "up", to where it belongs, just after Usage:.
43103
43104 2009-08-31  Eric Blake  <ebb9@byu.net>
43105
43106         fchdir: port to mingw
43107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43108         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43109         opened, then use a substitute.
43110         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43111         replacement.
43112         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43113         (_gl_register_fd): No need to check stat if open already filters
43114         all directories.
43115         (fchdir): Fix error condition to match POSIX.
43116         * modules/fchdir (Depends-on): Add sys_stat.
43117         * doc/posix-functions/open.texi (open): Document the limitation.
43118         * modules/fchdir-tests: New file.
43119         * tests/test-fchdir.c: Likewise.
43120
43121         canonicalize: allow cross-testing from cygwin to mingw
43122         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43123         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43124         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43125         Likewise.
43126         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43127         target does not support symlinks.
43128         * tests/test-canonicalize-lgpl.sh: Likewise.
43129
43130         chown: avoid compilation warning on mingw
43131         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43132         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43133         mingw.
43134         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43135         * modules/chown (Depends-on): Add errno.
43136
43137 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43138
43139         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43140         command.
43141
43142 2009-08-31  Jim Meyering  <meyering@redhat.com>
43143
43144         canonicalize: remove useless initialization
43145         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43146         initialization of local, "end".
43147
43148 2009-08-30  Bruno Haible  <bruno@clisp.org>
43149
43150         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43151         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43152         ENOSYS.
43153
43154 2009-08-30  Bruno Haible  <bruno@clisp.org>
43155
43156         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43157         /usr/xpg4/bin/tr when it exists.
43158         * tests/test-pipe-filter-gi1.sh: Likewise.
43159
43160 2009-08-30  Bruno Haible  <bruno@clisp.org>
43161
43162         Work around deficient /usr/bin/id program on Solaris.
43163         * tests/test-file-has-acl.sh (ID): New variable.
43164         * tests/test-set-mode-acl.sh (ID): Likewise.
43165         * tests/test-copy-acl.sh (ID): Likewise.
43166         * tests/test-copy-file.sh (ID): Likewise.
43167
43168 2009-08-30  Bruno Haible  <bruno@clisp.org>
43169
43170         New module 'xstriconveh'.
43171         * lib/xstriconveh.h: New file.
43172         * lib/xstriconveh.c: New file.
43173         * modules/xstriconveh: New file.
43174
43175 2009-08-30  Bruno Haible  <bruno@clisp.org>
43176
43177         Make it easier to use mem_cd_iconveh.
43178         * lib/striconveh.h (iconveh_t): New type.
43179         (iconveh_open, iconveh_close): New declarations.
43180         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43181         with a single 'const iconveh_t *' argument.
43182         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43183         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43184         with a single 'const iconveh_t *' argument.
43185         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43186         * tests/test-striconveh.c (main): Update.
43187         * NEWS: Mention the change.
43188
43189 2009-08-30  Bruno Haible  <bruno@clisp.org>
43190
43191         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43192         problem.
43193
43194 2009-08-30  Bruno Haible  <bruno@clisp.org>
43195
43196         Work around iconv_open problem on Solaris.
43197         * lib/iconv_open-solaris.gperf: New file.
43198         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43200         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43201         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43202         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43203         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43204
43205 2009-08-29  Jim Meyering  <meyering@redhat.com>
43206
43207         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43208         * top/maint.mk (cvs-check): Remove target; it was just an alias
43209         to the better-named vc-diff-check.
43210         (maintainer-distcheck): Remove rule.  It was used only from
43211         the (alpha/beta/major) target, and all of its commands but one
43212         were coreutils-specific.
43213         (vc-dist): Remove rule.
43214         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43215         Run vc-diff-check, not vc-dist.
43216         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43217
43218 2009-08-27  Bruno Haible  <bruno@clisp.org>
43219
43220         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43221         of 0.
43222
43223 2009-08-27  Bruno Haible  <bruno@clisp.org>
43224
43225         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43226         compilers.
43227         * doc/func.texi: Document the SunPRO C bug.
43228
43229 2009-08-27  Bruno Haible  <bruno@clisp.org>
43230
43231         Fix link error on Solaris.
43232         * tests/test-parse-duration.c (xstrdup): Remove function.
43233
43234 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43235
43236         ignore-value: handle pointer types, too
43237         * lib/ignore-value.h (__attribute__): Remove definition.
43238         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43239         of a more concise and more-often effective "(void) i" statement.
43240         (ignore_ptr): New function to suppress warnings from functions that
43241         return pointers, and to make it explicit that one function doesn't
43242         handle all cases.
43243
43244 2009-08-25  Bruno Haible  <bruno@clisp.org>
43245
43246         dup2: work around a Linux bug.
43247         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43248         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43249         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43250         Reported by Simon Josefsson.
43251
43252 2009-08-25  Jim Meyering  <meyering@redhat.com>
43253
43254         libguestfs uses gnulib
43255         * users.txt: Add libguestfs.
43256
43257 2009-08-24  Eric Blake  <ebb9@byu.net>
43258
43259         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43260         * lib/pipe2.c (includes): Add binary-io.h.
43261         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43262
43263 2009-08-24  Bruno Haible  <bruno@clisp.org>
43264
43265         Tolerate declared but missing accept4 syscall.
43266         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43267         available.
43268         * lib/sys_socket.in.h (accept4): If the function is already present,
43269         override it.
43270         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43271         * modules/accept4 (Makefile.am): Compile accept4.c always.
43272         Reported by Paolo Bonzini and Eric Blake.
43273
43274 2009-08-23  Bruno Haible  <bruno@clisp.org>
43275
43276         New module 'accept4'.
43277         * lib/sys_socket.in.h (accept4): New declaration.
43278         * lib/accept4.c: New file.
43279         * m4/accept4.m4: New file.
43280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43281         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43282         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43283         HAVE_ACCEPT4.
43284         * modules/accept4: New file.
43285         * doc/glibc-functions/accept4.texi: Mention the new module.
43286
43287 2009-08-24  Jim Meyering  <meyering@redhat.com>
43288
43289         progname: also set global program_invocation_name, when possible
43290         Before this change, a libtool-enabled program that calls glibc's
43291         error function would report the program name as
43292         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43293         * modules/progname (configure.ac): Check for a declaration of
43294         program_invocation_name.
43295         * lib/progname.c:  Include <errno.h>.
43296         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43297         Set program_invocation_name.
43298
43299 2009-08-23  Bruno Haible  <bruno@clisp.org>
43300
43301         * lib/dup3.c: Include <string.h>.
43302
43303 2009-08-23  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43306         * lib/pipe2.c (pipe2): Likewise.
43307         Suggested by Eric Blake.
43308
43309 2009-08-23  Bruno Haible  <bruno@clisp.org>
43310
43311         Tolerate declared but missing dup3 syscall.
43312         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43313         * lib/unistd.in.h (dup3): If the function is already present,
43314         override it.
43315         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43316         * modules/dup3 (Makefile.am): Compile dup3.c always.
43317         Reported by Paolo Bonzini.
43318
43319 2009-08-23  Bruno Haible  <bruno@clisp.org>
43320
43321         Tolerate declared but missing pipe2 syscall.
43322         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43323         available.
43324         * lib/unistd.in.h (pipe2): If the function is already present,
43325         override it.
43326         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43327         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43328         Reported by Paolo Bonzini.
43329
43330 2009-08-23  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/pipe2.c (pipe2): Move #ifs inside function.
43333
43334 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43335
43336         quotearg: document limitations of quote_these_too
43337         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43338         those limitations are created.
43339         * lib/quotearg.h (set_char_quoting): Document that digits and
43340         letters that are special after backslash are not permitted.
43341         (quotearg_char): Cross-reference set_char_quoting documentation.
43342
43343 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43344
43345         quotearg: implement custom_quoting_style
43346         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43347         right_quote fields.
43348         (set_custom_quoting): New public function.
43349         (quotearg_buffer_restyled): Add left_quote and right_quote
43350         arguments, handle them very much like locale quoting, and update
43351         all uses.
43352         (quotearg_n_custom): New public function.
43353         (quotearg_n_custom_mem): New public function.
43354         (quotearg_custom): New public function.
43355         (quotearg_custom_mem): New public function.
43356         * lib/quotearg.h: Prototype and document new public functions.
43357         (enum quoting_style): For escape_quoting_style and
43358         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43359         ignored even though they're otherwise like c_quoting_style.
43360         Add custom_quoting_style member and document with comparison to
43361         clocale_quoting_style.
43362         * tests/test-quotearg.c (custom_quotes): New array.
43363         (custom_results): New array.
43364         (main): Extend to test custom quoting.
43365
43366 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43367
43368         quotearg: fix right quote escaping when it's in quote_these_too
43369         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43370         quote, be sure to prepend only one backslash.
43371         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43372         (main): Test it.
43373
43374 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43375
43376         quotearg-tests: test escaping of embedded locale quotes
43377         * tests/test-quotearg.c (struct result_strings): Add member for
43378         new input.
43379         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43380         (inputs): Add new input.
43381         (results_g): Add expected results.
43382         (flag_results): Likewise.
43383         (locale_results): Likewise.
43384         (compare_strings): Check those.
43385
43386 2009-08-23  Bruno Haible  <bruno@clisp.org>
43387
43388         Tests for module 'dup3'.
43389         * modules/dup3-tests: New file.
43390         * tests/test-dup3.c: New file.
43391
43392         New module 'dup3'.
43393         * lib/unistd.in.h (dup3): New declaration.
43394         * lib/dup3.c: New file.
43395         * m4/dup3.m4: New file.
43396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43397         HAVE_DUP3.
43398         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43399         * modules/dup3: New file.
43400         * doc/glibc-functions/dup3.texi: Mention the new module.
43401
43402 2009-08-23  Bruno Haible  <bruno@clisp.org>
43403
43404         Tweak the dup2 test.
43405         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43406         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43407         the test file is still empty. Fix argument order of lseek.
43408
43409 2009-08-23  Bruno Haible  <bruno@clisp.org>
43410
43411         Avoid test link errors when the modules getopt-gnu, gettext are used.
43412         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43414
43415 2009-08-23  Bruno Haible  <bruno@clisp.org>
43416
43417         Fix getdtablesize() on mingw.
43418         * lib/getdtablesize.c (getdtablesize): Implement differently.
43419         * lib/unistd.in.h (getdtablesize): Improve comment.
43420
43421 2009-08-23  Bruno Haible  <bruno@clisp.org>
43422
43423         New module 'mkostemp'.
43424         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43425         * lib/stdlib.in.h (mksotemp): New declaration.
43426         * lib/mkostemp.c: New file, from glibc with modifications.
43427         * lib/tempname.h (GT_FILE): Remove outdated comment.
43428         (gen_tempname): Add flags argument.
43429         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43430         (__GT_FILE): Map to 1.
43431         (small_open, large_open): Remove macros.
43432         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43433         * lib/mkstemp.c (mkstemp): Update.
43434         * lib/mkdtemp.c (mkdtemp): Likewise.
43435         * m4/mkostemp.m4: New file.
43436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43437         HAVE_MKOSTEMP.
43438         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43439         HAVE_MKOSTEMP.
43440         * modules/mkostemp: New file, based on modules/mkstemp.
43441         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43442         * NEWS: Mention the change.
43443
43444 2009-08-23  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43447         Reported by Eric Blake.
43448
43449 2009-08-23  Bruno Haible  <bruno@clisp.org>
43450
43451         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43452         Reported by Eric Blake.
43453
43454 2009-08-23  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43457         * modules/pipe2 (Depends-on): Likewise.
43458
43459 2009-08-23  Eric Blake  <ebb9@byu.net>
43460
43461         fcntl-h: add O_TTY_INIT support
43462         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43463         * tests/test-fcntl-h.c (o): Test it.
43464         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43465
43466         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43467         * modules/fcntl: Move <fcntl.h> header replacement...
43468         * modules/fcntl-h: ...to new name, so as not to collide with
43469         like-named function.
43470         * tests/test-fcntl.c: Rename...
43471         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43472         * modules/fcntl-tests: Rename...
43473         * modules/fcntl-h-tests: ...to this.  Update test file name.
43474         * modules/chdir-long (Depends-on): Update clients.
43475         * modules/chdir-safer (Depends-on): Likewise.
43476         * modules/fcntl-safer (Depends-on): Likewise.
43477         * modules/fts (Depends-on): Likewise.
43478         * modules/mkancesdirs (Depends-on): Likewise.
43479         * modules/mkdir-p (Depends-on): Likewise.
43480         * modules/open (Depends-on): Likewise.
43481         * modules/savewd (Depends-on): Likewise.
43482         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43483         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43484
43485 2009-08-22  Bruno Haible  <bruno@clisp.org>
43486
43487         * modules/binary-io (License): Relicense under LGPL.
43488         * modules/pipe2 (License): Likewise.
43489
43490 2009-08-22  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43493         return value.
43494         * lib/pipe-filter-gi.c (filter_init): Likewise.
43495         Reported by Eric Blake.
43496
43497 2009-08-22  Bruno Haible  <bruno@clisp.org>
43498
43499         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43500         * modules/pipe (Depends-on): Add pipe2.
43501
43502 2009-08-22  Bruno Haible  <bruno@clisp.org>
43503
43504         Tests for module 'pipe2'.
43505         * modules/pipe2-tests: New file.
43506         * tests/test-pipe2.c: New file.
43507
43508         New module 'pipe2'.
43509         * lib/unistd.in.h (pipe2): New declaration.
43510         * lib/pipe2.c: New file.
43511         * m4/pipe2.m4: New file.
43512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43513         HAVE_PIPE2.
43514         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43515         * modules/pipe2: New file.
43516         * doc/glibc-functions/pipe2.texi: Mention the new module.
43517
43518 2009-08-22  Bruno Haible  <bruno@clisp.org>
43519
43520         Reference some new glibc functions.
43521         * doc/glibc-functions/accept4.texi: New file.
43522         * doc/glibc-functions/dup3.texi: New file.
43523         * doc/glibc-functions/mkostemp.texi: New file.
43524         * doc/glibc-functions/pipe2.texi: New file.
43525         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43526         (Glibc sys/socket.h): Refer to accept4.
43527         (Glibc unistd.h): Refer to dup3, pipe2.
43528         Reported by Eric Blake.
43529
43530 2009-08-22  Jim Meyering  <meyering@redhat.com>
43531             Bruno Haible  <bruno@clisp.org>
43532
43533         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43534         This makes it so packages using automake-1.11's silent-rules option
43535         can print e.g., a single "GEN    configmake.h" line, rather than
43536         the 30+ statements that perform the job.  If you want to see the
43537         actual commands, you can still run "make V=1".
43538         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43539         so that make output is abbreviated when those variables are defined
43540         appropriately.
43541         * modules/argz: Likewise.
43542         * modules/arpa_inet: Likewise.
43543         * modules/byteswap: Likewise.
43544         * modules/configmake: Likewise.
43545         * modules/dirent: Likewise.
43546         * modules/errno: Likewise.
43547         * modules/fcntl: Likewise.
43548         * modules/float: Likewise.
43549         * modules/fnmatch: Likewise.
43550         * modules/getopt-posix: Likewise.
43551         * modules/glob: Likewise.
43552         * modules/iconv_open: Likewise.
43553         * modules/inttypes: Likewise.
43554         * modules/localcharset: Likewise.
43555         * modules/locale: Likewise.
43556         * modules/math: Likewise.
43557         * modules/netdb: Likewise.
43558         * modules/netinet_in: Likewise.
43559         * modules/poll: Likewise.
43560         * modules/posix_spawnp-tests: Likewise.
43561         * modules/sched: Likewise.
43562         * modules/search: Likewise.
43563         * modules/selinux-h: Likewise.
43564         * modules/signal: Likewise.
43565         * modules/spawn: Likewise.
43566         * modules/stdarg: Likewise.
43567         * modules/stdbool: Likewise.
43568         * modules/stddef: Likewise.
43569         * modules/stdint: Likewise.
43570         * modules/stdio: Likewise.
43571         * modules/stdlib: Likewise.
43572         * modules/string: Likewise.
43573         * modules/strings: Likewise.
43574         * modules/sys_file: Likewise.
43575         * modules/sys_ioctl: Likewise.
43576         * modules/sys_select: Likewise.
43577         * modules/sys_socket: Likewise.
43578         * modules/sys_stat: Likewise.
43579         * modules/sys_time: Likewise.
43580         * modules/sys_times: Likewise.
43581         * modules/sys_utsname: Likewise.
43582         * modules/sys_wait: Likewise.
43583         * modules/sysexits: Likewise.
43584         * modules/time: Likewise.
43585         * modules/unistd: Likewise.
43586         * modules/wchar: Likewise.
43587         * modules/wctype: Likewise.
43588
43589 2009-08-22  Jim Meyering  <meyering@redhat.com>
43590
43591         announce-gen: detect write failure
43592         * build-aux/announce-gen: Add Coda at end.
43593         Remove equivalent-but-more-verbose block at top.
43594
43595 2009-08-19  Akim Demaille  <demaille@gostai.com>
43596
43597         bootstrap: --help to stdout.
43598         * bootstrap (usage): Don't send --help to stderr.
43599         Use a here doc instead of a long string.
43600
43601 2009-08-21  Eric Blake  <ebb9@byu.net>
43602
43603         test-popen-safer: split from test-popen
43604         * tests/test-popen.c (main): Move...
43605         * tests/test-popen.h: ...into new file.
43606         * tests/test-popen-safer2.c: New file.
43607         * modules/popen-tests (Files): Add test-popen.h.
43608         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43609         Suggested by Bruno Haible.
43610
43611         test-fcntl-safer: split from test-open
43612         * tests/test-open.c (main): Move...
43613         * tests/test-open.h: ...into new file.
43614         * tests/test-fcntl-safer.c: New file.
43615         * modules/open-tests (Files): Add test-open.h.
43616         * modules/fcntl-safer-tests: New file.
43617         Suggested by Bruno Haible.
43618
43619         test-fopen-safer: split from test-fopen
43620         * tests/test-fopen.c (main): Move...
43621         * tests/test-fopen.h: ...into new file.
43622         * tests/test-fopen-safer.c: New file.
43623         * modules/fopen-tests (Files): Add test-fopen.h.
43624         * modules/fopen-safer-tests: New file.
43625         Suggested by Bruno Haible.
43626
43627 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43628
43629         popen-safer: test O_CLOEXEC at run-time.
43630         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43631
43632 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43633
43634         fcntl: move more flags to the header
43635         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43636         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43637         * lib/fcntl.in.h: Do both things here.
43638
43639 2009-08-21  Jim Meyering  <meyering@redhat.com>
43640
43641         consistently remove $@-t before redirecting to it
43642         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43643         * modules/alloca-opt: Likewise.
43644         * modules/byteswap: Likewise.
43645         * modules/fnmatch: Likewise.
43646         * modules/getopt-posix: Likewise.
43647         * modules/glob: Likewise.
43648         * modules/poll: Likewise.
43649         * modules/posix_spawnp-tests: Likewise.
43650         * modules/sys_socket: Likewise.
43651         * modules/sysexits: Likewise.
43652
43653 2009-08-21  Eric Blake  <ebb9@byu.net>
43654
43655         popen: simplify access to original popen
43656         * lib/popen.c (rpl_popen): No need to worry about popen being a
43657         macro.
43658         Reported by Bruno Haible.
43659
43660 2009-08-20  Eric Blake  <ebb9@byu.net>
43661
43662         build: avoid some compiler warnings
43663         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43664         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43665         type.
43666         (new_exclude_segment, excluded_file_pattern_p)
43667         (excluded_file_name_p): Reduce scope.
43668         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43669         old-style declaration.
43670
43671 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43672
43673         * tests/test-exclude1.sh: Handle Windows EOL.
43674         * tests/test-exclude2.sh: Likewise.
43675         * tests/test-exclude3.sh: Likewise.
43676         * tests/test-exclude4.sh: Likewise.
43677         * tests/test-exclude5.sh: Likewise.
43678         * tests/test-exclude6.sh: Likewise.
43679         * tests/test-exclude7.sh: Likewise.
43680
43681 2009-08-19  Akim Demaille  <demaille@gostai.com>
43682
43683         bootstrap: find sha1sum when named gsha1sum.
43684         * bootstrap (find_tool): New.
43685         ($SHA1SUM): New.
43686         Use it.
43687
43688 2009-08-20  Jim Meyering  <meyering@redhat.com>
43689
43690         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43691         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43692         expression that converts "." in a file name to "\." in the resulting
43693         regexp.  Start with a dummy statement, so that prior shell variable
43694         definitions are expanded portably.  Reported by Simon Josefsson.
43695
43696 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43697
43698         Fix polling for writeability of a screen buffer.
43699         * lib/poll.c: Distinguish input and screen buffers for the
43700         Win32 implementation.
43701         * lib/select.c: Likewise.
43702
43703 2009-08-19  Eric Blake  <ebb9@byu.net>
43704
43705         popen-safer: prevent popen from clobbering std descriptors
43706         * modules/popen-safer: New file.
43707         * lib/popen-safer.c: Likewise.
43708         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43709         * lib/stdio--.h (popen): Provide override.
43710         * lib/stdio-safer.h (popen_safer): Provide declaration.
43711         * tests/test-popen.c (includes): Partially test this.
43712         * modules/popen-safer-tests: New file, for more tests.
43713         * tests/test-popen-safer.c: Likewise.
43714         * MODULES.html.sh (file stream based Input/Output): Mention it.
43715
43716         tests: test some of the *-safer modules
43717         * modules/fopen-safer (Depends-on): Add fopen.
43718         * modules/fcntl-safer (Depends-on): Add fcntl.
43719         * modules/stdlib-safer (Depends-on): Add stdlib.
43720         (configure.ac): Set indicator.
43721         * modules/unistd-safer (configure.ac): Likewise.
43722         * modules/tmpfile-safer (configure.ac): Likewise.
43723         (Depends-on): Add tmpfile.
43724         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43725         active.
43726         * tests/test-fopen.c (includes): Test safer versions when they are
43727         in use.
43728         * tests/test-open.c (includes): Likewise.
43729
43730         popen: fix cygwin 1.5 bug when stdin closed
43731         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43732         * modules/popen: New file.
43733         * modules/popen-tests: Likewise.
43734         * tests/test-popen.c: Likewise.
43735         * m4/popen.m4: Likewise.
43736         * lib/popen.c: Likewise.
43737         * lib/stdio.in.h (popen): New declaration.
43738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43739         * modules/stdio (Makefile.am): Likewise.
43740         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43741
43742 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43743
43744         maint.mk: give full control over update-copyright exclusions
43745         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43746         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43747         (update-copyright): Don't force inclusion of top-level
43748         ChangeLog.  Don't force exclusion of all COPYING files, but make
43749         them the default exclusion instead.
43750
43751 2009-08-16  Bruno Haible  <bruno@clisp.org>
43752
43753         Fix test failures on Solaris 10.
43754         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43755         tests when Solaris iconv() is used.
43756         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43757         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43758         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43759         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43760         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43761
43762 2009-08-16  Bruno Haible  <bruno@clisp.org>
43763
43764         Fix test failures on Solaris 10.
43765         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43766         'tr' program and pass it as first argument.
43767         * tests/test-pipe-filter-gi1.sh: Likewise.
43768         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43769         program as first argument.
43770         * tests/test-pipe-filter-gi1.c (main): Likewise.
43771
43772 2009-08-16  Eric Blake  <ebb9@byu.net>
43773
43774         fpurge: fix previous commits
43775         * modules/fpurge (Makefile.am): Make replacement conditional,
43776         partially reverting 2007-04-29 change; missed in previous
43777         attempt.
43778         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43779         is missing.
43780
43781 2009-08-16  Bruno Haible  <bruno@clisp.org>
43782
43783         Clarify fpurge's effect on the file position.
43784         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43785         * tests/test-fpurge.c (main): Make a second pass for checking the file
43786         position.
43787
43788 2009-08-16  Bruno Haible  <bruno@clisp.org>
43789
43790         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43791         declaration of fpurge is missing.
43792         * tests/test-fpurge.c (main): Check that the file has not more contents
43793         than expected. Close the file before removing it.
43794
43795 2009-08-15  Eric Blake  <ebb9@byu.net>
43796
43797         fpurge: don't wrap working cygwin implementation
43798         * lib/fpurge.c (fpurge): Fix comment typo.
43799         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43800         1.7 to avoid replacement.
43801         * tests/test-fpurge.c (main): Enhance test.
43802
43803 2009-08-15  Eric Blake  <ebb9@byu.net>
43804         and Jim Meyering  <meyering@redhat.com>
43805
43806         test-update-copyright: skip if perl is insufficient
43807         * tests/test-update-copyright.sh: Failure to run maintainer tool
43808         should not cause testsuite failure on cygwin 1.5.
43809
43810 2009-08-14  Eric Blake  <ebb9@byu.net>
43811
43812         doc: mention more functions added in cygwin 1.7.0
43813         * doc/posix-headers/limits.texi (limits.h): Update for recent
43814         cygwin additions.
43815         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43816         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43817         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43818         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43819         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43820
43821 2009-08-14  Eric Blake  <ebb9@byu.net>
43822
43823         maint.mk: simplify update-copyright rule
43824         * top/maint.mk (update-copyright-local): Delete, and document how
43825         to do it in cfg.mk instead.
43826         (update-copyright-exclude-regexp): Delete, and document how to do
43827         it in .x-update-copyright instead.
43828         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43829         exclude ChangeLog.
43830
43831 2009-08-14  Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43834
43835 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43836
43837         maint.mk: support update-copyright-env
43838         * top/maint.mk (update-copyright-env): Define place-holder.
43839         (update-copyright): Expand $(update-copyright-env) before
43840         invoking update-copyright.
43841
43842 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43843
43844         update-copyright: implement forced reformatting
43845         * build-aux/update-copyright: Implement and document
43846         UPDATE_COPYRIGHT_FORCE.
43847         * tests/test-update-copyright.sh: Test it.
43848
43849 2009-08-14  Eric Blake  <ebb9@byu.net>
43850         and Bruno Haible  <bruno@clisp.org>
43851
43852         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43853         * tests/test-locale.c: Revert previous patch related to NULL.
43854         * tests/test-stdio.c: Likewise.
43855         * tests/test-stdlib.c: Likewise.
43856         * tests/test-string.c: Likewise.
43857         * tests/test-unistd.c: Likewise.
43858         * modules/time-tests (Depends-on): Add verify.
43859         * modules/wchar-tests (Depends-on): Likewise.
43860         * tests/test-time.c: Test for NULL compliance.
43861         * tests/test-wchar.c: Likewise.
43862         * modules/locale (Depends-on): Add stddef.
43863         * modules/stdio (Depends-on): Likewise.
43864         * modules/stdlib (Depends-on): Likewise.
43865         * modules/string (Depends-on): Likewise.
43866         * modules/time (Depends-on): Likewise.
43867         * modules/unistd (Depends-on): Likewise.
43868         * modules/wchar (Depends-on): Likewise.
43869         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43870         * lib/stdlib.in.h (includes): Likewise.
43871         * lib/string.in.h (includes): Likewise.
43872         * lib/time.in.h (includes): Likewise.
43873         * lib/unistd.in.h (includes): Likewise.
43874         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43875         replaced.
43876         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43877         * m4/stddef_h.m4: New file.
43878         * modules/stddef: Likewise.
43879         * lib/stddef.in.h: Likewise.
43880         * modules/stddef-tests: Likewise.
43881         * tests/test-stddef.c: Likewise.
43882         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43883         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43884         * doc/posix-headers/locale.texi (locale.h): Likewise.
43885         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43886         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43887         * doc/posix-headers/string.texi (string.h): Likewise.
43888         * doc/posix-headers/time.texi (time.h): Likewise.
43889         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43890         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43891
43892 2009-08-14  Eric Blake  <ebb9@byu.net>
43893
43894         doc: improve git diff of texinfo files
43895         * .gitattributes: Add rule for *.texi files, with hint on how to
43896         use it.
43897         Copied from m4, and based on a report by Bruno Haible.
43898
43899 2009-08-14  Bruno Haible  <bruno@clisp.org>
43900
43901         Disable multithread support by default on Cygwin 1.5.x for real.
43902         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43903
43904 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43905
43906         update-copyright: much ado about intervals
43907         * build-aux/update-copyright: Implement and document
43908         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43909         of copyright year intervals.
43910         Also, document UPDATE_COPYRIGHT_YEAR.
43911         * tests/test-update-copyright.sh: Test it.
43912
43913         update-copyright: convert 2-digit to 4-digit years
43914         * build-aux/update-copyright: Implement and document.
43915         * tests/test-update-copyright.sh: Update.
43916
43917 2009-08-14  Jim Meyering  <meyering@redhat.com>
43918
43919         test-exclude: avoid coreutils "make check" failure
43920         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43921         just as in test-argmatch.c.
43922
43923 2009-08-13  Eric Blake  <ebb9@byu.net>
43924
43925         test-dup2: fix bad assumption
43926         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43927         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43928
43929         test-version-etc: fix CRLF portability issue
43930         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43931         recognize \r.
43932         * tests/test-argp-version-etc-1.sh: Likewise.
43933
43934         getopt: update client modules
43935         * modules/argp (Depends-on): Use getopt-gnu.
43936         * modules/git-merge-changelog (Depends-on): Likewise.
43937         * modules/long-options (Depends-on): Likewise.
43938         * modules/xstrtol (Depends-on): 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.  Don't fail on CRLF differences.  Rewrite to use
43944         multiple -e instead of multiple sed forks, suggested by Eric Blake
43945         <ebb9@byu.net>.
43946         * tests/test-argp-version-etc-1.sh: Likewise.
43947
43948 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43949
43950         * tests/test-version-etc.sh: Don't fail on different
43951         project/version.
43952
43953 2009-08-12  Bruno Haible  <bruno@clisp.org>
43954
43955         Tests for modules 'getopt-posix', 'getopt-gnu'.
43956         * modules/getopt-posix-tests: New file.
43957         * tests/test-getopt.c: New file.
43958         * tests/test-getopt.h: New file.
43959         * tests/test-getopt_long.h: New file.
43960
43961         New modules 'getopt-posix', 'getopt-gnu'.
43962         * modules/getopt-gnu: New file, renamed from modules/getopt.
43963         * modules/getopt-posix: New file.
43964         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43965         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43966         (gl_GETOPT): Remove macro.
43967         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43968         Disable the test against BSD systems that declare optreset. Test
43969         against mingw bug. Test against lack of support of optional arguments
43970         on many platforms.
43971         * doc/glibc-headers/getopt.texi: Update module name and list of
43972         relevant platforms.
43973         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43974         'getopt-gnu' and more portability problems.
43975         * NEWS: Mention the changes.
43976
43977 2009-08-12  Bruno Haible  <bruno@clisp.org>
43978
43979         Ensure that optarg etc. get declared by <unistd.h>.
43980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43981         AC_USE_SYSTEM_EXTENSIONS.
43982         * modules/getopt (Depends-on): Add 'extensions'.
43983
43984 2009-08-12  Bruno Haible  <bruno@clisp.org>
43985
43986         Avoid test link errors.
43987         * modules/pipe-filter-ii-tests (Makefile.am): Define
43988         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43989         * modules/pipe-filter-gi-tests (Makefile.am): Define
43990         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43992
43993 2009-08-12  Bruno Haible  <bruno@clisp.org>
43994
43995         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43996         gl_GETOPT_SUBSTITUTE before.
43997         (gl_GETOPT): Use it.
43998         * m4/argp.m4 (gl_ARGP): Update.
43999         Reported by Sergey Poznyakoff.
44000
44001         * m4/getopt.m4: Reorder macros.
44002         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44003         (gl_GETOPT_SUBSTITUTE): Remove macro.
44004
44005 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44006
44007         Minor improvement in gitlog-to-changelog
44008
44009         * build-aux/gitlog-to-changelog: New option `--format' makes
44010         output format string configurable.
44011
44012 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44013
44014         Optimize exclude: use hash tables for non-wildcard patterns.
44015
44016         * lib/exclude.c: Include hash.h and mbuiter.h
44017         (struct exclude_pattern, exclude_segment): New data types.
44018         (struct exclude): Rewrite.
44019         (fnmatch_pattern_has_wildcards): New function.
44020         (new_exclude_segment, free_exclude_segment): New functions.
44021         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44022         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44023         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44024         * modules/exclude: Depend on hash and mbuiter.
44025
44026         * modules/exclude-tests: New file.
44027         * tests/test-exclude.c: New file.
44028         * tests/test-exclude1.sh: New file.
44029         * tests/test-exclude2.sh: New file.
44030         * tests/test-exclude3.sh: New file.
44031         * tests/test-exclude4.sh: New file.
44032         * tests/test-exclude5.sh: New file.
44033         * tests/test-exclude6.sh: New file.
44034         * tests/test-exclude7.sh: New file.
44035
44036 2009-08-12  Bruno Haible  <bruno@clisp.org>
44037
44038         Ensure that getopt() gets declared by <unistd.h>.
44039         * lib/unistd.in.h: Conditionally include getopt.h.
44040         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44041         Set GNULIB_UNISTD_H_GETOPT.
44042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44043         GNULIB_UNISTD_H_GETOPT.
44044         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44045
44046 2009-08-12  Bruno Haible  <bruno@clisp.org>
44047
44048         Clarify logic.
44049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44050         gl_replace_getopt instead of GETOPT_H.
44051
44052 2009-08-12  Bruno Haible  <bruno@clisp.org>
44053
44054         * m4/getopt.m4: Add comments.
44055
44056 2009-08-12  Bruno Haible  <bruno@clisp.org>
44057
44058         Disable multithread support by default on Cygwin 1.5.x.
44059         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44060         set gl_use_threads=no if not specified otherwise.
44061
44062 2009-08-11  Bruno Haible  <bruno@clisp.org>
44063
44064         Avoid compilation error on NetBSD 5.0.
44065         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44066         * tests/test-stdio.c: Likewise.
44067         * tests/test-stdlib.c: Likewise.
44068         * tests/test-string.c: Likewise.
44069         * tests/test-unistd.c: Likewise.
44070         Reported by Greg Troxel <gdt@ir.bbn.com>
44071         at <https://savannah.gnu.org/support/?106973>.
44072
44073 2009-08-11  Bruno Haible  <bruno@clisp.org>
44074
44075         * modules/dup2-tests (Depends-on): Remove close.
44076
44077         Undo 2009-07-19 commit.
44078         * modules/acl-tests (Depends-on): Remove close.
44079         * modules/binary-io-tests (Depends-on): Likewise.
44080         * modules/closein-tests (Depends-on): Likewise.
44081         * modules/flock-tests (Depends-on): Likewise.
44082         * modules/fsync-tests (Depends-on): Likewise.
44083         * modules/lseek-tests (Depends-on): Likewise.
44084         * modules/pipe-tests (Depends-on): Likewise.
44085         * modules/posix_spawn-tests (Depends-on): Likewise.
44086         * modules/posix_spawnp-tests (Depends-on): Likewise.
44087         * modules/stat-time-tests (Depends-on): Likewise.
44088         * modules/yesno-tests (Depends-on): Likewise.
44089
44090 2009-08-10  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44093
44094 2009-08-10  Bruno Haible  <bruno@clisp.org>
44095
44096         Fix a gcc warning.
44097         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44098
44099 2009-08-10  Bruno Haible  <bruno@clisp.org>
44100
44101         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44102         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44103         not only the first time.
44104         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44105         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44106         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44107         is 1, not only the the first time.
44108
44109 2009-08-10  Bruno Haible  <bruno@clisp.org>
44110
44111         Make it possible to use module 'gethostname' without module 'close'.
44112         * lib/unistd.in.h (close): Evoke a link error only if
44113         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44115         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44116         * modules/unistd (Makefile.am): Substitute
44117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44118         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44119         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44120         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44121         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44122         * modules/sys_ioctl (Makefile.am): Substitute
44123         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44124         * modules/socket (configure.ac): On native Windows, set
44125         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44126         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44127         Reported by Sam Steingold <sds@gnu.org>.
44128
44129 2009-08-10  Bruno Haible  <bruno@clisp.org>
44130
44131         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44132         * modules/ioctl (configure.ac): Likewise.
44133
44134 2009-08-10  Bruno Haible  <bruno@clisp.org>
44135
44136         Avoid collision between gnulib wrapper and libintl wrapper.
44137         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44138         already defined in intl/printf.c.
44139         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44140         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44141
44142 2009-08-09  Bruno Haible  <bruno@clisp.org>
44143
44144         Make <sys/select.h> really self-contained, also on Solaris 10.
44145         * lib/sys_select.in.h: Include <string.h>.
44146         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44147         Solaris 10 problem.
44148         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44149         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44150         Reported by Jim Meyering.
44151
44152 2009-08-09  Bruno Haible  <bruno@clisp.org>
44153
44154         Avoid warnings from 'aclocal' that are due to a use of macro name
44155         AM_XGETTEXT_OPTION that is not defined in automake.
44156         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44157         automake.
44158         * modules/error (configure.ac): Likewise.
44159         * modules/propername (configure.ac): Likewise.
44160         * modules/vasprintf (configure.ac): Likewise.
44161         * modules/verror (configure.ac): Likewise.
44162         * modules/xprintf (configure.ac): Likewise.
44163         * modules/xvasprintf (configure.ac): Likewise.
44164
44165 2009-08-08  Bruno Haible  <bruno@clisp.org>
44166
44167         Avoid compilation error in C++ mode.
44168         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44169         Reported by Sam Steingold <sds@gnu.org>.
44170
44171 2009-08-08  Bruno Haible  <bruno@clisp.org>
44172
44173         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44174         for the various Unix platforms.
44175         * doc/posix-headers/limits.texi: Update platforms list regarding
44176         HOST_NAME_MAX.
44177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44178
44179 2009-08-07  Jim Meyering  <meyering@redhat.com>
44180
44181         selinux-at: fix typo in a comment
44182         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44183         Spotted by Paolo Bonzini.
44184
44185         selinux-at: remove redundant m4 code, add documentation
44186         * modules/selinux-at (configure.ac): Remove redundant code.
44187         LIB_SELINUX is already set via the dependent module, selinux-h.
44188         (Include): Add quotes around selinux-at.h.
44189         * lib/selinux-at.h: Add documentation.
44190         Reported by Bruno Haible in
44191         http://marc.info/?l=gnulib-bug&m=124958988300749
44192
44193 2009-08-07  Bruno Haible  <bruno@clisp.org>
44194
44195         Avoid link error on MacOS X 10.3 and 10.4.
44196         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44197         on non-ELF systems.
44198         * lib/argp-pv.c (argp_program_version): Likewise.
44199         Reported by Simon Josefsson.
44200
44201 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44202
44203         * tests/test-version-etc.sh: Use $EXEEXT.
44204
44205 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44206
44207         update-copyright: update documentation to point to maint.mk
44208         * build-aux/update-copyright: Here.
44209
44210 2009-08-06  Jim Meyering  <meyering@redhat.com>
44211
44212         maint.mk: support update-copyright-local
44213         * top/maint.mk (update-copyright-local): Define place-holder.
44214         (update-copyright): Depend on $(update-copyright-local).
44215
44216 2009-08-06  Jim Meyering  <meyering@redhat.com>
44217
44218         selinux-at: new module
44219         Initially written for coreutils, this module will soon be
44220         used by findutils, too.
44221         * MODULES.html.sh [Misc]: Add selinux-at.
44222         * lib/selinux-at.h: New file, from coreutils.
44223         * lib/selinux-at.c: Likewise.
44224         * modules/selinux-at: Likewise.
44225         (License): Change from LGPL to GPL, since it depends
44226         on the GPL'd openat module.
44227
44228         doc: update README
44229         * README: Remove references to cogito.
44230         Remove cvs-repo-updating instructions from 2007.
44231         Don't imply that CVS is better if you have limited disk space.
44232
44233 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44234
44235         update-copyright: support C-style comments
44236         * build-aux/update-copyright: Implement and document.
44237         * tests/test-update-copyright.sh: Test.
44238
44239 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44240
44241         update-copyright: support omitted "(C)"
44242         * build-aux/update-copyright: Implement and document.  Also,
44243         allow variable whitespace before "(C)".
44244         * tests/test-update-copyright.sh: Test.
44245
44246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44247
44248         update-copyright: don't trip on non-FSF copyright statements
44249         * build-aux/update-copyright: Fix so that the first correctly
44250         formatted FSF copyright statement is recognized no matter what
44251         appears before it.  Update documentation.
44252         * tests/test-update-copyright.sh: Test that.
44253
44254 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44255
44256         update-copyright: clean up code a little
44257         * build-aux/update-copyright: Append "_re" to the name of any
44258         variable holding a regular expression.
44259         Replace "old" and "new" with "stmt" in variable names.
44260         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44261         handled correctly.
44262         Format code more consistently.
44263
44264 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44265
44266         update-copyright-tests: improve portability
44267         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44268         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44269
44270 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44271
44272         update-copyright: support @copyright{} and &copy;
44273         * build-aux/update-copyright: Implement and document.
44274         * tests/test-update-copyright.sh: Test.
44275
44276 2009-08-04  Jim Meyering  <meyering@redhat.com>
44277
44278         update-copyright-tests: correctly test EOL=\r\n handling
44279         * tests/test-update-copyright.sh: Put \r at the end of some lines
44280         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44281
44282         maint.mk: make update-copyright exclusion list more configurable
44283         * top/maint.mk (update-copyright): Default to excluding COPYING,
44284         but allow an override, in case someone does want to update that file.
44285
44286         maint.mk: don't update copyright date in COPYING
44287         * top/maint.mk (update-copyright): Exclude COPYING.
44288
44289         maint.mk: add a copyright-updating rule
44290         * top/maint.mk (update-copyright): New rule.
44291         Derived from coreutils/Makefile.am.
44292
44293         update-copyright: rename some variables
44294         * build-aux/update-copyright: Rename a few variables for clarity.
44295         Tweak syntax.  List Joel E. Denny as coauthor.
44296
44297 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44298
44299         update-copyright: fix bug for 2-digit last year and add tests
44300         * build-aux/update-copyright: Fix bug.
44301         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44302         specified.
44303         * modules/update-copyright-tests: New
44304         * tests/test-update-copyright.sh: New.
44305
44306 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44307
44308         update-copyright: handle leading tabs in line prefix
44309         * build-aux/update-copyright: Count leading tabs as 8 spaces
44310         when computing margin.  This helps with the formatting of
44311         ChangeLogs, for example.
44312         Fix documentation a little.
44313
44314 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44315
44316         update-copyright: support EOL=\r\n
44317         * build-aux/update-copyright: Implement that.
44318
44319 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44320
44321         update-copyright: automatically format copyright statements
44322         * build-aux/update-copyright: Implement that.
44323         Also, be a little more predictable and safer by always failing
44324         when the full copyright format is not perfectly recognized as an
44325         unbroken whole.  Discussed at
44326         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44327         Rewrite documentation.
44328
44329 2009-08-03  Bruno Haible  <bruno@clisp.org>
44330
44331         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44332
44333 2009-08-02  Bruno Haible  <bruno@clisp.org>
44334
44335         Tests for module 'uname'.
44336         * modules/uname-tests: New file.
44337         * tests/test-uname.c: New file.
44338
44339         New module 'uname'.
44340         * lib/uname.c: New file.
44341         * m4/uname.m4: New file.
44342         * modules/uname: New file.
44343         * doc/posix-functions/uname.texi: Mention the new module.
44344
44345 2009-08-02  Bruno Haible  <bruno@clisp.org>
44346
44347         Tests for module 'sys_utsname'.
44348         * modules/sys_utsname-tests: New file.
44349         * tests/test-sys_utsname.c: New file.
44350
44351         New module 'sys_utsname'.
44352         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44353         * m4/sys_utsname_h.m4: New file.
44354         * modules/sys_utsname: New file.
44355         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44356
44357 2009-08-02  Bruno Haible  <bruno@clisp.org>
44358
44359         Implicitly initialize the sockets library.
44360         * lib/gethostname.c: Include sockets.h.
44361         (rpl_gethostname): Invoke gl_sockets_startup.
44362         * lib/socket.c: Include sockets.h.
44363         (rpl_socket): Invoke gl_sockets_startup.
44364         * modules/gethostname (Depends-on): Add sockets.
44365         * modules/socket (Depends-on): Likewise.
44366         * tests/test-poll.c: Don't include sockets.h.
44367         (main): Don't invoke gl_sockets_startup.
44368         * tests/test-select.c: Don't include sockets.h.
44369         (main): Don't invoke gl_sockets_startup.
44370
44371 2009-08-02  Bruno Haible  <bruno@clisp.org>
44372
44373         Allow multiple calls to gl_sockets_startup.
44374         * lib/sockets.c (initialized_sockets_version): New variable.
44375         (gl_sockets_startup): Do nothing if already called for this or a higher
44376         version.
44377         (gl_sockets_cleanup): Reset initialized_sockets_version.
44378
44379 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44380
44381         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44382         different project/version.
44383
44384 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44385             Bruno Haible  <bruno@clisp.org>
44386
44387         Tests for module 'pipe-filter-gi'.
44388         * modules/pipe-filter-gi-tests: New file.
44389         * tests/test-pipe-filter-gi1.sh: New file.
44390         * tests/test-pipe-filter-gi1.c: New file.
44391         * tests/test-pipe-filter-gi2.sh: New file.
44392         * tests/test-pipe-filter-gi2-main.c: New file.
44393         * tests/test-pipe-filter-gi2-child.c: New file.
44394
44395         New module 'pipe-filter-gi'.
44396         * lib/pipe-filter-gi.c: New file.
44397         * modules/pipe-filter-gi: New file.
44398
44399 2009-08-02  Bruno Haible  <bruno@clisp.org>
44400             Paolo Bonzini  <bonzini@gnu.org>
44401
44402         Tests for module 'pipe-filter-ii'.
44403         * modules/pipe-filter-ii-tests: New file.
44404         * tests/test-pipe-filter-ii1.sh: New file.
44405         * tests/test-pipe-filter-ii1.c: New file.
44406         * tests/test-pipe-filter-ii2.sh: New file.
44407         * tests/test-pipe-filter-ii2-main.c: New file.
44408         * tests/test-pipe-filter-ii2-child.c: New file.
44409
44410         New module 'pipe-filter-ii'.
44411         * lib/pipe-filter.h: New file.
44412         * lib/pipe-filter-ii.c: New file.
44413         * lib/pipe-filter-aux.h: New file.
44414         * modules/pipe-filter-ii: New file.
44415
44416 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44417
44418         * lib/gc-libgcrypt.c: Change copyright to FSF.
44419         * lib/gc-gnulib.c: Likewise.
44420
44421 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44422
44423         * lib/gethostname.c: Include limits.h.
44424
44425 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44426             Bruno Haible  <bruno@clisp.org>
44427
44428         Ensure HOST_NAME_MAX as part of the gethostname module.
44429         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44430         define also HOST_NAME_MAX.
44431         * tests/test-gethostname.c: Include <limits.h>.
44432         (main): Check also HOST_NAME_MAX.
44433         * doc/posix-headers/limits.texi: Document the mingw problem.
44434
44435 2009-08-02  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44438         Add comments.
44439
44440 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44441
44442         * lib/gethostname.c: Add Windows wrapper.
44443         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44444         * modules/gethostname: Depend on sys_socket & errno, for also
44445         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44446         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44447
44448 2009-07-31  Jim Meyering  <meyering@redhat.com>
44449
44450         getloadavg: fix symbol name in comment
44451         * lib/getloadavg.c: Correct a typo I introduced when adding
44452         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44453         Matt Kraai spotted the problem.
44454
44455 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44456
44457         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44458         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44459         code also if ! defined N_NAME_POINTER.
44460         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44461         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44462         but the n_name member is a 12-byte array.
44463
44464 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44465
44466         update-copyright: generalize comment handling
44467         * build-aux/update-copyright: Handle copyright statements
44468         within more comment styles.
44469         Document usage.
44470         Report any file with an external copyright holder or parse failure.
44471
44472 2009-07-29  Jim Meyering  <meyering@redhat.com>
44473
44474         mktime: correct setting of REPLACE_MKTIME
44475         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44476
44477         update-copyright: new module
44478         * modules/update-copyright: New file.
44479         * build-aux/update-copyright: New file.
44480         * MODULES.html.sh (maint+release support): Add update-copyright.
44481
44482 2009-07-27  Bruno Haible  <bruno@clisp.org>
44483
44484         Fix compilation error when <ctime> is used and mktime is replaced.
44485         * lib/time.in.h (mktime): New declaration.
44486         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44487         REPLACE_MKTIME instead of defining mktime in config.h.
44488         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44489         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44490         Reported by Ross McFarland <rwmcfa1@neces.com>.
44491
44492 2009-07-27  Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44495         Reported by Matt Kraai <mkraai@beckman.com>.
44496
44497 2009-07-25  Jim Meyering  <meyering@redhat.com>
44498
44499         maint.mk: avoid warnings about missing files
44500         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44501         diagnostic when .prev-version does not exist.
44502         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44503         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44504         nonexistent cfg.mk.
44505         Suggestions from Simon Josefsson.
44506
44507 2009-07-25  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44510         defined as macros. Needed on QNX 6.4.1.
44511         Reported by Matt Kraai <mkraai@beckman.com>.
44512
44513 2009-07-23  Jim Meyering  <meyering@redhat.com>
44514
44515         maint.mk: invoke "make dist" with a working value of XZ_OPT
44516         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44517
44518 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44519
44520         Make fseeko.c compile on QNX.
44521         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44522
44523 2009-07-22  Peter Simons  <simons@cryp.to>
44524
44525         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44526         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44527         * lib/md4.h: Likewise.
44528         * lib/md5.h: Likewise.
44529         * lib/sha1.h: Likewise.
44530         * lib/sha256.h: Likewise.
44531         * lib/sha512.h: Likewise.
44532
44533         tests-sha1: don't assign literal string to 'char *' variable
44534         * tests/test-sha1.c (main): Declare locals with "const" to match
44535         attributes of the right hand side.
44536
44537 2009-07-21  Eric Blake  <ebb9@byu.net>
44538
44539         dup2: fix more mingw problems
44540         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44541         fd to itself.
44542         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44543         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44544         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44545         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44546         care of mingw bugs.
44547
44548 2009-07-21  Jim Meyering  <meyering@redhat.com>
44549
44550         vc-list-files: avoid failure when /bin/sh is dash
44551         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44552         On some Debian based systems, /bin/sh is a symlink to dash, and running
44553         this command would omit the "/" following each 'tests' prefix:
44554           dash -x build-aux/vc-list-files -C . tests
44555         That is because bash and dash work differently:
44556           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44557           bash ok
44558           dash odd
44559
44560 2009-07-21  Eric Blake  <ebb9@byu.net>
44561
44562         dup2-tests: test previous patch
44563         * modules/dup2-tests: New file.
44564         * tests/test-dup2.c: Likewise.
44565         * tests/test-open.c (main): Avoid unspecified behavior.
44566         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44567         test.
44568
44569         dup2: work around mingw and cygwin 1.5 bug
44570         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44572         * modules/unistd (Makefile.am): Substitute it.
44573         * lib/unistd.in.h (dup2): Declare the replacement.
44574         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44575         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44576         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44577         * modules/execute (Depends-on): Add dup2.
44578         * modules/fseterr (Depends-on): Likewise.
44579         * modules/pipe (Depends-on): Likewise.
44580         * modules/posix_spawn-internal (Depends-on): Likewise.
44581
44582 2009-07-21  Bruno Haible  <bruno@clisp.org>
44583
44584         * modules/.gitattributes: New file.
44585
44586 2009-07-20  Bruno Haible  <bruno@clisp.org>
44587
44588         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44589         (main): Use it.
44590
44591 2009-07-20  Eric Blake  <ebb9@byu.net>
44592
44593         test-pipe: make a bit more robust.
44594         * tests/test-pipe.c (myerr): Allow error messages regardless of
44595         what we do to stderr.
44596         (test_pipe): Rearrange to avoid deadlock.
44597         (child_main): Try a larger read, to ensure we avoided deadlock.
44598         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44599         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44600         if misused.
44601
44602 2009-07-19  Jim Meyering  <meyering@redhat.com>
44603
44604         fts: avoid false-positive cycle-detection
44605         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44606         for each new command line argument.
44607
44608 2009-07-19  Bruno Haible  <bruno@clisp.org>
44609
44610         Fix build error on mingw with the modules sys_select and unistd.
44611         * modules/acl-tests (Depends-on): Add close.
44612         * modules/binary-io-tests (Depends-on): Likewise.
44613         * modules/closein-tests (Depends-on): Likewise.
44614         * modules/flock-tests (Depends-on): Likewise.
44615         * modules/fsync-tests (Depends-on): Likewise.
44616         * modules/lseek-tests (Depends-on): Likewise.
44617         * modules/pipe-tests (Depends-on): Likewise.
44618         * modules/posix_spawn-tests (Depends-on): Likewise.
44619         * modules/posix_spawnp-tests (Depends-on): Likewise.
44620         * modules/stat-time-tests (Depends-on): Likewise.
44621         * modules/yesno-tests (Depends-on): Likewise.
44622
44623 2009-07-19  Bruno Haible  <bruno@clisp.org>
44624
44625         Unify conditionals.
44626         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44627         macros, not at the compiler macros.
44628         * lib/pipe.c: Likewise.
44629         * lib/execute.c: Likewise.
44630         * lib/spawni.c: Likewise.
44631
44632 2009-07-19  Bruno Haible  <bruno@clisp.org>
44633
44634         Fix handling of closed stdin/stdout/stderr on mingw.
44635         * lib/w32spawn.h: Include unistd.h.
44636         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44637         file descriptor with O_NOINHERIT flag.
44638         (fd_safer_noinherit): New function, based on fd-safer.c.
44639         (dup_safer_noinherit): New function, based on dup-safer.c.
44640         (undup_safer_noinherit): New function.
44641         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44642         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44643         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44644         instead of fd_safer.
44645         * tests/test-pipe.c: Include <windows.h>.
44646         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44647         result.
44648
44649         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44650         from main.
44651         (test_pipe): Pass an extra argument for disambiguation.
44652         (main): Invoke parent_main or child_main.
44653
44654         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44655         consistently.
44656
44657 2009-07-18  Eric Blake  <ebb9@byu.net>
44658
44659         test-pipe: fix mingw build
44660         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44661
44662 2009-07-18  Bruno Haible  <bruno@clisp.org>
44663
44664         * modules/pipe-tests (Makefile.am): Fix typo.
44665
44666 2009-07-18  Eric Blake  <ebb9@byu.net>
44667
44668         error: fix mingw build
44669         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44670         Reported by Bruno Haible.
44671
44672         error: avoid undefined use of stdout
44673         * lib/error.c (error, error_at_line): Check that fd 1 is open
44674         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44675         is handling faults and the close_stdout module wants to report the
44676         detection of closed stdout as an error.
44677
44678 2009-07-17  Eric Blake  <ebb9@byu.net>
44679
44680         pipe: be robust in face of closed fds
44681         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44682         should cause child to misbehave.
44683         * modules/pipe-tests: New module.
44684         * tests/test-pipe.c: New file.
44685         * tests/test-pipe.sh: New file.
44686         Reported by Akim Demaille.
44687
44688 2009-07-14  Bruno Haible  <bruno@clisp.org>
44689
44690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44691         Reported by anonymous kc.
44692
44693 2009-07-07  Jim Meyering  <meyering@redhat.com>
44694
44695         maint.mk: don't look for translatable strings in *.m4 or *.mk
44696         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44697         when searching for translatable strings.
44698
44699 2009-07-05  Jim Meyering  <meyering@redhat.com>
44700
44701         remove superfluous parentheses in STREQ definition
44702         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44703         * lib/getugroups.c (STREQ): Likewise.
44704         * lib/fnmatch.c (STREQ): Likewise.
44705         Spotted by Bruno Haible.
44706
44707 2009-07-04  Jim Meyering  <meyering@redhat.com>
44708
44709         argv-iter: new module
44710         * MODULES.html.sh: Add argv-iter.
44711         * lib/argv-iter.c, lib/argv-iter.h: New files.
44712         * modules/argv-iter: New file.
44713         * modules/argv-iter-tests: New file.
44714         * tests/test-argv-iter.c: Test it.
44715
44716 2009-07-04  Bruno Haible  <bruno@clisp.org>
44717
44718         Fix assertion.
44719         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44720         contains more exact copies of a given entry than file2, leave the extra
44721         copies unpaired rather than aborting.
44722         Reported by Eric Blake.
44723
44724 2009-07-02  Bruno Haible  <bruno@clisp.org>
44725
44726         Speedup git-merge-changelog for git cherry-pick.
44727         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44728         (entries_mapping_get): New function, extracted from compute_mapping.
44729         (entries_mapping_reverse_get): New function.
44730         (compute_mapping): Add a 'full' argument. Return the result in a
44731         'struct entries_mapping'.
44732         (main): Update. Access the mappings through entries_mapping_get.
44733         Reported by Eric Blake.
44734
44735 2009-07-02  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44738         best_i.
44739
44740 2009-07-02  Bruno Haible  <bruno@clisp.org>
44741
44742         Speed up approximate search for matching ChangeLog entries.
44743         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44744         argument. Call fstrcmp_bounded instead of fstrcmp.
44745         (compute_mapping, try_split_merged_entry, main): Update callers.
44746
44747 2009-07-02  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44750
44751 2009-06-30  Bruno Haible  <bruno@clisp.org>
44752
44753         Reduce the number of uc_is_cased calls.
44754         * lib/unicase.h (casing_suffix_context_t): Add
44755         'first_char_except_ignorable' field.
44756         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44757         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44758         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44759         Update initializer.
44760         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44761         case-ignorable characters.
44762         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44763         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44764         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44765         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44766         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44767
44768 2009-06-30  Bruno Haible  <bruno@clisp.org>
44769
44770         Tests for module 'unicase/ignorable'.
44771         * modules/unicase/ignorable-tests: New file.
44772         * tests/unicase/test-ignorable.c: New file, generated by
44773         gen-uni-tables.
44774
44775         Tests for module 'unicase/cased'.
44776         * modules/unicase/cased-tests: New file.
44777         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44778         * tests/unicase/test-predicate-part1.h: New file, derived from
44779         tests/unictype/test-predicate-part1.h.
44780         * tests/unicase/test-predicate-part2.h: New file, same as
44781         tests/unictype/test-predicate-part2.h.
44782
44783         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44784         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44785         (output_casing_properties): New function.
44786         (main): Call it.
44787         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44788         * lib/unicase/cased.c: Include unictype/bitmap.h.
44789         (uc_is_cased): Define through a bitmap lookup.
44790         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44791         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44792         (uc_is_case_ignorable): Define through a bitmap lookup.
44793         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44794         lib/unictype/bitmap.h.
44795         (Depends-on): Add inline. Clean up.
44796         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44797         lib/unictype/bitmap.h.
44798         (Depends-on): Add inline. Clean up.
44799         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44800         recognition.
44801         * tests/unicase/test-u16-tolower.c (main): Likewise.
44802         * tests/unicase/test-u32-tolower.c (main): Likewise.
44803
44804 2009-06-30  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44807         * lib/unicase/u16-casemap.c: Likewise.
44808         * lib/unicase/u32-casemap.c: Likewise.
44809
44810 2009-06-29  Bruno Haible  <bruno@clisp.org>
44811
44812         Define u32_casefold as a wrapper around u32_ct_casefold.
44813         * lib/unicase/u32-casefold.c: Update.
44814         * modules/unicase/u32-casefold (Depends-on): Add
44815         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44816         unicase/empty-suffix-context. Clean up.
44817
44818         Define u16_casefold as a wrapper around u16_ct_casefold.
44819         * lib/unicase/u16-casefold.c: Update.
44820         * modules/unicase/u16-casefold (Depends-on): Add
44821         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44822         unicase/empty-suffix-context. Clean up.
44823
44824         Define u8_casefold as a wrapper around u8_ct_casefold.
44825         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44826         * lib/unicase/u8-casefold.c: Update.
44827         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44828         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44829
44830         Define u32_totitle as a wrapper around u32_ct_totitle.
44831         * lib/unicase/u32-totitle.c: Update.
44832         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44833         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44834
44835         Define u16_totitle as a wrapper around u16_ct_totitle.
44836         * lib/unicase/u16-totitle.c: Update.
44837         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44838         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44839
44840         Define u8_totitle as a wrapper around u8_ct_totitle.
44841         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44842         functions.
44843         (FUNC): Delegate to U_CT_TOTITLE.
44844         * lib/unicase/u8-totitle.c: Update.
44845         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44846         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44847
44848         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44849         invocation.
44850         * modules/unicase/u32-tolower (Depends-on): Add
44851         unicase/empty-prefix-context, unicase/empty-suffix-context.
44852
44853         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44854         invocation.
44855         * modules/unicase/u16-tolower (Depends-on): Add
44856         unicase/empty-prefix-context, unicase/empty-suffix-context.
44857
44858         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44859         * modules/unicase/u8-tolower (Depends-on): Add
44860         unicase/empty-prefix-context, unicase/empty-suffix-context.
44861
44862         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44863         invocation.
44864         * modules/unicase/u32-toupper (Depends-on): Add
44865         unicase/empty-prefix-context, unicase/empty-suffix-context.
44866
44867         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44868         invocation.
44869         * modules/unicase/u16-toupper (Depends-on): Add
44870         unicase/empty-prefix-context, unicase/empty-suffix-context.
44871
44872         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44873         * modules/unicase/u8-toupper (Depends-on): Add
44874         unicase/empty-prefix-context, unicase/empty-suffix-context.
44875
44876         New module 'unicase/u32-ct-casefold'.
44877         * lib/unicase/u32-ct-casefold.c: New file.
44878         * modules/unicase/u32-ct-casefold: New file.
44879
44880         New module 'unicase/u16-ct-casefold'.
44881         * lib/unicase/u16-ct-casefold.c: New file.
44882         * modules/unicase/u16-ct-casefold: New file.
44883
44884         New module 'unicase/u8-ct-casefold'.
44885         * lib/unicase/u8-ct-casefold.c: New file.
44886         * lib/unicase/u-ct-casefold.h: New file, derived from
44887         lib/unicase/u-casefold.h.
44888         * modules/unicase/u8-ct-casefold: New file.
44889
44890         New module 'unicase/u32-ct-totitle'.
44891         * lib/unicase/u32-ct-totitle.c: New file.
44892         * modules/unicase/u32-ct-totitle: New file.
44893
44894         New module 'unicase/u16-ct-totitle'.
44895         * lib/unicase/u16-ct-totitle.c: New file.
44896         * modules/unicase/u16-ct-totitle: New file.
44897
44898         New module 'unicase/u8-ct-totitle'.
44899         * lib/unicase/u8-ct-totitle.c: New file.
44900         * lib/unicase/u-ct-totitle.h: New file, derived from
44901         lib/unicase/u-totitle.h.
44902         * modules/unicase/u8-ct-totitle: New file.
44903
44904         New module 'unicase/u32-ct-tolower'.
44905         * lib/unicase/u32-ct-tolower.c: New file.
44906         * modules/unicase/u32-ct-tolower: New file.
44907
44908         New module 'unicase/u16-ct-tolower'.
44909         * lib/unicase/u16-ct-tolower.c: New file.
44910         * modules/unicase/u16-ct-tolower: New file.
44911
44912         New module 'unicase/u8-ct-tolower'.
44913         * lib/unicase/u8-ct-tolower.c: New file.
44914         * modules/unicase/u8-ct-tolower: New file.
44915
44916         New module 'unicase/u32-ct-toupper'.
44917         * lib/unicase/u32-ct-toupper.c: New file.
44918         * modules/unicase/u32-ct-toupper: New file.
44919
44920         New module 'unicase/u16-ct-toupper'.
44921         * lib/unicase/u16-ct-toupper.c: New file.
44922         * modules/unicase/u16-ct-toupper: New file.
44923
44924         New module 'unicase/u8-ct-toupper'.
44925         * lib/unicase/u8-ct-toupper.c: New file.
44926         * modules/unicase/u8-ct-toupper: New file.
44927
44928         Add context arguments to u*_casemap functions.
44929         * lib/unicase/unicasemap.h: Include unicase.h.
44930         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44931         suffix_context arguments.
44932         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44933         functions.
44934         (FUNC): Add prefix_context and suffix_context arguments. Use
44935         uc_is_cased and uc_is_case_ignorable.
44936         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44937         * lib/unicase/u16-casemap.c: Likewise.
44938         * lib/unicase/u32-casemap.c: Likewise.
44939         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44940         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44941         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44942         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44943         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44944         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44945
44946         New module 'unicase/u32-suffix-context'.
44947         * lib/unicase/u32-suffix-context.c: New file.
44948         * modules/unicase/u32-suffix-context: New file.
44949
44950         New module 'unicase/u16-suffix-context'.
44951         * lib/unicase/u16-suffix-context.c: New file.
44952         * modules/unicase/u16-suffix-context: New file.
44953
44954         New module 'unicase/u8-suffix-context'.
44955         * lib/unicase/u8-suffix-context.c: New file.
44956         * lib/unicase/u-suffix-context.h: New file.
44957         * modules/unicase/u8-suffix-context: New file.
44958
44959         New module 'unicase/empty-suffix-context'.
44960         * lib/unicase/empty-suffix-context.c: New file.
44961         * modules/unicase/empty-suffix-context: New file.
44962
44963         New module 'unicase/u32-prefix-context'.
44964         * lib/unicase/u32-prefix-context.c: New file.
44965         * modules/unicase/u32-prefix-context: New file.
44966
44967         New module 'unicase/u16-prefix-context'.
44968         * lib/unicase/u16-prefix-context.c: New file.
44969         * modules/unicase/u16-prefix-context: New file.
44970
44971         New module 'unicase/u8-prefix-context'.
44972         * lib/unicase/u8-prefix-context.c: New file.
44973         * lib/unicase/u-prefix-context.h: New file.
44974         * lib/unicase/context.h: New file.
44975         * modules/unicase/u8-prefix-context: New file.
44976
44977         New module 'unicase/empty-prefix-context'.
44978         * lib/unicase/empty-prefix-context.c: New file.
44979         * modules/unicase/empty-prefix-context: New file.
44980
44981         New module 'unicase/ignorable'.
44982         * lib/unicase/ignorable.c: New file.
44983         * modules/unicase/ignorable: New file.
44984
44985         New module 'unicase/cased'.
44986         * lib/unicase/caseprop.h: New file.
44987         * lib/unicase/cased.c: New file.
44988         * modules/unicase/cased: New file.
44989
44990         New functions for case mapping of substrings.
44991         * lib/unicase.h (casing_prefix_context_t): New type.
44992         (unicase_empty_prefix_context): New variable.
44993         (u8_casing_prefix_context, u16_casing_prefix_context,
44994         u32_casing_prefix_context, u8_casing_prefixes_context,
44995         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44996         declarations.
44997         (casing_suffix_context_t): New type.
44998         (unicase_empty_suffix_context): New variable.
44999         (u8_casing_suffix_context, u16_casing_suffix_context,
45000         u32_casing_suffix_context, u8_casing_suffixes_context,
45001         u16_casing_suffixes_context, u32_casing_suffixes_context,
45002         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45003         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45004         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45005         declarations.
45006
45007 2009-06-28  Jim Meyering  <meyering@redhat.com>
45008
45009         boostrap: indent only with spaces
45010         * build-aux/bootstrap: Indent only with spaces, never TABs.
45011
45012         bootstrap: split long lines
45013         * build-aux/bootstrap: Keep line length < 80.
45014
45015         bootstrap: sync from coreutils
45016         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45017         just as autoreconf does.  Verify a list of prerequisite
45018         package-name,version-number pairs if defined in bootstrap.conf.
45019         Refer to README-prereq, if prerequisites are not satisfied.
45020
45021 2009-06-27  Eric Blake  <ebb9@byu.net>
45022
45023         tests: add test for bogus NULL definition
45024         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45025         * tests/test-stdlib.c: Likewise.
45026         * tests/test-string.c: Likewise.
45027         * tests/test-locale.c: Likewise.
45028         * tests/test-unistd.c: Likewise.
45029         * modules/stdio-tests (Depends-on): Add verify.
45030         * modules/stdlib-tests (Depends-on): Likewise.
45031         * modules/string-tests (Depends-on): Likewise.
45032         * modules/locale-tests (Depends-on): Likewise.
45033         * modules/unistd-tests (Depends-on): Likewise.
45034
45035 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45036
45037         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45038         self-explaining comment.
45039         * m4/selinux-selinux-h: Update serial.
45040         (gl_LIBSELINUX): New macro, adding a warning for missing development
45041         packages to code extracted from...
45042         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45043         Add warning for missing development packages here, too.
45044
45045 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45046
45047         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45048
45049 2009-06-25  Eric Blake  <ebb9@byu.net>
45050
45051         version-etc: fix regression
45052         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45053         gcc.
45054         (version_etc): Use it, to catch bugs with trailing NULL.
45055         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45056         (version_etc_va): Fix logic bug.
45057         * modules/version-etc-tests: Add test.
45058         * tests/test-version-etc.c: New file.
45059         * tests/test-version-etc.sh: Likewise.
45060
45061 2009-06-25  Sam Steingold  <sds@gnu.org>
45062
45063         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45064         mbtowc declaration.
45065
45066 2009-06-25  Eric Blake  <ebb9@byu.net>
45067
45068         fpurge: migrate into <stdio.h>
45069         * lib/fpurge.h: Delete...
45070         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45071         * lib/fpurge.c (fpurge): Change declaring header.
45072         * modules/fpurge (Files): Drop deleted file.
45073         (Depends-on): Add stdio.
45074         (configure.ac): Set witness.
45075         * modules/stdio (Makefile.am): Support fpurge macros.
45076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45077         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45078         * lib/fflush.c: Update client.
45079         * tests/test-fpurge.c: Likewise.
45080         * NEWS: Mention the change.
45081
45082 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45083
45084         * lib/argp-version-etc.c (program_authors): Add const
45085         qualifier.
45086         * lib/version-etc.c: Fix typos in the comments.
45087         * modules/argp-version-etc: Depends on version-etc.
45088
45089 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45090
45091         argp-version-etc: new module.
45092
45093         * lib/argp-version-etc.c: New file.
45094         * lib/argp-version-etc.h: New file.
45095         * modules/argp-version-etc: New file.
45096         * modules/argp-version-etc-tests: New file.
45097         * tests/test-argp-version-etc.c: New test.
45098         * tests/test-argp-version-etc-1.sh: New test.
45099
45100 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45101
45102         Provide additional interfaces and documentation for version-etc
45103         module.
45104
45105         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45106         interfaces.
45107         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45108         prototypes.
45109
45110 2009-06-24  Bruno Haible  <bruno@clisp.org>
45111
45112         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45113         HAVE_LIB${NAME} macro.
45114         Reported by Sam Steingold <sds@gnu.org>.
45115
45116 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45117
45118         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45119         needed.
45120
45121 2009-06-21  Bruno Haible  <bruno@clisp.org>
45122
45123         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45124         work.
45125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45126         together with LIB${NAME}, LTLIB${NAME}.
45127         Reported by Sam Steingold <sds@gnu.org>.
45128
45129 2009-06-20  Jim Meyering  <meyering@redhat.com>
45130
45131         tests: make sc_require_test_exit_idiom more generic
45132         * top/maint.mk (Exit_witness_file): New overridable variable.
45133         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45134         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45135
45136 2009-06-19  Jim Meyering  <meyering@redhat.com>
45137
45138         hash: reverse order of src/dst parameters in an internal interface
45139         * lib/hash.c (transfer_entries): Reverse order of parameters to
45140         put DST before SRC.  Adjust callers.
45141
45142         tests: test-hash: avoid wholesale duplication
45143         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45144         Instead, use a loop and add a single conditional.
45145
45146         tests: test-hash: allow seed selection via a command line argument
45147         * tests/test-hash.c (get_seed): New function.
45148         (main): Use it.
45149
45150 2009-06-19  Eric Blake  <ebb9@byu.net>
45151
45152         hash: avoid memory leak on allocation failure
45153         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45154         failure.  Factor repeated algorithm...
45155         (transfer_entries): ...into new helper routine.
45156         (hash_delete): React to hash_rehash return value.
45157
45158         hash: reduce memory pressure in hash_rehash no-op case
45159         * lib/hash.c (next_prime): Avoid overflow.
45160         (hash_initialize): Factor bucket size computation...
45161         (compute_bucket_size): ...into new helper function.
45162         (hash_rehash): Use new function and open coding to reduce memory
45163         pressure, and avoid a memory leak in USE_OBSTACK code.
45164         Reported by Jim Meyering.
45165
45166 2009-06-18  Eric Blake  <ebb9@byu.net>
45167
45168         hash: make rotation more obvious
45169         * modules/hash (Depends-on): Add bitrotate and stdint.
45170         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45171         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45172         (SIZE_MAX): Rely on headers for definition.
45173         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45174         (raw_hasher): Use rotr_sz.
45175         Suggested by Jim Meyering.
45176
45177         hash: fix memory leak in last patch
45178         * lib/hash.c (hash_rehash): Avoid memory leak.
45179
45180         hash: avoid no-op rehashing
45181         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45182
45183         hash: provide default callback functions
45184         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45185         (hash_initialize): Use them as defaults.
45186         * tests/test-hash.c (main): Test this.
45187
45188         hash: minor optimization
45189         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45190         when possible.
45191         (hash_initialize): Document this promise.
45192         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45193         * tests/test-hash.c (hash_compare_strings): Test this.
45194
45195 2009-06-18  Bruno Haible  <bruno@clisp.org>
45196
45197         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45198         going to be replaced anyway.
45199
45200 2009-06-18  Bruno Haible  <bruno@clisp.org>
45201
45202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45203         in one place.
45204         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45205         be replaced anyway.
45206
45207 2009-06-18  Eric Blake  <ebb9@byu.net>
45208
45209         hash: check for resize before insertion
45210         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45211         threshold before insertion, so that a pathological hash_rehash
45212         that fills every bucket can still trigger another rehash.
45213
45214 2009-06-18  Jim Meyering  <meyering@redhat.com>
45215
45216         hash-tests: add a loop around the small tests
45217         * tests/test-hash.c (main): Repeat small tests with selected
45218         small initial table sizes.
45219
45220 2009-06-17  Eric Blake  <ebb9@byu.net>
45221
45222         hash: minor cleanups
45223         * lib/hash.h (hash_entry): Make opaque, by moving...
45224         * lib/hash.c (hash_entry): ...here.
45225         (hash_insert): Clarify restrictions on what can be inserted.
45226         (hash_get_next): Clarify when it is safe to remove an element
45227         during traversal.
45228         (check_tuning): Skip verification when tuning is known safe.
45229         (hash_initialize): Clarify restrictions on tuning.
45230
45231 2009-06-17  Jim Meyering  <jim@meyering.net>
45232         and Eric Blake  <ebb9@byu.net>
45233
45234         hash-tests: new module
45235         * modules/hash-tests: New file.
45236         * tests/test-hash.c: New file.
45237
45238 2009-06-17  Eric Blake  <ebb9@byu.net>
45239
45240         strstr-simple: document new module
45241         * MODULES.html.sh: Document new module.
45242
45243         strstr, strcasestr: replace on platforms with broken memchr
45244         * modules/strstr: Split into...
45245         * modules/strstr-simple: ...new module that does not care about
45246         performance, but does care about glibc bug.
45247         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45248         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45249         if platform memchr is broken, per Debian bug 521737.
45250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45251         memchr.
45252         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45253         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45254         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45255         * modules/mountlist (Depends-on): Add strstr-simple.
45256         * modules/gen-uni-tables (Depends-on): Likewise.
45257         * modules/argz (Depends-on): Add strstr.
45258
45259 2009-06-17  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/posix_spawn-internal (Depends-on): Add errno.
45262
45263 2009-06-17  Bruno Haible  <bruno@clisp.org>
45264
45265         Define missing ESTALE on Interix 3.5.
45266         * lib/errno.in.h (ESTALE): Assign a value if missing.
45267         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45268         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45269         missing.
45270         * doc/posix-headers/errno.texi: Mention the Interix bug.
45271         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45272
45273 2009-06-15  Eric Blake  <ebb9@byu.net>
45274
45275         memchr, memchr2: add valgrind exception
45276         * lib/memchr.valgrind: New file.
45277         * lib/memchr2.valgrind: New file.
45278         * modules/memchr (Files): Distribute valgrind file.
45279         * modules/memchr2 (Files): Likewise.
45280
45281         docs: memchr is no longer obsolete
45282         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45283         * lib/string.in.h (memchr): Simplify logic.
45284
45285 2009-06-14  Jim Meyering  <meyering@redhat.com>
45286
45287         link-follow: fix the "checking..." message to not mention trailing slash
45288         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45289         never considered trailing slashes.
45290
45291 2009-06-14  Bruno Haible  <bruno@clisp.org>
45292
45293         * m4/memchr.m4: Mention also the bug on IA-64.
45294         * doc/posix-functions/memchr.texi: Likewise.
45295
45296 2009-06-12  Eric Blake  <ebb9@byu.net>
45297
45298         memchr: detect broken x86_64 and alpha implementations
45299         * modules/memchr-tests (Depends-on): Move mmap detection...
45300         * modules/memchr (Depends-on): ...here.
45301         (configure.ac): Set indicator.
45302         * lib/string.in.h (memchr): Declare replacement.
45303         * modules/string (Makefile.am): Trigger replacement.
45304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45305         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45306         bugs.
45307         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45308         * modules/getpagesize (License): Relax license.
45309
45310 2009-06-11  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/idpriv.h: Add more references.
45313
45314 2009-06-08  Bruno Haible  <bruno@clisp.org>
45315
45316         Tests for module 'idpriv-droptemp'.
45317         * modules/idpriv-droptemp-tests: New file.
45318         * tests/test-idpriv-droptemp.sh: New file.
45319         * tests/test-idpriv-droptemp.su.sh: New file.
45320         * tests/test-idpriv-droptemp.c: New file.
45321
45322         New module 'idpriv-droptemp'.
45323         * lib/idpriv-droptemp.c: New file.
45324         * modules/idpriv-droptemp: New file.
45325
45326 2009-06-08  Bruno Haible  <bruno@clisp.org>
45327
45328         Tests for module 'idpriv-drop'.
45329         * modules/idpriv-drop-tests: New file.
45330         * tests/test-idpriv-drop.sh: New file.
45331         * tests/test-idpriv-drop.su.sh: New file.
45332         * tests/test-idpriv-drop.c: New file.
45333
45334         New module 'idpriv-drop'.
45335         * lib/idpriv.h: New file.
45336         * lib-idpriv-drop.c: New file.
45337         * m4/idpriv.m4: New file.
45338         * modules/idpriv-drop: New file.
45339
45340 2009-06-08  Bruno Haible  <bruno@clisp.org>
45341
45342         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45343         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45344         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45345         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45346         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45347         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45348         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45349
45350 2009-06-08  Eric Blake  <ebb9@byu.net>
45351
45352         test-strstr: use memory fence, when possible
45353         * tests/test-strstr.c (main): Use memory fence, in order to be
45354         more likely to trigger Debian bug 521737.
45355         * modules/strstr-tests (Files): Pull in additional files.
45356
45357         memchr: no longer obsolete, for wider field testing
45358         * modules/memchr (Status, Notice): Delete, this module is no
45359         longer obsolete.
45360         * modules/vasnprintf (Depends-on): Add memchr.
45361
45362 2009-06-07  Jim Meyering  <meyering@redhat.com>
45363
45364         hash: declare some functions with the warn_unused_result attribute
45365         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45366
45367 2009-06-07  Bruno Haible  <bruno@clisp.org>
45368
45369         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45370         Reported by Eric Blake.
45371
45372 2009-06-06  Eric Blake  <ebb9@byu.net>
45373
45374         test-alignof: fix typo with long double
45375         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45376         compiler error.
45377
45378 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45379
45380         Escape non-texinfo { and }s.
45381         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45382         markup error.
45383
45384 2009-06-04  Jim Meyering  <meyering@redhat.com>
45385
45386         gitlog-to-changelog: don't infloop on an empty commit log
45387         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45388         Reported by Boris Petersen <transacid@centerim.org>.
45389
45390 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45391
45392         version-etc: extend for packagers
45393         Add three new configure options, intended for packagers:
45394           --with-packager="packager name"
45395           --with-packager-version="packager-specific version"
45396           --with-packager-bug-reports="packager bug reporting"
45397         An example with coreutils:
45398           $ ./configure \
45399             --with-packager=Gentoo \
45400             --with-packager-bug-report=http://bugs.gentoo.org/ \
45401             --with-packager-version="patchset 1.6"
45402           $ ./src/ls --version | head -n2
45403           ls (GNU coreutils) 7.1-dirty
45404           Packaged by Gentoo (patchset 1.6)
45405         Note that the bug reporting info via --help doesn't show up because
45406         coreutils uses its own custom emit_bug_reporting_address() implementation
45407         in src/system.h.  If it didn't, it'd look like:
45408           $ ./src/ls --help | tail -n4
45409           Report bugs to <bug-coreutils@gnu.org>.
45410           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45411           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45412           General help using GNU software: <http://www.gnu.org/gethelp/>.
45413         * lib/version-etc.c: Print new information, if provided.
45414         * m4/version-etc.m4: New file.
45415         * modules/version-etc (Files): Add m4/version-etc.m4.
45416         (configure.ac): Add gl_VERSION_ETC.
45417
45418 2009-05-31  Bruno Haible  <bruno@clisp.org>
45419
45420         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45421         and 'int64_t'.
45422         * modules/alignof-tests (Dependencies): Add stdint.
45423         Reported by Eric Blake.
45424
45425 2009-05-31  Bruno Haible  <bruno@clisp.org>
45426
45427         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45428         restriction due to compiler bugs.
45429         Reported by Eric Blake.
45430
45431 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45432             Bruno Haible  <bruno@clisp.org>
45433
45434         Fix test-alignof failure.
45435         * lib/alignof.h (alignof_slot): New macro.
45436         (alignof_type): New macro, with the same semantics as the previous
45437         'alignof'.
45438         (alignof): Alias to alignof_slot.
45439         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45440         check that the results are usable as constant expressions.
45441
45442 2009-05-31  Bruno Haible  <bruno@clisp.org>
45443
45444         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45445         * tests/test-memchr.c (main): Check that memchr does not read past the
45446         first occurrence of the byte.
45447         * tests/test-strstr.c (main): Update comment.
45448         Suggested by Eric Blake.
45449
45450 2009-05-30  Bruno Haible  <bruno@clisp.org>
45451
45452         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45453         detail how to use dumpbin.
45454         Reported by David Byron <dbyron@dbyron.com>.
45455
45456 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45457
45458         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45459
45460 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45461
45462         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45463
45464 2009-05-28  Bruno Haible  <bruno@clisp.org>
45465
45466         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45467         build-aux/ files.
45468
45469 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45470
45471         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45472
45473 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45474
45475         * gnulib-tool (sed_transform_main_lib_file)
45476         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45477         regexps.
45478
45479 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45480
45481         * tests/test-strstr.c: Add another self-test.
45482         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45483         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45484
45485 2009-05-23  Bruno Haible  <bruno@clisp.org>
45486
45487         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45488         change.
45489
45490 2009-05-21  Bruno Haible  <bruno@clisp.org>
45491
45492         Simplify use of mode_t varargs.
45493         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45494         uses 'mode_t' or 'int'.
45495         * lib/openat.c (openat): Likewise.
45496         * lib/open-safer.c (open_safer): Likewise.
45497         * m4/mode_t.m4: New file.
45498         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45499         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45500         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45501         * modules/open (Files): Add m4/mode_t.m4.
45502         * modules/openat (Files): Likewise.
45503         * modules/fcntl-safer (Files): Likewise.
45504         Suggested by Eric Blake.
45505
45506 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45507
45508         * doc/glibc-functions/fallocate.texi: New file.
45509         * doc/gnulib.texi: Include it.
45510
45511 2009-05-21  Eric Blake  <ebb9@byu.net>
45512             Bruno Haible  <bruno@clisp.org>
45513
45514         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45515         invocations.
45516         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45517
45518 2009-05-21  Eric Blake  <ebb9@byu.net>
45519             Bruno Haible  <bruno@clisp.org>
45520
45521         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45522         include_next. Fix of 2008-11-20 commit.
45523         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45524         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45525         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45526         NEXT_MATH_H.
45527         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45528         instead of NEXT_MATH_H.
45529
45530 2009-05-21  Bruno Haible  <bruno@clisp.org>
45531
45532         Avoid redefinition warnings for SIZE_MAX.
45533         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45534         Reported by Simon Josefsson.
45535
45536 2009-05-21  Bruno Haible  <bruno@clisp.org>
45537
45538         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45539         AC_CACHE_VAL.
45540
45541 2009-05-20  Bruno Haible  <bruno@clisp.org>
45542
45543         Make zeroptr.h work on mingw.
45544         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45545         mprotect.
45546         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45547         * modules/memchr2-tests (configure.ac): Likewise.
45548         * modules/memcmp-tests (configure.ac): Likewise.
45549         * modules/memmem-tests (configure.ac): Likewise.
45550         * modules/memrchr-tests (configure.ac): Likewise.
45551         Reported by Simon Josefsson.
45552
45553 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45554
45555         * tests/test-glob.c: Include string.h for strcmp prototype.
45556
45557 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45558
45559         * modules/getdelim (Depends-on): Add explicit stdint, although it
45560         was implicitly already pulled in via realloc-posix.
45561         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45562
45563 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45564
45565         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45566         G. Christensen" <tgc@jupiterrise.com>.
45567         * m4/sys_socket_h.m4: Check for sa_family_t.
45568         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45569         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45570         * tests/test-sys_socket.c: Check that sa_family_t works.
45571
45572 2009-05-18  Eric Blake  <ebb9@byu.net>
45573
45574         maint.mk: allow gnulib_dir in VPATH build
45575         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45576
45577 2009-05-15  Jim Meyering  <meyering@redhat.com>
45578
45579         maint.mk: Give gnulib_dir a default definition.
45580         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45581         Thus, most packages no longer need to specify this variable in cfg.mk
45582
45583 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45584
45585         rename.m4: fix typos that would make non-mingw cross-configure fail
45586         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45587
45588 2009-05-13  Eric Blake  <ebb9@byu.net>
45589
45590         mmap-anon: avoid out-of-order autoconf expansion
45591         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45592         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45593         * modules/memchr-tests (Depends-on): Add extensions.
45594         * modules/memchr2-tests (Depends-on): Add extensions.
45595         * modules/memcmp-tests (Depends-on): Add extensions.
45596         * modules/memmem-tests (Depends-on): Add extensions.
45597         * modules/memrchr-tests (Depends-on): Add extensions.
45598
45599 2009-05-13  Bruno Haible  <bruno@clisp.org>
45600
45601         Make some tests ISO C 99 compliant.
45602         * tests/zerosize-ptr.h: New file.
45603         * tests/test-memchr.c: Include zerosize-ptr.h.
45604         (main): Use a zero-size object pointer instead of NULL.
45605         * tests/test-memchr2.c: Include zerosize-ptr.h.
45606         (main): Use a zero-size object pointer instead of NULL.
45607         * tests/test-memcmp.c: Include zerosize-ptr.h.
45608         (main): Use a zero-size object pointer instead of NULL.
45609         * tests/test-memmem.c: Include zerosize-ptr.h.
45610         (main): Use a zero-size object pointer instead of NULL.
45611         * tests/test-memrchr.c: Include zerosize-ptr.h.
45612         (main): Use a zero-size object pointer instead of NULL.
45613         * modules/memchr-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/memchr2-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/memcmp-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         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45626         m4/mmap-anon.m4.
45627         (Depends-on): Add getpagesize.
45628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45629         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45630         m4/mmap-anon.m4.
45631         (Depends-on): Add getpagesize.
45632         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45633
45634 2009-05-12  Bruno Haible  <bruno@clisp.org>
45635
45636         Tests for module 'alignof'.
45637         * modules/alignof-tests: New file.
45638         * tests/test-alignof.c: New file.
45639
45640 2009-05-12  Bruno Haible  <bruno@clisp.org>
45641
45642         Fix alignof macro.
45643         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45644         vendor compilers that are always correct.
45645
45646 2009-05-12  Bruno Haible  <bruno@clisp.org>
45647
45648         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45649         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45650         not whether its fully works.
45651
45652 2009-05-12  Bruno Haible  <bruno@clisp.org>
45653
45654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45655
45656 2009-05-12  Jim Meyering  <meyering@redhat.com>
45657
45658         * top/maint.mk: Adjust backslash alignment.
45659
45660 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45661
45662         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45663
45664 2009-05-11  Eric Blake  <ebb9@byu.net>
45665
45666         argp: avoid undefined behavior
45667         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45668         macros.
45669
45670 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45671
45672         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45673         user.name to prevent git commit from complaining.
45674
45675 2009-05-10  Bruno Haible  <bruno@clisp.org>
45676
45677         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45678         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45679         it rewrites every file name only once.
45680         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45681
45682 2009-05-08  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45685         instead of 'max'.
45686
45687 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45688
45689         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45690         sockaddr_storage test.
45691
45692 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45693
45694         * modules/sys_socket (Makefile.am): Substitute
45695         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45696         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45697         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45698         * tests/test-sys_socket.c: Check sockaddr_storage.
45699
45700 2009-05-08  Bruno Haible  <bruno@clisp.org>
45701
45702         New module 'alignof'.
45703         * lib/alignof.h: New file.
45704         * modules/alignof: New file.
45705
45706 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45707             Bruno Haible  <bruno@clisp.org>
45708
45709         Fix test-file-has-acl on FreeBSD.
45710         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45711         mask is implicitly added.
45712         * tests/test-file-has-acl.c: Include <signal.h>.
45713         (main): Terminate the test after 5 seconds.
45714         * modules/acl-tests (configure.ac): Check for alarm function.
45715
45716 2009-05-04  Bruno Haible  <bruno@clisp.org>
45717
45718         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45719         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45720         * modules/errno (configure.ac): Drop AC_REQUIRE.
45721         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45722         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45723
45724 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45725
45726         * modules/glob-tests: New module.
45727         * tests/test-glob.c: Add.
45728
45729 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45730
45731         * modules/fnmatch-tests: New module.
45732         * tests/test-fnmatch.c: Add.
45733
45734 2009-05-04  Eric Blake  <ebb9@byu.net>
45735
45736         maint: make the new no-submodule-changes rule VPATH-safe
45737         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45738
45739 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45740             Bruno Haible  <bruno@clisp.org>
45741
45742         acl: Fix infinite loop on FreeBSD.
45743         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45744         of return value from acl_get_entry.
45745         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45746         Likewise.
45747
45748 2009-05-03  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/acl-internal.h (acl_entries): Clarify return value.
45751         * lib/acl_entries.c (acl_entries): Likewise.
45752
45753 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45754
45755         Bug fix in acl module.
45756         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45757
45758 2009-05-03  Bruno Haible  <bruno@clisp.org>
45759
45760         Create gperf-generated file in the source dir, not in the build dir.
45761         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45762         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45763         * modules/unicase/locale-language (unicase/locale-languages.h):
45764         Likewise.
45765         * modules/unicase/special-casing (unicase/special-casing-table.h):
45766         Likewise.
45767         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45768         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45769         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45770         Reported by Ralf Wildenhues.
45771
45772 2009-05-03  Bruno Haible  <bruno@clisp.org>
45773
45774         * modules/fnmatch (Description, configure.ac): Taken from
45775         fnmatch-posix.
45776         * modules/fnmatch-posix: Turn into a symbolic reference to the
45777         'fnmatch' module, and deprecate.
45778         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45779
45780 2009-05-03  Bruno Haible  <bruno@clisp.org>
45781
45782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45783         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45784         Reported by Ralf Wildenhues.
45785
45786 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45787
45788         * m4/fnmatch.m4: Fix fnmatch re-define.
45789
45790 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45791
45792         priv-set: new module and tests; adapt write-any-file
45793         * lib/priv-set.c: New file.
45794         * lib/priv-set.h: New file.
45795         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45796         * lib/write-any-file.c: Simplify by using priv-set module.
45797         * m4/priv-set.m4: New file.
45798         * modules/priv-set: New file.
45799         * modules/unlinkdir: Add dependency on priv-set module.
45800         * modules/write-any-file: Likewise.
45801
45802         Tests for module 'priv-set'.
45803         * modules/priv-set-tests: New file.
45804         * tests/test-priv-set.c: New file.
45805
45806 2009-05-03  Jim Meyering  <meyering@redhat.com>
45807             Bruno Haible  <bruno@clisp.org>
45808
45809         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45810         use the converted UTF-8 variant of the name instead.
45811
45812 2009-05-03  Jim Meyering  <meyering@redhat.com>
45813
45814         tests: tighten some getdate tests
45815         * tests/test-getdate.c (main): Tighten tests: require equality,
45816         not just greater than.  Set TZ envvar to UTC0.
45817
45818 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45819
45820         getdate: correctly interpret "next monday" when run on a Monday
45821         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45822         that e.g., "next tues" (when run on a tuesday) results in a date
45823         that is one week in the future, and not today's date.
45824         I.e., add a week when the wday is the same as the current one.
45825         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45826         and earlier by Martin Bernreuther and Jan Minář.
45827         * tests/test-getdate.c (main): Check that "next DAY" is always in
45828         the future and that "last DAY" is always in the past.
45829
45830 2009-05-02  Jim Meyering  <meyering@redhat.com>
45831
45832         build: ensure that a release build fails when a submodule is unclean
45833         * top/maint.mk (no-submodule-changes): New rule.
45834         (alpha beta major): Depend on it.
45835
45836 2009-05-02  Bruno Haible  <bruno@clisp.org>
45837
45838         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45839         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45840         shell variable gl_fnmatch_required to detect which variant is
45841         requested.
45842         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45843         gl_FUNC_FNMATCH_POSIX.
45844         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45845         exclude fnmatch-posix.
45846
45847 2009-05-02  Bruno Haible  <bruno@clisp.org>
45848
45849         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45850         * modules/mbsrtowcs (License): Change to LGPLv2+.
45851         * modules/strnlen1 (License): Likewise.
45852         Reported by Simon Josefsson.
45853
45854 2009-05-02  Bruno Haible  <bruno@clisp.org>
45855
45856         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45857         "cross".
45858         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45859         gnulib-tool was called with option --source-base=lib.
45860
45861 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45862
45863         Use automake *-local hooks without commands, for extensibility.
45864         * modules/localcharset (Makefile.am): Rename install-exec-local
45865         rule to install-exec-localcharset, and make it a prerequisite of
45866         install-exec-local.  Likewise, rename the uninstall-local rule to
45867         uninstall-localcharset, and make it a prerequisite of the former.
45868
45869 2009-05-01  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45872         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45873         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45875         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45876         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45877         m4/locale-zh.m4, m4/codeset.m4.
45878
45879         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45880         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45881         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45882         m4/locale-zh.m4.
45883
45884         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45885         REPLACE_WCRTOMB if mbstate_t must be replaced.
45886         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45887         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45888
45889 2009-05-01  Bruno Haible  <bruno@clisp.org>
45890
45891         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45892         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45893         dngettext, dcngettext, textdomain, bindtextdomain,
45894         bind_textdomain_codeset): Undefine before redefining.
45895
45896 2009-04-30  Bruno Haible  <bruno@clisp.org>
45897
45898         Fix bug introduced on 2009-04-25.
45899         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45900         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45901         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45902         is defined.
45903         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45904         is defined.
45905         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45906         is defined.
45907         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45908
45909 2009-04-28  Bruno Haible  <bruno@clisp.org>
45910
45911         Comment tweaks.
45912         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45913         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45914         * lib/unicase.h (u*_casexfrm): Likewise.
45915         Reported by Paolo Bonzini.
45916
45917 2009-04-28  Bruno Haible  <bruno@clisp.org>
45918
45919         Fix a compilation error.
45920         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45921         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45922         Reported by Jim Meyering.
45923
45924 2009-04-27  Bruno Haible  <bruno@clisp.org>
45925
45926         New module 'libunistring'.
45927         * modules/libunistring: New file.
45928         * m4/libunistring.m4: New file.
45929         * MODULES.html.sh (Unicode string functions): Add it.
45930
45931 2009-04-27  Eric Blake  <ebb9@byu.net>
45932
45933         maint.mk: allow package-specific header to provide <config.h>
45934         * top/maint.mk (sc_require_config_h): New variable.
45935         (sc_require_config_h, sc_require_config_h_first): Use it.
45936
45937 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45938
45939         * top/maint.mk (sc_avoid_if_before_free): Except
45940         useless-if-before-free script.
45941
45942 2009-04-27  Eric Blake  <ebb9@byu.net>
45943
45944         maintainer-makefile: depend on all required helper scripts
45945         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45946         useless-if-before-free.
45947         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45948         version, rather than assuming gnulib checkout is available.
45949         Reported by Simen Josefsson.
45950
45951 2009-04-26  Bruno Haible  <bruno@clisp.org>
45952
45953         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45954         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45955         "../" or "..".
45956
45957 2009-04-26  Bruno Haible  <bruno@clisp.org>
45958
45959         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45960         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45961         AC_LIB_HAVE_LINKFLAGS.
45962
45963 2009-04-26  Bruno Haible  <bruno@clisp.org>
45964
45965         Simplify calling convention of u*_conv_from_encoding.
45966         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45967         u32_conv_from_encoding): Expect a resultbuf argument and return the
45968         result directly as a pointer.
45969         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45970         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45971         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45972         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45973         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45974         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45975         Update.
45976         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45977         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45978         * lib/vasnprintf.c (VASNPRINTF): Update.
45979         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45980         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45981         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45982         * NEWS: Mention the change.
45983
45984 2009-04-26  Bruno Haible  <bruno@clisp.org>
45985
45986         Simplify calling convention of u*_conv_to_encoding.
45987         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45988         u32_conv_to_encoding): Expect a resultbuf argument and return the
45989         result directly as a pointer.
45990         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45991         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45992         freeing scaled_offsets if mem_iconveha failed.
45993         * lib/unicase/u-casexfrm.h (FUNC): Update.
45994         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45995         * lib/vasnprintf.c (VASNPRINTF): Update.
45996         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45997         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45998         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45999         * NEWS: Mention the change.
46000
46001 2009-04-26  Bruno Haible  <bruno@clisp.org>
46002
46003         Avoid test failures on AIX and OSF/1.
46004         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46005         malloc(0).
46006         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46007         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46008         Likewise.
46009         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46010         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46011         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46012         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46013         * doc/posix-functions/malloc.texi: Document the portability problem
46014         related to malloc(0).
46015
46016 2009-04-26  Bruno Haible  <bruno@clisp.org>
46017
46018         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46019         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46020         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46021
46022 2009-04-25  Bruno Haible  <bruno@clisp.org>
46023
46024         Avoid link error when creating a namespace clean library.
46025         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46026         as macro with arguments if already defined as an alias.
46027         * lib/signbitf.c (gl_signbitf): Don't undefine.
46028         * lib/signbitd.c (gl_signbitd): Don't undefine.
46029         * lib/signbitl.c (gl_signbitl): Don't undefine.
46030
46031 2009-04-25  Jim Meyering  <meyering@redhat.com>
46032
46033         vc-list-files: fix another quoting bug
46034         * build-aux/vc-list-files: Avoid sed backslash expansion
46035         of pathological directory names.
46036
46037 2009-04-25  Eric Blake  <ebb9@byu.net>
46038
46039         vc-list-files: fix shell quoting error
46040         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46041         timestamp.
46042
46043 2009-04-25  Jim Meyering  <meyering@redhat.com>
46044
46045         vc-list-files: restore lost functionality with subdir argument
46046         * build-aux/vc-list-files: When given a non-"." sub-directory
46047         argument, substitute the $dir/ prefix back onto each resulting name.
46048         Otherwise, coreutils' root_tests check would fail.
46049
46050 2009-04-24  Eric Blake  <ebb9@byu.net>
46051
46052         vc-list-files: ignore git symlinks
46053         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46054         than ls-files, to ignore git symlinks.
46055
46056         maint.mk: import improvements from m4
46057         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46058         (move_if_change): Delete unused macro.
46059         (news-date-check, vc-diff-check): Support VPATH builds.
46060         (announcement): Likewise.  Split --bootstrap-tools list...
46061         (boostrap-tools): ...into separate list, which can be overridden
46062         in cfg.mk.
46063         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46064         requiring dependency on useless-if-before-free module.
46065         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46066         Support VPATH builds.
46067
46068 2009-04-24  Jim Meyering  <meyering@redhat.com>
46069
46070         maint.mk: remove coreutils-specific rules and variables
46071         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46072         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46073         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46074
46075         maint.mk: remove obsolete rule
46076         * top/maint.mk (rel-check): Remove rule.
46077         (WGET, WGETFLAGS): Remove now-unused variables.
46078
46079 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46080
46081         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46082         consistency.
46083
46084         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46085         '$(PATH_SEPARATOR)' instead of ':'.
46086
46087 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46088
46089         * lib/getopt1.c (main): Use 'const' for static array.
46090
46091 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46092
46093         * top/maint.mk: Sync with coreutils.
46094         * NEWS: Explain incompatibilities.
46095
46096 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46097             Bruno Haible  <bruno@clisp.org>
46098
46099         Fix cross-compilation results.
46100         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46101         statement, as third argument of AC_TRY_RUN.
46102         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46103         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46104         Likewise.
46105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46106         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46107         Likewise.
46108         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46109         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46110         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46111
46112 2009-04-20  Bruno Haible  <bruno@clisp.org>
46113
46114         Avoid test failure on mingw.
46115         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46116
46117 2009-04-20  Bruno Haible  <bruno@clisp.org>
46118
46119         Avoid compilation error on mingw.
46120         * modules/localename-tests (Depends-on): Add locale.
46121
46122 2009-04-19  Bruno Haible  <bruno@clisp.org>
46123
46124         Support for building a shared library on Windows platforms.
46125         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46126         (main): Test the presence of UNINORM_NFC here.
46127         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46128         (main): Test the presence of UNINORM_NFD here.
46129         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46130         (main): Test the presence of UNINORM_NFKC here.
46131         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46132         (main): Test the presence of UNINORM_NFKD here.
46133
46134 2009-04-19  Bruno Haible  <bruno@clisp.org>
46135
46136         Avoid a compiler warning.
46137         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46138         Change type of variable 'sequence'.
46139
46140 2009-04-19  Bruno Haible  <bruno@clisp.org>
46141
46142         * modules/configmake (Makefile.am): When the contents of configmake.h
46143         does not change, arrange to preserve its modification time.
46144
46145 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46146
46147         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46148         gettext domain.
46149
46150 2009-04-16  Jim Meyering  <meyering@redhat.com>
46151
46152         useless-if-before-free: improve conversion code
46153         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46154         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46155
46156 2009-04-14  Bruno Haible  <bruno@clisp.org>
46157
46158         * modules/fcntl (Depends-on): Add extensions.
46159         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46160
46161 2009-04-12  Ben Pfaff  <blp@gnu.org>
46162
46163         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46164         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46165
46166 2009-03-20  Ben Pfaff  <blp@gnu.org>
46167
46168         Make rename replace existing destinations on Windows.
46169         * m4/rename.m4: Add test for Mingw.
46170         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46171         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46172         * doc/posix-functions/rename.texi: Document.
46173
46174 2009-04-10  Bruno Haible  <bruno@clisp.org>
46175
46176         New include file "iconveh.h".
46177         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46178         * lib/striconveh.h: Include it.
46179         (enum iconv_ilseq_handler): Remove definition.
46180         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46181         striconveh.h.
46182         * lib/striconveha.c: Include striconveh.h.
46183         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46184         * modules/striconveh (Files): Add lib/iconveh.h.
46185         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46186         lib/striconveh.h.
46187
46188 2009-04-10  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/uniconv.h: Update comment.
46191
46192 2009-04-10  Bruno Haible  <bruno@clisp.org>
46193
46194         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46195         always.
46196         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46197         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46198         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46199         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46200         "unistring-notinline.h", so that the function gets defined always.
46201         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46202         * lib/unistr/u8-uctomb.c: Likewise.
46203         * lib/unistr/u16-mbtouc.c: Likewise.
46204         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46205         * lib/unistr/u16-uctomb.c: Likewise.
46206         * lib/unistr/u32-mbtouc.c: Likewise.
46207         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46208         * lib/unistr/u32-uctomb.c: Likewise.
46209
46210 2009-04-10  Bruno Haible  <bruno@clisp.org>
46211
46212         Mark 'utime' obsolete.
46213         * modules/utime (Status, Notice): New sections.
46214         Suggested by Jim Meyering.
46215
46216         Fix cross-compile guess for utime test.
46217         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46218         autoconf.
46219         * doc/posix-functions/utime.texi: Give more precisions.
46220         Reported by Jan <ipif@ymail.com>.
46221
46222 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46223
46224         filevercmp: correct today's change
46225         * lib/filevercmp.c: Also handle coreutils' test inputs.
46226         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46227
46228         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46229         for reporting it.
46230         * lib/filevercmp.c: Special handle for "", "." and "..".
46231         * tests/test-filevercmp.c: Enlarge the set suite.
46232
46233 2009-04-07  Jim Meyering  <meyering@redhat.com>
46234
46235         useless-if-before-free: show how to remove braced useless free, too
46236         * build-aux/useless-if-before-free: still only in a comment, though.
46237
46238 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46239
46240         maint.mk: import changes to syntax-check macros from coreutils
46241         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46242         Use them in the relevant macros.
46243
46244 2009-04-06  Bruno Haible  <bruno@clisp.org>
46245
46246         Fix unportable use of bit-fields.
46247         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46248         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46249         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46250
46251 2009-04-06  Bruno Haible  <bruno@clisp.org>
46252
46253         Avoid test failures on AIX and OSF/1.
46254         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46255         that malloc(0) = NULL.
46256         * tests/unicase/test-u8-tolower.c (check): Likewise.
46257         * tests/unicase/test-u8-totitle.c (check): Likewise.
46258         * tests/unicase/test-u8-toupper.c (check): Likewise.
46259         * tests/unicase/test-u16-casefold.c (check): Likewise.
46260         * tests/unicase/test-u16-tolower.c (check): Likewise.
46261         * tests/unicase/test-u16-totitle.c (check): Likewise.
46262         * tests/unicase/test-u16-toupper.c (check): Likewise.
46263         * tests/unicase/test-u32-casefold.c (check): Likewise.
46264         * tests/unicase/test-u32-tolower.c (check): Likewise.
46265         * tests/unicase/test-u32-totitle.c (check): Likewise.
46266         * tests/unicase/test-u32-toupper.c (check): Likewise.
46267         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46268         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46269         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46270         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46271         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46272         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46273         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46274         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46275         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46276         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46277         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46278         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46279
46280 2009-04-05  Bruno Haible  <bruno@clisp.org>
46281
46282         Work around an autoconf limitation.
46283         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46284         comment line if it would be longer than 3 KB.
46285
46286 2009-04-05  Bruno Haible  <bruno@clisp.org>
46287
46288         Avoid test failure with libiconv-1.13.
46289         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46290         of the expected test results.
46291
46292 2009-04-05  Bruno Haible  <bruno@clisp.org>
46293
46294         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46295         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46296         that it should be installed.
46297
46298 2009-04-05  Bruno Haible  <bruno@clisp.org>
46299
46300         * gnulib-tool: New option --copy-file.
46301         (func_usage): Document it.
46302         (func_dest_tmpfilename): Moved out of func_import.
46303         (func_add_file, func_update_file): New functions, extracted from
46304         func_import.
46305         (func_import): Update.
46306
46307 2009-04-05  Karl Berry  <karl@gnu.org>
46308
46309         * README: prominently mention gnulib-tool.
46310         Rearrange sections so getting the code is near the top.
46311
46312 2009-04-05  Bruno Haible  <bruno@clisp.org>
46313
46314         * lib/unicase.h: Mention u*_cmp2.
46315         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46316         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46317         * lib/unicase/ulc-casecmp.c: Likewise.
46318         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46319         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46320         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46321         unistr/u8-cmp.
46322         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46323         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46324         unistr/u16-cmp.
46325         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46326         unistr/u32-cmp.
46327
46328         * lib/uninorm.h: Mention u*_cmp2.
46329         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46330         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46331         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46332         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46333         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46334         unistr/u8-cmp.
46335         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46336         unistr/u16-cmp.
46337         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46338         unistr/u32-cmp.
46339
46340         New module 'unistr/u32-cmp2'.
46341         * lib/unistr/u32-cmp2.c: New file.
46342         * modules/unistr/u32-cmp2: New file.
46343
46344         New module 'unistr/u16-cmp2'.
46345         * lib/unistr/u16-cmp2.c: New file.
46346         * modules/unistr/u16-cmp2: New file.
46347
46348         New module 'unistr/u8-cmp2'.
46349         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46350         * lib/unistr/u8-cmp2.c: New file.
46351         * lib/unistr/u-cmp2.h: New file.
46352         * modules/unistr/u8-cmp2: New file.
46353
46354 2009-04-05  Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/unictype.h (uc_property_is_valid): New macro.
46357         * tests/unictype/test-pr_byname.c (main): Use it.
46358
46359         * lib/unistr.h: Doc fixes.
46360         * lib/uniconv.h: Doc fixes.
46361         * lib/unictype.h: Doc fixes.
46362
46363 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46364
46365         Port coreutils 7.2 to Solaris 8.
46366
46367         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46368         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46369         for Solaris 8.  This is a bit of a hack, as it means it's the
46370         caller's responsibility to add -lnsl if needed, but most likely it
46371         won't be needed since only getaddrinfo uses this and getaddrinfo
46372         isn't needed on Solaris 8.
46373
46374         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46375         problem to Solaris 8 encountered with coreutils 7.2, which
46376         resulted in a message "fnmatch.c:292: warning: passing argument 4
46377         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46378         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46379
46380 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46381
46382         * m4/ld-version-script.m4: Add FIXME comment.
46383
46384 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46385
46386         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46387         SOVERSION variable.
46388
46389 2009-04-02  Bruno Haible  <bruno@clisp.org>
46390
46391         * Makefile (info, html, dvi, pdf): Combine the rules.
46392         Suggested by Jim Meyering.
46393
46394 2009-04-01  Bruno Haible  <bruno@clisp.org>
46395
46396         * Makefile (info, html, dvi, pdf): New targets.
46397         Reported by Reuben Thomas <rrt@sc3d.org>.
46398
46399 2009-04-01  Bruno Haible  <bruno@clisp.org>
46400
46401         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46402         can be put into PATH.
46403         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46404
46405 2009-04-01  Bruno Haible  <bruno@clisp.org>
46406
46407         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46408
46409 2009-04-01  Bruno Haible  <bruno@clisp.org>
46410
46411         Rename module 'visibility'.
46412         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46413         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46414         * doc/gnulib.texi: Update.
46415         * MODULES.html.sh (Misc): Update.
46416         * NEWS: Mention the change.
46417
46418 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46419
46420         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46421         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46422         Eric Blake <ebb9@byu.net> for review.
46423         * MODULES.html.sh: Add lib-msvc-compat.
46424         * doc/gnulib.texi: Link to new section.
46425         * m4/ld-output-def.m4: New file.
46426         * doc/ld-output-def.texi: New file.
46427
46428 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46429
46430         Rename ld-version-script to lib-symbol-versions.  Suggested by
46431         Bruno Haible <bruno@clisp.org>.
46432         * modules/ld-version-script: Renamed to lib-symbol-versions.
46433         * doc/ld-version-script.texi: Fix module name.
46434         * MODULES.html.sh: Add lib-symbol-versions.
46435
46436 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46437
46438         * modules/u64-tests: New file.
46439         * tests/test-u64.c: New file.
46440
46441 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46442
46443         * MODULES.html.sh: Mention u64.
46444         * modules/u64: New module.
46445         * modules/crypto/sha512: Depend on u64 module instead of providing
46446         u64.h.
46447
46448 2009-03-27  Eric Blake  <ebb9@byu.net>
46449
46450         test-strerror: make debugging EAI_SYSTEM easier
46451         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46452         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46453         failure was EAI_SYSTEM.
46454
46455 2009-03-25  Bruno Haible  <bruno@clisp.org>
46456
46457         Fix a problem with --enable-relocatable on Solaris 7.
46458         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46459         since 2008-02-24.
46460
46461 2009-03-25  Eric Blake  <ebb9@byu.net>
46462
46463         test-sockets: avoid gcc warning
46464         * tests/test-sockets.c (main): Silence compiler warning.
46465
46466 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46467
46468         New modules nproc, pthread, contributed by Glen Lenker.
46469
46470         * MODULES.html.sh: Add pthread, nproc.
46471         * lib/nproc.c: New file.
46472         * lib/nproc.h: New file.
46473         * lib/pthread.in.h: New file.
46474         * m4/pthread.m4: New file.
46475         * modules/nproc: New file.
46476         * modules/pthread: New file.
46477
46478 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46479
46480         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46481         New variable.
46482
46483 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46484
46485         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46486         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46487         * tests/test-filevercmp.c: Add tests for backup suffixes.
46488
46489 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46490
46491         * modules/stdlib (Depends-on): Add stdint, needed when defining
46492         struct random_data on, for example, HP-UX 10.20.  Reported by
46493         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46494
46495 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46496
46497         * lib/readline.c (readline): Call fflush on stdout after printing
46498         prompt.
46499
46500 2009-03-20  Bruno Haible  <bruno@clisp.org>
46501
46502         Remove dependency from 'close' module to -lws2_32 on native Windows.
46503         * lib/close-hook.h: New file.
46504         * lib/close-hook.c: New file.
46505         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46506         w32sock.h.
46507         (_gl_close_fd_maybe_socket): Remove function.
46508         (rpl_close): Invoke execute_all_close_hooks instead of
46509         _gl_close_fd_maybe_socket.
46510         * lib/sockets.c: Include close-hook.h, w32sock.h.
46511         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46512         (close_sockets_hook): New variable.
46513         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46514         (gl_sockets_cleanup): Unregister it.
46515         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46516         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46517         * modules/close-hook: New file.
46518         * modules/close (Files): Remove lib/w32sock.h.
46519         (Depends-on): Add close-hook.
46520         (Link): Remove section.
46521         * modules/sockets (Files): Add lib/w32sock.h.
46522         (Depends-on): Add close-hook.
46523         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46524         invocation.
46525         * NEWS: Mention that LIB_CLOSE is gone.
46526
46527 2009-03-23  Eric Blake  <ebb9@byu.net>
46528
46529         signal-tests: test previous patch
46530         * tests/test-signal.c: New file.
46531         * modules/signal-tests: Likewise.
46532
46533         signal.h: always support 'volatile sig_atomic_t'
46534         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46535         (gl_SIGNAL_H_DEFAULTS): Add a default.
46536         * modules/signal (Makefile.am): Substitute if needed.
46537         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46538         users can blindly add volatile.
46539         * doc/posix-headers/signal.texi (signal.h): Document it.
46540         Reported by Matthew Woehlke.
46541
46542 2009-03-23  Jim Meyering  <meyering@redhat.com>
46543
46544         pathmax: PATH_MAX: use pathconf only when available
46545         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46546         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46547         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46548         This avoids a link failure in a PSP cross-compilation environment
46549         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46550
46551         * lib/vasnprintf.c (divide): Fix typo in comment.
46552
46553 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46554
46555         * gnulib-tool (func_filter_filelist): Fix comment.
46556
46557 2009-03-20  Bruno Haible  <bruno@clisp.org>
46558
46559         Make sockets.h self-contained.
46560         * lib/sockets.c: Include sockets.h first.
46561         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46562
46563 2009-03-19  Eric Blake  <ebb9@byu.net>
46564
46565         doc: mention more functions added in cygwin 1.7.0
46566         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46567         addition.
46568         * doc/posix-functions/log2f.texi: Likewise.
46569
46570 2009-03-19  Jim Meyering  <meyering@redhat.com>
46571
46572         fsusage: avoid syntax error due to statement-before-declaration
46573         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46574         after all declarations.  Reported by Matthew Woehlke in
46575         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46576
46577 2009-03-18  Eric Blake  <ebb9@byu.net>
46578
46579         build-aux/compile: sync from automake
46580         * build-aux/compile: New file, from automake.
46581         * config/srclist.txt: Mention build-aux/compile.
46582
46583 2009-03-17  Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/git-merge-changelog.c: Fix typo in comment.
46586         Reported by Reuben Thomas <rrt@sc3d.org>.
46587
46588 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46589
46590         * m4/regex.m4: update and improve help for
46591         --without-included-regex.
46592
46593 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46594
46595         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46596         failure on missing include files.
46597
46598 2009-03-17  Eric Blake  <ebb9@byu.net>
46599
46600         doc: mention more functions added in cygwin 1.7.0
46601         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46602         addition.
46603         * doc/posix-functions/fwscanf.texi: Likewise.
46604         * doc/posix-functions/swprintf.texi: Likewise.
46605         * doc/posix-functions/swscanf.texi: Likewise.
46606         * doc/posix-functions/vfwprintf.texi: Likewise.
46607         * doc/posix-functions/vfwscanf.texi: Likewise.
46608         * doc/posix-functions/vswprintf.texi: Likewise.
46609         * doc/posix-functions/vswscanf.texi: Likewise.
46610         * doc/posix-functions/vwprintf.texi: Likewise.
46611         * doc/posix-functions/vwscanf.texi: Likewise.
46612         * doc/posix-functions/wcscasecmp.texi: Likewise.
46613         * doc/posix-functions/wcsdup.texi: Likewise.
46614         * doc/posix-functions/wcsftime.texi: Likewise.
46615         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46616         * doc/posix-functions/wprintf.texi: Likewise.
46617         * doc/posix-functions/wscanf.texi: Likewise.
46618         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46619
46620 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46621
46622         maint.mk: really add $(AM_MAKEFLAGS)
46623         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46624         was inadvertently omitted in the last commit.
46625         Spotted by Bruno Haible.
46626
46627         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46628         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46629         $(AM_MAKEFLAGS)' rather than plain `make'.
46630
46631         gnulib-tool: execute $MAKE not make
46632         * gnulib-tool: Default $MAKE to 'make'.
46633         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46634         than make.  Initialize $MAKE in the do-autobuild script.
46635
46636         gnulib-tool: use $MAKE not make in generated files
46637         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46638         make, in generated files.  Initialize $MAKE in the do-autobuild
46639         script.
46640
46641         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46642
46643         GNUmakefile: disable parallelism only for multiple, recursive targets
46644         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46645         additions in the Makefile.
46646         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46647         by Automake.
46648         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46649         are listed on the command line and at least one of them is
46650         listed in $(ALL_RECURSIVE_TARGETS).
46651
46652 2009-03-14  Bruno Haible  <bruno@clisp.org>
46653
46654         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46655         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46656         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46657         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46658         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46659         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46660         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46661         unistr/u8-uctomb.
46662         * modules/unistr/u8-strchr (Depends-on): Likewise.
46663         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46664         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46665         unistr/u16-uctomb.
46666         * modules/unistr/u16-strchr (Depends-on): Likewise.
46667         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46668
46669 2009-03-12  Bruno Haible  <bruno@clisp.org>
46670
46671         Work around select() bug on Interix 3.5.
46672         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46673         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46674         * m4/select.m4: New file.
46675         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46676         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46677         * modules/select (Files): Add m4/select.m4.
46678         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46679         * modules/nanosleep (Depends-on): Add select.
46680         * modules/poll (Depends-on): Likewise.
46681         * doc/posix-functions/select.texi: Mention the Interix bug.
46682         Reported by Markus Duft <mduft@gentoo.org>.
46683
46684         * lib/select.c: Renamed from lib/winsock-select.c.
46685         * modules/select (Files): Add lib/select.c, remove
46686         lib/winsock-select.c.
46687         (configure.ac): Update.
46688
46689 2009-03-12  Jim Meyering  <meyering@redhat.com>
46690
46691         avoid gcc warnings about unused macro definitions
46692         * lib/readtokens.c (STREQ): Remove unused definition.
46693         * lib/xmalloc.c (SIZE_MAX): Likewise.
46694         * lib/openat-die.c (N_): Likewise.
46695         * lib/mountlist.c (SIZE_MAX): Remove definition.
46696         Instead, include <stdint.h>.
46697         * lib/readutmp.c: Likewise.
46698         * modules/readutmp (Depends-on): Add stdint.
46699         * modules/mountlist (Depends-on): Add stdint.
46700         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46701
46702 2009-03-10  Bruno Haible  <bruno@clisp.org>
46703
46704         Tests for module 'mbmemcasecoll'.
46705         * modules/mbmemcasecoll-tests: New file.
46706         * tests/test-mbmemcasecoll1.sh: New file.
46707         * tests/test-mbmemcasecoll2.sh: New file.
46708         * tests/test-mbmemcasecoll3.sh: New file.
46709         * tests/test-mbmemcasecoll.c: New file.
46710
46711         New module 'mbmemcasecoll'.
46712         * lib/mbmemcasecoll.h: New file.
46713         * lib/mbmemcasecoll.c: New file.
46714         * modules/mbmemcasecoll: New file.
46715
46716         * tests/test-mbmemcasecmp.h: New file, extracted from
46717         tests/test-mbmemcasecmp.c.
46718         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46719         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46720         (main): Update.
46721         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46722
46723 2009-03-09  Bruno Haible  <bruno@clisp.org>
46724
46725         Tests for module 'mbmemcasecmp'.
46726         * modules/mbmemcasecmp-tests: New file.
46727         * tests/test-mbmemcasecmp1.sh: New file.
46728         * tests/test-mbmemcasecmp2.sh: New file.
46729         * tests/test-mbmemcasecmp3.sh: New file.
46730         * tests/test-mbmemcasecmp.c: New file.
46731
46732         New module 'mbmemcasecmp'.
46733         * lib/mbmemcasecmp.h: New file.
46734         * lib/mbmemcasecmp.c: New file.
46735         * modules/mbmemcasecmp: New file.
46736
46737 2009-03-09  Bruno Haible  <bruno@clisp.org>
46738
46739         Tests for module 'unicase/ulc-casecoll'.
46740         * modules/unicase/ulc-casecoll-tests: New file.
46741         * tests/unicase/test-ulc-casecoll1.sh: New file.
46742         * tests/unicase/test-ulc-casecoll2.sh: New file.
46743         * tests/unicase/test-ulc-casecoll.c: New file.
46744
46745         New module 'unicase/ulc-casecoll'.
46746         * lib/unicase.h (ulc_casecoll): New declaration.
46747         * lib/unicase/ulc-casecoll.c: New file.
46748         * modules/unicase/ulc-casecoll: New file.
46749
46750         New module 'unicase/ulc-casexfrm'.
46751         * lib/unicase.h (ulc_casexfrm): New declaration.
46752         * lib/unicase/ulc-casexfrm.c: New file.
46753         * modules/unicase/ulc-casexfrm: New file.
46754
46755 2009-03-09  Bruno Haible  <bruno@clisp.org>
46756
46757         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46758         invocations.
46759
46760         * m4/mbscasecmp.m4: Remove file.
46761         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46762         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46763
46764         * m4/mbscasestr.m4: Remove file.
46765         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46766         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46767
46768         * m4/mbschr.m4: Remove file.
46769         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46770         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46771
46772         * m4/mbscspn.m4: Remove file.
46773         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46774         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46775
46776         * m4/mbslen.m4: Remove file.
46777         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46778         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46779
46780         * m4/mbsncasecmp.m4: Remove file.
46781         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46782         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46783
46784         * m4/mbsnlen.m4: Remove file.
46785         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46786         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46787
46788         * m4/mbspbrk.m4: Remove file.
46789         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46790         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46791
46792         * m4/mbspcasecmp.m4: Remove file.
46793         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46794         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46795
46796         * m4/mbsrchr.m4: Remove file.
46797         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46798         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46799
46800         * m4/mbssep.m4: Remove file.
46801         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46802         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46803
46804         * m4/mbsspn.m4: Remove file.
46805         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46806         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46807
46808         * m4/mbsstr.m4: Remove file.
46809         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46810         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46811
46812         * m4/mbstok_r.m4: Remove file.
46813         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46814         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46815
46816         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46817
46818         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46819         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46820
46821         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46822
46823 2009-03-08  Bruno Haible  <bruno@clisp.org>
46824
46825         Tests for module 'unicase/ulc-casecmp'.
46826         * modules/unicase/ulc-casecmp-tests: New file.
46827         * tests/unicase/test-ulc-casecmp1.sh: New file.
46828         * tests/unicase/test-ulc-casecmp2.sh: New file.
46829         * tests/unicase/test-ulc-casecmp.c: New file.
46830
46831         New module 'unicase/ulc-casecmp'.
46832         * lib/unicase.h (ulc_casecmp): New declaration.
46833         * lib/unicase/ulc-casecmp.c: New file.
46834         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46835         'const SRC_UNIT *'.
46836         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46837         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46838         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46839         * modules/unicase/ulc-casecmp: New file.
46840
46841         Tests for module 'unicase/u32-is-cased'.
46842         * modules/unicase/u32-is-cased-tests: New file.
46843         * tests/unicase/test-u32-is-cased.c: New file.
46844
46845         Tests for module 'unicase/u16-is-cased'.
46846         * modules/unicase/u16-is-cased-tests: New file.
46847         * tests/unicase/test-u16-is-cased.c: New file.
46848
46849         Tests for module 'unicase/u8-is-cased'.
46850         * modules/unicase/u8-is-cased-tests: New file.
46851         * tests/unicase/test-u8-is-cased.c: New file.
46852         * tests/unicase/test-is-cased.h: New file.
46853
46854         New module 'unicase/u32-is-cased'.
46855         * lib/unicase/u32-is-cased.c: New file.
46856         * modules/unicase/u32-is-cased: New file.
46857
46858         New module 'unicase/u16-is-cased'.
46859         * lib/unicase/u16-is-cased.c: New file.
46860         * modules/unicase/u16-is-cased: New file.
46861
46862         New module 'unicase/u8-is-cased'.
46863         * lib/unicase/u8-is-cased.c: New file.
46864         * lib/unicase/u-is-cased.h: New file.
46865         * modules/unicase/u8-is-cased: New file.
46866
46867         Tests for module 'unicase/u32-is-casefolded'.
46868         * modules/unicase/u32-is-casefolded-tests: New file.
46869         * tests/unicase/test-u32-is-casefolded.c: New file.
46870
46871         Tests for module 'unicase/u16-is-casefolded'.
46872         * modules/unicase/u16-is-casefolded-tests: New file.
46873         * tests/unicase/test-u16-is-casefolded.c: New file.
46874
46875         Tests for module 'unicase/u8-is-casefolded'.
46876         * modules/unicase/u8-is-casefolded-tests: New file.
46877         * tests/unicase/test-u8-is-casefolded.c: New file.
46878         * tests/unicase/test-is-casefolded.h: New file.
46879
46880         New module 'unicase/u32-is-casefolded'.
46881         * lib/unicase/u32-is-casefolded.c: New file.
46882         * modules/unicase/u32-is-casefolded: New file.
46883
46884         New module 'unicase/u16-is-casefolded'.
46885         * lib/unicase/u16-is-casefolded.c: New file.
46886         * modules/unicase/u16-is-casefolded: New file.
46887
46888         New module 'unicase/u8-is-casefolded'.
46889         * lib/unicase/u8-is-casefolded.c: New file.
46890         * modules/unicase/u8-is-casefolded: New file.
46891
46892         Tests for module 'unicase/u32-is-titlecase'.
46893         * modules/unicase/u32-is-titlecase-tests: New file.
46894         * tests/unicase/test-u32-is-titlecase.c: New file.
46895
46896         Tests for module 'unicase/u16-is-titlecase'.
46897         * modules/unicase/u16-is-titlecase-tests: New file.
46898         * tests/unicase/test-u16-is-titlecase.c: New file.
46899
46900         Tests for module 'unicase/u8-is-titlecase'.
46901         * modules/unicase/u8-is-titlecase-tests: New file.
46902         * tests/unicase/test-u8-is-titlecase.c: New file.
46903         * tests/unicase/test-is-titlecase.h: New file.
46904
46905         New module 'unicase/u32-is-titlecase'.
46906         * lib/unicase/u32-is-titlecase.c: New file.
46907         * modules/unicase/u32-is-titlecase: New file.
46908
46909         New module 'unicase/u16-is-titlecase'.
46910         * lib/unicase/u16-is-titlecase.c: New file.
46911         * modules/unicase/u16-is-titlecase: New file.
46912
46913         New module 'unicase/u8-is-titlecase'.
46914         * lib/unicase/u8-is-titlecase.c: New file.
46915         * modules/unicase/u8-is-titlecase: New file.
46916
46917         Tests for module 'unicase/u32-is-lowercase'.
46918         * modules/unicase/u32-is-lowercase-tests: New file.
46919         * tests/unicase/test-u32-is-lowercase.c: New file.
46920
46921         Tests for module 'unicase/u16-is-lowercase'.
46922         * modules/unicase/u16-is-lowercase-tests: New file.
46923         * tests/unicase/test-u16-is-lowercase.c: New file.
46924
46925         Tests for module 'unicase/u8-is-lowercase'.
46926         * modules/unicase/u8-is-lowercase-tests: New file.
46927         * tests/unicase/test-u8-is-lowercase.c: New file.
46928         * tests/unicase/test-is-lowercase.h: New file.
46929
46930         New module 'unicase/u32-is-lowercase'.
46931         * lib/unicase/u32-is-lowercase.c: New file.
46932         * modules/unicase/u32-is-lowercase: New file.
46933
46934         New module 'unicase/u16-is-lowercase'.
46935         * lib/unicase/u16-is-lowercase.c: New file.
46936         * modules/unicase/u16-is-lowercase: New file.
46937
46938         New module 'unicase/u8-is-lowercase'.
46939         * lib/unicase/u8-is-lowercase.c: New file.
46940         * modules/unicase/u8-is-lowercase: New file.
46941
46942         Tests for module 'unicase/u32-is-uppercase'.
46943         * modules/unicase/u32-is-uppercase-tests: New file.
46944         * tests/unicase/test-u32-is-uppercase.c: New file.
46945
46946         Tests for module 'unicase/u16-is-uppercase'.
46947         * modules/unicase/u16-is-uppercase-tests: New file.
46948         * tests/unicase/test-u16-is-uppercase.c: New file.
46949
46950         Tests for module 'unicase/u8-is-uppercase'.
46951         * modules/unicase/u8-is-uppercase-tests: New file.
46952         * tests/unicase/test-u8-is-uppercase.c: New file.
46953         * tests/unicase/test-is-uppercase.h: New file.
46954
46955         New module 'unicase/u32-is-uppercase'.
46956         * lib/unicase/u32-is-uppercase.c: New file.
46957         * modules/unicase/u32-is-uppercase: New file.
46958
46959         New module 'unicase/u16-is-uppercase'.
46960         * lib/unicase/u16-is-uppercase.c: New file.
46961         * modules/unicase/u16-is-uppercase: New file.
46962
46963         New module 'unicase/u8-is-uppercase'.
46964         * lib/unicase/u8-is-uppercase.c: New file.
46965         * modules/unicase/u8-is-uppercase: New file.
46966
46967         New module 'unicase/u32-is-invariant'.
46968         * lib/unicase/u32-is-invariant.c: New file.
46969         * modules/unicase/u32-is-invariant: New file.
46970
46971         New module 'unicase/u16-is-invariant'.
46972         * lib/unicase/u16-is-invariant.c: New file.
46973         * modules/unicase/u16-is-invariant: New file.
46974
46975         New module 'unicase/u8-is-invariant'.
46976         * lib/unicase/u8-is-invariant.c: New file.
46977         * lib/unicase/invariant.h: New file.
46978         * lib/unicase/u-is-invariant.h: New file.
46979         * modules/unicase/u8-is-invariant: New file.
46980
46981         Tests for module 'unicase/u32-casecoll'.
46982         * modules/unicase/u32-casecoll-tests: New file.
46983         * tests/unicase/test-u32-casecoll.c: New file.
46984
46985         Tests for module 'unicase/u16-casecoll'.
46986         * modules/unicase/u16-casecoll-tests: New file.
46987         * tests/unicase/test-u16-casecoll.c: New file.
46988
46989         Tests for module 'unicase/u8-casecoll'.
46990         * modules/unicase/u8-casecoll-tests: New file.
46991         * tests/unicase/test-u8-casecoll.c: New file.
46992
46993         New module 'unicase/u32-casecoll'.
46994         * lib/unicase/u32-casecoll.c: New file.
46995         * modules/unicase/u32-casecoll: New file.
46996
46997         New module 'unicase/u16-casecoll'.
46998         * lib/unicase/u16-casecoll.c: New file.
46999         * modules/unicase/u16-casecoll: New file.
47000
47001         New module 'unicase/u8-casecoll'.
47002         * lib/unicase/u8-casecoll.c: New file.
47003         * lib/unicase/u-casecoll.h: New file.
47004         * modules/unicase/u8-casecoll: New file.
47005
47006         New module 'unicase/u32-casexfrm'.
47007         * lib/unicase/u32-casexfrm.c: New file.
47008         * modules/unicase/u32-casexfrm: New file.
47009
47010         New module 'unicase/u16-casexfrm'.
47011         * lib/unicase/u16-casexfrm.c: New file.
47012         * modules/unicase/u16-casexfrm: New file.
47013
47014         New module 'unicase/u8-casexfrm'.
47015         * lib/unicase/u8-casexfrm.c: New file.
47016         * lib/unicase/u-casexfrm.h: New file.
47017         * modules/unicase/u8-casexfrm: New file.
47018
47019         Tests for module 'unicase/u32-casecmp'.
47020         * modules/unicase/u32-casecmp-tests: New file.
47021         * tests/unicase/test-u32-casecmp.c: New file.
47022
47023         Tests for module 'unicase/u16-casecmp'.
47024         * modules/unicase/u16-casecmp-tests: New file.
47025         * tests/unicase/test-u16-casecmp.c: New file.
47026
47027         Tests for module 'unicase/u8-casecmp'.
47028         * modules/unicase/u8-casecmp-tests: New file.
47029         * tests/unicase/test-u8-casecmp.c: New file.
47030         * tests/unicase/test-casecmp.h: New file.
47031
47032         New module 'unicase/u32-casecmp'.
47033         * lib/unicase/u32-casecmp.c: New file.
47034         * modules/unicase/u32-casecmp: New file.
47035
47036         New module 'unicase/u16-casecmp'.
47037         * lib/unicase/u16-casecmp.c: New file.
47038         * modules/unicase/u16-casecmp: New file.
47039
47040         New module 'unicase/u8-casecmp'.
47041         * lib/unicase/u8-casecmp.c: New file.
47042         * lib/unicase/u-casecmp.h: New file.
47043         * modules/unicase/u8-casecmp: New file.
47044
47045         Tests for module 'unicase/u32-casefold'.
47046         * modules/unicase/u32-casefold-tests: New file.
47047         * tests/unicase/test-u32-casefold.c: New file.
47048
47049         Tests for module 'unicase/u16-casefold'.
47050         * modules/unicase/u16-casefold-tests: New file.
47051         * tests/unicase/test-u16-casefold.c: New file.
47052
47053         Tests for module 'unicase/u8-casefold'.
47054         * modules/unicase/u8-casefold-tests: New file.
47055         * tests/unicase/test-u8-casefold.c: New file.
47056
47057         New module 'unicase/u32-casefold'.
47058         * lib/unicase/u32-casefold.c: New file.
47059         * modules/unicase/u32-casefold: New file.
47060
47061         New module 'unicase/u16-casefold'.
47062         * lib/unicase/u16-casefold.c: New file.
47063         * modules/unicase/u16-casefold: New file.
47064
47065         New module 'unicase/u8-casefold'.
47066         * lib/unicase/u8-casefold.c: New file.
47067         * lib/unicase/u-casefold.h: New file.
47068         * modules/unicase/u8-casefold: New file.
47069
47070         New module 'unicase/tocasefold'.
47071         * lib/unicase/casefold.h: New file.
47072         * lib/unicase/tocasefold.c: New file.
47073         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47074         * modules/unicase/tocasefold: New file.
47075
47076         Tests for module 'unicase/u32-totitle'.
47077         * modules/unicase/u32-totitle-tests: New file.
47078         * tests/unicase/test-u32-totitle.c: New file.
47079
47080         Tests for module 'unicase/u16-totitle'.
47081         * modules/unicase/u16-totitle-tests: New file.
47082         * tests/unicase/test-u16-totitle.c: New file.
47083
47084         Tests for module 'unicase/u8-totitle'.
47085         * modules/unicase/u8-totitle-tests: New file.
47086         * tests/unicase/test-u8-totitle.c: New file.
47087
47088         New module 'unicase/u32-totitle'.
47089         * lib/unicase/u32-totitle.c: New file.
47090         * modules/unicase/u32-totitle: New file.
47091
47092         New module 'unicase/u16-totitle'.
47093         * lib/unicase/u16-totitle.c: New file.
47094         * modules/unicase/u16-totitle: New file.
47095
47096         New module 'unicase/u8-totitle'.
47097         * lib/unicase/u8-totitle.c: New file.
47098         * lib/unicase/u-totitle.h: New file.
47099         * modules/unicase/u8-totitle: New file.
47100
47101         Tests for module 'unicase/u32-tolower'.
47102         * modules/unicase/u32-tolower-tests: New file.
47103         * tests/unicase/test-u32-tolower.c: New file.
47104
47105         Tests for module 'unicase/u16-tolower'.
47106         * modules/unicase/u16-tolower-tests: New file.
47107         * tests/unicase/test-u16-tolower.c: New file.
47108
47109         Tests for module 'unicase/u8-tolower'.
47110         * modules/unicase/u8-tolower-tests: New file.
47111         * tests/unicase/test-u8-tolower.c: New file.
47112
47113         New module 'unicase/u32-tolower'.
47114         * lib/unicase/u32-tolower.c: New file.
47115         * modules/unicase/u32-tolower: New file.
47116
47117         New module 'unicase/u16-tolower'.
47118         * lib/unicase/u16-tolower.c: New file.
47119         * modules/unicase/u16-tolower: New file.
47120
47121         New module 'unicase/u8-tolower'.
47122         * lib/unicase/u8-tolower.c: New file.
47123         * modules/unicase/u8-tolower: New file.
47124
47125         Tests for module 'unicase/u32-toupper'.
47126         * modules/unicase/u32-toupper-tests: New file.
47127         * tests/unicase/test-u32-toupper.c: New file.
47128
47129         Tests for module 'unicase/u16-toupper'.
47130         * modules/unicase/u16-toupper-tests: New file.
47131         * tests/unicase/test-u16-toupper.c: New file.
47132
47133         Tests for module 'unicase/u8-toupper'.
47134         * modules/unicase/u8-toupper-tests: New file.
47135         * tests/unicase/test-u8-toupper.c: New file.
47136
47137         New module 'unicase/u32-toupper'.
47138         * lib/unicase/u32-toupper.c: New file.
47139         * modules/unicase/u32-toupper: New file.
47140
47141         New module 'unicase/u16-toupper'.
47142         * lib/unicase/u16-toupper.c: New file.
47143         * modules/unicase/u16-toupper: New file.
47144
47145         New module 'unicase/u8-toupper'.
47146         * lib/unicase/u8-toupper.c: New file.
47147         * modules/unicase/u8-toupper: New file.
47148
47149         New module 'unicase/u32-casemap'.
47150         * lib/unicase/u32-casemap.c: New file.
47151         * modules/unicase/u32-casemap: New file.
47152
47153         New module 'unicase/u16-casemap'.
47154         * lib/unicase/u16-casemap.c: New file.
47155         * modules/unicase/u16-casemap: New file.
47156
47157         New module 'unicase/u8-casemap'.
47158         * lib/unicase/unicasemap.h: New file.
47159         * lib/unicase/u8-casemap.c: New file.
47160         * lib/unicase/u-casemap.h: New file.
47161         * modules/unicase/u8-casemap: New file.
47162
47163         New module 'unicase/special-casing'.
47164         * lib/unicase/special-casing.h: New file.
47165         * lib/unicase/special-casing.c: New file.
47166         * lib/unicase/special-casing-table.gperf: New file, generated by
47167         gen-uni-tables.c.
47168         * modules/unicase/special-casing: New file.
47169
47170         Tests for module 'unicase/locale-language'.
47171         * modules/unicase/locale-language-tests: New file.
47172         * tests/unicase/test-locale-language.sh: New file.
47173         * tests/unicase/test-locale-language.c: New file.
47174
47175         New module 'unicase/locale-language'.
47176         * lib/unicase/locale-language.c: New file.
47177         * lib/unicase/locale-languages.gperf: New file.
47178         * modules/unicase/locale-language: New file.
47179
47180         Generate more tables for case conversion and case folding.
47181         * lib/gen-uni-tables.c (SCC_*): New enum items.
47182         (struct special_casing_rule): New type.
47183         (casing_rules, num_casing_rules, allocated_casing_rules): New
47184         variables.
47185         (add_casing_rule, fill_casing_rules): New functions.
47186         (struct casefold_rule): New type.
47187         (casefolding_rules, num_casefolding_rules,
47188         allocated_casefolding_rules): New variables.
47189         (fill_casefolding_rules): New function.
47190         (unicode_casefold): New variable.
47191         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47192         sort_casing_rules, output_casing_rules): New functions.
47193         (main): Accept to more arguments: SpecialCasing.txt and
47194         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47195         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47196         Output mapping for casefolding.
47197
47198         * lib/unicase.h: Include stdbool.h, uninorm.h.
47199         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47200         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47201         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47202         arguments.
47203         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47204         resultp arguments.
47205         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47206         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47207         resultp arguments.
47208         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47209         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47210         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47211         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47212         declarations.
47213         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47214
47215 2009-03-08  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47218         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47219         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47220         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47221
47222 2009-03-07  Bruno Haible  <bruno@clisp.org>
47223
47224         Adjust u*_normcmp, u*_normcoll API.
47225         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47226         u16_normcoll, u32_normcoll): Change failure conventions.
47227         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47228         errno and return -1.
47229         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47230
47231 2009-03-07  Bruno Haible  <bruno@clisp.org>
47232
47233         Tests for module 'uninorm/u32-normcoll'.
47234         * modules/uninorm/u32-normcoll-tests: New file.
47235         * tests/uninorm/test-u32-normcoll.c: New file.
47236
47237         Tests for module 'uninorm/u16-normcoll'.
47238         * modules/uninorm/u16-normcoll-tests: New file.
47239         * tests/uninorm/test-u16-normcoll.c: New file.
47240
47241         Tests for module 'uninorm/u8-normcoll'.
47242         * modules/uninorm/u8-normcoll-tests: New file.
47243         * tests/uninorm/test-u8-normcoll.c: New file.
47244
47245 2009-03-07  Bruno Haible  <bruno@clisp.org>
47246
47247         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47248         tests/uninorm/test-u32-normcmp.c.
47249         * tests/uninorm/test-u32-normcmp.c: Include it.
47250         (test_nonascii): New function, extracted from main. Add some more
47251         tests.
47252         (main): Invoke test_ascii and test_nonascii.
47253         * modules/uninorm/u32-normcmp-tests (Files): Add
47254         tests/uninorm/test-u32-normcmp.h.
47255         (Depends-on): Remove uninorm/u32-normcmp.
47256
47257         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47258         tests/uninorm/test-u16-normcmp.c.
47259         * tests/uninorm/test-u16-normcmp.c: Include it.
47260         (test_nonascii): New function, extracted from main. Add some more
47261         tests.
47262         (main): Invoke test_ascii and test_nonascii.
47263         * modules/uninorm/u16-normcmp-tests (Files): Add
47264         tests/uninorm/test-u16-normcmp.h.
47265         (Depends-on): Remove uninorm/u16-normcmp.
47266
47267         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47268         tests/uninorm/test-u8-normcmp.c.
47269         * tests/uninorm/test-u8-normcmp.c: Include it.
47270         (test_nonascii): New function, extracted from main. Add some more
47271         tests.
47272         (main): Invoke test_ascii and test_nonascii.
47273         * modules/uninorm/u8-normcmp-tests (Files): Add
47274         tests/uninorm/test-u8-normcmp.h.
47275         (Depends-on): Remove uninorm/u8-normcmp.
47276
47277 2009-03-07  Bruno Haible  <bruno@clisp.org>
47278
47279         New module 'uninorm/u32-normcoll'.
47280         * lib/uninorm/u32-normcoll.c: New file.
47281         * modules/uninorm/u32-normcoll: New file.
47282
47283         New module 'uninorm/u16-normcoll'.
47284         * lib/uninorm/u16-normcoll.c: New file.
47285         * modules/uninorm/u16-normcoll: New file.
47286
47287         New module 'uninorm/u8-normcoll'.
47288         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47289         declarations.
47290         * lib/uninorm/u8-normcoll.c: New file.
47291         * lib/uninorm/u-normcoll.h: New file.
47292         * modules/uninorm/u8-normcoll: New file.
47293
47294         New module 'uninorm/u32-normxfrm'.
47295         * lib/uninorm/u32-normxfrm.c: New file.
47296         * modules/uninorm/u32-normxfrm: New file.
47297
47298         New module 'uninorm/u16-normxfrm'.
47299         * lib/uninorm/u16-normxfrm.c: New file.
47300         * modules/uninorm/u16-normxfrm: New file.
47301
47302         New module 'uninorm/u8-normxfrm'.
47303         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47304         declarations.
47305         * lib/uninorm/u8-normxfrm.c: New file.
47306         * lib/uninorm/u-normxfrm.h: New file.
47307         * modules/uninorm/u8-normxfrm: New file.
47308
47309 2009-03-07  Bruno Haible  <bruno@clisp.org>
47310
47311         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47312         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47313         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47314
47315 2009-03-07  Bruno Haible  <bruno@clisp.org>
47316
47317         New module 'memxfrm'.
47318         * lib/memxfrm.h: New file.
47319         * lib/memxfrm.c: New file.
47320         * modules/memxfrm: New file.
47321
47322 2009-03-07  Bruno Haible  <bruno@clisp.org>
47323
47324         New module 'memcmp2'.
47325         * lib/memcmp2.h: New file.
47326         * lib/memcmp2.c: New file.
47327         * modules/memcmp2: New file.
47328
47329 2009-03-07  Bruno Haible  <bruno@clisp.org>
47330
47331         Tests for module 'uninorm/decomposing-form'.
47332         * modules/uninorm/decomposing-form-tests: New file.
47333         * tests/uninorm/test-decomposing-form.c: New file.
47334
47335         New module 'uninorm/decomposing-form'.
47336         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47337         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47338         Add 'decomposing_variant' field.
47339         * lib/uninorm/decomposing-form.c: New file.
47340         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47341         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47342         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47343         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47344         * modules/uninorm/decomposing-form: New file.
47345         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47346         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47347
47348 2009-03-07  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47351         strings.
47352
47353 2009-03-06  Bruno Haible  <bruno@clisp.org>
47354
47355         Tests for module 'uninorm/u32-normcmp'.
47356         * tests/uninorm/test-u32-normcmp.c: New file.
47357         * modules/uninorm/u32-normcmp-tests: New file.
47358
47359         Tests for module 'uninorm/u16-normcmp'.
47360         * tests/uninorm/test-u16-normcmp.c: New file.
47361         * modules/uninorm/u16-normcmp-tests: New file.
47362
47363         Tests for module 'uninorm/u8-normcmp'.
47364         * tests/uninorm/test-u8-normcmp.c: New file.
47365         * modules/uninorm/u8-normcmp-tests: New file.
47366
47367         New module 'uninorm/u32-normcmp'.
47368         * lib/uninorm/u32-normcmp.c: New file.
47369         * modules/uninorm/u32-normcmp: New file.
47370
47371         New module 'uninorm/u16-normcmp'.
47372         * lib/uninorm/u16-normcmp.c: New file.
47373         * modules/uninorm/u16-normcmp: New file.
47374
47375         New module 'uninorm/u8-normcmp'.
47376         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47377         declarations.
47378         * lib/uninorm/u8-normcmp.c: New file.
47379         * lib/uninorm/u-normcmp.h: New file.
47380         * modules/uninorm/u8-normcmp: New file.
47381
47382 2009-03-06  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47385         Reported by Eric Blake.
47386
47387 2009-03-06  Eric Blake  <ebb9@byu.net>
47388             Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47391         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47392         condition.
47393         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47394         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47395         condition.
47396         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47397
47398 2009-03-06  Eric Blake  <ebb9@byu.net>
47399
47400         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47401         to avoid compiler warnings.
47402         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47403
47404 2009-03-05  Bruno Haible  <bruno@clisp.org>
47405
47406         * tests/test-ftell.c (main): Disable test beyond end of file on
47407         FreeMiNT.
47408         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47409
47410 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47411
47412         * lib/filevercmp.c: Move hidden files up in ordering.
47413         * tests/test-filevercmp.c: Add tests for hidden files.
47414
47415 2009-03-04  Bruno Haible  <bruno@clisp.org>
47416
47417         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47418         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47419         AM_CFLAGS.
47420         Reported by Simon Josefsson.
47421
47422 2009-03-03  Bruno Haible  <bruno@clisp.org>
47423
47424         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47425         Reported by Simon Josefsson.
47426
47427         * doc/ld-version-script.texi: Update node reference.
47428
47429 2009-03-03  Bruno Haible  <bruno@clisp.org>
47430
47431         * modules/visibility (License): Change to 'unlimited'.
47432         Suggested by Simon Josefsson.
47433
47434 2009-03-03  Jim Meyering  <meyering@redhat.com>
47435
47436         unlinkdir: cannot_unlink_dir may modify process state
47437         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47438         it's neither thread-safe nor appropriate for use in a library.
47439
47440 2009-03-03  Eric Blake  <ebb9@byu.net>
47441
47442         test-closein: silence test under Darwin
47443         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47444         care if it dies from EPIPE or EBADF.
47445
47446 2009-03-03  Bruno Haible  <bruno@clisp.org>
47447
47448         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47449         earlier.
47450         * doc/visibility.texi: Fix @node and @section.
47451
47452 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47453
47454         * doc/gnulib.texi: Link to sections for ld version script and
47455         visibility.
47456         * doc/visibility.texi: Add @node and @section.
47457         * modules/ld-version-script: New module.
47458         * m4/ld-version-script.m4: New file.
47459         * doc/ld-version-script.texi: New file.
47460
47461 2009-03-02  David Lutterkort  <lutter@redhat.com>
47462
47463         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47465
47466 2009-03-02  Bruno Haible  <bruno@clisp.org>
47467
47468         * doc/visibility.texi: Mention libtool's -export-symbols option.
47469
47470 2009-03-02  Jim Meyering  <meyering@redhat.com>
47471
47472         announce-gen: new option: --no-print-checksums
47473         * build-aux/announce-gen (usage): Describe it.
47474         (print_checksums): Print a newline here, not in the [*] footnote.
47475         (main): Honor it.
47476
47477 2009-03-01  Bruno Haible  <bruno@clisp.org>
47478
47479         Use socklen_t in the native Windows replacements prototypes.
47480         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47481         instead of 'int'.
47482         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47483         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47484         * modules/getsockopt (Depends-on): Add socklen.
47485         * modules/setsockopt (Depends-on): Add socklen.
47486
47487 2009-03-01  Bruno Haible  <bruno@clisp.org>
47488
47489         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47490         least 4.2.
47491
47492 2009-03-01  Eric Blake  <ebb9@byu.net>
47493             Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47496         error messages.
47497         * lib/wait-process.c (wait_subprocess): Omit error message about
47498         deadly signal sent to the child of termsigp != NULL.
47499
47500 2009-03-01  Eric Blake  <ebb9@byu.net>
47501
47502         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47503
47504 2009-03-01  Bruno Haible  <bruno@clisp.org>
47505
47506         Avoid a gcc warning.
47507         * tests/test-sched.c (b): Make global.
47508         Reported by Eric Blake.
47509
47510 2009-01-19  Martin Lambers  <marlam@marlam.de>
47511
47512         Provide POSIX semantics for socket timeout options on W32.
47513         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47514         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47515         * modules/setsockopt: Depend on sys_time module for struct timeval.
47516         * modules/getsockopt: Depend on sys_time module for struct timeval.
47517
47518 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47519
47520         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47521         __USE_GNU, for consistency with netdb.in.h.
47522         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47523
47524 2009-03-01  Bruno Haible  <bruno@clisp.org>
47525
47526         More support for FreeMiNT.
47527         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47529
47530 2009-03-01  Bruno Haible  <bruno@clisp.org>
47531
47532         More support for FreeMiNT.
47533         * lib/fpurge.c (fpurge): Correct last commit.
47534         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47535
47536 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47537
47538         Fix unportable awk script in vc-list-files.
47539         * build-aux/vc-list-files: In the replacement awk script, use
47540         substr with a second argument of 1, not zero.
47541         Report by Simon Josefsson.
47542
47543 2009-02-28  Bruno Haible  <bruno@clisp.org>
47544
47545         More support for FreeMiNT.
47546         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47547         to FreeMiNT today.
47548         * lib/fwriting.c (fwriting): Likewise.
47549         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47550
47551 2009-02-28  Bruno Haible  <bruno@clisp.org>
47552
47553         * tests/test-freadseek.c (main): Disable test beyond end of file on
47554         FreeMiNT.
47555         * tests/test-ftello.c (main): Likewise.
47556         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47557
47558 2009-02-28  Bruno Haible  <bruno@clisp.org>
47559
47560         Add tentative support for FreeMiNT.
47561         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47562         * lib/fpurge.c (fpurge): Likewise.
47563         * lib/freadable.c (freadable): Likewise.
47564         * lib/freading.c (freading): Likewise.
47565         * lib/freadptr.c (freadptr): Likewise.
47566         * lib/freadseek.c (freadptrinc): Likewise.
47567         * lib/fseeko.c (rpl_fseeko): Likewise.
47568         * lib/fseterr.c (fseterr): Likewise.
47569         * lib/fwritable.c (fwritable): Likewise.
47570         * lib/fwriting.c (fwriting): Likewise.
47571         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47572         Hourihane.
47573         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47574
47575 2009-02-28  Bruno Haible  <bruno@clisp.org>
47576
47577         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47578         SIGCHLD.
47579         Reported by Jim Meyering.
47580
47581 2009-02-28  Bruno Haible  <bruno@clisp.org>
47582
47583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47584         Mention the results of these tests on various platforms.
47585         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47586         order.
47587         * doc/posix-functions/printf.texi: Likewise.
47588         * doc/posix-functions/snprintf.texi: Likewise.
47589         * doc/posix-functions/sprintf.texi: Likewise.
47590         * doc/posix-functions/vfprintf.texi: Likewise.
47591         * doc/posix-functions/vprintf.texi: Likewise.
47592         * doc/posix-functions/vsnprintf.texi: Likewise.
47593         * doc/posix-functions/vsprintf.texi: Likewise.
47594         * doc/glibc-functions/obstack_printf.texi: Likewise.
47595         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47596
47597 2009-02-28  Bruno Haible  <bruno@clisp.org>
47598
47599         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47600         Reported by Loïc Minier <lool@dooz.org>.
47601
47602 2009-02-27  Bruno Haible  <bruno@clisp.org>
47603
47604         * gnulib-tool (func_import): Make the sed expression used to create the
47605         sed script for updating the .gitignore file POSIX compliant.
47606         Reported by Eric Blake.
47607
47608 2009-02-27  Bruno Haible  <bruno@clisp.org>
47609
47610         * gnulib-tool (sed): Don't alias as "sed --posix".
47611         Reported by Eric Blake.
47612
47613 2009-02-27  Bruno Haible  <bruno@clisp.org>
47614
47615         Avoid test link errors.
47616         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47617         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47618         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47619         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47621
47622 2009-02-27  Bruno Haible  <bruno@clisp.org>
47623
47624         Avoid spurious "(cached)" in configure output.
47625         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47626         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47627         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47628         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47629         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47630         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47631         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47632         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47633         Reported by Eric Blake.
47634
47635 2009-02-27  Eric Blake  <ebb9@byu.net>
47636
47637         printf: fix regression in previous patch
47638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47639
47640 2009-02-27  Bruno Haible  <bruno@clisp.org>
47641
47642         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47643         value.
47644         * lib/stdint.in.h: Likewise.
47645         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47646
47647 2009-02-27  Eric Blake  <ebb9@byu.net>
47648
47649         doc: mention more functions added in cygwin 1.7.0
47650         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47651         addition.
47652         * doc/posix-functions/open_wmemstream.texi: Likewise.
47653         * doc/posix-functions/wcsnlen.texi: Likewise.
47654         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47655         * doc/posix-functions/wcstod.texi: Likewise.
47656         * doc/posix-functions/wcstof.texi: Likewise.
47657         * doc/posix-functions/wcstoimax.texi: Likewise.
47658         * doc/posix-functions/wcstok.texi: Likewise.
47659         * doc/posix-functions/wcstoumax.texi: Likewise.
47660
47661         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47663         * doc/posix-functions/fprintf.texi: Update.
47664         * doc/posix-functions/printf.texi: Update.
47665         * doc/posix-functions/snprintf.texi: Update.
47666         * doc/posix-functions/sprintf.texi: Update.
47667         * doc/posix-functions/vfprintf.texi: Update.
47668         * doc/posix-functions/vprintf.texi: Update.
47669         * doc/posix-functions/vsnprintf.texi: Update.
47670         * doc/posix-functions/vsprintf.texi: Update.
47671         * doc/glibc-functions/obstack_printf.texi: Update.
47672         * doc/glibc-functions/obstack_vprintf.texi: Update.
47673
47674 2009-02-26  Eric Blake  <ebb9@byu.net>
47675
47676         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47677         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47678         compilation bug by using runtime conversion.
47679         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47680         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47681         * modules/ceill-tests (Files): Use nan.h.
47682         * modules/floorl-tests (Files): Likewise.
47683         * modules/frexpl-tests (Files): Likewise.
47684         * modules/isnanl-tests (Files): Likewise.
47685         * modules/ldexpl-tests (Files): Likewise.
47686         * modules/roundl-tests (Files): Likewise.
47687         * modules/truncl-tests (Files): Likewise.
47688         * tests/test-ceill.c (main): Use a working NaN.
47689         * tests/test-floorl.c (main): Likewise.
47690         * tests/test-frexpl.c (main): Likewise.
47691         * tests/test-isnan.c (test_long_double): Likewise.
47692         * tests/test-isnanl.h (main): Likewise.
47693         * tests/test-ldexpl.h (main): Likewise.
47694         * tests/test-roundl.h (main): Likewise.
47695         * tests/test-truncl.h (main): Likewise.
47696         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47697
47698 2009-02-26  Eric Blake  <ebb9@byu.net>
47699             Bruno Haible  <bruno@clisp.org>
47700
47701         Work around a *printf bug with %ls on Solaris.
47702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47703         precision is specified, sprintf stops converting the wide string
47704         argument when the number of bytes that have been produced by this
47705         conversion equals or exceeds the precision.
47706         * doc/posix-functions/fprintf.texi: Update.
47707         * doc/posix-functions/printf.texi: Update.
47708         * doc/posix-functions/snprintf.texi: Update.
47709         * doc/posix-functions/sprintf.texi: Update.
47710         * doc/posix-functions/vfprintf.texi: Update.
47711         * doc/posix-functions/vprintf.texi: Update.
47712         * doc/posix-functions/vsnprintf.texi: Update.
47713         * doc/posix-functions/vsprintf.texi: Update.
47714         * doc/glibc-functions/obstack_printf.texi: Update.
47715         * doc/glibc-functions/obstack_vprintf.texi: Update.
47716
47717 2009-02-26  Eric Blake  <ebb9@byu.net>
47718
47719         stdlib: favor compiler check of random.h
47720         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47721         to avoid an ObjC random.h installed by Swarm.
47722
47723 2009-02-26  Bruno Haible  <bruno@clisp.org>
47724
47725         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47726         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47727         Reported by Gary V. Vaughan <gary@gnu.org>.
47728
47729 2009-02-26  Bruno Haible  <bruno@clisp.org>
47730
47731         Fix *printf behaviour regarding the %ls directive.
47732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47733         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47734         NEED_PRINTF_DIRECTIVE_LS.
47735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47736         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47737         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47738         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47739         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47740         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47741         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47743         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47746         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47747         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47748         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47750         * doc/posix-functions/fprintf.texi: Update.
47751         * doc/posix-functions/printf.texi: Update.
47752         * doc/posix-functions/snprintf.texi: Update.
47753         * doc/posix-functions/sprintf.texi: Update.
47754         * doc/posix-functions/vfprintf.texi: Update.
47755         * doc/posix-functions/vprintf.texi: Update.
47756         * doc/posix-functions/vsnprintf.texi: Update.
47757         * doc/posix-functions/vsprintf.texi: Update.
47758         * doc/glibc-functions/obstack_printf.texi: Update.
47759         * doc/glibc-functions/obstack_vprintf.texi: Update.
47760         Reported by Eric Blake.
47761
47762 2009-02-25  Bruno Haible  <bruno@clisp.org>
47763
47764         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47765         with known value.
47766         Reported by Gary V. Vaughan <gary@gnu.org>.
47767
47768 2009-02-25  Bruno Haible  <bruno@clisp.org>
47769
47770         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47771         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47772         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47773         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47774         Reported by Gary V. Vaughan <gary@gnu.org>.
47775
47776 2009-02-25  Bruno Haible  <bruno@clisp.org>
47777
47778         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47779         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47780         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47781         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47782         Reported by Gary V. Vaughan <gary@gnu.org>.
47783
47784 2009-02-25  Eric Blake  <ebb9@byu.net>
47785
47786         tests: skip fseek/ftell tests if ungetc is broken
47787         * m4/ungetc.m4: New file.
47788         * modules/fseek-tests: Split test, so ungetc dependency is
47789         separate from rest of test.
47790         * modules/fseeko-tests: Likewise.
47791         * modules/ftell-tests: Likewise.
47792         * modules/ftello-tests: Likewise.
47793         * tests/test-fseek.c (main): Isolate ungetc dependency.
47794         * tests/test-fseeko.c (main): Likewise.
47795         * tests/test-ftell.c (main): Likewise.
47796         * tests/test-ftello.c (main): Likewise.
47797         * tests/test-fseek2.sh: New file.
47798         * tests/test-fseeko2.sh: Likewise.
47799         * tests/test-ftell2.sh: Likewise.
47800         * tests/test-ftello2.sh: Likewise.
47801
47802 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47803
47804         test-getaddrinfo: fix usage of skip return code 77
47805         * tests/test-gettaddrinfo.c: Return skip code 77 only
47806         for first occurrence of skip (4x77 is not 77)
47807
47808 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47809
47810         strtod: avoid C99 decl-after-statement
47811         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47812
47813 2009-02-24  Eric Blake  <ebb9@byu.net>
47814
47815         strtod: detect HP-UX 11.31 bug
47816         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47817         Reported by Gary V. Vaughan.
47818
47819 2009-02-23  Bruno Haible  <bruno@clisp.org>
47820
47821         Fix invalid read past end of memory block.
47822         * lib/vasnprintf.c (DCHAR_SET): Define.
47823         (local_wcslen): Define only when needed.
47824         (local_strnlen, local_wcsnlen): New functions.
47825         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47826         directives that involve a conversion ourselves.
47827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47828         wcsnlen, mbrtowc, wcrtomb.
47829         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47830         * tests/test-vasprintf-posix.c (test_function): Likewise.
47831         * tests/test-snprintf-posix.h (test_function): Likewise.
47832         * tests/test-sprintf-posix.h (test_function): Likewise.
47833         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47834
47835 2009-02-22  Bruno Haible  <bruno@clisp.org>
47836
47837         Implement new clarified decomposition of Hangul syllables.
47838         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47839         of type LTV, return only a pairwise decomposition.
47840         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47841         Likewise.
47842         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47843         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47844         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47845
47846 2009-02-22  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47849         zero-length results and shrink excess allocated memory.
47850         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47851         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47852         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47853         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47854         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47855         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47856         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47857         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47858         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47859         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47860         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47861         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47862
47863 2009-02-21  Bruno Haible  <bruno@clisp.org>
47864
47865         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47866         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47867         spaces after a period. Put a space between a macro name and its
47868         argument list. Trivial rewordings.
47869         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47870         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47871         (main): Return 0 explicitly.
47872
47873 2009-02-21  Bruno Haible  <bruno@clisp.org>
47874
47875         Tests for module 'uninorm/filter'.
47876         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47877         * modules/uninorm/filter-tests: New file.
47878
47879         New module 'uninorm/filter'.
47880         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47881         uninorm_filter_flush, uninorm_filter_free): New declarations.
47882         * lib/uninorm/uninorm-filter.c: New file.
47883         * modules/uninorm/filter: New file.
47884
47885 2009-02-21  Bruno Haible  <bruno@clisp.org>
47886
47887         Tests for module 'uninorm/nfkc'.
47888         * tests/uninorm/test-nfkc.c: New file.
47889         * tests/uninorm/test-u8-nfkc.c: New file.
47890         * tests/uninorm/test-u16-nfkc.c: New file.
47891         * tests/uninorm/test-u32-nfkc.c: New file.
47892         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47893         * tests/uninorm/test-u32-nfkc-big.c: New file.
47894         * modules/uninorm/nfkc-tests: New file.
47895
47896         New module 'uninorm/nfkc'.
47897         * lib/uninorm/nfkc.c: New file.
47898         * modules/uninorm/nfkc: New file.
47899
47900         Tests for module 'uninorm/nfkd'.
47901         * tests/uninorm/test-nfkd.c: New file.
47902         * tests/uninorm/test-u8-nfkd.c: New file.
47903         * tests/uninorm/test-u16-nfkd.c: New file.
47904         * tests/uninorm/test-u32-nfkd.c: New file.
47905         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47906         * tests/uninorm/test-u32-nfkd-big.c: New file.
47907         * modules/uninorm/nfkd-tests: New file.
47908
47909         New module 'uninorm/nfkd'.
47910         * lib/uninorm/nfkd.c: New file.
47911         * modules/uninorm/nfkd: New file.
47912
47913         Tests for module 'uninorm/nfc'.
47914         * tests/uninorm/test-nfc.c: New file.
47915         * tests/uninorm/test-u8-nfc.c: New file.
47916         * tests/uninorm/test-u16-nfc.c: New file.
47917         * tests/uninorm/test-u32-nfc.c: New file.
47918         * tests/uninorm/test-u32-nfc-big.sh: New file.
47919         * tests/uninorm/test-u32-nfc-big.c: New file.
47920         * modules/uninorm/nfc-tests: New file.
47921
47922         New module 'uninorm/nfc'.
47923         * lib/uninorm/nfc.c: New file.
47924         * modules/uninorm/nfc: New file.
47925
47926         Tests for module 'uninorm/nfd'.
47927         * tests/uninorm/test-nfd.c: New file.
47928         * tests/uninorm/test-u8-nfd.c: New file.
47929         * tests/uninorm/test-u16-nfd.c: New file.
47930         * tests/uninorm/test-u32-nfd.c: New file.
47931         * tests/uninorm/test-u32-nfd-big.sh: New file.
47932         * tests/uninorm/test-u32-nfd-big.c: New file.
47933         * tests/uninorm/test-u32-normalize-big.h: New file.
47934         * tests/uninorm/test-u32-normalize-big.c: New file.
47935         * tests/uninorm/NormalizationTest.txt: New file, created from
47936         Unicode 5.1.0 NormalizationTest.txt.
47937         * modules/uninorm/nfd-tests: New file.
47938
47939         New module 'uninorm/nfd'.
47940         * lib/uninorm/nfd.c: New file.
47941         * modules/uninorm/nfd: New file.
47942
47943         New module 'uninorm/u32-normalize'.
47944         * lib/uninorm/u32-normalize.c: New file.
47945         * modules/uninorm/u32-normalize: New file.
47946
47947         New module 'uninorm/u16-normalize'.
47948         * lib/uninorm/u16-normalize.c: New file.
47949         * modules/uninorm/u16-normalize: New file.
47950
47951         New module 'uninorm/u8-normalize'.
47952         * lib/uninorm/u8-normalize.c: New file.
47953         * lib/uninorm/normalize-internal.h: New file.
47954         * lib/uninorm/u-normalize-internal.h: New file.
47955         * modules/uninorm/u8-normalize: New file.
47956
47957         New module 'uninorm/decompose-internal'.
47958         * lib/uninorm/decompose-internal.c: New file.
47959         * modules/uninorm/decompose-internal: New file.
47960
47961         Tests for module 'uninorm/composition'.
47962         * tests/uninorm/test-composition.c: New file.
47963         * modules/uninorm/composition-tests: New file.
47964
47965         New module 'uninorm/composition'.
47966         * lib/uninorm/composition.c: New file.
47967         * lib/uninorm/composition-table.gperf: New file, generated by
47968         gen-uni-tables.
47969         * modules/uninorm/composition: New file.
47970
47971         Tests for module 'uninorm/compat-decomposition'.
47972         * tests/uninorm/test-compat-decomposition.c: New file.
47973         * modules/uninorm/compat-decomposition-tests: New file.
47974
47975         New module 'uninorm/compat-decomposition'.
47976         * lib/uninorm/decompose-internal.h: New file.
47977         * lib/uninorm/compat-decomposition.c: New file.
47978         * modules/uninorm/compat-decomposition: New file.
47979
47980         Tests for module 'uninorm/canonical-decomposition'.
47981         * tests/uninorm/test-canonical-decomposition.c: New file.
47982         * modules/uninorm/canonical-decomposition-tests: New file.
47983
47984         New module 'uninorm/canonical-decomposition'.
47985         * lib/uninorm/canonical-decomposition.c: New file.
47986         * modules/uninorm/canonical-decomposition: New file.
47987
47988         Tests for module 'uninorm/decomposition'.
47989         * tests/uninorm/test-decomposition.c: New file.
47990         * modules/uninorm/decomposition-tests: New file.
47991
47992         New module 'uninorm/decomposition'.
47993         * lib/uninorm/decomposition.c: New file.
47994         * modules/uninorm/decomposition: New file.
47995
47996         New module 'uninorm/decomposition-table'.
47997         * lib/uninorm/decomposition-table.h: New file.
47998         * lib/uninorm/decomposition-table.c: New file.
47999         * lib/uninorm/decomposition-table1.h: New file, generated by
48000         gen-uni-tables.
48001         * lib/uninorm/decomposition-table2.h: New file, generated by
48002         gen-uni-tables.
48003         * modules/uninorm/decomposition-table: New file.
48004
48005         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48006         (UC_DECOMP_*): New enumeration items.
48007         (get_decomposition): New function.
48008         (struct decomp_table): New type.
48009         (output_decomposition, output_decomposition_tables): New functions.
48010         (unicode_composition_exclusions): New variable.
48011         (fill_composition_exclusions, debug_output_composition_tables): New
48012         functions.
48013         (main): Accept one more argument. Invoke fill_composition_exclusions.
48014         Output decomposition and composition tables.
48015
48016         New module 'uninorm/base'.
48017         * lib/uninorm.h: New file.
48018         * lib/unictype.h: Update comment.
48019         * modules/uninorm/base: New file.
48020
48021 2009-02-21  David Lutterkort  <lutter@redhat.com>
48022
48023         Tests for module 'safe-alloc'.
48024         * tests/test-safe-alloc.c: New file.
48025         * modules/safe-alloc-tests: New file.
48026
48027         New module 'safe-alloc'.
48028         * lib/safe-alloc.h: New file.
48029         * lib/safe-alloc.c: New file.
48030         * m4/safe-alloc.m4: New file.
48031         * modules/safe-alloc: New file.
48032         * doc/safe-alloc.texi: New file.
48033         * doc/gnulib.texi: Include it.
48034         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48035         safe-alloc.
48036
48037 2009-02-18  Bruno Haible  <bruno@clisp.org>
48038
48039         Fix link error on non-glibc systems.
48040         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48041         variable.
48042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48043
48044 2009-02-18  Jim Meyering  <meyering@redhat.com>
48045
48046         fts: avoid used-uninitialized error due to recent change
48047         * lib/fts.c (fts_read): Guard uses of the new member,
48048         parent->fts_n_dirs_remaining, since it's not relevant for
48049         the parent of a directory specified on the command-line.
48050
48051 2009-02-17  James Youngman  <jay@gnu.org>
48052             Bruno Haible  <bruno@clisp.org>
48053
48054         * m4/include_next.m4: Reformulate comment.
48055
48056 2009-02-16  Jim Meyering  <meyering@redhat.com>
48057
48058         fts: add #if guards so that the fts_lgpl module still builds
48059         * lib/fts.c: Guard just-added hash-table-using parts with
48060         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48061         Reported by Simon Josefsson.
48062
48063 2009-02-15  Bruno Haible  <bruno@clisp.org>
48064
48065         * modules/array-mergesort-tests: New file.
48066         * tests/test-array-mergesort.c: New file.
48067
48068         New module 'array-mergesort'.
48069         * modules/array-mergesort: New file.
48070         * lib/array-mergesort.h: New file.
48071
48072 2009-02-15  Bruno Haible  <bruno@clisp.org>
48073
48074         Fix 2009-02-07 commit.
48075         * lib/gen-uni-tables.c (output_predicate, output_category,
48076         output_combclass, output_bidi_category, output_decimal_digit,
48077         output_digit, output_numeric, output_mirror, output_scripts,
48078         output_ident_category, output_simple_mapping): Fix format directives.
48079         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48080
48081 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48082
48083         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48084         fixes are available from IBM.
48085
48086 2009-02-13  Jim Meyering  <meyering@redhat.com>
48087
48088         fts: arrange not to stat non-directories in more cases
48089         This makes GNU find (when it doesn't need to stat each file)
48090         *much* more efficient at traversing reiserfs file systems.
48091         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48092         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48093         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48094         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48095         (leaf_optimization_applies): New function.
48096         (LCO_hash, LCO_compare): New helper functions.
48097         (link_count_optimize_ok): New function.
48098         (fts_stat): Initialize new member (if dir).
48099         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48100         we've just stat'ed a directory.  Skip the stat call when possible.
48101         ---
48102         Note this AFS-related exchange:
48103         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48104         and note find's pioctl call in find/fstype.c.
48105         But that is necessary only if you want to enable the
48106         optimization for AFS, and for now, I don't.
48107
48108         fts: move a function definition "up" (no semantic change)
48109         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48110         "up" to precede upcoming use of a related function.
48111
48112 2009-02-11  Jim Meyering  <meyering@redhat.com>
48113
48114         fts: correct internal computation of nlinks (optimization-related)
48115         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48116         whether the current entry is a directory, so don't test it.
48117
48118 2009-02-10  Bruno Haible  <bruno@clisp.org>
48119
48120         Tests for module 'uniwbrk/ulc-wordbreaks'.
48121         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48122         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48123         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48124
48125         Tests for module 'uniwbrk/u32-wordbreaks'.
48126         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48127         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48128
48129         Tests for module 'uniwbrk/u16-wordbreaks'.
48130         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48131         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48132
48133         Tests for module 'uniwbrk/u8-wordbreaks'.
48134         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48135         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48136
48137 2009-02-10  Bruno Haible  <bruno@clisp.org>
48138
48139         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48140         property.
48141         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48142         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48143         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48144
48145 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48146
48147         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48148         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48149
48150 2009-02-10  Bruno Haible  <bruno@clisp.org>
48151
48152         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48153         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48154         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48155         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48156         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48157         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48158
48159 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48160
48161         * lib/sockets.h (gl_fd_to_handle): New function.
48162
48163         * tests/test-sockets.c: Call gl_fd_to_handle.
48164
48165 2009-02-09  Bruno Haible  <bruno@clisp.org>
48166
48167         * doc/havelib.texi: Document the conventions on bi-arch systems.
48168
48169 2009-02-08  Bruno Haible  <bruno@clisp.org>
48170
48171         Document the AC_LIB_LINKFLAGS macro.
48172         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48173         * doc/gnulib.texi: Include it.
48174
48175 2009-02-08  Bruno Haible  <bruno@clisp.org>
48176
48177         Fix wrong order of sections, compared to TOC.
48178         * doc/gnulib.texi: Include relocatable-maint.texi after the
48179         "Regular expressions" node, not before.
48180
48181 2009-02-08  Bruno Haible  <bruno@clisp.org>
48182
48183         Tests for module 'unicase/totitle'.
48184         * modules/unicase/totitle-tests: New file.
48185
48186         Tests for module 'unicase/tolower'.
48187         * modules/unicase/tolower-tests: New file.
48188
48189         Tests for module 'unicase/toupper'.
48190         * modules/unicase/toupper-tests: New file.
48191         * tests/unicase/test-mapping-part1.h: New file.
48192         * tests/unicase/test-mapping-part2.h: New file.
48193
48194         New module 'unicase/totitle'.
48195         * modules/unicase/totitle: New file.
48196         * lib/unicase/totitle.c: New file.
48197
48198         New module 'unicase/tolower'.
48199         * modules/unicase/tolower: New file.
48200         * lib/unicase/tolower.c: New file.
48201
48202         New module 'unicase/toupper'.
48203         * modules/unicase/toupper: New file.
48204         * lib/unicase/toupper.c: New file.
48205         * lib/unicase/simple-mapping.h: New file.
48206
48207         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48208         (mapping_table): New structure.
48209         (output_simple_mapping): New function.
48210         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48211         * modules/gen-uni-tables (Description): Update.
48212         * lib/unicase/toupper.h: New file, automatically generated by
48213         gen-uni-tables.
48214         * lib/unicase/tolower.h: New file, automatically generated by
48215         gen-uni-tables.
48216         * lib/unicase/totitle.h: New file, automatically generated by
48217         gen-uni-tables.
48218         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48219         gen-uni-tables.
48220         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48221         gen-uni-tables.
48222         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48223         gen-uni-tables.
48224
48225         New module 'unicase/base'.
48226         * modules/unicase/base: New file.
48227         * lib/unicase.h: New file.
48228
48229 2009-02-08  Bruno Haible  <bruno@clisp.org>
48230
48231         New module 'uniwbrk/ulc-wordbreaks'.
48232         * modules/uniwbrk/ulc-wordbreaks: New file.
48233         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48234
48235         New module 'uniwbrk/u32-wordbreaks'.
48236         * modules/uniwbrk/u32-wordbreaks: New file.
48237         * lib/uniwbrk/u32-wordbreaks.c: New file.
48238
48239         New module 'uniwbrk/u16-wordbreaks'.
48240         * modules/uniwbrk/u16-wordbreaks: New file.
48241         * lib/uniwbrk/u16-wordbreaks.c: New file.
48242
48243         New module 'uniwbrk/u8-wordbreaks'.
48244         * modules/uniwbrk/u8-wordbreaks: New file.
48245         * lib/uniwbrk/u8-wordbreaks.c: New file.
48246         * lib/uniwbrk/u-wordbreaks.h: New file.
48247
48248         New module 'uniwbrk/table'.
48249         * modules/uniwbrk/table: New file.
48250         * lib/uniwbrk/wbrktable.h: New file.
48251         * lib/uniwbrk/wbrktable.c: New file.
48252
48253         New module 'uniwbrk/wordbreak-property'.
48254         * modules/uniwbrk/wordbreak-property: New file.
48255         * lib/uniwbrk/wordbreak-property.c: New file.
48256
48257         * lib/gen-uni-tables.c (WBP_*): New enum items.
48258         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48259         (unicode_org_wbp): New variable.
48260         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48261         New functions.
48262         (wbp_table): New structure.
48263         (output_wbp, output_wbrk_tables): New functions.
48264         (main): Accept additional argument. Invoke fill_org_wbp,
48265         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48266         output_wbrk_tables.
48267         * modules/gen-uni-tables (Description): Update.
48268         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48269         gen-uni-tables.
48270
48271         New module 'uniwbrk/base'.
48272         * modules/uniwbrk/base: New file.
48273         * lib/uniwbrk.h: New file.
48274
48275 2009-02-08  Bruno Haible  <bruno@clisp.org>
48276
48277         Update to Unicode 5.1.0.
48278         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48279         U+2185..U+2188.
48280         (is_property_default_ignorable_code_point): Don't include characters
48281         of category Cc or Cs and not-a-characters.
48282         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48283         U+0D79, U+109E, U+109F, U+A60C.
48284         * lib/unictype/bidi_of.h: Regenerated.
48285         * lib/unictype/blocks.h: Regenerated.
48286         * lib/unictype/categ_C.h: Regenerated.
48287         * lib/unictype/categ_Cf.h: Regenerated.
48288         * lib/unictype/categ_Cn.h: Regenerated.
48289         * lib/unictype/categ_L.h: Regenerated.
48290         * lib/unictype/categ_Ll.h: Regenerated.
48291         * lib/unictype/categ_Lm.h: Regenerated.
48292         * lib/unictype/categ_Lo.h: Regenerated.
48293         * lib/unictype/categ_Lu.h: Regenerated.
48294         * lib/unictype/categ_M.h: Regenerated.
48295         * lib/unictype/categ_Mc.h: Regenerated.
48296         * lib/unictype/categ_Me.h: Regenerated.
48297         * lib/unictype/categ_Mn.h: Regenerated.
48298         * lib/unictype/categ_N.h: Regenerated.
48299         * lib/unictype/categ_Nd.h: Regenerated.
48300         * lib/unictype/categ_Nl.h: Regenerated.
48301         * lib/unictype/categ_No.h: Regenerated.
48302         * lib/unictype/categ_P.h: Regenerated.
48303         * lib/unictype/categ_Pd.h: Regenerated.
48304         * lib/unictype/categ_Pe.h: Regenerated.
48305         * lib/unictype/categ_Pf.h: Regenerated.
48306         * lib/unictype/categ_Pi.h: Regenerated.
48307         * lib/unictype/categ_Po.h: Regenerated.
48308         * lib/unictype/categ_Ps.h: Regenerated.
48309         * lib/unictype/categ_S.h: Regenerated.
48310         * lib/unictype/categ_Sk.h: Regenerated.
48311         * lib/unictype/categ_Sm.h: Regenerated.
48312         * lib/unictype/categ_So.h: Regenerated.
48313         * lib/unictype/categ_of.h: Regenerated.
48314         * lib/unictype/combining.h: Regenerated.
48315         * lib/unictype/ctype_alnum.h: Regenerated.
48316         * lib/unictype/ctype_alpha.h: Regenerated.
48317         * lib/unictype/ctype_graph.h: Regenerated.
48318         * lib/unictype/ctype_lower.h: Regenerated.
48319         * lib/unictype/ctype_print.h: Regenerated.
48320         * lib/unictype/ctype_punct.h: Regenerated.
48321         * lib/unictype/ctype_upper.h: Regenerated.
48322         * lib/unictype/decdigit.h: Regenerated.
48323         * lib/unictype/digit.h: Regenerated.
48324         * lib/unictype/mirror.h: Regenerated.
48325         * lib/unictype/numeric.h: Regenerated.
48326         * lib/unictype/pr_alphabetic.h: Regenerated.
48327         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48328         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48329         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48330         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48331         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48332         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48333         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48334         * lib/unictype/pr_combining.h: Regenerated.
48335         * lib/unictype/pr_dash.h: Regenerated.
48336         * lib/unictype/pr_decimal_digit.h: Regenerated.
48337         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48338         * lib/unictype/pr_deprecated.h: Regenerated.
48339         * lib/unictype/pr_diacritic.h: Regenerated.
48340         * lib/unictype/pr_extender.h: Regenerated.
48341         * lib/unictype/pr_format_control.h: Regenerated.
48342         * lib/unictype/pr_grapheme_base.h: Regenerated.
48343         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48344         * lib/unictype/pr_grapheme_link.h: Regenerated.
48345         * lib/unictype/pr_id_continue.h: Regenerated.
48346         * lib/unictype/pr_id_start.h: Regenerated.
48347         * lib/unictype/pr_ideographic.h: Regenerated.
48348         * lib/unictype/pr_ignorable_control.h: Regenerated.
48349         * lib/unictype/pr_lowercase.h: Regenerated.
48350         * lib/unictype/pr_math.h: Regenerated.
48351         * lib/unictype/pr_numeric.h: Regenerated.
48352         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48353         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48354         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48355         * lib/unictype/pr_other_id_continue.h: Regenerated.
48356         * lib/unictype/pr_other_lowercase.h: Regenerated.
48357         * lib/unictype/pr_other_math.h: Regenerated.
48358         * lib/unictype/pr_punctuation.h: Regenerated.
48359         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48360         * lib/unictype/pr_soft_dotted.h: Regenerated.
48361         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48362         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48363         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48364         * lib/unictype/pr_uppercase.h: Regenerated.
48365         * lib/unictype/pr_xid_continue.h: Regenerated.
48366         * lib/unictype/pr_xid_start.h: Regenerated.
48367         * lib/unictype/pr_zero_width.h: Regenerated.
48368         * lib/unictype/scripts.h: Regenerated.
48369         * lib/unictype/scripts_byname.gperf: Regenerated.
48370         * lib/unictype/sy_java_ident.h: Regenerated.
48371         * lib/unilbrk/lbrkprop1.h: Regenerated.
48372         * lib/unilbrk/lbrkprop2.h: Regenerated.
48373         * tests/unictype/test-categ_C.c: Regenerated.
48374         * tests/unictype/test-categ_Cf.c: Regenerated.
48375         * tests/unictype/test-categ_Cn.c: Regenerated.
48376         * tests/unictype/test-categ_L.c: Regenerated.
48377         * tests/unictype/test-categ_Ll.c: Regenerated.
48378         * tests/unictype/test-categ_Lm.c: Regenerated.
48379         * tests/unictype/test-categ_Lo.c: Regenerated.
48380         * tests/unictype/test-categ_Lu.c: Regenerated.
48381         * tests/unictype/test-categ_M.c: Regenerated.
48382         * tests/unictype/test-categ_Mc.c: Regenerated.
48383         * tests/unictype/test-categ_Me.c: Regenerated.
48384         * tests/unictype/test-categ_Mn.c: Regenerated.
48385         * tests/unictype/test-categ_N.c: Regenerated.
48386         * tests/unictype/test-categ_Nd.c: Regenerated.
48387         * tests/unictype/test-categ_Nl.c: Regenerated.
48388         * tests/unictype/test-categ_No.c: Regenerated.
48389         * tests/unictype/test-categ_P.c: Regenerated.
48390         * tests/unictype/test-categ_Pd.c: Regenerated.
48391         * tests/unictype/test-categ_Pe.c: Regenerated.
48392         * tests/unictype/test-categ_Pf.c: Regenerated.
48393         * tests/unictype/test-categ_Pi.c: Regenerated.
48394         * tests/unictype/test-categ_Po.c: Regenerated.
48395         * tests/unictype/test-categ_Ps.c: Regenerated.
48396         * tests/unictype/test-categ_S.c: Regenerated.
48397         * tests/unictype/test-categ_Sk.c: Regenerated.
48398         * tests/unictype/test-categ_Sm.c: Regenerated.
48399         * tests/unictype/test-categ_So.c: Regenerated.
48400         * tests/unictype/test-ctype_alnum.c: Regenerated.
48401         * tests/unictype/test-ctype_alpha.c: Regenerated.
48402         * tests/unictype/test-ctype_graph.c: Regenerated.
48403         * tests/unictype/test-ctype_lower.c: Regenerated.
48404         * tests/unictype/test-ctype_print.c: Regenerated.
48405         * tests/unictype/test-ctype_punct.c: Regenerated.
48406         * tests/unictype/test-ctype_upper.c: Regenerated.
48407         * tests/unictype/test-decdigit.h: Regenerated.
48408         * tests/unictype/test-digit.h: Regenerated.
48409         * tests/unictype/test-numeric.h: Regenerated.
48410         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48411         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48412         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48413         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48414         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48415         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48416         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48417         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48418         * tests/unictype/test-pr_combining.c: Regenerated.
48419         * tests/unictype/test-pr_dash.c: Regenerated.
48420         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48421         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48422         * tests/unictype/test-pr_deprecated.c: Regenerated.
48423         * tests/unictype/test-pr_diacritic.c: Regenerated.
48424         * tests/unictype/test-pr_extender.c: Regenerated.
48425         * tests/unictype/test-pr_format_control.c: Regenerated.
48426         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48427         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48428         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48429         * tests/unictype/test-pr_id_continue.c: Regenerated.
48430         * tests/unictype/test-pr_id_start.c: Regenerated.
48431         * tests/unictype/test-pr_ideographic.c: Regenerated.
48432         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48433         * tests/unictype/test-pr_lowercase.c: Regenerated.
48434         * tests/unictype/test-pr_math.c: Regenerated.
48435         * tests/unictype/test-pr_numeric.c: Regenerated.
48436         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48437         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48438         Regenerated.
48439         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48440         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48441         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48442         * tests/unictype/test-pr_other_math.c: Regenerated.
48443         * tests/unictype/test-pr_punctuation.c: Regenerated.
48444         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48445         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48446         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48447         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48448         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48449         * tests/unictype/test-pr_uppercase.c: Regenerated.
48450         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48451         * tests/unictype/test-pr_xid_start.c: Regenerated.
48452         * tests/unictype/test-pr_zero_width.c: Regenerated.
48453
48454         Update to Unicode 5.1.0.
48455         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48456         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48457         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48458         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48459         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48460         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48461         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48462         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48463         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48464         (nonspacing_table_ind): Update.
48465         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48466
48467         Update to Unicode 5.1.0.
48468         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48469         code transform.
48470         * lib/uniname/uniname.c (unicode_character_name,
48471         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48472         * lib/uniname/uninames.h: Regenerated.
48473         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48474
48475 2009-02-07  Bruno Haible  <bruno@clisp.org>
48476
48477         Merge gen-ctype and gen-lbrk into a single program.
48478         * lib/gen-uni-tables.c: New file, incorporating
48479         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48480         Add directory prefixes to the names of the generated files.
48481         * lib/unictype/gen-ctype.c: Remove file.
48482         * lib/unilbrk/gen-lbrk.c: Remove file.
48483         * modules/gen-uni-tables: New file.
48484         * modules/unictype/gen-ctype: Remove file.
48485         * modules/unilbrk/gen-lbrk: Remove file.
48486
48487 2009-02-07  Bruno Haible  <bruno@clisp.org>
48488
48489         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48490
48491         New module 'unistr/u32-strcoll'.
48492         * modules/unistr/u32-strcoll: New file.
48493         * lib/unistr/u32-strcoll.c: New file.
48494
48495         New module 'unistr/u16-strcoll'.
48496         * modules/unistr/u16-strcoll: New file.
48497         * lib/unistr/u16-strcoll.c: New file.
48498
48499         New module 'unistr/u8-strcoll'.
48500         * modules/unistr/u8-strcoll: New file.
48501         * lib/unistr/u8-strcoll.c: New file.
48502         * lib/unistr/u-strcoll.h: New file.
48503
48504 2009-02-07  Bruno Haible  <bruno@clisp.org>
48505
48506         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48507         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48508         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48509         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48510         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48511         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48512
48513 2009-02-07  Bruno Haible  <bruno@clisp.org>
48514
48515         Make 64-bit clean.
48516         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48517         output_combclass, output_bidi_category, output_decimal_digit,
48518         output_digit, output_numeric, output_mirror, output_scripts,
48519         output_ident_category): Use proper width specifier in format strings.
48520
48521 2009-02-07  Bruno Haible  <bruno@clisp.org>
48522
48523         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48524         failure behaviour.
48525
48526 2009-02-07  Jim Meyering  <meyering@redhat.com>
48527
48528         regex: avoid compilation failure with upcoming gcc-4.4
48529         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48530         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48531         "... error: integer overflow in preprocessor expression".
48532
48533 2009-02-05  Ben Pfaff  <blp@gnu.org>
48534
48535         Fix link errors on Windows when close module is used.
48536         * modules/close: Add $(LIB_CLOSE) to Link section.
48537         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48538         $(LIB_CLOSE) on Windows.
48539
48540 2009-02-05  Jim Meyering  <meyering@redhat.com>
48541
48542         still avoid unused-parameter warnings, but do it cleanly
48543         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48544         (get_fs_usage): Cast to void instead.
48545         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48546         (dev_from_mount_options, read_file_system_list): Cast to void.
48547         Prompted by Bruno Haible.
48548
48549 2009-02-04  Jim Meyering  <meyering@redhat.com>
48550
48551         fsusage.c: correct copyright year
48552         * lib/fsusage.c: Reflect year in which the change is pushed into
48553
48554         avoid misc. warnings
48555         * lib/fsusage.c (UNUSED_PARAM): Define.
48556         (get_fs_usage): Mark parameter "disk" as unused.
48557         * lib/getugroups.c (getgrent): Use "void" in prototype.
48558         * lib/mountlist.c: Mark unused parameters.
48559         (read_file_system_list): Declare a local with "const".
48560         * lib/nanosleep.c (getnow): Declare static.
48561         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48562
48563         dirfd: set errno upon failure
48564         * lib/dirfd.c: Include <errno.h>.
48565         Set errno to ENOTSUP when returning -1.
48566         * modules/dirfd (Depends-on): Add errno.
48567         Suggested by John Kodis <kodis@comcast.net>.
48568
48569 2009-02-01  Bruno Haible  <bruno@clisp.org>
48570
48571         Don't assume sizeof (long) >= sizeof (void *).
48572         * lib/memcmp.c: Include stdint.h.
48573         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48574         srcp2 to 'const byte *'.
48575         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48576         types to uintptr_t.
48577         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48578         * modules/memcmp (Depends-on): Add stdint.
48579         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48580
48581 2009-01-30  Eric Blake  <ebb9@byu.net>
48582
48583         fix more require-before-expand issues
48584         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48585         expand, AC_PROG_AWK.
48586         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48587
48588 2009-01-28  Eric Blake  <ebb9@byu.net>
48589
48590         version-etc: use consistent URL formatting
48591         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48592         Improve formatting.  Use fputs for string without %.
48593
48594 2009-01-28  Jim Meyering  <meyering@redhat.com>
48595
48596         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48597         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48598         "underquoted definition of NAME" from autoconf-2.59.
48599
48600 2009-01-28  Bruno Haible  <bruno@clisp.org>
48601
48602         * doc/gnulib.texi: Add "Obsolete modules" to index.
48603
48604 2009-01-28  Jim Meyering  <meyering@redhat.com>
48605
48606         useless-if-before-free: recognize more variants
48607         * build-aux/useless-if-before-free: Also recognize e.g.,
48608         if (NULL != p) free (p);
48609
48610 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48611
48612         test-getaddrinfo: skip (don't fail) this test when there's no network
48613         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48614         on the presumption that it means you lack network access.
48615
48616 2009-01-26  Jim Meyering  <meyering@redhat.com>
48617
48618         fflush: avoid warnings on modern systems
48619         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48620         pos and result, into scopes where they're used.
48621
48622 2009-01-26  Eric Blake  <ebb9@byu.net>
48623
48624         Silence warning reintroduced by recent extensions patch.
48625         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48626         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48627         autoconf.
48628
48629         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48630         * m4/00gnulib.m4: New file.
48631         * gnulib-tool (func_get_filelist): Always use it.
48632         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48633         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48634
48635 2009-01-25  Bruno Haible  <bruno@clisp.org>
48636
48637         Make test-quotearg work on MacOS X and AIX.
48638         * tests/test-quotearg.sh: New file.
48639         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48640         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48641         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48642         include <libintl.h>.
48643         (fake_locale): Remove variable.
48644         (gettext, dgettext, dcgettext): Remove functions.
48645         (main): Instead of setting a fake locale, set a real locale. Call
48646         textdomain and bindtextdomain.
48647         * modules/quotearg-tests (Files): Add the new files.
48648         (Depends-on): Add gettext, setenv, unsetenv.
48649         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48650         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48651         Augment TESTS_ENVIRONMENT.
48652
48653 2009-01-25  Bruno Haible  <bruno@clisp.org>
48654
48655         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48656         fr_FR.ISO8859-1 locale on MacOS X.
48657         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48658         ja_JP.eucJP locale on MacOS X.
48659         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48660         zh_CN.GB18030 locale on MacOS X.
48661
48662 2009-01-25  Bruno Haible  <bruno@clisp.org>
48663
48664         Avoid link errors on MacOS X 10.3.
48665         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48666         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48667
48668 2009-01-25  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48671         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48672         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48673         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48674         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
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         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48680         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48681         * modules/execute (Files): Remove m4/posix_spawn.m4.
48682         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48683         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48684         posix_spawnattr_init, posix_spawnattr_setsigmask,
48685         posix_spawnattr_setflags, posix_spawnattr_destroy.
48686
48687 2009-01-25  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/glthread/threadlib.c: Include <stdlib.h>.
48690
48691 2009-01-25  Bruno Haible  <bruno@clisp.org>
48692
48693         * lib/glthread/threadlib.c (dummy): New declaration.
48694
48695 2009-01-25  Bruno Haible  <bruno@clisp.org>
48696
48697         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48698         multibyte characters also for the GB18030 encoding. Don't crash when
48699         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48700
48701 2009-01-25  Bruno Haible  <bruno@clisp.org>
48702
48703         Avoid redefining 'struct random_data' on OSF/1 5.1.
48704         * lib/stdlib.in.h: Include <random.h> if it exists.
48705         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48706         HAVE_RANDOM_H. Include <random.h> when testing whether
48707         'struct random_data' exists.
48708         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48709
48710 2009-01-25  Bruno Haible  <bruno@clisp.org>
48711
48712         Don't install charset.alias on MacOS X >= 10.3.
48713         * lib/localcharset.c (DARWIN7): New macro.
48714         (get_charset_aliases): Hardcode the result for Darwin7.
48715         * modules/localcharset (install-exec-local): Don't install
48716         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48717
48718 2009-01-25  Bruno Haible  <bruno@clisp.org>
48719
48720         Don't install charset.alias on mingw and Cygwin.
48721         * modules/localcharset (install-exec-local): Don't install
48722         charset.alias on mingw and Cygwin, if the file does not yet exist.
48723         The result for these platforms is hardcoded in localcharset.c.
48724
48725 2009-01-25  Bruno Haible  <bruno@clisp.org>
48726
48727         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48729         before requiring AC_USE_SYSTEM_EXTENSIONS.
48730
48731 2009-01-25  Jim Meyering  <meyering@redhat.com>
48732
48733         c-strtod: avoid warnings
48734         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48735         "assignment discards qualifiers from pointer target type" warnings.
48736
48737 2009-01-24  Bruno Haible  <bruno@clisp.org>
48738
48739         Add support for non-UTF-8 locales on MacOS X.
48740         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48741         canonical encodings. For Darwin 7 and newer, don't map traditional
48742         encodings to UTF-8.
48743         Reported by Vincent Lefevre <vincent@vinc17.org>
48744         at <http://savannah.gnu.org/bugs/?25235>.
48745
48746 2009-01-24  Bruno Haible  <bruno@clisp.org>
48747
48748         * doc/gnulib.texi (Obsolete modules): New section.
48749         Reported by Mike Frysinger <vapier@gentoo.org>.
48750
48751 2009-01-24  Bruno Haible  <bruno@clisp.org>
48752
48753         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48754         (%.dvi): New rule.
48755
48756 2009-01-24  Bruno Haible  <bruno@clisp.org>
48757
48758         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48759         Reported by Eric Blake.
48760
48761 2009-01-24  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48764         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48765         Reported by Gary V. Vaughan <gary@gnu.org>.
48766
48767 2009-01-24  Bruno Haible  <bruno@clisp.org>
48768
48769         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48770
48771 2009-01-23  Bruno Haible  <bruno@clisp.org>
48772
48773         Make c-strtod, c-strtold usable in libraries.
48774         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48775         (C_STRTOD): Call strdup instead of xstrdup.
48776         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48777         * modules/c-strtold (Depends-on): Likewise.
48778         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48779         * NEWS: Mention the change.
48780         Reported by Michael Gold <mgold@ncf.ca>.
48781
48782 2009-01-23  Jim Meyering  <meyering@redhat.com>
48783
48784         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48785         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48786         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48787
48788 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48789
48790         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48791         GNU CoreUtils.
48792         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48793         * modules/version-etc (Description): Update.
48794
48795 2009-01-22  Bruno Haible  <bruno@clisp.org>
48796
48797         Cache the C locale object.
48798         * lib/c-strtod.c (c_locale_cache): New variable.
48799         (c_locale): New function.
48800         (C_STRTOD): Use it, and don't call freelocale.
48801         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48802         Suggested by Paolo Bonzini.
48803
48804 2009-01-21  Bruno Haible  <bruno@clisp.org>
48805
48806         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48807         conditions other than overflow.
48808
48809 2009-01-21  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/c-strtod.c: Include errno.h.
48812         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48813         value from STRTOD_L and STRTOD.
48814
48815 2009-01-21  Bruno Haible  <bruno@clisp.org>
48816         and Jim Meyering  <meyering@redhat.com>
48817
48818         nanosleep: skip configure test (fail it) for apple universal builds
48819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48820         universal builds, assume that nanosleep does not work.
48821         * modules/nanosleep (Depends-on): Add multiarch.
48822
48823         mktime: skip configure test (fail it) for apple universal builds
48824         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48825         universal builds, assume that mktime does not work.
48826         * modules/mktime (Depends-on): Add multiarch.
48827
48828 2009-01-21  Eric Blake  <ebb9@byu.net>
48829
48830         multiarch: avoid expand-before-require warning
48831         * modules/multiarch (configure.ac): Require, rather than expand,
48832         gl_MULTIARCH.
48833         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48834         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48835         enforce that all clients require it.  Partial reversion of
48836         2008-12-29 patch.
48837
48838         error: avoid expand-before-require warning
48839         * modules/errno (configure.ac): Require, rather than expand,
48840         gl_HEADER_ERRNO_H.
48841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48842         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48843         enforce that all clients require it.
48844
48845         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48846         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48847         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48848         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48849
48850 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48851
48852         Revert:
48853         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48854
48855         regex: do not depend on obsolete modules.
48856         * modules/regex: Remove memcmp and memmove.
48857
48858 2009-01-20  Bruno Haible  <bruno@clisp.org>
48859
48860         Make the 'link' module link on Windows NT 4.
48861         * lib/link.c (_WIN32_WINNT): Don't define.
48862         (CreateHardLinkFuncType): New type.
48863         (CreateHardLinkFunc, initialized): New variables.
48864         (initialize): New function.
48865         (link): Invoke CreateHardLink indirectly through the function pointer.
48866
48867 2009-01-20  Bruno Haible  <bruno@clisp.org>
48868
48869         Fix compilation failure on mingw.
48870         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48871
48872 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48873
48874         * doc/c-strtod.texi: Mention a couple of restrictions.
48875
48876 2009-01-20  Jim Meyering  <meyering@redhat.com>
48877
48878         gettimeofday: move more declarations out of functions
48879         * lib/gettimeofday.c: Move extern declarations of tzset and
48880         gmtime out of containing functions.  Prompted by Bruno Haible.
48881
48882 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48883
48884         regex: do not depend on obsolete modules.
48885         * modules/regex: Remove memcmp and memmove.
48886
48887 2009-01-19  Bruno Haible  <bruno@clisp.org>
48888
48889         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48890         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48891         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48892         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48893         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48894
48895 2009-01-19  Bruno Haible  <bruno@clisp.org>
48896
48897         * tests/test-link.c: Include <errno.h>.
48898         (main): Exit with code 77 when a hard link cannot be created due to
48899         the file system.
48900         * tests/test-link.sh: Skip test when a hard link cannot be created due
48901         to the file system.
48902         Suggested by Eric Blake.
48903
48904 2009-01-19  Martin Lambers  <marlam@marlam.de>
48905
48906         * modules/link-tests: New file.
48907         * tests/test-link.sh: New file.
48908         * tests/test-link.c: New file.
48909
48910 2009-01-19  Eric Blake  <ebb9@byu.net>
48911
48912         doc: mention another function added in cygwin 1.7.0
48913         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48914         Another new function in cygwin 1.7.
48915
48916 2009-01-19  Bruno Haible  <bruno@clisp.org>
48917
48918         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48919         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48920         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48921         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48922         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48923         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48924         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48925         * m4/md4.m4 (gl_MD4): Likewise.
48926         * m4/md5.m4 (gl_MD5): Likewise.
48927         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48928         * m4/sha1.m4 (gl_SHA1): Likewise.
48929         * m4/sha256.m4 (gl_SHA256): Likewise.
48930         * m4/sha512.m4 (gl_SHA512): Likewise.
48931
48932 2009-01-19  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/uniname/uniname-tests (Depends-on): Add progname.
48935         * tests/uniname/test-uninames.c: Include progname.h.
48936         (main): Call set_program_name.
48937
48938         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48939         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48940         (main): Call set_program_name.
48941
48942         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48943         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48944         (main): Call set_program_name.
48945
48946         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48947         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48948         (main): Call set_program_name.
48949
48950         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48951         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48952         (main): Call set_program_name.
48953
48954         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48955         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48956         (main): Call set_program_name.
48957
48958         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48959         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48960         (main): Call set_program_name.
48961
48962         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48963         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48964         (main): Call set_program_name.
48965
48966         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48967         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48968         (main): Call set_program_name.
48969
48970 2009-01-19  Eric Blake  <ebb9@byu.net>
48971
48972         test-unistd: test previous patch
48973         * tests/test-unistd.c: Test *_FILENO macros.
48974
48975         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48976         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48977         Guarantee a definition.
48978         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48979         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48980         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48981         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48982         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48983         Likewise.
48984         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48985         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48986         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48987         Likewise.
48988         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48989         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48990         (STDERR_FILENO): Likewise.
48991         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48992         (STDERR_FILENO): Likewise.
48993         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48994         (STDERR_FILENO): Likewise.
48995         Reported by Elbert Pol.
48996
48997 2009-01-19  Eric Blake  <ebb9@byu.net>
48998
48999         doc: mention more functions added in cygwin 1.7.0
49000         * doc/posix-functions/abort.texi (abort): Update wording related
49001         to cygwin.
49002         * doc/posix-functions/daylight.texi (daylight): Likewise.
49003         * doc/posix-functions/optarg.texi (optarg): Likewise.
49004         * doc/posix-functions/optarg.texi (opterr): Likewise.
49005         * doc/posix-functions/optarg.texi (optind): Likewise.
49006         * doc/posix-functions/optarg.texi (optopt): Likewise.
49007         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49008         worked in 1.5.x, and was withdrawn in 1.7.
49009         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49010         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49011         cygwin versions.
49012         * doc/posix-functions/perror.texi (perror): Likewise.
49013         * doc/posix-functions/printf.texi (printf): Likewise.
49014         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49015         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49016         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49017         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49018         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49019         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49020         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49021         Likewise.
49022         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49023         Likewise.
49024         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49025         this function.
49026         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49027         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49028         Likewise.
49029         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49030         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49031         * doc/posix-functions/confstr.texi (confstr): Likewise.
49032         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49033         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49034         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49035         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49036         * doc/posix-functions/fputws.texi (fputws): Likewise.
49037         * doc/posix-functions/fwide.texi (fwide): Likewise.
49038         * doc/posix-functions/getwc.texi (getwc): Likewise.
49039         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49040         * doc/posix-functions/putwc.texi (putwc): Likewise.
49041         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49042         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49043         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49044         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49045         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49046         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49047         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49048         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49049         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49050         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49051         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49052
49053 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49054
49055         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49056         * lib/ioctl.c: Include <sys/ioctl.h>.
49057
49058 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49059
49060         * modules/getdate-tests (Depends-on): Add progname.
49061         * tests/test-getdate.c: Use progname module, to avoid link errors
49062         on non-glibc systems.
49063
49064 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49065
49066         * modules/filenamecat-tests (Depends-on): Add progname.
49067         * modules/fstrcmp-tests (Depends-on): Likewise.
49068
49069         * tests/test-filenamecat.c: Use progname module, to avoid link
49070         errors on non-glibc systems.
49071         * tests/test-fstrcmp.c: Likewise.
49072
49073 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49074
49075         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49076         * lib/gettimeofday.c: Move extern declaration out of function.
49077
49078 2009-01-18  Bruno Haible  <bruno@clisp.org>
49079
49080         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49081         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49082         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49083
49084 2009-01-18  Bruno Haible  <bruno@clisp.org>
49085
49086         * lib/strftime.c (MEMPCPY): Remove unused macro.
49087         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49088
49089 2009-01-18  Martin Lambers  <marlam@marlam.de>
49090
49091         New module 'link'.
49092         * lib/unistd.in.h (link): New declaration.
49093         * lib/link.c: New file.
49094         * m4/link.m4: New file.
49095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49096         HAVE_LINK.
49097         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49098         * modules/link: New file.
49099         * doc/posix-functions/link.texi: Mention the new module.
49100
49101 2009-01-18  Bruno Haible  <bruno@clisp.org>
49102
49103         * tests/test-avltree_list.c (main): Call set_program_name.
49104         * tests/test-avltree_oset.c (main): Likewise.
49105         * tests/test-obstack-printf.c: Include progname.h.
49106         (main): Call set_program_name.
49107         * tests/test-quotearg.c: Include progname.h.
49108         (main): Call set_program_name.
49109         * tests/test-xmemdup0.c: Include progname.h.
49110         (main): Call set_program_name.
49111
49112 2009-01-18  Bruno Haible  <bruno@clisp.org>
49113
49114         New module 'alphasort'.
49115         * lib/dirent.in.h (alphasort): New declaration.
49116         * lib/alphasort.c: New file, from glibc with modifications.
49117         * m4/alphasort.m4: New file.
49118         * modules/alphasort: New file.
49119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49120         HAVE_ALPHASORT.
49121         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49122         HAVE_ALPHASORT.
49123         * doc/posix-functions/alphasort.texi: Mention the new module and the
49124         portability problems.
49125
49126 2009-01-18  Bruno Haible  <bruno@clisp.org>
49127
49128         New module 'scandir'.
49129         * lib/dirent.in.h (scandir): New declaration.
49130         * lib/scandir.c: New file, from glibc with modifications.
49131         * m4/scandir.m4: New file.
49132         * modules/scandir: New file.
49133         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49134         HAVE_SCANDIR.
49135         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49136         HAVE_SCANDIR.
49137         * doc/posix-functions/scandir.texi: Mention the new module and the
49138         portability problems.
49139
49140 2009-01-17  Bruno Haible  <bruno@clisp.org>
49141
49142         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49143         Update documentation.
49144         (func_remove_suffix): Escape all dots in the suffix. Update
49145         documentation.
49146         (func_filter_filelist): Update documentation.
49147         Reported by Ralf Wildenhues.
49148
49149 2009-01-17  Bruno Haible  <bruno@clisp.org>
49150
49151         * modules/dprintf-posix-tests: New file.
49152         * tests/test-dprintf-posix.sh: New file.
49153         * tests/test-dprintf-posix.c: New file.
49154
49155         New modules 'dprintf', 'dprintf-posix'.
49156         * lib/stdio.in.h (dprintf): New declaration.
49157         * lib/dprintf.c: New file.
49158         * m4/dprintf.m4: New file.
49159         * m4/dprintf-posix.m4: New file.
49160         * modules/dprintf: New file.
49161         * modules/dprintf-posix: New file.
49162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49163         HAVE_DPRINTF, REPLACE_DPRINTF.
49164         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49165         HAVE_DPRINTF, REPLACE_DPRINTF.
49166         * doc/posix-functions/dprintf.texi: Mention the new modules.
49167
49168 2009-01-17  Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/vdprintf-posix-tests: New file.
49171         * tests/test-vdprintf-posix.sh: New file.
49172         * tests/test-vdprintf-posix.c: New file.
49173
49174         New modules 'vdprintf', 'vdprintf-posix'.
49175         * lib/stdio.in.h (vdprintf): New declaration.
49176         * lib/vdprintf.c: New file.
49177         * m4/vdprintf.m4: New file.
49178         * m4/vdprintf-posix.m4: New file.
49179         * modules/vdprintf: New file.
49180         * modules/vdprintf-posix: New file.
49181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49182         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49183         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49184         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49185         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49186
49187 2009-01-17  Bruno Haible  <bruno@clisp.org>
49188
49189         Fix replacement of fopen on mingw.
49190         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49191         mingw.
49192
49193 2009-01-17  Bruno Haible  <bruno@clisp.org>
49194
49195         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49196         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49197
49198 2009-01-17  Bruno Haible  <bruno@clisp.org>
49199
49200         Avoid test-fflush2.sh failure on mingw.
49201         * tests/test-fflush2.c: Include binary-io.h.
49202         (main): Put standard input into binary mode.
49203         * modules/fflush-tests (Depends-on): Add binary-io.
49204
49205 2009-01-17  Bruno Haible  <bruno@clisp.org>
49206
49207         * lib/wchar.in.h: In another particular situation, include only the
49208         system's <wchar.h> file.
49209         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49210         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49211         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49212
49213 2009-01-17  Bruno Haible  <bruno@clisp.org>
49214
49215         Support for stripping executables in --enable-relocatable.
49216         * build-aux/install-reloc: Expect one more argument, or an environment
49217         variable RELOC_STRIP_PROG. If set, strip the destination program and
49218         its wrapper.
49219         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49220         RELOC_STRIP_PROG.
49221         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49222         to set RELOCATABLE_STRIP.
49223         * NEWS: Mention the new Makefile requirement.
49224
49225 2009-01-17  Bruno Haible  <bruno@clisp.org>
49226
49227         * build-aux/install-reloc: Remove debugging information left over by
49228         C compiler on MacOS X.
49229
49230 2009-01-17  Bruno Haible  <bruno@clisp.org>
49231
49232         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49233         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49234         _NSGetExecutablePath.
49235
49236 2009-01-16  Jim Meyering  <meyering@redhat.com>
49237
49238         strerror: avoid warnings about discarding "const"
49239         * lib/strerror.c (rpl_strerror): Instead of returning a const
49240         string from each and every "case", use a variable, and add a single
49241         cast after the switch.
49242
49243 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49244
49245         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49246
49247 2009-01-16  Bruno Haible  <bruno@clisp.org>
49248
49249         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49250         array initializer syntax that also works in C++ mode.
49251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49252
49253 2009-01-16  Jim Meyering  <meyering@redhat.com>
49254
49255         poll: suppress a warning
49256         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49257         to ignore "...unsigned expression < 0 is always false" warnings.
49258
49259 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49260
49261         poll: remove declarations of unused variables
49262         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49263         sockbuf and optlen.
49264
49265 2009-01-15  Bruno Haible  <bruno@clisp.org>
49266
49267         Make fflush-after-ungetc POSIX compliant on BSD systems.
49268         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49269         (clear_ungetc_buffer): Implement also for other systems.
49270         (rpl_fflush): On glibc systems, invoke
49271         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49272         clear_ungetc_buffer after fetching the stream's position, not before.
49273
49274 2009-01-15  Bruno Haible  <bruno@clisp.org>
49275
49276         Make fflush-after-ungetc POSIX compliant on glibc systems.
49277         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49278         after ungetc.
49279         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49280         (rpl_fflush): On glibc systems, simply call the system's fflush
49281         function after clearing the ungetc buffer.
49282         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49283         Instead, lseek only to the end of file, then use the system's fseeko
49284         for the rest. On glibc systems, reset the EOF indicator bit.
49285
49286 2009-01-15  Jim Meyering  <meyering@redhat.com>
49287
49288         openmp.m4: revert quote-adding change, for portability to older autoconf
49289         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49290         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49291         Simon Josefsson noticed the problem when using autoconf-2.61.
49292
49293 2009-01-15  Bruno Haible  <bruno@clisp.org>
49294
49295         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49296         * tests/test-fflush2.c (ASSERT): Always fail.
49297         (main): Add two tests for fflush() after ungetc(), taking into account
49298         the Austin Group's clarification.
49299         Suggested by Eric Blake.
49300
49301 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49302
49303         mktime.m4: remove K&R-style function prototypes
49304         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49305         for the Sun C++ compiler.
49306
49307 2009-01-14  Bruno Haible  <bruno@clisp.org>
49308
49309         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49310         while including <wchar.h>.
49311         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49312         the system's <wchar.h> file.
49313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49314
49315 2009-01-14  Bruno Haible  <bruno@clisp.org>
49316
49317         * m4/csharp.m4: Don't mention gettext on the serial number line.
49318         * m4/csharpexec.m4: Likewise.
49319         * m4/eaccess.m4: Likewise.
49320         * m4/javaexec.m4: Likewise.
49321         * m4/sig_atomic_t.m4: Likewise.
49322         * m4/tmpdir.m4: Likewise.
49323         * m4/intldir.m4: Bump gettext version.
49324         * m4/lib-ld.m4: Likewise.
49325
49326 2009-01-14  Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/progname.c (set_program_name): Add more comments.
49329         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49330
49331 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49332
49333         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49334         were sys/stat.h does not define it.
49335
49336 2009-01-14  Jim Meyering  <meyering@redhat.com>
49337
49338         many *.m4 files: improve m4 quoting
49339         99% of this change was performed by running the following commands:
49340         git ls-files | grep '\.m4$' | xargs perl -pi \
49341           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49342           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49343           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49344           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49345         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49346         The remainder were to add Copyright dates, increment serial numbers,
49347         undo some changes in comments, exclude m4/intl.m4, and add quotes
49348         around the "1" in ",1" where the unusual spacing prohibited the
49349         above regexps from doing the job.  For more details, see
49350         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49351         * m4/acl.m4: Modified.
49352         * m4/afs.m4: Likewise.
49353         * m4/alloca.m4: Likewise.
49354         * m4/argp.m4: Likewise.
49355         * m4/argz.m4: Likewise.
49356         * m4/atexit.m4: Likewise.
49357         * m4/bison-i18n.m4: Likewise.
49358         * m4/bison.m4: Likewise.
49359         * m4/byteswap.m4: Likewise.
49360         * m4/c-stack.m4: Likewise.
49361         * m4/c-strtod.m4: Likewise.
49362         * m4/calloc.m4: Likewise.
49363         * m4/canonicalize-lgpl.m4: Likewise.
49364         * m4/chown.m4: Likewise.
49365         * m4/clock_time.m4: Likewise.
49366         * m4/codeset.m4: Likewise.
49367         * m4/copy-file.m4: Likewise.
49368         * m4/csharp.m4: Likewise.
49369         * m4/csharpcomp.m4: Likewise.
49370         * m4/csharpexec.m4: Likewise.
49371         * m4/d-ino.m4: Likewise.
49372         * m4/d-type.m4: Likewise.
49373         * m4/dirfd.m4: Likewise.
49374         * m4/double-slash-root.m4: Likewise.
49375         * m4/eaccess.m4: Likewise.
49376         * m4/eealloc.m4: Likewise.
49377         * m4/environ.m4: Likewise.
49378         * m4/errno_h.m4: Likewise.
49379         * m4/euidaccess.m4: Likewise.
49380         * m4/execute.m4: Likewise.
49381         * m4/fatal-signal.m4: Likewise.
49382         * m4/fchdir.m4: Likewise.
49383         * m4/fcntl_h.m4: Likewise.
49384         * m4/fileblocks.m4: Likewise.
49385         * m4/filenamecat.m4: Likewise.
49386         * m4/findprog.m4: Likewise.
49387         * m4/flexmember.m4: Likewise.
49388         * m4/fnmatch.m4: Likewise.
49389         * m4/fopen.m4: Likewise.
49390         * m4/fpending.m4: Likewise.
49391         * m4/fprintf-posix.m4: Likewise.
49392         * m4/free.m4: Likewise.
49393         * m4/frexp.m4: Likewise.
49394         * m4/frexpl.m4: Likewise.
49395         * m4/fsusage.m4: Likewise.
49396         * m4/ftruncate.m4: Likewise.
49397         * m4/gc-camellia.m4: Likewise.
49398         * m4/gc-random.m4: Likewise.
49399         * m4/gc.m4: Likewise.
49400         * m4/getaddrinfo.m4: Likewise.
49401         * m4/getcwd-abort-bug.m4: Likewise.
49402         * m4/getcwd-path-max.m4: Likewise.
49403         * m4/getdate.m4: Likewise.
49404         * m4/getdomainname.m4: Likewise.
49405         * m4/getgroups.m4: Likewise.
49406         * m4/gethostname.m4: Likewise.
49407         * m4/gethrxtime.m4: Likewise.
49408         * m4/getline.m4: Likewise.
49409         * m4/getloadavg.m4: Likewise.
49410         * m4/getndelim2.m4: Likewise.
49411         * m4/getpass.m4: Likewise.
49412         * m4/gettext.m4: Likewise.
49413         * m4/gettime.m4: Likewise.
49414         * m4/gettimeofday.m4: Likewise.
49415         * m4/gnulib-common.m4: Likewise.
49416         * m4/group-member.m4: Likewise.
49417         * m4/host-os.m4: Likewise.
49418         * m4/iconv.m4: Likewise.
49419         * m4/iconv_open.m4: Likewise.
49420         * m4/inet_ntop.m4: Likewise.
49421         * m4/inet_pton.m4: Likewise.
49422         * m4/inline.m4: Likewise.
49423         * m4/intldir.m4: Likewise.
49424         * m4/intlmacosx.m4: Likewise.
49425         * m4/intmax.m4: Likewise.
49426         * m4/intmax_t.m4: Likewise.
49427         * m4/inttypes.m4: Likewise.
49428         * m4/inttypes_h.m4: Likewise.
49429         * m4/inttypes-pri.m4: Likewise.
49430         * m4/isapipe.m4: Likewise.
49431         * m4/isnand.m4: Likewise.
49432         * m4/isnanf.m4: Likewise.
49433         * m4/isnanl.m4: Likewise.
49434         * m4/javacomp.m4: Likewise.
49435         * m4/javaexec.m4: Likewise.
49436         * m4/jm-winsz1.m4: Likewise.
49437         * m4/jm-winsz2.m4: Likewise.
49438         * m4/lchown.m4: Likewise.
49439         * m4/lcmessage.m4: Likewise.
49440         * m4/ldexpl.m4: Likewise.
49441         * m4/lib-ld.m4: Likewise.
49442         * m4/lib-link.m4: Likewise.
49443         * m4/libsigsegv.m4: Likewise.
49444         * m4/link-follow.m4: Likewise.
49445         * m4/localcharset.m4: Likewise.
49446         * m4/locale-fr.m4: Likewise.
49447         * m4/locale-ja.m4: Likewise.
49448         * m4/locale-tr.m4: Likewise.
49449         * m4/locale-zh.m4: Likewise.
49450         * m4/lock.m4: Likewise.
49451         * m4/longlong.m4: Likewise.
49452         * m4/ls-mntd-fs.m4: Likewise.
49453         * m4/lstat.m4: Likewise.
49454         * m4/malloc.m4: Likewise.
49455         * m4/mathl.m4: Likewise.
49456         * m4/mbrtowc.m4: Likewise.
49457         * m4/mbstate_t.m4: Likewise.
49458         * m4/mbswidth.m4: Likewise.
49459         * m4/memchr.m4: Likewise.
49460         * m4/memcmp.m4: Likewise.
49461         * m4/memcpy.m4: Likewise.
49462         * m4/memmem.m4: Likewise.
49463         * m4/memmove.m4: Likewise.
49464         * m4/mempcpy.m4: Likewise.
49465         * m4/memrchr.m4: Likewise.
49466         * m4/memset.m4: Likewise.
49467         * m4/minmax.m4: Likewise.
49468         * m4/mkdir-slash.m4: Likewise.
49469         * m4/mkdtemp.m4: Likewise.
49470         * m4/mktime.m4: Likewise.
49471         * m4/mmap-anon.m4: Likewise.
49472         * m4/mountlist.m4: Likewise.
49473         * m4/nanosleep.m4: Likewise.
49474         * m4/nls.m4: Likewise.
49475         * m4/nocrash.m4: Likewise.
49476         * m4/open.m4: Likewise.
49477         * m4/openat.m4: Likewise.
49478         * m4/openmp.m4: Likewise.
49479         * m4/pathmax.m4: Likewise.
49480         * m4/perl.m4: Likewise.
49481         * m4/physmem.m4: Likewise.
49482         * m4/pipe.m4: Likewise.
49483         * m4/po.m4: Likewise.
49484         * m4/poll.m4: Likewise.
49485         * m4/posixtm.m4: Likewise.
49486         * m4/posixver.m4: Likewise.
49487         * m4/printf-frexp.m4: Likewise.
49488         * m4/printf-frexpl.m4: Likewise.
49489         * m4/printf-posix.m4: Likewise.
49490         * m4/printf-posix-rpl.m4: Likewise.
49491         * m4/printf.m4: Likewise.
49492         * m4/progtest.m4: Likewise.
49493         * m4/putenv.m4: Likewise.
49494         * m4/readline.m4: Likewise.
49495         * m4/readlink.m4: Likewise.
49496         * m4/readutmp.m4: Likewise.
49497         * m4/realloc.m4: Likewise.
49498         * m4/regex.m4: Likewise.
49499         * m4/relocatable.m4: Likewise.
49500         * m4/relocatable-lib.m4: Likewise.
49501         * m4/rename-dest-slash.m4: Likewise.
49502         * m4/rename.m4: Likewise.
49503         * m4/rmdir-errno.m4: Likewise.
49504         * m4/rmdir.m4: Likewise.
49505         * m4/roundf.m4: Likewise.
49506         * m4/roundl.m4: Likewise.
49507         * m4/rpmatch.m4: Likewise.
49508         * m4/save-cwd.m4: Likewise.
49509         * m4/selinux-selinux-h.m4: Likewise.
49510         * m4/setenv.m4: Likewise.
49511         * m4/settime.m4: Likewise.
49512         * m4/sig2str.m4: Likewise.
49513         * m4/sig_atomic_t.m4: Likewise.
49514         * m4/signalblocking.m4: Likewise.
49515         * m4/signbit.m4: Likewise.
49516         * m4/sigpipe.m4: Likewise.
49517         * m4/sockets.m4: Likewise.
49518         * m4/sockpfaf.m4: Likewise.
49519         * m4/st_dm_mode.m4: Likewise.
49520         * m4/stat-time.m4: Likewise.
49521         * m4/stdbool.m4: Likewise.
49522         * m4/stdint.m4: Likewise.
49523         * m4/stdint_h.m4: Likewise.
49524         * m4/stpcpy.m4: Likewise.
49525         * m4/stpncpy.m4: Likewise.
49526         * m4/strcase.m4: Likewise.
49527         * m4/strchrnul.m4: Likewise.
49528         * m4/strcspn.m4: Likewise.
49529         * m4/strdup.m4: Likewise.
49530         * m4/strftime.m4: Likewise.
49531         * m4/strndup.m4: Likewise.
49532         * m4/strnlen.m4: Likewise.
49533         * m4/strpbrk.m4: Likewise.
49534         * m4/strptime.m4: Likewise.
49535         * m4/strsep.m4: Likewise.
49536         * m4/strtod.m4: Likewise.
49537         * m4/strtoimax.m4: Likewise.
49538         * m4/strtok_r.m4: Likewise.
49539         * m4/strtol.m4: Likewise.
49540         * m4/strtoll.m4: Likewise.
49541         * m4/strtoul.m4: Likewise.
49542         * m4/strtoull.m4: Likewise.
49543         * m4/strtoumax.m4: Likewise.
49544         * m4/strverscmp.m4: Likewise.
49545         * m4/threadlib.m4: Likewise.
49546         * m4/timegm.m4: Likewise.
49547         * m4/tm_gmtoff.m4: Likewise.
49548         * m4/tmpdir.m4: Likewise.
49549         * m4/tmpfile.m4: Likewise.
49550         * m4/tzset.m4: Likewise.
49551         * m4/uintmax_t.m4: Likewise.
49552         * m4/unlinkdir.m4: Likewise.
49553         * m4/unlocked-io.m4: Likewise.
49554         * m4/uptime.m4: Likewise.
49555         * m4/userspec.m4: Likewise.
49556         * m4/utimbuf.m4: Likewise.
49557         * m4/utime.m4: Likewise.
49558         * m4/utimes-null.m4: Likewise.
49559         * m4/utimes.m4: Likewise.
49560         * m4/vararrays.m4: Likewise.
49561         * m4/vasnprintf.m4: Likewise.
49562         * m4/vfprintf-posix.m4: Likewise.
49563         * m4/vprintf-posix.m4: Likewise.
49564         * m4/wait-process.m4: Likewise.
49565         * m4/wchar_t.m4: Likewise.
49566         * m4/wint_t.m4: Likewise.
49567         * m4/write-any-file.m4: Likewise.
49568         * m4/yield.m4: Likewise.
49569
49570 2009-01-13  Bruno Haible  <bruno@clisp.org>
49571
49572         Avoid test-copy-file.sh failures when ACL support insufficient.
49573         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49574         TESTS_ENVIRONMENT.
49575         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49576         Reported by Jim Meyering.
49577
49578 2009-01-13  Bruno Haible  <bruno@clisp.org>
49579
49580         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49581         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49582         * modules/unistdio/u8-printf-parse (Files): Likewise.
49583         * modules/unistdio/u32-printf-parse (Files): Likewise.
49584         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49585
49586 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49587
49588         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49589         and m4/inttypes_h.m4 too.
49590
49591 2009-01-12  Eric Blake  <ebb9@byu.net>
49592
49593         tests: IRIX 6.2 cc can't compile -0.0 into .data
49594         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49595         rather than at compile-time.
49596         * tests/test-floorl.c (minus_zero): Likewise.
49597         * tests/test-frexpl.c (minus_zero): Likewise.
49598         * tests/test-isnan.c (minus_zerol): Likewise.
49599         * tests/test-isnanl.h (minus_zero): Likewise.
49600         * tests/test-ldexpl.c (minus_zero): Likewise.
49601         * tests/test-roundl.c (minus_zero): Likewise.
49602         * tests/test-signbit.c (minus_zerol): Likewise.
49603         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49604         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49605         * tests/test-truncl.c (minus_zero): Likewise.
49606         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49607         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49608         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49609
49610 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49611
49612         regex: fix glibc bug 9697
49613         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49614         handling.
49615
49616 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49617
49618         regex: fix glibc bug 697
49619         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49620         being NULL also if there are no backreferences.
49621
49622 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49623
49624         regex: merge glibc changes
49625         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49626         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49627         re_string_skip_chars, re_string_reconstruct): Likewise.
49628         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49629
49630 2009-01-07  Jim Meyering  <meyering@redhat.com>
49631
49632         poll: filter through cppi
49633         * lib/poll.c: Indent cpp directives to reflect nesting.
49634
49635 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49636
49637         poll: don't return uninitialized
49638         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49639
49640 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49641
49642         avoid compile failure on AIX 6.1
49643         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49644         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49645
49646 2009-01-04  Jim Meyering  <meyering@redhat.com>
49647
49648         remove duplicate inclusion of <stdio.h>
49649         * tests/test-fprintf-posix.c: Likewise.
49650         * tests/test-printf-posix.c: Likewise.
49651         * tests/test-snprintf-posix.c: Likewise.
49652         * tests/test-sprintf-posix.c: Likewise.
49653         * tests/test-vasprintf-posix.c: Likewise.
49654         * tests/test-vfprintf-posix.c: Likewise.
49655         * tests/test-vprintf-posix.c: Likewise.
49656         * tests/test-vsnprintf-posix.c: Likewise.
49657         * tests/test-vsprintf-posix.c: Likewise.
49658
49659 2009-01-03  Jim Meyering  <meyering@redhat.com>
49660
49661         gnulib-tool: fix sed-based filtering
49662         * gnulib-tool (func_filter_filelist): Remove extra backslash
49663         in sed_fff_filter definition.
49664
49665 2009-01-02  Jim Meyering  <meyering@redhat.com>
49666
49667         strftime: avoid compilation failure on Solaris 2.6
49668         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49669         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49670         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49671         be available.  Reported by Tom G. Christensen.  Details in
49672         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49673
49674 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49675             Bruno Haible  <bruno@clisp.org>
49676
49677         Speed up gnulib-tool by doing more string processing through shell
49678         built-ins.
49679         * gnulib-tool (fast_func_append): New variable.
49680         (func_remove_prefix, func_remove_suffix): New functions.
49681         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49682         (func_filter_filelist): New function.
49683         (func_get_dependencies): Use func_remove_suffix instead of sed.
49684         (func_get_automake_snippet): Use func_filter_filelist instead of a
49685         subshell and sed invocation.
49686
49687 2009-01-01  Bruno Haible  <bruno@clisp.org>
49688
49689         Fix a security bug.
49690         * gnulib-tool (func_import, import, update): Don't allow the characters
49691         '"', '$', '`', '\' in macro arguments that become part of commands that
49692         are evaluated.
49693
49694 2009-01-01  Bruno Haible  <bruno@clisp.org>
49695
49696         * gnulib-tool (func_reset_sigpipe): Add more comments.
49697
49698 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49699
49700         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49701         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49702         already know the answer.
49703
49704 2009-01-01  Jim Meyering  <meyering@redhat.com>
49705
49706         * lib/version-etc.c (version_etc_va): Update copyright year.
49707
49708 2008-12-30  Bruno Haible  <bruno@clisp.org>
49709
49710         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49711         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49712         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49713
49714 2008-12-29  Eric Blake  <ebb9@byu.net>
49715
49716         multiarch: avoid autoconf AC_REQUIRE bug
49717         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49718         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49719         2.63 and older.
49720         Reported by Bruno Haible, and analyzed in
49721         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49722
49723 2008-12-29  Bruno Haible  <bruno@clisp.org>
49724
49725         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49726         files in subdirectories correctly.
49727         Reported by Ralf Wildenhues.
49728
49729 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49730
49731         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49732         rather than 'join FILE -', for Solaris join.
49733
49734 2008-12-29  Bruno Haible  <bruno@clisp.org>
49735
49736         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49737         quoting.
49738         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49739         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49740         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49741         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49742         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49743         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49744         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49745         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49746         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49747         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49748         * m4/nls.m4 (AM_NLS): Likewise.
49749         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49750         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49751         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49752         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49753         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49754         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49755         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49756         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49757         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49758         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49759         * m4/xsize.m4 (gl_XSIZE): Likewise.
49760         Suggested by Jim Meyering.
49761
49762 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49763
49764         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49765         * lib/parse-duration.c: use a switch instead of cascading if's.
49766
49767 2008-12-29  Eric Blake  <ebb9@byu.net>
49768
49769         wchar.h: supply WEOF on Irix 5.3
49770         * lib/wchar.in.h (wint_t): Also supply WEOF.
49771         * lib/wctype.in.h (wint_t): Likewise.
49772         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49773         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49774         Reported by Tom G. Christensen.
49775
49776 2008-12-26  Bruno Haible  <bruno@clisp.org>
49777
49778         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49779         i486, i586, i686.
49780
49781 2008-12-26  Bruno Haible  <bruno@clisp.org>
49782
49783         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49784
49785 2008-12-26  Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49788         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49789         not __STDC_CONSTANT_MACROS.
49790         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49791
49792 2008-12-25  Bruno Haible  <bruno@clisp.org>
49793
49794         Add support for universal builds to vasnprintf.
49795         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49796         universal builds, guess no.
49797         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49798         * modules/vasprintf-posix (Depends-on): Likewise.
49799         * modules/fprintf-posix (Depends-on): Likewise.
49800         * modules/vfprintf-posix (Depends-on): Likewise.
49801         * modules/snprintf-posix (Depends-on): Likewise.
49802         * modules/vsnprintf-posix (Depends-on): Likewise.
49803         * modules/sprintf-posix (Depends-on): Likewise.
49804         * modules/vsprintf-posix (Depends-on): Likewise.
49805         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49806         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49807         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49808         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49809         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49810         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49811         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49812
49813         Add support for universal builds to <inttypes.h>.
49814         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49815         _SCNu64_PREFIX): In Apple
49816         universal builds, define directly, using _LP64.
49817         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49818         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49819         * modules/inttypes (Depends-on): Add multiarch.
49820         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49821
49822         Add support for universal builds to <stdint.h>.
49823         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49824         universal builds, define directly, using _LP64.
49825         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49826         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49827         and size_t.
49828         * modules/stdint (Depends-on): Add multiarch.
49829         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49830
49831         New module 'multiarch'.
49832         * modules/multiarch: New file.
49833         * m4/multiarch.m4: New file.
49834
49835 2008-12-25  Bruno Haible  <bruno@clisp.org>
49836
49837         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49838
49839 2008-12-25  Bruno Haible  <bruno@clisp.org>
49840
49841         * modules/btowc (License): Relicense under LGPLv2+.
49842         * modules/mbsinit (License): Likewise.
49843         * modules/mbrtowc (License): Likewise.
49844         * modules/wcrtomb (License): Likewise.
49845         * modules/streq (License): Likewise.
49846         Reported by David Lutterkort <lutter@redhat.com>.
49847
49848 2008-12-23  Bruno Haible  <bruno@clisp.org>
49849
49850         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49851
49852 2008-12-23  Bruno Haible  <bruno@clisp.org>
49853
49854         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49856         GETADDRINFO_LIB, not in LIBS.
49857         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49858         * modules/canon-host (Link): Likewise.
49859         * NEWS: Mention the change.
49860         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49861         GETADDRINFO_LIB.
49862
49863 2008-12-22  Bruno Haible  <bruno@clisp.org>
49864
49865         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49866         * doc/posix-functions/iswalpha_l.texi: Likewise.
49867         * doc/posix-functions/iswblank_l.texi: Likewise.
49868         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49869         * doc/posix-functions/iswctype_l.texi: Likewise.
49870         * doc/posix-functions/iswdigit_l.texi: Likewise.
49871         * doc/posix-functions/iswgraph_l.texi: Likewise.
49872         * doc/posix-functions/iswlower_l.texi: Likewise.
49873         * doc/posix-functions/iswprint_l.texi: Likewise.
49874         * doc/posix-functions/iswpunct_l.texi: Likewise.
49875         * doc/posix-functions/iswspace_l.texi: Likewise.
49876         * doc/posix-functions/iswupper_l.texi: Likewise.
49877         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49878         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49879         * doc/posix-functions/open_wmemstream.texi: Likewise.
49880         * doc/posix-functions/swscanf.texi: Likewise.
49881         * doc/posix-functions/towctrans_l.texi: Likewise.
49882         * doc/posix-functions/towlower.texi: Likewise.
49883         * doc/posix-functions/towlower_l.texi: Likewise.
49884         * doc/posix-functions/towupper.texi: Likewise.
49885         * doc/posix-functions/towupper_l.texi: Likewise.
49886         * doc/posix-functions/vfwprintf.texi: Likewise.
49887         * doc/posix-functions/vfwscanf.texi: Likewise.
49888         * doc/posix-functions/vswscanf.texi: Likewise.
49889         * doc/posix-functions/vwprintf.texi: Likewise.
49890         * doc/posix-functions/vwscanf.texi: Likewise.
49891         * doc/posix-functions/wcpcpy.texi: Likewise.
49892         * doc/posix-functions/wcpncpy.texi: Likewise.
49893         * doc/posix-functions/wcscasecmp.texi: Likewise.
49894         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49895         * doc/posix-functions/wcscoll_l.texi: Likewise.
49896         * doc/posix-functions/wcsdup.texi: Likewise.
49897         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49898         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49899         * doc/posix-functions/wcsnlen.texi: Likewise.
49900         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49901         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49902         * doc/posix-functions/wctrans_l.texi: Likewise.
49903         * doc/posix-functions/wctype_l.texi: Likewise.
49904         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49905         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49906         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49907         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49908         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49909         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49910         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49911         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49912         * doc/glibc-functions/wcschrnul.texi: Likewise.
49913         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49914         * doc/glibc-functions/wcstod_l.texi: Likewise.
49915         * doc/glibc-functions/wcstof_l.texi: Likewise.
49916         * doc/glibc-functions/wcstol_l.texi: Likewise.
49917         * doc/glibc-functions/wcstold_l.texi: Likewise.
49918         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49919         * doc/glibc-functions/wcstoq.texi: Likewise.
49920         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49921         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49922         * doc/glibc-functions/wcstouq.texi: Likewise.
49923         * doc/glibc-functions/wmempcpy.texi: Likewise.
49924
49925 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49926             Eric Blake  <ebb9@byu.net>
49927             Paolo Bonzini  <bonzini@gnu.org>
49928             Bruno Haible  <bruno@clisp.org>
49929
49930         Make c-stack work on Haiku.
49931         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49932         (c_stack_action): Use SA_ONSTACK flag.
49933
49934 2008-12-22  Bruno Haible  <bruno@clisp.org>
49935
49936         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49937
49938 2008-12-22  Bruno Haible  <bruno@clisp.org>
49939
49940         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49941         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49942         being overridden.
49943         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49944         New macros.
49945         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49947         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49948         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49949
49950 2008-12-22  Bruno Haible  <bruno@clisp.org>
49951
49952         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49953         from test code.
49954
49955 2008-12-22  Eric Blake  <ebb9@byu.net>
49956
49957         Avoid gcc warnings on cygwin.
49958         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49959         Avoid unused variable.
49960         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49961         Likewise.
49962
49963 2008-12-22  Bruno Haible  <bruno@clisp.org>
49964
49965         Remove HAVE_MBRTOWC conditionals.
49966         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49967         (mbscasecmp): Assume mbrtowc function.
49968         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49969         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49970         * lib/mbschr.c: Include mbuiter.h unconditionally.
49971         (mbschr): Assume mbrtowc function.
49972         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49973         (mbscspn): Assume mbrtowc function.
49974         * lib/mbslen.c: Include mbuiter.h unconditionally.
49975         (mbslen): Assume mbrtowc function.
49976         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49977         (mbsncasecmp): Assume mbrtowc function.
49978         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49979         (mbsnlen): Assume mbrtowc function.
49980         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49981         (mbspbrk): Assume mbrtowc function.
49982         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49983         (mbspcasecmp): Assume mbrtowc function.
49984         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49985         (mbsrchr): Assume mbrtowc function.
49986         * lib/mbssep.c: Include mbuiter.h unconditionally.
49987         (mbssep): Assume mbrtowc function.
49988         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49989         (mbsspn): Assume mbrtowc function.
49990         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49991         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49992         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49993         (mbstok_r): Assume mbrtowc function.
49994         * lib/propername.c: Include mbuiter.h unconditionally.
49995         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49996         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49997         (trim2): Assume mbrtowc function.
49998         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49999         (mbsnwidth): Assume mbrtowc function.
50000         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50001         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50002         fallback definitions.
50003         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50004
50005 2008-12-22  Bruno Haible  <bruno@clisp.org>
50006
50007         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50008
50009 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50010
50011         * modules/regex: Request emulations for the mb*/wc* functions we need.
50012         * m4/regex.m4: Don't look for those functions here.
50013         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50014
50015 2008-12-22  Bruno Haible  <bruno@clisp.org>
50016
50017         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50018
50019 2008-12-21  Bruno Haible  <bruno@clisp.org>
50020
50021         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50022         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50023         (Include): Remove conditionalization.
50024         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50025         (Include): Remove conditionalization.
50026         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50027         (Include): Remove conditionalization.
50028         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50029         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50030         * NEWS: Mention the change.
50031         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50032         via Sergey Poznyakoff <gray@gnu.org.ua>.
50033
50034 2008-12-21  Bruno Haible  <bruno@clisp.org>
50035
50036         * MODULES.html.sh (Extended multibyte and wide character utilities
50037         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50038         wcrtomb, wcsrtombs.
50039         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50040         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50041         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50042         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50043
50044 2008-12-21  Bruno Haible  <bruno@clisp.org>
50045
50046         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50047
50048 2008-12-21  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/wcsnrtombs-tests: New file.
50051         * tests/test-wcsnrtombs1.sh: New file.
50052         * tests/test-wcsnrtombs2.sh: New file.
50053         * tests/test-wcsnrtombs3.sh: New file.
50054         * tests/test-wcsnrtombs4.sh: New file.
50055         * tests/test-wcsnrtombs.c: New file.
50056
50057         New module 'wcsnrtombs'.
50058         * lib/wchar.in.h (wcsnrtombs): New declaration.
50059         * lib/wcsnrtombs.c: New file.
50060         * lib/wcsrtombs-state.c: New file.
50061         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50062         (internal_state): Remove variable.
50063         * m4/wcsnrtombs.m4: New file.
50064         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50065         compilation units.
50066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50067         HAVE_WCSNRTOMBS.
50068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50069         HAVE_WCSNRTOMBS.
50070         * modules/wcsnrtombs: New file.
50071         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50072         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50073
50074 2008-12-21  Bruno Haible  <bruno@clisp.org>
50075
50076         * modules/wcsrtombs-tests: New file.
50077         * tests/test-wcsrtombs1.sh: New file.
50078         * tests/test-wcsrtombs2.sh: New file.
50079         * tests/test-wcsrtombs3.sh: New file.
50080         * tests/test-wcsrtombs4.sh: New file.
50081         * tests/test-wcsrtombs.c: New file.
50082
50083         New module 'wcsrtombs'.
50084         * lib/wchar.in.h (wcsrtombs): New declaration.
50085         * lib/wcsrtombs.c: New file.
50086         * m4/wcsrtombs.m4: New file.
50087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50088         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50090         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50091         * modules/wcsrtombs: New file.
50092         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50093         bugs.
50094
50095 2008-12-21  Bruno Haible  <bruno@clisp.org>
50096
50097         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50098         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50099         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50100         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50101         if not correct.
50102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50103         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50104         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50105         m4/locale-zh.m4, m4/codeset.m4.
50106         * doc/posix-functions/wcrtomb.texi: Document the bug.
50107
50108 2008-12-21  Bruno Haible  <bruno@clisp.org>
50109
50110         Work around a btowc() bug on IRIX 6.5.
50111         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50112         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50113         REPLACE_WTOBC if not.
50114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50115         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50116         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50117
50118 2008-12-21  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/wcrtomb-tests: New file.
50121         * tests/test-wcrtomb.sh: New file.
50122         * tests/test-wcrtomb.c: New file.
50123
50124         New module 'wcrtomb'.
50125         * lib/wchar.in.h (wcrtomb): New declaration.
50126         * lib/wcrtomb.c: New file.
50127         * m4/wcrtomb.m4: New file.
50128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50129         HAVE_WCRTOMB.
50130         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50131         HAVE_WCRTOMB.
50132         * modules/wcrtomb: New file.
50133         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50134
50135 2008-12-21  Bruno Haible  <bruno@clisp.org>
50136
50137         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50138         * modules/mbsrtowcs (Files): Likewise.
50139         * modules/wctob (Files): Likewise.
50140         * modules/c-strcase-tests (Files): Likewise.
50141         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50142         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50143         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50144         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50145         * modules/vasnprintf-posix-tests (Files): Likewise.
50146
50147 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50148
50149         gitlog-to-changelog: pass all command-line arguments to git-log
50150         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50151         it is sometimes convenient to filter the commits in various ways.
50152         gitlog-to-changelog only allows --since to specify a start date,
50153         but git-log itself supports many other filtering mechanisms.
50154         At the moment, I want to filter by branch name.  Rather than
50155         adding a --branch option to gitlog-to-changelog, it seems more
50156         flexible to simply pass all options directly to git-log and let
50157         git do the work.  Notice that this effectively makes --since a
50158         redundant option for gitlog-to-changelog, but removing it would
50159         require current usage to change since calls would then require
50160         an additional '--'.
50161
50162 2008-12-21  Bruno Haible  <bruno@clisp.org>
50163
50164         * modules/mbsnrtowcs-tests: New file.
50165         * tests/test-mbsnrtowcs1.sh: New file.
50166         * tests/test-mbsnrtowcs2.sh: New file.
50167         * tests/test-mbsnrtowcs3.sh: New file.
50168         * tests/test-mbsnrtowcs4.sh: New file.
50169         * tests/test-mbsnrtowcs.c: New file.
50170
50171         New module 'mbsnrtowcs'.
50172         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50173         * lib/mbsnrtowcs.c: New file.
50174         * lib/mbsrtowcs-state.c: New file.
50175         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50176         (internal_state): Remove variable.
50177         * m4/mbsnrtowcs.m4: New file.
50178         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50179         compilation units.
50180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50181         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50182         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50183         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50184         * modules/mbsnrtowcs: New file.
50185         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50186         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50187         portability problem.
50188
50189 2008-12-21  Bruno Haible  <bruno@clisp.org>
50190
50191         Work around mbsrtowcs bug.
50192         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50193         (gl_FUNC_MBSRTOWCS): Invoke it.
50194         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50195         m4/locale-zh.m4.
50196         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50197
50198 2008-12-21  Bruno Haible  <bruno@clisp.org>
50199
50200         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50201
50202 2008-12-21  Bruno Haible  <bruno@clisp.org>
50203
50204         Update doc for AIX.
50205         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50206         16-bit wchar_t type.
50207         * doc/posix-functions/btowc.texi: Likewise.
50208         * doc/posix-functions/fgetwc.texi: Likewise.
50209         * doc/posix-functions/fgetws.texi: Likewise.
50210         * doc/posix-functions/fputwc.texi: Likewise.
50211         * doc/posix-functions/fputws.texi: Likewise.
50212         * doc/posix-functions/fwide.texi: Likewise.
50213         * doc/posix-functions/fwprintf.texi: Likewise.
50214         * doc/posix-functions/fwscanf.texi: Likewise.
50215         * doc/posix-functions/getwchar.texi: Likewise.
50216         * doc/posix-functions/getwc.texi: Likewise.
50217         * doc/posix-functions/iswalnum.texi: Likewise.
50218         * doc/posix-functions/iswalpha.texi: Likewise.
50219         * doc/posix-functions/iswblank.texi: Likewise.
50220         * doc/posix-functions/iswcntrl.texi: Likewise.
50221         * doc/posix-functions/iswctype.texi: Likewise.
50222         * doc/posix-functions/iswdigit.texi: Likewise.
50223         * doc/posix-functions/iswgraph.texi: Likewise.
50224         * doc/posix-functions/iswlower.texi: Likewise.
50225         * doc/posix-functions/iswprint.texi: Likewise.
50226         * doc/posix-functions/iswpunct.texi: Likewise.
50227         * doc/posix-functions/iswspace.texi: Likewise.
50228         * doc/posix-functions/iswupper.texi: Likewise.
50229         * doc/posix-functions/iswxdigit.texi: Likewise.
50230         * doc/posix-functions/mbrtowc.texi: Likewise.
50231         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50232         * doc/posix-functions/mbstowcs.texi: Likewise.
50233         * doc/posix-functions/mbtowc.texi: Likewise.
50234         * doc/posix-functions/putwchar.texi: Likewise.
50235         * doc/posix-functions/putwc.texi: Likewise.
50236         * doc/posix-functions/swprintf.texi: Likewise.
50237         * doc/posix-functions/tolower.texi: Likewise.
50238         * doc/posix-functions/toupper.texi: Likewise.
50239         * doc/posix-functions/towctrans.texi: Likewise.
50240         * doc/posix-functions/ungetwc.texi: Likewise.
50241         * doc/posix-functions/vswprintf.texi: Likewise.
50242         * doc/posix-functions/wcrtomb.texi: Likewise.
50243         * doc/posix-functions/wcscat.texi: Likewise.
50244         * doc/posix-functions/wcschr.texi: Likewise.
50245         * doc/posix-functions/wcscmp.texi: Likewise.
50246         * doc/posix-functions/wcscoll.texi: Likewise.
50247         * doc/posix-functions/wcscpy.texi: Likewise.
50248         * doc/posix-functions/wcscspn.texi: Likewise.
50249         * doc/posix-functions/wcsftime.texi: Likewise.
50250         * doc/posix-functions/wcslen.texi: Likewise.
50251         * doc/posix-functions/wcsncat.texi: Likewise.
50252         * doc/posix-functions/wcsncmp.texi: Likewise.
50253         * doc/posix-functions/wcsncpy.texi: Likewise.
50254         * doc/posix-functions/wcspbrk.texi: Likewise.
50255         * doc/posix-functions/wcsrchr.texi: Likewise.
50256         * doc/posix-functions/wcsrtombs.texi: Likewise.
50257         * doc/posix-functions/wcsspn.texi: Likewise.
50258         * doc/posix-functions/wcsstr.texi: Likewise.
50259         * doc/posix-functions/wcstod.texi: Likewise.
50260         * doc/posix-functions/wcstof.texi: Likewise.
50261         * doc/posix-functions/wcstoimax.texi: Likewise.
50262         * doc/posix-functions/wcstok.texi: Likewise.
50263         * doc/posix-functions/wcstold.texi: Likewise.
50264         * doc/posix-functions/wcstoll.texi: Likewise.
50265         * doc/posix-functions/wcstol.texi: Likewise.
50266         * doc/posix-functions/wcstombs.texi: Likewise.
50267         * doc/posix-functions/wcstoull.texi: Likewise.
50268         * doc/posix-functions/wcstoul.texi: Likewise.
50269         * doc/posix-functions/wcstoumax.texi: Likewise.
50270         * doc/posix-functions/wcswidth.texi: Likewise.
50271         * doc/posix-functions/wcsxfrm.texi: Likewise.
50272         * doc/posix-functions/wctob.texi: Likewise.
50273         * doc/posix-functions/wctomb.texi: Likewise.
50274         * doc/posix-functions/wctrans.texi: Likewise.
50275         * doc/posix-functions/wctype.texi: Likewise.
50276         * doc/posix-functions/wcwidth.texi: Likewise.
50277         * doc/posix-functions/wmemchr.texi: Likewise.
50278         * doc/posix-functions/wmemcmp.texi: Likewise.
50279         * doc/posix-functions/wmemcpy.texi: Likewise.
50280         * doc/posix-functions/wmemmove.texi: Likewise.
50281         * doc/posix-functions/wmemset.texi: Likewise.
50282         * doc/posix-functions/wprintf.texi: Likewise.
50283         * doc/posix-functions/wscanf.texi: Likewise.
50284
50285 2008-12-21  Bruno Haible  <bruno@clisp.org>
50286
50287         Update doc for HP-UX 11.11.
50288         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50289         in HP-UX version 11.00, not in all versions of HP-UX 11.
50290         * doc/posix-functions/fwide.texi: Likewise.
50291         * doc/posix-functions/fwprintf.texi: Likewise.
50292         * doc/posix-functions/fwscanf.texi: Likewise.
50293         * doc/posix-functions/inet_ntop.texi: Likewise.
50294         * doc/posix-functions/inet_pton.texi: Likewise.
50295         * doc/posix-functions/mbrlen.texi: Likewise.
50296         * doc/posix-functions/mbrtowc.texi: Likewise.
50297         * doc/posix-functions/mbsinit.texi: Likewise.
50298         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50299         * doc/posix-functions/swprintf.texi: Likewise.
50300         * doc/posix-functions/swscanf.texi: Likewise.
50301         * doc/posix-functions/towctrans.texi: Likewise.
50302         * doc/posix-functions/vfwprintf.texi: Likewise.
50303         * doc/posix-functions/vswprintf.texi: Likewise.
50304         * doc/posix-functions/vwprintf.texi: Likewise.
50305         * doc/posix-functions/wcrtomb.texi: Likewise.
50306         * doc/posix-functions/wcsrtombs.texi: Likewise.
50307         * doc/posix-functions/wcsstr.texi: Likewise.
50308         * doc/posix-functions/wctob.texi: Likewise.
50309         * doc/posix-functions/wctrans.texi: Likewise.
50310         * doc/posix-functions/wmemchr.texi: Likewise.
50311         * doc/posix-functions/wmemcmp.texi: Likewise.
50312         * doc/posix-functions/wmemcpy.texi: Likewise.
50313         * doc/posix-functions/wmemmove.texi: Likewise.
50314         * doc/posix-functions/wmemset.texi: Likewise.
50315         * doc/posix-functions/wprintf.texi: Likewise.
50316         * doc/posix-functions/wscanf.texi: Likewise.
50317
50318 2008-12-21  Bruno Haible  <bruno@clisp.org>
50319
50320         Work around a portability problem.
50321         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50322         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50323
50324 2008-12-20  Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50327         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50328         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50330         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50331
50332         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50333         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50334         set.
50335         (GNULIB_defined_mbstate_t): New macro.
50336         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50337         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50338         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50339         reuses the system's mbrtowc function but works around the bugs.
50340         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50341         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50342         macros.
50343         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50344         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50345         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50346         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50347         REPLACE_MBSINIT if mbsinit needs to be overridden.
50348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50349         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50350         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50351         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50352         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50353         m4/locale-zh.m4.
50354         (Depends): Add mbsinit.
50355         * modules/mbsinit (Depends): Add mbrtowc.
50356         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50357
50358 2008-12-20  Bruno Haible  <bruno@clisp.org>
50359
50360         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50361         so that there are no conversion errors on AIX.
50362         * tests/test-mbsrtowcs.c (main): LIkewise.
50363
50364 2008-12-20  Bruno Haible  <bruno@clisp.org>
50365
50366         Work around wctob bug on Solaris <= 9.
50367         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50368         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50370         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50371         * modules/wctob (Files): Add m4/locale-fr.m4.
50372         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50373
50374 2008-12-20  Bruno Haible  <bruno@clisp.org>
50375
50376         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50377         /dev/null.
50378         * tests/test-select-in.sh: Likewise.
50379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50380
50381 2008-12-20  Bruno Haible  <bruno@clisp.org>
50382
50383         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50384         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50385         Cygwin 1.5.x.
50386
50387 2008-12-20  Bruno Haible  <bruno@clisp.org>
50388
50389         Ensure mbstate_t is defined on HP-UX 11.11.
50390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50391         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50392         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50393         AC_USE_SYSTEM_EXTENSIONS.
50394         * modules/fnmatch (Depends-on): Add extensions.
50395         * modules/mbrlen (Depends-on): Likewise.
50396         * modules/mbrtowc (Depends-on): Likewise.
50397         * modules/mbsinit (Depends-on): Likewise.
50398         * modules/mbsrtowcs (Depends-on): Likewise.
50399         * modules/mbswidth (Depends-on): Likewise.
50400         * modules/quotearg (Depends-on): Likewise.
50401         * modules/strftime (Depends-on): Likewise.
50402
50403 2008-12-20  Bruno Haible  <bruno@clisp.org>
50404
50405         Ensure wctob is declared on IRIX 6.5.
50406         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50407         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50408         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50410         of HAVE_WCTOB.
50411         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50412         HAVE_WCTOB.
50413         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50414
50415 2008-12-19  Bruno Haible  <bruno@clisp.org>
50416
50417         * modules/mbsrtowcs-tests: New file.
50418         * tests/test-mbsrtowcs1.sh: New file.
50419         * tests/test-mbsrtowcs2.sh: New file.
50420         * tests/test-mbsrtowcs3.sh: New file.
50421         * tests/test-mbsrtowcs4.sh: New file.
50422         * tests/test-mbsrtowcs.c: New file.
50423
50424         New module 'mbsrtowcs'.
50425         * lib/wchar.in.h (mbsrtowcs): New declaration.
50426         * lib/mbsrtowcs.c: New file.
50427         * m4/mbsrtowcs.m4: New file.
50428         * modules/mbsrtowcs: New file.
50429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50430         HAVE_MBSRTOWCS.
50431         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50432         HAVE_MBSRTOWCS.
50433         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50434
50435 2008-12-19  Bruno Haible  <bruno@clisp.org>
50436
50437         New module 'mbrlen'.
50438         * lib/wchar.in.h (mbrlen): New declaration.
50439         * lib/mbrlen.c: New file.
50440         * m4/mbrlen.m4: New file.
50441         * modules/mbrlen: New file.
50442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50443         HAVE_MBRLEN.
50444         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50445         HAVE_MBRLEN.
50446         * doc/posix-functions/mbrlen.texi: Document the new module.
50447
50448 2008-12-19  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50451         * modules/mbrtowc (Depends-on): Add verify.
50452         Suggested by Paul Eggert.
50453
50454 2008-12-18  Bruno Haible  <bruno@clisp.org>
50455
50456         * modules/mbsinit-tests: New file.
50457         * tests/test-mbsinit.sh: New file.
50458         * tests/test-mbsinit.c: New file.
50459
50460 2008-12-18  Bruno Haible  <bruno@clisp.org>
50461
50462         * modules/mbrtowc-tests: New file.
50463         * tests/test-mbrtowc1.sh: New file.
50464         * tests/test-mbrtowc2.sh: New file.
50465         * tests/test-mbrtowc3.sh: New file.
50466         * tests/test-mbrtowc4.sh: New file.
50467         * tests/test-mbrtowc.c: New file.
50468
50469         New module 'mbrtowc'.
50470         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50471         mbsinit and mbrtowc.
50472         (mbrtowc): New declaration.
50473         * lib/mbrtowc.c: New file.
50474         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50475         * modules/mbrtowc: New file.
50476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50477         HAVE_MBRTOWC.
50478         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50479         HAVE_MBRTOWC.
50480         * doc/posix-functions/mbrtowc.texi: Document the new module.
50481
50482 2008-12-18  Bruno Haible  <bruno@clisp.org>
50483
50484         New module 'wctob'.
50485         * lib/wchar.in.h (wctob): New declaration.
50486         * lib/wctob.c: New file.
50487         * m4/wctob.m4: New file.
50488         * modules/wctob: New file.
50489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50490         HAVE_WCTOB.
50491         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50492         * doc/posix-functions/wctob.texi: Document the new module.
50493
50494 2008-12-18  Bruno Haible  <bruno@clisp.org>
50495
50496         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50497         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50498
50499 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50500
50501         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50502         G. Christensen" <tgc@jupiterrise.com>.
50503
50504         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50505         G. Christensen" <tgc@jupiterrise.com>.
50506
50507         * lib/flock.c: Need to include string.h.  Reported by "Tom
50508         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50509         <ebb9@byu.net>.
50510
50511 2008-12-18  Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/locale-ja.m4: New file, from GNU gettext.
50514
50515 2008-12-17  Bruno Haible  <bruno@clisp.org>
50516
50517         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50518         Suggested by Eric Blake.
50519
50520 2008-12-17  Bruno Haible  <bruno@clisp.org>
50521
50522         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50523
50524 2008-12-17  Bruno Haible  <bruno@clisp.org>
50525
50526         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50527         * modules/mbsinit (Depends-on): Add verify.
50528         Suggested by Paul Eggert.
50529
50530 2008-12-17  Bruno Haible  <bruno@clisp.org>
50531
50532         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50533         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50534         gl_FUNC_MBRTOWC.
50535         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50536         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50537         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50538         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50539         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50540         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50541         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50542         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50543         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50544         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50545         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50546         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50547         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50548         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50549         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50550         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50551         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50552         * modules/trim (configure.ac): Likewise.
50553
50554 2008-12-17  Bruno Haible  <bruno@clisp.org>
50555
50556         * modules/btowc-tests: New file.
50557         * tests/test-btowc1.sh: New file.
50558         * tests/test-btowc2.sh: New file.
50559         * tests/test-btowc.c: New file.
50560
50561         New module 'btowc'.
50562         * lib/wchar.in.h (btowc): New declaration.
50563         * lib/btowc.c: New file.
50564         * m4/btowc.m4: New file.
50565         * modules/btowc: New file.
50566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50567         HAVE_BTOWC.
50568         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50569         * doc/posix-functions/btowc.texi: Document the new module.
50570
50571 2008-12-17  Bruno Haible  <bruno@clisp.org>
50572
50573         New module 'mbsinit'.
50574         * lib/wchar.in.h (mbsinit): New declaration.
50575         * lib/mbsinit.c: New file.
50576         * m4/mbsinit.m4: New file.
50577         * modules/mbsinit: New file.
50578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50579         HAVE_MBSINIT.
50580         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50581         HAVE_MBSINIT.
50582         * doc/posix-functions/mbsinit.texi: Document the new module.
50583
50584 2008-12-16  Bruno Haible  <bruno@clisp.org>
50585
50586         * lib/unistd.in.h: Add comment.
50587         * tests/test-environ.c: Don't include <stdlib.h>.
50588
50589 2008-12-16  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/parse-duration.h (parse_duration): Document return value
50592         convention.
50593         * lib/parse-duration.c: Include specification header first. Add
50594         comments.
50595         (_): Remove macro.
50596         (parse_year_month_day, parse_hour_minute_second): Move side effects
50597         outside of strchr call.
50598         (parse_non_iso8601): Move side effects outside of isspace call.
50599         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50600         call.
50601
50602 2008-12-16  Bruno Haible  <bruno@clisp.org>
50603
50604         * tests/test-parse-duration.sh: Produce no output when the test
50605         succeeds.
50606
50607 2008-12-16  Bruno Haible  <bruno@clisp.org>
50608
50609         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50610         expressions.
50611
50612 2008-12-15  Bruno Haible  <bruno@clisp.org>
50613
50614         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50615         * doc/glibc-functions/flistxattr.texi: Likewise.
50616         * doc/glibc-functions/fopencookie.texi: Likewise.
50617         * doc/glibc-functions/fremovexattr.texi: Likewise.
50618         * doc/glibc-functions/fsetxattr.texi: Likewise.
50619         * doc/glibc-functions/getxattr.texi: Likewise.
50620         * doc/glibc-functions/lgetxattr.texi: Likewise.
50621         * doc/glibc-functions/listxattr.texi: Likewise.
50622         * doc/glibc-functions/llistxattr.texi: Likewise.
50623         * doc/glibc-functions/lremovexattr.texi: Likewise.
50624         * doc/glibc-functions/lsetxattr.texi: Likewise.
50625         * doc/glibc-functions/removexattr.texi: Likewise.
50626         * doc/glibc-functions/setxattr.texi: Likewise.
50627         * doc/posix-functions/open_memstream.texi: Likewise.
50628
50629 2008-12-15  Eric Blake  <ebb9@byu.net>
50630
50631         Update doc for cygwin 1.7.
50632         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50633         functions.
50634         * doc/posix-functions/fchmodat.texi: Likewise.
50635         * doc/posix-functions/fchownat.texi: Likewise.
50636         * doc/posix-functions/fdopendir.texi: Likewise.
50637         * doc/posix-functions/fmemopen.texi: Likewise.
50638         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50639         * doc/posix-functions/fstatat.texi: Likewise.
50640         * doc/posix-functions/futimens.texi: Likewise.
50641         * doc/posix-functions/gai_strerror.texi: Likewise.
50642         * doc/posix-functions/getaddrinfo.texi: Likewise.
50643         * doc/posix-functions/getnameinfo.texi: Likewise.
50644         * doc/posix-functions/if_freenameindex.texi: Likewise.
50645         * doc/posix-functions/if_indextoname.texi: Likewise.
50646         * doc/posix-functions/if_nameindex.texi: Likewise.
50647         * doc/posix-functions/if_nametoindex.texi: Likewise.
50648         * doc/posix-functions/insque.texi: Likewise.
50649         * doc/posix-functions/linkat.texi: Likewise.
50650         * doc/posix-functions/llrint.texi: Likewise.
50651         * doc/posix-functions/llrintf.texi: Likewise.
50652         * doc/posix-functions/llrintl.texi: Likewise.
50653         * doc/posix-functions/lockf.texi: Likewise.
50654         * doc/posix-functions/lrintl.texi: Likewise.
50655         * doc/posix-functions/mkdirat.texi: Likewise.
50656         * doc/posix-functions/mkfifoat.texi: Likewise.
50657         * doc/posix-functions/mknodat.texi: Likewise.
50658         * doc/posix-functions/mq_close.texi: Likewise.
50659         * doc/posix-functions/mq_getattr.texi: Likewise.
50660         * doc/posix-functions/mq_notify.texi: Likewise.
50661         * doc/posix-functions/mq_open.texi: Likewise.
50662         * doc/posix-functions/mq_receive.texi: Likewise.
50663         * doc/posix-functions/mq_send.texi: Likewise.
50664         * doc/posix-functions/mq_setattr.texi: Likewise.
50665         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50666         * doc/posix-functions/mq_timedsend.texi: Likewise.
50667         * doc/posix-functions/mq_unlink.texi: Likewise.
50668         * doc/posix-functions/open_memstream.texi: Likewise.
50669         * doc/posix-functions/openat.texi: Likewise.
50670         * doc/posix-functions/posix_fadvise.texi: Likewise.
50671         * doc/posix-functions/posix_fallocate.texi: Likewise.
50672         * doc/posix-functions/posix_madvise.texi: Likewise.
50673         * doc/posix-functions/posix_memalign.texi: Likewise.
50674         * doc/posix-functions/posix_openpt.texi: Likewise.
50675         * doc/posix-functions/readlinkat.texi: Likewise.
50676         * doc/posix-functions/remque.texi: Likewise.
50677         * doc/posix-functions/renameat.texi: Likewise.
50678         * doc/posix-functions/rintl.texi: Likewise.
50679         * doc/posix-functions/sem_unlink.texi: Likewise.
50680         * doc/posix-functions/shm_open.texi: Likewise.
50681         * doc/posix-functions/shm_unlink.texi: Likewise.
50682         * doc/posix-functions/signgam.texi: Likewise.
50683         * doc/posix-functions/sigset.texi: Likewise.
50684         * doc/posix-functions/stpcpy.texi: Likewise.
50685         * doc/posix-functions/stpncpy.texi: Likewise.
50686         * doc/posix-functions/strerror.texi: Likewise.
50687         * doc/posix-functions/strtod.texi: Likewise.
50688         * doc/posix-functions/symlinkat.texi: Likewise.
50689         * doc/posix-functions/unlinkat.texi: Likewise.
50690         * doc/posix-functions/utimensat.texi: Likewise.
50691         * doc/glibc-functions/bindresvport.texi: Likewise.
50692         * doc/glibc-functions/dn_expand.texi: Likewise.
50693         * doc/glibc-functions/exp10.texi: Likewise.
50694         * doc/glibc-functions/exp10f.texi: Likewise.
50695         * doc/glibc-functions/fgetxattr.texi: Likewise.
50696         * doc/glibc-functions/flistxattr.texi: Likewise.
50697         * doc/glibc-functions/fopencookie.texi: Likewise.
50698         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50699         * doc/glibc-functions/fremovexattr.texi: Likewise.
50700         * doc/glibc-functions/fsetxattr.texi: Likewise.
50701         * doc/glibc-functions/getifaddrs.texi: Likewise.
50702         * doc/glibc-functions/getxattr.texi: Likewise.
50703         * doc/glibc-functions/lgetxattr.texi: Likewise.
50704         * doc/glibc-functions/listxattr.texi: Likewise.
50705         * doc/glibc-functions/llistxattr.texi: Likewise.
50706         * doc/glibc-functions/lremovexattr.texi: Likewise.
50707         * doc/glibc-functions/lsetxattr.texi: Likewise.
50708         * doc/glibc-functions/pow10.texi: Likewise.
50709         * doc/glibc-functions/pow10f.texi: Likewise.
50710         * doc/glibc-functions/rcmd_af.texi: Likewise.
50711         * doc/glibc-functions/removexattr.texi: Likewise.
50712         * doc/glibc-functions/res_init.texi: Likewise.
50713         * doc/glibc-functions/res_mkquery.texi: Likewise.
50714         * doc/glibc-functions/res_query.texi: Likewise.
50715         * doc/glibc-functions/res_querydomain.texi: Likewise.
50716         * doc/glibc-functions/res_send.texi: Likewise.
50717         * doc/glibc-functions/rresvport_af.texi: Likewise.
50718         * doc/glibc-functions/setxattr.texi: Likewise.
50719         * doc/glibc-functions/strcasestr.texi: Likewise.
50720
50721 2008-12-15  Bruno Haible  <bruno@clisp.org>
50722
50723         Fix compilation error on OSF/1 4.0.
50724         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50725         <sys/time.h>, simply delegate to the system header.
50726         Reported by Daniel Richard G. <oss@teragram.com>.
50727
50728 2008-12-15  Bruno Haible  <bruno@clisp.org>
50729
50730         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50731         * doc/posix-functions/fchmodat.texi: Likewise.
50732         * doc/posix-functions/fchownat.texi: Likewise.
50733         * doc/posix-functions/fdopendir.texi: Likewise.
50734         * doc/posix-functions/fstatat.texi: Likewise.
50735         * doc/posix-functions/mkdirat.texi: Likewise.
50736         * doc/posix-functions/unlinkat.texi: Likewise.
50737
50738 2008-12-14  Bruno Haible  <bruno@clisp.org>
50739
50740         Update doc for POSIX:2008.
50741         * doc/posix-functions/faccessat.texi: New file.
50742         * doc/posix-functions/fchmodat.texi: New file.
50743         * doc/posix-functions/fchownat.texi: New file.
50744         * doc/posix-functions/fdopendir.texi: New file.
50745         * doc/posix-functions/fstatat.texi: New file.
50746         * doc/posix-functions/futimens.texi: New file.
50747         * doc/posix-functions/linkat.texi: New file.
50748         * doc/posix-functions/mkdirat.texi: New file.
50749         * doc/posix-functions/mkfifoat.texi: New file.
50750         * doc/posix-functions/mknodat.texi: New file.
50751         * doc/posix-functions/open_wmemstream.texi: New file.
50752         * doc/posix-functions/openat.texi: New file.
50753         * doc/posix-functions/psiginfo.texi: New file.
50754         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50755         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50756         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50757         * doc/posix-functions/readlinkat.texi: New file.
50758         * doc/posix-functions/renameat.texi: New file.
50759         * doc/posix-functions/strerror_l.texi: New file.
50760         * doc/posix-functions/symlinkat.texi: New file.
50761         * doc/posix-functions/unlinkat.texi: New file.
50762         * doc/posix-functions/utimensat.texi: New file.
50763         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50764
50765 2008-12-14  Bruno Haible  <bruno@clisp.org>
50766
50767         Update doc for POSIX:2008.
50768         * doc/posix-functions/alphasort.texi: Renamed from
50769         doc/glibc-functions/alphasort.texi.
50770         * doc/posix-functions/dirfd.texi: Renamed from
50771         doc/glibc-functions/dirfd.texi.
50772         * doc/posix-functions/dprintf.texi: Renamed from
50773         doc/glibc-functions/dprintf.texi.
50774         * doc/posix-functions/duplocale.texi: Renamed from
50775         doc/glibc-functions/duplocale.texi.
50776         * doc/posix-functions/fexecve.texi: Renamed from
50777         doc/glibc-functions/fexecve.texi.
50778         * doc/posix-functions/fmemopen.texi: Renamed from
50779         doc/glibc-functions/fmemopen.texi.
50780         * doc/posix-functions/freelocale.texi: Renamed from
50781         doc/glibc-functions/freelocale.texi.
50782         * doc/posix-functions/getdate_err.texi: Renamed from
50783         doc/glibc-functions/getdate_err.texi.
50784         * doc/posix-functions/isalnum_l.texi: Renamed from
50785         doc/glibc-functions/isalnum_l.texi.
50786         * doc/posix-functions/isalpha_l.texi: Renamed from
50787         doc/glibc-functions/isalpha_l.texi.
50788         * doc/posix-functions/isblank_l.texi: Renamed from
50789         doc/glibc-functions/isblank_l.texi.
50790         * doc/posix-functions/iscntrl_l.texi: Renamed from
50791         doc/glibc-functions/iscntrl_l.texi.
50792         * doc/posix-functions/isdigit_l.texi: Renamed from
50793         doc/glibc-functions/isdigit_l.texi.
50794         * doc/posix-functions/isgraph_l.texi: Renamed from
50795         doc/glibc-functions/isgraph_l.texi.
50796         * doc/posix-functions/islower_l.texi: Renamed from
50797         doc/glibc-functions/islower_l.texi.
50798         * doc/posix-functions/isprint_l.texi: Renamed from
50799         doc/glibc-functions/isprint_l.texi.
50800         * doc/posix-functions/ispunct_l.texi: Renamed from
50801         doc/glibc-functions/ispunct_l.texi.
50802         * doc/posix-functions/isspace_l.texi: Renamed from
50803         doc/glibc-functions/isspace_l.texi.
50804         * doc/posix-functions/isupper_l.texi: Renamed from
50805         doc/glibc-functions/isupper_l.texi.
50806         * doc/posix-functions/iswalnum_l.texi: Renamed from
50807         doc/glibc-functions/iswalnum_l.texi.
50808         * doc/posix-functions/iswalpha_l.texi: Renamed from
50809         doc/glibc-functions/iswalpha_l.texi.
50810         * doc/posix-functions/iswblank_l.texi: Renamed from
50811         doc/glibc-functions/iswblank_l.texi.
50812         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50813         doc/glibc-functions/iswcntrl_l.texi.
50814         * doc/posix-functions/iswctype_l.texi: Renamed from
50815         doc/glibc-functions/iswctype_l.texi.
50816         * doc/posix-functions/iswdigit_l.texi: Renamed from
50817         doc/glibc-functions/iswdigit_l.texi.
50818         * doc/posix-functions/iswgraph_l.texi: Renamed from
50819         doc/glibc-functions/iswgraph_l.texi.
50820         * doc/posix-functions/iswlower_l.texi: Renamed from
50821         doc/glibc-functions/iswlower_l.texi.
50822         * doc/posix-functions/iswprint_l.texi: Renamed from
50823         doc/glibc-functions/iswprint_l.texi.
50824         * doc/posix-functions/iswpunct_l.texi: Renamed from
50825         doc/glibc-functions/iswpunct_l.texi.
50826         * doc/posix-functions/iswspace_l.texi: Renamed from
50827         doc/glibc-functions/iswspace_l.texi.
50828         * doc/posix-functions/iswupper_l.texi: Renamed from
50829         doc/glibc-functions/iswupper_l.texi.
50830         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50831         doc/glibc-functions/iswxdigit_l.texi.
50832         * doc/posix-functions/isxdigit_l.texi: Renamed from
50833         doc/glibc-functions/isxdigit_l.texi.
50834         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50835         doc/glibc-functions/mbsnrtowcs.texi.
50836         * doc/posix-functions/mkdtemp.texi: Renamed from
50837         doc/glibc-functions/mkdtemp.texi.
50838         * doc/posix-functions/newlocale.texi: Renamed from
50839         doc/glibc-functions/newlocale.texi.
50840         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50841         doc/glibc-functions/nl_langinfo_l.texi.
50842         * doc/posix-functions/open_memstream.texi: Renamed from
50843         doc/glibc-functions/open_memstream.texi.
50844         * doc/posix-functions/opterr.texi: Renamed from
50845         doc/glibc-functions/opterr.texi.
50846         * doc/posix-functions/optind.texi: Renamed from
50847         doc/glibc-functions/optind.texi.
50848         * doc/posix-functions/optopt.texi: Renamed from
50849         doc/glibc-functions/optopt.texi.
50850         * doc/posix-functions/psignal.texi: Renamed from
50851         doc/glibc-functions/psignal.texi.
50852         * doc/posix-functions/scandir.texi: Renamed from
50853         doc/glibc-functions/scandir.texi.
50854         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50855         doc/glibc-functions/sched_get_priority_min.texi.
50856         * doc/posix-functions/signgam.texi: Renamed from
50857         doc/glibc-functions/signgam.texi.
50858         * doc/posix-functions/stpcpy.texi: Renamed from
50859         doc/glibc-functions/stpcpy.texi.
50860         * doc/posix-functions/stpncpy.texi: Renamed from
50861         doc/glibc-functions/stpncpy.texi.
50862         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50863         doc/glibc-functions/strcasecmp_l.texi.
50864         * doc/posix-functions/strcoll_l.texi: Renamed from
50865         doc/glibc-functions/strcoll_l.texi.
50866         * doc/posix-functions/strfmon_l.texi: Renamed from
50867         doc/glibc-functions/strfmon_l.texi.
50868         * doc/posix-functions/strftime_l.texi: Renamed from
50869         doc/glibc-functions/strftime_l.texi.
50870         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50871         doc/glibc-functions/strncasecmp_l.texi.
50872         * doc/posix-functions/strndup.texi: Renamed from
50873         doc/glibc-functions/strndup.texi.
50874         * doc/posix-functions/strnlen.texi: Renamed from
50875         doc/glibc-functions/strnlen.texi.
50876         * doc/posix-functions/strsignal.texi: Renamed from
50877         doc/glibc-functions/strsignal.texi.
50878         * doc/posix-functions/strxfrm_l.texi: Renamed from
50879         doc/glibc-functions/strxfrm_l.texi.
50880         * doc/posix-functions/timer_gettime.texi: Renamed from
50881         doc/glibc-functions/timer_gettime.texi.
50882         * doc/posix-functions/tolower_l.texi: Renamed from
50883         doc/glibc-functions/tolower_l.texi.
50884         * doc/posix-functions/toupper_l.texi: Renamed from
50885         doc/glibc-functions/toupper_l.texi.
50886         * doc/posix-functions/towctrans_l.texi: Renamed from
50887         doc/glibc-functions/towctrans_l.texi.
50888         * doc/posix-functions/towlower_l.texi: Renamed from
50889         doc/glibc-functions/towlower_l.texi.
50890         * doc/posix-functions/towupper_l.texi: Renamed from
50891         doc/glibc-functions/towupper_l.texi.
50892         * doc/posix-functions/uselocale.texi: Renamed from
50893         doc/glibc-functions/uselocale.texi.
50894         * doc/posix-functions/vdprintf.texi: Renamed from
50895         doc/glibc-functions/vdprintf.texi.
50896         * doc/posix-functions/wcpcpy.texi:
50897         Renamed from doc/glibc-functions/wcpcpy.texi.
50898         * doc/posix-functions/wcpncpy.texi: Renamed from
50899         doc/glibc-functions/wcpncpy.texi.
50900         * doc/posix-functions/wcscasecmp.texi: Renamed from
50901         doc/glibc-functions/wcscasecmp.texi.
50902         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50903         doc/glibc-functions/wcscasecmp_l.texi.
50904         * doc/posix-functions/wcscoll_l.texi: Renamed from
50905         doc/glibc-functions/wcscoll_l.texi.
50906         * doc/posix-functions/wcsdup.texi: Renamed from
50907         doc/glibc-functions/wcsdup.texi.
50908         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50909         doc/glibc-functions/wcsncasecmp.texi.
50910         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50911         doc/glibc-functions/wcsncasecmp_l.texi.
50912         * doc/posix-functions/wcsnlen.texi: Renamed from
50913         doc/glibc-functions/wcsnlen.texi.
50914         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50915         doc/glibc-functions/wcsnrtombs.texi.
50916         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50917         doc/glibc-functions/wcsxfrm_l.texi.
50918         * doc/posix-functions/wctrans_l.texi: Renamed from
50919         doc/glibc-functions/wctrans_l.texi.
50920         * doc/posix-functions/wctype_l.texi: Renamed from
50921         doc/glibc-functions/wctype_l.texi.
50922         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50923         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50924         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50925         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50926         these subsections.
50927         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50928         Remove sections.
50929
50930 2008-12-14  Bruno Haible  <bruno@clisp.org>
50931
50932         Update doc for POSIX:2008.
50933         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50934
50935 2008-12-14  Bruno Haible  <bruno@clisp.org>
50936
50937         Update doc for POSIX:2008.
50938         * doc/pastposix-functions/bcmp.texi: Renamed from
50939         doc/posix-functions/bcmp.texi.
50940         * doc/pastposix-functions/bcopy.texi: Renamed from
50941         doc/posix-functions/bcopy.texi.
50942         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50943         doc/posix-functions/bsd_signal.texi.
50944         * doc/pastposix-functions/bzero.texi: Renamed from
50945         doc/posix-functions/bzero.texi.
50946         * doc/pastposix-functions/ecvt.texi: Renamed from
50947         doc/posix-functions/ecvt.texi.
50948         * doc/pastposix-functions/fcvt.texi: Renamed from
50949         doc/posix-functions/fcvt.texi.
50950         * doc/pastposix-functions/ftime.texi: Renamed from
50951         doc/posix-functions/ftime.texi.
50952         * doc/pastposix-functions/gcvt.texi: Renamed from
50953         doc/posix-functions/gcvt.texi.
50954         * doc/pastposix-functions/getcontext.texi: Renamed from
50955         doc/posix-functions/getcontext.texi.
50956         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50957         doc/posix-functions/gethostbyaddr.texi.
50958         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50959         doc/posix-functions/gethostbyname.texi.
50960         * doc/pastposix-functions/getwd.texi: Renamed from
50961         doc/posix-functions/getwd.texi.
50962         * doc/pastposix-functions/h_errno.texi: Renamed from
50963         doc/posix-functions/h_errno.texi.
50964         * doc/pastposix-functions/index.texi: Renamed from
50965         doc/posix-functions/index.texi.
50966         * doc/pastposix-functions/makecontext.texi: Renamed from
50967         doc/posix-functions/makecontext.texi.
50968         * doc/pastposix-functions/mktemp.texi: Renamed from
50969         doc/posix-functions/mktemp.texi.
50970         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50971         doc/posix-functions/pthread_attr_getstackaddr.texi.
50972         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50973         doc/posix-functions/pthread_attr_setstackaddr.texi.
50974         * doc/pastposix-functions/rindex.texi: Renamed from
50975         doc/posix-functions/rindex.texi.
50976         * doc/pastposix-functions/scalb.texi: Renamed from
50977         doc/posix-functions/scalb.texi.
50978         * doc/pastposix-functions/setcontext.texi: Renamed from
50979         doc/posix-functions/setcontext.texi.
50980         * doc/pastposix-functions/swapcontext.texi: Renamed from
50981         doc/posix-functions/swapcontext.texi.
50982         * doc/pastposix-functions/ualarm.texi: Renamed from
50983         doc/posix-functions/ualarm.texi.
50984         * doc/pastposix-functions/usleep.texi: Renamed from
50985         doc/posix-functions/usleep.texi.
50986         * doc/pastposix-functions/vfork.texi: Renamed from
50987         doc/posix-functions/vfork.texi.
50988         * doc/pastposix-functions/wcswcs.texi: Renamed from
50989         doc/posix-functions/wcswcs.texi.
50990         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50991         (Function Substitutes): Update.
50992
50993 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50994
50995         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50996         m4/strerror.m4.
50997
50998 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50999             Bruno Haible  <bruno@clisp.org>
51000
51001         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51002
51003 2008-12-13  Bruno Haible  <bruno@clisp.org>
51004
51005         * modules/strtoull (Depends-on): Remove unistd.
51006
51007 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51008
51009         * modules/strtoull (Depends-on): Add stdlib.
51010
51011 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51012
51013         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51014
51015 2008-12-10  Jim Meyering  <meyering@redhat.com>
51016
51017         gl_ASSERT: don't say assertions are disabled when they're not
51018         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51019         "checking whether to enable assertions... no", when they are in
51020         fact enabled.  This is solely a bug in the output of configure.
51021         In spite of saying "no", NDEBUG was not defined in that case.
51022         Also, as noted by Eric Blake, leave assertions enabled upon
51023         --enable-assert=INVALID.
51024
51025 2008-12-10  Bruno Haible  <bruno@clisp.org>
51026
51027         Change MODULES.html to refer to POSIX:2008 where possible.
51028         * MODULES.html.sh (POSIX2008_URL): New variable.
51029         (posix_headers): Remove sys/timeb, ucontext.
51030         (posix2001_headers): New variable.
51031         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51032         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51033         index, makecontext, mktemp, pthread_attr_getstackaddr,
51034         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51035         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51036         (posix2001_functions): New variable.
51037         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51038         otherwise.
51039
51040 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51041
51042         add missing include to parse-duration.c
51043         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51044         * modules/parse-duration (Depends-on): Add xalloc.
51045
51046         fix sed script reading maint.mk
51047         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51048         (syntax-check-rules): Use it.
51049
51050 2008-12-09  Bruno Haible  <bruno@clisp.org>
51051
51052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51053         MacOS X 10.4/PowerPC.
51054         Reported by Simon Josefsson.
51055
51056 2008-12-08  Jim Meyering  <meyering@redhat.com>
51057
51058         work around mingw's lack of some S_IF definitions
51059         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51060         Reported by Simon Josefsson.
51061
51062 2008-12-08  Bruno Haible  <bruno@clisp.org>
51063
51064         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51065         applied to variables. Needed on MacOS X 10.4/PowerPC.
51066         Reported by Simon Josefsson.
51067
51068 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51069         and Eric Blake  <ebb9@byu.net>
51070
51071         assert: honor --enable-assert
51072         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51073         order to honor --enable-assert, rather than treating it as a
51074         synonym for --disable-assert.
51075
51076 2008-12-08  Jim Meyering  <meyering@redhat.com>
51077
51078         * lib/posixtm.c: Remove now-useless declaration of mktime.
51079
51080         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51081
51082 2008-12-07  Bruno Haible  <bruno@clisp.org>
51083
51084         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51085         test_once): Mark functions as static.
51086         * tests/test-tls.c (test_tls): Likewise.
51087
51088 2008-12-07  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51091         iconv_register_autodetect.
51092
51093 2008-12-07  Jim Meyering  <meyering@redhat.com>
51094
51095         posixtm.c: avoid a warning
51096         * lib/posixtm.c (posixtime): Don't initialize tm0.
51097         It's no longer needed to placate gcc4's -Wuninitialized,
51098         and the attempt to placate would elicit a new warning.
51099
51100         unicodeio.c: mark unused parameters
51101         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51102         (fallback_failure_callback): Likewise.
51103
51104 2008-12-07  Bruno Haible  <bruno@clisp.org>
51105
51106         * gnulib-tool (func_create_testdir): When building the tests
51107         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51108         Reported by Simon Josefsson.
51109
51110 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51111
51112         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51113
51114 2008-12-06  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51117         Suggested by Eric Blake.
51118
51119 2008-12-06  Bruno Haible  <bruno@clisp.org>
51120
51121         Fix a c-stack test failure on MacOS X.
51122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51123         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51124         handler for SIGBUS as well.
51125         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51126         install a signal handler for SIGBUS as well.
51127         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51128
51129 2008-12-06  Bruno Haible  <bruno@clisp.org>
51130
51131         Advocacy documentation.
51132         * doc/gnulib-intro.texi (Benefits): New section.
51133         * doc/gnulib.texi: Update.
51134
51135 2008-12-06  Bruno Haible  <bruno@clisp.org>
51136
51137         Document the 'manywarnings' module.
51138         * doc/manywarnings.texi: New file.
51139         * doc/gnulib.texi: Include it.
51140
51141 2008-12-05  Eric Blake  <ebb9@byu.net>
51142
51143         tests: silence some gcc warnings
51144         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51145         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51146         type mismatches.
51147
51148 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51149             Bruno Haible  <bruno@clisp.org>
51150
51151         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51152
51153 2008-11-29  Jim Meyering  <meyering@redhat.com>
51154
51155         unicodeio.c: mark unused parameters
51156         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51157         (fallback_failure_callback): Likewise.
51158
51159         fts: fix a thinko
51160         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51161         (set_stat_type): Return S_IF*-valued "type" directly.
51162         Prompted by James Youngman's spotting a related bug.
51163         Confirmed by further testing through find.
51164
51165         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51166         * lib/fts.c (D_TYPE): Define.
51167         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51168         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51169         (s_ifmt_shift_bits): New function.
51170         (set_stat_type): New function.
51171         (fts_build): When not calling fts_stat, call set_stat_type
51172         to propagate dirent.d_type info to fts_read caller.
51173         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51174         fts_statp->st_mode type information may be valid.
51175
51176 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51177
51178         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51179         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51180         <sds@gnu.org>.
51181
51182 2008-11-20  Bruno Haible  <bruno@clisp.org>
51183
51184         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51185         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51186         INCLUDE_NEXT.
51187         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51188         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51189         * modules/math (Makefile.am): Substitute
51190         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51191         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51192
51193 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51194             Bruno Haible  <bruno@clisp.org>
51195
51196         * lib/stdint.in.h: Define all type macros so that their expansion is
51197         a single typedef'ed token. Fixes a compilation failure in Boost which
51198         does "using ::int8_t;".
51199
51200 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51201
51202         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51203         gl_MANYWARN_ALL_GCC.
51204         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51205         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51206         * modules/manywarnings: New file.
51207         * MODULES.html.sh: Mention manywarnings module.
51208
51209 2008-11-18  Bruno Haible  <bruno@clisp.org>
51210
51211         * doc/gnulib-tool.texi (Unit tests): New section.
51212
51213 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51214
51215         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51216         paths like 'lib/po/foo.po'.
51217
51218 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51219
51220         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51221         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51222
51223 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51224
51225         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51226         parameter works.
51227
51228 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51229
51230         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51231
51232 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51233
51234         * modules/parse-duration-tests: New file.
51235         * tests/test-parse-duration.sh: New file.
51236         * tests/test-parse-duration.c: New file.
51237
51238         New module 'parse-duration'.
51239         * lib/parse-duration.h: New file.
51240         * lib/parse-duration.c: New file.
51241         * modules/parse-duration: New file.
51242
51243 2008-11-17  Bruno Haible  <bruno@clisp.org>
51244
51245         * tests/test-select-out.sh: Comment out the first pipe test.
51246         Reported by Simon Josefsson.
51247
51248 2008-11-17  Bruno Haible  <bruno@clisp.org>
51249
51250         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51251         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51252         gl_HOSTENT.
51253
51254 2008-11-17  Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51257         -lnetwork and -lnet. Needed for Haiku and BeOS.
51258
51259 2008-11-16  Bruno Haible  <bruno@clisp.org>
51260
51261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51262
51263 2008-11-16  Bruno Haible  <bruno@clisp.org>
51264
51265         Avoid test failure on Haiku.
51266         * tests/test-fsync.c: Include <errno.h>.
51267         (main): Don't require that fsync (0) fails.
51268
51269 2008-11-15  Bruno Haible  <bruno@clisp.org>
51270
51271         New module 'hostent'.
51272         * modules/hostent: New file.
51273         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51274
51275 2008-11-15  Bruno Haible  <bruno@clisp.org>
51276
51277         New module 'servent'.
51278         * modules/servent: New file.
51279         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51280
51281 2008-11-15  Bruno Haible  <bruno@clisp.org>
51282
51283         Avoid generating same test program with two different rules.
51284         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51285         test-frexp to test-frexp-nolibm.
51286         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51287         test-frexpl to test-frexpl-nolibm.
51288
51289 2008-11-15  Bruno Haible  <bruno@clisp.org>
51290
51291         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51292         $(FREXPL_LIBM).
51293
51294 2008-11-15  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/netdb.in.h: Activate the definitions also when the system's
51297         <netdb.h> has 'struct addrinfo'.
51298         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51299         EAI_OVERFLOW or AI_NUMERICSERV.
51300         * doc/posix-headers/netdb.texi: Document the problem.
51301
51302 2008-11-15  Bruno Haible  <bruno@clisp.org>
51303
51304         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51305
51306         Make the 'sched' module work on platforms where <sched.h> exists but
51307         is incomplete (such as Haiku).
51308         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51309         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51310         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51311         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51312         HAVE_STRUCT_SCHED_PARAM.
51313         * modules/sched (Depends-on): Add include_next.
51314         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51315         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51316         * doc/posix-headers/sched.texi: Document the issue.
51317
51318 2008-11-13  Jim Meyering  <meyering@redhat.com>
51319
51320         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51321         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51322         test would fail due to the difference in the Report bugs to ...
51323         line.  The expected address is empty, "<>", while the actual
51324         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51325
51326 2008-11-12  Bruno Haible  <bruno@clisp.org>
51327
51328         lstat: don't compile lstat.c on systems lacking lstat
51329         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51330         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51331         Reported by Daniel P. Berrange via Jim Meyering.
51332
51333 2008-11-12  Jim Meyering  <meyering@redhat.com>
51334
51335         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51336
51337 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51338
51339         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51340         instead.
51341
51342 2008-11-12  Bruno Haible  <bruno@clisp.org>
51343
51344         * lib/unicodeio.c: Include unistr.h.
51345         (utf8_wctomb): Remove function.
51346         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51347
51348 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51349
51350         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51351         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51352         <bruno@clisp.org>.
51353         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51354
51355 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51356
51357         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51358         * doc/gnulib.texi: Add section for warnings.
51359
51360 2008-11-11  Bruno Haible  <bruno@clisp.org>
51361
51362         * lib/sockets.h: Add a comment.
51363
51364 2008-11-11  Karl Berry  <karl@gnu.org>
51365
51366         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51367
51368 2008-11-11  Eric Blake  <ebb9@byu.net>
51369
51370         fdl.texi: avoid git symlinks
51371         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51372
51373 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51374
51375         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51376
51377 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51378
51379         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51380         (gl_WARN_ADD): Substitute $2 if literal.
51381
51382 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51383
51384         * m4/warning.m4: Remove.
51385
51386 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51387
51388         * m4/warnings.m4: Almost complete rewrite. :-)
51389
51390 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51391
51392         * modules/warnings: New module.
51393         * m4/warnings.m4: New file.
51394         * MODULES.html.sh: Mention warnings module.
51395         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51396         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51397
51398 2008-11-10  Eric Blake  <ebb9@byu.net>
51399
51400         fdl.texi: make a symlink to the latest version
51401         * doc/standards.texi: Revert today's earlier change.
51402         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51403         * doc/fdl.texi: ...and replace this with a symlink to the newer
51404         fdl-1.3.texi.
51405
51406 2008-11-10  Bruno Haible  <bruno@clisp.org>
51407
51408         * tests/test-select-fd.c (main): Accept the result file name as fourth
51409         argument.
51410         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51411         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51412
51413 2008-11-10  Bruno Haible  <bruno@clisp.org>
51414
51415         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51416         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51417         as autoconf-substituted macros.
51418         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51420         gl_NETDB_H_DEFAULTS. Set these variables.
51421         * modules/netdb (Makefile.am): Substitute these variables.
51422
51423 2008-11-10  Eric Blake  <ebb9@byu.net>
51424
51425         standards.texi: include correct file for FDL 1.3
51426         * doc/standards.texi (GNU Free Documentation License): Change
51427         include file to pull in FDL 1.3, not 1.2.
51428
51429         fdl.texi: revert accidental change to license
51430         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51431
51432 2008-11-10  Bruno Haible  <bruno@clisp.org>
51433
51434         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51435         cross-compiling guesses also when the native compile gives no result.
51436
51437 2008-11-10  Bruno Haible  <bruno@clisp.org>
51438
51439         * lib/spawni.c (__spawni): Force variable into the stack.
51440
51441 2008-11-10  Bruno Haible  <bruno@clisp.org>
51442
51443         Add support for Haiku.
51444         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51445         glibc and BeOS, but also on Haiku.
51446         * lib/fpurge.c (fpurge): Likewise.
51447         * lib/freadable.c (freadable): Likewise.
51448         * lib/freadahead.c (freadahead): Likewise.
51449         * lib/freading.c (freading): Likewise.
51450         * lib/freadptr.c (freadptr): Likewise.
51451         * lib/freadseek.c (freadptrinc): Likewise.
51452         * lib/fseeko.c (rpl_fseeko): Likewise.
51453         * lib/fseterr.c (fseterr): Likewise.
51454         * lib/fwritable.c (fwritable): Likewise.
51455         * lib/fwriting.c (fwriting): Likewise.
51456         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51457
51458 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51459
51460         * lib/config.charset: Treat Haiku like BeOS.
51461
51462 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51463
51464         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51465         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51466
51467 2008-11-08  Bruno Haible  <bruno@clisp.org>
51468
51469         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51470         AC_CACHE_CHECK.
51471
51472 2008-11-08  Bruno Haible  <bruno@clisp.org>
51473
51474         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51475
51476 2008-11-08  Bruno Haible  <bruno@clisp.org>
51477
51478         * tests/test-select-fd.c: New file.
51479         * tests/test-select-in.sh: New file.
51480         * tests/test-select-out.sh: New file.
51481         * tests/test-select-stdin.c: New file.
51482         * modules/select-tests (Files): Add the new files.
51483         (Depends-on): Add gettimeofday.
51484         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51485         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51486         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51487
51488 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51489             Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51492
51493 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51494
51495         * build-aux/pmccabe2html: Added support for C++ source files.
51496
51497 2008-11-05  Ben Pfaff  <blp@gnu.org>
51498
51499         Fix lib/close.c build on Windows.
51500         * modules/close (Files): Add lib/w32sock.h.
51501
51502 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51503
51504         Accept Bison's NEWS format.
51505         * build-aux/announce-gen (print_news_deltas): Tweak
51506         $re_prefix.
51507
51508 2008-11-04  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/random_r (Maintainer): Add glibc.
51511
51512 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51513
51514         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51515         by karl@freefriends.org (Karl Berry).
51516         * doc/alloca.texi: Likewise.
51517         * doc/c-ctype.texi: Likewise.
51518         * doc/c-strcase.texi: Likewise.
51519         * doc/c-strcaseeq.texi: Likewise.
51520         * doc/c-strcasestr.texi: Likewise.
51521         * doc/c-strstr.texi: Likewise.
51522         * doc/c-strtod.texi: Likewise.
51523         * doc/c-strtold.texi: Likewise.
51524         * doc/ctime.texi: Likewise.
51525         * doc/error.texi: Likewise.
51526         * doc/fdl.texi: Likewise.
51527         * doc/gcd.texi: Likewise.
51528         * doc/getdate.texi: Likewise.
51529         * doc/gnulib-intro.texi: Likewise.
51530         * doc/gnulib-tool.texi: Likewise.
51531         * doc/gnulib.texi: Likewise.
51532         * doc/inet_ntoa.texi: Likewise.
51533         * doc/maintain.texi: Likewise.
51534         * doc/make-stds.texi: Likewise.
51535         * doc/quote.texi: Likewise.
51536         * doc/regexprops-generic.texi: Likewise.
51537         * doc/standards.texi: Likewise.
51538         * doc/verify.texi: Likewise.
51539         * doc/visibility.texi: Likewise.
51540         * doc/gnulib.texi (GNU Free Documentation License): Include
51541         fdl-1.3.texi instead of fdl.texi.
51542
51543 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51544
51545         * doc/fdl-1.3.texi: New file, from
51546         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51547         * modules/fdl-1.3: Add.
51548         * MODULES.html.sh: Add fdl-1.3.
51549
51550 2008-11-03  Bruno Haible  <bruno@clisp.org>
51551
51552         Make determination of absolute name of header file work with AIX xlc.
51553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51554         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51555         preprocessing.
51556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51557         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51558
51559 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51560
51561         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51562         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51563         <ludo@gnu.org>.
51564
51565 2008-11-02  Bruno Haible  <bruno@clisp.org>
51566
51567         Mark 'strpbrk' obsolete.
51568         * modules/strpbrk (Status, Notice): New sections.
51569         * modules/strtok_r (Depends-on): Add strpbrk.
51570
51571 2008-11-02  Bruno Haible  <bruno@clisp.org>
51572
51573         Mark 'strdup' obsolete.
51574         * modules/strdup (Status, Notice): New sections.
51575         * modules/findprog (Depends-on): Add strdup.
51576         * modules/getaddrinfo (Depends-on): Likewise.
51577         * modules/localename (Depends-on): Likewise.
51578         * modules/relocatable-lib (Depends-on): Likewise.
51579         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51580         * modules/relocatable-prog (Depends-on): Likewise.
51581         * modules/trim (Depends-on): Likewise.
51582         * modules/unictype/gen-ctype (Depends-on): Likewise.
51583         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51584
51585 2008-11-02  Bruno Haible  <bruno@clisp.org>
51586
51587         Mark 'strcspn' obsolete.
51588         * modules/strcspn (Status, Notice): New sections.
51589
51590 2008-11-02  Bruno Haible  <bruno@clisp.org>
51591
51592         Mark 'rmdir' obsolete.
51593         * modules/rmdir (Status, Notice): New sections.
51594         * modules/clean-temp (Depends-on): Add rmdir.
51595         * modules/openat (Depends-on): Likewise.
51596
51597 2008-11-02  Bruno Haible  <bruno@clisp.org>
51598
51599         Mark 'raise' obsolete.
51600         * modules/raise (Status, Notice): New sections.
51601         (Include): Specify <signal.h>.
51602         * modules/stdio (Depends-on): Add raise.
51603         * modules/write (Depends-on): Likewise.
51604
51605 2008-11-02  Bruno Haible  <bruno@clisp.org>
51606
51607         Mark 'memset' obsolete.
51608         * modules/memset (Status, Notice): New sections.
51609
51610 2008-11-02  Bruno Haible  <bruno@clisp.org>
51611
51612         Mark 'memmove' obsolete.
51613         * modules/memmove (Status, Notice): New sections.
51614         * modules/argp (Depends-on): Add memmove.
51615         * modules/argz (Depends-on): Likewise.
51616         * modules/canonicalize (Depends-on): Likewise.
51617         * modules/canonicalize-lgpl (Depends-on): Likewise.
51618         * modules/fts (Depends-on): Likewise.
51619         * modules/getcwd (Depends-on): Likewise.
51620         * modules/human (Depends-on): Likewise.
51621         * modules/regex (Depends-on): Likewise.
51622         * modules/striconveh (Depends-on): Likewise.
51623         * modules/trim (Depends-on): Likewise.
51624         * modules/unistr/u8-move (Depends-on): Likewise.
51625         * modules/unistr/u16-move (Depends-on): Likewise.
51626         * modules/unistr/u32-move (Depends-on): Likewise.
51627
51628 2008-11-02  Bruno Haible  <bruno@clisp.org>
51629
51630         Mark 'memcpy' obsolete.
51631         * modules/memcpy (Status, Notice): New sections.
51632
51633 2008-11-02  Bruno Haible  <bruno@clisp.org>
51634
51635         Mark 'memcmp' obsolete.
51636         * modules/memcmp (Status, Notice): New sections.
51637         * modules/argmatch (Depends-on): Add memchr.
51638         * modules/backupfile (Depends-on): Likewise.
51639         * modules/c-strcasestr (Depends-on): Likewise.
51640         * modules/crypto/des (Depends-on): Likewise.
51641         * modules/csharpcomp (Depends-on): Likewise.
51642         * modules/fnmatch (Depends-on): Likewise.
51643         * modules/git-merge-changelog (Depends-on): Likewise.
51644         * modules/isnand (Depends-on): Likewise.
51645         * modules/isnand-nolibm (Depends-on): Likewise.
51646         * modules/isnanf (Depends-on): Likewise.
51647         * modules/isnanf-nolibm (Depends-on): Likewise.
51648         * modules/isnanl (Depends-on): Likewise.
51649         * modules/isnanl-nolibm (Depends-on): Likewise.
51650         * modules/mbchar (Depends-on): Likewise.
51651         * modules/memcoll (Depends-on): Likewise.
51652         * modules/quotearg (Depends-on): Likewise.
51653         * modules/regex (Depends-on): Likewise.
51654         * modules/relocatable-prog (Depends-on): Likewise.
51655         * modules/same (Depends-on): Likewise.
51656         * modules/signbit (Depends-on): Likewise.
51657         * modules/strcasestr-simple (Depends-on): Likewise.
51658         * modules/unictype/gen-ctype (Depends-on): Likewise.
51659         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51660         * modules/uniname/uniname (Depends-on): Likewise.
51661         * modules/unistr/u8-cmp (Depends-on): Likewise.
51662
51663 2008-11-02  Bruno Haible  <bruno@clisp.org>
51664
51665         Mark 'memchr' obsolete.
51666         * modules/memchr (Status, Notice): New sections.
51667         * modules/argp (Depends-on): Add memchr.
51668         * modules/base64 (Depends-on): Likewise.
51669         * modules/c-strcasestr (Depends-on): Likewise.
51670         * modules/chdir-long (Depends-on): Likewise.
51671         * modules/fnmatch (Depends-on): Likewise.
51672         * modules/getsubopt (Depends-on): Likewise.
51673         * modules/git-merge-changelog (Depends-on): Likewise.
51674         * modules/glob (Depends-on): Likewise.
51675         * modules/strcasestr-simple (Depends-on): Likewise.
51676         * modules/strnlen (Depends-on): Likewise.
51677
51678 2008-11-02  Bruno Haible  <bruno@clisp.org>
51679
51680         Mark 'atexit' obsolete.
51681         * modules/atexit (Status, Notice): New sections.
51682         * modules/chdir-long (Depends-on): Add atexit.
51683         * modules/wait-process (Depends-on): Likewise.
51684
51685 2008-11-02  Bruno Haible  <bruno@clisp.org>
51686
51687         * gnulib-tool: New option --with-obsolete.
51688         (func_usage): Document it.
51689         (func_modules_transitive_closure): Drop obsolete dependencies if
51690         incobsolete is not true.
51691         (func_import): Read and save the incobsolete variable to the cache.
51692
51693 2008-11-02  Bruno Haible  <bruno@clisp.org>
51694
51695         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51696         * gnulib-tool: New option --extract-status.
51697         (func_usage): Document it.
51698         (sed_extract_prog): Recognize it.
51699         (func_get_status): New function.
51700
51701 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51702
51703         * modules/sockets (License): Change from LGPL to LGPLv2+.
51704
51705 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51706
51707         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51708
51709 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51710
51711         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51712         Mention times and sys_times.
51713         * modules/sys_times, modules/sys_times-tests: New modules.
51714         * modules/times, modules/times-tests: Likewise
51715         * m4/sys_times_h.m4: New file.
51716         * lib/sys_times.in.h: Likewise
51717         * lib/times.c: Likewise.
51718         * tests/test-sys_times.c: Likewise.
51719         * tests/test-times.c: Likewise.
51720         * doc/posix-headers/sys_times.texi: Update.
51721         * doc/posix-functions/times.texi: Update.
51722
51723 2008-10-28  Jim Meyering  <meyering@redhat.com>
51724
51725         * modules/tempname (Depends-on): Add lstat.
51726
51727         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51728
51729 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51730
51731         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51732         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51733         using idiom used elsewhere in gnulib.
51734
51735 2008-10-27  Jim Meyering  <meyering@redhat.com>
51736
51737         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51738
51739 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51740
51741         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51742         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51743         programs.
51744         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51745
51746 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51747
51748         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51749
51750 2008-10-27  Bruno Haible  <bruno@clisp.org>
51751
51752         * tests/test-lstat.c: Include <stdio.h>.
51753
51754 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51755
51756         * modules/lstat-tests: New module.
51757         * tests/test-lstat.c: New file.
51758
51759 2008-10-26  Jim Meyering  <meyering@redhat.com>
51760
51761         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51762
51763 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51764             Bruno Haible  <bruno@clisp.org>
51765
51766         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51767         * modules/configmake (Include): Add a note that the include must come
51768         after all system headers.
51769         * lib/javaversion.c: Include configmake.h after all other includes.
51770
51771 2008-10-26  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51774         HAVE_STRUCT_RANDOM_DATA to 1.
51775         (gl_STDLIB_H): Simplify.
51776
51777 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51778
51779         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51780         substitute HAVE_STRUCT_RANDOM_DATA.
51781         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51782         random_data.
51783         * modules/stdlib (Makefile.am): Substitute
51784         HAVE_STRUCT_RANDOM_DATA.
51785
51786 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51787
51788         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51789         * doc/gnulib-intro.texi (Copyright): Likewise.
51790
51791 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51792
51793         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51794         findings.
51795
51796 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51797             Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/unistd.in.h: Include <winsock2.h>.
51800         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51801         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51802         Provide dummy declarations.
51803         (gethostname): Override.
51804         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51805         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51806         gl_PREREQ_SYS_H_WINSOCK2.
51807         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51808         * doc/posix-functions/gethostname.texi: More details.
51809
51810 2008-10-25  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51813         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51814         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51815
51816         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51817         here ...
51818         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51819         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51820         gl_UNISTD_H_DEFAULTS.
51821
51822 2008-10-25  Eric Blake  <ebb9@byu.net>
51823
51824         signbit: avoid spurious compiler failure
51825         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51826         declarations inside function.
51827
51828 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51829             Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51832         * modules/random_r (Depends-on): Add stdint.
51833
51834 2008-10-24  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51837         Eggert.
51838         * modules/strerror (License): Likewise.
51839
51840 2008-10-24  Jim Meyering  <meyering@redhat.com>
51841
51842         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51843         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51844
51845 2008-10-24  Eric Blake  <ebb9@byu.net>
51846
51847         getgroups: fix compilation when getgroups is available
51848         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51849         but with <config.h> override of getgroups disabled.
51850
51851 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51852
51853         * doc/gnulib.texi (Header files): Add note about C++ problems.
51854         Explained by Bruno Haible <bruno@clisp.org>.
51855
51856 2008-10-23  Bruno Haible  <bruno@clisp.org>
51857
51858         Define a dummy SA_NODEFER macro on Interix.
51859         * lib/signal.in.h (SA_NODEFER): Define fallback.
51860         Reported by Aleksey Cheusov <cheusov@tut.by> via
51861         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51862
51863 2008-10-23  Bruno Haible  <bruno@clisp.org>
51864
51865         * modules/freadahead (License): Change to LGPLv2+.
51866         Suggested by Simon Josefsson.
51867
51868 2008-10-23  Jim Meyering  <meyering@redhat.com>
51869
51870         random_r: new module
51871         * modules/random_r: New file.
51872         * m4/random_r.m4: New file.
51873         * lib/random_r.c: New file, from glibc.
51874         * modules/random_r-tests: New file.
51875         * tests/test-random_r.c: New file.
51876         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51877          Declare.
51878         (RAND_MAX): Define.
51879         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51880         * modules/stdlib: Substitute them, too.
51881         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51882         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51883         * doc/glibc-functions/random_r.texi: Likewise.
51884         * doc/glibc-functions/setstate_r.texi: Likewise.
51885         * doc/glibc-functions/srandom_r.texi: Likewise.
51886         * config/srclist.txt: Mention it.
51887
51888 2008-10-23  David Lutterkort  <lutter@redhat.com>
51889
51890         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51891         link requirement
51892
51893 2008-10-23  Jim Meyering  <meyering@redhat.com>
51894
51895         selinux-h: mark parameters of stub functions as intentionally unused
51896         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51897         * lib/se-context.in.h: Likewise.
51898
51899 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51900
51901         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51902
51903 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51904
51905         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51906
51907 2008-10-22  Eric Blake  <ebb9@byu.net>
51908
51909         glthread/thread: avoid compiler warning
51910         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51911         Add unreachable abort to silence compiler.
51912
51913 2008-10-22  Eric Blake  <ebb9@byu.net>
51914
51915         netdb: also supply struct addrinfo for cygwin 1.5.x
51916         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51917         older cygwin.
51918         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51919         cygwin.
51920         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51921
51922 2008-10-22  Bruno Haible  <bruno@clisp.org>
51923
51924         * users.txt: Update entry about pspp.
51925
51926 2008-10-21  Bruno Haible  <bruno@clisp.org>
51927
51928         Simplification.
51929         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51930         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51931
51932         Simplification.
51933         * lib/ioctl.c (ioctl): Don't undefine.
51934         * lib/socket.c (socket): Don't undefine.
51935
51936         Remove unused module indicator macros.
51937         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51938         GNULIB_$1 as a C macro.
51939
51940         * doc/posix-functions/close.texi: Undo last change.
51941         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51942         Windows platforms.
51943
51944 2008-10-21  Bruno Haible  <bruno@clisp.org>
51945
51946         Add gethostname() declaration to <unistd.h>.
51947         * lib/unistd.in.h (gethostname): New declaration.
51948         * lib/gethostname.c: Include <unistd.h>.
51949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51950         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51952         and HAVE_GETHOSTNAME.
51953         * modules/gethostname (Depends-on): Add unistd.
51954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51955         (Include): Specify <unistd.h>.
51956         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51957         HAVE_GETHOSTNAME.
51958         * tests/test-gethostname.c: Include <unistd.h> first.
51959
51960 2008-10-21  Bruno Haible  <bruno@clisp.org>
51961
51962         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51963         * modules/select-tests (Depends-on): Likewise.
51964         Reported by Simon Josefsson.
51965
51966 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51967
51968         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51969         * lib/accept.c: New file, based on winsock.c.
51970         * lib/bind.c: New file, based on winsock.c.
51971         * lib/connect.c: New file, based on winsock.c.
51972         * lib/getpeername.c: New file, based on winsock.c.
51973         * lib/getsockname.c: New file, based on winsock.c.
51974         * lib/getsockopt.c: New file, based on winsock.c.
51975         * lib/ioctl.c: New file, based on winsock.c.
51976         * lib/listen.c: New file, based on winsock.c.
51977         * lib/recv.c: New file, based on winsock.c.
51978         * lib/recvfrom.c: New file, based on winsock.c.
51979         * lib/send.c: New file, based on winsock.c.
51980         * lib/sendto.c: New file, based on winsock.c.
51981         * lib/setsockopt.c: New file, based on winsock.c.
51982         * lib/shutdown.c: New file, based on winsock.c.
51983         * lib/socket.c: New file, based on winsock.c.
51984         * lib/w32sock.h: New file, based on winsock.c.
51985         * lib/winsock.c: Remove file.
51986         * modules/accept: Likewise.
51987         * modules/bind: Likewise.
51988         * modules/connect: Likewise.
51989         * modules/getpeername: Likewise.
51990         * modules/getsockname: Likewise.
51991         * modules/getsockopt: Likewise.
51992         * modules/ioctl: Likewise.
51993         * modules/listen: Likewise.
51994         * modules/recv: Likewise.
51995         * modules/recvfrom: Likewise.
51996         * modules/send: Likewise.
51997         * modules/sendto: Likewise.
51998         * modules/setsockopt: Likewise.
51999         * modules/shutdown: Likewise.
52000         * modules/socket: Use socket.c instead of winsock.c.
52001         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52002         * doc/posix-functions/accept.texi: Doc fix.
52003         * doc/posix-functions/bind.texi: Doc fix.
52004         * doc/posix-functions/close.texi: Doc fix.
52005         * doc/posix-functions/connect.texi: Doc fix.
52006         * doc/posix-functions/getpeername.texi: Doc fix.
52007         * doc/posix-functions/getsockname.texi: Doc fix.
52008         * doc/posix-functions/getsockopt.texi: Doc fix.
52009         * doc/posix-functions/ioctl.texi: Doc fix.
52010         * doc/posix-functions/listen.texi: Doc fix.
52011         * doc/posix-functions/recv.texi: Doc fix.
52012         * doc/posix-functions/recvfrom.texi: Doc fix.
52013         * doc/posix-functions/send.texi: Doc fix.
52014         * doc/posix-functions/sendto.texi: Doc fix.
52015         * doc/posix-functions/setsockopt.texi: Doc fix.
52016         * doc/posix-functions/shutdown.texi: Doc fix.
52017         * doc/posix-functions/socket.texi: Doc fix.
52018
52019 2008-10-20  Bruno Haible  <bruno@clisp.org>
52020
52021         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52022         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52023         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52024         as an alias for SIGABRT.
52025         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52026         (sigaction): Map it to SIGABRT.
52027         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52028
52029 2008-10-20  Bruno Haible  <bruno@clisp.org>
52030
52031         * lib/fts.c: Don't include lstat.h.
52032         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52033
52034         Move the lstat() declaration to <sys/stat.h>.
52035         * lib/lstat.h: Remove file.
52036         * lib/sys_stat.in.h: Add special invocation convention.
52037         (lstat): New declaration.
52038         * lib/lstat.c (orig_lstat): New function.
52039         (rpl_lstat): Use orig_lstat instead of lstat.
52040         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52041         AC_C_INLINE. Set REPLACE_LSTAT.
52042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52043         and REPLACE_LSTAT.
52044         * modules/lstat (Files): Remove lib/lstat.h.
52045         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52046         (Include): Specify <sys/stat.h> instead of lstat.h.
52047         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52048         REPLACE_LSTAT.
52049         * NEWS: Mention the change.
52050
52051 2008-10-20  Bruno Haible  <bruno@clisp.org>
52052
52053         * modules/posix_spawn-tests: New file.
52054         * tests/test-posix_spawn3.c: New file.
52055
52056 2008-10-20  Bruno Haible  <bruno@clisp.org>
52057
52058         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52059         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52060         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52061         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52062         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52063
52064 2008-10-20  Bruno Haible  <bruno@clisp.org>
52065
52066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52067         of posix_spawn on AIX 5.3.
52068
52069 2008-10-20  Bruno Haible  <bruno@clisp.org>
52070
52071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52072
52073 2008-10-20  Bruno Haible  <bruno@clisp.org>
52074
52075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52076         of AC_LANG_PROGRAM.
52077
52078 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52079
52080         * lib/netdb.in.h: Don't define GNU specific constants until they
52081         are supported or needed.  Reported by Bruno Haible
52082         <bruno@clisp.org>.
52083
52084 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52085
52086         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52087
52088 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52089
52090         * lib/getaddrinfo.h: Remove file.
52091         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52092         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52093         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52094         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52095         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52096         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52097         * tests/test-getaddrinfo.c: Likewise.
52098         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52099         * NEWS: Mention change.
52100
52101 2008-10-19  Bruno Haible  <bruno@clisp.org>
52102
52103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52104
52105 2008-10-19  Bruno Haible  <bruno@clisp.org>
52106
52107         * lib/wait-process.c: Include simply <sys/wait.h>.
52108         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52109         WIFSTOPPED): Remove fallback definitions.
52110         * modules/wait-process (Depends-on): Add sys_wait.
52111
52112         New module 'sys_wait'.
52113         * modules/sys_wait: New file.
52114         * lib/sys_wait.in.h: New file, partially copied from
52115         lib/wait-process.c.
52116         * m4/sys_wait_h.m4: New file.
52117         * doc/posix-headers/sys_wait.texi: Mention the new module.
52118
52119 2008-10-19  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52122
52123 2008-10-19  Bruno Haible  <bruno@clisp.org>
52124
52125         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52126         * lib/wait-process.c (WAIT_T): Remove type.
52127         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52128         (wait_subprocess): Update.
52129
52130 2008-10-19  Bruno Haible  <bruno@clisp.org>
52131
52132         New module 'atoll'.
52133         * modules/atoll: New file.
52134         * lib/stdlib.in.h (atoll): New declaration.
52135         * lib/atoll.c: New file, from glibc with modifications.
52136         * m4/atoll.m4: New file.
52137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52138         HAVE_ATOLL.
52139         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52140         * doc/posix-functions/atoll.texi: Mention the new module.
52141
52142 2008-10-19  Bruno Haible  <bruno@clisp.org>
52143
52144         Add strtoull() declaration to <stdlib.h>.
52145         * lib/stdlib.in.h (strtoull): New declaration.
52146         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52147         Set HAVE_STRTOULL.
52148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52149         HAVE_STRTOULL.
52150         * modules/strtoull (Depends-on): Add stdlib.
52151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52152         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52153         HAVE_STRTOULL.
52154
52155 2008-10-19  Bruno Haible  <bruno@clisp.org>
52156
52157         Add strtoll() declaration to <stdlib.h>.
52158         * lib/stdlib.in.h (strtoll): New declaration.
52159         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52160         Set HAVE_STRTOLL.
52161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52162         HAVE_STRTOLL.
52163         * modules/strtoll (Depends-on): Add stdlib.
52164         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52165         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52166
52167 2008-10-19  Bruno Haible  <bruno@clisp.org>
52168
52169         * modules/bcopy (Depends-on): Add strings.
52170         (Include): Specify <strings.h>.
52171
52172 2008-10-19  Bruno Haible  <bruno@clisp.org>
52173
52174         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52175
52176 2008-10-19  Bruno Haible  <bruno@clisp.org>
52177
52178         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52179         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52180         mingw.
52181
52182 2008-10-19  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/atanl.c: Don't include isnanl.h.
52185         * lib/cosl.c: Likewise.
52186         * lib/ldexpl.c: Likewise.
52187         * lib/logl.c: Likewise.
52188         * lib/sinl.c: Likewise.
52189         * lib/sqrtl.c: Likewise.
52190         * lib/tanl.c: Likewise.
52191
52192         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52193         * lib/isnanf.h: Remove file.
52194         * lib/isnand.h: Remove file.
52195         * lib/isnanl.h: Remove file.
52196         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52197         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52198         macros.
52199         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52200         HAVE_ISNANF, don't define it as a C macro.
52201         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52202         HAVE_ISNAND, don't define it as a C macro.
52203         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52204         HAVE_ISNANL, don't define it as a C macro.
52205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52206         HAVE_ISNAN[FDL].
52207         * modules/isnanf (Files): Remove lib/isnanf.h.
52208         (Depends-on): Add math.
52209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52210         (Include): Specify <math.h> instead of isnanf.h.
52211         * modules/isnand (Files): Remove lib/isnand.h.
52212         (Depends-on): Add math.
52213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52214         (Include): Specify <math.h> instead of isnand.h.
52215         * modules/isnanl (Files): Remove lib/isnanl.h.
52216         (Depends-on): Add math.
52217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52218         (Include): Specify <math.h> instead of isnanl.h.
52219         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52220         HAVE_ISNAN[FDL].
52221         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52222         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52223         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52224         * NEWS: Mention the change.
52225
52226 2008-10-18  Bruno Haible  <bruno@clisp.org>
52227
52228         Add getusershell(), setusershell(), endusershell() declarations to
52229         <unistd.h>.
52230         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52231         declarations.
52232         * lib/getusershell.c: Include unistd.h.
52233         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52234         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52235         HAVE_GETUSERSHELL.
52236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52237         and HAVE_GETUSERSHELL.
52238         * modules/getusershell (Depends-on): Add unistd, extensions.
52239         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52240         (Include): Specify <unistd.h>.
52241         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52242         HAVE_GETUSERSHELL.
52243
52244 2008-10-18  Bruno Haible  <bruno@clisp.org>
52245
52246         Add a getloadavg() declaration to <stdlib.h>.
52247         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52248         getloadavg declaration.
52249         (getloadavg): New declaration.
52250         * lib/getloadavg.c: Include <stdlib.h> first.
52251         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52252         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52253         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52255         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52256         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52258         (Include): Specify <stdlib.h>.
52259         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52260         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52261
52262 2008-10-18  Bruno Haible  <bruno@clisp.org>
52263
52264         * lib/dirchownmod.c: Don't include lchmod.h.
52265
52266         Move the lchmod() declaration to <sys/stat.h>.
52267         * lib/lchmod.h: Remove file.
52268         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52269         (lchmod): New declaration, moved here from lib/lchown.h.
52270         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52271         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52273         and HAVE_LCHMOD.
52274         * modules/lchmod (Files): Remove lib/lchmod.h.
52275         (Depends-on): Add sys_stat, extensions.
52276         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52277         (Include): Specify <sys/stat.h> instead of lchmod.h.
52278         * modules/sys_stat (Depends-on): Add link-warning.
52279         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52280         definition of GL_LINK_WARNING.
52281         * NEWS: Mention the change.
52282
52283 2008-10-18  Bruno Haible  <bruno@clisp.org>
52284
52285         * lib/fchdir.c: Don't include dirfd.h.
52286         * lib/fts.c: Likewise.
52287         * lib/getcwd.c: Likewise.
52288         * lib/glob.c: Likewise.
52289
52290         Move the dirfd() declaration to <dirent.h>.
52291         * lib/dirfd.h: Remove file.
52292         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52293         (dirfd): New declaration.
52294         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52295         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52296         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52297         HAVE_DECL_DIRFD.
52298         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52299         HAVE_DECL_DIRFD.
52300         * modules/dirfd (Files): Remove lib/dirfd.h.
52301         (Depends-on): Add dirent, extensions.
52302         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52303         (Include): Specify <dirent.h> instead of dirfd.h.
52304         * modules/dirent (Depends-on): Add link-warning.
52305         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52306         definition of GL_LINK_WARNING.
52307         * NEWS: Mention the change.
52308
52309 2008-10-18  Bruno Haible  <bruno@clisp.org>
52310
52311         Move the euidaccess() declaration to <unistd.h>.
52312         * lib/euidaccess.h: Remove file.
52313         * lib/unistd.in.h (euidaccess): New declaration.
52314         * lib/euidaccess.c: Don't include euidaccess.h.
52315         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52316         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52318         and HAVE_EUIDACCESS.
52319         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52320         (Depends-on): Add unistd.
52321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52322         (Include): Specify <unistd.h> instead of euidaccess.h.
52323         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52324         HAVE_EUIDACCESS.
52325         * NEWS: Mention the change.
52326
52327 2008-10-18  Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52330
52331         Move the getdomainname() declaration to <unistd.h>.
52332         * lib/getdomainname.h: Remove file.
52333         * lib/unistd.in.h (getdomainname): New declaration.
52334         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52335         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52336         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52337         HAVE_GETDOMAINNAME.
52338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52339         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52340         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52341         (Depends-on): Add unistd, extensions.
52342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52343         (Includes): Specify <unistd.h> instead of getdomainname.h.
52344         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52345         HAVE_GETDOMAINNAME.
52346         * NEWS: Mention the change.
52347
52348 2008-10-18  Bruno Haible  <bruno@clisp.org>
52349
52350         * modules/dirent: New file.
52351         * m4/dirent_h.m4: New file.
52352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52353         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52354         * modules/fchdir (Files): Remove lib/dirent.in.h.
52355         (Depends-on): Add dirent.
52356         (Makefile.am): Move rules to modules/dirent.
52357         * doc/posix-headers/dirent.texi: Mention the new module.
52358
52359 2008-10-18  Bruno Haible  <bruno@clisp.org>
52360
52361         Avoid -Wunused-parameter warnings in public gnulib header files.
52362         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52363         macro.
52364         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52365
52366 2008-10-18  Bruno Haible  <bruno@clisp.org>
52367
52368         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52369         * doc/glibc-functions/error.texi: Mention the module 'error'.
52370         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52371         * doc/glibc-functions/getdomainname.texi: Mention the module
52372         'getdomainname'.
52373         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52374         * doc/glibc-functions/getpagesize.texi: Mention the module
52375         'getpagesize'.
52376         * doc/glibc-functions/getusershell.texi: Mention the module
52377         'getusershell'.
52378         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52379         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52380         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52381         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52382         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52383         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52384         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52385         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52386         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52387         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52388         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52389         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52390         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52391         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52392
52393 2008-10-17  Bruno Haible  <bruno@clisp.org>
52394
52395         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52396         HP-UX and IRIX, use -0.0L.
52397         * tests/test-ceill.c (minus_zero): Likewise.
52398         * tests/test-floorl.c (minus_zero): Likewise.
52399         * tests/test-frexpl.c (minus_zero): Likewise.
52400         * tests/test-isnan.c (minus_zerol): Likewise.
52401         * tests/test-isnanl.h (minus_zero): Likewise.
52402         * tests/test-ldexpl.c (minus_zero): Likewise.
52403         * tests/test-roundl.c (minus_zero): Likewise.
52404         * tests/test-signbit.c (minus_zerol): Likewise.
52405         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52406         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52407         * tests/test-truncl.c (minus_zero): Likewise.
52408         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52409         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52410         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52411         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52412
52413 2008-10-17  Bruno Haible  <bruno@clisp.org>
52414
52415         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52416         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52417         that it gets activated only for gcc >= 3.0.
52418         * lib/dirent.in.h: Likewise.
52419         * lib/errno.in.h: Likewise.
52420         * lib/fcntl.in.h: Likewise.
52421         * lib/float.in.h: Likewise.
52422         * lib/iconv.in.h: Likewise.
52423         * lib/inttypes.in.h: Likewise.
52424         * lib/locale.in.h: Likewise.
52425         * lib/math.in.h: Likewise.
52426         * lib/netdb.in.h: Likewise.
52427         * lib/netinet_in.in.h: Likewise.
52428         * lib/search.in.h: Likewise.
52429         * lib/signal.in.h: Likewise.
52430         * lib/spawn.in.h: Likewise.
52431         * lib/stdarg.in.h: Likewise.
52432         * lib/stdint.in.h: Likewise.
52433         * lib/stdio.in.h: Likewise.
52434         * lib/stdlib.in.h: Likewise.
52435         * lib/string.in.h: Likewise.
52436         * lib/strings.in.h: Likewise.
52437         * lib/sys_file.in.h: Likewise.
52438         * lib/sys_ioctl.in.h: Likewise.
52439         * lib/sys_select.in.h: Likewise.
52440         * lib/sys_socket.in.h: Likewise.
52441         * lib/sys_stat.in.h: Likewise.
52442         * lib/sys_time.in.h: Likewise.
52443         * lib/sysexits.in.h: Likewise.
52444         * lib/time.in.h: Likewise.
52445         * lib/unistd.in.h: Likewise.
52446         * lib/wchar.in.h: Likewise.
52447         * lib/wctype.in.h: Likewise.
52448         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52449
52450 2008-10-17  Jim Meyering  <meyering@redhat.com>
52451
52452         ignore-value: don't depend on inline module
52453         * modules/ignore-value (Depends-on): Remove 'inline'.
52454         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52455         Suggestion from Bruno Haible.
52456
52457 2008-10-17  Bruno Haible  <bruno@clisp.org>
52458
52459         New implementation of condition variables for Win32.
52460         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52461         (gl_linked_waitqueue_t): New type.
52462         (gl_cond_t): Use it.
52463         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52464         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52465         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52466         (glthread_cond_init_func, glthread_cond_wait_func,
52467         glthread_cond_timedwait_func, glthread_cond_signal_func,
52468         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52469         Reimplemented on the basis of gl_linked_waitqueue_t.
52470         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52471         gl_waitqueue_t.
52472         (gl_rwlock_t): Update.
52473         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52474
52475 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52476
52477         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52478         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52479
52480 2008-10-17  Jim Meyering  <meyering@redhat.com>
52481
52482         ignore-value: new module
52483         * modules/ignore-value: New file.
52484         * lib/ignore-value.h: New file.
52485         * MODULES.html.sh (Compiler warning management): New section,
52486         just for this module.  More to come.
52487
52488 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52491         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52492         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52493
52494 2008-10-16  Jim Meyering  <meyering@redhat.com>
52495
52496         openat-die.c: avoid 'no previous prototype' warning
52497         * lib/openat-die.c: Include "openat.h".
52498         Reported by Reuben Thomas <rrt@sc3d.org>.
52499
52500 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52501
52502         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52503         * lib/netdb.in.h: Fix typo.
52504         Reported by Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/netdb.in.h: Include sys/socket.h for platforms without
52507         netdb.h, to get structures like hostent on MinGW.
52508         * modules/netdb (Depends-on): Add sys_socket.
52509
52510 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52511
52512         * modules/netdb, modules/netdb-tests: New file.
52513         * m4/netdb_h.m4: New file.
52514         * lib/netdb.in.h: Add, currently just an empty file pending
52515         definitions.
52516         * tests/test-netdb.c: New file.
52517         * doc/posix-headers/netdb.texi: Mention that we replace it if
52518         needed.
52519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52520         netdb.
52521
52522 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52523
52524         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52525         with code.
52526
52527 2008-10-13  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/glthread/cond.c (glthread_cond_wait_func,
52530         glthread_cond_timedwait_func): Add a comment.
52531
52532 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52533
52534         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52535         * tests/test-select.c: Likewise,
52536
52537 2008-10-13  Bruno Haible  <bruno@clisp.org>
52538
52539         * lib/glthread/cond.c (glthread_cond_wait_func,
52540         glthread_cond_timedwait_func): Fix variable name.
52541         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52542
52543 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52544
52545         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52547         struct sockaddr.sa_len.
52548         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52549
52550 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52551
52552         * build-aux/pmccabe2html: Add css and css_url parameters.
52553
52554 2008-10-12  Bruno Haible  <bruno@clisp.org>
52555
52556         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52557         calling aclx_get.
52558         Reported by Rainer Tammer <tammer@tammer.net>.
52559
52560 2008-10-12  Bruno Haible  <bruno@clisp.org>
52561
52562         Use msvcrt aware primitives for creation/termination of Win32 threads.
52563         * lib/glthread/thread.c: Include <process.h>.
52564         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52565         (wrapper_func): Update signature.
52566         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52567
52568 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52569             Bruno Haible  <bruno@clisp.org>
52570
52571         Provide a Win32 implementation of the 'cond' module.
52572         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52573         * lib/glthread/cond.c (glthread_cond_init_func,
52574         glthread_cond_wait_func, glthread_cond_timedwait_func,
52575         glthread_cond_signal_func, glthread_cond_broadcast_func,
52576         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52577         * modules/cond (Dependencies): Add gettimeofday.
52578
52579 2008-10-11  Bruno Haible  <bruno@clisp.org>
52580
52581         Make sleep work on older versions of mingw.
52582         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52583         only whether it exists.
52584         * doc/posix-functions/sleep.texi: Mention the problem with older
52585         versions of mingw.
52586
52587 2008-10-11  Bruno Haible  <bruno@clisp.org>
52588
52589         New module 'shutdown'.
52590         * modules/shutdown: New file.
52591         * lib/sys_socket.in.h (shutdown): New declaration.
52592         * lib/winsock.c (shutdown): New function.
52593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52594         GNULIB_SHUTDOWN.
52595         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52596         * doc/posix-functions/shutdown.texi: Document the new module.
52597
52598 2008-10-11  Jim Meyering  <meyering@redhat.com>
52599
52600         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52601
52602 2008-10-11  Bruno Haible  <bruno@clisp.org>
52603
52604         New module 'fclose'.
52605         * modules/fclose: New file.
52606         * lib/stdio.in.h (fclose): New declaration.
52607         * lib/fclose.c: New file.
52608         * m4/fclose.m4: New file.
52609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52610         REPLACE_FCLOSE.
52611         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52612         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52613         REPLACE_FCLOSE.
52614         * modules/close (Depends-on): fclose.
52615         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52616
52617 2008-10-11  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52620         set errno and don't call _close.
52621
52622 2008-10-10  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52625         ACL, not afterwards. Fixes test failure on Cygwin.
52626
52627 2008-10-09  Ben Pfaff  <blp@gnu.org>
52628
52629         * build-aux/announce-gen: Fix gnulib version related part of usage
52630         message.  Die with a useful error message if no tarballs are
52631         found.
52632
52633 2008-10-10  Jim Meyering  <meyering@redhat.com>
52634
52635         bootstrap: use git's --depth=N option only if it's supported
52636         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52637         recognize the --depth option.  Reported by Pádraig Brady.
52638
52639 2008-10-09  Bruno Haible  <bruno@clisp.org>
52640
52641         New module 'ioctl'.
52642         * modules/ioctl: New file.
52643         * lib/sys_socket.in.h (ioctl): Remove declaration.
52644         * lib/winsock.c: Include <sys/ioctl.h>.
52645         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52646         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52647         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52648         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52649         * doc/posix-functions/ioctl.texi: Mention the new module.
52650
52651 2008-10-09  Bruno Haible  <bruno@clisp.org>
52652
52653         New module 'sys_ioctl'.
52654         * lib/sys_ioctl.in.h: New file.
52655         * m4/sys_ioctl_h.m4: New file.
52656         * modules/sys_ioctl: New file.
52657         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52658
52659 2008-10-09  Bruno Haible  <bruno@clisp.org>
52660
52661         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52662         * lib/winsock.c: Include <stdarg.h>.
52663         (rpl_ioctl): Change to second argument 'int' and then varargs.
52664
52665 2008-10-09  Bruno Haible  <bruno@clisp.org>
52666
52667         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52668         when the sys_socket module is present and the system has <winsock2.h>.
52669
52670 2008-10-09  Bruno Haible  <bruno@clisp.org>
52671
52672         * doc/posix-functions/close.texi: Mention module 'close' instead of
52673         module 'sys_socket'.
52674
52675 2008-10-09  Bruno Haible  <bruno@clisp.org>
52676
52677         * doc/glibc-headers/sys_ioctl.texi: New file.
52678         * doc/gnulib.texi: Include it.
52679
52680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52681             Bruno Haible  <bruno@clisp.org>
52682
52683         Combine the two replacements of 'close'.
52684         * lib/sys_socket.in.h (close): Define to a reminder to include
52685         <unistd.h>.
52686         (_gl_close_fd_maybe_socket): New declaration.
52687         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52688         * lib/winsock.c (close): Remove undefinition.
52689         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52690         needed for the gnulib module 'close'.
52691         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52692         define to an error symbol or to a warning, if suitable.
52693         * lib/close.c: Include <sys/socket.h>.
52694         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52695         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52696         UNISTD_H_HAVE_WINSOCK2_H.
52697         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52699         UNISTD_H_HAVE_WINSOCK2_H.
52700         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52701         (configure.ac): Set a module indicator.
52702         (Makefile.am): Substitute GNULIB_CLOSE.
52703         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52704         * modules/poll-tests (Depends-on): Add close.
52705         * modules/select-tests (Depends-on): Likewise.
52706
52707 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52708             Bruno Haible  <bruno@clisp.org>
52709
52710         New module 'close'.
52711         * modules/close: New file.
52712         * lib/unistd.in.h (close): Move declaration out of the
52713         FCHDIR_REPLACEMENT scope.
52714         (_gl_unregister_fd): New declaration.
52715         * lib/close.c: New file.
52716         * lib/fchdir.c (rpl_close): Remove function.
52717         * m4/close.m4: New file.
52718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52719         close.
52720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52721         REPLACE_CLOSE.
52722         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52723         REPLACE_CLOSE.
52724         * modules/fchdir (Depends-on): Add close.
52725
52726 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52727             Bruno Haible  <bruno@clisp.org>
52728
52729         * lib/fcntl.in.h (open): Simplify conditionals.
52730         (_gl_register_fd): New declaration.
52731         * lib/fchdir.c (rpl_open): Remove function.
52732         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52733         also.
52734         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52736         open.
52737
52738 2008-10-09  Jim Meyering  <meyering@redhat.com>
52739
52740         GNUmakefile: use the more name-space-friendly "_version"
52741         * top/GNUmakefile (_dummy): Update.
52742         (_version): Rename from "version".
52743
52744 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52745             Bruno Haible  <bruno@clisp.org>
52746
52747         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52748         rpl_close.
52749         (_gl_register_fd): New function, extracted from rpl_open.
52750         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52751         (rpl_open, rpl_opendir): Use _gl_register_fd.
52752
52753 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52754
52755         Fix organization of 'open' replacement.
52756         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52757         (gl_FUNC_OPEN): Use it.
52758         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52759
52760 2008-10-08  Bruno Haible  <bruno@clisp.org>
52761
52762         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52763
52764 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52765
52766         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52767         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52768         listen).
52769
52770 2008-10-08  Eric Blake  <ebb9@byu.net>
52771
52772         GNUmakefile: add 'make version' target
52773         * top/GNUmakefile (_curr-ver): Split version update rules...
52774         (version): ...into a target.
52775
52776 2008-10-07  Bruno Haible  <bruno@clisp.org>
52777
52778         Use a more portable replacement expression for -0.0L.
52779         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52780         instead of -0.0L. Fix m4 quotation.
52781
52782         * tests/test-signbit.c: Include <float.h>.
52783         (minus_zero): New variable.
52784         (test_signbitl): Use minus_zero instead of -zero.
52785         * modules/signbit-tests (Depends-on): Add float.
52786
52787         * tests/test-ceill.c: Include <float.h>.
52788         (zero): Remove variable.
52789         (minus_zero): New variable.
52790         (main): Use minus_zero instead of -zero.
52791         * modules/ceill-tests (Depends-on): Add float.
52792
52793         * tests/test-floorl.c: Include <float.h>.
52794         (zero): Remove variable.
52795         (minus_zero): New variable.
52796         (main): Use minus_zero instead of -zero.
52797         * modules/floorl-tests (Depends-on): Add float.
52798
52799         * tests/test-roundl.c: Include <float.h>.
52800         (zero): Remove variable.
52801         (minus_zero): New variable.
52802         (main): Use minus_zero instead of -zero.
52803         * modules/roundl-tests (Depends-on): Add float.
52804
52805         * tests/test-truncl.c: Include <float.h>.
52806         (zero): Remove variable.
52807         (minus_zero): New variable.
52808         (main): Use minus_zero instead of -zero.
52809         * modules/truncl-tests (Depends-on): Add float.
52810
52811         * tests/test-frexpl.c (zero): Remove variable.
52812         (minus_zero): New variable.
52813         (main): Use minus_zero instead of -zero.
52814         * modules/frexpl-tests (Depends-on): Add float.
52815
52816         * tests/test-isnan.c (zerol): Remove variable.
52817         (minus_zerol): New variable.
52818         (test_long_double): Use minus_zerol instead of -zerol.
52819         * modules/isnan-tests (Depends-on): Add float.
52820
52821         * tests/test-isnanl.h (zero): Remove variable.
52822         (minus_zero): New variable.
52823         (main): Use minus_zero instead of -zero.
52824         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52825         * modules/isnanl-tests (Depends-on): Add float.
52826
52827         * tests/test-ldexpl.c (zero): Remove variable.
52828         (minus_zero): New variable.
52829         (main): Use minus_zero instead of -zero.
52830         * modules/ldexpl-tests (Depends-on): Add float.
52831
52832         * tests/test-snprintf-posix.h (zerol): Remove variable.
52833         (minus_zerol): New variable.
52834         (test_function): Use minus_zerol instead of -zerol.
52835         * modules/snprintf-posix-tests (Depends-on): Add float.
52836         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52837
52838         * tests/test-sprintf-posix.h (zerol): Remove variable.
52839         (minus_zerol): New variable.
52840         (test_function): Use minus_zerol instead of -zerol.
52841         * modules/sprintf-posix-tests (Depends-on): Add float.
52842         * modules/vsprintf-posix-tests (Depends-on): Add float.
52843
52844         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52845         (minus_zerol): New variable.
52846         (test_function): Use minus_zerol instead of -zerol.
52847         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52848
52849         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52850         (minus_zerol): New variable.
52851         (test_function): Use minus_zerol instead of -zerol.
52852         * modules/vasprintf-posix-tests (Depends-on): Add float.
52853
52854 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52855
52856         * MODULES.html.sh (Support for building documentation): Mention
52857         pmccabe2html.  Sort entries.
52858
52859         Add pmccabe2html module, from gnupdf.
52860         * build-aux/pmccabe.css: New file.
52861         * build-aux/pmccabe2html: New file.
52862         * m4/pmccabe2html.m4: New file.
52863         * modules/pmccabe2html: New file.
52864
52865 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52866
52867         flock: new module
52868         * MODULES.html.sh: Add to list of modules.
52869         * lib/flock.c: flock implementation for Windows and Unix systems
52870         which have fcntl.
52871         * doc/glibc-functions/flock.texi: Update documentation.
52872         * lib/sys_file.in.h: <sys/file.h> header file.
52873         * m4/flock.m4: M4 macros.
52874         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52875         * modules/flock: flock module.
52876         * modules/flock-tests: flock tests module.
52877         * modules/sys_file: sys/file.h module.
52878         * tests/test-flock.c: test suite for flock.
52879
52880 2008-10-06  Jim Meyering  <meyering@redhat.com>
52881
52882         bootstrap: check for LT_INIT more portably still ;-)
52883         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52884         Spotted by Bruno Haible.
52885
52886 2008-10-06  Eric Blake  <ebb9@byu.net>
52887
52888         test-signbit: avoid tripping Irix cc bug on -0.0L
52889         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52890         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52891         entire testsuite consistent and avoids an Irix 6.2 bug.
52892
52893 2008-10-05  Bruno Haible  <bruno@clisp.org>
52894             Jim Meyering  <jim@meyering.net>
52895
52896         Add an option for ignoring EPIPE during close_stdout.
52897         * lib/closeout.h: Include <stdbool.h>.
52898         (close_stdout_set_ignore_EPIPE): New declaration.
52899         * lib/closeout.c: Include <stdbool.h>.
52900         (ignore_EPIPE): New variable.
52901         (close_stdout_set_ignore_EPIPE): New function.
52902         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52903         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52904         failure.
52905         * modules/closeout (Depends-on): Add stdbool.
52906
52907 2008-10-05  Bruno Haible  <bruno@clisp.org>
52908
52909         * modules/accept: New file.
52910         * modules/bind: New file.
52911         * modules/connect: New file.
52912         * modules/getpeername: New file.
52913         * modules/getsockname: New file.
52914         * modules/getsockopt: New file.
52915         * modules/listen: New file.
52916         * modules/recv: New file.
52917         * modules/recvfrom: New file.
52918         * modules/send: New file.
52919         * modules/sendto: New file.
52920         * modules/setsockopt: New file.
52921         * modules/socket: New file.
52922         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52923         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52924         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52925         the particular module is requested. Add a link warning when the
52926         particular module is not requested.
52927         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52928         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52929         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52930         the particular module is requested.
52931         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52932         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52933         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52934         * modules/sys_socket (Depends-on): Add link-warning.
52935         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52936         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52937         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52938         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52939         GL_LINK_WARNING.
52940         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52941         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52942         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52943         * doc/posix-functions/getpeername.texi: Mention the new module
52944         'getpeername'.
52945         * doc/posix-functions/getsockname.texi: Mention the new module
52946         'getsockname'.
52947         * doc/posix-functions/getsockopt.texi: Mention the new module
52948         'getsockopt'.
52949         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52950         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52951         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52952         * doc/posix-functions/send.texi: Mention the new module 'send'.
52953         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52954         * doc/posix-functions/setsockopt.texi: Mention the new module
52955         'setsockopt'.
52956         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52957         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52958         listen, connect, accept.
52959         * modules/select-tests (Depends-on): Likewise.
52960
52961 2008-10-05  Bruno Haible  <bruno@clisp.org>
52962
52963         * lib/winsock.c (strerror): Remove unused #undef.
52964         (rpl_close): Remove unused local variable.
52965
52966         * modules/sys_socket (Depends-on); Add errno.
52967
52968 2008-10-05  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52971         (select): Add a link warning when the 'select' module is not used.
52972         * modules/sys_select (Depends-on): Add link-warning.
52973         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52974         Suggested by Paolo Bonzini.
52975
52976 2008-10-05  Jim Meyering  <meyering@redhat.com>
52977
52978         bootstrap: check for LT_INIT more portably
52979         * build-aux/bootstrap: Avoid using grep -E, since it's not
52980         portable enough.  Suggestion from Bruno Haible.
52981
52982 2008-10-05  Bruno Haible  <bruno@clisp.org>
52983
52984         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52985         as being fixed by gnulib.
52986
52987 2008-10-05  Bruno Haible  <bruno@clisp.org>
52988
52989         * modules/select-tests: New file, mostly copied from
52990         modules/sys_select-tests.
52991         * tests/test-select.c: New file, mostly copied from
52992         tests/test-sys_select.c.
52993         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52994         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52995         (Makefile.am): Remove test_sys_select_LDADD.
52996
52997         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52998         to an undefined symbol, for an error message.
52999         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53000         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53001         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53002         winsock-select.c here.
53003         * modules/sys_select (Files): Remove lib/winsock-select.c.
53004         (Depends-on): Remove alloca.
53005         (Makefile.am): Substitute GNULIB_SELECT.
53006         * modules/select: New file.
53007         * doc/posix-functions/select.texi: Update.
53008
53009 2008-10-05  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53012         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53013         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53014         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53015         getdtablesize.
53016         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53017         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53018
53019 2008-10-05  Bruno Haible  <bruno@clisp.org>
53020
53021         * modules/getdtablesize-tests: New file.
53022         * tests/test-getdtablesize.c: New file.
53023
53024         New module 'getdtablesize'.
53025         * lib/unistd.in.h (getdtablesize): New declaration.
53026         * lib/getdtablesize.c: New file.
53027         * m4/getdtablesize.m4: New file.
53028         * modules/getdtablesize: New file.
53029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53030         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53031         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53032         HAVE_GETDTABLESIZE.
53033         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53034
53035 2008-10-05  Bruno Haible  <bruno@clisp.org>
53036
53037         * modules/sched (Makefile.am): Fix typo.
53038         Reported by Simon Josefsson.
53039
53040 2008-10-05  Jim Meyering  <meyering@redhat.com>
53041
53042         bootstrap: check for LT_INIT, too
53043         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53044         are deprecated.  Suggestion from Ralf Wildenhues.
53045
53046 2008-10-05  Bruno Haible  <bruno@clisp.org>
53047
53048         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53049         overriding them by ours.
53050         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53051
53052 2008-10-05  Jim Meyering  <meyering@redhat.com>
53053
53054         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53055         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53056         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53057
53058 2008-10-04  Bruno Haible  <bruno@clisp.org>
53059
53060         * modules/dup2 (License): Change to LGPLv2+.
53061         * modules/sleep (License): Likewise.
53062         * modules/perror (License): Likewise.
53063         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53064         Blake.
53065         * modules/signal (License): Likewise.
53066         * modules/sigprocmask (License): Likewise.
53067         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53068         Meyering.
53069
53070 2008-10-04  Bruno Haible  <bruno@clisp.org>
53071
53072         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53073         Reported by Rainer Tammer <tammer@tammer.net>.
53074
53075 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53076             Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53079         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53080         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53081
53082 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53083
53084         filevercmp: new module
53085         * lib/filevercmp.h: New function filevercmp comparing version strings.
53086         * lib/filevercmp.c: Implementation of filevercmp function.
53087         * modules/filevercmp: Module metadata.
53088         * tests/test-filevercmp.c: Unit test for new module.
53089         * modules/filevercmp-tests: Unit test metadata.
53090         * MODULES.html.sh: Add filevercmp module.
53091
53092 2008-10-03  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/c-ctype.h: Add comment.
53095         Reported by Jim Meyering.
53096
53097 2008-10-02  Bruno Haible  <bruno@clisp.org>
53098
53099         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53100
53101 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53102
53103         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53104         name of bootstrap.conf accordingly.
53105
53106 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53107
53108         * build-aux/bootstrap: Install git-merge-changelog configuration
53109         items into .gitconfig if needed.
53110
53111 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53112
53113         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53114         git repository, and initialize/update it accordingly.
53115
53116 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53117
53118         * modules/fsync-tests: New file.
53119         * tests/test-fsync.c: New file.
53120
53121         New module 'fsync'.
53122         * lib/fsync.c: New file.
53123         * m4/fsync.m4: New file.
53124         * modules/fsync: New file.
53125         * lib/unistd.in.h (fsync): New declaration.
53126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53127         GNULIB_FSYNC and HAVE_FSYNC.
53128         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53129         * MODULES.html.sh (posix_functions): Add fsync.
53130         * doc/posix-functions/fsync.texi: Mention the new module.
53131
53132 2008-10-02  Jim Meyering  <meyering@redhat.com>
53133
53134         fts.c: sync with similar code from coreutils' remove.c
53135         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53136         Guard also with "#if defined __linux__", since for now at least,
53137         this code is Linux-kernel-specific.
53138
53139 2008-10-02  Jim Meyering  <meyering@redhat.com>
53140
53141         fts: bug fixes
53142         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53143         Include <sys/vfs.h>, not <sys/statfs.h>.
53144
53145         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53146         Include <sys/vfs.h>, not <sys/statfs.h>.
53147
53148 2008-10-01  Bruno Haible  <bruno@clisp.org>
53149
53150         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53152         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53153         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53154         * doc/posix-functions/posix_spawnp.texi: Likewise.
53155         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53156         whether posix_spawn actually works.
53157         * m4/pipe.m4 (gl_PIPE): Likewise.
53158         * modules/execute (Files): Add m4/posix_spawn.m4.
53159         * modules/pipe (Files): Add m4/posix_spawn.m4.
53160         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53161
53162 2008-10-01  Jim Meyering  <meyering@redhat.com>
53163
53164         remove trailing spaces
53165         * NEWS: Likewise.
53166         * lib/poll.c (poll): Likewise.
53167         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53168         * lib/winsock.c (rpl_close): Likewise.
53169         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53170         * modules/yield: Likewise.
53171         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53172         * tests/test-sys_select.c (connect_to_socket): Likewise.
53173
53174         fts.c: adjust a new interface to be more generally useful
53175         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53176         (fts_build): Adjust caller.
53177
53178 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53179
53180         * modules/cond-tests: New file.
53181         * tests/test-cond.c: New file.
53182
53183 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53184             Bruno Haible  <bruno@clisp.org>
53185
53186         * modules/cond (Dependencies): Add errno, time.
53187         * lib/glthread/cond.h: Include <time.h>.
53188         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53189         across platforms.
53190
53191 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53192             Bruno Haible  <bruno@clisp.org>
53193
53194         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53195
53196 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53197             Bruno Haible  <bruno@clisp.org>
53198
53199         * modules/tls-tests (Depends-on): Add thread, yield.
53200         (configure.ac): Remove all checks.
53201         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53202         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53203         gl_thread_self): Remove definitions. Include glthread/thread.h and
53204         glthread/yield.h instead.
53205         (test_tls): Pass an additional NULL argument to gl_thread_join.
53206
53207 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53208             Bruno Haible  <bruno@clisp.org>
53209
53210         * modules/lock-tests (Depends-on): Add thread, yield.
53211         (configure.ac): Remove all checks.
53212         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53213         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53214         gl_thread_self): Remove definitions. Include glthread/thread.h and
53215         glthread/yield.h instead.
53216         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53217         additional NULL argument to gl_thread_join.
53218
53219 2008-09-30  Bruno Haible  <bruno@clisp.org>
53220
53221         Fix the Win32 implementation of the 'thread' module.
53222         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53223         pointer type.
53224         (gl_thread_self): Invoke gl_thread_self_func.
53225         (gl_thread_self_func): New declaration.
53226         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53227         (do_init_self_key, init_self_key): New functions.
53228         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53229         Remove some fields.
53230         (running_threads, running_lock): Remove variables.
53231         (get_current_thread_handle): New function.
53232         (gl_thread_self_func, wrapper_func, glthread_create_func,
53233         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53234         simplified.
53235
53236 2008-09-30  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53239         files.
53240
53241 2008-09-30  Jim Meyering  <meyering@redhat.com>
53242
53243         fts.m4: correct the test for statfs.f_type
53244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53245         when checking for statfs.f_type.
53246
53247 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53248
53249         tests: avoid some compiler warnings
53250         * tests/test-memchr.c (main): Pass NULL indirectly.
53251         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53252
53253 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53254
53255         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53256         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53257         exactly specified dayshifts.
53258         (dayshift): New rule.
53259         (rel): Add dayshift.
53260         (relative_time_table) [tomorrow, yesterday, today, now]:
53261         Use tDAY_SHIFT in place of tDAY_UNIT.
53262         * tests/test-getdate.c: Add tests for now-disallowed countable
53263         dayshifts, e.g., "4 yesterday ago".
53264
53265 2008-09-29  Bruno Haible  <bruno@clisp.org>
53266
53267         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53268         * tests/test-posix_spawn1.in.sh: Renamed from
53269         tests/test-posix_spawn.in.sh.
53270         * tests/test-posix_spawn2.c: New file.
53271         * tests/test-posix_spawn2.in.sh: New file.
53272         * modules/posix_spawnp-tests (Files): Update.
53273         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53274
53275 2008-09-29  Bruno Haible  <bruno@clisp.org>
53276
53277         Propagate effects of putenv/setenv/unsetenv to child processes.
53278         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53279         * lib/pipe.c (create_pipe): Likewise.
53280
53281 2008-09-29  Bruno Haible  <bruno@clisp.org>
53282
53283         Enable use of shell scripts as executables in mingw.
53284         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53285         run the program as a shell script.
53286         * lib/pipe.c (create_pipe): Likewise.
53287         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53288         resulting array.
53289
53290 2008-09-29  Eric Blake  <ebb9@byu.net>
53291
53292         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53293
53294 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53295
53296         * doc/posix-functions/accept.texi: Update mingw problems.
53297         * doc/posix-functions/bind.texi: Update mingw problems.
53298         * doc/posix-functions/close.texi: Update mingw problems.
53299         * doc/posix-functions/connect.texi: Update mingw problems.
53300         * doc/posix-functions/getpeername.texi: Update mingw problems.
53301         * doc/posix-functions/getsockname.texi: Update mingw problems.
53302         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53303         * doc/posix-functions/ioctl.texi: Update mingw problems.
53304         * doc/posix-functions/listen.texi: Update mingw problems.
53305         * doc/posix-functions/recv.texi: Update mingw problems.
53306         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53307         * doc/posix-functions/select.texi: Update mingw problems.
53308         * doc/posix-functions/send.texi: Update mingw problems.
53309         * doc/posix-functions/sendto.texi: Update mingw problems.
53310         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53311         * doc/posix-functions/socket.texi: Update mingw problems.
53312
53313 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53314             Bruno Haible  <bruno@clisp.org>
53315
53316         * lib/sys_select.in.h: Include sys/time.h.
53317         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53318         * modules/sys_select: Depend on sys_time.
53319         * tests/test-sys_select.c: Test that sys/select.h defines struct
53320         timeval fully.
53321
53322 2008-09-29  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53325         * lib/sys_select.in.h: Likewise.
53326
53327 2008-09-29  Bruno Haible  <bruno@clisp.org>
53328
53329         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53330
53331 2008-09-29  Bruno Haible  <bruno@clisp.org>
53332
53333         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53334         Set LIBSOCKET instead of augmenting LIBS.
53335         * modules/sockets (Link): New section.
53336         * modules/sockets-tests (test_sockets_LDADD): New variable.
53337         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53338         * modules/poll-tests (test_poll_LDADD): New variable.
53339         * NEWS: Document the change.
53340
53341 2008-09-29  Bruno Haible  <bruno@clisp.org>
53342
53343         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53344         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53345         ARPA_INET_H directly.
53346         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53347
53348 2008-09-28  Bruno Haible  <bruno@clisp.org>
53349
53350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53351         from gl_HEADER_SYS_SOCKET.
53352         (gl_HEADER_SYS_SOCKET): Invoke it.
53353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53354
53355 2008-09-28  Bruno Haible  <bruno@clisp.org>
53356
53357         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53358         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53359         Needed on OSF/1 4.0.
53360
53361 2008-09-28  Bruno Haible  <bruno@clisp.org>
53362
53363         Override open more carefully.
53364         * lib/open.c (orig_open): New function.
53365         (rpl_open): Use orig_open instead of open.
53366         * lib/fcntl.in.h: Add special invocation convention.
53367         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53368         (gl_FUNC_OPEN): Invoke it.
53369
53370         Override freopen more carefully.
53371         * lib/freopen.c (orig_freopen): New function.
53372         (rpl_freopen): Use orig_freopen instead of freopen.
53373         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53374         (gl_FUNC_FREOPEN): Invoke it.
53375
53376         Override fopen more carefully.
53377         * lib/fopen.c (orig_fopen): New function.
53378         (rpl_fopen): Use orig_fopen instead of fopen.
53379         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53380         (gl_FUNC_FOPEN): Invoke it.
53381         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53382
53383 2008-09-28  Bruno Haible  <bruno@clisp.org>
53384
53385         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53386         SIGPIPE.
53387
53388 2008-09-28  Bruno Haible  <bruno@clisp.org>
53389
53390         * tests/test-sigaction.c (handler, main): Disable the check whether
53391         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53392         glibc systems with LinuxThreads.
53393
53394 2008-09-28  Bruno Haible  <bruno@clisp.org>
53395
53396         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53397
53398         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53399         with AIX xlc.
53400         * lib/fcntl.in.h (open): Likewise.
53401         Reported by Rainer Tammer <tammer@tammer.net>.
53402
53403 2008-09-28  Bruno Haible  <bruno@clisp.org>
53404
53405         * modules/posix_spawnp-tests: New file.
53406         * tests/test-posix_spawn.c: New file.
53407         * tests/test-posix_spawn.in.sh: New file.
53408
53409         New module 'posix_spawnp'.
53410         * modules/posix_spawnp: New file.
53411         * lib/spawnp.c: New file, from GNU libc with modifications.
53412         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53413
53414         New module 'posix_spawn'.
53415         * modules/posix_spawn: New file.
53416         * lib/spawn.c: New file, from GNU libc with modifications.
53417         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53418
53419         New module 'posix_spawnattr_destroy'.
53420         * modules/posix_spawnattr_destroy: New file.
53421         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53422         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53423         module.
53424
53425         New module 'posix_spawnattr_setsigmask'.
53426         * modules/posix_spawnattr_setsigmask: New file.
53427         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53428         modifications.
53429         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53430         new module.
53431
53432         New module 'posix_spawnattr_getsigmask'.
53433         * modules/posix_spawnattr_getsigmask: New file.
53434         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53435         modifications.
53436         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53437         new module.
53438
53439         New module 'posix_spawnattr_setsigdefault'.
53440         * modules/posix_spawnattr_setsigdefault: New file.
53441         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53442         modifications.
53443         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53444         new module.
53445
53446         New module 'posix_spawnattr_getsigdefault'.
53447         * modules/posix_spawnattr_getsigdefault: New file.
53448         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53449         modifications.
53450         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53451         new module.
53452
53453         New module 'posix_spawnattr_setschedpolicy'.
53454         * modules/posix_spawnattr_setschedpolicy: New file.
53455         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53456         modifications.
53457         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53458         new module.
53459
53460         New module 'posix_spawnattr_getschedpolicy'.
53461         * modules/posix_spawnattr_getschedpolicy: New file.
53462         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53463         modifications.
53464         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53465         new module.
53466
53467         New module 'posix_spawnattr_setschedparam'.
53468         * modules/posix_spawnattr_setschedparam: New file.
53469         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53470         modifications.
53471         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53472         new module.
53473
53474         New module 'posix_spawnattr_getschedparam'.
53475         * modules/posix_spawnattr_getschedparam: New file.
53476         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53477         modifications.
53478         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53479         new module.
53480
53481         New module 'posix_spawnattr_setpgroup'.
53482         * modules/posix_spawnattr_setpgroup: New file.
53483         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53484         modifications.
53485         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53486         module.
53487
53488         New module 'posix_spawnattr_getpgroup'.
53489         * modules/posix_spawnattr_getpgroup: New file.
53490         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53491         modifications.
53492         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53493         module.
53494
53495         New module 'posix_spawnattr_setflags'.
53496         * modules/posix_spawnattr_setflags: New file.
53497         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53498         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53499         module.
53500
53501         New module 'posix_spawnattr_getflags'.
53502         * modules/posix_spawnattr_getflags: New file.
53503         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53504         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53505         module.
53506
53507         New module 'posix_spawnattr_init'.
53508         * modules/posix_spawnattr_init: New file.
53509         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53510         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53511         module.
53512
53513         New module 'posix_spawn_file_actions_destroy'.
53514         * modules/posix_spawn_file_actions_destroy: New file.
53515         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53516         modifications.
53517         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53518         the new module.
53519
53520         New module 'posix_spawn_file_actions_addopen'.
53521         * modules/posix_spawn_file_actions_addopen: New file.
53522         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53523         modifications.
53524         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53525         the new module.
53526
53527         New module 'posix_spawn_file_actions_adddup2'.
53528         * modules/posix_spawn_file_actions_adddup2: New file.
53529         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53530         modifications.
53531         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53532         the new module.
53533
53534         New module 'posix_spawn_file_actions_addclose'.
53535         * modules/posix_spawn_file_actions_addclose: New file.
53536         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53537         modifications.
53538         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53539         the new module.
53540
53541         New module 'posix_spawn_file_actions_init'.
53542         * modules/posix_spawn_file_actions_init: New file.
53543         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53544         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53545         new module.
53546
53547         New module 'posix_spawn-internal'.
53548         * modules/posix_spawn-internal: New file.
53549         * lib/spawn_int.h: New file, from GNU libc with modifications.
53550         * lib/spawni.c: New file, from GNU libc with modifications.
53551         * m4/posix_spawn.m4: New file.
53552
53553         New module 'spawn'.
53554         * modules/spawn: New file.
53555         * lib/spawn.in.h: New file, from GNU libc with modifications.
53556         * m4/spawn_h.m4: New file.
53557         * doc/posix-headers/spawn.texi: Mention the new module.
53558
53559 2008-09-28  Bruno Haible  <bruno@clisp.org>
53560
53561         * modules/sched-tests: New file.
53562         * tests/test-sched.c: New file.
53563
53564         New module 'sched'.
53565         * modules/sched: New file.
53566         * lib/sched.in.h: New file.
53567         * m4/sched_h.m4: New file.
53568         * doc/posix-headers/sched.texi: Mention the new module.
53569
53570 2008-09-27  Eric Blake  <ebb9@byu.net>
53571
53572         Fix previous patch, and tweak references to $0.
53573         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53574         (func_version, func_gnulib_dir): Don't call this program
53575         gnulib-tool.
53576         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53577         with using $0 in function.
53578         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53579         (func_fatal_error): Reuse the name the user invoked us with.
53580
53581 2008-09-27  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53584         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53585         (gl_ICONV_H): Not here.
53586         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53587         instead of assigning ICONV_H directly.
53588
53589         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53591         WCHAR_H directly.
53592
53593 2008-09-27  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53596         * modules/arpa_inet (Depends-on): Add link-warning.
53597         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53598         * modules/unistd (Makefile.am): Likewise.
53599
53600 2008-09-26  Bruno Haible  <bruno@clisp.org>
53601
53602         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53603         variables.
53604         (func_version): Essentially copied from gnulib-tool.
53605         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53606         func_readlink): Copied from gnulib-tool.
53607
53608 2008-09-26  Bruno Haible  <bruno@clisp.org>
53609
53610         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53611         invoking git-version-gen.
53612
53613 2008-09-26  Bruno Haible  <bruno@clisp.org>
53614
53615         * posix-modules: Update to directory names changed on 2008-01-19.
53616         Remove commas in output before splitting into words. No more need to
53617         avoid 'ftruncate' since 2007-02-19.
53618
53619 2008-09-26  Bruno Haible  <bruno@clisp.org>
53620
53621         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53622
53623 2008-09-26  Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53626         * modules/fwriteerror (Depends-on): Add errno.
53627
53628 2008-09-26  Bruno Haible  <bruno@clisp.org>
53629
53630         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53631         * tests/test-vc-list-files-cvs.sh: Likewise.
53632
53633 2008-09-26  Bruno Haible  <bruno@clisp.org>
53634
53635         * doc/posix-headers/sys_resource.texi: Reorder items.
53636
53637 2008-09-26  Jim Meyering  <meyering@redhat.com>
53638
53639         fts: tweak inode comparison function
53640         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53641         inode numbers, as documented.
53642
53643         fts: sort dirent entries on inode number before traversing
53644         This avoids a quadratic, seek-related performance penalty when
53645         operating on a directory containing many entries (measurable at 10k;
53646         3.5 hours at 2 million entries with a cold cache) on certain types
53647         of file systems, including ext3 and ext4, but not tmpfs.
53648         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53649         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53650         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53651         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53652         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53653         (fts_build): Set the stat.st_ino member from D_INO.
53654         If it is likely to be useful, sort dirent entries on inode number.
53655
53656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53657         and the struct statfs.f_type member.
53658         * modules/fts (Depends-on): Add d-ino.
53659
53660 2008-09-26  Bruno Haible  <bruno@clisp.org>
53661
53662         * modules/sigpipe-die (Depends-on): Add sigpipe.
53663
53664         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53665         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53666         and GNULIB_STDIO_H_SIGPIPE are set.
53667         * lib/stdio-write.c: New file.
53668         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53669         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53670         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53671         REPLACE_STDIO_WRITE_FUNCS.
53672         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53673         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53674         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53675         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53676         * modules/stdio (Files): Add lib/stdio-write.c.
53677         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53678         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53679         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53680         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53681         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53682         REPLACE_FPRINTF_POSIX.
53683         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53684         REPLACE_PRINTF_POSIX.
53685         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53686         REPLACE_VFPRINTF_POSIX.
53687         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53688         REPLACE_VPRINTF_POSIX.
53689         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53690         SIGPIPE issue.
53691         * doc/posix-functions/fputc.texi: Likewise.
53692         * doc/posix-functions/fputs.texi: Likewise.
53693         * doc/posix-functions/fwrite.texi: Likewise.
53694         * doc/posix-functions/printf.texi: Likewise.
53695         * doc/posix-functions/putc.texi: Likewise.
53696         * doc/posix-functions/putchar.texi: Likewise.
53697         * doc/posix-functions/puts.texi: Likewise.
53698         * doc/posix-functions/vfprintf.texi: Likewise.
53699         * doc/posix-functions/vprintf.texi: Likewise.
53700
53701         * modules/safe-write (Depends-on): Add write.
53702
53703         * modules/sigpipe-tests: New file.
53704         * tests/test-sigpipe.c: New file.
53705         * tests/test-sigpipe.sh: New file.
53706
53707         * modules/write: New file.
53708         * lib/unistd.in.h: Include <sys/types.h>.
53709         (write): New declaration.
53710         * lib/write.c: New file.
53711         * m4/write.m4: New file.
53712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53713         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53714         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53715         GNULIB_WRITE, REPLACE_WRITE.
53716         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53717         and the SIGPIPE issue.
53718
53719         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53720         (raise): New declaration.
53721         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53722         (ext_signal): New function.
53723         (rpl_raise): New function.
53724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53725         GNULIB_SIGNAL_H_SIGPIPE.
53726         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53727         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53728
53729         * modules/sigpipe: New file.
53730         * m4/sigpipe.m4: New file.
53731
53732 2008-09-25  Derek Price  <derek@ximbiot.com>
53733             Bruno Haible  <bruno@clisp.org>
53734
53735         * gnulib-tool (func_import): Report all license incompatibilities, not
53736         just the first one.
53737
53738 2008-09-25  Bruno Haible  <bruno@clisp.org>
53739
53740         * gnulib-tool (func_import): When computing the edits, consider not
53741         only the Makefile.ams that exist but also those that will be generated.
53742
53743 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53744
53745         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53746         fixes gnulib-tool --test warning about duplicate dependency.
53747
53748 2008-09-25  Bruno Haible  <bruno@clisp.org>
53749
53750         * gnulib-tool: Don't ask the user to perform edits in the generated
53751         Makefile.ams.
53752         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53753         apply to the Makefile.am being generated.
53754         (func_emit_tests_Makefile_am): Execute edits that apply to the
53755         Makefile.am being generated.
53756         (func_import): Setup list of Makefile.am edits before emitting the
53757         Makefile.ams, not at the end.
53758         (func_create_testdir): Update.
53759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53760
53761 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53762
53763         * gnulib-tool (func_import): Store the --tests-base option in the
53764         comment in gnulib-cache.m4.
53765
53766 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53767
53768         * NEWS: Document increased portability that sys_select now provides.
53769
53770         * lib/sys_select.in.h: Install select wrapper.
53771         * lib/sys_socket.in.h: Use more descriptive name when there is no
53772         select wrapper.
53773         * lib/winsock-select.c: New.
53774         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53775         Require gl_HEADER_SYS_SOCKET.
53776         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53777         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53778         * tests/test-sys_select.c: Add functional tests.
53779
53780 2008-09-24  Eric Blake  <ebb9@byu.net>
53781
53782         open, fopen: close fd leak in last patch
53783         * lib/open.c (rpl_open): Close fd before returning error.
53784         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53785         * doc/posix-functions/open.texi (open): Document that Irix also
53786         has the bug.
53787         * doc/posix-functions/fopen.texi (fopen): Likewise.
53788         Reported by Paolo Bonzini.
53789
53790 2008-09-24  Bruno Haible  <bruno@clisp.org>
53791
53792         Ensure that a filename ending in a slash cannot be used to access a
53793         non-directory.
53794         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53795         to check whether it's really a directory.
53796         * lib/fopen.c: Include fcntl.h, unistd.h.
53797         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53798         and fdopen().
53799         * modules/fopen (Depends-on): Add unistd.
53800         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53801         * tests/test-fopen.c (main): Likewise.
53802         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53803         * doc/posix-functions/fopen.texi: Likewise.
53804         Reported by Eric Blake.
53805
53806 2008-09-23  Eric Blake  <ebb9@byu.net>
53807
53808         c-stack: avoid compiler optimizations when provoking overflow
53809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53810         recursion harder to optimize, to ensure a stack overflow occurs.
53811         * tests/test-c-stack.c (recurse): Likewise.
53812         Borrowed from libsigsegv.
53813
53814         c-stack: work around Irix sigaltstack bug
53815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53816         whether sigaltstack uses wrong end of stack_t (copied in part from
53817         libsigsegv).
53818         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53819         Irix bug, without requiring an over-allocation.
53820         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53821         bug.
53822
53823         fopen: document mingw bug on directories
53824         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53825         not allowing a stream visiting a directory, even though reading
53826         from such a stream is not portable.
53827
53828 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53829
53830         * lib/poll.c: Rewrite.
53831         * modules/poll: Depend on alloca.
53832
53833 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53834
53835         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53836         instead define prototypes for a full set of wrappers.  Ensure
53837         that Cygwin does not use the compatibility code, which is only
53838         for MinGW.
53839         * lib/winsock.c: New.
53840         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53841         * modules/sys_socket: Add lib/winsock.c.
53842
53843         * modules/poll-tests: Add errno and perror.
53844         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53845
53846 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53847
53848         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53849
53850 2008-09-23  Bruno Haible  <bruno@clisp.org>
53851
53852         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53853         * doc/glibc-functions/*: Likewise.
53854
53855 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53856
53857         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53858         success.
53859
53860 2008-09-22  Eric Blake  <ebb9@byu.net>
53861             Bruno Haible  <bruno@clisp.org>
53862
53863         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53864         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53865         supply %A but mishandle pseudo-NaN.
53866         Reported by Simon Josefsson.
53867
53868 2008-09-21  Bruno Haible  <bruno@clisp.org>
53869
53870         * tests/test-lock.c (main): Tweak skip message.
53871         * tests/test-tls.c (main): Likewise.
53872
53873 2008-09-21  Bruno Haible  <bruno@clisp.org>
53874
53875         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53876         whether 'struct sigaction' has sa_sigaction here...
53877         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53878         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53879
53880 2008-09-21  Bruno Haible  <bruno@clisp.org>
53881
53882         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53883         section.
53884         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53885         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53886         the new section.
53887         (Support for obsolete systems lacking POSIX:2001): New section.
53888         (String handling <string.h>): Move strdup to the new section.
53889         Suggested by Simon Josefsson and Paolo Bonzini.
53890
53891 2008-09-21  Bruno Haible  <bruno@clisp.org>
53892
53893         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53894         exponents in %e and %g results on 'long double'. Needed for mingw's
53895         improved *printf functions.
53896         * tests/test-vasprintf-posix.c (test_function): Likewise.
53897         * tests/test-snprintf-posix.h (test_function): Likewise.
53898         * tests/test-sprintf-posix.h (test_function): Likewise.
53899         Reported by Eric Blake.
53900
53901 2008-09-21  Bruno Haible  <bruno@clisp.org>
53902
53903         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53904         * tests/test-sprintf-posix.h (test_function): Likewise.
53905
53906 2008-09-21  Bruno Haible  <bruno@clisp.org>
53907
53908         * modules/getpass (Depends-on): Add strdup-posix.
53909
53910         New module 'strdup-posix'.
53911         * modules/strdup-posix: New file.
53912         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53913         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53915         REPLACE_STRDUP.
53916         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53917         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53919         strdup-posix.
53920
53921         * modules/strdup (Depends-on): Remove malloc-posix.
53922
53923 2008-09-20  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53926         Wildenhues.
53927
53928 2008-09-20  Bruno Haible  <bruno@clisp.org>
53929
53930         Ensure that wint_t gets defined on IRIX 5.3.
53931         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53932         * lib/wctype.in.h (wint_t): Likewise.
53933         (__wctype_wint_t): Remove type.
53934         (isw*): Use wint_t instead of __wctype_wint_t.
53935         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53936         * modules/wchar (Files): Add m4/wint_t.m4.
53937         (Makefile.am): Substitute HAVE_WINT_T.
53938         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53939         * tests/test-wctype.c: Check that wint_t is defined.
53940         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53941         * doc/posix-headers/wctype.texi: Likewise.
53942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53943
53944 2008-09-18  Bruno Haible  <bruno@clisp.org>
53945
53946         * gnulib-tool (func_exit): Update comment.
53947
53948 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53949
53950         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53951         assumes strdup exists and does not depend on strdup to return
53952         ENOMEM on out of memory conditions.
53953
53954 2008-09-18  Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53957         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53958         digits for the exponent.
53959
53960 2008-09-18  Jim Meyering  <meyering@redhat.com>
53961             Bruno Haible  <bruno@clisp.org>
53962
53963         * lib/vasnprintf.c (decimal_point_char): Define also if
53964         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53965
53966 2008-09-16  Bruno Haible  <bruno@clisp.org>
53967         and Eric Blake  <ebb9@byu.net>
53968
53969         vasnprintf: support Irix 5.3
53970         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53971         that mishandle long double infinity.
53972         Reported by Tom G. Christensen.
53973
53974 2008-09-16  Bruno Haible  <bruno@clisp.org>
53975
53976         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53977         Solaris 9.
53978         * doc/glibc-functions/alphasort.texi: Likewise.
53979         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53980
53981 2008-09-16  Jim Meyering  <meyering@redhat.com>
53982
53983         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53984         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53985         a umask modification leak out of a subshell.  Otherwise, the
53986         opensolaris /bin/sh would be accepted and thus cause unwarranted
53987         failures in the coreutils test suite.
53988
53989 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53990
53991         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53992         to succeed.
53993
53994 2008-09-16  Jim Meyering  <meyering@redhat.com>
53995
53996         avoid spurious test failure when library is built without ACL support
53997         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53998         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53999         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54000         * tests/test-copy-acl.sh: Likewise.
54001
54002 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54003
54004         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54005         based on character occurrence counts.
54006
54007 2008-09-15  Eric Blake  <ebb9@byu.net>
54008
54009         tests: avoid some compiler warnings
54010         * tests/test-memchr.c (main): Pass NULL indirectly.
54011         * tests/test-closein.c (main): Avoid unused variable.
54012
54013 2008-09-15  Bruno Haible  <bruno@clisp.org>
54014
54015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54016         are missing on OpenBSD 4.0 individually.
54017         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54018
54019 2008-09-15  Bruno Haible  <bruno@clisp.org>
54020
54021         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54022         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54023         * doc/posix-functions/perror.texi: Likewise.
54024         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54025         is missing.
54026         Reported by Eric Blake.
54027
54028         * lib/errno.in.h: Use replacement values >= 2000.
54029         Reported by Eric Blake.
54030
54031 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54032
54033         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54034         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54035         limit.
54036         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54037         compareseq was aborted.
54038
54039 2008-09-14  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54042         yvec_edit_count.
54043         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54044         (fstrcmp_bounded): Simplify result computation accordingly.
54045
54046 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54047
54048         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54049         (fstrcmp): Define in terms of fstrcmp_bounded.
54050         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54051         lower_bound argument.
54052         Return quickly if the result is certainly < lower_bound.
54053         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54054
54055 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54056
54057         * lib/diffseq.h (EARLY_ABORT): New macro.
54058         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54059         evaluates to true.
54060
54061 2008-09-14  Bruno Haible  <bruno@clisp.org>
54062
54063         * modules/perror-tests: New file.
54064         * tests/test-perror.sh: New file.
54065         * tests/test-perror.c: New file.
54066
54067         New module 'perror'.
54068         * lib/stdio.in.h (perror): New declaration.
54069         * lib/perror.c: New file.
54070         * m4/perror.m4: New file.
54071         * modules/perror: New file.
54072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54073         * doc/posix-functions/perror.texi: Mention the perror module.
54074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54075         REPLACE_PERROR.
54076         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54077         REPLACE_PERROR.
54078
54079 2008-09-14  Bruno Haible  <bruno@clisp.org>
54080
54081         * modules/stdio (Makefile.am): Reorder to match the order in
54082         lib/stdio.in.h.
54083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54084
54085 2008-09-13  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54088
54089 2008-09-13  Bruno Haible  <bruno@clisp.org>
54090
54091         Extend strerror to cover the added errno values.
54092         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54093         (rpl_strerror): Provide error messages for the added errno values and
54094         for the WSA* values.
54095         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54096         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54097         strerror.
54098         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54099         * modules/strerror (Depends-on): Add errno.
54100         * doc/posix-functions/strerror.texi: Document the change.
54101         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54102         and EOVERFLOW.
54103
54104 2008-09-13  Bruno Haible  <bruno@clisp.org>
54105
54106         * modules/EOVERFLOW: Remove file.
54107         * m4/eoverflow.m4: Remove file.
54108         * modules/EOVERFLOW-tests: Remove file.
54109         * tests/test-EOVERFLOW.c: Remove file.
54110         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54111         * modules/ftell (Depends-on): Likewise.
54112         * modules/getdelim (Depends-on): Likewise.
54113         * modules/getugroups (Depends-on): Likewise.
54114         * modules/poll (Depends-on): Likewise.
54115         * modules/snprintf (Depends-on): Likewise.
54116         * modules/sprintf-posix (Depends-on): Likewise.
54117         * modules/vasnprintf (Depends-on): Likewise.
54118         * modules/vasprintf (Depends-on): Likewise.
54119         * modules/vfprintf-posix (Depends-on): Likewise.
54120         * modules/vsnprintf (Depends-on): Likewise.
54121         * modules/vsprintf-posix (Depends-on): Likewise.
54122         * modules/xvasprintf (Depends-on): Likewise.
54123         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54124         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54125         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54126         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54127         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54128         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54129         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54130         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54131         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54132         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54133         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54134         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54135         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54136         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54137         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54138         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54139         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54140         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54141         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54142         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54143         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54144         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54145         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54146         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54147         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54149         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54150         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54151         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54152         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54153         * MODULES.html.sh: Remove EOVERFLOW.
54154         * NEWS: Mention the change.
54155
54156 2008-09-13  Bruno Haible  <bruno@clisp.org>
54157
54158         * modules/errno-tests: New file.
54159         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54160
54161         * lib/errno.in.h: New file.
54162         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54163         * modules/errno: New file.
54164         * doc/posix-headers/errno.texi: Update documentation.
54165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54166
54167 2008-09-13  Bruno Haible  <bruno@clisp.org>
54168
54169         * tests/test-poll.c: Use #if for native Windows, rather than testing
54170         __MSVCRT__.
54171
54172 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54173             Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/glob.c: Don't include <pwd.h> on native Windows.
54176         (WINDOWS32): New macro.
54177         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54178
54179 2008-09-13  Bruno Haible  <bruno@clisp.org>
54180
54181         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54182         (ETIMEDOUT): Remove macro.
54183         (glthread_cond_timedwait_multithreaded): New declaration.
54184         (glthread_cond_timedwait): Use it.
54185         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54186         (glthread_cond_timedwait_multithreaded): New function.
54187
54188 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54189
54190         * modules/poll-tests: Do not check for io.h.
54191         * tests/test-poll.c: Check for __MSVCRT__ instead.
54192
54193 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54194
54195         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54196         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54197         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54198
54199 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54200
54201         * modules/poll-tests: New.
54202         * tests/test-poll.c: New.
54203
54204 2008-09-12  Eric Blake  <ebb9@byu.net>
54205
54206         frexp: test for NetBSD failure on -0.0
54207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54208         not all, bugs from NetBSD 3.0 have been fixed.
54209         * doc/posix-functions/frexp.texi (frexp): Document bug.
54210         Reported by Thomas Klausner.
54211
54212         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54213         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54214         literal -0.0.
54215         Reported by Jonathan C. Patschke <jp@centtech.com>.
54216
54217 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54218
54219         * lib/glthread/cond.h: Use dummy implementation also if
54220         USE_WIN32_THREADS.
54221
54222 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54223
54224         * modules/fnmatch-posix (License): Change to LGPLv2+.
54225         * modules/fnmatch-gnu (License): Likewise.
54226
54227 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54228
54229         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54230
54231 2008-09-11  Jim Meyering  <meyering@redhat.com>
54232
54233         * users.txt: Add gtk-vnc.
54234
54235 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54236
54237         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54238         rotate amounts.
54239
54240         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54241         required for 16-bit and 8-bit rotates.
54242         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54243         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54244         UINT8_MAX instead of hard-coded constants.
54245         Suggested by Paul Eggert.
54246
54247 2008-09-07  Bruno Haible  <bruno@clisp.org>
54248
54249         * tests/test-striconveh.c (main): Check behaviour when converting from
54250         UTF-7.
54251
54252         Make striconveh work better with stateful encodings.
54253         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54254         that iconv does not increment the inptr when returning -1/EINVAL.
54255
54256 2008-09-07  Bruno Haible  <bruno@clisp.org>
54257
54258         * build-aux/config.rpath: Update according to libtool-2.2.6.
54259         * build-aux/config.libpath: Likewise.
54260
54261 2008-09-06  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54264         * lib/freadptr.c (freadptr): Likewise.
54265         * lib/freadseek.c (freadptrinc): Likewise.
54266         Reported by Simon Josefsson.
54267
54268 2008-09-06  Bruno Haible  <bruno@clisp.org>
54269
54270         * modules/freadptr (License): Change to LGPLv2+.
54271         * modules/freadseek (License): Likewise.
54272         Suggested by Eric Blake.
54273
54274         * modules/memchr2 (License): Change to LGPLv2+.
54275         Approved by Eric Blake.
54276
54277 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54278             Bruno Haible  <bruno@clisp.org>
54279
54280         Make gnulib-tool work with native 'sed' on AIX.
54281         * gnulib-tool (sed_noop): New variable.
54282         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54283         func_add_or_update, func_create_testdir): Use it to initialize sed
54284         script variables.
54285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54286
54287 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54288             Bruno Haible  <bruno@clisp.org>
54289
54290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54291         also works after #include directives.
54292
54293 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54294
54295         getdate.y: reject an out-of-range timezone value
54296         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54297         the range [-24...+24].  When specified with only one or two digits,
54298         * tests/test-getdate.c: Tests for the fix.
54299         * doc/getdate.texi: Document this change.
54300
54301 2008-09-03  Bruno Haible  <bruno@clisp.org>
54302
54303         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54304
54305 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54306
54307         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54308         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54309         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54310         Blake <ebb9@byu.net>.
54311
54312         * tests/test-bitrotate.c: Add more test vectors.
54313
54314 2008-09-02  Eric Blake  <ebb9@byu.net>
54315
54316         vasnprintf-posix: handle large precision via %.*d
54317         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54318         when handling it ourselves.
54319         * tests/test-vasnprintf-posix.c (test_function): Add test.
54320         * tests/test-snprintf-posix.h (test_function): Likewise.
54321         * tests/test-sprintf-posix.h (test_function): Likewise.
54322         * tests/test-vasprintf-posix.c (test_function): Likewise.
54323         Reported by Alain Guibert.
54324
54325 2008-09-01  Eric Blake  <ebb9@byu.net>
54326
54327         c-stack: make configure-time check more robust
54328         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54329         successful sigaction call.
54330         Reported by Tom G. Christensen.
54331
54332 2008-09-01  Bruno Haible  <bruno@clisp.org>
54333
54334         New module 'findprog-lgpl'.
54335         * modules/findprog-lgpl: New file.
54336         * lib/findprog-lgpl.c: New file.
54337         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54338         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54339         to decide whether to use strdup or xstrdup, concatenated_filename or
54340         xconcatenated_filename.
54341
54342 2008-09-01  Bruno Haible  <bruno@clisp.org>
54343
54344         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54345         'xconcat-filename' (GPL).
54346         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54347         (License): Change to LGPLv2+.
54348         * modules/xconcat-filename: New file.
54349         * lib/concat-filename.h (concatenated_filename): Change specification.
54350         (xconcatenated_filename): New declaration.
54351         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54352         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54353         memory situations.
54354         * lib/xconcat-filename.c: New file.
54355         * NEWS: Mention the change.
54356         * lib/findprog.c: Include concat-filename.h, not filename.h.
54357         (find_in_path): Use xconcatenated_filename instead of
54358         concatenated_filename.
54359         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54360         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54361         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54362         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54363         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54364         instead of concatenated_filename.
54365         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54366         (execute_java_class): Use xconcatenated_filename instead of
54367         concatenated_filename.
54368         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54369         * modules/javacomp (Depends-on): Likewise.
54370         * modules/javaexec (Depends-on): Likewise.
54371
54372 2008-09-01  Bruno Haible  <bruno@clisp.org>
54373
54374         Split module 'filename' into 'filename' and 'concat-filename'.
54375         * modules/filename: Keep only lib/filename.h.
54376         (License): Change to LGPLv2+.
54377         * modules/concat-filename: New file, extracted from modules/filename.
54378         * lib/filename.h (concatenated_filename): Remove declaration.
54379         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54380         * lib/concat-filename.c: Include concat-filename.h.
54381         * NEWS: Mention the change.
54382
54383 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54384
54385         * lib/bitrotate.h (rotl8, rotr8): Add.
54386
54387         * modules/bitrotate (configure.ac): Need
54388         AC_REQUIRE([AC_C_INLINE]).
54389         (Description): Mention stdint.h.  Reported by Bruno Haible
54390         <bruno@clisp.org>.
54391
54392         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54393         Paolo Bonzini <bonzini@gnu.org>.
54394
54395 2008-08-31  Bruno Haible  <bruno@clisp.org>
54396
54397         Assume Solaris specific bi-arch conventions on Solaris systems.
54398         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54399         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54401         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54402         like acl_libdirstem.
54403         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54404         acl_libdirstem.
54405         * NEWS: Mention the change.
54406         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54407
54408 2008-08-31  Jim Meyering  <meyering@redhat.com>
54409
54410         * lib/strftime.h: Add comments describing the two added arguments.
54411
54412         remove duplicate #include directives
54413         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54414         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54415
54416 2008-08-31  Bruno Haible  <bruno@clisp.org>
54417
54418         New module 'sigpipe-die'.
54419         * modules/sigpipe-die: New file.
54420         * lib/sigpipe-die.h: New file.
54421         * lib/sigpipe-die.c: New file.
54422         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54423
54424 2008-08-31  Bruno Haible  <bruno@clisp.org>
54425
54426         Don't override previously installed signal handlers.
54427         * lib/fatal-signal.c (saved_sigactions): New variable.
54428         (uninstall_handlers): Reset the signal to the saved handler, not
54429         to SIG_DFL (except when ignored).
54430         (install_handlers): Save the previous handlers.
54431
54432 2008-08-30  Bruno Haible  <bruno@clisp.org>
54433
54434         * gnulib-tool (func_reset_sigpipe): New function.
54435         (func_get_automake_snippet, func_modules_transitive_closure,
54436         func_import): Invoke it before a join command that reads from stdin,
54437         to avoid "echo: write error: Broken pipe" error messages on stderr.
54438         Reported by Sam Steingold <sds@gnu.org>.
54439
54440 2008-08-30  Bruno Haible  <bruno@clisp.org>
54441
54442         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54443         Code copied from m4/open.m4.
54444         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54445         access and the filename ends in a slash. Code copied from lib/open.c.
54446         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54447         * tests/test-fopen.c (main): Check against bug with trailing slash.
54448
54449 2008-08-29  Bruno Haible  <bruno@clisp.org>
54450
54451         Avoid some "gcc -pedantic" warnings.
54452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54453         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54454         * lib/dirent.in.h: Likewise.
54455         * lib/fcntl.in.h: Likewise.
54456         * lib/float.in.h: Likewise.
54457         * lib/iconv.in.h: Likewise.
54458         * lib/inttypes.in.h: Likewise.
54459         * lib/locale.in.h: Likewise.
54460         * lib/math.in.h: Likewise.
54461         * lib/netinet_in.in.h: Likewise.
54462         * lib/search.in.h: Likewise.
54463         * lib/signal.in.h: Likewise.
54464         * lib/stdarg.in.h: Likewise.
54465         * lib/stdint.in.h: Likewise.
54466         * lib/stdio.in.h: Likewise.
54467         * lib/stdlib.in.h: Likewise.
54468         * lib/string.in.h: Likewise.
54469         * lib/strings.in.h: Likewise.
54470         * lib/sys_select.in.h: Likewise.
54471         * lib/sys_socket.in.h: Likewise.
54472         * lib/sys_stat.in.h: Likewise.
54473         * lib/sys_time.in.h: Likewise.
54474         * lib/sysexits.in.h: Likewise.
54475         * lib/time.in.h: Likewise.
54476         * lib/unistd.in.h: Likewise.
54477         * lib/wchar.in.h: Likewise.
54478         * lib/wctype.in.h: Likewise.
54479         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54480         * modules/fchdir (Makefile.am): Likewise.
54481         * modules/fcntl (Makefile.am): Likewise.
54482         * modules/float (Makefile.am): Likewise.
54483         * modules/iconv_open (Makefile.am): Likewise.
54484         * modules/inttypes (Makefile.am): Likewise.
54485         * modules/locale (Makefile.am): Likewise.
54486         * modules/math (Makefile.am): Likewise.
54487         * modules/netinet_in (Makefile.am): Likewise.
54488         * modules/search (Makefile.am): Likewise.
54489         * modules/signal (Makefile.am): Likewise.
54490         * modules/stdarg (Makefile.am): Likewise.
54491         * modules/stdint (Makefile.am): Likewise.
54492         * modules/stdio (Makefile.am): Likewise.
54493         * modules/stdlib (Makefile.am): Likewise.
54494         * modules/string (Makefile.am): Likewise.
54495         * modules/strings (Makefile.am): Likewise.
54496         * modules/sys_select (Makefile.am): Likewise.
54497         * modules/sys_socket (Makefile.am): Likewise.
54498         * modules/sys_stat (Makefile.am): Likewise.
54499         * modules/sys_time (Makefile.am): Likewise.
54500         * modules/sysexits (Makefile.am): Likewise.
54501         * modules/time (Makefile.am): Likewise.
54502         * modules/unistd (Makefile.am): Likewise.
54503         * modules/wchar (Makefile.am): Likewise.
54504         * modules/wctype (Makefile.am): Likewise.
54505         Reported by Reuben Thomas <rrt@sc3d.org>.
54506
54507 2008-08-29  Bruno Haible  <bruno@clisp.org>
54508
54509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54510         any more.
54511
54512 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54513
54514         * MODULES.html.sh (Misc): Add bitrotate.
54515
54516         * modules/bitrotate: New file.
54517
54518         * lib/bitrotate.h: New file.
54519
54520         * modules/bitrotate-tests: New file.
54521
54522         * tests/test-bitrotate.c: New file.
54523
54524         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54525         on the bitrotate module.
54526
54527         * lib/arctwo.c: Use new bitrotate module.
54528
54529 2008-08-29  Jim Meyering  <meyering@redhat.com>
54530
54531         bootstrap: merge changes from coreutils
54532         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54533         of copied files.  Remove a kludge, now that this is fixed.
54534         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54535         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54536         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54537
54538 2008-08-29  Bruno Haible  <bruno@clisp.org>
54539
54540         * MODULES.html.sh: Remove --cvs-urls option.
54541
54542 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54543
54544         maint.mk: adjust to file name change
54545         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54546
54547 2008-08-28  Jim Meyering  <meyering@redhat.com>
54548
54549         * modules/getndelim2 (License): Relicense to LGPLv2+.
54550         Approved by Richard Stallman for the version of 1995, and by
54551         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54552
54553 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54554
54555         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54556         dummy if one is not available.  Do not touch them if
54557         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54558         (getc_maybe_unlocked): New.
54559         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54560
54561 2008-08-26  Eric Blake  <ebb9@byu.net>
54562
54563         doc/INSTALL: resync from autoconf
54564         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54565         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54566         moving...
54567         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54568         * INSTALL: Regenerate.
54569         * INSTALL.ISO: New file.
54570         * INSTALL.UTF-8: Likewise.
54571
54572 2008-08-26  Jim Meyering  <meyering@redhat.com>
54573
54574         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54575         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54576         these definitions conditional, so that they may be overridden, too.
54577
54578 2008-08-26  Bruno Haible  <bruno@clisp.org>
54579
54580         Generate INSTALL file variants with prettier quotes.
54581         * doc/Makefile (INSTALL_PRELUDE): New macro.
54582         (INSTALL): Use it.
54583         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54584
54585 2008-08-26  Bruno Haible  <bruno@clisp.org>
54586
54587         Run makeinfo in an English locale.
54588         * doc/Makefile (MAKEINFO): New variable.
54589
54590 2008-08-26  Bruno Haible  <bruno@clisp.org>
54591
54592         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54593         Suggested by Eric Blake.
54594
54595 2008-08-25  Bruno Haible  <bruno@clisp.org>
54596
54597         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54598
54599 2008-08-25  Eric Blake  <ebb9@byu.net>
54600
54601         c-stack: test that stack overflow can be caught
54602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54603         that platform allows handling stack overflow; at least OS/2 EMX
54604         has sigaltstack, but crashes before transferring control to
54605         handler on stack overflow.
54606         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54607         check for HAVE_STACK_OVERFLOW_HANDLING.
54608         Reported by Elbert Pol.
54609
54610 2008-08-25  Bruno Haible  <bruno@clisp.org>
54611
54612         * doc/posix-functions/strftime.texi: Fix description of strftime
54613         module.
54614
54615 2008-08-24  Bruno Haible  <bruno@clisp.org>
54616
54617         * tests/uniwidth/test-uc_width2.c: New file.
54618         * tests/uniwidth/test-uc_width2.sh: New file.
54619         * modules/uniwidth/width-tests (Files): Add the new files.
54620         (TESTS): Add uniwidth/test-uc_width2.sh.
54621         (TESTS_ENVIRONMENT): New variable.
54622         (check_PROGRAMS): Add test-uc_width2.
54623         (test_uc_width2_SOURCES): New variable.
54624
54625         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54626         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54627         not 0x00AB.
54628         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54629
54630 2008-08-22  Eric Blake  <ebb9@byu.net>
54631
54632         test-lock, test-tls: mention why a test is skipped
54633         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54634         skipped.
54635         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54636
54637         count-one-bits: relax license
54638         * modules/count-one-bits (License): Relicense to LGPLv2+.
54639         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54640
54641 2008-08-22  Andreas Schwab  <schwab@suse.de>
54642
54643         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54644         Remove spurious space in assignment.
54645
54646 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54647
54648         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54649         Paul Eggert <eggert@CS.UCLA.EDU>.
54650
54651 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54652
54653         * modules/gettext: Add m4/threadlib.m4.
54654
54655 2008-08-19  Eric Blake  <ebb9@byu.net>
54656
54657         test-c-stack: fix compilation failure on FreeBSD 5.0
54658         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54659         headers before <sys/resource.h>.
54660         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54661         the bug.
54662         Reported by Nelson H. F. Beebe.
54663
54664         strverscmp: migrate from "strverscmp.h" to <string.h>
54665         * modules/string (Makefile.am): Add new hooks.
54666         * modules/strverscmp (Files): Remove strverscmp.h.
54667         (Depends-on): Add string.
54668         (configure.ac): Add indicator.
54669         (Include): Mention new header.
54670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54671         defaults.
54672         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54673         results.
54674         * lib/strverscmp.h: Delete.
54675         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54676         * tests/test-strverscmp.c (includes): Adjust client.
54677         * lib/check-version.c (includes): Likewise.
54678         * NEWS: Document the change.
54679
54680         strverscmp: add unit test
54681         * modules/strverscmp-tests: New file.
54682         * tests/test-strverscmp.c: Likewise.
54683
54684 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54685
54686         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54687         regarding Windows crypto stuff, from Mono.
54688
54689 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54690
54691         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54692         if present, for intel RND.  Return error on failures.
54693
54694 2008-08-18  Ben Pfaff  <blp@gnu.org>
54695
54696         gitlog-to-changelog: give better diagnostic for failed pipe-open
54697         * build-aux/gitlog-to-changelog: Improve error message: suggest
54698         that the version of Git may be too old.
54699
54700 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54701
54702         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54703         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54704
54705 2008-08-18  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54708         pthread_in_use().
54709
54710 2008-08-18  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/glthread/threadlib.c: Include <pthread.h>.
54713
54714 2008-08-18  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54717         glthread_recursive_lock_* macros.
54718         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54719         Fix syntax error.
54720
54721 2008-08-18  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/glthread/thread.c: Avoid forcing a context switch right after
54724         thread creation.
54725
54726 2008-08-17  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54729         * lib/glthread/thread.h: Provide Win32 specific implementation.
54730         * modules/thread (Files): Add lib/glthread/thread.c.
54731         (Depends-on): Add lock.
54732         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54733
54734 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54735
54736         New module 'yield'.
54737         * modules/yield: New file.
54738         * lib/glthread/yield.h: New file.
54739         * m4/yield.m4: New file.
54740         * MODULES.html.sh (Multithreading): Add yield.
54741
54742 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54743
54744         New module 'thread'.
54745         * modules/thread: New file.
54746         * lib/glthread/thread.h: New file.
54747         * m4/thread.m4: New file.
54748         * MODULES.html.sh (Multithreading): Add thread.
54749
54750 2008-08-17  Bruno Haible  <bruno@clisp.org>
54751
54752         * lib/glthread/lock.h: Include <stdlib.h> always.
54753         * lib/glthread/tls.h: Likewise.
54754         * lib/glthread/cond.h: Likewise.
54755
54756 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54757
54758         New module 'cond'.
54759         * modules/cond: New file.
54760         * lib/glthread/cond.h: New file.
54761         * lib/glthread/cond.c: New file.
54762         * m4/cond.m4: New file.
54763         * MODULES.html.sh (Multithreading): Add cond.
54764
54765 2008-08-16  Eric Blake  <ebb9@byu.net>
54766
54767         c-stack: fix regression on Irix 5.3 from 2008-06-21
54768         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54769         sa_sigaction...
54770         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54771         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54772         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54773         * modules/signal (Makefile.am): Use the value.
54774         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54775         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54776         * doc/posix-headers/signal.texi (signal.h): Document this
54777         portability issue.
54778         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54779         Reported by Tom G. Christensen.
54780
54781 2008-08-17  Bruno Haible  <bruno@clisp.org>
54782
54783         New module 'threadlib'.
54784         * modules/threadlib: New file.
54785         * lib/glthread/threadlib.c: New file, extracted from
54786         lib/glthread/lock.c.
54787         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54788         functions.
54789         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54790         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54791         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54792         macros.
54793         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54794         (gl_DISABLE_THREADS): Remove macro.
54795         * modules/lock (Files): Remove build-aux/config.rpath.
54796         (Depends-on): Remove havelib. Add threadlib.
54797         (configure.ac-early): Remove section.
54798         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54799         * modules/tls (Depends-on): Remove lock. Add threadlib.
54800         (Link): New section, copied from threadlib.
54801         * MODULES.html.sh (Multithreading): Add threadlib.
54802
54803 2008-08-14  Bruno Haible  <bruno@clisp.org>
54804
54805         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54806         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54807         glthread_rwlock_unlock, glthread_rwlock_destroy,
54808         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54809         glthread_recursive_lock_destroy): Define as macros always.
54810         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54811         glthread_lock_lock.
54812         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54813         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54814         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54815         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54816         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54817         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54818         (glthread_recursive_lock_lock_func): Renamed from
54819         glthread_recursive_lock_lock.
54820         (glthread_recursive_lock_unlock_func): Renamed from
54821         glthread_recursive_lock_unlock.
54822         (glthread_recursive_lock_destroy_func): Renamed from
54823         glthread_recursive_lock_destroy.
54824
54825 2008-08-14  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/glthread/lock.h: Renamed from lib/lock.h.
54828         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54829         * lib/glthread/tls.h: Renamed from lib/tls.h.
54830         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54831         * lib/fstrcmp.c: Update includes.
54832         * lib/strsignal.c: Update includes.
54833         * modules/lock (Files, Makefile.am): Update.
54834         (Include): Change to "glthread/lock.h".
54835         * modules/tls (Files, Makefile.am): Update.
54836         (Include): Change to "glthread/tls.h".
54837         * tests/test-lock.c: Update includes.
54838         * tests/test-tls.c: Update includes.
54839         * NEWS: Mention the renamed header files.
54840
54841 2008-08-11  Jim Meyering  <meyering@redhat.com>
54842
54843         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54844
54845 2008-08-11  Eric Blake  <ebb9@byu.net>
54846
54847         test-c-stack: avoid C99-ism
54848         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54849         before statement.
54850         Reported by Alain Guibert.
54851
54852 2008-08-10  Jim Meyering  <meyering@redhat.com>
54853
54854         ensure that return value of uinttostr et al are not ignored
54855         * lib/inttostr.h (__GNUC_PREREQ): Define.
54856         (__attribute_warn_unused_result__): Define.
54857         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54858
54859 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54860
54861         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54862         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54863
54864 2008-08-07  Jim Meyering  <meyering@redhat.com>
54865
54866         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54867
54868         * modules/mkstemp (License): Relicense under LGPLv2+.
54869         * modules/tempname (License): Likewise.
54870
54871 2008-08-06  Bruno Haible  <bruno@clisp.org>
54872
54873         * lib/poll.c (poll): Further micro-optimization.
54874
54875 2008-08-06  Jim Meyering  <meyering@redhat.com>
54876
54877         inet_pton.c: use locale-independent tolower
54878         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54879         (inet_pton6): Use c_tolower rather than tolower.
54880         * modules/inet_pton (Depends-on): Add c-ctype.
54881
54882 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54883
54884         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54885         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54886
54887 2008-08-06  Jim Meyering  <meyering@redhat.com>
54888
54889         * modules/inet_pton (License): Relicense under LGPLv2+.
54890
54891 2008-08-03  Bruno Haible  <bruno@clisp.org>
54892
54893         Additional non-aborting API for lock and tls.
54894         * lib/lock.h: Include <errno.h>.
54895         (glthread_lock_init): New macro/function.
54896         (gl_lock_init): Define as wrapper around glthread_lock_init.
54897         (glthread_lock_lock): New macro/function.
54898         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54899         (glthread_lock_unlock): New macro/function.
54900         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54901         (glthread_lock_destroy): New macro/function.
54902         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54903         (glthread_rwlock_init): New macro/function.
54904         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54905         (glthread_rwlock_rdlock): New macro/function.
54906         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54907         (glthread_rwlock_wrlock): New macro/function.
54908         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54909         (glthread_rwlock_unlock): New macro/function.
54910         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54911         (glthread_rwlock_destroy): New macro/function.
54912         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54913         (glthread_recursive_lock_init): New macro/function.
54914         (gl_recursive_lock_init): Define as wrapper around
54915         glthread_recursive_lock_init.
54916         (glthread_recursive_lock_lock): New macro/function.
54917         (gl_recursive_lock_lock): Define as wrapper around
54918         glthread_recursive_lock_lock.
54919         (glthread_recursive_lock_unlock): New macro/function.
54920         (gl_recursive_lock_unlock): Define as wrapper around
54921         glthread_recursive_lock_unlock.
54922         (glthread_recursive_lock_destroy): New macro/function.
54923         (gl_recursive_lock_destroy): Define as wrapper around
54924         glthread_recursive_lock_destroy.
54925         (glthread_once): New macro/function.
54926         (gl_once): Define as wrapper around glthread_once.
54927         Update function declarations.
54928         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54929         glthread_rwlock_init. Return error code.
54930         (glthread_rwlock_rdlock_multithreaded): Renamed from
54931         glthread_rwlock_rdlock. Return error code.
54932         (glthread_rwlock_wrlock_multithreaded): Renamed from
54933         glthread_rwlock_wrlock. Return error code.
54934         (glthread_rwlock_unlock_multithreaded): Renamed from
54935         glthread_rwlock_unlock. Return error code.
54936         (glthread_rwlock_destroy_multithreaded): Renamed from
54937         glthread_rwlock_destroy. Return error code.
54938         (glthread_recursive_lock_init_multithreaded): Renamed from
54939         glthread_recursive_lock_init. Return error code.
54940         (glthread_recursive_lock_lock_multithreaded): Renamed from
54941         glthread_recursive_lock_lock. Return error code.
54942         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54943         glthread_recursive_lock_unlock. Return error code.
54944         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54945         glthread_recursive_lock_destroy. Return error code.
54946         (glthread_once_call): Make static.
54947         (glthread_once_multithreaded): Renamed from glthread_once.
54948         * lib/tls.h: Include <errno.h>.
54949         (glthread_tls_key_init): New macro/function.
54950         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54951         (glthread_tls_set): New macro/function.
54952         (gl_tls_set): Define as wrapper around glthread_tls_set.
54953         (glthread_tls_key_destroy): New macro/function.
54954         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54955         Update function declarations.
54956         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54957         glthread_tls_get.
54958         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54959
54960 2008-08-04  Eric Blake  <ebb9@byu.net>
54961
54962         gnumakefile: use space, not TAB, outside of targets
54963         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54964
54965 2008-08-02  Jim Meyering  <meyering@redhat.com>
54966
54967         getdate.y: avoid locale-dependent date parsing failure
54968         In Turkish locales, getdate would fail to recognize keywords
54969         containing a lowercase "i".  The solution is not to rely on
54970         locale-sensitive case-conversion.
54971         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54972         (lookup_word): Use c_toupper in place of toupper.
54973         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54974         Reported by Vefa Bicakci <bicave@superonline.com> in
54975         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54976         * modules/getdate (Depends-on): Add c-ctype.
54977
54978 2008-08-02  Bruno Haible  <bruno@clisp.org>
54979
54980         * gnulib-tool (func_import): When updating or creating a .gitignore
54981         file, prepend each added line with a slash, and ignore leading slashes
54982         from the existing lines.
54983         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54984
54985 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54986
54987         Portability fix for GNU make 3.79.1.
54988         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54989         versions do not understand.
54990
54991 2008-08-01  Bruno Haible  <bruno@clisp.org>
54992
54993         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54994         * tests/test-isnanf.h (zero): New variable.
54995         (main): Avoid literal -0.0f.
54996         * tests/test-isnand.h (zero): New variable.
54997         (main): Avoid literal -0.0.
54998         * tests/test-isnanl.h (zero): New variable.
54999         (main): Avoid literal -0.0L.
55000         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55001         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55002         -0.0, -0.0L.
55003         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55004         (test_signbitd): Avoid literal -0.0.
55005         (test_signbitl): Avoid literal -0.0L.
55006         * tests/test-ceilf1.c (zero): New variable.
55007         (main): Avoid literal -0.0f.
55008         * tests/test-ceill.c (zero): New variable.
55009         (main): Avoid literal -0.0L.
55010         * tests/test-floorf1.c (zero): New variable.
55011         (main): Avoid literal -0.0f.
55012         * tests/test-floorl.c (zero): New variable.
55013         (main): Avoid literal -0.0L.
55014         * tests/test-roundf1.c (zero): New variable.
55015         (main): Avoid literal -0.0f.
55016         * tests/test-round1.c (zero): New variable.
55017         (main): Avoid literal -0.0.
55018         * tests/test-roundl.c (zero): New variable.
55019         (main): Avoid literal -0.0L.
55020         * tests/test-truncf1.c (zero): New variable.
55021         (main): Avoid literal -0.0f.
55022         * tests/test-trunc1.c (zero): New variable.
55023         (main): Avoid literal -0.0.
55024         * tests/test-truncl.c (zero): New variable.
55025         (main): Avoid literal -0.0L.
55026         * tests/test-frexp.c (zero): New variable.
55027         (main): Avoid literal -0.0.
55028         * tests/test-frexpl.c (zero): New variable.
55029         (main): Avoid literal -0.0L.
55030         * tests/test-ldexpl.c (zero): New variable.
55031         (main): Avoid literal -0.0L.
55032         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55033         (zerod, zerol): New variables.
55034         (test_function): Avoid literals -0.0, -0.0L.
55035         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55036         (zerod, zerol): New variables.
55037         (test_function): Avoid literals -0.0, -0.0L.
55038         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55039         (zerod, zerol): New variables.
55040         (test_function): Avoid literals -0.0, -0.0L.
55041         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55042         (zerod, zerol): New variables.
55043         (test_function): Avoid literals -0.0, -0.0L.
55044         * tests/test-strtod.c (zero): New variable.
55045         (main): Avoid literal -0.0.
55046         Reported by Jonathan C. Patschke <jp@centtech.com>.
55047
55048 2008-07-31  Jim Meyering  <meyering@redhat.com>
55049
55050         sha256.h: correct definition of SHA224_DIGEST_SIZE
55051         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55052         Reported by Paulie Pena IV <paulie4@gmail.com>.
55053         Define as 224 / 8, rather than as a literal.
55054         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55055         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55056         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55057
55058 2008-07-31  Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55061         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55062         Reported by Jonathan Patschke <jp@centtech.com>.
55063
55064 2008-07-31  Bruno Haible  <bruno@clisp.org>
55065
55066         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55067         Reported by Paolo Bonzini <bonzini@gnu.org>.
55068
55069 2008-07-30  Eric Blake  <ebb9@byu.net>
55070
55071         test-strtod: allow compilation without -lm
55072         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55073         Reported by Dennis Clarke <blastwave@gmail.com>.
55074
55075 2008-07-28  Jim Meyering  <meyering@redhat.com>
55076
55077         bootstrap: work also when there are no .po files in po/
55078         * build-aux/bootstrap (update_po_files): Complete the change
55079         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55080
55081 2008-07-27  Jim Meyering  <meyering@redhat.com>
55082
55083         * users.txt: Add zile.
55084
55085 2008-07-26  Ben Pfaff  <blp@gnu.org>
55086
55087         Add missing dependencies on new m4/exponent[fdl].m4 files.
55088         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55089         * modules/isnand-nolibm: Add m4/exponentd.m4.
55090         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55091         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55092         m4/isnan[fdl].m4, because the macros actually used moved.
55093         Reported by Jim Meyering.
55094
55095 2008-07-14  Ben Pfaff  <blp@gnu.org>
55096
55097         Add isinf module.
55098         * lib/isinf.c: New file.
55099         * lib/math.in.h: Define isinf macro if we have decided to replace
55100         it.
55101         * m4/isinf.m4: New file.
55102         * m4/math_h.m4: Initialize and substitute variables for isinf
55103         module.
55104         * modules/isinf: New file.
55105         * modules/isinf-tests: New file.
55106         * modules/math: Add substitutions for new module.
55107         * tests/test-isinf.c: New file.
55108         * doc/posix-functions/isinf.texi: Mention new module.
55109         * MODULES.html.sh: Mention new module.
55110
55111 2008-07-14  Ben Pfaff  <blp@gnu.org>
55112
55113         Factor out some macros for use by additional modules.
55114         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55115         exponentf.m4.
55116         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55117         exponentd.m4.
55118         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55119         file exponentl.m4.
55120         * m4/exponentf.m4: New file.
55121         * m4/exponentd.m4: New file.
55122         * m4/exponentl.m4: New file.
55123         * modules/isnanf: Use new file m4/exponentf.m4.
55124         * modules/isnand: Use new file m4/exponentd.m4.
55125         * modules/isnanl: Use new file m4/exponentl.m4.
55126
55127 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55128
55129         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55130         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55131         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55132         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55133
55134         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55135         readlink on platforms without PATH_MAX.
55136
55137 2008-07-21  Eric Blake  <ebb9@byu.net>
55138
55139         Warn, not fail, on stale version.
55140         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55141
55142         Don't allow installation with stale devel version number.
55143         * top/GNUmakefile (_is-install-target): New macro.
55144         (_curr-ver): Forbid installation with stale version number.
55145
55146 2008-07-20  Bruno Haible  <bruno@clisp.org>
55147
55148         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55149         TESTS_ENVIRONMENT.
55150         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55151
55152 2008-07-20  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/c-stack.h (c_stack_action): Add documentation.
55155         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55156
55157 2008-07-20  Bruno Haible  <bruno@clisp.org>
55158
55159         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55160         * modules/readlink (License): Likewise.
55161
55162 2008-07-17  Eric Blake  <ebb9@byu.net>
55163
55164         * modules/c-stack (Link): Fix typo.
55165
55166         Make c-stack use libsigsegv, when available.
55167         * modules/c-stack (Depends-on): Add libsigsegv.
55168         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55169         needed.
55170         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55171         (segv_handler, overflow_handler, c_stack_action)
55172         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55173         implementation when libsigsegv is available, but only when using
55174         the library is necessary.
55175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55176         comment, explaining why XSI check fails on Linux.
55177         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55178         * tests/test-c-stack2.sh: Tweak skip message.
55179         * NEWS: Document new link-time requirements.
55180
55181 2008-07-16  Eric Blake  <ebb9@byu.net>
55182
55183         c-stack: Expose false positives when not using libsigsegv.
55184         * modules/c-stack-tests (Files): Expand test.
55185         * tests/test-c-stack.c (main): Add means to conditionally trigger
55186         non-overflow SIGSEGV.
55187         * tests/test-c-stack2.sh: New file.
55188
55189 2008-07-14  Bruno Haible  <bruno@clisp.org>
55190
55191         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55192         Reported by Eric Blake.
55193
55194 2008-07-14  Sam Steingold  <sds@gnu.org>
55195             Bruno Haible  <bruno@clisp.org>
55196
55197         New module libsigsegv.
55198         * modules/libsigsegv: New file.
55199         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55200         modifications.
55201         * MODULES.html.sh (Signal handling): New section.
55202
55203 2008-07-14  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/unictype/ctype-* (Description): Add the word "function".
55206         Improves the resulting doc in MODULES.html.
55207
55208 2008-07-12  Ben Pfaff  <blp@gnu.org>
55209
55210         Add longlong module.
55211         * modules/longlong: New file.
55212
55213 2008-07-12  Bruno Haible  <bruno@clisp.org>
55214
55215         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55216         to empty.
55217
55218 2008-07-10  Ben Pfaff  <blp@gnu.org>
55219
55220         Add isnan module.
55221         * doc/posix-functions/isnan.texi: Mention new module.
55222         * lib/math.in.h: Define isnan macro if we have decided to replace
55223         it.
55224         * m4/isnan.m4: New file.
55225         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55226         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55227         also.
55228         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55229         redundancy.
55230         * m4/math_h.m4: Initialize and substitute variables for isnan
55231         module.
55232         * modules/isnan: New file.
55233         * modules/isnan-tests: New file.
55234         * modules/math: Add substitutions for new module.
55235         * tests/test-isnan.c: New file.
55236         * MODULES.html.sh: Mention new module.
55237
55238 2008-07-10  Ben Pfaff  <blp@gnu.org>
55239
55240         Add isnanf module.
55241         * lib/isnanf.m4: New file.
55242         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55243         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55244         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55245         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55246         * modules/isnanf: New file.
55247         * modules/isnanf-tests: New file.
55248         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55249         files.
55250         * tests/test-isnanf-nolibm.c: factored most of its contents into
55251         new file tests/test-isnanf.h.
55252         * tests/test-isnanf.h: New file.
55253         * tests/test-isnanf.c: New file.
55254         * MODULES.html.sh: Mention new module.
55255         * doc/glibc-functions/isnanf.texi: Mention new module.
55256
55257 2008-07-10  Ben Pfaff  <blp@gnu.org>
55258
55259         Add isnand module.
55260         * lib/isnand.h: New file.
55261         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55262         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55263         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55264         functionality also.
55265         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55266         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55267         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55268         * modules/isnand: New file.
55269         * modules/isnand-tests: New file.
55270         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55271         files.
55272         * tests/test-isnand-nolibm.c: factored most of its contents into
55273         new file tests/test-isnand.h.
55274         * tests/test-isnand.h: New file.
55275         * tests/test-isnand.c: New file.
55276         * MODULES.html.sh: Mention new module.
55277
55278 2008-07-10  Ben Pfaff  <blp@gnu.org>
55279
55280         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55281         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55282         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55283         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55284         * modules/isnanf-nolibm: Update references to renamed files.
55285         * modules/isnand-nolibm: Likewise.
55286         * modules/isnanf-nolibm-tests: Likewise.
55287         * modules/isnand-nolibm-tests: Likewise.
55288         * lib/frexp.c: Likewise.
55289         * lib/isfinite.c: Likewise.
55290         * lib/signbitd.c: Likewise.
55291         * lib/signbitf.c: Likewise.
55292         * lib/vasnprintf.c: Likewise.
55293         * tests/test-ceilf1.c: Likewise.
55294         * tests/test-ceilf2.c: Likewise.
55295         * tests/test-floorf1.c: Likewise.
55296         * tests/test-floorf2.c: Likewise.
55297         * tests/test-frexp.c: Likewise.
55298         * tests/test-round1.c: Likewise.
55299         * tests/test-round2.c: Likewise.
55300         * tests/test-roundf1.c: Likewise.
55301         * tests/test-strtod.c: Likewise.
55302         * tests/test-trunc1.c: Likewise.
55303         * tests/test-trunc2.c: Likewise.
55304         * tests/test-truncf1.c: Likewise.
55305         * tests/test-truncf2.c: Likewise.
55306         * NEWS: Mention the renamed header files.
55307
55308 2008-07-11  Jim Meyering  <meyering@redhat.com>
55309
55310         vc-list-files: make the last-resort awk code more portable
55311         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55312         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55313         does not support it.
55314
55315 2008-07-10  Eric Blake  <ebb9@byu.net>
55316
55317         Work with tar's bootstrap.
55318         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55319         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55320         an m4 comment.
55321
55322 2008-07-09  Jim Meyering  <meyering@redhat.com>
55323
55324         posix-shell.m4: fix typo that made this test malfunction
55325         * m4/posix-shell.m4: Remove capitalization in variable name.
55326
55327 2008-07-08  Bruno Haible  <bruno@clisp.org>
55328
55329         * m4/onceonly.m4: Update comments.
55330         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55331
55332 2008-07-04  Jim Meyering  <meyering@redhat.com>
55333
55334         * users.txt: Add vc-dwim.
55335         (bison, coreutils): Use the gitweb URL.
55336
55337 2008-07-03  Jim Meyering  <meyering@redhat.com>
55338
55339         * users.txt: Add libffcall.  From Sam Steingold.
55340
55341 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55342
55343         getdate.y: do not ignore TZ with relative day, month or year offset
55344         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55345         relative-date-handling, since otherwise, the latter would clobber the
55346         sole output (an updated Start value) of the tz-handling block.
55347         * tests/test-getdate.c: Tests for the fix
55348
55349 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55350
55351         Recognize 'foo_LIBRARIES += libgnu.a'.
55352         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55353         makefile snippet has already specified an installation location,
55354         also using '+='.
55355
55356 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55357
55358         getdate.y: factor out common actions
55359         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55360         Use them in place of open-coded actions.
55361
55362 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55363
55364         Add self-test for getdate module.
55365         * modules/getdate-tests: New file.
55366         * tests/test-getdate.c: New file.
55367
55368 2008-06-29  Bruno Haible  <bruno@clisp.org>
55369
55370         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55371         .gitignore.
55372         Reported by Sylvain Beucler <beuc@beuc.net>.
55373
55374 2008-06-29  Bruno Haible  <bruno@clisp.org>
55375
55376         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55377         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55378
55379 2008-06-29  Bruno Haible  <bruno@clisp.org>
55380
55381         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55382         EXTRA_DIST.
55383         Reported by Sylvain Beucler <beuc@beuc.net>.
55384
55385 2008-06-26  Jim Meyering  <meyering@redhat.com>
55386
55387         make several modules depend on the "open" module
55388         This provides slightly increased consistency when opening-for-write
55389         the name of a non-directory spelled with a trailing slash.
55390         * modules/chdir-safer: Likewise.
55391         * modules/chown: Likewise.
55392         * modules/clean-temp: Likewise.
55393         * modules/copy-file: Likewise.
55394         * modules/fchdir: Likewise.
55395         * modules/fcntl-safer: Likewise.
55396         * modules/pipe: Likewise.
55397         * modules/utime: Likewise.
55398         Prompted by Eric Blake and Bruno Haible.
55399
55400 2008-06-24  Andreas Schwab  <schwab@suse.de>
55401
55402         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55403         literals can be used as initializers for global variables.
55404
55405 2008-06-23  Eric Blake  <ebb9@byu.net>
55406
55407         Make gnulib-cache.m4 easier to diff.
55408         * gnulib-tool (func_import): Allow newlines when reading cached
55409         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55410
55411 2008-06-23  Bruno Haible  <bruno@clisp.org>
55412
55413         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55414         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55415         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55416         m4/signalblocking.m4.
55417         (gl_PREREQ_SIGACTION): Don't invoke it.
55418         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55419         gl_PREREQ_SIG_HANDLER_H.
55420         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55421         Don't check for sigaction here.
55422
55423 2008-06-23  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55426         (install_handlers): Don't set the SA_RESETHAND flag.
55427
55428 2008-06-23  Bruno Haible  <bruno@clisp.org>
55429
55430         * m4/sigaction.m4: Comment fixes.
55431         * lib/signal.in.h: Likewise.
55432
55433 2008-06-23  Eric Blake  <ebb9@byu.net>
55434
55435         Fix typo.
55436         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55437
55438         Avoid SA_ namespace.
55439         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55440         Reported by Ralf Wildenhues.
55441
55442         Avoid test failure due to SA_RESTORER.
55443         * tests/test-sigaction.c (SA_MASK): New macro.
55444         (main): Avoid failing due to extension flags being set.
55445         Reported by Jim Meyering.
55446
55447         Revert use of sig-handler.h in sigprocmask.c.
55448         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55449         it requires the existence of struct sigaction.
55450         * lib/sigprocmask.c (handler_t): Restore typedef.
55451         (rpl_signal, old_handlers): Use local type.
55452
55453 2008-06-22  Bruno Haible  <bruno@clisp.org>
55454
55455         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55456         conditionally.
55457         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55458
55459 2008-06-22  Bruno Haible  <bruno@clisp.org>
55460
55461         * doc/posix-functions/siginterrupt.texi: Move note.
55462
55463         * lib/signal.in.h (SA_RESTART): New macro.
55464         * lib/sigaction.c: Update comment.
55465
55466         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55467
55468         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55469         (gl_PREREQ_SIGPROCMASK): Invoke it.
55470         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55471
55472         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55473
55474         * lib/sigprocmask.c: Update a comment.
55475
55476 2008-06-21  Eric Blake  <ebb9@byu.net>
55477
55478         Use sigaction module rather than signal().
55479         * modules/c-stack (Depends-on): Add sigaction.
55480         * modules/fatal-signal (Depends-on): Likewise.
55481         * modules/nanosleep (Depends-on): Likewise.
55482         * modules/sigprocmask (Files): Add sig-handler.h.
55483         * modules/sigaction (Files): Likewise.
55484         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55485         Eggert.
55486         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55487         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55488         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55489         (init_fatal_signals): Likewise.
55490         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55491         (siginterrupt): Delete fallback.
55492         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55493         instead.
55494         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55495         siginterrupt.
55496
55497         New module sigaction, for mingw.
55498         * modules/sigaction: New module...
55499         * modules/sigaction-tests: ...and its test.
55500         * m4/sigaction.m4: New file.
55501         * lib/sigaction.c: Likewise.
55502         * tests/test-sigaction.c: Likewise.
55503         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55504         * modules/signal (Makefile.am): Likewise.
55505         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55506         needed.
55507         * doc/posix-headers/signal.texi (signal.h): Mention provided
55508         types.
55509         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55510         that sigaction is preferable.
55511         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55512         module.
55513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55514         sigaction.
55515
55516         Improve robustness of sigprocmask by overriding signal.
55517         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55518         is in use.
55519         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55520         (SIGKILL, SIGSTOP): Provide fallbacks.
55521         (rpl_signal): Implement.
55522         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55523         signal can be called inside handlers.
55524
55525         Fix nanosleep module on mingw.
55526         * modules/nanosleep (Depends-on): Add sys_select.
55527         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55528
55529         Fix licensing of sigprocmask.
55530         * modules/raise (License): Relicense as LGPL.
55531
55532 2008-06-21  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55535         result if it contains question marks.
55536         Reported by Michael Geng <linux@michaelgeng.de>.
55537
55538 2008-06-19  Bruno Haible  <bruno@clisp.org>
55539
55540         Fix CVS-ism.
55541         * doc/gnulib.texi: Include updated-stamp.texi.
55542         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55543         (updated-stamp.texi): New rule.
55544         (gnulib.info): Depend on it.
55545         * doc/.gitignore: Add updated-stamp.texi.
55546         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55547
55548 2008-06-19  Bruno Haible  <bruno@clisp.org>
55549
55550         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55551         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55552
55553 2008-06-19  Eric Blake  <ebb9@byu.net>
55554
55555         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55556         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55557         Reported by Stepan Kasal.
55558
55559 2008-06-18  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55562         Reported by Eric Blake.
55563
55564 2008-06-18  Eric Blake  <ebb9@byu.net>
55565
55566         Work around cygwin 1.5.25 strsignal bug.
55567         * tests/test-strsignal.c: Allow for const char *.
55568         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55569
55570 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55571
55572         * users.txt: Update URL to article and add author/date
55573         information.
55574
55575 2008-06-17  Bruno Haible  <bruno@clisp.org>
55576
55577         New macro gl_DISABLE_THREADS.
55578         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55579         if the user did not pass --enable-threads or --disable-threads option.
55580         (gl_DISABLE_THREADS): New macro.
55581         Reported by Eric Blake <ebb9@byu.net>.
55582
55583 2008-06-17  Bruno Haible  <bruno@clisp.org>
55584
55585         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55586         when the macro ignores it.
55587         Based on a patch by Eric Blake <ebb9@byu.net>.
55588
55589 2008-06-17  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/tls (License): Change to LGPLv2+.
55592         Reported by Eric Blake.
55593
55594 2008-06-17  Eric Blake  <ebb9@byu.net>
55595
55596         Simplify c-stack prerequisites.
55597         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55599         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55600         check.
55601         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55602         <sys/resource.h>.
55603
55604         Move c-stack test into testsuite.
55605         * modules/c-stack-tests: New file.
55606         * lib/c-stack.c [DEBUG]: Move test program...
55607         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55608         fail test if sigaltstack is lacking.
55609         * tests/test-c-stack.sh: New driver file.
55610
55611 2008-06-16  Eric Blake  <ebb9@byu.net>
55612
55613         Use raise module consistently.
55614         * modules/fatal-signal (Depends-on): Add raise.
55615         * modules/sigprocmask (Depends-on): Likewise.
55616         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55617         * lib/sigprocmask.c (sigprocmask): Likewise.
55618         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55619         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55620
55621         Fix compliance bug in sigpending.
55622         * lib/sigprocmask.c (sigpending): Return pending array via
55623         parameter, not return value.
55624
55625 2008-06-14  Eric Blake  <ebb9@byu.net>
55626
55627         Improve obstack-printf test code.
55628         * tests/test-obstack-printf.c (test_function): Fix comment, and
55629         simplify usage of obstack_* in macros.  Add a test for coverage.
55630         Reported by Bruno Haible.
55631
55632 2008-06-14  Bruno Haible  <bruno@clisp.org>
55633
55634         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55635         array size as a constant, not as a const variable.
55636         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55637         AC_USE_SYSTEM_EXTENSIONS.
55638         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55639         Test whether the obstack_printf function actually exists.
55640         * modules/obstack-printf (Depends-on): Add extensions.
55641         (Include): Remove obstack.h.
55642         * modules/obstack-printf-posix (Depends-on): Add extensions.
55643         (Include): Remove obstack.h.
55644
55645 2008-06-13  Eric Blake  <ebb9@byu.net>
55646
55647         Add obstack-printf and obstack-printf-posix modules.
55648         * modules/obstack-printf: New file.
55649         * modules/obstack-printf-posix: Likewise.
55650         * MODULES.html.sh (Misc): Mention them.
55651         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55652         Likewise.
55653         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55654         Likewise.
55655         * modules/stdio (Makefile.am): Accomodate new modules.
55656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55657         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55658         Declare.
55659         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55660         functions.
55661         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55662         (gl_REPLACE_OBSTACK_PRINTF): New macros
55663         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55664         * tests/test-obstack-printf.c: New file.
55665         * modules/obstack-printf-tests: Likewise.
55666         * modules/obstack-printf-posix-tests: Likewise.
55667
55668 2008-06-11  Bruno Haible  <bruno@clisp.org>
55669
55670         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55671         * lib/open.c: Include errno.h.
55672         (open): Fail when attempting to write to a file that has a trailing
55673         slash.
55674         * tests/test-open.c (main): Test against trailing slash bug.
55675         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55676
55677 2008-06-10  Bruno Haible  <bruno@clisp.org>
55678
55679         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55680         for $? to work inside the trap command, with various /bin/sh-s.
55681         * tests/test-vc-list-files-cvs.sh: Likewise.
55682
55683 2008-06-10  Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/acl-internal.h: Don't include gettext.h here.
55686         * lib/set-mode-acl.c: Include gettext.h here.
55687         * lib/copy-acl.c: Likewise.
55688
55689 2008-06-10  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55692         * lib/wait-process.c (wait_subprocess): Likewise.
55693         * lib/execute.h (execute): Add termsigp argument.
55694         * lib/execute.c (execute): Likewise.
55695         * lib/csharpcomp.c (compile_csharp_using_pnet,
55696         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55697         * lib/csharpexec.c (execute_csharp_using_pnet,
55698         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55699         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55700         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55701         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55702         is_jikes_present): Update.
55703         * lib/javaexec.c (execute_java_class): Update.
55704         * lib/javaversion.c (execute_and_read_line): Update.
55705         * NEWS: Document the changes.
55706         Reported by Eric Blake.
55707
55708 2008-06-10  Eric Blake  <ebb9@byu.net>
55709
55710         Add missing include.
55711         * tests/test-strstr.c (includes): Add <signal.h>.
55712         * tests/test-strcasestr.c (includes): Likewise.
55713         * tests/test-memmem.c (includes): Likewise.
55714
55715 2008-06-10  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/wait-process.c (wait_subprocess): Add an assertion.
55718
55719 2008-06-10  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55722
55723 2008-06-10  Bruno Haible  <bruno@clisp.org>
55724
55725         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55726         using alarm().
55727         * tests/test-strcasestr.c (main): Likewise.
55728         * tests/test-strstr.c (main): Likewise.
55729
55730 2008-06-09  Bruno Haible  <bruno@clisp.org>
55731
55732         Work around the Solaris 10 ACE ACLs ABI change.
55733         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55734         declare if ACL_NO_TRIVIAL is present.
55735         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55736         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55737         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55738         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55739         define if ACL_NO_TRIVIAL is present.
55740         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55741         and use the current ABI.
55742         (file_has_acl): Use same #if condition as elsewhere.
55743         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55744         in use, and use the current ABI.
55745         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55746         Reported by Jim Meyering.
55747
55748 2008-06-09  Eric Blake  <ebb9@byu.net>
55749
55750         Work around environments that (stupidly) ignore SIGALRM.
55751         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55752         before using alarm().
55753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55754         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55755         Reported by Ian Beckwith <ianb@erislabs.net>.
55756
55757         Produce autobuild blurb earlier in log.
55758         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55759
55760 2008-06-09  Jim Meyering  <meyering@redhat.com>
55761         and Ondřej Vašík  <ovasik@redhat.com>
55762
55763         utimens.c: correct kernel bug work-around
55764         Ondřej Vašík found that the invalid return value of 280 indicates
55765         failure, not success, and the kernel bug we're trying to work
55766         around affects not just the utimensat call, but also the fallback
55767         futimens call.
55768         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55769         not success.
55770         [HAVE_FUTIMENS]: Use the same work-around, here.
55771
55772 2008-06-09  Jim Meyering  <meyering@redhat.com>
55773
55774         add more guards around definition of ACE_-related code
55775         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55776         ALLOW and ACE_OWNER are also defined.
55777
55778 2008-06-08  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/acl-internal.h: Add me as co-author.
55781         * lib/file-has-acl.c: Likewise.
55782         * lib/set-mode-acl.c: Likewise.
55783         * lib/copy-acl.c: Likewise.
55784
55785 2008-06-08  Bruno Haible  <bruno@clisp.org>
55786
55787         Add support for AIX ACLs.
55788         * lib/acl-internal.h (acl_nontrivial): New declaration.
55789         * lib/file-has-acl.c (acl_nontrivial): New function.
55790         (file_has_acl): Add implementation using AIX 4 ACL API.
55791         * lib/set-mode-acl.c (qset_acl): Likewise.
55792         * lib/copy-acl.c (qcopy_acl): Likewise.
55793
55794 2008-06-08  Bruno Haible  <bruno@clisp.org>
55795
55796         Add support for HP-UX ACLs.
55797         * lib/acl-internal.h (acl_nontrivial): New declaration.
55798         * lib/file-has-acl.c (acl_nontrivial): New function.
55799         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55800         * lib/set-mode-acl.c (qset_acl): Likewise.
55801         * lib/copy-acl.c (qcopy_acl): Likewise.
55802
55803 2008-06-08  Bruno Haible  <bruno@clisp.org>
55804
55805         Add support for Cygwin ACLs.
55806         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55807         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55808         the chmod_or_fchmod call.
55809         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55810
55811 2008-06-08  Bruno Haible  <bruno@clisp.org>
55812
55813         Fix bug with setuid modes in Solaris 10+ code.
55814         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55815         succeeded, when the mode contains some special bits.
55816
55817 2008-06-08  Bruno Haible  <bruno@clisp.org>
55818
55819         Add support for Solaris 7..10 ACLs.
55820         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55821         declarations.
55822         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55823         functions.
55824         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55825         * lib/set-mode-acl.c (qset_acl): Likewise.
55826         * lib/copy-acl.c (qcopy_acl): Likewise.
55827
55828 2008-06-08  Bruno Haible  <bruno@clisp.org>
55829
55830         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55831         declaration.
55832         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55833         (acl_access_nontrivial): Remove MacOS X case.
55834         (file_has_acl): Use acl_extended_nontrivial.
55835         * lib/copy-acl.c (qcopy_acl): Likewise.
55836
55837 2008-06-08  Bruno Haible  <bruno@clisp.org>
55838
55839         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55840
55841 2008-06-08  Jim Meyering  <meyering@redhat.com>
55842
55843         * modules/acl (Maintainer): Add Bruno Haible.
55844
55845 2008-06-07  Bruno Haible  <bruno@clisp.org>
55846
55847         Improve support for Tru64 ACLs.
55848         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55849         ACL on OSF/1.
55850
55851 2008-06-07  Bruno Haible  <bruno@clisp.org>
55852
55853         Add support for MacOS X ACLs.
55854         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55855         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55856         * lib/set-mode-acl.c (qset_acl): Likewise.
55857         * lib/copy-acl.c (qcopy_acl): Likewise.
55858
55859 2008-06-07  Bruno Haible  <bruno@clisp.org>
55860
55861         Fix memory leak introduced on 2008-05-22.
55862         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55863         use.
55864
55865 2008-06-07  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55868         to construct an empty ACL.
55869
55870 2008-06-07  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55873         precisely.
55874         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55875
55876 2008-06-07  Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55879         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55880
55881 2008-06-07  Bruno Haible  <bruno@clisp.org>
55882
55883         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55884         regardless of POSIX.
55885         * doc/posix-functions/_longjmp.texi: Likewise.
55886         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55887         SystemV platform in this case.
55888
55889 2008-06-06  Eric Blake  <ebb9@byu.net>
55890
55891         Document abort() bugs.
55892         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55893
55894         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55895         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55896         sigsetjmp.
55897         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55898         siglongjmp, but only as a macro.
55899         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55900         is obsolete.
55901         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55902
55903         Tweak documentation to cover cygwin argz bugs.
55904         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55905         argz bug fix; no code change needed since no cygwin releases
55906         occurred between the last fix and the bug being tested.
55907         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55908         module and recently fixed cygwin bugs.
55909         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55910         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55911         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55912         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55913         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55914         Likewise.
55915         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55916         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55917         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55918         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55919         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55920         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55921         Likewise.
55922
55923         Avoid gcc warning on cygwin.
55924         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55925         !ACL_NO_TRIVIAL]: Avoid unused variable.
55926
55927 2008-06-05  Eric Blake  <ebb9@byu.net>
55928
55929         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55930         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55931         git-version-gen fails to come up with a version.
55932         Reported by Simon Josefsson.
55933
55934 2008-06-05  Jim Meyering  <meyering@redhat.com>
55935             Paul Eggert  <eggert@cs.ucla.edu>
55936
55937         utimens.c: work around a probable Linux kernel bug
55938         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55939         appears to be a kernel bug that causes utimensat to return 280
55940         instead of 0, indicating success.
55941
55942 2008-06-04  Bruno Haible  <bruno@clisp.org>
55943
55944         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55945         2008-06-01 commit.
55946
55947 2008-06-04  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55950         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55951         (file_has_acl): Use it. Save errno afterwards.
55952         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55953
55954 2008-06-03  Bruno Haible  <bruno@clisp.org>
55955
55956         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55957         draft code. Simplify #ifs.
55958         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55959         Put Solaris code after POSIX-draft code. Fix comments regarding
55960         Solaris 10, HP-UX. Mention Cygwin.
55961         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55962
55963 2008-06-03  Eric Blake  <ebb9@byu.net>
55964
55965         Provide fallback for older kernels.
55966         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55967         Provide runtime fallback if kernel lacks support.
55968         Reported by Mike Frysinger.
55969
55970 2008-06-02  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55973         it exists.
55974
55975 2008-06-02  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55978         * lib/copy-acl.c (qcopy_acl): Update comment.
55979
55980 2008-06-02  Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55983         like ACL APIs.
55984
55985 2008-06-02  Bruno Haible  <bruno@clisp.org>
55986
55987         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55988         * tests/test-set-mode-acl.sh: Likewise.
55989         * tests/test-copy-acl.sh: Likewise.
55990         * tests/test-copy-file.sh: Likewise.
55991
55992 2008-06-02  Bruno Haible  <bruno@clisp.org>
55993
55994         * tests/test-file-has-acl.sh: Remove unused code.
55995
55996 2008-06-01  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55999         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56000         messages.
56001         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56002
56003 2008-06-01  Bruno Haible  <bruno@clisp.org>
56004
56005         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56006         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56007         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56008         APIs.
56009         * modules/acl-tests (configure.ac): Remove tests now contained in
56010         m4/acl.m4.
56011
56012 2008-06-02  Jim Meyering  <meyering@redhat.com>
56013
56014         announce-gen: use a better key-server host name
56015         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56016         it may be more consistently reliable.  Suggested by Werner Koch
56017         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56018
56019 2008-06-01  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56022         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56023
56024 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56025
56026         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56027
56028 2008-06-01  Bruno Haible  <bruno@clisp.org>
56029
56030         New ACL tests.
56031         * tests/test-file-has-acl.sh: New file.
56032         * tests/test-file-has-acl.c: New file.
56033         * tests/test-set-mode-acl.sh: New file.
56034         * tests/test-set-mode-acl.c: New file.
56035         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56036         * tests/test-copy-acl.c: New file.
56037         * modules/acl-tests: New file, based on modules/copy-file-tests.
56038         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56039         (Depends-on): Add acl-tests.
56040         (configure.ac): Remove checks.
56041         (Makefile.am): Don't create test-sameacls program here any more.
56042
56043 2008-06-01  Bruno Haible  <bruno@clisp.org>
56044
56045         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56046         * tests/test-sameacls.c: Include progname.h.
56047         (main): Invoke set_program_name. Portability fixes for MacOS X,
56048         Solaris, HP-UX.
56049
56050 2008-06-01  Bruno Haible  <bruno@clisp.org>
56051
56052         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56053         function.
56054         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56055
56056 2008-06-01  Bruno Haible  <bruno@clisp.org>
56057
56058         * modules/rpmatch (Depends-on): Add strdup.
56059
56060 2008-06-01  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/pipe.c: Include unistd-safer.h.
56063         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56064         * modules/pipe (Depends-on): Add unistd-safer.
56065
56066 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56067
56068         * modules/autobuild (configure.ac): Call AB_INIT.
56069
56070 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56071
56072         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56073         Suggested by Bruno Haible <bruno@clisp.org>.
56074
56075 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56076
56077         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56078         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56079         <bruno@clisp.org>.
56080
56081 2008-05-29  Eric Blake  <ebb9@byu.net>
56082
56083         Prefer new POSIX 200x interfaces over futimesat.
56084         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56085         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56086         when available.
56087         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56088
56089 2008-05-28  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/stpcpy (License): Change to LGPLv2+.
56092         Requested by David Lutterkort <dlutter@redhat.com>.
56093
56094 2008-05-27  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56097         current mingw.
56098         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56099
56100 2008-05-27  Bruno Haible  <bruno@clisp.org>
56101
56102         * modules/iconv_open (Link): New section, from module 'iconv'.
56103         * modules/striconv (Link): Likewise.
56104         * modules/striconveh (Link): Likewise.
56105         * modules/xstriconv (Link): Likewise.
56106         * modules/unicodeio (Link): Likewise.
56107         * modules/propername (Link): Likewise.
56108         Reported by Jim Meyering.
56109
56110 2008-05-26  Jim Meyering  <meyering@redhat.com>
56111
56112         sha256: do not artificially restrict buffer length to be < 2^32
56113         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56114         uint32_t to size_t.
56115         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56116         to match.
56117
56118         avoid unaligned access errors, e.g., on sparc
56119         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56120         direct access through a possibly-unaligned uint64* pointer.
56121         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56122         direct access through a possibly-unaligned uint32* pointer.
56123         Prompted by this patch from Tom "spot" Callaway:
56124         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56125
56126         sha512.c: fix typo in comment
56127         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56128
56129 2008-05-25  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56132         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56133         (Makefile.am): Update lib_SOURCES.
56134
56135 2008-05-25  Bruno Haible  <bruno@clisp.org>
56136
56137         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56138
56139 2008-05-25  Jim Meyering  <meyering@redhat.com>
56140
56141         useless-if-before-free: freed expr may have white-space differences
56142         * build-aux/useless-if-before-free: Recognize cases in which the
56143         freed expression differs from the tested one in embedded white
56144         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56145         $1 was used, so we can't make any regexp shy.  Improved tests now
56146         detect this.
56147
56148         useless-if-before-free: accept white space in the expression.
56149         * build-aux/useless-if-before-free: For now, any white space
56150         in the expression must be identical in the free argument.
56151
56152         useless-if-before-free: efficiency tweak
56153         * build-aux/useless-if-before-free: Make the expression-matching
56154         regexp "shy".
56155         Make the *outer* regexp shy, not the expr-matching one.
56156
56157         update code-in-comment to accept cast of free arg
56158         * build-aux/useless-if-before-free: Update regexp.
56159
56160 2008-05-25  Bruno Haible  <bruno@clisp.org>
56161
56162         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56163         * modules/copy-file-tests (Files, Makefile.am): Update.
56164         * tests/test-copy-file.c (func_test_copy): Update.
56165
56166 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56167
56168         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56169
56170 2008-05-23  Bruno Haible  <bruno@clisp.org>
56171
56172         Improve support for ACLs on OSF/1.
56173         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56174         Remove fallback for unknown flavors of ACLs.
56175
56176 2008-05-22  Bruno Haible  <bruno@clisp.org>
56177
56178         Add support for ACLs on OSF/1.
56179         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56180         replacements.
56181         (acl_free_text): New macro fallback.
56182         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56183         acl_free.
56184         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56185         acl_free_text function. Require AC_C_INLINE.
56186
56187 2008-05-22  Bruno Haible  <bruno@clisp.org>
56188
56189         Make copy_acl work on MacOS X 10.5.
56190         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56191         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56192         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56193         If MODE_INSIDE_ACL, don't assume that every system has the same text
56194         representation for ACLs as FreeBSD.
56195         * lib/copy-acl.c (copy_acl): Add support for platforms with
56196         !MODE_INSIDE_ACL.
56197         * lib/file-has-acl.c (file_has_acl): Likewise.
56198         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56199         FreeBSD, MacOS X, or IRIX, respectively.
56200
56201 2008-05-22  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/acl.h: Don't include <sys/acl.h>.
56204         (GETACLCNT): Move fallback to lib/acl-internal.h.
56205         * lib/acl-internal.h: Include <sys/acl.h> here.
56206         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56207
56208 2008-05-22  Bruno Haible  <bruno@clisp.org>
56209
56210         Split off copy_acl function to separate file.
56211         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56212         * lib/acl.c (copy_acl): Moved function to separate file.
56213         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56214         * modules/acl (Files): Add lib/copy-acl.c.
56215         (Makefiles.am): Augment lib_SOURCES.
56216
56217 2008-05-22  Bruno Haible  <bruno@clisp.org>
56218
56219         * modules/copy-file-tests: New file.
56220         * tests/test-copy-file.sh: New file.
56221         * tests/test-copy-file.c: New file.
56222         * tests/test-copy-file-sameacls.c: New file.
56223
56224 2008-05-22  Eric Blake  <ebb9@byu.net>
56225
56226         Avoid gcc warning.
56227         * tests/test-memcmp.c (main): Pass NULL indirectly.
56228
56229 2008-05-21  Bruno Haible  <bruno@clisp.org>
56230
56231         Add reference doc about ACLs.
56232         * doc/acl-resources.txt: New file.
56233         * doc/acl-cygwin.txt: New file.
56234
56235 2008-05-21  Bruno Haible  <bruno@clisp.org>
56236
56237         Avoid one more warning from gcc.
56238         * lib/vasnprintf.c (IF_LINT): Update comments.
56239         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56240
56241 2008-05-21  Jim Meyering  <meyering@redhat.com>
56242
56243         avoid a warning from gcc
56244         * lib/vasnprintf.c (IF_LINT): Define.
56245         (scale10_round_decimal_long_double):
56246         Use it to avoid a "may be used uninitialized" warning.
56247         (scale10_round_decimal_double): Likewise.
56248
56249 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56250
56251         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56252         declared.
56253
56254 2008-05-20  Bruno Haible  <bruno@clisp.org>
56255
56256         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56257         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56258
56259 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56260
56261         * modules/memcmp-tests: New file.
56262         * tests/test-memcmp.c: New file.
56263
56264 2008-05-19  Bruno Haible  <bruno@clisp.org>
56265
56266         * modules/propername (Notice, configure.ac): Put quoted "..." into
56267         --keyword option.
56268         * lib/propername.h: Update comments accordingly.
56269         Reported by Eric Blake.
56270
56271 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56272
56273         * modules/getpass-gnu (Depends-on): Add fseeko.
56274
56275 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56276
56277         * modules/base64-tests: New file.
56278
56279 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56280
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         * lib/base64.c (base64_decode_ctx): If a decode context structure
56290         was passed in use it to ignore newlines.  If a context structure
56291         was _not_ passed in, continue to treat newlines as garbage (this
56292         is the historical behavior).  Formerly base64_decode.
56293         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56294         takes a decode context structure.
56295         * lib/base64.h (base64_decode): Macro for four-argument calls.
56296         (base64_decode_alloc): Likewise.
56297
56298 2008-05-19  Jim Meyering  <meyering@redhat.com>
56299
56300         avoid a warning from gcc
56301         * lib/trim.c (IF_LINT): Define.
56302         (trim2): Use it to avoid a "may be used uninitialized" warning.
56303
56304         Fix doc typo.
56305         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56306
56307 2008-05-19  Bruno Haible  <bruno@clisp.org>
56308
56309         * doc/glibc-functions/getpass.texi: Document limits of other
56310         implementations.
56311
56312 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56313             Bruno Haible <bruno@clisp.org>
56314
56315         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56316
56317 2008-05-18  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/propername: New file, from GNU gettext.
56320         * lib/propername.h: New file, from GNU gettext.
56321         * lib/propername.c: New file, from GNU gettext.
56322         * MODULES.html.sh (Internationalization functions): Add propername.
56323
56324 2008-05-16  Jim Meyering  <meyering@redhat.com>
56325             Bruno Haible  <bruno@clisp.org>
56326
56327         Avoid some warnings from "gcc -Wshadow".
56328         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56329
56330 2008-05-15  Eric Blake  <ebb9@byu.net>
56331
56332         Extend previous patch to cygwin 1.7.0.
56333         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56334         fast implementation in cygwin >= 1.7.0.
56335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56337
56338 2008-05-15  Bruno Haible  <bruno@clisp.org>
56339
56340         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56341         implementation in glibc >= 2.9.
56342         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56344
56345 2008-05-15  Bruno Haible  <bruno@clisp.org>
56346
56347         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56348         (Unicode string functions): Add unilbrk/*.
56349         Reported by Karl Berry.
56350
56351 2008-05-15  Eric Blake  <ebb9@byu.net>
56352
56353         Fix violation of <stdbool.h> replacement in regex.
56354         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56355         * lib/regexec.c (re_search_internal): Likewise.
56356         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56357
56358 2008-05-15  Jim Meyering  <meyering@redhat.com>
56359
56360         avoid distracting test output when git or cvs is not found
56361         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56362         * tests/test-vc-list-files-git.sh: Likewise.
56363
56364 2008-05-15  Eric Blake  <ebb9@byu.net>
56365
56366         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56367         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56368         glibc version.
56369         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56370         * doc/posix-functions/strstr.texi (strstr): Likewise.
56371         * lib/str-two-way.h (MAX): Sychronize with glibc.
56372
56373 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56374
56375         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56376         opr.ctx_type.
56377         (calc_first): Initialize constraint field.
56378         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56379         Fix grammar.
56380         (duplicate_node): Merge constraint field for all node types.
56381         (calc_eclosure_iter): Look at constraint field for all node types.
56382         * lib/regex_internal.c (create_cd_newstate): Don't look at
56383         opr.ctx_type.
56384
56385 2008-05-14  Bruno Haible  <bruno@clisp.org>
56386
56387         Help GCC to do better code generation.
56388         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56389         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56390         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56391         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56392         Declare with attribute 'malloc' if supported.
56393
56394 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56395
56396         use "echo STR|wc -c" rather than unportable "expr length STR"
56397         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56398         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56399
56400 2008-05-14  Jim Meyering  <meyering@redhat.com>
56401
56402         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56403         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56404         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56405         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56406         via Collin Lasse.
56407
56408 2008-05-14  Eric Blake  <ebb9@byu.net>
56409
56410         Avoid quadratic growth in gl_LIBSOURCES.
56411         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56412         Suggested by Bruno Haible.
56413
56414         Test xmemdup0.
56415         * modules/xmemdup0-tests: New file.
56416         * tests/test-xmemdup0.c: Likewise.
56417
56418 2008-05-13  Eric Blake  <ebb9@byu.net>
56419
56420         Split xmemdup0 into its own module.
56421         * modules/xmemdup0: New file.
56422         * lib/xmemdup0.h: Likewise.
56423         * lib/xmemdup0.c: Likewise.
56424         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56425         * lib/xalloc.h (xmemdup0): Remove.
56426         * lib/xmalloc.c (xmemdup0): Likewise.
56427
56428 2008-05-13  Eric Blake  <ebb9@byu.net>
56429             Bruno Haible  <bruno@clisp.org>
56430
56431         Reduce number of forks required during autoconf.
56432         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56433         and gl_LIBSOURCES_DIR.
56434         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56435         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56436         m4_syscmd per file.
56437         <m4_foreach_w>: Move...
56438         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56439
56440 2008-05-13  Eric Blake  <ebb9@byu.net>
56441
56442         * gnulib-tool: Fix various comment typos.
56443
56444 2008-05-12  Bruno Haible  <bruno@clisp.org>
56445
56446         Tailor the linebreaking algorithm.
56447         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56448
56449 2008-05-12  Bruno Haible  <bruno@clisp.org>
56450
56451         Update to Unicode 5.0.0.
56452         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56453         LBP_JV, LBP_JT. Redistribute values.
56454         (unilbrk_table): Change size.
56455         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56456         Unicode TR#14 rev. 22.
56457         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56458         LBP_JV, LBP_JT. Redistribute values.
56459         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56460         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56461         Update.
56462         * lib/unilbrk/lbrkprop1.h: Regenerated.
56463         * lib/unilbrk/lbrkprop2.h: Regenerated.
56464         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56465         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56466         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56467         Likewise.
56468         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56469         Likewise.
56470         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56471         result.
56472         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56473         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56474         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56475         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56476         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56477         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56478
56479 2008-05-11  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56482
56483 2008-05-11  Bruno Haible  <bruno@clisp.org>
56484
56485         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56486         * modules/unilbrk/gen-lbrk: New file.
56487
56488 2008-05-11  Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56491         * m4/sha512.m4 (gl_SHA512): Likewise.
56492
56493 2008-05-11  Jim Meyering  <meyering@redhat.com>
56494
56495         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56496         * modules/crypto/sha256: New file.
56497         * modules/crypto/sha512: Likewise.
56498         * lib/sha256.c: Likewise.
56499         * lib/sha256.h: Likewise.
56500         * lib/sha512.c: Likewise.
56501         * lib/sha512.h: Likewise.
56502         * lib/u64.h: Likewise.
56503         * m4/sha256.m4: Likewise.
56504         * m4/sha512.m4: Likewise.
56505         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56506
56507 2008-05-10  Bruno Haible  <bruno@clisp.org>
56508
56509         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56510         (Input/Output <stdio.h>): Add xprintf.
56511         (Signal handling <signal.h>): Add strsignal.
56512         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56513         (Core language properties): Add func.
56514         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56515         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56516         strings.
56517         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56518         (Input/output): New section.
56519         (File system functions): Add openat-die, stat-macros.
56520         (Networking functions): Add sockets.
56521         (Unicode string functions): Add unictype/*.
56522         (Support for building libraries and executables): Add gperf.
56523         (Support for building documentation): Add agpl-3.0.
56524         (Misc): Add nocrash.
56525
56526 2008-05-10  Bruno Haible  <bruno@clisp.org>
56527
56528         * modules/unictype/gen-ctype: New file.
56529
56530 2008-05-10  Jim Meyering  <meyering@redhat.com>
56531
56532         Make chdir-safer.c more efficient on a system with no symlinks.
56533         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56534         also if ELOOP is zero.  Suggested by Bruno Haible.
56535
56536         Make chdir-safer.c slightly safer.
56537         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56538         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56539
56540         Avoid compile failure on systems without ELOOP (like mingw).
56541         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56542         Reported by Bruno Haible.
56543
56544 2008-05-10  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56547         (is_utf8_encoding): Use a case-insensitive comparison.
56548         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56549         streq.
56550
56551 2008-05-10  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56554         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56555         * lib/unilbrk/ulc-common.h (iconv_string_length,
56556         iconv_string_keeping_offsets): Remove declarations.
56557         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56558         Don't include <iconv.h>, streq.h, xsize.h.
56559         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56560         conversion.
56561         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56562         <iconv.h>, streq.h, xsize.h.
56563         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56564         conversion.
56565         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56566         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56567         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56568         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56569
56570 2008-05-10  Bruno Haible  <bruno@clisp.org>
56571
56572         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56573         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56574
56575         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56576         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56577
56578         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56579         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56580
56581         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56582         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56583
56584         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56585         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56586
56587         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56588         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56589
56590         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56591         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56592
56593         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56594         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56595
56596 2008-05-10  Bruno Haible  <bruno@clisp.org>
56597
56598         Split up 'linebreak' module.
56599         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56600         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56601         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56602         modifications.
56603         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56604         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56605         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56606         lib/linebreak.c.
56607         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56608         lib/linebreak.c.
56609         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56610         lib/linebreak.c.
56611         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56612         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56613         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56614         lib/linebreak.c.
56615         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56616         lib/linebreak.c.
56617         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56618         lib/linebreak.c.
56619         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56620         lib/linebreak.c.
56621         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56622         lib/linebreak.c.
56623         * modules/unilbrk/base: New file.
56624         * modules/unilbrk/tables: New file.
56625         * modules/unilbrk/u8-possible-linebreaks: New file.
56626         * modules/unilbrk/u16-possible-linebreaks: New file.
56627         * modules/unilbrk/u32-possible-linebreaks: New file.
56628         * modules/unilbrk/ulc-common: New file.
56629         * modules/unilbrk/ulc-possible-linebreaks: New file.
56630         * modules/unilbrk/u8-width-linebreaks: New file.
56631         * modules/unilbrk/u16-width-linebreaks: New file.
56632         * modules/unilbrk/u32-width-linebreaks: New file.
56633         * modules/unilbrk/ulc-width-linebreaks: New file.
56634         * lib/linebreak.h: Remove file.
56635         * lib/linebreak.c: Remove file.
56636         * m4/linebreak.m4: Remove file.
56637         * modules/linebreak: Remove file.
56638         * NEWS: Mention the changes.
56639
56640 2008-05-09  Eric Blake  <ebb9@byu.net>
56641
56642         Add xmemdup0.
56643         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56644         implementation.
56645         * lib/xmalloc.c (xmemdup0): New C implementation.
56646
56647 2008-05-08  Bruno Haible  <bruno@clisp.org>
56648
56649         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56650
56651 2008-05-07  Eric Blake  <ebb9@byu.net>
56652
56653         Support cross-compilation of <wctype.h>.
56654         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56655         AC_CACHE_CHECK.
56656
56657 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56658
56659         * build-aux/vc-list-files: Add support for bzr.
56660
56661 2008-05-03  Jim Meyering  <meyering@redhat.com>
56662
56663         avoid failed assertion with tight malloc
56664         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56665
56666 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56667
56668         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56669         are needed from arpa/inet.h.
56670         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56671         Reported by Bruno Haible.
56672
56673 2008-05-02  Jim Meyering  <meyering@redhat.com>
56674
56675         avoid compilation error on FreeBSD 6
56676         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56677
56678 2008-05-01  Jim Meyering  <meyering@redhat.com>
56679
56680         useless-if-before-free: correct --help's exit status description
56681         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56682         for one or more matches, etc.  Reported by Bruno Haible.
56683
56684         vc-list-files: make the stand-alone gnulib test work
56685         * modules/vc-list-files-tests (configure.ac):
56686         Define and AC_SUBST abs_aux_dir.
56687         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56688         $(abs_top_srcdir) to each script and having each of them
56689         duplicate the work of setting PATH, set PATH here, using
56690         the new variable, abs_aux_dir instead.
56691         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56692         * tests/test-vc-list-files-git.sh: Likewise.
56693         Reported by Bruno Haible.
56694
56695 2008-05-01  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56698         reallocation. Rename 'done' to 'found_delimiter'.
56699
56700 2008-05-01  Jim Meyering  <meyering@redhat.com>
56701
56702         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56703         * build-aux/vc-list-files: Use `...`, not $(...).
56704
56705 2008-04-30  Jim Meyering  <meyering@redhat.com>
56706
56707         add tests for vc-list-files
56708         * modules/vc-list-files-tests: New module.
56709         * tests/test-vc-list-files-cvs.sh: New file.
56710         * tests/test-vc-list-files-git.sh: New file.
56711
56712         avoid a warning from gcc
56713         * lib/getndelim2.c (IF_LINT): Define.
56714         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56715
56716         vc-list-files: work properly with build-aux/cvsu, too
56717         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56718         to all cvs-based clauses.
56719
56720         vc-list-files: work properly in the CVS+awk case, too
56721         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56722
56723         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56724         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56725         take more than one file argument, so .  Add quotes, just in case $dir
56726         ever contains a shell meta-character.  Prompted by Soren Hansen in
56727         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56728
56729 2008-04-29  Eric Blake  <ebb9@byu.net>
56730
56731         Optimize getndelim2 to use block operations when possible.
56732         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56733         freadseek, and memchr2.
56734         * lib/getndelim2.c (getndelim2): Use them for block reads.
56735
56736 2008-04-29  Bruno Haible  <bruno@clisp.org>
56737
56738         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56739         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56740         * modules/inet_ntop (Depends-on): Add extensions.
56741         * modules/inet_pton (Depends-on): Likewise.
56742         Reported by Simon Josefsson.
56743
56744 2008-04-29  Jim Meyering  <meyering@redhat.com>
56745
56746         When the is more than one match in a block, match all of them.
56747         * build-aux/useless-if-before-free: Iterate through each block
56748         until there are no more matches.
56749
56750         Fix broken useless-if-before-free script.
56751         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56752         the expression to match cast of argument to free-like function.
56753
56754 2008-04-29  Eric Blake  <ebb9@byu.net>
56755
56756         Use new header.
56757         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56758
56759 2008-04-29  Jim Meyering  <meyering@redhat.com>
56760
56761         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56762         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56763         by gnulib to exist and to declare e.g., inet_ntop.
56764         Don't include "inet_ntop.h", now removed.
56765
56766         * m4/arpa_inet_h.m4: Remove trailing blanks.
56767
56768 2008-04-29  Eric Blake  <ebb9@byu.net>
56769
56770         Silence valgrind on safe reads beyond potential array bounds.
56771         * lib/rawmemchr.valgrind: New file.
56772         * lib/strchrnul.valgrind: Likewise.
56773         * modules/rawmemchr (Files): Distribute new file.
56774         * modules/strchrnul (Files): Likewise.
56775         Suggested by Bruno Haible.
56776
56777 2008-04-29  Bruno Haible  <bruno@clisp.org>
56778
56779         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56780         (inet_ntop, inet_pton): Change portability warning's wording.
56781         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56782         Invoke gl_CHECK_NEXT_HEADERS.
56783         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56784         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56785         set ARPA_INET_H.
56786         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56787         * modules/arpa_inet (Description): No longer only for systems that
56788         lack it.
56789         (Depends-on): Add include_next.
56790         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56791         HAVE_ARPA_INET_H.
56792
56793 2008-04-29  Jim Meyering  <meyering@redhat.com>
56794
56795         * modules/mkdir (License): Re-license as LGPLv2+.
56796
56797 2008-04-29  Bruno Haible  <bruno@clisp.org>
56798
56799         * modules/rawmemchr (Maintainer): Set to Eric.
56800         * modules/strchrnul (Maintainer): Likewise.
56801
56802 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56803
56804         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56805         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56806
56807         * modules/arpa_inet (arpa/inet.h): Use them.
56808
56809 2008-04-28  Eric Blake  <ebb9@byu.net>
56810
56811         Test getndelim2.
56812         * modules/getndelim2-tests: New file.
56813         * tests/test-getndelim2.c: Likewise.
56814         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56815         stream.
56816         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56817
56818         * MODULES.html.sh: Document new module.
56819
56820 2008-04-20  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/c-stack.c (die): Use raise.
56823         * modules/c-stack (Depends-on): Add raise.
56824
56825 2008-04-28  Bruno Haible  <bruno@clisp.org>
56826
56827         Expect rpmatch to be declared.
56828         * lib/yesno.c (rpmatch): Remove declaration.
56829
56830         Declare rpmatch.
56831         * lib/stdlib.in.h (rpmatch): New declaration.
56832         * lib/rpmatch.c: Include <stdlib.h> first.
56833         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56834         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56836         HAVE_RPMATCH.
56837         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56838         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56839         (Include): Set to <stdlib.h>.
56840         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56841         HAVE_RPMATCH.
56842         * NEWS: Document the change.
56843
56844 2008-04-28  Bruno Haible  <bruno@clisp.org>
56845
56846         Change rpmatch to use nl_langinfo when appropriate.
56847         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56848         (N_): New macro.
56849         (localized_pattern): New function/macro.
56850         (try): Remove match, nomatch arguments. Copy the pattern into safe
56851         memory before caching it.
56852         (rpmatch): Use localized_pattern. Add translator comments.
56853         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56854         Suggested by Eric Blake.
56855         * modules/rpmatch (Depends-on): Add stdbool.
56856
56857 2008-04-28  Eric Blake  <ebb9@byu.net>
56858
56859         Add rawmemchr module, matching glibc.
56860         * modules/string (Makefile.am): New indicator.
56861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56862         * lib/string.in.h (rawmemchr): Declare when appropriate.
56863         * modules/rawmemchr: New file.
56864         * m4/rawmemchr.m4: Likewise.
56865         * lib/rawmemchr.c: Likewise.
56866         * modules/rawmemchr-tests: Likewise.
56867         * tests/test-rawmemchr.c: Likewise.
56868         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56869         module.
56870         * modules/strchrnul (Depends-on): Add rawmemchr.
56871         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56872
56873         Whitespace cleanup.
56874         * tests/test-strchrnul.c: Reindent.
56875         * lib/strchrnul.c: Likewise.
56876
56877         Optimize and test strchrnul.
56878         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56879         * modules/strchrnul-tests: New file.
56880         * tests/test-strchrnul.c: Likewise.
56881
56882         Remove intprops dependency.
56883         * modules/memchr (Depends-on): Remove intprops.
56884         * modules/memrchr (Depends-on): Likewise.
56885         * modules/memchr2 (Depends-on): Likewise.
56886         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56887         * lib/memrchr.c (__memrchr): Likewise.
56888         * lib/memrchr2.c (memchr2): Likewise.
56889         Reported by Simon Josefsson.
56890
56891 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56892
56893         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56894         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56895
56896 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56897
56898         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56899
56900         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56901
56902         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56903
56904         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56905         declarations.
56906         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56907
56908         * m4/inet_pton.m4: Don't check for header files.
56909
56910         * m4/inet_ntop.m4: Don't check for header files.
56911
56912 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56913
56914         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56915         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56916         trigger for cygwin).
56917         Reported by Bruno Haible  <bruno@clisp.org>.
56918
56919 2008-04-28  Bruno Haible  <bruno@clisp.org>
56920
56921         * doc/posix-functions/strdup.texi: Mention mingw problem.
56922
56923 2008-04-27  Bruno Haible  <bruno@clisp.org>
56924
56925         * modules/stat-time-tests (Depends-on): Add sleep.
56926         * tests/test-stat-time.c (force_unlink): New function.
56927         (cleanup): Use it.
56928         (test_mtime): Remove the ctime related tests.
56929         (test_ctime): New function, containing the ctime related tests.
56930         (main): Call test_ctime, except on native Windows platforms.
56931
56932 2008-04-27  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/rpmatch.c (rpmatch): Add some comments.
56935         Reported by James Youngman <jay@gnu.org>.
56936
56937 2008-04-27  Bruno Haible  <bruno@clisp.org>
56938
56939         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56940         quiet NaNs.
56941
56942 2008-04-27  Bruno Haible  <bruno@clisp.org>
56943
56944         Make test-yesno.sh work on mingw.
56945         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56946         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56947         (main): Set stdin to binary mode.
56948         * modules/yesno-tests (Depends-on): Add binary-io.
56949
56950 2008-04-27  Bruno Haible  <bruno@clisp.org>
56951
56952         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56953         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56954         argument that lie outside the IEEE 854 domain.
56955         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56956         (gl_ISFINITE): Use it.
56957         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56958
56959 2008-04-27  Bruno Haible  <bruno@clisp.org>
56960
56961         Allow local renaming in config.h.
56962         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56963
56964 2008-04-27  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/memchr.c (__memchr): Change type of 'i'.
56967         * lib/memchr2.c (memchr2): Likewise.
56968
56969 2008-04-26  Eric Blake  <ebb9@byu.net>
56970         and Bruno Haible  <bruno@clisp.org>
56971
56972         Optimize and test memrchr.
56973         * modules/memrchr (Depends-on): Add intprops.
56974         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56975         * modules/memrchr-tests: New file.
56976         * tests/test-memrchr.c: New file.
56977
56978 2008-04-26  Bruno Haible  <bruno@clisp.org>
56979
56980         Add tentative support for DragonFly BSD.
56981         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56982         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56983         fp.
56984         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56985         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56986         * lib/fpurge.c (fpurge): Likewise.
56987         * lib/freadable.c (freaadable): Likewise.
56988         * lib/freadahead.c (freadahead): Likewise.
56989         * lib/freading.c (freading): Likewise.
56990         * lib/freadptr.c (freadptr): Likewise.
56991         * lib/freadseek.c (freadptrinc): Likewise.
56992         * lib/fseeko.c (fseeko): Likewise.
56993         * lib/fseterr.c (fseterr): Likewise.
56994         * lib/fwritable.c (fwritable): Likewise.
56995         * lib/fwriting.c (fwriting): Likewise.
56996
56997 2008-04-26  Bruno Haible  <bruno@clisp.org>
56998
56999         * lib/stdio-impl.h: New file.
57000         * lib/fbufmode.c: Include stdio-impl.h.
57001         (fbufmode): Use fp_, remove redundant #defines.
57002         * lib/fflush.c: Include stdio-impl.h.
57003         (clear_ungetc_buffer): Remove redundant #defines.
57004         * lib/fpurge.c: Include stdio-impl.h.
57005         (fpurge): Remove redundant #defines.
57006         * lib/freadable.c: Include stdio-impl.h.
57007         (freadable): Remove redundant #defines.
57008         * lib/freadahead.c: Include stdio-impl.h.
57009         (freadahead): Remove redundant #defines.
57010         * lib/freading.c: Include stdio-impl.h.
57011         (freading): Remove redundant #defines.
57012         * lib/freadptr.c: Include stdio-impl.h.
57013         (freadptr): Remove redundant #defines.
57014         * lib/freadseek.c: Include stdio-impl.h.
57015         (freadptrinc): Remove redundant #defines.
57016         * lib/fseeko.c: Include stdio-impl.h.
57017         (rpl_fseeko): Remove redundant #defines.
57018         * lib/fseterr.c: Include stdio-impl.h.
57019         (fseterr): Remove redundant #defines.
57020         * lib/fwritable.c: Include stdio-impl.h.
57021         (fwritable: Remove redundant #defines.
57022         * lib/fwriting.c: Include stdio-impl.h.
57023         (fwriting): Remove redundant #defines.
57024         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57025         * modules/fflush (Files): Likewise.
57026         * modules/fpurge (Files): Likewise.
57027         * modules/freadable (Files): Likewise.
57028         * modules/freadahead (Files): Likewise.
57029         * modules/freading (Files): Likewise.
57030         * modules/freadptr (Files): Likewise.
57031         * modules/freadseek (Files): Likewise.
57032         * modules/fseeko (Files): Likewise.
57033         * modules/fseterr (Files): Likewise.
57034         * modules/fwritable (Files): Likewise.
57035         * modules/fwriting (Files): Likewise.
57036
57037 2008-04-26  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57040         restore_seek_optimization, update_fpos_cache): New functions, extracted
57041         from rpl_fflush.
57042         (rpl_fflush): Use them.
57043         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57044         (gl_REPLACE_FFLUSH): Use it.
57045
57046 2008-04-26  Bruno Haible  <bruno@clisp.org>
57047
57048         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57049         on Solaris.
57050         * tests/test-xstrtoimax.sh: Likewise.
57051         * tests/test-xstrtoumax.sh: Likewise.
57052         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57053
57054 2008-04-26  Bruno Haible  <bruno@clisp.org>
57055
57056         * modules/memchr-tests: New file.
57057         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57058
57059 2008-04-26  Eric Blake  <ebb9@byu.net>
57060             Bruno Haible  <bruno@clisp.org>
57061
57062         * lib/memchr.c: Include intprops.h.
57063         (__memchr): Optimize parallel detection of matching bytes. Rename local
57064         variables. Add explanatory comments.
57065
57066 2008-04-26  Bruno Haible  <bruno@clisp.org>
57067
57068         Fix module 'memchr', broken since 2000-10-28.
57069         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57070
57071 2008-04-26  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57074         comments.
57075
57076 2008-04-25  Eric Blake  <ebb9@byu.net>
57077
57078         Use native fstatat on cygwin 1.7.0.
57079         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57080         first.
57081
57082 2008-04-23  Eric Blake  <ebb9@byu.net>
57083
57084         Improve memchr2 performance.
57085         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57086         NUL bytes.
57087         * modules/memchr2 (Depends-on): Use intprops.h.
57088
57089 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57090
57091         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57092         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57093         <blp@cs.stanford.edu>.
57094
57095 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57096
57097         * lib/arpa_inet.in.h: New file.
57098
57099         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57100         (Makefile.am): Sed in substitute header file.
57101
57102         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57103         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57104
57105         * modules/inet_ntop (configure.ac): Use
57106         gl_ARPA_INET_MODULE_INDICATOR.
57107
57108         * modules/inet_pton (configure.ac): Use
57109         gl_ARPA_INET_MODULE_INDICATOR.
57110
57111 2008-04-22  Jim Meyering  <meyering@redhat.com>
57112
57113         * modules/verify (License): Re-license as LGPLv2+.
57114
57115 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57116
57117         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57118         parameter to void* as per POSIX standard (MinGW uses char*).
57119
57120 2008-04-21  Bruno Haible  <bruno@clisp.org>
57121
57122         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57123         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57124         Define to replacements if REPLACE_ISWCNTRL is 1.
57125         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57126         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57127         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57128         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57129         what it fixes.
57130         * doc/posix-functions/iswalpha.texi: Likewise.
57131         * doc/posix-functions/iswblank.texi: Likewise.
57132         * doc/posix-functions/iswcntrl.texi: Likewise.
57133         * doc/posix-functions/iswdigit.texi: Likewise.
57134         * doc/posix-functions/iswgraph.texi: Likewise.
57135         * doc/posix-functions/iswlower.texi: Likewise.
57136         * doc/posix-functions/iswprint.texi: Likewise.
57137         * doc/posix-functions/iswpunct.texi: Likewise.
57138         * doc/posix-functions/iswspace.texi: Likewise.
57139         * doc/posix-functions/iswupper.texi: Likewise.
57140         * doc/posix-functions/iswxdigit.texi: Likewise.
57141         Reported by Alain Guibert.
57142
57143 2008-04-21  Bruno Haible  <bruno@clisp.org>
57144
57145         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57146         Patch by Alain Guibert.
57147
57148 2008-04-21  Bruno Haible  <bruno@clisp.org>
57149
57150         Fix test failures on mingw.
57151         * tests/test-xstrtol.c (print_no_progname): New function.
57152         (main): Install it in error_print_progname hook.
57153         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57154         * tests/test-xstrtoimax.sh: Likewise.
57155         * tests/test-xstrtoumax.sh: Likewise.
57156
57157 2008-04-21  Bruno Haible  <bruno@clisp.org>
57158
57159         Fix test failure on mingw.
57160         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57161
57162 2008-04-21  Bruno Haible  <bruno@clisp.org>
57163
57164         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57165         Actually assign a value.
57166
57167 2008-04-20  Bruno Haible  <bruno@clisp.org>
57168
57169         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57170         take 2.
57171         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57172         'canonicalize-lgpl' module is also used.
57173         * lib/canonicalize-lgpl.c: Undo last change.
57174         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57175
57176 2008-04-20  Bruno Haible  <bruno@clisp.org>
57177
57178         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57179         config.h. Provide _mkdir based fallback for mingw.
57180         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57181         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57182         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57183         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57184         rather than defining mkdir in config.h.
57185         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57186         (gl_SYS_STAT_H_DEFAULTS): New macro.
57187         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57188         HAVE_IO_H any more.
57189         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57190         HAVE_DECL_MKDIR and HAVE_IO_H.
57191
57192 2008-04-20  Bruno Haible  <bruno@clisp.org>
57193
57194         * lib/isapipe.c: Port to native Windows platforms.
57195
57196 2008-04-20  Bruno Haible  <bruno@clisp.org>
57197
57198         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57199
57200 2008-04-21  Eric Blake  <ebb9@byu.net>
57201
57202         Work around preprocessors that don't handle UINTMAX_MAX.
57203         * lib/memchr2.c (memchr2): Avoid embedded #if.
57204         Reported by Alain Guibert, fix suggested by Bruno Haible.
57205
57206 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57207
57208         * doc/posix-functions/strftime.texi (strftime): Explain better
57209         Windows incompatibility.  Suggested by Micah Cowan
57210         <micah@cowan.name>.
57211
57212 2008-04-20  Bruno Haible  <bruno@clisp.org>
57213
57214         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57215         unistr/u8-mblen.
57216
57217 2008-04-20  Bruno Haible  <bruno@clisp.org>
57218
57219         Fix test failure on platforms with non-GNU iconv.
57220         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57221         (U_TO_U8): Use it, rather than u16_to_u8.
57222         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57223         units at the end of the input string.
57224         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57225
57226 2008-04-20  Bruno Haible  <bruno@clisp.org>
57227
57228         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57229         when the resulting length is 0.
57230         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57231
57232 2008-04-20  Bruno Haible  <bruno@clisp.org>
57233
57234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57235         works.
57236         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57237
57238 2008-04-20  Bruno Haible  <bruno@clisp.org>
57239
57240         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57241         * modules/tsearch-tests (configure.ac): Test for initstate function.
57242
57243 2008-04-20  Bruno Haible  <bruno@clisp.org>
57244
57245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57246         for nlink_t if missing.
57247         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57248
57249 2008-04-19  Bruno Haible  <bruno@clisp.org>
57250
57251         Work around snprintf bug on Linux libc5.
57252         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57254         gl_SNPRINTF_SIZE1.
57255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57256         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57257         that test failed.
57258         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57259         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57260         * modules/snprintf (Files): Add m4/printf.m4.
57261         * modules/vsnprintf (Files): Likewise.
57262         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57263         * doc/posix-functions/vsnprintf.texi: Likewise.
57264
57265 2008-04-19  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57268         from 0.0058 to less than 10^-7.
57269
57270 2008-04-19  Bruno Haible  <bruno@clisp.org>
57271
57272         Fix rounding when a precision is given.
57273         * lib/vasnprintf.c (is_borderline): New function.
57274         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57275         9...9x.
57276         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57277         %e, %g.
57278         * tests/test-vasprintf-posix.c (test_function): Likewise.
57279         * tests/test-snprintf-posix.h (test_function): Likewise.
57280         * tests/test-sprintf-posix.h (test_function): Likewise.
57281         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57282         * tests/test-printf-posix.h (test_function): Likewise.
57283         * tests/test-printf-posix.output: Update.
57284         Reported by John Darrington <john@darrington.wattle.id.au> via
57285         Ben Pfaff <blp@cs.stanford.edu>.
57286
57287 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57288
57289         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57290         Suggested by Bruno Haible <bruno@clisp.org>.
57291
57292 2008-04-17  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57295         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57296         implementation.
57297         Patch by Bruce Merry <bmerry@gmail.com>.
57298
57299 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57300
57301         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57302         doesn't work under Windows.
57303
57304 2008-04-16  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57307         New macros.
57308         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57309         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57310         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57311         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57312         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57313         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57314         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57315         macros.
57316         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57317         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57318         Northern Sotho, Uighur.
57319
57320 2008-04-16  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57323         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57324         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57325         Reported by Daniel Bergström <daniel@octocode.com>.
57326
57327 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57328             Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57331         function.
57332         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57333         New functions, mostly extracted from gl_locale_name_default.
57334         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57335
57336 2008-04-16  Eric Blake  <ebb9@byu.net>
57337
57338         Adjust strtod detection to catch glibc 2.7 bug.
57339         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57340         Reported by John Gatewood Ham.
57341
57342 2008-04-16  Bruno Haible  <bruno@clisp.org>
57343
57344         Add tentative support for Linux libc5.
57345         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57346         * lib/fpurge.c (fpurge): Likewise.
57347         * lib/freadable.c (freadable): Likewise.
57348         * lib/freadahead.c (freadahead): Likewise.
57349         * lib/freading.c (freading): Likewise.
57350         * lib/freadptr.c (freadptr): Likewise.
57351         * lib/freadseek.c (freadptrinc): Likewise.
57352         * lib/fseeko.c (rpl_fseeko): Likewise.
57353         * lib/fseterr.c (fseterr): Likewise.
57354         * lib/fwritable.c (fwritable): Likewise.
57355         * lib/fwriting.c (fwriting): Likewise.
57356         Reported by Alain Guibert <alguibert+bts@free.fr>.
57357
57358 2008-04-15  Bruno Haible  <bruno@clisp.org>
57359
57360         * modules/mathl (configure.ac): Define module indicator.
57361
57362 2008-04-15  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/logl.c (logl): Remove unused variables.
57365
57366 2008-04-15  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57369         fails.
57370
57371 2008-04-15  Bruno Haible  <bruno@clisp.org>
57372
57373         * lib/trim.c (trim2): Fix argument of isspace() macro.
57374
57375 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57376
57377         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57378         to 0.
57379         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57380
57381 2008-04-14  Bruno Haible  <bruno@clisp.org>
57382
57383         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57384         AC_LANG_PROGRAM argument.
57385         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57386         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57388         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57389         * m4/math_h.m4 (gl_MATH_H): Likewise.
57390         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57392         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57393         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57394         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57395         * m4/regex.m4 (gl_REGEX): Likewise.
57396         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57397         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57399         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57400         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57401         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57404
57405 2008-04-14  Jim Meyering  <meyering@redhat.com>
57406
57407         test-strtod: fix typos: s/abs/fabs/
57408         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57409
57410 2008-04-13  Bruno Haible  <bruno@clisp.org>
57411
57412         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57413         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57414         module is also used and while not building the reloc-wrapper.
57415
57416 2008-04-13  Bruno Haible  <bruno@clisp.org>
57417
57418         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57419
57420 2008-04-13  Bruno Haible  <bruno@clisp.org>
57421
57422         Fix AIX compilation failure introduced on 2008-04-02.
57423         * tests/test-frexp.c (exp): Undefine before redefining.
57424         * tests/test-frexpl.c (exp): Likewise.
57425
57426 2008-04-13  Bruno Haible  <bruno@clisp.org>
57427
57428         Work around a HP-UX stdio bug.
57429         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57430         * tests/test-ftello.c (main): Likewise.
57431         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57432         * doc/posix-functions/ftello.texi: Likewise.
57433
57434 2008-04-13  Bruno Haible  <bruno@clisp.org>
57435
57436         Make test-signbit pass on HP-UX/hppa.
57437         * tests/test-signbit.c (minus_zerol): New variable.
57438         (test_signbitl): Use it.
57439
57440 2008-04-13  Bruno Haible  <bruno@clisp.org>
57441
57442         Make truncl work on OSF/1 4.0.
57443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57444         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57445         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57447         HAVE_DECL_TRUNCL.
57448         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57449         HAVE_DECL_TRUNCL.
57450         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57451
57452 2008-04-13  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57455
57456 2008-04-13  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57459         expression, so as to avoid HP-UX 11 cc compiler bug.
57460
57461 2008-04-13  Bruno Haible  <bruno@clisp.org>
57462
57463         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57464
57465 2008-04-13  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/git-merge-changelog.c: Remove empty declaration outside of
57468         functions.
57469
57470 2008-04-13  Bruno Haible  <bruno@clisp.org>
57471
57472         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57473
57474 2008-04-13  Bruno Haible  <bruno@clisp.org>
57475
57476         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57477         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57479         also if it exists but lacks definitions of the SHUT_* macros.
57480         * modules/sys_socket (Description): Update.
57481         Reported by Elbert Pol <e.pol@chello.nl>.
57482
57483 2008-04-13  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/localcharset.c (OS2): Don't redefine if already defined.
57486         Reported by Elbert Pol <e.pol@chello.nl>.
57487
57488 2008-04-13  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/binary-io.h [__EMX__]: Include <io.h>.
57491         Reported by Elbert Pol <e.pol@chello.nl>.
57492
57493 2008-04-12  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/fpucw.h: Enable the definitions also for x86_64.
57496         Needed for NetBSD/x86_64.
57497         Reported by Thomas Klausner <tk@giga.or.at>.
57498
57499 2008-04-12  Bruno Haible  <bruno@clisp.org>
57500
57501         * tests/test-strtod.c: Include isnand.h.
57502         (main): Use isnand instead of isnan.
57503         Reported by Jim Meyering.
57504
57505 2008-04-12  Bruno Haible  <bruno@clisp.org>
57506
57507         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57508         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57509
57510 2008-04-12  Jim Meyering  <meyering@redhat.com>
57511
57512         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57513
57514 2008-04-12  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57517         Reported by Elbert Pol <e.pol@chello.nl>.
57518
57519 2008-04-12  Eric Blake  <ebb9@byu.net>
57520
57521         Work around Solaris 10 math.h bug.
57522         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57523         (gl_MATH_H_DEFAULTS): Set up default.
57524         * modules/math (Makefile.am): Replace new indicators.
57525         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57526         * tests/test-math.c (main): Test this.
57527         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57528         * doc/posix-headers/math.texi (math.h): Mention bug.
57529         Reported by Nelson H. F. Beebe and Jim Meyering.
57530
57531 2008-04-11  Bruno Haible  <bruno@clisp.org>
57532
57533         Adapt to future versions of Apple GCC.
57534         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57535         Reported by Peter O'Gorman <peter@pogma.com>.
57536
57537 2008-04-11  Bruno Haible  <bruno@clisp.org>
57538
57539         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57540
57541 2008-04-11  Bruno Haible  <bruno@clisp.org>
57542
57543         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57544
57545         * modules/getaddrinfo-tests (Makefile.am): Define
57546         test_getaddrinfo_LDADD.
57547
57548 2008-04-11  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57551         (init): Fix syntax error.
57552         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57553         is declared.
57554
57555 2008-04-11  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57558         * modules/glob (Depends-on): Add stdbool.
57559
57560 2008-04-11  Bruno Haible  <bruno@clisp.org>
57561
57562         * lib/trim.c: Include <string.h>.
57563
57564 2008-04-11  Eric Blake  <ebb9@byu.net>
57565
57566         Avoid compile failure on OS/2.
57567         * lib/regex_internal.h (internal_function): Disable optimization
57568         on OS/2 (__EMX__), where it caused compiler error.
57569         Reported by Elbert Pol.
57570
57571 2008-04-11  Bruno Haible  <bruno@clisp.org>
57572
57573         Flush the standard error stream before aborting. Needed on mingw.
57574         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57575         * tests/test-array_list.c (ASSERT): Likewise.
57576         * tests/test-array_oset.c (ASSERT): Likewise.
57577         * tests/test-avltree_list.c (ASSERT): Likewise.
57578         * tests/test-avltree_oset.c (ASSERT): Likewise.
57579         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57580         * tests/test-binary-io.c (ASSERT): Likewise.
57581         * tests/test-byteswap.c (ASSERT): Likewise.
57582         * tests/test-c-ctype.c (ASSERT): Likewise.
57583         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57584         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57585         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57586         * tests/test-c-strstr.c (ASSERT): Likewise.
57587         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57588         * tests/test-canonicalize.c (ASSERT): Likewise.
57589         * tests/test-carray_list.c (ASSERT): Likewise.
57590         * tests/test-ceilf1.c (ASSERT): Likewise.
57591         * tests/test-ceilf2.c (ASSERT): Likewise.
57592         * tests/test-ceill.c (ASSERT): Likewise.
57593         * tests/test-count-one-bits.c (ASSERT): Likewise.
57594         * tests/test-fbufmode.c (ASSERT): Likewise.
57595         * tests/test-fflush2.c (ASSERT): Likewise.
57596         * tests/test-floorf1.c (ASSERT): Likewise.
57597         * tests/test-floorf2.c (ASSERT): Likewise.
57598         * tests/test-floorl.c (ASSERT): Likewise.
57599         * tests/test-fopen.c (ASSERT): Likewise.
57600         * tests/test-fpending.c (ASSERT): Likewise.
57601         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57602         * tests/test-fpurge.c (ASSERT): Likewise.
57603         * tests/test-freadable.c (ASSERT): Likewise.
57604         * tests/test-freadahead.c (ASSERT): Likewise.
57605         * tests/test-freading.c (ASSERT): Likewise.
57606         * tests/test-freadptr.c (ASSERT): Likewise.
57607         * tests/test-freadptr2.c (ASSERT): Likewise.
57608         * tests/test-freadseek.c (ASSERT): Likewise.
57609         * tests/test-freopen.c (ASSERT): Likewise.
57610         * tests/test-frexp.c (ASSERT): Likewise.
57611         * tests/test-frexpl.c (ASSERT): Likewise.
57612         * tests/test-fseek.c (ASSERT): Likewise.
57613         * tests/test-fseeko.c (ASSERT): Likewise.
57614         * tests/test-fstrcmp.c (ASSERT): Likewise.
57615         * tests/test-ftell.c (ASSERT): Likewise.
57616         * tests/test-ftello.c (ASSERT): Likewise.
57617         * tests/test-func.c (ASSERT): Likewise.
57618         * tests/test-fwritable.c (ASSERT): Likewise.
57619         * tests/test-fwriting.c (ASSERT): Likewise.
57620         * tests/test-getdelim.c (ASSERT): Likewise.
57621         * tests/test-getline.c (ASSERT): Likewise.
57622         * tests/test-i-ring.c (ASSERT): Likewise.
57623         * tests/test-iconv-utf.c (ASSERT): Likewise.
57624         * tests/test-iconv.c (ASSERT): Likewise.
57625         * tests/test-isfinite.c (ASSERT): Likewise.
57626         * tests/test-isnand.c (ASSERT): Likewise.
57627         * tests/test-isnanf.c (ASSERT): Likewise.
57628         * tests/test-isnanl.h (ASSERT): Likewise.
57629         * tests/test-ldexpl.c (ASSERT): Likewise.
57630         * tests/test-linked_list.c (ASSERT): Likewise.
57631         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57632         * tests/test-localename.c (ASSERT): Likewise.
57633         * tests/test-lseek.c (ASSERT): Likewise.
57634         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57635         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57636         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57637         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57638         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57639         * tests/test-mbschr.c (ASSERT): Likewise.
57640         * tests/test-mbscspn.c (ASSERT): Likewise.
57641         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57642         * tests/test-mbspbrk.c (ASSERT): Likewise.
57643         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57644         * tests/test-mbsrchr.c (ASSERT): Likewise.
57645         * tests/test-mbsspn.c (ASSERT): Likewise.
57646         * tests/test-mbsstr1.c (ASSERT): Likewise.
57647         * tests/test-mbsstr2.c (ASSERT): Likewise.
57648         * tests/test-mbsstr3.c (ASSERT): Likewise.
57649         * tests/test-memchr2.c (ASSERT): Likewise.
57650         * tests/test-memmem.c (ASSERT): Likewise.
57651         * tests/test-open.c (ASSERT): Likewise.
57652         * tests/test-printf-frexp.c (ASSERT): Likewise.
57653         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57654         * tests/test-printf-posix.c (ASSERT): Likewise.
57655         * tests/test-quotearg.c (ASSERT): Likewise.
57656         * tests/test-rbtree_list.c (ASSERT): Likewise.
57657         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57658         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57659         * tests/test-round1.c (ASSERT): Likewise.
57660         * tests/test-roundf1.c (ASSERT): Likewise.
57661         * tests/test-roundl.c (ASSERT): Likewise.
57662         * tests/test-signbit.c (ASSERT): Likewise.
57663         * tests/test-sleep.c (ASSERT): Likewise.
57664         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57665         * tests/test-snprintf.c (ASSERT): Likewise.
57666         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57667         * tests/test-stat-time.c (ASSERT): Likewise.
57668         * tests/test-strcasestr.c (ASSERT): Likewise.
57669         * tests/test-strerror.c (ASSERT): Likewise.
57670         * tests/test-striconv.c (ASSERT): Likewise.
57671         * tests/test-striconveh.c (ASSERT): Likewise.
57672         * tests/test-striconveha.c (ASSERT): Likewise.
57673         * tests/test-strsignal.c (ASSERT): Likewise.
57674         * tests/test-strstr.c (ASSERT): Likewise.
57675         * tests/test-strtod.c (ASSERT): Likewise.
57676         * tests/test-trunc1.c (ASSERT): Likewise.
57677         * tests/test-trunc2.c (ASSERT): Likewise.
57678         * tests/test-truncf1.c (ASSERT): Likewise.
57679         * tests/test-truncf2.c (ASSERT): Likewise.
57680         * tests/test-truncl.c (ASSERT): Likewise.
57681         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57682         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57683         * tests/test-vasnprintf.c (ASSERT): Likewise.
57684         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57685         * tests/test-vasprintf.c (ASSERT): Likewise.
57686         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57687         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57688         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57689         * tests/test-vsnprintf.c (ASSERT): Likewise.
57690         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57691         * tests/test-wcwidth.c (ASSERT): Likewise.
57692         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57693         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57694         * tests/test-xvasprintf.c (ASSERT): Likewise.
57695         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57696         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57697         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57698         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57699         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57700         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57701         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57702         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57703         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57704         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57705         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57706         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57707         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57708         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57709         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57710         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57711         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57712         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57713         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57714         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57715         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57716         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57717         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57718         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57719         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57720         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57721         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57722         * tests/unictype/test-combining.c (ASSERT): Likewise.
57723         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57724         * tests/unictype/test-digit.c (ASSERT): Likewise.
57725         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57726         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57727         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57728         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57729         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57730         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57731         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57732         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57733         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57734         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57735         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57736         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57737         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57738         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57739         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57740         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57741         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57742         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57743         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57744         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57745         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57746         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57747         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57748         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57749         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57750         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57751         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57752         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57753         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57754         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57755         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57756         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57757         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57758         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57759         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57760         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57761         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57762         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57763         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57764         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57765         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57766         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57767         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57768         Reported by Eric Blake.
57769
57770 2008-04-11  Bruno Haible  <bruno@clisp.org>
57771
57772         * lib/wchar.in.h: Tweak comment.
57773
57774 2008-04-11  Bruno Haible  <bruno@clisp.org>
57775
57776         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57777         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57778         gl_COMMON.
57779         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57780
57781 2008-04-11  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57784
57785 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57786
57787         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57788         of attempting to use non-existing /dev/*random.  Based on patch
57789         from Adam Strzelecki <ono@java.pl> in
57790         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57791
57792 2008-04-08  Bruno Haible  <bruno@clisp.org>
57793
57794         Add tentative support for emx+gcc.
57795         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57796         * lib/fpurge.c (fpurge): Likewise.
57797         * lib/freadable.c (freadable): Likewise.
57798         * lib/freadahead.c (freadahead): Likewise.
57799         * lib/freading.c (freading): Likewise.
57800         * lib/freadptr.c (freadptr): Likewise.
57801         * lib/freadseek.c (freadptrinc): Likewise.
57802         * lib/fseeko.c (rpl_fseeko): Likewise.
57803         * lib/fseterr.c (fseterr): Likewise.
57804         * lib/fwritable.c (fwritable): Likewise.
57805         * lib/fwriting.c (fwriting): Likewise.
57806         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57807
57808 2008-04-09  Eric Blake  <ebb9@byu.net>
57809
57810         Avoid some autoconf warnings.
57811         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57812         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57813         * m4/afs.m4 (gl_AFS): Likewise.
57814         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57815         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57817         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57818         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57819         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57820         (AC_CHECK_DECLS_ONCE): Likewise.
57821         Rename file...
57822         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57823         gnulib-tool requires autoconf 2.59 or better.
57824         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57825
57826 2008-04-08  Eric Blake  <ebb9@byu.net>
57827
57828         Use 'git describe --match' if present (added in git 1.5.5).
57829         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57830         if possible.
57831
57832 2008-04-08  Bruno Haible  <bruno@clisp.org>
57833
57834         Add tentative support for OpenServer.
57835         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57836         _ptr, _cnt.
57837         * lib/fpurge.c (fpurge): Likewise.
57838         * lib/freadable.c (freadable): Likewise.
57839         * lib/freadahead.c (freadahead): Likewise.
57840         * lib/freading.c (freading): Likewise.
57841         * lib/freadptr.c (freadptr): Likewise.
57842         * lib/freadseek.c (freadptrinc): Likewise.
57843         * lib/fseeko.c (rpl_fseeko): Likewise.
57844         * lib/fseterr.c (fseterr): Likewise.
57845         * lib/fwritable.c (fwritable): Likewise.
57846         * lib/fwriting.c (fwriting): Likewise.
57847         Reported by Roger Cornelius <rac@tenzing.org> and
57848         Brian K. White <brian@aljex.com>.
57849
57850 2008-04-06  Jim Meyering  <meyering@redhat.com>
57851
57852         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57853
57854 2008-04-06  Bruno Haible  <bruno@clisp.org>
57855
57856         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57857         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57858         * tests/test-printf-posix.sh: Likewise.
57859         * tests/test-vfprintf-posix.sh: Likewise.
57860         * tests/test-vprintf-posix.sh: Likewise.
57861         * tests/test-xprintf-posix.sh: Likewise.
57862
57863 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57864
57865         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57866         hide error from 'ls', needed on OS/2.
57867         Report by Elbert Pol <elbert.pol@gmail.com>.
57868
57869 2008-04-04  Eric Blake  <ebb9@byu.net>
57870
57871         Make test-fseeko.c failures meaningful.
57872         * tests/test-fseeko.c: Print line number on failure.
57873         * tests/test-fseek.c: Likewise.
57874         Reported by Nelson H. F. Beebe.
57875
57876         Improve strtod bug detection check.
57877         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57878         required for Solaris 10.
57879         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57880
57881 2008-04-04  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57884         by m4/setenv.m4.
57885
57886 2008-04-03  Eric Blake  <ebb9@byu.net>
57887
57888         Ensure sane .version contents.
57889         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57890         version string.
57891         * build-aux/git-version-gen: Improve documentation.
57892
57893         Make GNU make output nicer.
57894         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57895         MAKECMDGOALS to enforce message for all command line targets.  Set
57896         srcdir for use in maint.mk.
57897
57898         Another maintainer tweak.
57899         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57900         a target that regenerates version.
57901
57902 2008-04-03  Jim Meyering  <meyering@redhat.com>
57903
57904         vc-list-files: don't cause coreutils "make po-check" failure
57905         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57906
57907 2008-04-03  Eric Blake  <ebb9@byu.net>
57908
57909         Allow VPATH usage of vc-list-files.
57910         * build-aux/vc-list-files (scriptversion): Add timestamp.
57911         (options): Add --help, --version, -C.
57912         (CVS): Support installed cvsu.
57913
57914 2008-04-02  Bruno Haible  <bruno@clisp.org>
57915
57916         Avoid some "statement with no effect" warnings from gcc.
57917         * tests/test-wctype.c (main): Explicitly ignore unused values.
57918         Reported by Jim Meyering.
57919
57920 2008-04-02  Jim Meyering  <meyering@redhat.com>
57921
57922         Avoid some warnings from "gcc -Wshadow".
57923         * tests/test-frexp.c (exp): Define to a different identifier.
57924         * tests/test-frexpl.c (exp): Likewise.
57925
57926 2008-04-03  Jim Meyering  <meyering@redhat.com>
57927
57928         bootstrap: remove dangling *.[ch] symlinks from lib
57929         * build-aux/bootstrap [dangling symlink removal]: Move find's
57930         -depth option to precede all others, to avoid a warning.
57931         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57932
57933 2008-04-02  Bruno Haible  <bruno@clisp.org>
57934
57935         Avoid some warnings from "gcc -Wshadow".
57936         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57937         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57938         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57939         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57940         Reported by Jim Meyering.
57941
57942 2008-04-01  Bruno Haible  <bruno@clisp.org>
57943
57944         Fix test to work on IRIX 6.5 with cc.
57945         * tests/test-math.c (numeric_equal): New function.
57946         (main): Use it.
57947
57948 2008-04-01  Bruno Haible  <bruno@clisp.org>
57949
57950         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57951
57952 2008-04-01  Bruno Haible  <bruno@clisp.org>
57953
57954         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57955         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57956         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57957         (Depends-on): Remove math.
57958
57959         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57960         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57961         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57962         (Depends-on): Remove math.
57963
57964         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57965         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57966         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57967         (Depends-on): Remove math.
57968         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57969         (Depends-on): Remove math.
57970
57971         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57972         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57973         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57974         (Depends-on): Remove math.
57975         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57976         (Depends-on): Remove math.
57977
57978         * tests/test-round1.c: Include nan.h.
57979         (main): Use NaNd instead of NAN.
57980         * modules/round-tests (Files): Add tests/nan.h.
57981
57982         * tests/test-trunc1.c: Include nan.h.
57983         (main): Use NaNd instead of NAN.
57984         * modules/trunc-tests (Files): Add tests/nan.h.
57985
57986         * tests/test-roundf1.c: Include nan.h.
57987         (main): Use NaNf instead of NAN.
57988         * modules/roundf-tests (Files): Add tests/nan.h.
57989
57990         * tests/test-truncf1.c: Include nan.h.
57991         (main): Use NaNf instead of NAN.
57992         * modules/truncf-tests (Files): Add tests/nan.h.
57993
57994         * tests/test-ceilf1.c: Include nan.h.
57995         (main): Use NaNf instead of NAN.
57996         * modules/ceilf-tests (Files): Add tests/nan.h.
57997
57998         * tests/test-floorf1.c: Include nan.h.
57999         (main): Use NaNf instead of NAN.
58000         * modules/floorf-tests (Files): Add tests/nan.h.
58001
58002         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58003         (main): Use NaNf instead of NAN.
58004         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58005
58006         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58007         (main): Use NaNd instead of NAN.
58008         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58009
58010         * tests/test-frexp.c: Include nan.h.
58011         (main): Use NaNd instead of NAN.
58012         * modules/frexp-tests (Files): Add tests/nan.h.
58013
58014         * lib/isnan.c: Don't include <math.h>.
58015         (FUNC): Don't use NAN macro.
58016         * modules/isnand-nolibm (Depends-on): Remove math.
58017         * modules/isnanf-nolibm (Depends-on): Remove math.
58018         * modules/isnanl (Depends-on): Remove math.
58019         * modules/isnanl-nolibm (Depends-on): Remove math.
58020
58021         * tests/nan.h: New file.
58022
58023 2008-04-01  Eric Blake  <ebb9@byu.net>
58024
58025         Fix typos.
58026         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58027         values to be the right type.
58028
58029         For now, cater to gnulib strtod inaccuracies.
58030         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58031         fractional results.  While not as nice from a QoI perspective, it
58032         is a quicker patch than correctly implementing decimal to binary
58033         rounding.
58034
58035 2008-03-31  Eric Blake  <ebb9@byu.net>
58036
58037         Guarantee a definition of NAN.
58038         * lib/math.in.h (NAN): Define if missing.
58039         * tests/test-math.c (main): Test it.
58040         * doc/posix-headers/math.texi (math.h): Document this.
58041         * lib/isnan.c (rpl_isnand): Use it.
58042         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58043         * tests/test-floorf1.c (NaN): Likewise.
58044         * tests/test-frexp.c (NaN): Likewise.
58045         * tests/test-isnand.c (NaN): Likewise.
58046         * tests/test-isnanf.c (NaN): Likewise.
58047         * tests/test-round1.c (NaN): Likewise.
58048         * tests/test-roundf1.c (NaN): Likewise.
58049         * tests/test-snprintf-posix.h (NaN): Likewise.
58050         * tests/test-sprintf-posix.h (NaN): Likewise.
58051         * tests/test-trunc1.c (NaN): Likewise.
58052         * tests/test-truncf1.c (NaN): Likewise.
58053         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58054         * tests/test-vasprintf-posix.c (NaN): Likewise.
58055         * modules/isnand-nolibm (Depends-on): Add math.
58056         * modules/isnanf-nolibm (Depends-on): Likewise.
58057         * modules/isnanl (Depends-on): Likewise.
58058         * modules/isnanl-nolibm (Depends-on): Likewise.
58059         * modules/snprintf-posix-tests (Depends-on): Likewise.
58060         * modules/sprintf-posix-tests (Depends-on): Likewise.
58061         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58062         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58063         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58064         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58065
58066 2008-03-31  Bruno Haible  <bruno@clisp.org>
58067
58068         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58069         * doc/posix-functions/strtod.texi: Likewise.
58070
58071 2008-03-31  Bruno Haible  <bruno@clisp.org>
58072
58073         * tests/test-strtod.c (main): Don't use C99 syntax.
58074
58075 2008-03-31  Bruno Haible  <bruno@clisp.org>
58076
58077         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58078         Reported by Eric Blake.
58079
58080 2008-03-31  Jim Meyering  <meyering@redhat.com>
58081
58082         Don't compare actual signbit return values.
58083         * tests/test-strtod.c (main): Rather, compare only their
58084         zero/non-zero nature.
58085
58086 2008-03-31  Eric Blake  <ebb9@byu.net>
58087
58088         More strtod documentation.
58089         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58090         failures as distinct bugs.
58091
58092 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58095         Problem reported by Erik Benada in
58096         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58097
58098 2008-03-30  Bruno Haible  <bruno@clisp.org>
58099
58100         * tests/test-strtod.c: Add comments about which assertion fails on which
58101         platform.
58102         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58103
58104 2008-03-30  Eric Blake  <ebb9@byu.net>
58105
58106         Test signbit behavior on zeros.
58107         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58108         (test_signbitd, test_signbitl): Likewise.
58109
58110         More strtod touchups.
58111         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58112         sign of negative underflow, for now.  Use .5, not .1.
58113         * doc/posix-functions/strtod.texi (strtod): Mention these
58114         limitations.
58115         Reported by Jim Meyering.
58116
58117 2008-03-30  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58120         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58121
58122 2008-03-30  Bruno Haible  <bruno@clisp.org>
58123
58124         Avoid failure when attempting to return empty iconv results on some
58125         platforms.
58126         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58127         allocation, don't report ENOMEM when the resulting string is empty.
58128
58129 2008-03-30  Bruno Haible  <bruno@clisp.org>
58130
58131         Fix buffer overrun.
58132         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58133         Don't consider the width for tmp_length. Check count against tmp_length
58134         before doing the padding. Ensure enough allocation during padding.
58135
58136 2008-03-30  Eric Blake  <ebb9@byu.net>
58137
58138         strtod touchups.
58139         * lib/strtod.c (strtod): Avoid compiler warnings.
58140         Reported by Jim Meyering.
58141
58142 2008-03-30  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58145         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58146         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58147         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58148         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58149         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58150         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58151         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58152
58153         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58154         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58155         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58156         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58157         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58158         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58159         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58160         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58161
58162         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58163         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58164         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58165         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58166         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58167         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58168         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58169         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58170
58171         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58172         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58173
58174         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58175         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58176
58177         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58178         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58179
58180         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58182         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58183
58184         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58186         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58187
58188         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58190         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58191
58192         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58194         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58195
58196         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58197         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58199         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58200         (Depends-on): Add EOVERFLOW.
58201         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58202         (Depends-on): Add EOVERFLOW.
58203         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58204         (Depends-on): Add EOVERFLOW.
58205         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58206         (Depends-on): Add EOVERFLOW.
58207         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58208         (Depends-on): Add EOVERFLOW.
58209         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58210         (Depends-on): Add EOVERFLOW.
58211         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58212         (Depends-on): Add EOVERFLOW.
58213         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58214         (Depends-on): Add EOVERFLOW.
58215
58216         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58218         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58219
58220         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58222         * modules/snprintf (Depends-on): Add EOVERFLOW.
58223
58224         * lib/poll.c (EOVERFLOW): Remove fallback.
58225         * modules/poll (Depends-on): Add EOVERFLOW.
58226
58227         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58228         * modules/getugroups (Depends-on): Add EOVERFLOW.
58229
58230         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58231         * modules/getdelim (Depends-on): Add EOVERFLOW.
58232
58233         * lib/ftell.c (EOVERFLOW): Remove fallback.
58234         * modules/ftell (Depends-on): Add EOVERFLOW.
58235
58236         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58238         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58239
58240         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58241
58242         * modules/EOVERFLOW-tests: New file.
58243         * tests/test-EOVERFLOW.c: New file.
58244
58245         * modules/EOVERFLOW: New file.
58246         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58247
58248 2008-03-30  Bruno Haible  <bruno@clisp.org>
58249
58250         Fix bug introduced on 2007-06-10.
58251         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58252         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58253
58254 2008-03-30  Bruno Haible  <bruno@clisp.org>
58255
58256         Improve freadseek's efficiency after ungetc.
58257         * lib/freadseek.c: Include freadahead.h.
58258         (freadptrinc): New function, extracted from freadseek.
58259         (freadseek): Use it in a loop. Use freadahead to determine the number
58260         of loop iterations.
58261         * modules/freadseek (Depends-on): Add freadahead.
58262         (configure.ac): Require AC_C_INLINE.
58263
58264 2008-03-30  Bruno Haible  <bruno@clisp.org>
58265
58266         * lib/freadseek.c (freadseek): Don't ignore the return value of
58267         freadptr.
58268
58269 2008-03-29  Eric Blake  <ebb9@byu.net>
58270
58271         Add hex float support.
58272         * modules/strtod (Depends-on): Add c-ctype.
58273         (Link): Mention POW_LIB.
58274         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58275         whitespace between 'e' and exponent.
58276         * tests/test-strtod.c (main): Enable hex float tests.
58277         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58278         now provides.
58279
58280         Document various strtod bugs, with some fixes.
58281         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58282         "-0x", "inf", "nan", and hex constants.
58283         * doc/posix-functions/atof.texi (atof): Likewise.
58284         * modules/stdlib (Makefile.am): Support strtod.
58285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58286         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58287         detect additional strtod bugs.
58288         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58289         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58290         bool where appropriate.  Parse 'inf' and 'nan'.
58291         * tests/test-strtod.c: New file.
58292         * modules/strtod (Depends-on): Add stdbool, stdlib.
58293         (configure.ac): Turn on module indicator.
58294         * modules/strtod-tests: New module.
58295
58296 2008-03-29  Eric Blake  <ebb9@byu.net>
58297
58298         Fix ftell on mingw.
58299         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58300         * modules/ftell-tests (Depends-on): Add binary-io.
58301         * modules/ftello-tests (Depends-on): Likewise.
58302         * tests/test-ftell.c (main): Enhance test to cover behavior after
58303         ungetc.  Enforce binary mode.
58304         * tests/test-ftello.c (main): Likewise.
58305
58306         Pass test-freadseek on cygwin.
58307         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58308         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58309         ungetc buffer.
58310
58311         * tests/test-fflush2.c (main): Fix typo.
58312
58313 2008-03-29  Bruno Haible  <bruno@clisp.org>
58314
58315         * tests/test-fflush2.c (main): Temporarily disable the contents of
58316         this test.
58317         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58318         Reported by Eric Blake.
58319
58320 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58321
58322         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58323         (GC_SHA224_DIGEST_SIZE): Add.
58324
58325         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58326         (gc_hash_digest_length): Likewise.
58327         (gc_hash_buffer): Likewise.
58328
58329 2008-03-25  Bruno Haible  <bruno@clisp.org>
58330
58331         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58332         detail which gettext release to use.
58333         Reported by Simon Josefsson.
58334
58335 2008-03-26  Jim Meyering  <meyering@redhat.com>
58336
58337         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58338         * modules/gnumakefile (clean-GNUmakefile): Also, use
58339         test ... && ... || : syntax rather than if-then ... fi.
58340
58341         gnumakefile: Don't double-quote-expand $(VPATH) value.
58342         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58343
58344 2008-03-24  Eric Blake  <ebb9@byu.net>
58345
58346         Alter GNUmakefile to install into top directory.
58347         * modules/maintainer-makefile: Split, and add dependency...
58348         * modules/gnumakefile: to this new module.
58349         * build-aux/GNUmakefile: Move...
58350         * top/GNUmakefile: ...here.
58351         * build-aux/maint.mk: Move...
58352         * top/maint.mk: ...here.
58353         * MODULES.html.sh (Support for maintaining...): Document new
58354         module.
58355
58356 2008-03-23  Bruno Haible  <bruno@clisp.org>
58357
58358         * gnulib-tool: New options --vc-files, --no-vc-files.
58359         (func_usage): Document them.
58360         (vc_files): New variable.
58361         (func_import): Consider vc_files.
58362         (func_create_testdir): Set vc_files to empty.
58363         Suggested by Jim Meyering and Karl Berry.
58364
58365 2008-03-23  Bruno Haible  <bruno@clisp.org>
58366
58367         Fix regex compilation error on HP-UX 11.
58368         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58369         * modules/regex (Files): Add m4/mbstate_t.m4.
58370         Reported by Ton Voon <ton.voon@altinity.com>.
58371
58372 2008-03-23  Bruno Haible  <bruno@clisp.org>
58373
58374         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58375
58376 2008-03-23  Eric Blake  <ebb9@byu.net>
58377             Bruno Haible  <bruno@clisp.org>
58378
58379         Install files from top/ in the destination directory.
58380         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58381         augmentation also for the files from top/.
58382         (func_import, func_create_testdir): Rewrite file names:
58383         top/filename -> filename.
58384
58385 2008-03-23  Bruno Haible  <bruno@clisp.org>
58386
58387         Tweak "gnulib --version" output.
58388         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58389
58390 2008-03-23  Bruno Haible  <bruno@clisp.org>
58391
58392         Tweak "gnulib --version" output.
58393         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58394         rather than contents of ChangeLog, when possible.
58395
58396 2008-03-21  Eric Blake  <ebb9@byu.net>
58397
58398         More --version tweaks.
58399         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58400         date of last ChangeLog entry.
58401
58402 2008-03-21  Jim Meyering  <meyering@redhat.com>
58403
58404         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58405
58406 2008-03-20  Eric Blake  <ebb9@byu.net>
58407
58408         VPATH fix.
58409         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58410
58411 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58412
58413         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58414         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58415
58416 2008-03-20  Eric Blake  <ebb9@byu.net>
58417
58418         Sync GNUmakefile with coreutils.
58419         * build-aux/GNUmakefile (have-Makefile): Rename...
58420         (_have-Makefile): ...to this, for namespace consideration.
58421         (GNUmakefile.cfg): Include, if present.
58422         (_autoreconf): Define a default.
58423         (_is-dist-target): New rule for rebuilds to pick up intra-release
58424         version.
58425         (maint-cfg.mk): Rename...
58426         (cfg.mk): ...to this.
58427
58428 2008-03-18  Jim Meyering  <meyering@redhat.com>
58429
58430         New script and module: mktempd
58431         * MODULES.html.sh (maint+release support): Add mktempd.
58432         * build-aux/mktempd: New file.
58433         * modules/mktempd: New file.
58434
58435 2008-03-15  Jim Meyering  <meyering@redhat.com>
58436
58437         Undo last change.
58438         * lib/sha1.c, lib/md5.c: 63 != ~63.
58439         Reported by Andreas Schwab.
58440
58441         sha1.c, md5.c: Hoist a redundant expression.
58442         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58443         "ctx->buflen" only once, before calling *_process_block.
58444         * lib/md5.c (md5_process_bytes): Likewise.
58445
58446 2008-03-14  Eric Blake  <ebb9@byu.net>
58447
58448         Bump copyright year in files generated by gnulib-tool.
58449         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58450         gnulib-tool, rather than hard-coding it.
58451
58452         Fix 'gnulib-tool --version' output to work with git.
58453         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58454         (startup): ...here.
58455         (func_version): Use it to invoke git-version-gen, rather than
58456         relying on CVS keyword expansion.  Modernize wording.
58457         (cvsdatestamp, last_checkin_date, version): Kill unused
58458         variables.
58459
58460 2008-03-12  Jim Meyering  <meyering@redhat.com>
58461
58462         Recognize optional cast of the argument to free.
58463         * build-aux/useless-if-before-free: Update regexps.
58464
58465         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58466
58467 2008-03-11  Bruno Haible  <bruno@clisp.org>
58468
58469         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58470         by a single package.
58471         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58472         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58473         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58474         Reported by Sam Steingold <sds@gnu.org>.
58475
58476 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58477
58478         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58479         repositories.
58480
58481 2008-03-11  Bruno Haible  <bruno@clisp.org>
58482
58483         Avoid conflicts between local macro definitions.
58484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58485         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58486
58487 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58488             Bruno Haible  <bruno@clisp.org>
58489
58490         Make va_copy work with some version of xlc on AIX 5.1.
58491         * lib/stdarg.in.h: New file.
58492         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58493         On AIX, use a <stdarg.h> file substitute.
58494         * modules/stdarg (Files): Add lib/stdarg.in.h.
58495         (Depends-on): Add include_next.
58496         (Makefile.am): Build a stdarg.h substitute if requested.
58497         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58498
58499 2008-03-10  Bruno Haible  <bruno@clisp.org>
58500
58501         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58503         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58504
58505 2008-03-10  Bruno Haible  <bruno@clisp.org>
58506
58507         * modules/stdlib (Depends-on): Add include_next, remove
58508         absolute-header.
58509
58510 2008-03-09  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/freadahead.h (freadahead): Document more precisely.
58513         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58514         the sum of both buffer sizes.
58515         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58516         * NEWS: Document the change.
58517
58518 2008-03-09  Bruno Haible  <bruno@clisp.org>
58519
58520         Extend freadptr to return also the buffer size.
58521         * lib/freadptr.h (freadptr): Add sizep argument.
58522         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58523         (freadptr): Add sizep argument. Determine buffer size like freadahead
58524         does.
58525         * tests/test-freadptr.c: Don't include freadahead.h.
58526         (main): Adapt for new calling convention of freadptr.
58527         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58528         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58529         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58530         tests/test-freadptr2.sh.
58531         (Depends): Remove freadahead.
58532         (TESTS): Add test-freadptr2.sh.
58533         (check_PROGRAMS): Add test-freadptr2.
58534
58535 2008-03-09  Bruno Haible  <bruno@clisp.org>
58536
58537         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58538         Report and solution by Simon Josefsson.
58539
58540 2008-03-06  Bruno Haible  <bruno@clisp.org>
58541
58542         Make fflush after ungetc work on BSD platforms.
58543         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58544         * tests/test-fflush2.c: New file.
58545         * tests/test-fflush2.sh: New file.
58546         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58547         tests/test-fflush2.c.
58548         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58549         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58550
58551 2008-03-06  Eric Blake  <ebb9@byu.net>
58552
58553         Likewise for ftello.
58554         * modules/ftello (Dependencies): Add extensions.
58555         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58556
58557 2008-03-06  Bruno Haible  <bruno@clisp.org>
58558
58559         * modules/fseeko (Dependencies): Add extensions.
58560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58561         Needed on glibc systems.
58562
58563 2008-03-06  Bruno Haible  <bruno@clisp.org>
58564
58565         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58566         email address.
58567         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58568
58569 2008-03-06  Bruno Haible  <bruno@clisp.org>
58570
58571         * users.txt: Add libgnupdf.
58572
58573 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58574
58575         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58576         (Header File Substitutes, Function Substitutes,
58577         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58578         (Build robot for gnulib): Fix typo.
58579
58580 2008-03-06  Bruno Haible  <bruno@clisp.org>
58581
58582         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58583         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58584
58585 2008-03-06  Bruno Haible  <bruno@clisp.org>
58586
58587         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58588         * doc/gnulib.texi: Include it.
58589
58590 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58591
58592         * modules/func (License): Change license to unlimited; there was
58593         no LGPL parts in the module anyway.
58594
58595 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58596
58597         * modules/__func__: Renamed to modules/func.
58598         * modules/__func__-tests: Renamed to modules/func-tests.
58599         * tests/test-__func__.c: Renamed to tests/test-func.c.
58600         * m4/__func__.m4: Renamed to m4/func.m4.
58601         * doc/gnulib.texi (__func__): Section renamed to func.
58602         Suggested by Eric Blake <ebb9@byu.net>.
58603
58604 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58605
58606         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58607         about __func__.  Make example self-contained.  Suggested by Eric
58608         Blake <ebb9@byu.net>.
58609
58610         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58611         Suggested by Eric Blake <ebb9@byu.net>.
58612
58613 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58614
58615         * modules/__func__: New file.
58616         * modules/__func__-tests: New file.
58617         * tests/test-__func__.c: New file.
58618         * m4/__func__.m4: New file.
58619         * doc/gnulib.texi (__func__): Document __func__ module.
58620
58621 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58622
58623         * modules/byteswap (License): Re-license as LGPLv2+.
58624
58625 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58626
58627         * doc/Makefile: Add pdf target.
58628
58629 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58630
58631         * modules/inline (License): Use 'unlimited', since there are only
58632         *.m4 files in this module.
58633
58634 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58635             Bruno Haible  <bruno@clisp.org>
58636
58637         Add support for HP C 7.1 on OpenVMS 8.3.
58638         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58639
58640 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58641
58642         Update VMS specifics.
58643         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58644
58645 2008-03-02  Jim Meyering  <meyering@redhat.com>
58646
58647         Remove the last dependency on the "free" module.
58648         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58649         Reported by Bob Proulx.
58650
58651         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58652
58653         Remove useless "if" tests before free.  Deprecate "free" module.
58654         * doc/posix-functions/free.texi: Mention that this
58655         module is no longer useful.
58656         * modules/free (Notice): Say this module is obsolete.
58657         * modules/readutmp (Depends-on): Remove free.
58658         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58659         * lib/putenv.c (putenv): Likewise.
58660         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58661         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58662         * tests/test-c-strcasestr.c (main): Likewise.
58663         * tests/test-c-strstr.c (main): Likewise.
58664         * tests/test-mbscasestr1.c (main): Likewise.
58665         * tests/test-mbscasestr2.c (main): Likewise.
58666         * tests/test-mbsstr1.c (main): Likewise.
58667         * tests/test-mbsstr2.c (main): Likewise.
58668         * tests/test-memmem.c (main): Likewise.
58669         * tests/test-strcasestr.c (main): Likewise.
58670         * tests/test-striconv.c (main): Likewise.
58671         * tests/test-striconveh.c (main): Likewise.
58672         * tests/test-striconveha.c (main): Likewise.
58673         * tests/test-strstr.c (main): Likewise.
58674
58675         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58676
58677         bootstrap: sync from coreutils again
58678         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58679
58680 2008-03-01  Jim Meyering  <meyering@redhat.com>
58681
58682         bootstrap: sync from coreutils
58683         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58684         also when the target doesn't exist.
58685
58686 2008-03-01  Eric Blake  <ebb9@byu.net>
58687
58688         Fix bugs in last patch.
58689         * lib/memchr2.c (memchr2): Fix typo.
58690         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58691         extension.
58692         Reported by Bruce Korb.
58693
58694         New module 'memchr2'.
58695         * modules/memchr2: New file.
58696         * modules/memchr2-tests: Likewise.
58697         * lib/memchr2.h: Likewise.
58698         * lib/memchr2.c: Likewise, based on memchr.c.
58699         * tests/test-memchr2.c: New test.
58700         * MODULES.html.sh (String handling): Add memchr2.
58701
58702 2008-02-29  Bruno Haible  <bruno@clisp.org>
58703
58704         * modules/freadseek-tests: New file.
58705         * tests/test-freadseek.sh: New file.
58706         * tests/test-freadseek.c: New file.
58707
58708         New module 'freadseek'.
58709         * modules/freadseek: New file.
58710         * lib/freadseek.h: New file.
58711         * lib/freadseek.c: New file.
58712         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58713
58714 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58715
58716         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58717         wydawca.
58718
58719         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58720         program_invocation_name and program_invocation_short_name are
58721         present.
58722
58723 2008-02-28  Bruno Haible  <bruno@clisp.org>
58724
58725         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58726         * tests/test-freadptr.sh: Also test non-seekable stdin.
58727
58728 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58729
58730         * build-aux/bootstrap (source_base, m4_base)
58731         (doc_base, tests_base): New variables.
58732         (gnulib_tool_options): Do not hardcode base directories, use
58733         the above variables instead.
58734
58735 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58736
58737         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58738
58739 2008-02-28  Bruno Haible  <bruno@clisp.org>
58740
58741         * modules/freadptr-tests: New file.
58742         * tests/test-freadptr.sh: New file.
58743         * tests/test-freadptr.c: New file.
58744
58745         New module 'freadptr'.
58746         * modules/freadptr: New file.
58747         * lib/freadptr.h: New file.
58748         * lib/freadptr.c: New file.
58749         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58750
58751 2008-02-26  Karl Berry  <karl@freefriends.org>
58752
58753         Sync from Libtool:
58754         * libltdl/argz.c (argz_add, argz_count): New functions.
58755         * libltdl/argz.in.h: Declare them.
58756         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58757
58758 2008-02-22  Bruno Haible  <bruno@clisp.org>
58759
58760         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58761         is a pointer type.  Needed for HP-UX 10.
58762         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58763         * doc/posix-functions/gmtime_r.texi: Likewise.
58764         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58765
58766 2008-02-24  Bruno Haible  <bruno@clisp.org>
58767
58768         * modules/environ-tests: New file.
58769         * tests/test-environ.c: New file.
58770
58771         New module 'environ'.
58772         * modules/environ: New file.
58773         * lib/unistd.in.h (environ): New declaration.
58774         * m4/environ.m4: New file.
58775         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58776         after use.
58777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58778         HAVE_DECL_ENVIRON.
58779         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58780         HAVE_DECL_ENVIRON.
58781         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58782         wrong claim that 'environ' is missing on some systems.
58783         * modules/execute (Depends-on): Add environ.
58784         * lib/execute.c (environ): Remove fallback declaration.
58785         * modules/pipe (Depends-on): Add environ.
58786         * lib/pipe.c (environ): Remove fallback declaration.
58787         * modules/setenv (Depends-on): Add environ.
58788         * lib/setenv.c (environ): Remove fallback declaration.
58789         * modules/unsetenv (Depends-on): Add environ.
58790         * lib/unsetenv.c (environ): Remove fallback declaration.
58791         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58792         m4/environ.m4.
58793         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58794         (gl_PREREQ_UNSETENV): Likewise.
58795
58796 2008-02-24  Bruno Haible  <bruno@clisp.org>
58797
58798         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58799
58800 2008-02-20  Bob Proulx  <bob@proulx.com>
58801
58802         Enable use of older two part flavor 'git describe'.
58803         * build-aux/git-version-gen: If using the older two part flavor of
58804         git version then recreate the third part now present in the
58805         newer three part flavor of git describe.
58806
58807 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58808
58809         * lib/fts.c (fts_build): Typo correction to comment.
58810
58811 2008-02-17  Bruno Haible  <bruno@clisp.org>
58812
58813         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58814         generating no-op conflicts.
58815
58816 2008-02-17  Bruno Haible  <bruno@clisp.org>
58817
58818         Speed up by 10%.
58819         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58820         result_entries, rather than an index-based loop.
58821
58822 2008-02-17  Bruno Haible  <bruno@clisp.org>
58823
58824         Speed up by 25%.
58825         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58826         'hashcode_cached'.
58827         (entry_create): New function.
58828         (entry_hashcode): Use the cached hashcode if possible.
58829         (read_changelog_file, try_split_merged_entry): Use entry_create.
58830
58831 2008-02-17  Bruno Haible  <bruno@clisp.org>
58832
58833         Speed up from O(n^2) to O(n) for long ChangeLog files.
58834         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58835         (read_changelog_file): Change implementation of entries_reversed list
58836         to rbtreehash.
58837         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58838
58839 2008-02-17  Bruno Haible  <bruno@clisp.org>
58840
58841         New option --split-merged-entry.
58842         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58843         (find_paragraph_end, try_split_merged_entry): New functions.
58844         (long_options): Add option --split-merged-entry.
58845         (usage): Document option --split-merged-entry.
58846         (main): Implement option --split-merged-entry.
58847         Reported by Eric Blake.
58848
58849 2008-02-17  Bruno Haible  <bruno@clisp.org>
58850
58851         * lib/git-merge-changelog.c: Include c-strstr.h.
58852         (main): Support the "git pull --rebase" situation.
58853         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58854         Reported by Eric Blake.
58855
58856 2008-02-16  Eric Blake  <ebb9@byu.net>
58857
58858         Avoid doubling \ in common case of "c-maybe" quoting style.
58859         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58860         eliding outer quotes.
58861         * lib/quotearg.h: Document this.
58862         * tests/test-quotearg.c (result_strings, inputs, results_g)
58863         (flag_results, locale_results): Test it by adding a new string to
58864         each test group.
58865         (compare_strings): Test new string.
58866
58867 2008-02-13  Eric Blake  <ebb9@byu.net>
58868
58869         Avoid trigraph quoting in default output.
58870         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58871         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58872         unless explicitly requested.
58873         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58874
58875 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58876
58877         Don't rely on signed integer overflowing to negative value.
58878         * lib/getugroups.c (getugroups): Include <limits.h>.
58879         Instead, compare against INT_MAX, and increment only if the test passes.
58880
58881 2008-02-13  Jim Meyering  <meyering@redhat.com>
58882         and Eric Blake  <ebb9@byu.net>
58883
58884         Avoid shadowing warning and compile errors on Linux.
58885         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58886         forwarding macros on Linux.
58887         (dcgettext): Define a stub, for Linux.
58888         (results_g, main): Avoid warnings.
58889
58890 2008-02-12  Eric Blake  <ebb9@byu.net>
58891
58892         Silence warning in last patch.
58893         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58894
58895         Quotearg part 4: add tests, fix c-maybe colon quoting.
58896         * lib/quotearg.h: Improve documentation.
58897         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58898         escapes when adding outer quotes.  When quoting trigraphs, use
58899         valid C notation.  When quoting NUL, omit extra characters if next
58900         character is not digit.  Alter prototype.
58901         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58902         callers.
58903         * modules/quotearg-tests: New module.
58904         * tests/test-quotearg.c: New test.
58905
58906 2008-02-07  Eric Blake  <ebb9@byu.net>
58907
58908         Quotearg part 3: add flag to control outer quote elision.
58909         * lib/quotearg.h (c_maybe_quoting_style): New style.
58910         (enum quoting_flags): Better documentation of flags.
58911         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58912         c-maybe style.
58913         (quotearg_buffer_restyled): Handle new flag to elide outer
58914         quotes.
58915
58916         Quotearg part 2: add flag that can control NUL elision.
58917         * lib/quotearg.h (set_quoting_flags): New prototype.
58918         * lib/quotearg.c (struct quoting_options): Add flag field.
58919         (set_quoting_flags): New function.
58920         (quotearg_buffer_restyled): Add flags parameter.
58921         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58922         (quotearg_n_options): Set the flag, since length cannot be
58923         returned.
58924         (quoting_options_from_style): Default flags correctly.
58925
58926         Quotearg part 1: more wrappers, restore quotearg_char state.
58927         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58928         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58929         (quotearg_colon_mem): New wrappers.
58930         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58931         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58932         functions.
58933         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58934         (quotearg_colon_mem): New functions.
58935
58936 2008-02-11  Bruno Haible  <bruno@clisp.org>
58937
58938         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58939         library in the current directory: it does not work with parallel make.
58940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58941
58942 2008-02-11  Bruno Haible  <bruno@clisp.org>
58943
58944         * .gitattributes: New file.
58945
58946 2008-02-11  Jim Meyering  <meyering@redhat.com>
58947
58948         useless-if-before-free: Fix reversed exit values.
58949         * build-aux/useless-if-before-free: Use correct values
58950         for EXIT_MATCH and EXIT_NO_MATCH.
58951
58952         * build-aux/useless-if-before-free: Close stdout carefully.
58953
58954 2008-02-10  Bruno Haible  <bruno@clisp.org>
58955
58956         New module 'git-merge-changelog'.
58957         * modules/git-merge-changelog: New file.
58958         * lib/git-merge-changelog.c: New file.
58959
58960 2008-02-10  Jim Meyering  <meyering@redhat.com>
58961
58962         useless-if-before-free: New option: --list (-l).
58963
58964         useless-if-before-free: Don't exit immediately upon open failure.
58965         * build-aux/useless-if-before-free: Exit 2 for errors.
58966         Upon failure to open a file, don't exit immediately.
58967         Rather, just warn and continue with any remaining files.
58968
58969 2008-02-10  Bruno Haible  <bruno@clisp.org>
58970
58971         New abstract list operation 'node_set_value'.
58972         * lib/gl_list.h (gl_list_node_set_value): New function.
58973         (struct gl_list_implementation): New field node_set_value.
58974         * lib/gl_list.c (gl_list_node_set_value): New function.
58975         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58976         (gl_array_list_implementation): Update.
58977         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58978         (gl_carray_list_implementation): Update.
58979         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58980         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58981         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58982         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58983         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58984         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58985         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58986         Update.
58987         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58988         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58989         (gl_sublist_list_implementation): Update.
58990
58991 2008-02-10  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58994         Needed when ELEMENT is #defined to 'some_type *'.
58995
58996 2008-02-10  Jim Meyering  <meyering@redhat.com>
58997
58998         New script and module: useless-if-before-free
58999         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59000         * build-aux/useless-if-before-free: New file.
59001         * modules/useless-if-before-free: New file.
59002
59003         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59004
59005         xstrtol_error: Fix typo.
59006         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59007         s/exit_failure/exit_status/.
59008
59009 2008-02-09  Jim Meyering  <meyering@redhat.com>
59010
59011         New script and module: gitlog-to-changelog
59012         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59013         * modules/gitlog-to-changelog: New file.
59014         * build-aux/gitlog-to-changelog: New file.
59015
59016 2008-02-08  Jim Meyering  <meyering@redhat.com>
59017
59018         Avoid two "parameter unused" warnings.
59019         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59020         Mark "st" as used.
59021
59022         Use "git COMMAND", not "git-COMMAND".
59023         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59024         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59025         * build-aux/git-version-gen: Use "git status", not "git-status".
59026
59027 2008-02-07  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59030         Avoids a crash on Windows Vista.
59031         Reported by Adam Strzelecki <ono@java.pl> via
59032         Simon Josefsson <simon@josefsson.org>.
59033
59034 2008-02-06  Bruno Haible  <bruno@clisp.org>
59035
59036         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59037         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59038         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59040         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59042         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59043         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59044         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59048         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59050         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59051         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59052         left-adjust flag.
59053         * tests/test-snprintf-posix.h (test_function): Likewise.
59054         * tests/test-sprintf-posix.h (test_function): Likewise.
59055         * tests/test-vasprintf-posix.c (test_function): Likewise.
59056         * doc/posix-functions/fprintf.texi: Update.
59057         * doc/posix-functions/printf.texi: Update.
59058         * doc/posix-functions/snprintf.texi: Update.
59059         * doc/posix-functions/sprintf.texi: Update.
59060         * doc/posix-functions/vfprintf.texi: Update.
59061         * doc/posix-functions/vprintf.texi: Update.
59062         * doc/posix-functions/vsnprintf.texi: Update.
59063         * doc/posix-functions/vsprintf.texi: Update.
59064         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59065
59066 2008-02-06  Bruno Haible  <bruno@clisp.org>
59067
59068         Fix bug introduced on 2008-01-26.
59069         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59070
59071 2008-02-06  Bruno Haible  <bruno@clisp.org>
59072
59073         Fix bug introduced on 2007-06-10.
59074         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59075         !NEED_PRINTF_FLAG_ZERO.
59076
59077 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59078
59079         getloadavg: use libperfstat on AIX5
59080         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59081
59082 2008-02-03  Bruno Haible  <bruno@clisp.org>
59083
59084         * lib/diffseq.h: Add comments about required #includes.
59085         Reported by Michael Biggs <gnulib@doubleplum.net>.
59086
59087 2008-02-01  Bruno Haible  <bruno@clisp.org>
59088
59089         * users.txt: Add gnuit.
59090
59091 2008-01-31  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/md4.c (set_uint32): Mark as inline.
59094         * lib/md5.c (set_uint32): Likewise.
59095         * lib/sha1.c (set_uint32): Likewise.
59096         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59097         * m4/md5.m4 (gl_MD5): Likewise.
59098         * m4/sha1.m4 (gl_SHA1): Likewise.
59099
59100 2008-01-31  Jim Meyering  <meyering@redhat.com>
59101
59102         Use "sizeof VAR", rather than a literal "4".
59103         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59104         * lib/md4.c (md4_read_ctx): Likewise.
59105         * lib/sha1.c (sha1_read_ctx): Likewise.
59106
59107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59108
59109         * tests/test-sha1.c: New file, based on test-md5.c.
59110
59111         * modules/crypto/sha1-tests: New file.
59112
59113 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59114
59115         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59116
59117 2008-01-31  Jim Meyering  <meyering@redhat.com>
59118
59119         Prefer "sizeof v" over the equivalent "4".
59120         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59121         * lib/md5.c (set_uint32): Likewise.
59122         * lib/sha1.c (set_uint32): Likewise.
59123
59124 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59125
59126         * lib/sha1.c (set_uint32): Mark function as static.
59127
59128 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59129
59130         md2: clarify comments to say that alignment is not required.
59131         * lib/md2.h: Remove warning about alignment in comment.
59132         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59133         never been required.
59134
59135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59136
59137         md4: adapt alignment constraint fix from sha1.
59138         * lib/md4.c (set_uint32): New function, from sha1.c
59139         (md4_read_ctx): Use it.
59140         (md4_finish_ctx): Doc fix.
59141         * lib/md4.h: Doc fix.
59142
59143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59144
59145         md5: adapt alignment constraint fix from sha1.
59146         * lib/md5.c (set_uint32): New function, from sha1.c
59147         (md5_read_ctx): Use it.
59148         (md5_finish_ctx): Doc fix.
59149         * lib/md5.h: Doc fix.
59150
59151 2008-01-30  Peter Palfrader  <weasel@debian.org>
59152
59153         sha1: remove the result buffer alignment constraint
59154         * lib/sha1.c (set_uint32): New function.
59155         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59156         constraint.
59157         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59158         * lib/sha1.h: Likewise.
59159
59160 2008-01-30  Andreas Schwab  <schwab@suse.de>
59161             Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59164         correct definition of LDBL_MIN_EXP.
59165
59166 2008-01-30  Karl Berry  <karl@gnu.org>
59167
59168         * config/srclist-update: try to preserve x bit on updates.
59169         * config/srclistvars.sh: update for karl.
59170
59171 2008-01-29  Jim Meyering  <meyering@redhat.com>
59172
59173         vasnprintf.c: Avoid warning about unused label
59174         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59175         "overflow" label definition and associated code with the
59176         same cpp condition that guards the sole use of that label.
59177
59178 2008-01-26  Bruno Haible  <bruno@clisp.org>
59179
59180         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59181         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59182         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59183         * lib/isnanl-nolibm.h (isnanl): Likewise.
59184         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59185
59186 2008-01-26  Bruno Haible  <bruno@clisp.org>
59187
59188         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59189         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59190
59191 2008-01-26  Bruno Haible  <bruno@clisp.org>
59192
59193         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59194         GCC >= 4.0 built-in.
59195         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59196
59197 2008-01-26  Bruno Haible  <bruno@clisp.org>
59198
59199         Rename isnan, applicable to 'double' only, to isnand.
59200         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59201         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59202         (configure.ac): Update.
59203         (Include): Replace "isnan.h" with "isnand.h".
59204         * m4/isnand.m4: Renamed from m4/isnan.m4.
59205         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59206         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59207         instead of isnan.c.
59208         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59209         instead of HAVE_ISNAN_IN_LIBC.
59210         (isnand): Renamed from isnan.
59211         * lib/isnand.c: New file.
59212         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59213         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59214         (Makefile.am): Update.
59215         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59216         Include isnand.h instead of isnan.h.
59217         (main): Test isnand instead of isnan.
59218         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59219         isnan-nolibm.
59220         * modules/frexp (Depends-on): Likewise.
59221         * modules/frexp-tests (Depends-on): Likewise.
59222         * modules/frexp-nolibm (Depends-on): Likewise.
59223         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59224         * modules/isfinite (Depends-on): Likewise.
59225         * modules/round-tests (Depends-on): Likewise.
59226         * modules/signbit (Depends-on): Likewise.
59227         * modules/signbit-tests (Depends-on): Likewise.
59228         * modules/snprintf-posix (Depends-on): Likewise.
59229         * modules/sprintf-posix (Depends-on): Likewise.
59230         * modules/trunc-tests (Depends-on): Likewise.
59231         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59235         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59236         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59237         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59238         * modules/vasnprintf-posix (Depends-on): Likewise.
59239         * modules/vasprintf-posix (Depends-on): Likewise.
59240         * modules/vfprintf-posix (Depends-on): Likewise.
59241         * modules/vsnprintf-posix (Depends-on): Likewise.
59242         * modules/vsprintf-posix (Depends-on): Likewise.
59243         * lib/frexp.c: Include isnand.h instead of isnan.h.
59244         (ISNAN): Set to isnand instead of isnan.
59245         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59246         (gl_isfinited): Use isnand instead of isnan.
59247         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59248         (gl_signbitd): Use isnand instead of isnan.
59249         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59250         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59251         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59252         (main): Use isnand instead of isnan.
59253         * tests/test-round1.c: Include isnand.h.
59254         (main): Use isnand instead of isnan.
59255         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59256         (ISNAN): Set to isnand instead of isnan.
59257         * tests/test-trunc1.c: Include isnand.h.
59258         (main): Use isnand instead of isnan.
59259         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59260         (equal): Use isnand instead of isnan.
59261         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59262         isnand-nolibm.
59263         * NEWS: Mention the change.
59264
59265 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59266             Bruno Haible  <bruno@clisp.org>
59267
59268         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59269         the GCC builtins for signbits are present and set
59270         REPLACE_SIGNBIT_USING_GCC if so.
59271         * lib/math.in.h (signbit): Define using GCC builtins if
59272         REPLACE_SIGNBIT_USING_GCC is set.
59273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59274         REPLACE_SIGNBIT_USING_GCC.
59275         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59276
59277 2008-01-25  Jim Meyering  <meyering@redhat.com>
59278
59279         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59280         * lib/poll.c: Include <config.h>, not "config.h".
59281         * tests/test-getaddrinfo.c: Likewise.
59282
59283 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59284
59285         * modules/sockets-tests: New file.
59286
59287 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59288
59289         * modules/sockets: New module, can be used to call WSA_Startup and
59290         WSA_Cleanup when needed.
59291
59292         * lib/sockets.h, lib/sockets.c: New files.
59293
59294         * m4/sockets.m4: New file.
59295
59296         * tests/test-sockets.c: New file.
59297
59298 2008-01-19  Bruno Haible  <bruno@clisp.org>
59299
59300         * doc/posix-headers: Renamed from doc/headers.
59301         * doc/posix-functions: Renamed from doc/functions.
59302         * doc/gnulib.texi: Update.
59303
59304 2008-01-19  Bruno Haible  <bruno@clisp.org>
59305
59306         * doc/glibc-functions/strcasestr.texi: Include contents of
59307         doc/functions/strcasestr.texi, fixing the list of platforms.
59308         * doc/functions/strcasestr.texi: Remove file.
59309
59310 2008-01-19  Bruno Haible  <bruno@clisp.org>
59311
59312         * doc/glibc-functions/memmem.texi: Include contents of
59313         doc/functions/memmem.texi.
59314         * doc/functions/memmem.texi: Remove file.
59315
59316 2008-01-18  Bruno Haible  <bruno@clisp.org>
59317
59318         * doc/glibc-functions/*.texi: New files.
59319         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59320         to use the new files.
59321
59322 2008-01-17  Bruno Haible  <bruno@clisp.org>
59323
59324         * tests/test-gethostname.c (main): Fix printf statement.
59325
59326 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59327
59328         * modules/gethostname-tests: New file.
59329
59330         * tests/test-gethostname.c: New file.
59331
59332 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59333
59334         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59335         used by the UNAME case.  Reported by Bruno Haible
59336         <bruno@clisp.org>.
59337
59338 2008-01-17  Eric Blake  <ebb9@byu.net>
59339
59340         Convert c-strcasestr to be more efficient.
59341         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59342         (Depends-on): Add c-strcase, remove malloca, strnlen.
59343         * tests/test-c-strcasestr.c (main): Enhance test.
59344         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59345
59346 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59347
59348         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59349         Use it in creating po/Makevars.
59350
59351 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59352
59353         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59354         Applications that requires it should initialize libgcrypt
59355         manually.
59356
59357 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59358
59359         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59360
59361 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         Fix problem with getdate on mingw32 reported by Simon Josefsson
59364         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59365         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59366         tzname", when deciding whether to declare tzname.
59367         * lib/strftime.c (tzname): Likewise.
59368
59369 2008-01-15  Bruno Haible  <bruno@clisp.org>
59370
59371         Work around a MacOS X 10.5 bug in frexpl().
59372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59373         * doc/functions/frexpl.texi: Document the bug.
59374         Reported by Elias Pipping <pipping@gentoo.org>.
59375
59376 2008-01-14  Eric Blake  <ebb9@byu.net>
59377
59378         Touch up previous patch.
59379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59380         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59381
59382         Convert strcasestr module to use Two-Way algorithm.
59383         * modules/strcasestr-simple: New module, based on the old
59384         strcasestr, but with Two-Way rather than KMP.
59385         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59386         * lib/string.in.h (rpl_strcasestr): Declare.
59387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59388         performance.
59389         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59390         * modules/string (Makefile.am): Support strcasestr.
59391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59392         * modules/strcasestr-tests (Depends-on): Check for alarm.
59393         * tests/test-strcasestr.c: Augment test.
59394         * lib/str-two-way.h: Clean up stray macro.
59395         * NEWS: Document new module.
59396         * MODULES.html.sh (string handling): Likewise.
59397         * doc/functions/strcasestr.texi: New file.
59398         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59399         here, since it is not a POSIX function.
59400
59401 2008-01-14  Colin Watson  <cjwatson@debian.org>
59402             Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59405         works fine; if not, set REPLACE_STRSIGNAL.
59406         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59408         REPLACE_STRSIGNAL.
59409         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59410         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59411         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59412
59413 2008-01-14  Bruno Haible  <bruno@clisp.org>
59414
59415         * modules/strsignal (Include): Change to <string.h>.
59416
59417 2008-01-14  Colin Watson  <cjwatson@debian.org>
59418
59419         * modules/argp (Notice): Add a notice recommending to change
59420         XGETTEXT_OPTIONS.
59421         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59422
59423 2008-01-13  Colin Watson  <cjwatson@debian.org>
59424
59425         * modules/strsignal-tests: New file.
59426         * tests/test-strsignal.c: New file.
59427
59428         * lib/strsignal.c: New file, from glibc with modifications.
59429         * lib/siglist.h: New file, from glibc with modifications.
59430         * lib/string.in.h (strsignal): New declaration.
59431         * m4/strsignal.m4: New file.
59432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59433         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59434         * modules/strsignal: New file.
59435         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59436         HAVE_DECL_STRSIGNAL.
59437
59438 2008-01-13  Bruno Haible  <bruno@clisp.org>
59439
59440         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59441         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59444
59445 2008-01-13  Bruno Haible  <bruno@clisp.org>
59446
59447         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59448         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59449         * lib/argp.h (__attribute__): Likewise.
59450         * lib/c-stack.c (__attribute__): Likewise.
59451         * lib/error.h (__attribute__): Likewise.
59452         * lib/fts.c (__attribute__): Likewise.
59453         * lib/openat.h (__attribute__): Likewise.
59454         * lib/stdio.in.h (__attribute__): Likewise.
59455         * lib/string.in.h (__attribute__): Likewise.
59456         * lib/utimens.c (__attribute__): Likewise.
59457         * lib/vasnprintf.h (__attribute__): Likewise.
59458         * lib/xalloc.h (__attribute__): Likewise.
59459         * lib/xprintf.h (__attribute__): Likewise.
59460         * lib/xstrtol.h (__attribute__): Likewise.
59461         * lib/xvasprintf.h (__attribute__): Likewise.
59462
59463 2008-01-12  Bruno Haible  <bruno@clisp.org>
59464
59465         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59466         * doc/glibc-headers/a.out.texi: New file.
59467         * doc/glibc-headers/aliases.texi: New file.
59468         * doc/glibc-headers/alloca.texi: New file.
59469         * doc/glibc-headers/ar.texi: New file.
59470         * doc/glibc-headers/argp.texi: New file.
59471         * doc/glibc-headers/argz.texi: New file.
59472         * doc/glibc-headers/byteswap.texi: New file.
59473         * doc/glibc-headers/crypt.texi: New file.
59474         * doc/glibc-headers/endian.texi: New file.
59475         * doc/glibc-headers/envz.texi: New file.
59476         * doc/glibc-headers/err.texi: New file.
59477         * doc/glibc-headers/error.texi: New file.
59478         * doc/glibc-headers/execinfo.texi: New file.
59479         * doc/glibc-headers/fpu_control.texi: New file.
59480         * doc/glibc-headers/fstab.texi: New file.
59481         * doc/glibc-headers/fts.texi: New file.
59482         * doc/glibc-headers/getopt.texi: New file.
59483         * doc/glibc-headers/ieee754.texi: New file.
59484         * doc/glibc-headers/ifaddrs.texi: New file.
59485         * doc/glibc-headers/libintl.texi: New file.
59486         * doc/glibc-headers/mcheck.texi: New file.
59487         * doc/glibc-headers/mntent.texi: New file.
59488         * doc/glibc-headers/obstack.texi: New file.
59489         * doc/glibc-headers/paths.texi: New file.
59490         * doc/glibc-headers/printf.texi: New file.
59491         * doc/glibc-headers/pty.texi: New file.
59492         * doc/glibc-headers/resolv.texi: New file.
59493         * doc/glibc-headers/shadow.texi: New file.
59494         * doc/glibc-headers/sysexits.texi: New file.
59495         * doc/glibc-headers/ttyent.texi: New file.
59496
59497 2008-01-12  Jim Meyering  <meyering@redhat.com>
59498
59499         announce-gen: emit Gnulib's git-based version string.
59500         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59501         New option --gnulib-version=V, where V is expected to be
59502         the output of running git describe in the gnulib directory.
59503         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59504         not useful, and plan to stop publishing an xdelta file with each
59505         coreutils release.
59506
59507         * build-aux/announce-gen: Also check for lzma-compressed files.
59508
59509 2008-01-11  Bruno Haible  <bruno@clisp.org>
59510
59511         * tests/test-memmem.c (main): Increase maximum allowed time.
59512         * tests/test-strstr.c (main): Likewise.
59513
59514 2008-01-11  Bruno Haible  <bruno@clisp.org>
59515
59516         * doc/functions/memmem.texi: Add more precisions about platforms.
59517         * doc/functions/strstr.texi: Likewise.
59518
59519 2008-01-10  Eric Blake  <ebb9@byu.net>
59520
59521         * m4/strstr.m4: Delete cruft from copy-n-paste.
59522         Reported by Bruno Haible.
59523
59524 2008-01-10  Bruno Haible  <bruno@clisp.org>
59525
59526         Make c-strstr rely on strstr.
59527         * lib/c-strstr.c: Don't include str-kmp.h.
59528         (c_strstr): Define in terms of strstr.
59529         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59530         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59531
59532 2008-01-10  Bruno Haible  <bruno@clisp.org>
59533
59534         * doc/gnulib.texi (String Functions in C Locale): New section.
59535         * doc/c-ctype.texi: New file.
59536         * doc/c-strcase.texi: New file.
59537         * doc/c-strcaseeq.texi: New file.
59538         * doc/c-strcasestr.texi: New file.
59539         * doc/c-strstr.texi: New file.
59540         * doc/c-strtod.texi: New file.
59541         * doc/c-strtold.texi: New file.
59542
59543 2008-01-10  Eric Blake  <ebb9@byu.net>
59544
59545         * lib/relocatable.h: Fix a comment.
59546
59547 2008-01-10  Eric Blake  <ebb9@byu.net>
59548
59549         Share two-way algorithm.
59550         * lib/str-two-way.h: New file, merged from...
59551         * lib/memmem.c: ...here...
59552         * lib/strstr.c: ...and here.
59553         * modules/memmem (Files): Use it.
59554         * modules/strstr (Files): Likewise.
59555
59556         Avoid quadratic strstr implementations.
59557         * lib/strstr.c: New file.
59558         * m4/strstr.m4: Likewise.
59559         * modules/strstr: Likewise.
59560         * modules/strstr-tests: Likewise.
59561         * tests/test-strstr.c: Likewise.
59562         * lib/string.in.h (rpl_strstr): Declare.
59563         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59565         * modules/string (Makefile.am): Likewise.
59566         * MODULES.html.sh (string handling): Mention new module.
59567         * doc/functions/strstr.texi (strstr): Document the bug.
59568
59569 2008-01-10  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/relocatable.h (relocate): State whether result is freshly
59572         allocated or not.
59573         * lib/relocatable.c (relocate): Return a freshly allocated string
59574         instead of a pointer to a privately held string.
59575         Reported by Sylvain Beucler <beuc@gnu.org>.
59576
59577 2008-01-10  Colin Watson  <cjwatson@debian.org>
59578
59579         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59580         s/S_ISNLK/S_ISLNK/.
59581
59582 2008-01-09  Bruno Haible  <bruno@clisp.org>
59583
59584         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59585         and other files.
59586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59587         if it's only a guess.
59588         * modules/memmem: Simplify by depending on memmem-simple.
59589
59590 2008-01-09  Bruno Haible  <bruno@clisp.org>
59591
59592         Work around OpenBSD 4.0 tdelete() bug.
59593         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59594         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59595         macros and don't redefine the enum values.
59596         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59597         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59598         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59599
59600 2008-01-09  Bruno Haible  <bruno@clisp.org>
59601
59602         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59603         (main): Don't perform the tests if setlocale did not install a UTF-8
59604         locale. Needed on OpenBSD 4.0.
59605         * modules/wcwidth-tests (Depends-on): Add localcharset.
59606
59607 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59610         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59611         * NEWS: announce this.
59612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59613
59614 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59615         and Eric Blake  <ebb9@byu.net>
59616
59617         Add memmem-simple module.
59618         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59619         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59620         * modules/memmem-simple: New file.
59621         * modules/memmem (Description): Tweak.
59622         * MODULES.html.sh (string handling): Mention new module.
59623         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59624         addressed by memmem-simple.
59625         * NEWS: Document the difference.
59626
59627 2008-01-09  Eric Blake  <ebb9@byu.net>
59628
59629         Give gcc some memmem optimization hints.
59630         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59631         (strcasestr): Declare as pure.
59632         * modules/memmem (Maintainer): Claim my implementation.
59633
59634 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59635
59636         Support AIX 6.1 and higher.
59637         * build-aux/config.libpath: Likewise.
59638         * build-aux/config.rpath: Likewise.
59639
59640 2008-01-08  Jim Meyering  <meyering@redhat.com>
59641             Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59644         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59645         Reported by Peter Fales in
59646         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59647
59648 2008-01-08  Bruno Haible  <bruno@clisp.org>
59649
59650         * modules/unictype/category-of (Depends-on): Add
59651         unictype/category-none.
59652         * modules/unictype/category-and-tests (Depends-on): Add
59653         unictype/category-{L,N,Lu,Nd}.
59654         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59655         * modules/unictype/category-or-tests (Depends-on): Add
59656         unictype/category-{L,N}.
59657         * modules/unictype/category-name-tests (Depends-on): Add
59658         unictype/category-{Z,Nl}.
59659         Reported by Simon Josefsson.
59660
59661 2008-01-08  Bruno Haible  <bruno@clisp.org>
59662
59663         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59664         convention better.
59665         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59666         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59667         Reported by Peter Miller <millerp@canb.auug.org.au>.
59668
59669 2008-01-08  Eric Blake  <ebb9@byu.net>
59670
59671         Rewrite memmem to guarantee linear complexity without malloc.
59672         * lib/memmem.c (memmem): Use Two-Way rather than
59673         Knuth-Morris-Pratt, to allow O(1) space usage.
59674         (critical_factorization, two_way_short_needle)
59675         (two_way_long_needle): New functions.
59676         (knuth_morris_pratt): Delete.
59677         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59678         Add stdint.
59679         * tests/test-memmem.c (main): Add tests for periodic needle and
59680         sublinear performance.
59681         * doc/functions/memmem.texi (memmem): Document other deficiencies
59682         in cygwin and older glibc.
59683
59684 2008-01-08  Bruno Haible  <bruno@clisp.org>
59685
59686         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59687         augmentation.
59688
59689 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59690
59691         Add a configure time option: --disable-acl.
59692         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59693         AC_ARG_ENABLE(acl).
59694
59695 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59696
59697         * tests/test-localename.c: Don't include obsolete "setenv.h".
59698
59699         * modules/localename-tests (Depends-on): Need unsetenv.
59700
59701 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59702
59703         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59704
59705 2008-01-06  Colin Watson  <cjwatson@debian.org>
59706
59707         * users.txt: Add man-db.
59708
59709 2008-01-07  Bruno Haible  <bruno@clisp.org>
59710
59711         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59712         previous section name.
59713
59714 2008-01-07  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/progname.c (set_program_name): Don't strip off a leading
59717         "lt-" prefix outside a .libs directory.
59718         Suggested by Paul Eggert.
59719
59720 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59721             Bruno Haible  <bruno@clisp.org>
59722
59723         Improve memory cleanup in 'relocatable' module.
59724         * lib/relocatable.h (compute_curr_prefix): Change return type to
59725         'char *'.
59726         * lib/relocatable.c (compute_curr_prefix): Change return type to
59727         'char *'. Free curr_installdir after use.
59728         (relocate): Free curr_prefix_better after use.
59729         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59730
59731 2008-01-01  Bruno Haible  <bruno@clisp.org>
59732
59733         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59734         failure on older glibc systems.
59735         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59736
59737 2008-01-05  Eric Blake  <ebb9@byu.net>
59738
59739         Avoid quadratic system memmem.
59740         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59741         Reported by Ralf Wildenhues.
59742
59743         Fix memmem test for mingw.
59744         * modules/memmem-tests (configure.ac): Check for alarm.
59745         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59746         it.
59747         * doc/functions/memmem.texi: New file.
59748         * doc/gnulib.texi (Function Substitutes): Add memmem.
59749         Reported by Bruno Haible.
59750
59751 2008-01-04  Bruno Haible  <bruno@clisp.org>
59752
59753         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59754         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59755         gl_HEADER_STRING_H_DEFAULTS.
59756
59757 2008-01-04  Eric Blake  <ebb9@byu.net>
59758
59759         Shorten duration of memmem test.
59760         * tests/test-memmem.c (main): Use alarm to declare failure if test
59761         is taking too long.
59762         Reported by Ralf Wildenhues.
59763
59764 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59765
59766         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59767         string, needed by strerror.
59768
59769 2008-01-03  Colin Watson  <cjwatson@debian.org>
59770             Bruno Haible  <bruno@clisp.org>
59771
59772         * doc/gnulib-tool.texi (Localization): New section.
59773
59774 2008-01-02  Bruno Haible  <bruno@clisp.org>
59775
59776         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59777         variables to 'unsigned char *' type.
59778         Reported by Paul Eggert.
59779
59780 2008-01-02  Jim Meyering  <jim@meyering.net>
59781
59782         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59783
59784 2007-12-31  Jim Meyering  <jim@meyering.net>
59785
59786         Avoid use of private FTS type name.
59787         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59788
59789 2007-12-30  Karl Berry  <karl@gnu.org>
59790
59791         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59792         work around defect in Texinfo and/or the standalone Info browser.
59793
59794 2007-12-30  Bruno Haible  <bruno@clisp.org>
59795
59796         Unify 5 copies of the KMP code.
59797         * lib/str-kmp.h: New file.
59798         * lib/c-strcasestr.c: Include str-kmp.h.
59799         (knuth_morris_pratt): Remove function.
59800         (c_strcasestr): Update.
59801         * lib/c-strstr.c: Include str-kmp.h.
59802         (knuth_morris_pratt): Remove function.
59803         (c_strcasestr): Update.
59804         * lib/mbscasestr.c: Include str-kmp.h.
59805         (knuth_morris_pratt_unibyte): Remove function.
59806         * lib/mbsstr.c: Include str-kmp.h.
59807         (knuth_morris_pratt_unibyte): Remove function.
59808         * lib/strcasestr.c: Include str-kmp.h.
59809         (knuth_morris_pratt): Remove function.
59810         (strcasestr): Update.
59811         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59812         * modules/c-strstr (Files): Likewise.
59813         * modules/mbscasestr (Files): Likewise.
59814         * modules/mbsstr (Files): Likewise.
59815         * modules/strcasestr (Files): Likewise.
59816         Suggested by Paul Eggert.
59817
59818 2007-12-30  Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59821         defined.
59822
59823 2007-12-30  Bruno Haible  <bruno@clisp.org>
59824
59825         * lib/xmalloca.h: Include xalloc.h.
59826         (xnmalloca): New macro.
59827
59828 2007-12-30  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/malloca.h (nmalloca): New macro.
59831         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59832         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59833         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59834         knuth_morris_pratt_multibyte): Likewise.
59835         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59836         knuth_morris_pratt_multibyte): Likewise.
59837         * lib/memmem.c (knuth_morris_pratt): Likewise.
59838         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59839
59840 2007-12-25  Bruno Haible  <bruno@clisp.org>
59841
59842         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59843         * lib/glob.c: Don't include openat.h.
59844         (link_exists2_p): Add back the code that deals with the
59845         !GLOB_ALTDIRFUNC case.
59846         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59847         let it do the filename concatenation.
59848         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59849         * modules/glob (Depends-on): Remove openat.
59850
59851 2007-12-31  Bruno Haible  <bruno@clisp.org>
59852
59853         * modules/dirfd (License): Change to LGPLv2+.
59854         Approved by Jim Meyering.
59855
59856 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59859         when multiplying M by sizeof (size_t).
59860
59861 2007-12-10  Martin Lambers  <marlam@marlam.de>
59862
59863         Override getpagesize on mingw.
59864         * lib/getpagesize.c: New file.
59865         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59866         * modules/getpagesize (Files): Add lib/getpagesize.c.
59867         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59869         REPLACE_GETPAGESIZE.
59870         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59871
59872 2007-12-25  Bruno Haible  <bruno@clisp.org>
59873
59874         * modules/localcharset (Notice): New field.
59875         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59876         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59877
59878 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59879             Bruno Haible  <bruno@clisp.org>
59880
59881         Avoid using the syntax symbol() in formatted documentation.
59882         * MODULES.html.sh (func_module): When replacing symbol() with a
59883         hyperlink, remove the parentheses. Show an error if some remain.
59884         Recognize and render the '...' syntax.
59885         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59886         Rework. Add paragraph about GCC's inlining.
59887         * doc/alloca.texi: Likewise.
59888         * doc/error.texi: Remove parentheses from symbol reference.
59889         * doc/gnulib-intro.texi: Likewise.
59890         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59891         * modules/fnmatch (Description): Reword to say "the ... function".
59892         * modules/full-read (Description): Likewise.
59893         * modules/full-write (Description): Likewise.
59894         * modules/safe-read (Description): Likewise.
59895         * modules/safe-write (Description): Likewise.
59896         * modules/strchrnul (Description): Likewise.
59897         * modules/trim (Description): Likewise.
59898         * modules/error (Description): Remove parentheses from symbol
59899         references.
59900         * modules/verror (Description): Likewise.
59901         Reported by Karl Berry.
59902
59903 2007-12-25  Bruno Haible  <bruno@clisp.org>
59904
59905         Fixup after 2007-10-16 commit.
59906         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59907
59908 2007-12-24  Bruno Haible  <bruno@clisp.org>
59909
59910         Make --enable-relocatable work with DESTDIR.
59911         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59912         to compute installdir from destprog.
59913         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59914         also set the RELOC_DESTDIR variable.
59915         Reported by Левашев Иван <octagram@bluebottle.com>.
59916
59917 2007-12-24  Bruno Haible  <bruno@clisp.org>
59918
59919         Fix link error due to xalloc_die().
59920         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59921         of xreadlink.
59922         * lib/relocwrapper.c: Update comments.
59923         * build-aux/install-reloc: Remove xreadlink.c from file list.
59924         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59925         xreadlink.c.
59926         Reported by Левашев Иван <octagram@bluebottle.com>.
59927
59928 2007-12-24  Bruno Haible  <bruno@clisp.org>
59929
59930         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59931         * lib/setenv.h: Remove file.
59932         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59933         lib/setenv.h.
59934         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59935         (Depends-on): Add stdlib.
59936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59937         gl_FUNC_UNSETENV.
59938         (Include): Replace setenv.h with <stdlib.h>.
59939         * modules/unsetenv: New file.
59940         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59941         * lib/unsetenv.c: Include <stdlib.h> first.
59942         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59943         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59944         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59945         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59946         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59947         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59949         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59950         * doc/functions/unsetenv.texi: Update.
59951         * modules/xsetenv (Depends-on): Add unsetenv.
59952         * modules/getdate (Depends-on): Likewise.
59953         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59954         * lib/xsetenv.c: Don't include setenv.h.
59955         * lib/getdate.y: Likewise.
59956         * lib/relocwrapper.c: Likewise.
59957         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59958         (Depends-on): Add stdlib.
59959         * NEWS: Mention the changes.
59960         Reported by Левашев Иван <octagram@bluebottle.com>.
59961
59962 2007-12-23  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59965         indentation.
59966
59967 2007-12-23  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/c-strcasestr.c: Add more comments.
59970         * lib/c-strstr.c: Likewise.
59971         * lib/mbscasestr.c: Likewise.
59972         * lib/mbsstr.c: Likewise.
59973         * lib/strcasestr.c: Likewise.
59974         * lib/memmem.c: Likewise.
59975
59976 2007-12-23  Bruno Haible  <bruno@clisp.org>
59977
59978         * tests/test-memmem.c: Include <string.h> first.
59979
59980 2007-12-22  Bruno Haible  <bruno@clisp.org>
59981
59982         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59983         the contents of $testsbase.
59984         Reported by Ralf Wildenhues.
59985
59986 2007-12-22  Bruno Haible  <bruno@clisp.org>
59987
59988         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59989         two variables local_ldadd_before, local_ldadd_last.
59990
59991 2007-12-20  Eric Blake  <ebb9@byu.net>
59992
59993         Work around circular library issue when cross-compiling.
59994         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59995         that progname.o does not need to pull in rpl_memcmp.
59996
59997 2007-12-19  Eric Blake  <ebb9@byu.net>
59998
59999         Fix memmem to avoid O(n^2) worst-case complexity.
60000         * lib/memmem.c (knuth_morris_pratt): New function.
60001         (memmem): Use it if first few naive iterations fail.
60002         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60003         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60004         * modules/memchr (License): Likewise.
60005         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60006         malloca.
60007         * tests/test-memmem.c: Rewrite, borrowing ideas from
60008         test-mbsstr1.c; the old version wouldn't even compile!
60009         * modules/memmem-tests: New file.
60010         * lib/string.in.h (rpl_memmem): Add declaration.
60011         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60013         REPLACE_MEMMEM.
60014
60015 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60018         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60019         before any system include files, and undef after them all.  This
60020         should fix a problem on VMS reported by John E. Malmberg in
60021         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60022
60023 2007-12-17  Eric Blake  <ebb9@byu.net>
60024
60025         Revert addition of verify, for BSD/OS.
60026         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60027         can't handle large files, for the sake of obsolete platforms.
60028         * modules/fseeko (Depends-on): Remove verify.
60029         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60030         * doc/functions/ftello.texi (ftello): Likewise.
60031         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60032         Reported by Larry Jones.
60033
60034 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60035
60036         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60037         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60038
60039 2007-12-17  Jim Meyering  <meyering@redhat.com>
60040
60041         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60042         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60043         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60044         * modules/getcwd (Depends-on): Add openat.
60045         Reported by Petr Salinger.
60046
60047 2007-12-17  Bruno Haible  <bruno@clisp.org>
60048
60049         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60050         avoid a segmentation fault of the configure test on x86_64 systems.
60051
60052 2007-12-15  Jim Meyering  <meyering@redhat.com>
60053
60054         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60055
60056 2007-12-13  Eric Blake  <ebb9@byu.net>
60057
60058         Another fseek test.
60059         * tests/test-fseek.c (main): Also test ungetc handling.
60060         * tests/test-fseeko.c (main): Likewise.
60061         * modules/fseeko (Depends-on): Add verify.
60062         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60063         large.
60064         Reported by Larry Jones.
60065
60066         Fix fseeko on mingw.
60067         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60068         seek.
60069
60070         Beef up fseek tests.
60071         * tests/test-fseek.c (main): Also test eof handling.
60072         * tests/test-fseeko.c (main): Likewise.
60073         Reported by Larry Jones.
60074
60075 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60076
60077         Fix fseeko on BSD-based platforms.
60078         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60079         successful seek.
60080
60081 2007-12-12  Eric Blake  <ebb9@byu.net>
60082
60083         Allow circular dependency of separate libtests.a
60084         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60085         when use_libtests.
60086
60087 2007-12-11  Eric Blake  <ebb9@byu.net>
60088
60089         Fix bug with -0.0L in previous patch.
60090         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60091         * tests/test-isnan.c (main): Also test on zeroes.
60092         * tests/test-isnanf.c (main): Likewise.
60093         * tests/test-isnanl.h (main): Likewise.
60094
60095         Detect pseudo-denormals on x86 even when cross-compiling.
60096         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60097         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60098         invalid bit patterns that happen to satisfy ==.
60099
60100         Avoid link failures with separate libtests.a.
60101         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60102         last, to satisfy circular dependencies.
60103
60104 2007-12-11  Eric Blake  <ebb9@byu.net>
60105         and Bruno Haible  <bruno@clisp.org>
60106
60107         Fix OpenBSD 4.0 <float.h> handling of long double.
60108         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60109         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60110         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60111
60112 2007-12-11  Jim Meyering  <meyering@redhat.com>
60113
60114         * users.txt: Add libvirt.
60115
60116         Support versions of autoconf prior to 2.59c.
60117         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60118         if it is not already defined.
60119
60120 2007-12-09  Bruno Haible  <bruno@clisp.org>
60121
60122         Let 'gnulib-tool --import' collect sources needed for the tests in
60123         tests/ rather than in lib/.
60124         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60125         argument. If true, add rules to generate libtests.a, and put libtests.a
60126         into $(LDADD). Consider source files in subdirectories and set
60127         uses_subdirs.
60128         (func_emit_initmacro_start, func_emit_initmacro_end,
60129         func_emit_initmacro_done): Pass all arguments explicitly.
60130         (func_import): Determine two module lists main_modules,
60131         testsrelated_modules. Determine use_libtests. Determine two variables
60132         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60133         instead of just sed_transform_lib_file. Determine two variables
60134         main_files and testsrelated_files. Compute 'files' as the union of
60135         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60136         func_add_or_update. In the generated gnulib-comp.m4, collect the
60137         object files for tests/ in different variables than those for lib/.
60138         Substitute LIBTESTS_LIBDEPS.
60139         (func_create_testdir): Combine the uses_subdirs results from
60140         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60141
60142 2007-12-09  Bruno Haible  <bruno@clisp.org>
60143
60144         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60145         the build-aux directory.
60146
60147 2007-12-09  Bruno Haible  <bruno@clisp.org>
60148
60149         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60150         introduced on 2006-09-09.
60151
60152 2007-12-07  Jim Meyering  <meyering@redhat.com>
60153
60154         Let these macros work also with autoconf-2.59.
60155         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60156         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60158
60159 2007-12-06  Jim Meyering  <meyering@redhat.com>
60160
60161         Avoid a configure-time syntax error in gl_FUNC_ACL.
60162         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60163         function in each branch, before testing the cache variable.
60164
60165 2007-12-04  Eric Blake  <ebb9@byu.net>
60166
60167         Make scripts executable.
60168         * build-aux/config.guess: Add execute permissions.
60169         * build-aux/config.sub: Likewise.
60170         * build-aux/gendocs.sh: Likewise.
60171
60172         Fix frexp on mingw.
60173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60174         cross-compiling.
60175         * doc/functions/frexp.texi (frexp): Document the bug.
60176
60177         Make cygwin fseeko check more reliable.
60178         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60179         version numbers, rather than unrelated feature check.
60180         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60181         * doc/functions/ftello.texi (ftello): Likewise.
60182         Reported by Bruno Haible.
60183
60184         * m4/strerror.m4: Bump version number.
60185
60186 2007-12-03  Bruno Haible  <bruno@clisp.org>
60187
60188         * doc/functions/mprotect.texi: Mention the mingw problem.
60189
60190 2007-12-03  Eric Blake  <ebb9@byu.net>
60191
60192         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60193         REPLACE_STRERROR is initialized before this macro.
60194
60195 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60198         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60199         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60200         put -lsec in even for programs other than 'ls'.  This fixes a problem
60201         for gettext reported by Bruno Haible in
60202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60203         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60204         Add support for Solaris 10.  This isn't efficient, but should get the
60205         job done for now.
60206
60207 2007-12-03  James Youngman  <jay@gnu.org>
60208
60209         * doc/regexprops-generic.texi: change "an close-group" to "a
60210         close-group" and "illegal" to "not allowed".
60211
60212 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60213
60214         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60215         pr_byname.h. Needed for the rare case when the maintainer has done
60216         "make maintainer-clean" in the source directory and then attempts a
60217         build outside the source directory.
60218         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60219         scripts_byname.h.
60220
60221 2007-12-02  Martin Lambers <marlam@marlam.de>
60222             Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/getpagesize.h: Remove file.
60225         * lib/unistd.in.h: Include declaration of getpagesize here.
60226         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60227         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60228         HAVE_SYS_PARAM_H.
60229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60230         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60231         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60232         (Depends-on): Add unistd.
60233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60234         (Include): Use <unistd.h> instead of getpagesize.h.
60235         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60236         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60237         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60238         gl_GETPAGESIZE invocation, already handled by module dependency.
60239         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60240
60241 2007-12-02  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/strings-tests: New file.
60244         * tests/test-strings.c: New file.
60245
60246         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60247         * lib/strings.in.h: New file.
60248         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60249         * m4/strings_h.m4: New file.
60250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60251         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60252         * modules/strings: New file.
60253         * modules/string (Makefile.am): Update.
60254         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60255         Reported by Karl Berry.
60256
60257 2007-12-01  Eric Blake  <ebb9@byu.net>
60258
60259         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60260         accommodate fix in cygwin 1.5.25.
60261
60262 2007-12-01  Jim Meyering  <meyering@redhat.com>
60263
60264         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60265         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60266         that would inhibit utf8-optimization of a regexp containing line-
60267         or buffer-anchors, e.g., `^', `$'.
60268
60269 2007-11-30  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60272         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60273         glthread_recursive_lock_init.
60274         * lib/lock.c (glthread_recursive_lock_init)
60275         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60277
60278 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         New function qset_acl, like set_acl but with syscall semantics.
60281         * lib/acl.h (qset_acl): New decl.
60282         * lib/acl.c (qset_acl): New function.
60283         (set_acl): Use new function.  Use more-consistent diagnostics.
60284
60285 2007-11-28  Jim Meyering  <meyering@redhat.com>
60286
60287         * modules/physmem (License): Change from GPL to LGPLv2+.
60288
60289 2007-11-26  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60292         'long double' type has excess precision.
60293         Reported by Jim Meyering in
60294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60295
60296 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60297
60298         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60299         Sync from <http://gnu.org/licenses>.
60300         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60301         with license text from same location.
60302         * doc/maintain.texi, doc/standards.texi:  Sync from
60303         <http://savannah.gnu.org/projects/gnustandards>.
60304
60305 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60306         and Jim Meyering  <meyering@redhat.com>
60307
60308         Adjust getdate' grammar to accept a slightly more regular language.
60309         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60310         Before, the former was rejected.
60311         * lib/getdate.y (digits_to_date_time): New function, factored
60312         out of ...
60313         (number): ...here.  Just call digits_to_date_time.
60314         (hybrid): New non-terminal to handle an <unsigned number,
60315         signed relative offset> sequence consistently.
60316
60317 2007-11-18  Jim Meyering  <meyering@redhat.com>
60318
60319         Pull my changes from coreutils:
60320         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60321         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60322         use of $gnulib_tool_option_extras, so that it's separated from the
60323         preceding argument.
60324
60325         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60326         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60327         parent destination directories before copying a file into place.
60328
60329 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60330
60331         bootstrap: work also with 4-argument variant of AC_INIT
60332         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60333
60334 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         Port test-getaddrinfo to Solaris.
60337         Problem reported by Bruno Haible in
60338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60339         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60340         explanation of setting 'hints'.
60341         Don't reject an implementation merely because it returns EAI_SERVICE.
60342         (EAI_SERVICE): Define to 0 if not defined.
60343
60344 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60345
60346         The license of gnu-make and posix-shell is now "GPLed build tool".
60347         * modules/gnu-make (License): Likewise.
60348         * modules/posix-shell (License): Likewise.
60349
60350         New module posix-shell, for determining a POSIX shell
60351         or perhaps something that is close enough to a POSIX shell.
60352         * m4/posix-shell.m4: New file.
60353         * modules/posix-shell: New file.
60354
60355         * MODULES.html.sh: Mention new module.
60356
60357         New module gnu-make, for determining whether we're using GNU Make.
60358         * m4/gnu-make.m4: New file.
60359         * modules/gnu-make: New file.
60360         * MODULES.html.sh: Mention new module.
60361
60362 2007-11-14  Jim Meyering  <meyering@redhat.com>
60363
60364         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60365         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60366         use this macro to create a function _definition_.
60367         Remove useless "#undef ARGMATCH_DIE".
60368
60369 2007-11-14  Bruno Haible  <bruno@clisp.org>
60370
60371         * lib/config.charset: Update for OpenBSD 4.1.
60372         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60373
60374 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         Document 64-bit #if problems in stdint.texi.
60377         * doc/headers/stdint.texi (stdint.h): Mention problems with
60378         64-bit-#if, and how to work around them.
60379
60380         Don't insist on 'long long int' support in the preprocessor.  It
60381         breaks too many things.  For example, PRIdMAX still uses a 'long
60382         long int' format with the latest Sun compiler, even though
60383         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60384         preprocessor problem.  This causes the latest coreutils to dump
60385         core on Solaris 10 sparc with the Sun C compiler.
60386         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60387         the troublesome expressions at configure-time, not at #if-time.
60388         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60389         preprocessor.
60390         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60391         compile-time C checks, done at 'configure'-time.
60392         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60393         * modules/inttypes (Makefile): Substitute the new symbols that
60394         gl_INTTYPES_H now generates.
60395         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60396
60397 2007-11-12  Bruno Haible  <bruno@clisp.org>
60398
60399         Tests for Unicode character classification functions.
60400
60401         * modules/unictype/bidicategory-byname-tests: New file.
60402         * modules/unictype/bidicategory-name-tests: New file.
60403         * modules/unictype/bidicategory-of-tests: New file.
60404         * modules/unictype/bidicategory-test-tests: New file.
60405         * modules/unictype/block-list-tests: New file.
60406         * modules/unictype/block-of-tests: New file.
60407         * modules/unictype/block-test-tests: New file.
60408         * modules/unictype/category-C-tests: New file.
60409         * modules/unictype/category-Cc-tests: New file.
60410         * modules/unictype/category-Cf-tests: New file.
60411         * modules/unictype/category-Cn-tests: New file.
60412         * modules/unictype/category-Co-tests: New file.
60413         * modules/unictype/category-Cs-tests: New file.
60414         * modules/unictype/category-L-tests: New file.
60415         * modules/unictype/category-Ll-tests: New file.
60416         * modules/unictype/category-Lm-tests: New file.
60417         * modules/unictype/category-Lo-tests: New file.
60418         * modules/unictype/category-Lt-tests: New file.
60419         * modules/unictype/category-Lu-tests: New file.
60420         * modules/unictype/category-M-tests: New file.
60421         * modules/unictype/category-Mc-tests: New file.
60422         * modules/unictype/category-Me-tests: New file.
60423         * modules/unictype/category-Mn-tests: New file.
60424         * modules/unictype/category-N-tests: New file.
60425         * modules/unictype/category-Nd-tests: New file.
60426         * modules/unictype/category-Nl-tests: New file.
60427         * modules/unictype/category-No-tests: New file.
60428         * modules/unictype/category-P-tests: New file.
60429         * modules/unictype/category-Pc-tests: New file.
60430         * modules/unictype/category-Pd-tests: New file.
60431         * modules/unictype/category-Pe-tests: New file.
60432         * modules/unictype/category-Pf-tests: New file.
60433         * modules/unictype/category-Pi-tests: New file.
60434         * modules/unictype/category-Po-tests: New file.
60435         * modules/unictype/category-Ps-tests: New file.
60436         * modules/unictype/category-S-tests: New file.
60437         * modules/unictype/category-Sc-tests: New file.
60438         * modules/unictype/category-Sk-tests: New file.
60439         * modules/unictype/category-Sm-tests: New file.
60440         * modules/unictype/category-So-tests: New file.
60441         * modules/unictype/category-Z-tests: New file.
60442         * modules/unictype/category-Zl-tests: New file.
60443         * modules/unictype/category-Zp-tests: New file.
60444         * modules/unictype/category-Zs-tests: New file.
60445         * modules/unictype/category-and-not-tests: New file.
60446         * modules/unictype/category-and-tests: New file.
60447         * modules/unictype/category-byname-tests: New file.
60448         * modules/unictype/category-name-tests: New file.
60449         * modules/unictype/category-none-tests: New file.
60450         * modules/unictype/category-of-tests: New file.
60451         * modules/unictype/category-or-tests: New file.
60452         * modules/unictype/category-test-withtable-tests: New file.
60453         * modules/unictype/combining-class-tests: New file.
60454         * modules/unictype/ctype-alnum-tests: New file.
60455         * modules/unictype/ctype-alpha-tests: New file.
60456         * modules/unictype/ctype-blank-tests: New file.
60457         * modules/unictype/ctype-cntrl-tests: New file.
60458         * modules/unictype/ctype-digit-tests: New file.
60459         * modules/unictype/ctype-graph-tests: New file.
60460         * modules/unictype/ctype-lower-tests: New file.
60461         * modules/unictype/ctype-print-tests: New file.
60462         * modules/unictype/ctype-punct-tests: New file.
60463         * modules/unictype/ctype-space-tests: New file.
60464         * modules/unictype/ctype-upper-tests: New file.
60465         * modules/unictype/ctype-xdigit-tests: New file.
60466         * modules/unictype/decimal-digit-tests: New file.
60467         * modules/unictype/digit-tests: New file.
60468         * modules/unictype/mirror-tests: New file.
60469         * modules/unictype/numeric-tests: New file.
60470         * modules/unictype/property-alphabetic-tests: New file.
60471         * modules/unictype/property-ascii-hex-digit-tests: New file.
60472         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60473         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60474         * modules/unictype/property-bidi-block-separator-tests: New file.
60475         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60476         * modules/unictype/property-bidi-common-separator-tests: New file.
60477         * modules/unictype/property-bidi-control-tests: New file.
60478         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60479         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60480         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60481         * modules/unictype/property-bidi-european-digit-tests: New file.
60482         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60483         * modules/unictype/property-bidi-left-to-right-tests: New file.
60484         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60485         * modules/unictype/property-bidi-other-neutral-tests: New file.
60486         * modules/unictype/property-bidi-pdf-tests: New file.
60487         * modules/unictype/property-bidi-segment-separator-tests: New file.
60488         * modules/unictype/property-bidi-whitespace-tests: New file.
60489         * modules/unictype/property-byname-tests: New file.
60490         * modules/unictype/property-combining-tests: New file.
60491         * modules/unictype/property-composite-tests: New file.
60492         * modules/unictype/property-currency-symbol-tests: New file.
60493         * modules/unictype/property-dash-tests: New file.
60494         * modules/unictype/property-decimal-digit-tests: New file.
60495         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60496         * modules/unictype/property-deprecated-tests: New file.
60497         * modules/unictype/property-diacritic-tests: New file.
60498         * modules/unictype/property-extender-tests: New file.
60499         * modules/unictype/property-format-control-tests: New file.
60500         * modules/unictype/property-grapheme-base-tests: New file.
60501         * modules/unictype/property-grapheme-extend-tests: New file.
60502         * modules/unictype/property-grapheme-link-tests: New file.
60503         * modules/unictype/property-hex-digit-tests: New file.
60504         * modules/unictype/property-hyphen-tests: New file.
60505         * modules/unictype/property-id-continue-tests: New file.
60506         * modules/unictype/property-id-start-tests: New file.
60507         * modules/unictype/property-ideographic-tests: New file.
60508         * modules/unictype/property-ids-binary-operator-tests: New file.
60509         * modules/unictype/property-ids-trinary-operator-tests: New file.
60510         * modules/unictype/property-ignorable-control-tests: New file.
60511         * modules/unictype/property-iso-control-tests: New file.
60512         * modules/unictype/property-join-control-tests: New file.
60513         * modules/unictype/property-left-of-pair-tests: New file.
60514         * modules/unictype/property-line-separator-tests: New file.
60515         * modules/unictype/property-logical-order-exception-tests: New file.
60516         * modules/unictype/property-lowercase-tests: New file.
60517         * modules/unictype/property-math-tests: New file.
60518         * modules/unictype/property-non-break-tests: New file.
60519         * modules/unictype/property-not-a-character-tests: New file.
60520         * modules/unictype/property-numeric-tests: New file.
60521         * modules/unictype/property-other-alphabetic-tests: New file.
60522         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60523         * modules/unictype/property-other-grapheme-extend-tests: New file.
60524         * modules/unictype/property-other-id-continue-tests: New file.
60525         * modules/unictype/property-other-id-start-tests: New file.
60526         * modules/unictype/property-other-lowercase-tests: New file.
60527         * modules/unictype/property-other-math-tests: New file.
60528         * modules/unictype/property-other-uppercase-tests: New file.
60529         * modules/unictype/property-paired-punctuation-tests: New file.
60530         * modules/unictype/property-paragraph-separator-tests: New file.
60531         * modules/unictype/property-pattern-syntax-tests: New file.
60532         * modules/unictype/property-pattern-white-space-tests: New file.
60533         * modules/unictype/property-private-use-tests: New file.
60534         * modules/unictype/property-punctuation-tests: New file.
60535         * modules/unictype/property-quotation-mark-tests: New file.
60536         * modules/unictype/property-radical-tests: New file.
60537         * modules/unictype/property-sentence-terminal-tests: New file.
60538         * modules/unictype/property-soft-dotted-tests: New file.
60539         * modules/unictype/property-space-tests: New file.
60540         * modules/unictype/property-terminal-punctuation-tests: New file.
60541         * modules/unictype/property-test-tests: New file.
60542         * modules/unictype/property-titlecase-tests: New file.
60543         * modules/unictype/property-unassigned-code-value-tests: New file.
60544         * modules/unictype/property-unified-ideograph-tests: New file.
60545         * modules/unictype/property-uppercase-tests: New file.
60546         * modules/unictype/property-variation-selector-tests: New file.
60547         * modules/unictype/property-white-space-tests: New file.
60548         * modules/unictype/property-xid-continue-tests: New file.
60549         * modules/unictype/property-xid-start-tests: New file.
60550         * modules/unictype/property-zero-width-tests: New file.
60551         * modules/unictype/scripts-tests: New file.
60552         * modules/unictype/syntax-c-ident-tests: New file.
60553         * modules/unictype/syntax-c-whitespace-tests: New file.
60554         * modules/unictype/syntax-java-ident-tests: New file.
60555         * modules/unictype/syntax-java-whitespace-tests: New file.
60556         * tests/unictype/test-bidi_byname.c: New file.
60557         * tests/unictype/test-bidi_name.c: New file.
60558         * tests/unictype/test-bidi_of.c: New file.
60559         * tests/unictype/test-bidi_test.c: New file.
60560         * tests/unictype/test-block_list.c: New file.
60561         * tests/unictype/test-block_of.c: New file.
60562         * tests/unictype/test-block_test.c: New file.
60563         * tests/unictype/test-categ_and.c: New file.
60564         * tests/unictype/test-categ_and_not.c: New file.
60565         * tests/unictype/test-categ_byname.c: New file.
60566         * tests/unictype/test-categ_name.c: New file.
60567         * tests/unictype/test-categ_none.c: New file.
60568         * tests/unictype/test-categ_of.c: New file.
60569         * tests/unictype/test-categ_or.c: New file.
60570         * tests/unictype/test-categ_test_withtable.c: New file.
60571         * tests/unictype/test-combining.c: New file.
60572         * tests/unictype/test-decdigit.c: New file.
60573         * tests/unictype/test-digit.c: New file.
60574         * tests/unictype/test-mirror.c: New file.
60575         * tests/unictype/test-numeric.c: New file.
60576         * tests/unictype/test-pr_byname.c: New file.
60577         * tests/unictype/test-pr_test.c: New file.
60578         * tests/unictype/test-predicate-part1.h: New file.
60579         * tests/unictype/test-predicate-part2.h: New file.
60580         * tests/unictype/test-scripts.c: New file.
60581         * tests/unictype/test-sy_c_ident.c: New file.
60582         * tests/unictype/test-sy_java_ident.c: New file.
60583
60584         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60585         for Unicode 5.0.0.
60586         * tests/unictype/test-categ_Cc.c: Likewise.
60587         * tests/unictype/test-categ_Cf.c: Likewise.
60588         * tests/unictype/test-categ_Cn.c: Likewise.
60589         * tests/unictype/test-categ_Co.c: Likewise.
60590         * tests/unictype/test-categ_Cs.c: Likewise.
60591         * tests/unictype/test-categ_L.c: Likewise.
60592         * tests/unictype/test-categ_Ll.c: Likewise.
60593         * tests/unictype/test-categ_Lm.c: Likewise.
60594         * tests/unictype/test-categ_Lo.c: Likewise.
60595         * tests/unictype/test-categ_Lt.c: Likewise.
60596         * tests/unictype/test-categ_Lu.c: Likewise.
60597         * tests/unictype/test-categ_M.c: Likewise.
60598         * tests/unictype/test-categ_Mc.c: Likewise.
60599         * tests/unictype/test-categ_Me.c: Likewise.
60600         * tests/unictype/test-categ_Mn.c: Likewise.
60601         * tests/unictype/test-categ_N.c: Likewise.
60602         * tests/unictype/test-categ_Nd.c: Likewise.
60603         * tests/unictype/test-categ_Nl.c: Likewise.
60604         * tests/unictype/test-categ_No.c: Likewise.
60605         * tests/unictype/test-categ_P.c: Likewise.
60606         * tests/unictype/test-categ_Pc.c: Likewise.
60607         * tests/unictype/test-categ_Pd.c: Likewise.
60608         * tests/unictype/test-categ_Pe.c: Likewise.
60609         * tests/unictype/test-categ_Pf.c: Likewise.
60610         * tests/unictype/test-categ_Pi.c: Likewise.
60611         * tests/unictype/test-categ_Po.c: Likewise.
60612         * tests/unictype/test-categ_Ps.c: Likewise.
60613         * tests/unictype/test-categ_S.c: Likewise.
60614         * tests/unictype/test-categ_Sc.c: Likewise.
60615         * tests/unictype/test-categ_Sk.c: Likewise.
60616         * tests/unictype/test-categ_Sm.c: Likewise.
60617         * tests/unictype/test-categ_So.c: Likewise.
60618         * tests/unictype/test-categ_Z.c: Likewise.
60619         * tests/unictype/test-categ_Zl.c: Likewise.
60620         * tests/unictype/test-categ_Zp.c: Likewise.
60621         * tests/unictype/test-categ_Zs.c: Likewise.
60622         * tests/unictype/test-ctype_alnum.c: Likewise.
60623         * tests/unictype/test-ctype_alpha.c: Likewise.
60624         * tests/unictype/test-ctype_blank.c: Likewise.
60625         * tests/unictype/test-ctype_cntrl.c: Likewise.
60626         * tests/unictype/test-ctype_digit.c: Likewise.
60627         * tests/unictype/test-ctype_graph.c: Likewise.
60628         * tests/unictype/test-ctype_lower.c: Likewise.
60629         * tests/unictype/test-ctype_print.c: Likewise.
60630         * tests/unictype/test-ctype_punct.c: Likewise.
60631         * tests/unictype/test-ctype_space.c: Likewise.
60632         * tests/unictype/test-ctype_upper.c: Likewise.
60633         * tests/unictype/test-ctype_xdigit.c: Likewise.
60634         * tests/unictype/test-decdigit.h: Likewise.
60635         * tests/unictype/test-digit.h: Likewise.
60636         * tests/unictype/test-numeric.h: Likewise.
60637         * tests/unictype/test-pr_alphabetic.c: Likewise.
60638         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60639         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60640         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60641         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60642         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60643         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60644         * tests/unictype/test-pr_bidi_control.c: Likewise.
60645         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60646         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60647         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60648         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60649         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60650         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60651         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60652         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60653         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60654         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60655         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60656         * tests/unictype/test-pr_combining.c: Likewise.
60657         * tests/unictype/test-pr_composite.c: Likewise.
60658         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60659         * tests/unictype/test-pr_dash.c: Likewise.
60660         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60661         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60662         * tests/unictype/test-pr_deprecated.c: Likewise.
60663         * tests/unictype/test-pr_diacritic.c: Likewise.
60664         * tests/unictype/test-pr_extender.c: Likewise.
60665         * tests/unictype/test-pr_format_control.c: Likewise.
60666         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60667         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60668         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60669         * tests/unictype/test-pr_hex_digit.c: Likewise.
60670         * tests/unictype/test-pr_hyphen.c: Likewise.
60671         * tests/unictype/test-pr_id_continue.c: Likewise.
60672         * tests/unictype/test-pr_id_start.c: Likewise.
60673         * tests/unictype/test-pr_ideographic.c: Likewise.
60674         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60675         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60676         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60677         * tests/unictype/test-pr_iso_control.c: Likewise.
60678         * tests/unictype/test-pr_join_control.c: Likewise.
60679         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60680         * tests/unictype/test-pr_line_separator.c: Likewise.
60681         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60682         * tests/unictype/test-pr_lowercase.c: Likewise.
60683         * tests/unictype/test-pr_math.c: Likewise.
60684         * tests/unictype/test-pr_non_break.c: Likewise.
60685         * tests/unictype/test-pr_not_a_character.c: Likewise.
60686         * tests/unictype/test-pr_numeric.c: Likewise.
60687         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60688         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60689         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60690         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60691         * tests/unictype/test-pr_other_id_start.c: Likewise.
60692         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60693         * tests/unictype/test-pr_other_math.c: Likewise.
60694         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60695         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60696         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60697         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60698         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60699         * tests/unictype/test-pr_private_use.c: Likewise.
60700         * tests/unictype/test-pr_punctuation.c: Likewise.
60701         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60702         * tests/unictype/test-pr_radical.c: Likewise.
60703         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60704         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60705         * tests/unictype/test-pr_space.c: Likewise.
60706         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60707         * tests/unictype/test-pr_titlecase.c: Likewise.
60708         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60709         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60710         * tests/unictype/test-pr_uppercase.c: Likewise.
60711         * tests/unictype/test-pr_variation_selector.c: Likewise.
60712         * tests/unictype/test-pr_white_space.c: Likewise.
60713         * tests/unictype/test-pr_xid_continue.c: Likewise.
60714         * tests/unictype/test-pr_xid_start.c: Likewise.
60715         * tests/unictype/test-pr_zero_width.c: Likewise.
60716         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60717         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60718
60719 2007-11-12  Bruno Haible  <bruno@clisp.org>
60720
60721         Unicode character classification functions.
60722         * lib/unictype.h: New file.
60723         * modules/unictype/base: New file.
60724         * modules/unictype/category-L: New file.
60725         * modules/unictype/category-Lu: New file.
60726         * modules/unictype/category-Ll: New file.
60727         * modules/unictype/category-Lt: New file.
60728         * modules/unictype/category-Lm: New file.
60729         * modules/unictype/category-Lo: New file.
60730         * modules/unictype/category-M: New file.
60731         * modules/unictype/category-Mn: New file.
60732         * modules/unictype/category-Mc: New file.
60733         * modules/unictype/category-Me: New file.
60734         * modules/unictype/category-N: New file.
60735         * modules/unictype/category-Nd: New file.
60736         * modules/unictype/category-Nl: New file.
60737         * modules/unictype/category-No: New file.
60738         * modules/unictype/category-P: New file.
60739         * modules/unictype/category-Pc: New file.
60740         * modules/unictype/category-Pd: New file.
60741         * modules/unictype/category-Ps: New file.
60742         * modules/unictype/category-Pe: New file.
60743         * modules/unictype/category-Pi: New file.
60744         * modules/unictype/category-Pf: New file.
60745         * modules/unictype/category-Po: New file.
60746         * modules/unictype/category-S: New file.
60747         * modules/unictype/category-Sm: New file.
60748         * modules/unictype/category-Sc: New file.
60749         * modules/unictype/category-Sk: New file.
60750         * modules/unictype/category-So: New file.
60751         * modules/unictype/category-Z: New file.
60752         * modules/unictype/category-Zs: New file.
60753         * modules/unictype/category-Zl: New file.
60754         * modules/unictype/category-Zp: New file.
60755         * modules/unictype/category-C: New file.
60756         * modules/unictype/category-Cc: New file.
60757         * modules/unictype/category-Cf: New file.
60758         * modules/unictype/category-Cs: New file.
60759         * modules/unictype/category-Co: New file.
60760         * modules/unictype/category-Cn: New file.
60761         * modules/unictype/category-or: New file.
60762         * modules/unictype/category-of: New file.
60763         * modules/unictype/category-test: New file.
60764         * modules/unictype/category-test-withtable: New file.
60765         * modules/unictype/category-byname: New file.
60766         * modules/unictype/category-none: New file.
60767         * modules/unictype/category-and: New file.
60768         * modules/unictype/category-and-not: New file.
60769         * modules/unictype/category-name: New file.
60770         * modules/unictype/combining-class: New file.
60771         * modules/unictype/category-all: New file.
60772         * modules/unictype/bidicategory-all: New file.
60773         * modules/unictype/bidicategory-byname: New file.
60774         * modules/unictype/bidicategory-name: New file.
60775         * modules/unictype/bidicategory-of: New file.
60776         * modules/unictype/bidicategory-test: New file.
60777         * modules/unictype/decimal-digit: New file.
60778         * modules/unictype/digit: New file.
60779         * modules/unictype/numeric: New file.
60780         * modules/unictype/mirror: New file.
60781         * modules/unictype/property-white-space: New file.
60782         * modules/unictype/property-alphabetic: New file.
60783         * modules/unictype/property-other-alphabetic: New file.
60784         * modules/unictype/property-not-a-character: New file.
60785         * modules/unictype/property-default-ignorable-code-point: New file.
60786         * modules/unictype/property-other-default-ignorable-code-point: New
60787         file.
60788         * modules/unictype/property-deprecated: New file.
60789         * modules/unictype/property-logical-order-exception: New file.
60790         * modules/unictype/property-variation-selector: New file.
60791         * modules/unictype/property-private-use: New file.
60792         * modules/unictype/property-unassigned-code-value: New file.
60793         * modules/unictype/property-uppercase: New file.
60794         * modules/unictype/property-other-uppercase: New file.
60795         * modules/unictype/property-lowercase: New file.
60796         * modules/unictype/property-other-lowercase: New file.
60797         * modules/unictype/property-titlecase: New file.
60798         * modules/unictype/property-soft-dotted: New file.
60799         * modules/unictype/property-id-start: New file.
60800         * modules/unictype/property-other-id-start: New file.
60801         * modules/unictype/property-id-continue: New file.
60802         * modules/unictype/property-other-id-continue: New file.
60803         * modules/unictype/property-xid-start: New file.
60804         * modules/unictype/property-xid-continue: New file.
60805         * modules/unictype/property-pattern-white-space: New file.
60806         * modules/unictype/property-pattern-syntax: New file.
60807         * modules/unictype/property-join-control: New file.
60808         * modules/unictype/property-grapheme-base: New file.
60809         * modules/unictype/property-grapheme-extend: New file.
60810         * modules/unictype/property-other-grapheme-extend: New file.
60811         * modules/unictype/property-grapheme-link: New file.
60812         * modules/unictype/property-bidi-control: New file.
60813         * modules/unictype/property-bidi-left-to-right: New file.
60814         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60815         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60816         * modules/unictype/property-bidi-european-digit: New file.
60817         * modules/unictype/property-bidi-eur-num-separator: New file.
60818         * modules/unictype/property-bidi-eur-num-terminator: New file.
60819         * modules/unictype/property-bidi-arabic-digit: New file.
60820         * modules/unictype/property-bidi-common-separator: New file.
60821         * modules/unictype/property-bidi-block-separator: New file.
60822         * modules/unictype/property-bidi-segment-separator: New file.
60823         * modules/unictype/property-bidi-whitespace: New file.
60824         * modules/unictype/property-bidi-non-spacing-mark: New file.
60825         * modules/unictype/property-bidi-boundary-neutral: New file.
60826         * modules/unictype/property-bidi-pdf: New file.
60827         * modules/unictype/property-bidi-embedding-or-override: New file.
60828         * modules/unictype/property-bidi-other-neutral: New file.
60829         * modules/unictype/property-hex-digit: New file.
60830         * modules/unictype/property-ascii-hex-digit: New file.
60831         * modules/unictype/property-ideographic: New file.
60832         * modules/unictype/property-unified-ideograph: New file.
60833         * modules/unictype/property-radical: New file.
60834         * modules/unictype/property-ids-binary-operator: New file.
60835         * modules/unictype/property-ids-trinary-operator: New file.
60836         * modules/unictype/property-zero-width: New file.
60837         * modules/unictype/property-space: New file.
60838         * modules/unictype/property-non-break: New file.
60839         * modules/unictype/property-iso-control: New file.
60840         * modules/unictype/property-format-control: New file.
60841         * modules/unictype/property-dash: New file.
60842         * modules/unictype/property-hyphen: New file.
60843         * modules/unictype/property-punctuation: New file.
60844         * modules/unictype/property-line-separator: New file.
60845         * modules/unictype/property-paragraph-separator: New file.
60846         * modules/unictype/property-quotation-mark: New file.
60847         * modules/unictype/property-sentence-terminal: New file.
60848         * modules/unictype/property-terminal-punctuation: New file.
60849         * modules/unictype/property-currency-symbol: New file.
60850         * modules/unictype/property-math: New file.
60851         * modules/unictype/property-other-math: New file.
60852         * modules/unictype/property-paired-punctuation: New file.
60853         * modules/unictype/property-left-of-pair: New file.
60854         * modules/unictype/property-combining: New file.
60855         * modules/unictype/property-composite: New file.
60856         * modules/unictype/property-decimal-digit: New file.
60857         * modules/unictype/property-numeric: New file.
60858         * modules/unictype/property-diacritic: New file.
60859         * modules/unictype/property-extender: New file.
60860         * modules/unictype/property-ignorable-control: New file.
60861         * modules/unictype/property-test: New file.
60862         * modules/unictype/property-byname: New file.
60863         * modules/unictype/property-all: New file.
60864         * modules/unictype/scripts: New file.
60865         * modules/unictype/scripts-all: New file.
60866         * modules/unictype/block-of: New file.
60867         * modules/unictype/block-test: New file.
60868         * modules/unictype/block-list: New file.
60869         * modules/unictype/block-all: New file.
60870         * modules/unictype/syntax-c-whitespace: New file.
60871         * modules/unictype/syntax-java-whitespace: New file.
60872         * modules/unictype/syntax-c-ident: New file.
60873         * modules/unictype/syntax-java-ident: New file.
60874         * modules/unictype/ctype-alnum: New file.
60875         * modules/unictype/ctype-alpha: New file.
60876         * modules/unictype/ctype-cntrl: New file.
60877         * modules/unictype/ctype-digit: New file.
60878         * modules/unictype/ctype-graph: New file.
60879         * modules/unictype/ctype-lower: New file.
60880         * modules/unictype/ctype-print: New file.
60881         * modules/unictype/ctype-punct: New file.
60882         * modules/unictype/ctype-space: New file.
60883         * modules/unictype/ctype-upper: New file.
60884         * modules/unictype/ctype-xdigit: New file.
60885         * modules/unictype/ctype-blank: New file.
60886         * lib/unictype/bidi_byname.c: New file.
60887         * lib/unictype/bidi_name.c: New file.
60888         * lib/unictype/bidi_of.c: New file.
60889         * lib/unictype/bidi_test.c: New file.
60890         * lib/unictype/bitmap.h: New file.
60891         * lib/unictype/block_test.c: New file.
60892         * lib/unictype/blocks.c: New file.
60893         * lib/unictype/categ_C.c: New file.
60894         * lib/unictype/categ_Cc.c: New file.
60895         * lib/unictype/categ_Cf.c: New file.
60896         * lib/unictype/categ_Cn.c: New file.
60897         * lib/unictype/categ_Co.c: New file.
60898         * lib/unictype/categ_Cs.c: New file.
60899         * lib/unictype/categ_L.c: New file.
60900         * lib/unictype/categ_Ll.c: New file.
60901         * lib/unictype/categ_Lm.c: New file.
60902         * lib/unictype/categ_Lo.c: New file.
60903         * lib/unictype/categ_Lt.c: New file.
60904         * lib/unictype/categ_Lu.c: New file.
60905         * lib/unictype/categ_M.c: New file.
60906         * lib/unictype/categ_Mc.c: New file.
60907         * lib/unictype/categ_Me.c: New file.
60908         * lib/unictype/categ_Mn.c: New file.
60909         * lib/unictype/categ_N.c: New file.
60910         * lib/unictype/categ_Nd.c: New file.
60911         * lib/unictype/categ_Nl.c: New file.
60912         * lib/unictype/categ_No.c: New file.
60913         * lib/unictype/categ_P.c: New file.
60914         * lib/unictype/categ_Pc.c: New file.
60915         * lib/unictype/categ_Pd.c: New file.
60916         * lib/unictype/categ_Pe.c: New file.
60917         * lib/unictype/categ_Pf.c: New file.
60918         * lib/unictype/categ_Pi.c: New file.
60919         * lib/unictype/categ_Po.c: New file.
60920         * lib/unictype/categ_Ps.c: New file.
60921         * lib/unictype/categ_S.c: New file.
60922         * lib/unictype/categ_Sc.c: New file.
60923         * lib/unictype/categ_Sk.c: New file.
60924         * lib/unictype/categ_Sm.c: New file.
60925         * lib/unictype/categ_So.c: New file.
60926         * lib/unictype/categ_Z.c: New file.
60927         * lib/unictype/categ_Zl.c: New file.
60928         * lib/unictype/categ_Zp.c: New file.
60929         * lib/unictype/categ_Zs.c: New file.
60930         * lib/unictype/categ_and.c: New file.
60931         * lib/unictype/categ_and_not.c: New file.
60932         * lib/unictype/categ_byname.c: New file.
60933         * lib/unictype/categ_name.c: New file.
60934         * lib/unictype/categ_none.c: New file.
60935         * lib/unictype/categ_of.c: New file.
60936         * lib/unictype/categ_or.c: New file.
60937         * lib/unictype/categ_test.c: New file.
60938         * lib/unictype/combining.c: New file.
60939         * lib/unictype/ctype_alnum.c: New file.
60940         * lib/unictype/ctype_alpha.c: New file.
60941         * lib/unictype/ctype_blank.c: New file.
60942         * lib/unictype/ctype_cntrl.c: New file.
60943         * lib/unictype/ctype_digit.c: New file.
60944         * lib/unictype/ctype_graph.c: New file.
60945         * lib/unictype/ctype_lower.c: New file.
60946         * lib/unictype/ctype_print.c: New file.
60947         * lib/unictype/ctype_punct.c: New file.
60948         * lib/unictype/ctype_space.c: New file.
60949         * lib/unictype/ctype_upper.c: New file.
60950         * lib/unictype/ctype_xdigit.c: New file.
60951         * lib/unictype/decdigit.c: New file.
60952         * lib/unictype/digit.c: New file.
60953         * lib/unictype/identsyntaxmap.h: New file.
60954         * lib/unictype/mirror.c: New file.
60955         * lib/unictype/numeric.c: New file.
60956         * lib/unictype/pr_alphabetic.c: New file.
60957         * lib/unictype/pr_ascii_hex_digit.c: New file.
60958         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60959         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60960         * lib/unictype/pr_bidi_block_separator.c: New file.
60961         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60962         * lib/unictype/pr_bidi_common_separator.c: New file.
60963         * lib/unictype/pr_bidi_control.c: New file.
60964         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60965         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60966         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60967         * lib/unictype/pr_bidi_european_digit.c: New file.
60968         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60969         * lib/unictype/pr_bidi_left_to_right.c: New file.
60970         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60971         * lib/unictype/pr_bidi_other_neutral.c: New file.
60972         * lib/unictype/pr_bidi_pdf.c: New file.
60973         * lib/unictype/pr_bidi_segment_separator.c: New file.
60974         * lib/unictype/pr_bidi_whitespace.c: New file.
60975         * lib/unictype/pr_byname.c: New file.
60976         * lib/unictype/pr_byname.gperf: New file.
60977         * lib/unictype/pr_combining.c: New file.
60978         * lib/unictype/pr_composite.c: New file.
60979         * lib/unictype/pr_currency_symbol.c: New file.
60980         * lib/unictype/pr_dash.c: New file.
60981         * lib/unictype/pr_decimal_digit.c: New file.
60982         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60983         * lib/unictype/pr_deprecated.c: New file.
60984         * lib/unictype/pr_diacritic.c: New file.
60985         * lib/unictype/pr_extender.c: New file.
60986         * lib/unictype/pr_format_control.c: New file.
60987         * lib/unictype/pr_grapheme_base.c: New file.
60988         * lib/unictype/pr_grapheme_extend.c: New file.
60989         * lib/unictype/pr_grapheme_link.c: New file.
60990         * lib/unictype/pr_hex_digit.c: New file.
60991         * lib/unictype/pr_hyphen.c: New file.
60992         * lib/unictype/pr_id_continue.c: New file.
60993         * lib/unictype/pr_id_start.c: New file.
60994         * lib/unictype/pr_ideographic.c: New file.
60995         * lib/unictype/pr_ids_binary_operator.c: New file.
60996         * lib/unictype/pr_ids_trinary_operator.c: New file.
60997         * lib/unictype/pr_ignorable_control.c: New file.
60998         * lib/unictype/pr_iso_control.c: New file.
60999         * lib/unictype/pr_join_control.c: New file.
61000         * lib/unictype/pr_left_of_pair.c: New file.
61001         * lib/unictype/pr_line_separator.c: New file.
61002         * lib/unictype/pr_logical_order_exception.c: New file.
61003         * lib/unictype/pr_lowercase.c: New file.
61004         * lib/unictype/pr_math.c: New file.
61005         * lib/unictype/pr_non_break.c: New file.
61006         * lib/unictype/pr_not_a_character.c: New file.
61007         * lib/unictype/pr_numeric.c: New file.
61008         * lib/unictype/pr_other_alphabetic.c: New file.
61009         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61010         * lib/unictype/pr_other_grapheme_extend.c: New file.
61011         * lib/unictype/pr_other_id_continue.c: New file.
61012         * lib/unictype/pr_other_id_start.c: New file.
61013         * lib/unictype/pr_other_lowercase.c: New file.
61014         * lib/unictype/pr_other_math.c: New file.
61015         * lib/unictype/pr_other_uppercase.c: New file.
61016         * lib/unictype/pr_paired_punctuation.c: New file.
61017         * lib/unictype/pr_paragraph_separator.c: New file.
61018         * lib/unictype/pr_pattern_syntax.c: New file.
61019         * lib/unictype/pr_pattern_white_space.c: New file.
61020         * lib/unictype/pr_private_use.c: New file.
61021         * lib/unictype/pr_punctuation.c: New file.
61022         * lib/unictype/pr_quotation_mark.c: New file.
61023         * lib/unictype/pr_radical.c: New file.
61024         * lib/unictype/pr_sentence_terminal.c: New file.
61025         * lib/unictype/pr_soft_dotted.c: New file.
61026         * lib/unictype/pr_space.c: New file.
61027         * lib/unictype/pr_terminal_punctuation.c: New file.
61028         * lib/unictype/pr_test.c: New file.
61029         * lib/unictype/pr_titlecase.c: New file.
61030         * lib/unictype/pr_unassigned_code_value.c: New file.
61031         * lib/unictype/pr_unified_ideograph.c: New file.
61032         * lib/unictype/pr_uppercase.c: New file.
61033         * lib/unictype/pr_variation_selector.c: New file.
61034         * lib/unictype/pr_white_space.c: New file.
61035         * lib/unictype/pr_xid_continue.c: New file.
61036         * lib/unictype/pr_xid_start.c: New file.
61037         * lib/unictype/pr_zero_width.c: New file.
61038         * lib/unictype/scripts.c: New file.
61039         * lib/unictype/sy_c_ident.c: New file.
61040         * lib/unictype/sy_c_whitespace.c: New file.
61041         * lib/unictype/sy_java_ident.c: New file.
61042         * lib/unictype/sy_java_whitespace.c: New file.
61043
61044         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61045         Unicode 5.0.0.
61046         * lib/unictype/blocks.h: Likewise.
61047         * lib/unictype/categ_C.h: Likewise.
61048         * lib/unictype/categ_Cc.h: Likewise.
61049         * lib/unictype/categ_Cf.h: Likewise.
61050         * lib/unictype/categ_Cn.h: Likewise.
61051         * lib/unictype/categ_Co.h: Likewise.
61052         * lib/unictype/categ_Cs.h: Likewise.
61053         * lib/unictype/categ_L.h: Likewise.
61054         * lib/unictype/categ_Ll.h: Likewise.
61055         * lib/unictype/categ_Lm.h: Likewise.
61056         * lib/unictype/categ_Lo.h: Likewise.
61057         * lib/unictype/categ_Lt.h: Likewise.
61058         * lib/unictype/categ_Lu.h: Likewise.
61059         * lib/unictype/categ_M.h: Likewise.
61060         * lib/unictype/categ_Mc.h: Likewise.
61061         * lib/unictype/categ_Me.h: Likewise.
61062         * lib/unictype/categ_Mn.h: Likewise.
61063         * lib/unictype/categ_N.h: Likewise.
61064         * lib/unictype/categ_Nd.h: Likewise.
61065         * lib/unictype/categ_Nl.h: Likewise.
61066         * lib/unictype/categ_No.h: Likewise.
61067         * lib/unictype/categ_P.h: Likewise.
61068         * lib/unictype/categ_Pc.h: Likewise.
61069         * lib/unictype/categ_Pd.h: Likewise.
61070         * lib/unictype/categ_Pe.h: Likewise.
61071         * lib/unictype/categ_Pf.h: Likewise.
61072         * lib/unictype/categ_Pi.h: Likewise.
61073         * lib/unictype/categ_Po.h: Likewise.
61074         * lib/unictype/categ_Ps.h: Likewise.
61075         * lib/unictype/categ_S.h: Likewise.
61076         * lib/unictype/categ_Sc.h: Likewise.
61077         * lib/unictype/categ_Sk.h: Likewise.
61078         * lib/unictype/categ_Sm.h: Likewise.
61079         * lib/unictype/categ_So.h: Likewise.
61080         * lib/unictype/categ_Z.h: Likewise.
61081         * lib/unictype/categ_Zl.h: Likewise.
61082         * lib/unictype/categ_Zp.h: Likewise.
61083         * lib/unictype/categ_Zs.h: Likewise.
61084         * lib/unictype/categ_of.h: Likewise.
61085         * lib/unictype/combining.h: Likewise.
61086         * lib/unictype/ctype_alnum.h: Likewise.
61087         * lib/unictype/ctype_alpha.h: Likewise.
61088         * lib/unictype/ctype_blank.h: Likewise.
61089         * lib/unictype/ctype_cntrl.h: Likewise.
61090         * lib/unictype/ctype_digit.h: Likewise.
61091         * lib/unictype/ctype_graph.h: Likewise.
61092         * lib/unictype/ctype_lower.h: Likewise.
61093         * lib/unictype/ctype_print.h: Likewise.
61094         * lib/unictype/ctype_punct.h: Likewise.
61095         * lib/unictype/ctype_space.h: Likewise.
61096         * lib/unictype/ctype_upper.h: Likewise.
61097         * lib/unictype/ctype_xdigit.h: Likewise.
61098         * lib/unictype/decdigit.h: Likewise.
61099         * lib/unictype/digit.h: Likewise.
61100         * lib/unictype/mirror.h: Likewise.
61101         * lib/unictype/numeric.h: Likewise.
61102         * lib/unictype/pr_alphabetic.h: Likewise.
61103         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61104         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61105         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61106         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61107         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61108         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61109         * lib/unictype/pr_bidi_control.h: Likewise.
61110         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61111         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61112         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61113         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61114         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61115         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61116         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61117         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61118         * lib/unictype/pr_bidi_pdf.h: Likewise.
61119         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61120         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61121         * lib/unictype/pr_combining.h: Likewise.
61122         * lib/unictype/pr_composite.h: Likewise.
61123         * lib/unictype/pr_currency_symbol.h: Likewise.
61124         * lib/unictype/pr_dash.h: Likewise.
61125         * lib/unictype/pr_decimal_digit.h: Likewise.
61126         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61127         * lib/unictype/pr_deprecated.h: Likewise.
61128         * lib/unictype/pr_diacritic.h: Likewise.
61129         * lib/unictype/pr_extender.h: Likewise.
61130         * lib/unictype/pr_format_control.h: Likewise.
61131         * lib/unictype/pr_grapheme_base.h: Likewise.
61132         * lib/unictype/pr_grapheme_extend.h: Likewise.
61133         * lib/unictype/pr_grapheme_link.h: Likewise.
61134         * lib/unictype/pr_hex_digit.h: Likewise.
61135         * lib/unictype/pr_hyphen.h: Likewise.
61136         * lib/unictype/pr_id_continue.h: Likewise.
61137         * lib/unictype/pr_id_start.h: Likewise.
61138         * lib/unictype/pr_ideographic.h: Likewise.
61139         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61140         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61141         * lib/unictype/pr_ignorable_control.h: Likewise.
61142         * lib/unictype/pr_iso_control.h: Likewise.
61143         * lib/unictype/pr_join_control.h: Likewise.
61144         * lib/unictype/pr_left_of_pair.h: Likewise.
61145         * lib/unictype/pr_line_separator.h: Likewise.
61146         * lib/unictype/pr_logical_order_exception.h: Likewise.
61147         * lib/unictype/pr_lowercase.h: Likewise.
61148         * lib/unictype/pr_math.h: Likewise.
61149         * lib/unictype/pr_non_break.h: Likewise.
61150         * lib/unictype/pr_not_a_character.h: Likewise.
61151         * lib/unictype/pr_numeric.h: Likewise.
61152         * lib/unictype/pr_other_alphabetic.h: Likewise.
61153         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61154         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61155         * lib/unictype/pr_other_id_continue.h: Likewise.
61156         * lib/unictype/pr_other_id_start.h: Likewise.
61157         * lib/unictype/pr_other_lowercase.h: Likewise.
61158         * lib/unictype/pr_other_math.h: Likewise.
61159         * lib/unictype/pr_other_uppercase.h: Likewise.
61160         * lib/unictype/pr_paired_punctuation.h: Likewise.
61161         * lib/unictype/pr_paragraph_separator.h: Likewise.
61162         * lib/unictype/pr_pattern_syntax.h: Likewise.
61163         * lib/unictype/pr_pattern_white_space.h: Likewise.
61164         * lib/unictype/pr_private_use.h: Likewise.
61165         * lib/unictype/pr_punctuation.h: Likewise.
61166         * lib/unictype/pr_quotation_mark.h: Likewise.
61167         * lib/unictype/pr_radical.h: Likewise.
61168         * lib/unictype/pr_sentence_terminal.h: Likewise.
61169         * lib/unictype/pr_soft_dotted.h: Likewise.
61170         * lib/unictype/pr_space.h: Likewise.
61171         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61172         * lib/unictype/pr_titlecase.h: Likewise.
61173         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61174         * lib/unictype/pr_unified_ideograph.h: Likewise.
61175         * lib/unictype/pr_uppercase.h: Likewise.
61176         * lib/unictype/pr_variation_selector.h: Likewise.
61177         * lib/unictype/pr_white_space.h: Likewise.
61178         * lib/unictype/pr_xid_continue.h: Likewise.
61179         * lib/unictype/pr_xid_start.h: Likewise.
61180         * lib/unictype/pr_zero_width.h: Likewise.
61181         * lib/unictype/scripts.h: Likewise.
61182         * lib/unictype/scripts_byname.gperf: Likewise.
61183         * lib/unictype/sy_c_ident.h: Likewise.
61184         * lib/unictype/sy_c_whitespace.h: Likewise.
61185         * lib/unictype/sy_java_ident.h: Likewise.
61186         * lib/unictype/sy_java_whitespace.h: Likewise.
61187
61188         * lib/unictype/Makefile: New file.
61189         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61190         glibc.
61191         * lib/unictype/3level.h: New file, copied from glibc.
61192         * lib/unictype/3levelbit.h: New file.
61193
61194 2007-11-11  Bruno Haible  <bruno@clisp.org>
61195
61196         * modules/gperf: New file.
61197         * modules/iconv_open (Depends-on): Add it.
61198         (Makefile.am): Remove the GPERF definition.
61199
61200 2007-11-11  Bruno Haible  <bruno@clisp.org>
61201
61202         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61203         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61204
61205 2007-11-11  Bruno Haible  <bruno@clisp.org>
61206
61207         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61208         (usage): Remove function.
61209
61210 2007-11-11  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61213         gl_FUNC_CEILF_LIBS.
61214         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61215         gl_FUNC_CEIL_LIBS.
61216         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61217         gl_FUNC_CEILL_LIBS.
61218         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61219         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61220         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61221
61222 2007-11-11  Bruno Haible  <bruno@clisp.org>
61223
61224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61225         roundf were declared but do not exist on functions.
61226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61227         roundl were declared but do not exist on functions.
61228         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61229         HAVE_FLOORL_AND_CEILL, respectively.
61230         Needed for Sun C on Solaris 10.
61231
61232 2007-11-11  Bruno Haible  <bruno@clisp.org>
61233
61234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61235         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61236         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61237         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61239         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61240         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61241         HAVE_DECL_ROUNDF.
61242         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61243         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61245         of HAVE_DECL_ROUND*.
61246         * modules/math (Makefile.am): Update.
61247
61248 2007-11-10  Bruno Haible  <bruno@clisp.org>
61249
61250         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61251         ptrdiff_t as m4/intl.m4.
61252
61253 2007-11-10  Jim Meyering  <meyering@redhat.com>
61254
61255         Avoid link failure for the argmatch test.
61256         * tests/test-argmatch.c (usage): Define function to avoid a link
61257         failure: argmatch_die requires a usage function.
61258
61259 2007-11-09  Bruno Haible  <bruno@clisp.org>
61260
61261         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61262         * doc/functions/vsnprintf.texi: Likewise.
61263         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61264         with a size argument < 2.
61265
61266 2007-11-09  Bruno Haible  <bruno@clisp.org>
61267
61268         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61269         buffer. Fixes an inefficiency introduced on 2007-11-03.
61270
61271 2007-11-09  Bruno Haible  <bruno@clisp.org>
61272
61273         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61274         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61275
61276 2007-11-08  Jim Meyering  <meyering@redhat.com>
61277
61278         Change cache variable name prefix "jm_" to "gl_" everywhere.
61279         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61280         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61281         * m4/uptime.m4: s/gl_/jm_/
61282
61283 2007-11-07  Bruno Haible  <bruno@clisp.org>
61284
61285         Update to GNU gettext 0.17.
61286         * m4/intl.m4: Update to GNU gettext 0.17.
61287         * m4/po.m4: Likewise.
61288         * modules/gettext (Files): Remove m4/ulonglong.m4.
61289         (configure.ac): Require gettext infrastructure from version 0.17.
61290
61291 2007-11-06  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61294         symbolic values are not defined in a public header.
61295         * lib/freadable.c (freadable) [QNX]: Likewise.
61296         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61297         * lib/freading.c (freading) [QNX]: Likewise.
61298         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61299         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61300         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61301         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61302         Reported by Alain Magloire.
61303
61304         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61305
61306 2007-11-05  Bruno Haible  <bruno@clisp.org>
61307
61308         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61309         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61310         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61311         Reported by Eric Blake.
61312
61313 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61314             Bruno Haible  <bruno@clisp.org>
61315
61316         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61317         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61318         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61319         (malloc): Undefine also before including <stdlib.h>.
61320         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61321         Needed on OSF/1 4.0.
61322
61323 2007-11-05  Jim Meyering  <meyering@redhat.com>
61324
61325         git-version-gen: sync from coreutils.
61326         * build-aux/git-version-gen: Add comments.
61327         Change the first '-' to '.' in the snapshot version string,
61328         e.g., 6.9-377-08144 -> 6.9.377-08144
61329         Remove first parameter.
61330         Don't declare a version "-dirty" merely because a time
61331         stamp has changed.
61332
61333 2007-11-04  Bruno Haible  <bruno@clisp.org>
61334
61335         * lib/lock.h: Protect all macro definitions containing an 'if'
61336         statement through a "do { ... } while (0)".
61337         * lib/tls.h: Likewise.
61338
61339 2007-11-04  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61342
61343 2007-11-04  Bruno Haible  <bruno@clisp.org>
61344
61345         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61346         * modules/fprintf-posix (Depends-on): Add nocrash.
61347         * modules/snprintf-posix (Depends-on): Likewise.
61348         * modules/sprintf-posix (Depends-on): Likewise.
61349         * modules/vasnprintf-posix (Depends-on): Likewise.
61350         * modules/vasprintf-posix (Depends-on): Likewise.
61351         * modules/vfprintf-posix (Depends-on): Likewise.
61352         * modules/vsnprintf-posix (Depends-on): Likewise.
61353         * modules/vsprintf-posix (Depends-on): Likewise.
61354         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61355         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61356         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61357         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61358         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61359         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61360         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61361
61362 2007-11-04  Bruno Haible  <bruno@clisp.org>
61363
61364         * modules/nocrash: New file.
61365         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61366         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61367
61368 2007-11-04  Bruno Haible  <bruno@clisp.org>
61369
61370         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61371         precision handling.
61372         * tests/test-vasprintf-posix.c (test_function): Likewise.
61373         * tests/test-snprintf-posix.h (test_function): Likewise.
61374         * tests/test-sprintf-posix.h (test_function): Likewise.
61375
61376         Fix *printf behaviour for large precisions on mingw and BeOS.
61377         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61378         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61380         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61382         gl_PRINTF_PRECISION and test its result. Invoke
61383         gl_PREREQ_VASNPRINTF_PRECISION.
61384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61391         * doc/functions/fprintf.texi: Update.
61392         * doc/functions/printf.texi: Update.
61393         * doc/functions/snprintf.texi: Update.
61394         * doc/functions/sprintf.texi: Update.
61395         * doc/functions/vfprintf.texi: Update.
61396         * doc/functions/vprintf.texi: Update.
61397         * doc/functions/vsnprintf.texi: Update.
61398         * doc/functions/vsprintf.texi: Update.
61399
61400 2007-11-04  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61403
61404 2007-11-04  Bruno Haible  <bruno@clisp.org>
61405
61406         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61407         Reported by Sylvain Beucler <beuc@gnu.org>.
61408
61409 2007-11-03  Bruno Haible  <bruno@clisp.org>
61410
61411         * tests/test-fprintf-posix2.sh: New file.
61412         * tests/test-fprintf-posix2.c: New file.
61413         * modules/fprintf-posix-tests (Files): Add them.
61414         (TESTS): Add test-fprintf-posix2.sh.
61415         (configure.ac): Check for getrlimit and setrlimit.
61416         (check_PROGRAMS): Add test-fprintf-posix2.
61417
61418         * tests/test-printf-posix2.sh: New file.
61419         * tests/test-printf-posix2.c: New file.
61420         * modules/printf-posix-tests (Files): Add them.
61421         (TESTS): Add test-printf-posix2.sh.
61422         (configure.ac): Check for getrlimit and setrlimit.
61423         (check_PROGRAMS): Add test-printf-posix2.
61424
61425         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61426         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61427         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61428         (decode_double): New function, copied from decode_long_double.
61429         (scale10_round_decimal_decoded): New function, extracted from
61430         scale10_round_decimal_long_double.
61431         (scale10_round_decimal_long_double): Use it.
61432         (scale10_round_decimal_double): New function.
61433         (floorlog10): New function.
61434         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61436         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61438         gl_PRINTF_ENOMEM and test its result. Invoke
61439         gl_PREREQ_VASNPRINTF_ENOMEM.
61440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61447         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61448         * modules/snprintf-posix (Depends-on): Likewise.
61449         * modules/sprintf-posix (Depends-on): Likewise.
61450         * modules/vasnprintf-posix (Depends-on): Likewise.
61451         * modules/vasprintf-posix (Depends-on): Likewise.
61452         * modules/vfprintf-posix (Depends-on): Likewise.
61453         * modules/vsnprintf-posix (Depends-on): Likewise.
61454         * modules/vsprintf-posix (Depends-on): Likewise.
61455         * doc/functions/fprintf.texi: Update.
61456         * doc/functions/printf.texi: Update.
61457         * doc/functions/snprintf.texi: Update.
61458         * doc/functions/sprintf.texi: Update.
61459         * doc/functions/vfprintf.texi: Update.
61460         * doc/functions/vprintf.texi: Update.
61461         * doc/functions/vsnprintf.texi: Update.
61462         * doc/functions/vsprintf.texi: Update.
61463
61464 2007-11-03  Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/frexp-nolibm-tests: New file.
61467
61468         * modules/frexp-nolibm: New file.
61469         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61470
61471 2007-11-03  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61474         value is C99 compliant.
61475         Needed for OSF/1 5.1.
61476
61477 2007-11-03  Bruno Haible  <bruno@clisp.org>
61478
61479         Fix out-of-memory handling of vasnprintf.
61480         * lib/printf-parse.c: Include <errno.h>.
61481         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61482         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61483         is already set.
61484
61485 2007-11-02  Eric Blake  <ebb9@byu.net>
61486
61487         Fix tests on cygwin.
61488         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61489
61490 2007-11-01  Bruno Haible  <bruno@clisp.org>
61491
61492         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61493         warning.
61494         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61495         needed for POSIX compatibility.
61496
61497 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61498
61499         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61500         for compatibility with GNU.
61501
61502 2007-11-01  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61505         (putenv): Renamed from rpl_putenv. Change argument type from
61506         'const char *' to 'char *'.
61507         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61508         of defining putenv in config.h, just set REPLACE_PUTENV.
61509         * modules/putenv (Depends-on): Add stdlib.
61510         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61511         (Include): Use <stdlib.h>.
61512         * lib/stdlib.in.h (putenv): New declaration.
61513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61514         REPLACE_PUTENV.
61515         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61516         REPLACE_PUTENV.
61517         Needed for MacOS X 10.5.0.
61518         Reported by Peter O'Gorman <peter@pogma.com>.
61519
61520 2007-11-01  Jim Meyering  <meyering@redhat.com>
61521
61522         Treat an empty date string exactly like "0".
61523         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61524         if the remaining date string (to be parsed) is empty, use "0".
61525         Reported by Mischa Molhoek and discussed in this thread:
61526         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61527
61528 2007-10-31  Bruno Haible  <bruno@clisp.org>
61529
61530         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61531         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61532         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61533         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61534         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61535         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61536
61537 2007-10-31  Bruno Haible  <bruno@clisp.org>
61538
61539         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61540         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61541         (AC_TYPE_LONG_LONG_INT): Use it.
61542         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61543         it as well.
61544         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61545         to m4/longlong.m4.
61546         * modules/stdint (Files): Remove m4/ulonglong.m4.
61547         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61548         m4/ulonglong.m4.
61549         * modules/strtoumax (Files): Likewise.
61550
61551 2007-10-30  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/xvasprintf-posix: New file.
61554         Suggested by Eric Blake.
61555
61556 2007-10-30  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/xprintf-posix-tests: New file.
61559         * tests/test-xprintf-posix.sh: New file.
61560         * tests/test-xprintf-posix.c: New file.
61561         * tests/test-xfprintf-posix.c: New file.
61562
61563         * modules/xprintf-posix: New file.
61564
61565 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61566
61567         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61568         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61569         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61570
61571 2007-10-29  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61574         contain the special marker '_cv_'.
61575         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61576         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61577         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61578         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61579         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61580         Reported by Ralf Wildenhues.
61581
61582 2007-10-29  Bruno Haible  <bruno@clisp.org>
61583
61584         * gnulib-tool (func_import): When --lgpl is not specified, set
61585         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61586         GPLv3.
61587         Reported by Simon Josefsson.
61588
61589 2007-10-28  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61592         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61593         HAVE_DECL_ISFINITE.
61594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61595         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61596         HAVE_DECL_ISFINITE.
61597
61598 2007-10-28  Bruno Haible  <bruno@clisp.org>
61599
61600         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61601         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61602
61603 2007-10-28  Bruno Haible  <bruno@clisp.org>
61604
61605         Fix link errors with Sun C 5.0 on Solaris 10.
61606         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61607         function is declared but not present in the compiler's libm.
61608         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61609         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61610         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61611         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61612         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61613         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61614         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61616         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61617         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61618         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61619         HAVE_DECL_FLOORL.
61620
61621 2007-10-28  Bruno Haible  <bruno@clisp.org>
61622
61623         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61624         gl_FUNC_FLOORL. Cache the result.
61625         (gl_FUNC_FLOORL): Use it.
61626         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61627         gl_FUNC_CEILL. Cache the result.
61628         (gl_FUNC_CEILL): Use it.
61629
61630         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61631         gl_FUNC_FLOOR. Cache the result.
61632         (gl_FUNC_FLOOR): Use it.
61633         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61634         gl_FUNC_CEIL. Cache the result.
61635         (gl_FUNC_CEIL): Use it.
61636
61637         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61638         gl_FUNC_FLOORF. Cache the result.
61639         (gl_FUNC_FLOORF): Use it.
61640         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61641         gl_FUNC_CEILF. Cache the result.
61642         (gl_FUNC_CEILF): Use it.
61643
61644 2007-10-28  Bruno Haible  <bruno@clisp.org>
61645
61646         * gnulib-tool: Allow specifying the LGPL version number through
61647         --lgpl=2 or --lgpl=3.
61648         (func_usage): Document --lgpl with argument.
61649         Handle --lgpl=... arguments.
61650         (func_import): Recognize also gl_LGPL calls with an argument. When
61651         --lgpl=2 is used and the module's license is just LGPL, report an
61652         error. Set sed_transform_lib_file according to the lgpl variable. In
61653         the generated files, use --lgpl or gl_LGPL invocations with argument,
61654         if necessary.
61655         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61656         an LGPv2+ license.
61657         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61658         gl_LGPL macro.
61659
61660 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61661             Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61664         (u16_uctomb_aux): Likewise.
61665         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61666         !HAVE_INLINE.
61667         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61668
61669 2007-10-28  Bruno Haible  <bruno@clisp.org>
61670
61671         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61672         Invoke AM_GETTEXT_OPTION if it exists.
61673         * modules/vasprintf: Likewise.
61674         * modules/verror: Likewise.
61675         * modules/xprintf: Likewise.
61676         * modules/xvasprintf: Likewise.
61677
61678 2007-10-27  Ben Pfaff  <blp@gnu.org>
61679
61680         * lib/math.in.h: Define isfinite macro and prototypes for
61681         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61682         implementations.
61683         * m4/math_h.m4: New substitutions for isfinite module.
61684         * lib/isfinite.c: New file.
61685         * m4/isfinite.m4: New file.
61686         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61687         * modules/isfinite: New file.
61688         * modules/isfinite-tests: New file.
61689         * tests/tests-isfinite.c: New file.
61690         * doc/functions/isfinite.texi: Mention isfinite module.
61691         * MODULES.html.sh: Mention new module.
61692
61693 2007-10-27  Ben Pfaff  <blp@gnu.org>
61694
61695         Ralf Wildenhues reported that Tru64 4.0D declares the round
61696         functions but does not have definitions.
61697         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61698         cannot be found in any library, set the output variable to
61699         "missing" instead of "".
61700         * m4/round.m4: Also use our substitute if we cannot find round in
61701         any library, even if it is declared.
61702         * m4/roundf.m4: Likewise for roundf.
61703         * m4/roundl.m4: Likewise for roundl.
61704         * lib/math.in.h: Undefine roundf, round, roundl before defining
61705         their replacements, to allow for hypothetical systems where these
61706         may be defined as macros but not available in libraries.
61707
61708 2007-10-27  Bruno Haible  <bruno@clisp.org>
61709
61710         * doc/gnulib.texi: Invoke @firstparagraphindent.
61711         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61712         changes in gnulib.
61713         (Source changes): New section.
61714
61715 2007-10-26  Bruno Haible  <bruno@clisp.org>
61716
61717         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61718         borrowed from autoconf.
61719
61720 2007-10-26  Bruno Haible  <bruno@clisp.org>
61721
61722         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61723         strerror returned the empty string. Needed on HP-UX 11.00.
61724
61725 2007-10-24  Micah Cowan  <micah@cowan.name>
61726
61727         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61728         * build-aux/bootstrap: Remove support for now-unnecessary option,
61729         --cvs-user, and envvars CVS_USER, CVS_RSH.
61730
61731 2007-10-24  Jim Meyering  <meyering@redhat.com>
61732
61733         Avoid diagnostics from sha1sum when there is no cached checksum.
61734         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61735         if the po.s1 file hasn't been created yet.
61736
61737         * build-aux/bootstrap: Sync from coreutils:
61738         2007-10-24  Jim Meyering  <meyering@redhat.com>
61739         Get gnulib from the git repository, not from an obsolete cvs one.
61740         * build-aux/bootstrap: Suggestion from Micah Cowan.
61741         2007-10-04  Jim Meyering  <jim@meyering.net>
61742         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61743         (update_po_files): Work also when there are no .po files in po/.
61744
61745 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * README: Append ".git" to git and cg examples.
61748         Problem reported by Benoit Sigoure.
61749
61750 2007-10-23  Micah Cowan  <micah@cowan.name>
61751
61752         * users.txt: Add wget.
61753
61754 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61755
61756         Fix linking of some unistdio tests on FreeBSD.
61757         * modules/unistdio/u16-vsnprintf-tests
61758         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61759         * modules/unistdio/u16-vsprintf-tests
61760         (test_u16_vsnprintf1_LDADD): Likewise.
61761         * modules/unistdio/u32-vsnprintf-tests
61762         (test_u32_vsnprintf1_LDADD): Likewise.
61763         * modules/unistdio/u32-vsprintf-tests
61764         (test_u32_vsprintf1_LDADD): Likewise.
61765         * modules/unistdio/u8-vsnprintf-tests
61766         (test_u8_vsnprintf1_LDADD): Likewise.
61767         * modules/unistdio/u8-vsprintf-tests
61768         (test_u8_vsprintf1_LDADD): Likewise.
61769         * modules/unistdio/ulc-vsnprintf-tests
61770         (test_ulc_vsnprintf1_LDADD): Likewise.
61771         * modules/unistdio/ulc-vsprintf-tests
61772         (test_ulc_vsprintf1_LDADD): Likewise.
61773
61774         Fix linking of some uniconv tests on FreeBSD.
61775         * modules/uniconv/u16-conv-from-enc-tests
61776         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61777         * modules/uniconv/u16-conv-to-enc-tests
61778         (test_u16_conv_to_enc_LDADD): Likewise.
61779         * modules/uniconv/u16-strconv-from-enc-tests
61780         (test_u16_strconv_from_enc_LDADD): Likewise.
61781         * modules/uniconv/u16-strconv-to-enc-tests
61782         (test_u16_strconv_to_enc_LDADD): Likewise.
61783         * modules/uniconv/u32-conv-from-enc-tests
61784         (test_u32_conv_from_enc_LDADD): Likewise.
61785         * modules/uniconv/u32-conv-to-enc-tests
61786         (test_u32_conv_to_enc_LDADD): Likewise.
61787         * modules/uniconv/u32-strconv-from-enc-tests
61788         (test_u32_strconv_from_enc_LDADD): Likewise.
61789         * modules/uniconv/u32-strconv-to-enc-tests
61790         (test_u32_strconv_to_enc_LDADD): Likewise.
61791         * modules/uniconv/u8-conv-from-enc-tests
61792         (test_u8_conv_from_enc_LDADD): Likewise.
61793         * modules/uniconv/u8-conv-to-enc-tests
61794         (test_u8_conv_to_enc_LDADD): Likewise.
61795         * modules/uniconv/u8-strconv-from-enc-tests
61796         (test_u8_strconv_from_enc_LDADD): Likewise.
61797         * modules/uniconv/u8-strconv-to-enc-tests
61798         (test_u8_strconv_to_enc_LDADD): Likewise.
61799
61800 2007-10-22  Bruno Haible  <bruno@clisp.org>
61801
61802         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61803         size.
61804
61805 2007-10-22  Eric Blake  <ebb9@byu.net>
61806
61807         Tweak x*printf documentation.
61808         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61809         variable name and comments.
61810         Suggested by Bruno Haible.
61811
61812 2007-10-22  Bruno Haible  <bruno@clisp.org>
61813
61814         * lib/acl.c (copy_acl): Fix file name in comment.
61815
61816 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61817
61818         Fix Tru64 problem with stdbool.h.
61819         * lib/stdbool.in.h (false, true):
61820         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61821         Don't declare as an enum in this situation; it runs afoul of Tru64.
61822         Problem reported by Steven M. Schweda in
61823         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61824
61825 2007-10-22  Eric Blake  <ebb9@byu.net>
61826
61827         Also wrap vf?printf.
61828         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61829         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61830         (xvprintf, xvfprintf): New functions.
61831
61832 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61833
61834         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61835         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61836
61837         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61838         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61839
61840 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61843         by Bruno Haible.
61844
61845 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61846
61847         * lib/getloadavg.c
61848         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61849         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61850
61851         * tests/test-i-ring.c: Work for C89.
61852
61853 2007-10-22  Bruno Haible  <bruno@clisp.org>
61854
61855         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61856         -1u, in preprocessor expression, so that we don't test for the bug
61857         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61859
61860 2007-10-22  Eric Blake  <ebb9@byu.net>
61861
61862         * tests/test-yesno.sh: Silence stderr during test.
61863
61864 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61865
61866         * modules/crypto/gc-camellia: New file.
61867
61868         * m4/gc-camellia.m4: New file.
61869
61870         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61871
61872         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61873
61874 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61875
61876         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61877         --help to stdout.  Reported by sms@antinode.org (Steven
61878         M. Schweda).
61879
61880 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61881
61882         * users.txt: Fix link to libksba.
61883
61884 2007-10-21  Ben Pfaff  <blp@gnu.org>
61885
61886         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61887         round.c roundf implementation that depends on floorf and ceilf to
61888         be tested unconditionally.
61889
61890 2007-10-21  Ben Pfaff  <blp@gnu.org>
61891
61892         * m4/check-libm-func.m4: Removed.
61893         * m4/check-math-lib.m4: New file.
61894         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61895         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61896         definition and lack of AC_LIBOBJ([roundf]).
61897         * m4/roundl.m4: Ditto, and similarly for roundl.
61898         * modules/round: Reference new m4 file.
61899         * modules/roundf: Ditto.
61900         * modules/roundl: Ditto.
61901         * tests/test-round2.c (main): Use ROUND instead of round.
61902         Bug report from Bruno Haible.
61903
61904 2007-10-21  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61907         context.
61908
61909 2007-10-21  Bruno Haible  <bruno@clisp.org>
61910
61911         * tests/test-wcwidth.c (main): Allow negative result for some control
61912         characters.
61913
61914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61915         Needed on OSF/1 5.1.
61916
61917 2007-10-21  Bruno Haible  <bruno@clisp.org>
61918
61919         * tests/test-floorf1.c: Include isnanf.h.
61920         (main): Use isnanf() instead of isnan().
61921         * tests/test-ceilf1.c: Include isnanf.h.
61922         (main): Use isnanf() instead of isnan().
61923         * tests/test-truncf1.c: Include isnanf.h.
61924         (main): Use isnanf() instead of isnan().
61925         * tests/test-roundf1.c: Include isnanf.h.
61926         (main): Use isnanf() instead of isnan().
61927
61928 2007-10-21  Eric Blake  <ebb9@byu.net>
61929
61930         * users.txt: Update URL for m4.
61931
61932 2007-10-21  Bruno Haible  <bruno@clisp.org>
61933
61934         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61935
61936 2007-10-21  Bruno Haible  <bruno@clisp.org>
61937
61938         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61939         Git's management files if the CVS files are not present.
61940
61941 2007-10-20  Bruno Haible  <bruno@clisp.org>
61942
61943         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61944         gcc-3.4.x.
61945
61946 2007-10-20  Ben Pfaff  <blp@gnu.org>
61947
61948         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61949         implementations.
61950         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61951         * lib/round.c: New file.
61952         * lib/roundf.c: New file.
61953         * lib/roundl.c: New file.
61954         * m4/round.m4: New file.
61955         * m4/roundf.m4: New file.
61956         * m4/roundl.m4: New file.
61957         * m4/check-libm-func-m4: New file.
61958         * modules/math: Replace round, roundf, roundl related @VARS@ in
61959         math.in.h.
61960         * modules/round: New file.
61961         * modules/round-tests: New file.
61962         * modules/roundf: New file.
61963         * modules/roundf-tests: New file.
61964         * modules/roundl: New file.
61965         * modules/roundl-tests: New file.
61966         * tests/test-round1.c: New file.
61967         * tests/test-round2.c: New file.
61968         * tests/test-roundf1.c: New file.
61969         * tests/test-roundf2.c: New file.
61970         * tests/test-roundl.c: New file.
61971         * doc/functions/round.texi: Mention round module.
61972         * doc/functions/roundf.texi: Mention roundf module.
61973         * doc/functions/roundl.texi: Mention roundl module.
61974         * MODULES.html.sh: Mention new modules.
61975         Thanks to Bruno Haible for suggestions.
61976
61977 2007-10-20  Jim Meyering  <meyering@redhat.com>
61978
61979         * lib/xprintf.c: Include <config.h> unconditionally.
61980
61981         Change xprintf's license to GPL.
61982         * modules/xprintf (License): s/LGPL/GPL/, since this module
61983         depends on modules (exit and exitfail) which are GPL.
61984         Suggestion from Bruno Haible.
61985
61986         xprintf fixes.
61987         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61988         Use a clearer diagnostic.
61989         Patch from Bruno Haible.
61990
61991 2007-10-20  Bruno Haible  <bruno@clisp.org>
61992
61993         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61994         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61996
61997 2007-10-20  Bruno Haible  <bruno@clisp.org>
61998
61999         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62000         precision in the comparison result > x - 1 or similar.
62001         * tests/test-ceilf2.c (correct_result_p): Likewise.
62002         * tests/test-truncf2.c (correct_result_p): Likewise.
62003         * tests/test-trunc2.c (correct_result_p): Likewise.
62004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62005
62006 2007-10-20  Bruno Haible  <bruno@clisp.org>
62007
62008         * modules/ceil: New file.
62009         * m4/ceil.m4: New file.
62010         * doc/functions/ceil.texi: Mention the 'ceil' module.
62011
62012 2007-10-20  Bruno Haible  <bruno@clisp.org>
62013
62014         * modules/floor: New file.
62015         * m4/floor.m4: New file.
62016         * doc/functions/floor.texi: Mention the 'floor' module.
62017
62018 2007-10-20  Bruno Haible  <bruno@clisp.org>
62019
62020         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62021         of %a.
62022         * modules/floorf-tests (Depends-on): Likewise.
62023         * modules/truncf-tests (Depends-on): Likewise.
62024         * modules/trunc-tests (Depends-on): Likewise.
62025         Reported by Ben Pfaff.
62026
62027 2007-10-19  Jim Meyering  <meyering@redhat.com>
62028
62029         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62030         Don't bother testing specific errno values.  Just test ferror.
62031
62032         New module: xprintf
62033         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62034
62035 2007-10-19  Bruno Haible  <bruno@clisp.org>
62036
62037         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62038         syntax.
62039         * modules/javaexec (Makefile.am): Likewise.
62040         * modules/relocatable-prog (Makefile.am): Likewise.
62041         Suggested by Jim Meyering.
62042
62043 2007-10-18  Bruno Haible  <bruno@clisp.org>
62044
62045         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62046         Reported by Jim Meyering.
62047
62048 2007-10-18  Eric Blake  <ebb9@byu.net>
62049
62050         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62051
62052 2007-10-18  Bruno Haible  <bruno@clisp.org>
62053
62054         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62055         the format string into writable memory. Needed in Fortify conditions.
62056
62057 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62058             Bruno Haible  <bruno@clisp.org>
62059
62060         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62061         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62062         * modules/trim (Depends-on): Add mbchar.
62063         (configure.ac): Add gl_FUNC_MBRTOWC.
62064         (Makefile.am): Augment lib_SOURCES.
62065
62066 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62067
62068         Modify glob.c to use fstatat and dirfd, to simplify it.
62069         Suggested by Eric Blake.
62070         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62071         Don't include <stdbool.h>; not used.
62072         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62073         (link_exists_p): Simplify implementation, since we can now assume
62074         dirfd and fstatat.
62075         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62076
62077 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62078
62079         * gnulib-tool (func_get_dependencies): Fix sed script to
62080         match only tests.
62081
62082 2007-10-17  Bruno Haible  <bruno@clisp.org>
62083
62084         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62085         allow locale names without encoding suffix.
62086         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62087         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62088
62089 2007-10-16  Bruno Haible  <bruno@clisp.org>
62090
62091         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62092         * lib/getgroups.c (getgroups): Likewise.
62093         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62094
62095 2007-10-16  Bruno Haible  <bruno@clisp.org>
62096
62097         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62098         * modules/malloc-posix (License): Likewise.
62099         * modules/realloc-posix (License): Likewise.
62100         * modules/calloc-posix (License): Likewise.
62101         * modules/intprops (License): Change from GPL to LGPL, with
62102         Paul Eggert's approval.
62103
62104 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         Merge glibc changes into lib/glob.c.
62107
62108         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62109         2007-10-15 04:59:03 UTC.  Here are the changes:
62110
62111         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62112
62113         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62114
62115         * lib/glob.c: Add some branch prediction throughout.
62116
62117         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62118
62119         [BZ #5103]
62120         * lib/glob.c (glob): Recognize patterns starting \/.
62121
62122         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62123
62124         [BZ #3996]
62125         * lib/glob.c (attribute_hidden): Define if not defined.
62126         (glob): Unescape dirname, filename or username when needed and not
62127         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62128         is NULL.  Handle unescaped [ in pattern without closing ].
62129         Don't pass GLOB_CHECK down to recursive glob for directories.
62130         (__glob_pattern_type): New function.
62131         (__glob_pattern_p): Implement using __glob_pattern_type.
62132         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62133         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62134         Remove unreachable code.
62135
62136         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62137
62138         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62139         explain why there are no leaks.
62140
62141         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62142
62143         [BZ #3253]
62144         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62145         time, rather allocate increasingly bigger arrays of pointers, if
62146         possible with alloca, if too large with malloc.
62147
62148 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62151         Problem reported by H.Merijn Brand in
62152         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62153         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62154         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62155
62156 2007-10-15  Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62159         with explicit rpl_ prefix.
62160         * lib/fopen.c (fopen): Likewise.
62161         * lib/freopen.c (freopen): Likewise.
62162         * lib/iconv.c (iconv): Likewise.
62163         * lib/iconv_close.c (iconv_close): Likewise.
62164
62165 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62166
62167         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62168
62169 2007-10-15  Bruno Haible  <bruno@clisp.org>
62170
62171         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62172         <stddef.h> instead of <stdlib.h> since we only need NULL.
62173         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62174
62175 2007-10-15  Bruno Haible  <bruno@clisp.org>
62176
62177         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62178         Replace paragraph talking about LIBOBJS.
62179         Reported by Colin Watson <cjwatson@debian.org>.
62180
62181 2007-10-15  Bruno Haible  <bruno@clisp.org>
62182
62183         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62184         <stdlib.h> before using NULL.
62185
62186 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62187
62188         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62189         Reported by Albert Chin <china@thewrittenword.com>.
62190
62191 2007-10-14  Bruno Haible  <bruno@clisp.org>
62192
62193         * modules/iconv_open-utf-tests: New file.
62194         * tests/test-iconv-utf.c: New file.
62195
62196         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62197         * modules/iconv_open-utf: New file.
62198         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62199         (iconv, iconv_close): New declarations.
62200         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62201         be defined.
62202         (iconv_open): Add special handling of conversion between UTF-8 and
62203         UTF-{16,32}{BE,LE}.
62204         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62205         * lib/iconv_close.c: New file.
62206         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62207         gl_FUNC_ICONV_OPEN.
62208         (gl_FUNC_ICONV_OPEN): Use it.
62209         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62210         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62211         and REPLACE_ICONV_UTF.
62212         * modules/iconv_open (Depends-on): Add c-strcase.
62213         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62214         ICONV_CONST.
62215         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62216
62217 2007-10-13  Albert Chin  <china@thewrittenword.com>
62218             Bruno Haible  <bruno@clisp.org>
62219
62220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62221         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62222
62223 2007-10-13  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62226         defined, use the ISO C99 inline semantics.
62227         * lib/argp.h (ARGP_EI): Likewise.
62228
62229 2007-10-13  Bruno Haible  <bruno@clisp.org>
62230
62231         Handle 'inline' change in gcc 4.3.0.
62232         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62233         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62234         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62235         argp_fmtstream_point): Disable 'extern' declaration if the function
62236         definition is going to be provided inline.
62237         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62238         semantics, not the ISO C99 inline semantics.
62239         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62240         'extern' declaration if the function definition is going to be provided
62241         inline.
62242         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62243         the GNU C inline semantics, not the ISO C99 inline semantics. With
62244         GCC 4.2, avoid a warning.
62245
62246 2007-10-13  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/freading.h (freading): Enable the use of __freading for
62249         glibc >= 2.7.
62250         * lib/freading.c (freading): Likewise.
62251
62252 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62253
62254         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62255         "warning: C99 inline functions are not supported; using GNU89".
62256
62257 2007-10-12  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62260         of 2.
62261         * tests/test-ceilf2.c: New file.
62262         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62263
62264         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62265         * modules/ceilf-tests: Update.
62266
62267 2007-10-12  Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62270         of 2.
62271         * tests/test-floorf2.c: New file.
62272         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62273
62274         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62275         * modules/floorf-tests: Update.
62276
62277 2007-10-12  Bruno Haible  <bruno@clisp.org>
62278
62279         * tests/test-trunc2.c: New file.
62280         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62281
62282         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62283         * modules/trunc-tests: Update.
62284
62285 2007-10-12  Bruno Haible  <bruno@clisp.org>
62286
62287         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62288         of 2.
62289         * tests/test-truncf2.c: New file.
62290         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62291
62292         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62293         * modules/truncf-tests: Update.
62294
62295 2007-10-11  Eric Blake  <ebb9@byu.net>
62296
62297         Don't claim strerror is broken on Interix.
62298         * doc/functions/strerror.texi (strerror): Known broken systems are
62299         now Solaris 8, and not Interix.
62300         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62301         Interix on cross-compile.
62302         Reported by Martin Koeppe in
62303         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62304
62305 2007-10-11  Bruno Haible  <bruno@clisp.org>
62306
62307         * modules/i-ring-tests: New file.
62308         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62309         instead of assert.
62310
62311 2007-10-11  Bruno Haible  <bruno@clisp.org>
62312
62313         * modules/filenamecat-tests: New file.
62314         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62315         * lib/filenamecat.c: Remove test code.
62316
62317 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62320
62321         * lib/strerror.c: Include <string.h> always, to test interface,
62322         and to remove the need for the dummy.
62323         Include intprops.h to compute width instead of doing it ourselves
62324         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62325         (strerror): Define it to return NULL if there's no system strerror.
62326         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62327         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62328         ancient pre-strerror Unix systems well any more.  Saying "unknown
62329         system error" is enough.
62330         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62331         simpler strerror.c implementation.
62332         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62333         Simplify the tests to reflect the simpler strerror implementation.
62334         * modules/strerror (Depends-on): Add intprops.
62335
62336 2007-10-09  Eric Blake  <ebb9@byu.net>
62337
62338         Silence test-fpending.
62339         * modules/fpending-tests (Files): Add wrapper script.
62340         * tests/test-fpending.sh: New file.
62341
62342 2007-10-09  Bruno Haible  <bruno@clisp.org>
62343
62344         * MODULES.html.sh (func_module): Don't create a hyperlink for
62345         function names like 'printf_frexp'.
62346         (Misc): Add crc, memxor.
62347         (Characteristics of floating types): New section.
62348         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62349         isnanf-nolibm, signbit, trunc, truncf, truncl.
62350         (Enhancements for ISO C 99 functions): New subsection Input/output.
62351         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62352         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62353         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62354         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62355         (Enhancements for POSIX:2001 functions): Add chdir-long.
62356         (File system functions): Add areadlink, chdir-safer, read-file.
62357         Remove cycle-check.
62358         (File system as inode set): New section.
62359         (Date and time): Add gethrxtime.
62360         (Multithreading): Add openmp.
62361         (Internationalization functions): Add localename.
62362         (Unicode string functions): Add unistr/u*-mbsnlen.
62363         (Support for maintaining and releasing projects): Add git-version-gen.
62364         (Lone files): Remove directories.
62365
62366 2007-10-08  Ben Pfaff  <blp@gnu.org>
62367
62368         * lib/xmalloca.h: Fix typo in comment.
62369
62370 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62371
62372         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62373         when avoiding problems with integer overflow.  Use a portable test
62374         instead.
62375
62376 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62377
62378         * modules/dummy (License): Change to LGPLv2+.
62379         * modules/float (License): Likewise
62380         * modules/realloc (License): Likewise
62381         * modules/stdlib (License): Likewise
62382
62383 2007-10-07  Bruno Haible  <bruno@clisp.org>
62384
62385         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62386         * floor.c (TWO_MANT_DIG): Likewise.
62387         * ceil.c (TWO_MANT_DIG): Likewise.
62388         Reported by Ben Pfaff.
62389
62390 2007-10-07  Bruno Haible  <bruno@clisp.org>
62391
62392         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62393         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62394         * lib/frexp.c (FUNC): Likewise.
62395         * lib/printf-frexp.h (printf_frexp): Likewise.
62396         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62397         * lib/printf-frexp.c (FUNC): Likewise.
62398         Suggested by Jim Meyering.
62399
62400 2007-10-07  Jim Meyering  <meyering@redhat.com>
62401
62402         Make xnanosleep's integer overflow test more robust.
62403         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62404         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62405
62406 2007-10-07  Bruno Haible  <bruno@clisp.org>
62407
62408         * NEWS: Mention the license change.
62409
62410         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62411         abbreviations in the modules files.
62412
62413         Change copyright notice from GPLv2+ to GPLv3+.
62414         * README: Change copyright notice.
62415         * MODULES.html.sh: Likewise.
62416         * build-aux/bootstrap.conf: Likewise.
62417         * build-aux/config.libpath: Likewise.
62418         * build-aux/csharpcomp.sh.in: Likewise.
62419         * build-aux/csharpexec.sh.in: Likewise.
62420         * build-aux/install-reloc: Likewise.
62421         * build-aux/javacomp.sh.in: Likewise.
62422         * build-aux/javaexec.sh.in: Likewise.
62423         * build-aux/ldd.sh.in: Likewise.
62424         * build-aux/reloc-ldflags: Likewise.
62425         * build-aux/relocatable.sh.in: Likewise.
62426         * build-aux/x-to-1.in: Likewise.
62427         * check-module: Likewise.
62428         * config/srclistvars.sh: Likewise.
62429         * gnulib-tool: Likewise.
62430         * lib/acl-internal.h: Likewise.
62431         * lib/acl.c: Likewise.
62432         * lib/acl.h: Likewise.
62433         * lib/acl_entries.c: Likewise.
62434         * lib/areadlink-with-size.c: Likewise.
62435         * lib/areadlink.c: Likewise.
62436         * lib/areadlink.h: Likewise.
62437         * lib/argmatch.c: Likewise.
62438         * lib/argmatch.h: Likewise.
62439         * lib/argp-ba.c: Likewise.
62440         * lib/argp-eexst.c: Likewise.
62441         * lib/argp-fmtstream.c: Likewise.
62442         * lib/argp-fmtstream.h: Likewise.
62443         * lib/argp-fs-xinl.c: Likewise.
62444         * lib/argp-help.c: Likewise.
62445         * lib/argp-namefrob.h: Likewise.
62446         * lib/argp-parse.c: Likewise.
62447         * lib/argp-pin.c: Likewise.
62448         * lib/argp-pv.c: Likewise.
62449         * lib/argp-pvh.c: Likewise.
62450         * lib/argp-xinl.c: Likewise.
62451         * lib/argp.h: Likewise.
62452         * lib/at-func.c: Likewise.
62453         * lib/atanl.c: Likewise.
62454         * lib/backupfile.c: Likewise.
62455         * lib/backupfile.h: Likewise.
62456         * lib/basename.c: Likewise.
62457         * lib/binary-io.h: Likewise.
62458         * lib/byteswap.in.h: Likewise.
62459         * lib/c-stack.c: Likewise.
62460         * lib/c-stack.h: Likewise.
62461         * lib/c-strcasestr.c: Likewise.
62462         * lib/c-strcasestr.h: Likewise.
62463         * lib/c-strstr.c: Likewise.
62464         * lib/c-strstr.h: Likewise.
62465         * lib/c-strtod.c: Likewise.
62466         * lib/calloc.c: Likewise.
62467         * lib/canon-host.c: Likewise.
62468         * lib/canon-host.h: Likewise.
62469         * lib/canonicalize-lgpl.c: Likewise.
62470         * lib/canonicalize.c: Likewise.
62471         * lib/canonicalize.h: Likewise.
62472         * lib/ceil.c: Likewise.
62473         * lib/ceilf.c: Likewise.
62474         * lib/ceill.c: Likewise.
62475         * lib/chdir-long.c: Likewise.
62476         * lib/chdir-long.h: Likewise.
62477         * lib/chdir-safer.c: Likewise.
62478         * lib/chdir-safer.h: Likewise.
62479         * lib/chown.c: Likewise.
62480         * lib/classpath.c: Likewise.
62481         * lib/classpath.h: Likewise.
62482         * lib/clean-temp.c: Likewise.
62483         * lib/clean-temp.h: Likewise.
62484         * lib/cloexec.c: Likewise.
62485         * lib/close-stream.c: Likewise.
62486         * lib/closein.c: Likewise.
62487         * lib/closein.h: Likewise.
62488         * lib/closeout.c: Likewise.
62489         * lib/closeout.h: Likewise.
62490         * lib/concat-filename.c: Likewise.
62491         * lib/copy-file.c: Likewise.
62492         * lib/copy-file.h: Likewise.
62493         * lib/count-one-bits.h: Likewise.
62494         * lib/crc.c: Likewise.
62495         * lib/crc.h: Likewise.
62496         * lib/creat-safer.c: Likewise.
62497         * lib/csharpcomp.c: Likewise.
62498         * lib/csharpcomp.h: Likewise.
62499         * lib/csharpexec.c: Likewise.
62500         * lib/csharpexec.h: Likewise.
62501         * lib/cycle-check.c: Likewise.
62502         * lib/cycle-check.h: Likewise.
62503         * lib/diacrit.c: Likewise.
62504         * lib/diacrit.h: Likewise.
62505         * lib/diffseq.h: Likewise.
62506         * lib/dirchownmod.c: Likewise.
62507         * lib/dirent.in.h: Likewise.
62508         * lib/dirfd.c: Likewise.
62509         * lib/dirfd.h: Likewise.
62510         * lib/dirname.c: Likewise.
62511         * lib/dirname.h: Likewise.
62512         * lib/dummy.c: Likewise.
62513         * lib/dup-safer.c: Likewise.
62514         * lib/dup2.c: Likewise.
62515         * lib/eealloc.h: Likewise.
62516         * lib/error.c: Likewise.
62517         * lib/error.h: Likewise.
62518         * lib/euidaccess.c: Likewise.
62519         * lib/exclude.c: Likewise.
62520         * lib/exclude.h: Likewise.
62521         * lib/execute.c: Likewise.
62522         * lib/execute.h: Likewise.
62523         * lib/exitfail.c: Likewise.
62524         * lib/exitfail.h: Likewise.
62525         * lib/expl.c: Likewise.
62526         * lib/fatal-signal.c: Likewise.
62527         * lib/fatal-signal.h: Likewise.
62528         * lib/fbufmode.c: Likewise.
62529         * lib/fbufmode.h: Likewise.
62530         * lib/fchdir.c: Likewise.
62531         * lib/fchmodat.c: Likewise.
62532         * lib/fchownat.c: Likewise.
62533         * lib/fcntl--.h: Likewise.
62534         * lib/fcntl-safer.h: Likewise.
62535         * lib/fcntl.in.h: Likewise.
62536         * lib/fd-safer.c: Likewise.
62537         * lib/fflush.c: Likewise.
62538         * lib/file-has-acl.c: Likewise.
62539         * lib/file-set.c: Likewise.
62540         * lib/file-type.c: Likewise.
62541         * lib/file-type.h: Likewise.
62542         * lib/fileblocks.c: Likewise.
62543         * lib/filemode.c: Likewise.
62544         * lib/filemode.h: Likewise.
62545         * lib/filename.h: Likewise.
62546         * lib/filenamecat.c: Likewise.
62547         * lib/filenamecat.h: Likewise.
62548         * lib/findprog.c: Likewise.
62549         * lib/findprog.h: Likewise.
62550         * lib/float.in.h: Likewise.
62551         * lib/floor.c: Likewise.
62552         * lib/floorf.c: Likewise.
62553         * lib/floorl.c: Likewise.
62554         * lib/fopen-safer.c: Likewise.
62555         * lib/fopen.c: Likewise.
62556         * lib/fpending.c: Likewise.
62557         * lib/fpending.h: Likewise.
62558         * lib/fprintf.c: Likewise.
62559         * lib/fprintftime.h: Likewise.
62560         * lib/fpucw.h: Likewise.
62561         * lib/fpurge.c: Likewise.
62562         * lib/fpurge.h: Likewise.
62563         * lib/freadable.c: Likewise.
62564         * lib/freadable.h: Likewise.
62565         * lib/freadahead.c: Likewise.
62566         * lib/freadahead.h: Likewise.
62567         * lib/freading.c: Likewise.
62568         * lib/freading.h: Likewise.
62569         * lib/free.c: Likewise.
62570         * lib/freopen.c: Likewise.
62571         * lib/frexp.c: Likewise.
62572         * lib/frexpl.c: Likewise.
62573         * lib/fseek.c: Likewise.
62574         * lib/fseterr.c: Likewise.
62575         * lib/fseterr.h: Likewise.
62576         * lib/fstatat.c: Likewise.
62577         * lib/fstrcmp.c: Likewise.
62578         * lib/fstrcmp.h: Likewise.
62579         * lib/fsusage.c: Likewise.
62580         * lib/fsusage.h: Likewise.
62581         * lib/ftell.c: Likewise.
62582         * lib/ftello.c: Likewise.
62583         * lib/fts-cycle.c: Likewise.
62584         * lib/fts.c: Likewise.
62585         * lib/fts_.h: Likewise.
62586         * lib/full-read.c: Likewise.
62587         * lib/full-read.h: Likewise.
62588         * lib/full-write.c: Likewise.
62589         * lib/full-write.h: Likewise.
62590         * lib/fwritable.c: Likewise.
62591         * lib/fwritable.h: Likewise.
62592         * lib/fwriteerror.c: Likewise.
62593         * lib/fwriteerror.h: Likewise.
62594         * lib/fwriting.c: Likewise.
62595         * lib/fwriting.h: Likewise.
62596         * lib/gcd.c: Likewise.
62597         * lib/gcd.h: Likewise.
62598         * lib/getcwd.c: Likewise.
62599         * lib/getdate.h: Likewise.
62600         * lib/getdate.y: Likewise.
62601         * lib/getdomainname.c: Likewise.
62602         * lib/getdomainname.h: Likewise.
62603         * lib/getgroups.c: Likewise.
62604         * lib/gethostname.c: Likewise.
62605         * lib/gethrxtime.c: Likewise.
62606         * lib/gethrxtime.h: Likewise.
62607         * lib/getloadavg.c: Likewise.
62608         * lib/getndelim2.c: Likewise.
62609         * lib/getndelim2.h: Likewise.
62610         * lib/getnline.c: Likewise.
62611         * lib/getnline.h: Likewise.
62612         * lib/getopt.c: Likewise.
62613         * lib/getopt.in.h: Likewise.
62614         * lib/getopt1.c: Likewise.
62615         * lib/getopt_int.h: Likewise.
62616         * lib/getpagesize.h: Likewise.
62617         * lib/getsubopt.c: Likewise.
62618         * lib/gettime.c: Likewise.
62619         * lib/getugroups.c: Likewise.
62620         * lib/getugroups.h: Likewise.
62621         * lib/getusershell.c: Likewise.
62622         * lib/gl_anyavltree_list1.h: Likewise.
62623         * lib/gl_anyavltree_list2.h: Likewise.
62624         * lib/gl_anyhash_list1.h: Likewise.
62625         * lib/gl_anyhash_list2.h: Likewise.
62626         * lib/gl_anylinked_list1.h: Likewise.
62627         * lib/gl_anylinked_list2.h: Likewise.
62628         * lib/gl_anyrbtree_list1.h: Likewise.
62629         * lib/gl_anyrbtree_list2.h: Likewise.
62630         * lib/gl_anytree_list1.h: Likewise.
62631         * lib/gl_anytree_list2.h: Likewise.
62632         * lib/gl_anytree_oset.h: Likewise.
62633         * lib/gl_anytreehash_list1.h: Likewise.
62634         * lib/gl_anytreehash_list2.h: Likewise.
62635         * lib/gl_array_list.c: Likewise.
62636         * lib/gl_array_list.h: Likewise.
62637         * lib/gl_array_oset.c: Likewise.
62638         * lib/gl_array_oset.h: Likewise.
62639         * lib/gl_avltree_list.c: Likewise.
62640         * lib/gl_avltree_list.h: Likewise.
62641         * lib/gl_avltree_oset.c: Likewise.
62642         * lib/gl_avltree_oset.h: Likewise.
62643         * lib/gl_avltreehash_list.c: Likewise.
62644         * lib/gl_avltreehash_list.h: Likewise.
62645         * lib/gl_carray_list.c: Likewise.
62646         * lib/gl_carray_list.h: Likewise.
62647         * lib/gl_linked_list.c: Likewise.
62648         * lib/gl_linked_list.h: Likewise.
62649         * lib/gl_linkedhash_list.c: Likewise.
62650         * lib/gl_linkedhash_list.h: Likewise.
62651         * lib/gl_list.c: Likewise.
62652         * lib/gl_list.h: Likewise.
62653         * lib/gl_oset.c: Likewise.
62654         * lib/gl_oset.h: Likewise.
62655         * lib/gl_rbtree_list.c: Likewise.
62656         * lib/gl_rbtree_list.h: Likewise.
62657         * lib/gl_rbtree_oset.c: Likewise.
62658         * lib/gl_rbtree_oset.h: Likewise.
62659         * lib/gl_rbtreehash_list.c: Likewise.
62660         * lib/gl_rbtreehash_list.h: Likewise.
62661         * lib/gl_sublist.c: Likewise.
62662         * lib/gl_sublist.h: Likewise.
62663         * lib/group-member.c: Likewise.
62664         * lib/group-member.h: Likewise.
62665         * lib/hard-locale.c: Likewise.
62666         * lib/hard-locale.h: Likewise.
62667         * lib/hash-pjw.c: Likewise.
62668         * lib/hash-pjw.h: Likewise.
62669         * lib/hash-triple.c: Likewise.
62670         * lib/hash.c: Likewise.
62671         * lib/hash.h: Likewise.
62672         * lib/human.c: Likewise.
62673         * lib/human.h: Likewise.
62674         * lib/i-ring.c: Likewise.
62675         * lib/i-ring.h: Likewise.
62676         * lib/idcache.c: Likewise.
62677         * lib/imaxabs.c: Likewise.
62678         * lib/imaxdiv.c: Likewise.
62679         * lib/inet_pton.c: Likewise.
62680         * lib/inet_pton.h: Likewise.
62681         * lib/intprops.h: Likewise.
62682         * lib/inttostr.c: Likewise.
62683         * lib/inttostr.h: Likewise.
62684         * lib/inttypes.in.h: Likewise.
62685         * lib/isapipe.c: Likewise.
62686         * lib/isdir.c: Likewise.
62687         * lib/isnan.c: Likewise.
62688         * lib/isnan.h: Likewise.
62689         * lib/isnanf.c: Likewise.
62690         * lib/isnanf.h: Likewise.
62691         * lib/isnanl-nolibm.h: Likewise.
62692         * lib/isnanl.c: Likewise.
62693         * lib/isnanl.h: Likewise.
62694         * lib/javacomp.c: Likewise.
62695         * lib/javacomp.h: Likewise.
62696         * lib/javaexec.c: Likewise.
62697         * lib/javaexec.h: Likewise.
62698         * lib/javaversion.c: Likewise.
62699         * lib/javaversion.h: Likewise.
62700         * lib/javaversion.java: Likewise.
62701         * lib/lbrkprop.h: Likewise.
62702         * lib/lchmod.h: Likewise.
62703         * lib/lchown.c: Likewise.
62704         * lib/ldexpl.c: Likewise.
62705         * lib/linebreak.c: Likewise.
62706         * lib/linebreak.h: Likewise.
62707         * lib/linebuffer.c: Likewise.
62708         * lib/linebuffer.h: Likewise.
62709         * lib/locale.in.h: Likewise.
62710         * lib/logl.c: Likewise.
62711         * lib/long-options.c: Likewise.
62712         * lib/long-options.h: Likewise.
62713         * lib/lstat.c: Likewise.
62714         * lib/lstat.h: Likewise.
62715         * lib/math.in.h: Likewise.
62716         * lib/mbchar.c: Likewise.
62717         * lib/mbchar.h: Likewise.
62718         * lib/mbfile.h: Likewise.
62719         * lib/mbiter.h: Likewise.
62720         * lib/mbscasecmp.c: Likewise.
62721         * lib/mbscasestr.c: Likewise.
62722         * lib/mbschr.c: Likewise.
62723         * lib/mbscspn.c: Likewise.
62724         * lib/mbslen.c: Likewise.
62725         * lib/mbsncasecmp.c: Likewise.
62726         * lib/mbsnlen.c: Likewise.
62727         * lib/mbspbrk.c: Likewise.
62728         * lib/mbspcasecmp.c: Likewise.
62729         * lib/mbsrchr.c: Likewise.
62730         * lib/mbssep.c: Likewise.
62731         * lib/mbsspn.c: Likewise.
62732         * lib/mbsstr.c: Likewise.
62733         * lib/mbstok_r.c: Likewise.
62734         * lib/mbswidth.c: Likewise.
62735         * lib/mbswidth.h: Likewise.
62736         * lib/mbuiter.h: Likewise.
62737         * lib/memcasecmp.c: Likewise.
62738         * lib/memcasecmp.h: Likewise.
62739         * lib/memchr.c: Likewise.
62740         * lib/memcmp.c: Likewise.
62741         * lib/memcoll.c: Likewise.
62742         * lib/memcoll.h: Likewise.
62743         * lib/memcpy.c: Likewise.
62744         * lib/memrchr.c: Likewise.
62745         * lib/mkancesdirs.c: Likewise.
62746         * lib/mkdir-p.c: Likewise.
62747         * lib/mkdir-p.h: Likewise.
62748         * lib/mkdir.c: Likewise.
62749         * lib/mkdirat.c: Likewise.
62750         * lib/mkdtemp.c: Likewise.
62751         * lib/mkstemp-safer.c: Likewise.
62752         * lib/mkstemp.c: Likewise.
62753         * lib/modechange.c: Likewise.
62754         * lib/modechange.h: Likewise.
62755         * lib/mountlist.c: Likewise.
62756         * lib/mountlist.h: Likewise.
62757         * lib/mpsort.c: Likewise.
62758         * lib/nanosleep.c: Likewise.
62759         * lib/obstack.c: Likewise.
62760         * lib/obstack.h: Likewise.
62761         * lib/open-safer.c: Likewise.
62762         * lib/open.c: Likewise.
62763         * lib/openat-die.c: Likewise.
62764         * lib/openat-priv.h: Likewise.
62765         * lib/openat-proc.c: Likewise.
62766         * lib/openat.c: Likewise.
62767         * lib/openat.h: Likewise.
62768         * lib/pagealign_alloc.c: Likewise.
62769         * lib/pagealign_alloc.h: Likewise.
62770         * lib/physmem.c: Likewise.
62771         * lib/physmem.h: Likewise.
62772         * lib/pipe-safer.c: Likewise.
62773         * lib/pipe.c: Likewise.
62774         * lib/pipe.h: Likewise.
62775         * lib/posixtm.c: Likewise.
62776         * lib/posixtm.h: Likewise.
62777         * lib/posixver.c: Likewise.
62778         * lib/printf-frexp.c: Likewise.
62779         * lib/printf-frexp.h: Likewise.
62780         * lib/printf-frexpl.c: Likewise.
62781         * lib/printf-frexpl.h: Likewise.
62782         * lib/printf.c: Likewise.
62783         * lib/progname.c: Likewise.
62784         * lib/progname.h: Likewise.
62785         * lib/progreloc.c: Likewise.
62786         * lib/putenv.c: Likewise.
62787         * lib/quote.c: Likewise.
62788         * lib/quote.h: Likewise.
62789         * lib/quotearg.c: Likewise.
62790         * lib/quotearg.h: Likewise.
62791         * lib/raise.c: Likewise.
62792         * lib/readline.c: Likewise.
62793         * lib/readline.h: Likewise.
62794         * lib/readlink.c: Likewise.
62795         * lib/readtokens.c: Likewise.
62796         * lib/readtokens.h: Likewise.
62797         * lib/readtokens0.c: Likewise.
62798         * lib/readtokens0.h: Likewise.
62799         * lib/readutmp.c: Likewise.
62800         * lib/readutmp.h: Likewise.
62801         * lib/realloc.c: Likewise.
62802         * lib/relocwrapper.c: Likewise.
62803         * lib/rename-dest-slash.c: Likewise.
62804         * lib/rename.c: Likewise.
62805         * lib/rmdir.c: Likewise.
62806         * lib/rpmatch.c: Likewise.
62807         * lib/safe-read.c: Likewise.
62808         * lib/safe-read.h: Likewise.
62809         * lib/safe-write.c: Likewise.
62810         * lib/safe-write.h: Likewise.
62811         * lib/same-inode.h: Likewise.
62812         * lib/same.c: Likewise.
62813         * lib/same.h: Likewise.
62814         * lib/save-cwd.c: Likewise.
62815         * lib/save-cwd.h: Likewise.
62816         * lib/savedir.c: Likewise.
62817         * lib/savedir.h: Likewise.
62818         * lib/savewd.c: Likewise.
62819         * lib/savewd.h: Likewise.
62820         * lib/search.in.h: Likewise.
62821         * lib/setenv.c: Likewise.
62822         * lib/setenv.h: Likewise.
62823         * lib/settime.c: Likewise.
62824         * lib/sh-quote.c: Likewise.
62825         * lib/sh-quote.h: Likewise.
62826         * lib/sig2str.c: Likewise.
62827         * lib/sig2str.h: Likewise.
62828         * lib/signal.in.h: Likewise.
62829         * lib/signbitd.c: Likewise.
62830         * lib/signbitf.c: Likewise.
62831         * lib/signbitl.c: Likewise.
62832         * lib/sigprocmask.c: Likewise.
62833         * lib/sincosl.c: Likewise.
62834         * lib/sleep.c: Likewise.
62835         * lib/sprintf.c: Likewise.
62836         * lib/sqrtl.c: Likewise.
62837         * lib/stat-time.h: Likewise.
62838         * lib/stdio--.h: Likewise.
62839         * lib/stdio-safer.h: Likewise.
62840         * lib/stdlib--.h: Likewise.
62841         * lib/stdlib-safer.h: Likewise.
62842         * lib/stdlib.in.h: Likewise.
62843         * lib/stpcpy.c: Likewise.
62844         * lib/stpncpy.c: Likewise.
62845         * lib/strchrnul.c: Likewise.
62846         * lib/strcspn.c: Likewise.
62847         * lib/strerror.c: Likewise.
62848         * lib/strftime.c: Likewise.
62849         * lib/strftime.h: Likewise.
62850         * lib/striconveh.c: Likewise.
62851         * lib/striconveh.h: Likewise.
62852         * lib/striconveha.c: Likewise.
62853         * lib/striconveha.h: Likewise.
62854         * lib/stripslash.c: Likewise.
62855         * lib/strnlen1.c: Likewise.
62856         * lib/strnlen1.h: Likewise.
62857         * lib/strtod.c: Likewise.
62858         * lib/strtoimax.c: Likewise.
62859         * lib/strtok_r.c: Likewise.
62860         * lib/strtol.c: Likewise.
62861         * lib/strtoll.c: Likewise.
62862         * lib/strtoul.c: Likewise.
62863         * lib/strtoull.c: Likewise.
62864         * lib/sysexits.in.h: Likewise.
62865         * lib/tempname.c: Likewise.
62866         * lib/tempname.h: Likewise.
62867         * lib/timespec.h: Likewise.
62868         * lib/tls.c: Likewise.
62869         * lib/tls.h: Likewise.
62870         * lib/tmpdir.c: Likewise.
62871         * lib/tmpdir.h: Likewise.
62872         * lib/tmpfile-safer.c: Likewise.
62873         * lib/tmpfile.c: Likewise.
62874         * lib/trigl.c: Likewise.
62875         * lib/trigl.h: Likewise.
62876         * lib/trim.c: Likewise.
62877         * lib/trim.h: Likewise.
62878         * lib/trunc.c: Likewise.
62879         * lib/truncf.c: Likewise.
62880         * lib/truncl.c: Likewise.
62881         * lib/tsearch.c: Likewise.
62882         * lib/unicodeio.c: Likewise.
62883         * lib/unicodeio.h: Likewise.
62884         * lib/unistd--.h: Likewise.
62885         * lib/unistd-safer.h: Likewise.
62886         * lib/unistdio/ulc-fprintf.c: Likewise.
62887         * lib/unistdio/ulc-vfprintf.c: Likewise.
62888         * lib/unlinkdir.c: Likewise.
62889         * lib/unlinkdir.h: Likewise.
62890         * lib/unlocked-io.h: Likewise.
62891         * lib/unsetenv.c: Likewise.
62892         * lib/userspec.c: Likewise.
62893         * lib/utime.c: Likewise.
62894         * lib/utimecmp.c: Likewise.
62895         * lib/utimecmp.h: Likewise.
62896         * lib/utimens.c: Likewise.
62897         * lib/verify.h: Likewise.
62898         * lib/verror.c: Likewise.
62899         * lib/verror.h: Likewise.
62900         * lib/version-etc-fsf.c: Likewise.
62901         * lib/version-etc.c: Likewise.
62902         * lib/version-etc.h: Likewise.
62903         * lib/vfprintf.c: Likewise.
62904         * lib/vprintf.c: Likewise.
62905         * lib/vsprintf.c: Likewise.
62906         * lib/w32spawn.h: Likewise.
62907         * lib/wait-process.c: Likewise.
62908         * lib/wait-process.h: Likewise.
62909         * lib/wcwidth.c: Likewise.
62910         * lib/write-any-file.c: Likewise.
62911         * lib/xalloc-die.c: Likewise.
62912         * lib/xalloc.h: Likewise.
62913         * lib/xasprintf.c: Likewise.
62914         * lib/xgetcwd.c: Likewise.
62915         * lib/xgetcwd.h: Likewise.
62916         * lib/xgetdomainname.c: Likewise.
62917         * lib/xgetdomainname.h: Likewise.
62918         * lib/xgethostname.c: Likewise.
62919         * lib/xmalloc.c: Likewise.
62920         * lib/xmalloca.c: Likewise.
62921         * lib/xmalloca.h: Likewise.
62922         * lib/xmemcoll.c: Likewise.
62923         * lib/xnanosleep.c: Likewise.
62924         * lib/xreadlink.c: Likewise.
62925         * lib/xreadlink.h: Likewise.
62926         * lib/xsetenv.c: Likewise.
62927         * lib/xsetenv.h: Likewise.
62928         * lib/xstriconv.c: Likewise.
62929         * lib/xstriconv.h: Likewise.
62930         * lib/xstrndup.c: Likewise.
62931         * lib/xstrndup.h: Likewise.
62932         * lib/xstrtod.c: Likewise.
62933         * lib/xstrtod.h: Likewise.
62934         * lib/xstrtol-error.c: Likewise.
62935         * lib/xstrtol.c: Likewise.
62936         * lib/xstrtol.h: Likewise.
62937         * lib/xtime.h: Likewise.
62938         * lib/xvasprintf.c: Likewise.
62939         * lib/xvasprintf.h: Likewise.
62940         * lib/yesno.c: Likewise.
62941         * lib/yesno.h: Likewise.
62942         * posix-modules: Likewise.
62943         * tests/test-alloca-opt.c: Likewise.
62944         * tests/test-arcfour.c: Likewise.
62945         * tests/test-arctwo.c: Likewise.
62946         * tests/test-argmatch.c: Likewise.
62947         * tests/test-argp-2.sh: Likewise.
62948         * tests/test-argp.c: Likewise.
62949         * tests/test-arpa_inet.c: Likewise.
62950         * tests/test-array_list.c: Likewise.
62951         * tests/test-array_oset.c: Likewise.
62952         * tests/test-atexit.c: Likewise.
62953         * tests/test-avltree_list.c: Likewise.
62954         * tests/test-avltree_oset.c: Likewise.
62955         * tests/test-avltreehash_list.c: Likewise.
62956         * tests/test-base64.c: Likewise.
62957         * tests/test-binary-io.c: Likewise.
62958         * tests/test-byteswap.c: Likewise.
62959         * tests/test-c-ctype.c: Likewise.
62960         * tests/test-c-strcasecmp.c: Likewise.
62961         * tests/test-c-strcasestr.c: Likewise.
62962         * tests/test-c-strncasecmp.c: Likewise.
62963         * tests/test-c-strstr.c: Likewise.
62964         * tests/test-canonicalize-lgpl.c: Likewise.
62965         * tests/test-canonicalize.c: Likewise.
62966         * tests/test-carray_list.c: Likewise.
62967         * tests/test-ceilf.c: Likewise.
62968         * tests/test-ceill.c: Likewise.
62969         * tests/test-count-one-bits.c: Likewise.
62970         * tests/test-crc.c: Likewise.
62971         * tests/test-dirname.c: Likewise.
62972         * tests/test-fbufmode.c: Likewise.
62973         * tests/test-fcntl.c: Likewise.
62974         * tests/test-fflush.c: Likewise.
62975         * tests/test-floorf.c: Likewise.
62976         * tests/test-floorl.c: Likewise.
62977         * tests/test-fopen.c: Likewise.
62978         * tests/test-fprintf-posix.c: Likewise.
62979         * tests/test-fprintf-posix.h: Likewise.
62980         * tests/test-fpurge.c: Likewise.
62981         * tests/test-freadable.c: Likewise.
62982         * tests/test-freadahead.c: Likewise.
62983         * tests/test-freading.c: Likewise.
62984         * tests/test-freopen.c: Likewise.
62985         * tests/test-frexp.c: Likewise.
62986         * tests/test-frexpl.c: Likewise.
62987         * tests/test-fseek.c: Likewise.
62988         * tests/test-fseeko.c: Likewise.
62989         * tests/test-fseterr.c: Likewise.
62990         * tests/test-fstrcmp.c: Likewise.
62991         * tests/test-ftell.c: Likewise.
62992         * tests/test-ftello.c: Likewise.
62993         * tests/test-fwritable.c: Likewise.
62994         * tests/test-fwriting.c: Likewise.
62995         * tests/test-getaddrinfo.c: Likewise.
62996         * tests/test-getpass.c: Likewise.
62997         * tests/test-gettimeofday.c: Likewise.
62998         * tests/test-hmac-md5.c: Likewise.
62999         * tests/test-hmac-sha1.c: Likewise.
63000         * tests/test-iconv.c: Likewise.
63001         * tests/test-iconvme.c: Likewise.
63002         * tests/test-inttypes.c: Likewise.
63003         * tests/test-isnan.c: Likewise.
63004         * tests/test-isnanf.c: Likewise.
63005         * tests/test-isnanl-nolibm.c: Likewise.
63006         * tests/test-isnanl.c: Likewise.
63007         * tests/test-isnanl.h: Likewise.
63008         * tests/test-ldexpl.c: Likewise.
63009         * tests/test-linked_list.c: Likewise.
63010         * tests/test-linkedhash_list.c: Likewise.
63011         * tests/test-locale.c: Likewise.
63012         * tests/test-localename.c: Likewise.
63013         * tests/test-lock.c: Likewise.
63014         * tests/test-lseek.c: Likewise.
63015         * tests/test-malloca.c: Likewise.
63016         * tests/test-math.c: Likewise.
63017         * tests/test-mbscasecmp.c: Likewise.
63018         * tests/test-mbscasestr1.c: Likewise.
63019         * tests/test-mbscasestr2.c: Likewise.
63020         * tests/test-mbscasestr3.c: Likewise.
63021         * tests/test-mbscasestr4.c: Likewise.
63022         * tests/test-mbschr.c: Likewise.
63023         * tests/test-mbscspn.c: Likewise.
63024         * tests/test-mbsncasecmp.c: Likewise.
63025         * tests/test-mbspbrk.c: Likewise.
63026         * tests/test-mbspcasecmp.c: Likewise.
63027         * tests/test-mbsrchr.c: Likewise.
63028         * tests/test-mbsspn.c: Likewise.
63029         * tests/test-mbsstr1.c: Likewise.
63030         * tests/test-mbsstr2.c: Likewise.
63031         * tests/test-mbsstr3.c: Likewise.
63032         * tests/test-md5.c: Likewise.
63033         * tests/test-memmem.c: Likewise.
63034         * tests/test-netinet_in.c: Likewise.
63035         * tests/test-open.c: Likewise.
63036         * tests/test-printf-frexp.c: Likewise.
63037         * tests/test-printf-frexpl.c: Likewise.
63038         * tests/test-printf-posix.c: Likewise.
63039         * tests/test-printf-posix.h: Likewise.
63040         * tests/test-rbtree_list.c: Likewise.
63041         * tests/test-rbtree_oset.c: Likewise.
63042         * tests/test-rbtreehash_list.c: Likewise.
63043         * tests/test-read-file.c: Likewise.
63044         * tests/test-rijndael.c: Likewise.
63045         * tests/test-search.c: Likewise.
63046         * tests/test-signbit.c: Likewise.
63047         * tests/test-sleep.c: Likewise.
63048         * tests/test-snprintf-posix.c: Likewise.
63049         * tests/test-snprintf-posix.h: Likewise.
63050         * tests/test-snprintf.c: Likewise.
63051         * tests/test-sprintf-posix.c: Likewise.
63052         * tests/test-sprintf-posix.h: Likewise.
63053         * tests/test-stat-time.c: Likewise.
63054         * tests/test-stdbool.c: Likewise.
63055         * tests/test-stdint.c: Likewise.
63056         * tests/test-stdio.c: Likewise.
63057         * tests/test-stdlib.c: Likewise.
63058         * tests/test-stpncpy.c: Likewise.
63059         * tests/test-strcasestr.c: Likewise.
63060         * tests/test-striconv.c: Likewise.
63061         * tests/test-striconveh.c: Likewise.
63062         * tests/test-striconveha.c: Likewise.
63063         * tests/test-string.c: Likewise.
63064         * tests/test-sys_select.c: Likewise.
63065         * tests/test-sys_socket.c: Likewise.
63066         * tests/test-sys_stat.c: Likewise.
63067         * tests/test-sys_time.c: Likewise.
63068         * tests/test-sysexits.c: Likewise.
63069         * tests/test-time.c: Likewise.
63070         * tests/test-tls.c: Likewise.
63071         * tests/test-trunc.c: Likewise.
63072         * tests/test-truncf.c: Likewise.
63073         * tests/test-truncl.c: Likewise.
63074         * tests/test-unistd.c: Likewise.
63075         * tests/test-vasnprintf-posix.c: Likewise.
63076         * tests/test-vasnprintf-posix2.c: Likewise.
63077         * tests/test-vasnprintf.c: Likewise.
63078         * tests/test-vasprintf-posix.c: Likewise.
63079         * tests/test-vasprintf.c: Likewise.
63080         * tests/test-verify.c: Likewise.
63081         * tests/test-vfprintf-posix.c: Likewise.
63082         * tests/test-vprintf-posix.c: Likewise.
63083         * tests/test-vsnprintf-posix.c: Likewise.
63084         * tests/test-vsnprintf.c: Likewise.
63085         * tests/test-vsprintf-posix.c: Likewise.
63086         * tests/test-wchar.c: Likewise.
63087         * tests/test-wctype.c: Likewise.
63088         * tests/test-wcwidth.c: Likewise.
63089         * tests/test-xstrtol.c: Likewise.
63090         * tests/test-xvasprintf.c: Likewise.
63091         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63092         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63093         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63094         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63095         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63096         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63097         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63098         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63099         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63100         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63101         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63102         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63103         * tests/uniname/test-uninames.c: Likewise.
63104         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63105         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63106         * tests/unistdio/test-u16-printf1.h: Likewise.
63107         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63108         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63109         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63110         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63111         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63112         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63113         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63114         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63115         * tests/unistdio/test-u32-printf1.h: Likewise.
63116         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63117         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63118         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63119         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63120         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63121         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63122         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63123         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63124         * tests/unistdio/test-u8-printf1.h: Likewise.
63125         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63126         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63127         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63128         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63129         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63130         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63131         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63132         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63133         * tests/unistdio/test-ulc-printf1.h: Likewise.
63134         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63135         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63136         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63137         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63138         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63139         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63140         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63141         * tests/uniwidth/test-u16-width.c: Likewise.
63142         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63143         * tests/uniwidth/test-u32-width.c: Likewise.
63144         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63145         * tests/uniwidth/test-u8-width.c: Likewise.
63146         * tests/uniwidth/test-uc_width.c: Likewise.
63147         * config/srclist-update: Likewise.
63148         (fixlicense): Update to GPLv3+.
63149
63150         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63151         * tests/test-tsearch.c: Change copyright notice.
63152
63153         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63154         * lib/c-strcaseeq.h: Change copyright notice.
63155         * lib/streq.h: Likewise.
63156         * lib/uniconv.h: Likewise.
63157         * lib/uniconv/u-conv-from-enc.h: Likewise.
63158         * lib/uniconv/u-conv-to-enc.h: Likewise.
63159         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63160         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63161         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63162         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63163         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63164         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63165         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63166         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63167         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63168         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63169         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63170         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63171         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63172         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63173         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63174         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63175         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63176         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63177         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63178         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63179         * lib/uniname.h: Likewise.
63180         * lib/uniname/uniname.c: Likewise.
63181         * lib/unistdio.h: Likewise.
63182         * lib/unistdio/u-asnprintf.h: Likewise.
63183         * lib/unistdio/u-asprintf.h: Likewise.
63184         * lib/unistdio/u-printf-args.c: Likewise.
63185         * lib/unistdio/u-printf-args.h: Likewise.
63186         * lib/unistdio/u-printf-parse.h: Likewise.
63187         * lib/unistdio/u-snprintf.h: Likewise.
63188         * lib/unistdio/u-sprintf.h: Likewise.
63189         * lib/unistdio/u-vasprintf.h: Likewise.
63190         * lib/unistdio/u-vsnprintf.h: Likewise.
63191         * lib/unistdio/u-vsprintf.h: Likewise.
63192         * lib/unistdio/u16-asnprintf.c: Likewise.
63193         * lib/unistdio/u16-asprintf.c: Likewise.
63194         * lib/unistdio/u16-printf-parse.c: Likewise.
63195         * lib/unistdio/u16-snprintf.c: Likewise.
63196         * lib/unistdio/u16-sprintf.c: Likewise.
63197         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63198         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63199         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63200         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63201         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63202         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63203         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63204         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63205         * lib/unistdio/u16-vasnprintf.c: Likewise.
63206         * lib/unistdio/u16-vasprintf.c: Likewise.
63207         * lib/unistdio/u16-vsnprintf.c: Likewise.
63208         * lib/unistdio/u16-vsprintf.c: Likewise.
63209         * lib/unistdio/u32-asnprintf.c: Likewise.
63210         * lib/unistdio/u32-asprintf.c: Likewise.
63211         * lib/unistdio/u32-printf-parse.c: Likewise.
63212         * lib/unistdio/u32-snprintf.c: Likewise.
63213         * lib/unistdio/u32-sprintf.c: Likewise.
63214         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63215         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63216         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63217         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63218         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63219         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63220         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63221         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63222         * lib/unistdio/u32-vasnprintf.c: Likewise.
63223         * lib/unistdio/u32-vasprintf.c: Likewise.
63224         * lib/unistdio/u32-vsnprintf.c: Likewise.
63225         * lib/unistdio/u32-vsprintf.c: Likewise.
63226         * lib/unistdio/u8-asnprintf.c: Likewise.
63227         * lib/unistdio/u8-asprintf.c: Likewise.
63228         * lib/unistdio/u8-printf-parse.c: Likewise.
63229         * lib/unistdio/u8-snprintf.c: Likewise.
63230         * lib/unistdio/u8-sprintf.c: Likewise.
63231         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63232         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63233         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63234         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63235         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63236         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63237         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63238         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63239         * lib/unistdio/u8-vasnprintf.c: Likewise.
63240         * lib/unistdio/u8-vasprintf.c: Likewise.
63241         * lib/unistdio/u8-vsnprintf.c: Likewise.
63242         * lib/unistdio/u8-vsprintf.c: Likewise.
63243         * lib/unistdio/ulc-asnprintf.c: Likewise.
63244         * lib/unistdio/ulc-asprintf.c: Likewise.
63245         * lib/unistdio/ulc-printf-parse.c: Likewise.
63246         * lib/unistdio/ulc-snprintf.c: Likewise.
63247         * lib/unistdio/ulc-sprintf.c: Likewise.
63248         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63249         * lib/unistdio/ulc-vasprintf.c: Likewise.
63250         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63251         * lib/unistdio/ulc-vsprintf.c: Likewise.
63252         * lib/unistr.h: Likewise.
63253         * lib/unistr/u-cpy-alloc.h: Likewise.
63254         * lib/unistr/u-cpy.h: Likewise.
63255         * lib/unistr/u-endswith.h: Likewise.
63256         * lib/unistr/u-move.h: Likewise.
63257         * lib/unistr/u-set.h: Likewise.
63258         * lib/unistr/u-startswith.h: Likewise.
63259         * lib/unistr/u-stpcpy.h: Likewise.
63260         * lib/unistr/u-stpncpy.h: Likewise.
63261         * lib/unistr/u-strcat.h: Likewise.
63262         * lib/unistr/u-strcpy.h: Likewise.
63263         * lib/unistr/u-strcspn.h: Likewise.
63264         * lib/unistr/u-strdup.h: Likewise.
63265         * lib/unistr/u-strlen.h: Likewise.
63266         * lib/unistr/u-strncat.h: Likewise.
63267         * lib/unistr/u-strncpy.h: Likewise.
63268         * lib/unistr/u-strnlen.h: Likewise.
63269         * lib/unistr/u-strpbrk.h: Likewise.
63270         * lib/unistr/u-strspn.h: Likewise.
63271         * lib/unistr/u-strstr.h: Likewise.
63272         * lib/unistr/u-strtok.h: Likewise.
63273         * lib/unistr/u16-check.c: Likewise.
63274         * lib/unistr/u16-chr.c: Likewise.
63275         * lib/unistr/u16-cmp.c: Likewise.
63276         * lib/unistr/u16-cpy-alloc.c: Likewise.
63277         * lib/unistr/u16-cpy.c: Likewise.
63278         * lib/unistr/u16-endswith.c: Likewise.
63279         * lib/unistr/u16-mblen.c: Likewise.
63280         * lib/unistr/u16-mbsnlen.c: Likewise.
63281         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63282         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63283         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63284         * lib/unistr/u16-mbtouc.c: Likewise.
63285         * lib/unistr/u16-mbtoucr.c: Likewise.
63286         * lib/unistr/u16-move.c: Likewise.
63287         * lib/unistr/u16-next.c: Likewise.
63288         * lib/unistr/u16-prev.c: Likewise.
63289         * lib/unistr/u16-set.c: Likewise.
63290         * lib/unistr/u16-startswith.c: Likewise.
63291         * lib/unistr/u16-stpcpy.c: Likewise.
63292         * lib/unistr/u16-stpncpy.c: Likewise.
63293         * lib/unistr/u16-strcat.c: Likewise.
63294         * lib/unistr/u16-strchr.c: Likewise.
63295         * lib/unistr/u16-strcmp.c: Likewise.
63296         * lib/unistr/u16-strcpy.c: Likewise.
63297         * lib/unistr/u16-strcspn.c: Likewise.
63298         * lib/unistr/u16-strdup.c: Likewise.
63299         * lib/unistr/u16-strlen.c: Likewise.
63300         * lib/unistr/u16-strmblen.c: Likewise.
63301         * lib/unistr/u16-strmbtouc.c: Likewise.
63302         * lib/unistr/u16-strncat.c: Likewise.
63303         * lib/unistr/u16-strncmp.c: Likewise.
63304         * lib/unistr/u16-strncpy.c: Likewise.
63305         * lib/unistr/u16-strnlen.c: Likewise.
63306         * lib/unistr/u16-strpbrk.c: Likewise.
63307         * lib/unistr/u16-strrchr.c: Likewise.
63308         * lib/unistr/u16-strspn.c: Likewise.
63309         * lib/unistr/u16-strstr.c: Likewise.
63310         * lib/unistr/u16-strtok.c: Likewise.
63311         * lib/unistr/u16-to-u32.c: Likewise.
63312         * lib/unistr/u16-to-u8.c: Likewise.
63313         * lib/unistr/u16-uctomb-aux.c: Likewise.
63314         * lib/unistr/u16-uctomb.c: Likewise.
63315         * lib/unistr/u32-check.c: Likewise.
63316         * lib/unistr/u32-chr.c: Likewise.
63317         * lib/unistr/u32-cmp.c: Likewise.
63318         * lib/unistr/u32-cpy-alloc.c: Likewise.
63319         * lib/unistr/u32-cpy.c: Likewise.
63320         * lib/unistr/u32-endswith.c: Likewise.
63321         * lib/unistr/u32-mblen.c: Likewise.
63322         * lib/unistr/u32-mbsnlen.c: Likewise.
63323         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63324         * lib/unistr/u32-mbtouc.c: Likewise.
63325         * lib/unistr/u32-mbtoucr.c: Likewise.
63326         * lib/unistr/u32-move.c: Likewise.
63327         * lib/unistr/u32-next.c: Likewise.
63328         * lib/unistr/u32-prev.c: Likewise.
63329         * lib/unistr/u32-set.c: Likewise.
63330         * lib/unistr/u32-startswith.c: Likewise.
63331         * lib/unistr/u32-stpcpy.c: Likewise.
63332         * lib/unistr/u32-stpncpy.c: Likewise.
63333         * lib/unistr/u32-strcat.c: Likewise.
63334         * lib/unistr/u32-strchr.c: Likewise.
63335         * lib/unistr/u32-strcmp.c: Likewise.
63336         * lib/unistr/u32-strcpy.c: Likewise.
63337         * lib/unistr/u32-strcspn.c: Likewise.
63338         * lib/unistr/u32-strdup.c: Likewise.
63339         * lib/unistr/u32-strlen.c: Likewise.
63340         * lib/unistr/u32-strmblen.c: Likewise.
63341         * lib/unistr/u32-strmbtouc.c: Likewise.
63342         * lib/unistr/u32-strncat.c: Likewise.
63343         * lib/unistr/u32-strncmp.c: Likewise.
63344         * lib/unistr/u32-strncpy.c: Likewise.
63345         * lib/unistr/u32-strnlen.c: Likewise.
63346         * lib/unistr/u32-strpbrk.c: Likewise.
63347         * lib/unistr/u32-strrchr.c: Likewise.
63348         * lib/unistr/u32-strspn.c: Likewise.
63349         * lib/unistr/u32-strstr.c: Likewise.
63350         * lib/unistr/u32-strtok.c: Likewise.
63351         * lib/unistr/u32-to-u16.c: Likewise.
63352         * lib/unistr/u32-to-u8.c: Likewise.
63353         * lib/unistr/u32-uctomb.c: Likewise.
63354         * lib/unistr/u8-check.c: Likewise.
63355         * lib/unistr/u8-chr.c: Likewise.
63356         * lib/unistr/u8-cmp.c: Likewise.
63357         * lib/unistr/u8-cpy-alloc.c: Likewise.
63358         * lib/unistr/u8-cpy.c: Likewise.
63359         * lib/unistr/u8-endswith.c: Likewise.
63360         * lib/unistr/u8-mblen.c: Likewise.
63361         * lib/unistr/u8-mbsnlen.c: Likewise.
63362         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63363         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63364         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63365         * lib/unistr/u8-mbtouc.c: Likewise.
63366         * lib/unistr/u8-mbtoucr.c: Likewise.
63367         * lib/unistr/u8-move.c: Likewise.
63368         * lib/unistr/u8-next.c: Likewise.
63369         * lib/unistr/u8-prev.c: Likewise.
63370         * lib/unistr/u8-set.c: Likewise.
63371         * lib/unistr/u8-startswith.c: Likewise.
63372         * lib/unistr/u8-stpcpy.c: Likewise.
63373         * lib/unistr/u8-stpncpy.c: Likewise.
63374         * lib/unistr/u8-strcat.c: Likewise.
63375         * lib/unistr/u8-strchr.c: Likewise.
63376         * lib/unistr/u8-strcmp.c: Likewise.
63377         * lib/unistr/u8-strcpy.c: Likewise.
63378         * lib/unistr/u8-strcspn.c: Likewise.
63379         * lib/unistr/u8-strdup.c: Likewise.
63380         * lib/unistr/u8-strlen.c: Likewise.
63381         * lib/unistr/u8-strmblen.c: Likewise.
63382         * lib/unistr/u8-strmbtouc.c: Likewise.
63383         * lib/unistr/u8-strncat.c: Likewise.
63384         * lib/unistr/u8-strncmp.c: Likewise.
63385         * lib/unistr/u8-strncpy.c: Likewise.
63386         * lib/unistr/u8-strnlen.c: Likewise.
63387         * lib/unistr/u8-strpbrk.c: Likewise.
63388         * lib/unistr/u8-strrchr.c: Likewise.
63389         * lib/unistr/u8-strspn.c: Likewise.
63390         * lib/unistr/u8-strstr.c: Likewise.
63391         * lib/unistr/u8-strtok.c: Likewise.
63392         * lib/unistr/u8-to-u16.c: Likewise.
63393         * lib/unistr/u8-to-u32.c: Likewise.
63394         * lib/unistr/u8-uctomb-aux.c: Likewise.
63395         * lib/unistr/u8-uctomb.c: Likewise.
63396         * lib/unitypes.h: Likewise.
63397         * lib/uniwidth.h: Likewise.
63398         * lib/uniwidth/cjk.h: Likewise.
63399         * lib/uniwidth/u16-strwidth.c: Likewise.
63400         * lib/uniwidth/u16-width.c: Likewise.
63401         * lib/uniwidth/u32-strwidth.c: Likewise.
63402         * lib/uniwidth/u32-width.c: Likewise.
63403         * lib/uniwidth/u8-strwidth.c: Likewise.
63404         * lib/uniwidth/u8-width.c: Likewise.
63405         * lib/uniwidth/width.c: Likewise.
63406
63407 2007-10-07  Bruno Haible  <bruno@clisp.org>
63408
63409         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63410         The file is still under LGPL (see modules/inttypes).
63411
63412 2007-10-06  Bruno Haible  <bruno@clisp.org>
63413
63414         * modules/trunc (Dependencies): Add 'extensions'.
63415         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63416         Reported by Ben Pfaff <blp@gnu.org>.
63417
63418 2007-10-06  Bruno Haible  <bruno@clisp.org>
63419
63420         * modules/freopen-tests: New file.
63421         * tests/test-freopen.c: New file.
63422
63423         * modules/fopen-tests: New file.
63424         * tests/test-fopen.c: New file.
63425
63426         * modules/fopen: New file.
63427         * lib/fopen.c: New file.
63428         * m4/fopen.m4: New file.
63429         * modules/freopen: New file.
63430         * lib/freopen.c: New file.
63431         * m4/freopen.m4: New file.
63432         * lib/stdio.in.h (fopen, freopen): New declarations.
63433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63434         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63435         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63436         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63437         * doc/functions/fopen.texi: Mention the 'fopen' module.
63438         * doc/functions/freopen.texi: Mention the 'freopen' module.
63439
63440 2007-10-06  Bruno Haible  <bruno@clisp.org>
63441
63442         * modules/open-tests: New file.
63443         * tests/test-open.c: New file.
63444
63445         * modules/open: New file.
63446         * lib/open.c: New file.
63447         * m4/open.m4: New file.
63448         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63449         lib/open.c does.
63450         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63451         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63452         macros.
63453         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63454         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63455         REPLACE_OPEN.
63456         * doc/functions/open.texi: Mention the 'open' module.
63457
63458 2007-10-04  Bruno Haible  <bruno@clisp.org>
63459
63460         * modules/ceill-tests: New file.
63461         * tests/test-ceill.c: New file.
63462
63463         * modules/ceill: New file.
63464         * lib/ceill.c: Replace entire file.
63465         * m4/ceill.m4: New file.
63466         * lib/math.in.h (ceill): Replace declaration.
63467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63468         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63469         * doc/functions/ceill.texi: Mention the 'ceill' module.
63470         * modules/mathl (Files): Remove lib/ceill.c.
63471         (Depends-on): Add ceill.
63472
63473 2007-10-04  Bruno Haible  <bruno@clisp.org>
63474
63475         * modules/ceilf-tests: New file.
63476         * tests/test-ceilf.c: New file.
63477
63478         * modules/ceilf: New file.
63479         * lib/ceil.c: New file.
63480         * lib/ceilf.c: New file.
63481         * m4/ceilf.m4: New file.
63482         * lib/math.in.h (ceilf): New declaration.
63483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63484         HAVE_DECL_CEILF.
63485         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63486         HAVE_DECL_CEILF.
63487         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63488
63489 2007-10-04  Bruno Haible  <bruno@clisp.org>
63490
63491         * modules/floorl-tests: New file.
63492         * tests/test-floorl.c: New file.
63493
63494         * modules/floorl: New file.
63495         * lib/floorl.c: Replace entire file.
63496         * m4/floorl.m4: New file.
63497         * lib/math.in.h (floorl): Replace declaration.
63498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63499         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63500         * doc/functions/floorl.texi: Mention the 'floorl' module.
63501         * modules/mathl (Files): Remove lib/floorl.c.
63502         (Depends-on): Add floorl.
63503
63504 2007-10-04  Bruno Haible  <bruno@clisp.org>
63505
63506         * modules/floorf-tests: New file.
63507         * tests/test-floorf.c: New file.
63508
63509         * modules/floorf: New file.
63510         * lib/floor.c: New file.
63511         * lib/floorf.c: New file.
63512         * m4/floorf.m4: New file.
63513         * lib/math.in.h (floorf): New declaration.
63514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63515         HAVE_DECL_FLOORF.
63516         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63517         HAVE_DECL_FLOORF.
63518         * doc/functions/floorf.texi: Mention the 'floorf' module.
63519
63520 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63521             Bruno Haible  <bruno@clisp.org>
63522
63523         Advertise for the Git server instead of the CVS server.
63524         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63525         repository instead of the CVS one.
63526         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63527         about all VCS systems generically.
63528         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63529
63530 2007-10-04  Bruno Haible  <bruno@clisp.org>
63531
63532         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63533         means.
63534         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63535
63536 2007-10-04  Bruno Haible  <bruno@clisp.org>
63537
63538         * modules/truncl-tests: New file.
63539         * tests/test-truncl.c: New file.
63540
63541         * modules/truncl: New file.
63542         * lib/truncl.c: New file.
63543         * m4/truncl.m4: New file.
63544         * lib/math.in.h (truncl): New declaration.
63545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63546         HAVE_DECL_TRUNCL.
63547         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63548         HAVE_DECL_TRUNCL.
63549         * doc/functions/truncl.texi: Mention the 'truncl' module.
63550
63551 2007-10-04  Bruno Haible  <bruno@clisp.org>
63552
63553         * modules/truncf-tests: New file.
63554         * tests/test-truncf.c: New file.
63555
63556         * modules/truncf: New file.
63557         * lib/trunc.c: Make paramerizable through USE_* macros.
63558         * lib/truncf.c: New file.
63559         * m4/truncf.m4: New file.
63560         * lib/math.in.h (truncf): New declaration.
63561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63562         HAVE_DECL_TRUNCF.
63563         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63564         HAVE_DECL_TRUNCF.
63565         * doc/functions/truncf.texi: Mention the 'truncf' module.
63566
63567 2007-10-03  Bruno Haible  <bruno@clisp.org>
63568
63569         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63570         augmentation also for tests modules.
63571         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63572         * modules/atexit-tests (Makefile.am): Likewise.
63573         * modules/binary-io-tests (Makefile.am): Likewise.
63574         * modules/c-strcase-tests (Makefile.am): Likewise.
63575         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63576         * modules/canonicalize-tests (Makefile.am): Likewise.
63577         * modules/closein-tests (Makefile.am): Likewise.
63578         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63579         * modules/freadahead-tests (Makefile.am): Likewise.
63580         * modules/fseek-tests (Makefile.am): Likewise.
63581         * modules/fseeko-tests (Makefile.am): Likewise.
63582         * modules/ftell-tests (Makefile.am): Likewise.
63583         * modules/ftello-tests (Makefile.am): Likewise.
63584         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63585         * modules/isnanl-tests (Makefile.am): Likewise.
63586         * modules/lseek-tests (Makefile.am): Likewise.
63587         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63588         * modules/mbscasestr-tests (Makefile.am): Likewise.
63589         * modules/mbschr-tests (Makefile.am): Likewise.
63590         * modules/mbscspn-tests (Makefile.am): Likewise.
63591         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63592         * modules/mbspbrk-tests (Makefile.am): Likewise.
63593         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63594         * modules/mbsrchr-tests (Makefile.am): Likewise.
63595         * modules/mbsspn-tests (Makefile.am): Likewise.
63596         * modules/mbsstr-tests (Makefile.am): Likewise.
63597         * modules/printf-posix-tests (Makefile.am): Likewise.
63598         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63599         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63600         * modules/tsearch-tests (Makefile.am): Likewise.
63601         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63602         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63603         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63604         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63605         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63606         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63607         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63608         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63609         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63610         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63611         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63612         * modules/xstrtol-tests (Makefile.am): Likewise.
63613         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63614         * modules/yesno-tests (Makefile.am): Likewise.
63615
63616 2007-10-03  Bruno Haible  <bruno@clisp.org>
63617
63618         * modules/trunc-tests: New file.
63619         * tests/test-trunc.c: New file.
63620
63621         * modules/trunc: New file.
63622         * lib/trunc.c: New file.
63623         * m4/trunc.m4: New file.
63624         * lib/math.in.h (trunc): New declaration.
63625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63626         HAVE_DECL_TRUNC.
63627         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63628         HAVE_DECL_TRUNC.
63629         * doc/functions/trunc.texi: Mention the 'trunc' module.
63630
63631 2007-10-03  Bruno Haible  <bruno@clisp.org>
63632
63633         * tests/test-fpending.c: New file, mostly copied
63634         from coreutils/lib/t-fpending.c.
63635         * modules/fpending-tests: New file.
63636
63637 2007-10-03  Bruno Haible  <bruno@clisp.org>
63638
63639         Port the stdio extensions to QNX (untested).
63640         * lib/fseterr.c (fseterr): Add support for QNX.
63641         * lib/fbufmode.c (fbufmode): Likewise.
63642         * lib/freadable.c (freadable): Likewise.
63643         * lib/fwritable.c (fwritable): Likewise.
63644         * lib/freading.c (freading): Likewise.
63645         * lib/fwriting.c (fwriting): Likewise.
63646         * lib/freadahead.c (freadahed): Likewise.
63647         * lib/fpurge.c (fpurge): Likewise.
63648         * lib/fseeko.c (rpl_fseeko): Likewise.
63649
63650 2007-10-03  Bruno Haible  <bruno@clisp.org>
63651             Jim Meyering  <jim@meyering.net>
63652             Eric Blake  <ebb9@byu.net>
63653
63654         * doc/relocatable.texi: Use @command instead of @program.
63655
63656 2007-10-02  Jim Meyering  <jim@meyering.net>
63657
63658         Perform one more "_.h" -> ".in.h" substitution.
63659         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63660         instead of unistd_.h here, too.
63661
63662 2007-10-01  Bruno Haible  <bruno@clisp.org>
63663
63664         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63665         Needed for the alloca-opt module.
63666
63667 2007-09-30  Bruno Haible  <bruno@clisp.org>
63668
63669         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63670         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63671         alloca_.h.
63672         * lib/argz.in.h: Renamed from lib/argz_.h.
63673         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63674         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63675         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63676         byteswap_.h.
63677         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63678         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63679         dirent_.h.
63680         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63681         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63682         fcntl_.h.
63683         * lib/float.in.h: Renamed from lib/float_.h.
63684         * modules/float (Files, Makefile.am): Use float.in.h instead of
63685         float_.h.
63686         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63687         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63688         fnmatch_.h.
63689         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63690         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63691         getopt_.h.
63692         * lib/glob.in.h: Renamed from lib/glob_.h.
63693         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63694         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63695         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63696         iconv_.h.
63697         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63698         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63699         inttypes_.h.
63700         * lib/locale.in.h: Renamed from lib/locale_.h.
63701         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63702         locale_.h.
63703         * lib/math.in.h: Renamed from lib/math_.h.
63704         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63705         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63706         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63707         of netinet_in_.h. Add dependency.
63708         * lib/poll.in.h: Renamed from lib/poll_.h.
63709         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63710         * lib/search.in.h: Renamed from lib/search_.h.
63711         * modules/search (Files, Makefile.am): Use search.in.h instead of
63712         search_.h.
63713         * lib/signal.in.h: Renamed from lib/signal_.h.
63714         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63715         _signal.h.
63716         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63717         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63718         stdbool_.h.
63719         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63720         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63721         stdint_.h.
63722         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63723         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63724         stdio_.h.
63725         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63726         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63727         stdlib_.h.
63728         * lib/string.in.h: Renamed from lib/string_.h.
63729         * modules/string (Files, Makefile.am): Use string.in.h instead of
63730         string_.h.
63731         * doc/gnulib-tool.texi (Initial import): Update.
63732         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63733         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63734         of sys_select_.h. Add dependency.
63735         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63736         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63737         of sys_socket_.h.
63738         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63739         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63740         sys_stat_.h.
63741         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63742         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63743         sys_time_.h.
63744         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63745         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63746         sysexits_.h.
63747         * lib/time.in.h: Renamed from lib/time_.h.
63748         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63749         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63750         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63751         unistd_.h.
63752         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63753         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63754         wchar_.h.
63755         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63756         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63757         wctype_.h.
63758         * build-aux/bootstrap (slurp): Update.
63759         * lib/.cppi-disable: Update.
63760
63761 2007-09-30  Bruno Haible  <bruno@clisp.org>
63762
63763         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63764         Needed on BeOS.
63765
63766 2007-09-30  Bruno Haible  <bruno@clisp.org>
63767
63768         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63769
63770 2007-09-29  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63773
63774 2007-09-29  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63777         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63778         * build-aux/install-reloc: Compile also areadlink.c.
63779         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63780
63781 2007-09-29  Bruno Haible  <bruno@clisp.org>
63782
63783         * gnulib-tool (func_emit_initmacro_done): Indentation.
63784
63785 2007-09-29  Bruno Haible  <bruno@clisp.org>
63786
63787         * README: Add CVS checkout update instructions.
63788         Info from Bob Proulx <bob@proulx.com>.
63789
63790 2007-09-28  Eric Blake  <ebb9@byu.net>
63791
63792         Provide move-if-change.
63793         * build-aux/move-if-change: New file, based on best practice
63794         rather than any canonical upstream location.
63795
63796 2007-09-28  Jim Meyering  <jim@meyering.net>
63797
63798         Fix canonicalize loop-detection corner case.
63799         Do not attempt to stat the symlink values stored via seen_triple.
63800         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63801         on linux-2.6.18, (but not 2.6.22).
63802         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63803         triple_compare.  The former compares dev,ino,filename, while the latter
63804         would actually stat dirname(filename) when dev and ino were equal.
63805         * lib/hash-triple.c: Install <string.h>.
63806         (STREQ): Define.
63807         (triple_compare_ino_str): New function.
63808         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63809
63810 2007-09-28  Eric Blake  <ebb9@byu.net>
63811
63812         Enforce that AC_REPLACE_FUNCS files exist.
63813         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63814         override check for typos.
63815
63816         Fix test-closein on Solaris 10.
63817         * tests/test-closein.c (main): Don't assume stdin can be inherited
63818         closed on all systems.
63819         * tests/test-closein.sh: Likewise.
63820         Reported by Piotr Tarnowski.
63821
63822 2007-09-28  Jim Meyering  <jim@meyering.net>
63823
63824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63825
63826 2007-09-27  Jim Meyering  <jim@meyering.net>
63827
63828         canonicalize: Avoid a false-positive cycle failure.
63829         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63830         Sort.  Remove cycle-check.
63831         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63832         not cycle-check.h.
63833         (seen_triple): New function.
63834         (canonicalize_filename_mode): Use it instead of cycle-check.
63835         * tests/test-canonicalize.c: Add a test for this bug.
63836         * tests/test-canonicalize.sh: Set up and run the test.
63837
63838         New module, file-set, from coreutils.
63839         * modules/file-set: Define it.
63840         * lib/file-set.c, lib/file-set.h: Implement.
63841
63842         New module, hash-triple, from coreutils.
63843         * modules/hash-triple: Define it.
63844         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63845
63846 2007-09-25  Eric Blake  <ebb9@byu.net>
63847
63848         Fix strerror on Interix.
63849         * lib/string_.h (strerror): Declare replacement.
63850         * doc/functions/strerror.texi (strerror): Document the Interix
63851         shortcoming.
63852         * modules/string (Makefile.am): Support new hooks.
63853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63854         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63855         gl_FUNC_STRERROR_SEPARATE.
63856         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63857         * lib/strerror.c (rpl_strerror): Provide replacement.
63858         * modules/strerror (Depends-on): Add string.
63859         (configure.ac): Detect use of module.
63860         * tests/test-strerror.c: New file.
63861         * modules/strerror-tests: New test module.
63862         * modules/argp (Depends-on): Add strerror.
63863         * modules/error (Depends-on): Likewise.
63864         Reported by Martin Koeppe.
63865
63866 2007-09-24  Bruno Haible  <bruno@clisp.org>
63867
63868         * README: Update git instructions.
63869
63870 2007-09-24  Eric Blake  <ebb9@byu.net>
63871
63872         Revert fpending breakage from 2007-09-08.
63873         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63874         __fpending.c.
63875
63876 2007-09-24  Jim Meyering  <jim@meyering.net>
63877
63878         filenamecat.c: Add a test.
63879         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63880         showing how the function works when DIR is the empty string.
63881
63882 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63883
63884         * tests/test-canonicalize.sh: Turn on executable bit.
63885
63886 2007-09-19  Eric Blake  <ebb9@byu.net>
63887
63888         * README: Update CVS instructions.
63889
63890 2007-09-18  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/areadlink: New file.
63893         * lib/areadlink.h (areadlink): New declaration.
63894         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63895
63896 2007-09-17  Jim Meyering  <jim@meyering.net>
63897
63898         * lib/savewd.c (ESTALE) [!defined]: Define.
63899         Reported to be required on Interix by Martin Koeppe.
63900
63901 2007-09-17  Bruno Haible  <bruno@clisp.org>
63902
63903         * gnulib-tool (func_version): Use $version.
63904
63905 2007-09-16  Bruno Haible  <bruno@clisp.org>
63906
63907         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63908         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63909         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63910         Reported by Greg Schafer <gschafer@zip.com.au>.
63911
63912 2007-09-15  Bruno Haible  <bruno@clisp.org>
63913
63914         * gnulib-tool (sed): Try a little harder to make bash understand the
63915         alias.
63916         Reported by Bruce Korb <bruce.korb@gmail.com>.
63917
63918 2007-09-13  Eric Blake  <ebb9@byu.net>
63919
63920         * ChangeLog: Remove conflict markers.
63921
63922 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63923
63924         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63925         Reported by Bruno Haible <bruno@clisp.org>.
63926
63927 2007-09-12  Bruno Haible  <bruno@clisp.org>
63928
63929         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63930         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63931         is not defined.
63932
63933 2007-09-12  Eric Blake  <ebb9@byu.net>
63934
63935         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63936         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63937         Autoconf definition.
63938         * modules/euidaccess (Depends-on): Add extensions, for
63939         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63940         * modules/fnmatch (Depends-on): Likewise.
63941         * modules/getaddrinfo (Depends-on): Likewise.
63942         * modules/getdelim (Depends-on): Likewise.
63943         * modules/getline (Depends-on): Likewise.
63944         * modules/getsubopt (Depends-on): Likewise.
63945         * modules/gettext (Depends-on): Likewise.
63946         * modules/group-member (Depends-on): Likewise.
63947         * modules/mbchar (Depends-on): Likewise.
63948         * modules/memmem (Depends-on): Likewise.
63949         * modules/mempcpy (Depends-on): Likewise.
63950         * modules/memrchr (Depends-on): Likewise.
63951         * modules/pagealign_alloc (Depends-on): Likewise.
63952         * modules/readutmp (Depends-on): Likewise.
63953         * modules/stpcpy (Depends-on): Likewise.
63954         * modules/stpncpy (Depends-on): Likewise.
63955         * modules/strchrnul (Depends-on): Likewise.
63956         * modules/strndup (Depends-on): Likewise.
63957         * modules/strsep (Depends-on): Likewise.
63958         * modules/strverscmp (Depends-on): Likewise.
63959         * modules/vasprintf (Depends-on): Likewise.
63960         * modules/wcwidth (Depends-on): Likewise.
63961         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63962         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63963         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63967         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63968         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63969         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63970         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63972         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63973         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63974         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63975         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63976         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63977         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63978         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63980         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63982         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63983         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63984         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63985         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63987         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63988         so that lock.m4 can be used in gettext without extensions module.
63989
63990 2007-09-11  Bruno Haible  <bruno@clisp.org>
63991
63992         * m4/isc-posix.m4: Remove file.
63993         Suggested by Eric Blake.
63994
63995 2007-09-11  Eric Blake  <ebb9@byu.net>
63996
63997         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63998
63999 2007-09-10  Bruno Haible  <bruno@clisp.org>
64000
64001         * posix-modules: Fix typo in error message.
64002         Reported by Matt <mkraai@beckman.com>.
64003
64004 2007-09-09  Bruno Haible  <bruno@clisp.org>
64005
64006         * doc/functions/getdelim.texi: Update list of platforms lacking the
64007         function.
64008         * doc/functions/getline.texi: Likewise.
64009
64010 2007-09-09  Jim Meyering  <jim@meyering.net>
64011
64012         * lib/hash.c (hash_initialize): Detect calloc failure.
64013         Reported by Bruno Haible.
64014
64015 2007-09-09  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64018         malloc or realloc fails.
64019
64020 2007-09-09  Bruno Haible  <bruno@clisp.org>
64021
64022         * modules/getcwd (Depends-on): Add malloc-posix.
64023         * modules/glob (Depends-on): Likewise.
64024         * modules/putenv (Depends-on): Likewise.
64025         * modules/strdup (Depends-on): Likewise.
64026         * modules/getdelim (Depends-on): Add realloc-posix.
64027         * modules/read-file (Depends-on): Likewise.
64028
64029 2007-09-09  Bruno Haible  <bruno@clisp.org>
64030
64031         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64032         (gl_FUNC_MALLOC_POSIX): Require it.
64033         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64034         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64035         * modules/realloc (Files): Add m4/malloc.m4.
64036         * modules/calloc (Files): Likewise.
64037
64038 2007-09-09  Bruno Haible  <bruno@clisp.org>
64039
64040         * modules/malloc-posix: New file.
64041         * modules/malloc (Depends-on): Add malloc-posix.
64042         * lib/malloc.c: Include errno.h.
64043         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64044         and a POSIX-compatible malloc into a single function. Set ENOMEM
64045         when returning NULL.
64046         * m4/malloc.m4: New file.
64047         * doc/functions/malloc.texi: Mention the malloc-posix module.
64048         * lib/stdlib_.h (malloc): New declaration.
64049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64050         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64051         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64052         and HAVE_MALLOC_POSIX.
64053
64054 2007-09-09  Bruno Haible  <bruno@clisp.org>
64055
64056         * modules/realloc-posix: New file.
64057         * modules/realloc (Depends-on): Add realloc-posix.
64058         * lib/realloc.c: Include errno.h.
64059         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64060         and a POSIX-compatible realloc into a single function. Set ENOMEM
64061         when returning NULL.
64062         * m4/realloc.m4: New file.
64063         * doc/functions/realloc.texi: Mention the realloc-posix module.
64064         * lib/stdlib_.h (realloc): New declaration.
64065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64066         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64067         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64068         and HAVE_REALLOC_POSIX.
64069
64070 2007-09-09  Bruno Haible  <bruno@clisp.org>
64071
64072         * modules/calloc-posix: New file.
64073         * modules/calloc (Depends-on): Add calloc-posix.
64074         * lib/calloc.c: Include errno.h.
64075         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64076         and a POSIX-compatible calloc into a single function. Set ENOMEM
64077         when returning NULL.
64078         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64079         * doc/functions/calloc.texi: Mention the calloc-posix module.
64080         * lib/stdlib_.h (calloc): New declaration.
64081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64082         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64083         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64084         and HAVE_CALLOC_POSIX.
64085
64086 2007-09-09  Bruno Haible  <bruno@clisp.org>
64087
64088         Allow for modules to show an arbitrary notice.
64089         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64090         * gnulib-tool: New option --extract-notice.
64091         (func_usage): Document it.
64092         (sed_extract_prog): Update.
64093         (func_get_notice): New function.
64094         (func_modules_notice): New function.
64095         (func_import, func_create_testdir): Invoke it.
64096         Suggested by Jim Meyering.
64097
64098 2007-09-09  Bruno Haible  <bruno@clisp.org>
64099
64100         * gnulib-tool: New options --verbose, --quiet.
64101         (func_usage): Document them.
64102         (verbose): New variable.
64103         (func_execute_command): New function.
64104         (func_import): Don't show the module list and the file list if
64105         $verbose < 0.
64106         (func_create_testdir): Likewise. Use func_execute_command.
64107         (func_create_megatestdir): Use func_execute_command.
64108
64109 2007-09-08  Bruno Haible  <bruno@clisp.org>
64110
64111         * gnulib-tool (func_import): Prefer rsync over wget when available,
64112         for fetching the PO files.
64113
64114 2007-09-08  Bruno Haible  <bruno@clisp.org>
64115
64116         * posix-modules: New file. Portions copied from gnulib-tool.
64117         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64118
64119 2007-09-08  Jim Meyering  <jim@meyering.net>
64120
64121         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64122         * lib/fpending.h: Rename from __fpending.h.
64123         * lib/fpending.c: Rename from __fpending.c.
64124         Include "fpending.h", not "__fpending.h".
64125         * lib/__fpending.h, lib/__fpending.c: Remove files.
64126         * modules/fpending (Files): Reflect new file names.
64127         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64128
64129 2007-09-08  Bruno Haible  <bruno@clisp.org>
64130
64131         * m4/inttypes-h.m4: Remove stub file.
64132
64133 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64134
64135         * doc/headers/stdint.texi: Discuss #include_next issue.
64136
64137 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64138
64139         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64140
64141 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64142
64143         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64144         in variable name.
64145
64146 2007-09-03  Jim Meyering  <jim@meyering.net>
64147
64148         New module: git-version-gen.
64149         * modules/git-version-gen: New file.
64150
64151         Import changes from coreutils for bootstrap script.
64152
64153         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64154
64155         bootstrap: uses rsync to download the .po files
64156         * build-aux/bootstrap (po_download_command_format): New global.
64157         (download_po_files): Use rsync.
64158         (update_po_files): Don't remove .po files after download,
64159         so future rsync runs can take advantage of the copies.
64160
64161         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64162
64163         Solve the unnecessary-.po-file-regeneration problem once and for all.
64164         * build-aux/bootstrap (download_po_files): New function, renamed from
64165         get_translations.  Now, downloads, but doesn't update LINGUAS.
64166         (update_po_files): New function.
64167
64168         bootstrap: Ignore more.
64169         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64170         uniwidth to e.g., lib/.gitignore.
64171         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64172
64173         * build-aux/bootstrap: New setting: vc_ignore.
64174         (insert_sorted_if_absent): Create $file if absent.
64175         Adapt to new, possibly empty, list: $vc_ignore.
64176
64177         bootstrap: generate more ignorable names
64178         * build-aux/bootstrap (slurp): When generating ignorable names,
64179         also map .sin to .sed, .gperf to .c, and .y to .c.
64180
64181 2007-09-03  Jim Meyering  <jim@meyering.net>
64182
64183         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64184         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64185
64186 2007-09-02  Bruno Haible  <bruno@clisp.org>
64187
64188         Fix mis-recognition of 'mcs' on QNX 6.
64189         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64190         output contains the string "Mono".
64191         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64192         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64193
64194 2007-09-01  Bruno Haible  <bruno@clisp.org>
64195
64196         Fix collision between uniwidth/* and linebreak modules.
64197         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64198         u32_width): Remove declarations.
64199         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64200         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64201         streq3, streq2, streq1, streq0): Remove functions.
64202         (STREQ): Remove macro.
64203         (is_cjk_encoding): Remove function.
64204         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64205         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64206         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64207         * NEWS: Document the change.
64208
64209 2007-09-01  Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/streq.h: Add double-inclusion guard.
64212
64213 2007-09-01  Karl Berry  <karl@gnu.org>
64214
64215         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64216
64217 2007-08-28  Jim Meyering  <jim@meyering.net>
64218
64219         Rename mreadlink_with_size to areadlink_with_size.
64220         * NEWS: Document the change.
64221         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64222         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64223         * lib/mreadlink.h: Rename this to...
64224         * lib/areadlink.h: ...this.
64225         * modules/mreadlink-with-size: Rename this to...
64226         * modules/areadlink-with-size: ...this.
64227         * lib/canonicalize.c: Reflect the renaming.
64228         * modules/canonicalize: Likewise.
64229
64230 2007-08-26  Bruno Haible  <bruno@clisp.org>
64231
64232         * gnulib-tool (func_import): When deciding which files to remove,
64233         consider also dangling symbolic links.
64234         Reported by Eric Blake.
64235
64236 2007-08-26  Bruno Haible  <bruno@clisp.org>
64237
64238         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64239
64240 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64241
64242         * lib/readline.c: Don't include getline.h, the prototype is now
64243         found in stdio.h.
64244
64245 2007-08-23  Jim Meyering  <jim@meyering.net>
64246
64247         Getdelim touchup.
64248         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64249         around the funlockfile call, since funlockfile never sets errno.
64250         Don't set errno upon failed realloc.
64251
64252 2007-08-22  Eric Blake  <ebb9@byu.net>
64253
64254         Getline touchups.
64255         * lib/getdelim.c (getdelim): Revert regression that required *n to
64256         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64257         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64258         getdelim, rather than whether implementation is missing.
64259         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64260         * lib/stdio_.h (getline): Also declare if replacement is
64261         required.
64262         * doc/functions/getdelim.texi: New file.
64263         * doc/functions/getline.texi: Likewise.
64264         * doc/gnulib.texi (Function Substitutes): Add new files.
64265         Reported by Bruno Haible.
64266
64267 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64268
64269         * users.txt: Add Guile.
64270
64271 2007-08-22  Eric Blake  <ebb9@byu.net>
64272
64273         * tests/test-getdelim.c (main): Use remove, not unlink.
64274         * tests/test-getline.c (main): Likewise.
64275
64276         Move getline and getdelim into stdio.h, per POSIX 200x.
64277         * modules/getline (Files): Remove getline.h.
64278         (Depends-on): Add stdio.
64279         (configure.ac): Add module indicator.
64280         * modules/getdelim (Files): Remove getdelim.h.
64281         (Depends-on): Add stdio.
64282         (configure.ac): Add module indicator.
64283         * modules/stdio (Makefile.am): Work with new indicators.
64284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64285         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64286         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64287         * lib/getdelim.h: Delete.
64288         * lib/getline.h: Delete.
64289         * lib/stdio_.h (getdelim, getline): Declare.
64290         * modules/getdelim-tests: New module.
64291         * modules/getline-tests: Likewise.
64292         * tests/test-getdelim.c: New file.
64293         * tests/test-getline.c: Likewise.
64294         * NEWS: Document the change.
64295         * lib/getline.c: Update choice of header.
64296         * lib/csharpcomp.c: Likewise.
64297         * lib/getpass.c: Likewise.
64298         * lib/javacomp.c: Likewise.
64299         * lib/javaversion.c: Likewise.
64300         * lib/yesno.c: Likewise.
64301         * lib/getdelim.c: Likewise.
64302         (getdelim): Set errno on failure, and avoid memory leak.
64303
64304 2007-08-19  Bruno Haible  <bruno@clisp.org>
64305
64306         * modules/closein (Depends-on): Add freadahead.
64307         * lib/closein.c: Include freadahead.h.
64308         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64309         is zero.
64310
64311 2007-08-19  Bruno Haible  <bruno@clisp.org>
64312
64313         * modules/freadahead-tests: New file.
64314         * tests/test-freadahead.sh: New file.
64315         * tests/test-freadahead.c: New file.
64316
64317         * modules/freadahead: New file.
64318         * lib/freadahead.h: New file.
64319         * lib/freadahead.c: New file.
64320         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64321         fbufmode, fpurge, freadable, fwritable.
64322
64323 2007-08-19  Eric Blake  <ebb9@byu.net>
64324
64325         Test yesno in combination with closein.
64326         * lib/yesno.c (yesno): Document use of stdin.
64327         * modules/yesno-tests (Files): New module.
64328         * tests/test-yesno.c (main): New file.
64329         * tests/test-yesno.sh: Likewise.
64330
64331 2007-08-19  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64334         * lib/fseeko.c (rpl_fseeko): Likewise.
64335         * lib/fseterr.c (fseterr): Likewise.
64336
64337 2007-08-19  Bruno Haible  <bruno@clisp.org>
64338
64339         * tests/test-lseek.c (main): Disable a test for BeOS.
64340         * doc/functions/lseek.texi: Document the BeOS bug.
64341
64342 2007-08-19  Bruno Haible  <bruno@clisp.org>
64343             Eric Blake  <ebb9@byu.net>
64344
64345         * lib/lseek.c: Include <sys/stat.h>.
64346         (rpl_lseek): Add workaround code also for Unix platforms.
64347         Needed for BeOS.
64348         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64349         * doc/functions/lseek.texi: Document BeOS definiency.
64350
64351 2007-08-18  Bruno Haible  <bruno@clisp.org>
64352
64353         * modules/fstrcmp-tests: New file.
64354         * tests/test-fstrcmp.c: New file.
64355
64356 2007-08-18  Bruno Haible  <bruno@clisp.org>
64357
64358         * modules/fstrcmp: New file, from GNU gettext with modifications.
64359         * lib/fstrcmp.h: New file, from GNU gettext.
64360         * lib/fstrcmp.c: New file, from GNU gettext.
64361         * MODULES.html.sh (String handling): Add fstrcmp.
64362
64363 2007-08-18  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64366         'bool'.
64367         (diag, compareseq): Remove const from the ctxt argument.
64368         (USE_HEURISTIC): Undefine at the end.
64369
64370 2007-08-18  Jim Meyering  <jim@meyering.net>
64371
64372         New file: lib/idcache.h
64373         * NEWS: Mention the addition.
64374         * modules/idcache (Files): Add lib/idcache.h
64375         * lib/idcache.c: Include "idcache.h".
64376         Don't include <sys/types.h>.
64377         Add a FIXME comment.
64378         Move file-scoped "static" declarations to the top.
64379         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64380
64381 2007-08-17  Bruno Haible  <bruno@clisp.org>
64382         and Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * MODULES.html.sh: Add diffseq.
64385         * modules/diffseq: New file.
64386         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64387         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64388
64389 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         Import changes from coreutils for bootstrap script.
64392
64393         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64394
64395         * build-aux/bootstrap (slurp): Work even in environments where
64396         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64397         current code does not slurp files whose names start with ".", and
64398         this looks like it might be a troublesome area.
64399
64400         2007-07-11  Jim Meyering  <jim@meyering.net>
64401
64402         If there's a GPL vN copyright comment, require that N == 3.
64403
64404         2007-07-08  Jim Meyering  <jim@meyering.net>
64405
64406         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64407         * build-aux/bootstrap (mam_template): Move definition out of loop.
64408
64409         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64410
64411         * build-aux/bootstrap (symlink_to_dir): Rename function from
64412         symlink_to_gnulib.  Add a directory parameter.  Update all
64413         callers.
64414         (cp_mark_as_generated): Also check for -- and link to -- files in
64415         gl/.
64416
64417         2007-07-08  Jim Meyering  <jim@meyering.net>
64418
64419         Adapt to deeper hierarchy in gnulib.
64420         * build-aux/bootstrap (symlink_to_dir): If the destination
64421         directory doesn't exist, create it. This is required at least for
64422         "lib/uniwidth/cjk.h".
64423
64424         2007-05-15  Jim Meyering  <jim@meyering.net>
64425
64426         * build-aux/bootstrap: Now that generated Makefile.am files
64427         are no longer under version control, they must be created at
64428         bootstrap time.
64429
64430 2007-08-14  Ben Pfaff  <blp@gnu.org>
64431
64432         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64433
64434 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64437         given the changes below.
64438         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64439         even on hosts that have padding bits beyond the supported 64.
64440
64441 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64444         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64445         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64446         depends on it.
64447         (xstrtol_error): Remove.
64448         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64449         but with a different signature.
64450         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64451         * lib/xstrtol-error.c: Include exitfail.h.
64452         (xstrtol_fatal): New function, with a different signature from the
64453         old xstrtol_error, so that the caller need not worry about passing
64454         in an exit status, or about storage management of the option argument.
64455         (xstrtol_error): Now a static function.  Redo signature to
64456         implement xstrtol_fatal.  Output the correct number of hyphens in
64457         front of the option so that the caller need not worry about
64458         storage management.
64459         (N_): New macro.
64460         (_): Remove; not used now.
64461         * modules/xstrtol: Depend on getopt.
64462         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64463         of old STRTOL_FATAL_ERROR macro.
64464         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64465         of test program.
64466         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64467         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64468
64469 2007-08-08  Eric Blake  <ebb9@byu.net>
64470
64471         * lib/xstrtol-error.c: Add missing include.
64472
64473         Move xstrtol messages into gnulib domain, when --pobase is used.
64474         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64475         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64476         * modules/xstrtol (Files): Distribute new file.
64477         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64478         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64479         * tests/test-xstrtol.c: ...into new file.
64480         * tests/test-xstrtoul.c: Also test xstrtoul.
64481         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64482         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64483         * tests/test-xstrtol.sh: Drive the tests.
64484         * tests/test-xstrtoimax.sh: Likewise.
64485         * tests/test-xstrtoumax.sh: Likewise.
64486         * modules/xstrtol-tests: New module.
64487         * modules/xstrtoimax-tests: Likewise.
64488         * modules/xstrtoumax-tests: Likewise.
64489
64490 2007-08-08  Jim Meyering  <jim@meyering.net>
64491
64492         New function: mfile_name_concat.
64493         * lib/filenamecat.c (mfile_name_concat): New function, just like
64494         file_name_concat, but return NULL upon failure rather than exiting
64495         with a diagnostic.
64496         * lib/filenamecat.h: Declare it.
64497
64498 2007-08-07  Bruno Haible  <bruno@clisp.org>
64499
64500         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64501         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64502         warning from gcc.
64503         Reported by Eric Blake.
64504
64505 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64506
64507         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64508         * modules/crypto/arcfour (License): Likewise.
64509         * modules/crypto/des-tests (License): Likewise.
64510         * modules/crypto/gc-arctwo-tests (License): Likewise.
64511         * modules/crypto/gc-des-tests (License): Likewise.
64512         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64513         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64514         * modules/crypto/gc-md2-tests (License): Likewise.
64515         * modules/crypto/gc-md4-tests (License): Likewise.
64516         * modules/crypto/gc-md5-tests (License): Likewise.
64517         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64518         * modules/crypto/gc-rijndael-tests (License): Likewise.
64519         * modules/crypto/gc-sha1-tests (License): Likewise.
64520         * modules/crypto/gc-tests (License): Likewise.
64521         * modules/crypto/hmac-md5 (License): Likewise.
64522         * modules/crypto/hmac-sha1 (License): Likewise.
64523         * modules/crypto/md2-tests (License): Likewise.
64524         * modules/crypto/md4-tests (License): Likewise.
64525         * modules/crypto/md5 (License): Likewise.
64526         * modules/crypto/rijndael (License): Likewise.
64527         * modules/crypto/sha1 (License): Likewise.
64528         * modules/memxor (License): Likewise.
64529
64530 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64531         and Bruno Haible  <bruno@clisp.org>
64532
64533         * NEWS: Describe interface changes to human, xstrtol.
64534         * lib/human.h: Include <xstrtol.h>.
64535         (human_options): Return enum strtol_error, not int.  Remove
64536         bool arg; take int * instead.
64537         * lib/human.c: Don't include "gettext.h".
64538         (_): Remove; no longer used.
64539         Don't include <xstrtol.h>, since human.h does it.
64540         (human_options): Adjust to abovementioned interface changes.
64541         Do not report error to stderr; that's now the caller's
64542         responsibility.
64543         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64544         interface change.
64545         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64546         Str, Argument_type_string.  All uses changed.  Put " argument"
64547         in diagnostics to make them clearer.  Change wording of suffix
64548         message for clarity.
64549         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64550         Argument_type_string.
64551         (STRTOL_FATAL_WARN): Remove; no longer used.
64552         * modules/human (Depends-on): Remove gettext-h.
64553
64554 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64555
64556         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64557
64558 2007-07-31  Bruno Haible  <bruno@clisp.org>
64559
64560         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64561         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64562         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64563
64564 2007-07-31  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64567         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64568
64569 2007-07-30  Bruno Haible  <bruno@clisp.org>
64570
64571         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64572         * modules/c-ctype (License): Likewise.
64573         * modules/c-strcase (License): Likewise.
64574         * modules/check-version (License): Likewise.
64575         * modules/iconv (License): Likewise.
64576         * modules/iconv_open (License): Likewise.
64577         * modules/read-file (License): Likewise.
64578         * modules/striconv (License): Likewise.
64579         * modules/strverscmp (License): Likewise.
64580         * modules/vasprintf (License): Likewise.
64581         * modules/crypto/des (License): Likewise.
64582         * modules/crypto/gc (License): Likewise.
64583         * modules/crypto/gc-arcfour (License): Likewise.
64584         * modules/crypto/gc-arctwo (License): Likewise.
64585         * modules/crypto/gc-des (License): Likewise.
64586         * modules/crypto/gc-hmac-md5 (License): Likewise.
64587         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64588         * modules/crypto/gc-md2 (License): Likewise.
64589         * modules/crypto/gc-md4 (License): Likewise.
64590         * modules/crypto/gc-md5 (License): Likewise.
64591         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64592         * modules/crypto/gc-random (License): Likewise.
64593         * modules/crypto/gc-rijndael (License): Likewise.
64594         * modules/crypto/gc-sha1 (License): Likewise.
64595         * modules/crypto/md2 (License): Likewise.
64596         * modules/crypto/md4 (License): Likewise.
64597
64598 2007-07-30  Jim Meyering  <jim@meyering.net>
64599
64600         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64601         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64602         it has valid stat data.  This bug would cause du not to count the
64603         sizes of inaccessible directories.
64604         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64605         in <http://bugzilla.redhat.com/250077>.
64606
64607 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64608             Bruno Haible  <bruno@clisp.org>
64609
64610         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64611         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64612         #include_next, gives a diagnostic about it, but reports no error in
64613         the exit code.
64614         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64615
64616 2007-07-24  Ben Pfaff  <blp@gnu.org>
64617
64618         Improve name: "count-one-bits" is better than "popcount".
64619         * MODULES.html.sh: Update name.
64620         * lib/popcount.h: Renamed lib/count-one-bits.h.
64621         (popcount): Renamed count_one_bits.
64622         (popcountl): Renamed count_one_bits_l.
64623         (popcountll): Renamed count_one_bits_ll.
64624         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64625         * modules/popcount: Renamed module/count-one-bits.
64626         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64627         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64628
64629 2007-07-23  Ben Pfaff  <blp@gnu.org>
64630
64631         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64632         better code generation, and add U to large constants to avoid
64633         warnings, in non-GCC case.
64634         Suggested by Bruno Haible.
64635
64636 2007-07-23  Ben Pfaff  <blp@gnu.org>
64637
64638         * lib/popcount.h: Use verify_true instead of if...abort.
64639         * modules/popcount: Depend on verify module.
64640         Suggested by Jim Meyering.
64641
64642 2007-07-23  Bruno Haible  <bruno@clisp.org>
64643
64644         * gnulib-tool (func_import): Create a .cvsignore file also when the
64645         directory is not yet in CVS but the toplevel directory is. When
64646         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64647         Reported by Karl Berry.
64648
64649 2007-07-22  Ben Pfaff  <blp@gnu.org>
64650
64651         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64652         case.
64653         Suggested by Eric Blake.
64654
64655 2007-07-22  Ben Pfaff  <blp@gnu.org>
64656
64657         New module: popcount.
64658         * MODULES.html.sh: Add popcount.
64659         * modules/popcount: New file.
64660         * modules/popcount-tests: New file.
64661         * tests/test-popcount.c: New file.
64662         * lib/popcount.h: New file.
64663         * m4/popcount.m4: New file.
64664
64665 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * build-aux/announce-gen: Update to GPLv3.
64668
64669         * build-aux/config.guess: Update from config.
64670
64671 2007-07-21  Bruno Haible  <bruno@clisp.org>
64672
64673         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64674         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64675
64676 2007-07-20  Jim Meyering  <jim@meyering.net>
64677
64678         * check-module: Diagnose a self-dependency.
64679
64680 2007-07-19  Bruno Haible  <bruno@clisp.org>
64681
64682         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64683         empty.
64684         Reported by Eric Blake.
64685
64686 2007-07-18  Bruno Haible  <bruno@clisp.org>
64687
64688         * gnulib-tool: New options --po-base, --po-domain.
64689         (func_usage): Document them.
64690         (pobase, po_domain): New variables.
64691         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64692         DEFAULT_TEXT_DOMAIN.
64693         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64694         (func_import): Consider pobase and po_domain. Create a po/ directory.
64695         (func_create_testdir): Set pobase and po_domain to empty.
64696         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64697         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64698
64699 2007-07-18  Bruno Haible  <bruno@clisp.org>
64700
64701         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64702         EXTRA_DIST augmentation for files in build-aux/.
64703
64704 2007-07-16  Bruno Haible  <bruno@clisp.org>
64705
64706         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64707         * modules/getdelim (License): Likewise.
64708
64709 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64710
64711         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64712         * modules/d-type (License): Likewise.
64713         * modules/extensions (License): Likewise.
64714         * modules/fnmatch (License): Likewise.
64715         * modules/fseeko (License): Likewise.
64716         * modules/getaddrinfo (License): Likewise.
64717         * modules/getline (License): Likewise.
64718         * modules/getlogin_r (License): Likewise.
64719         * modules/getpass (License): Likewise.
64720         * modules/gettimeofday (License): Likewise.
64721         * modules/glob (License): Likewise.
64722         * modules/inet_ntop (License): Likewise.
64723         * modules/malloc (License): Likewise.
64724         * modules/malloca (License): Likewise.
64725         * modules/memmem (License): Likewise.
64726         * modules/mempcpy (License): Likewise.
64727         * modules/memset (License): Likewise.
64728         * modules/minmax (License): Likewise.
64729         * modules/mktime (License): Likewise.
64730         * modules/netinet_in (License): Likewise.
64731         * modules/pathmax (License): Likewise.
64732         * modules/poll (License): Likewise.
64733         * modules/regex (License): Likewise.
64734         * modules/snprintf (License): Likewise.
64735         * modules/stdbool (License): Likewise.
64736         * modules/stdint (License): Likewise.
64737         * modules/stdio (License): Likewise.
64738         * modules/strcase (License): Likewise.
64739         * modules/strcasestr (License): Likewise.
64740         * modules/strdup (License): Likewise.
64741         * modules/string (License): Likewise.
64742         * modules/strndup (License): Likewise.
64743         * modules/strnlen (License): Likewise.
64744         * modules/strpbrk (License): Likewise.
64745         * modules/strptime (License): Likewise.
64746         * modules/strsep (License): Likewise.
64747         * modules/sys_select (License): Likewise.
64748         * modules/sys_socket (License): Likewise.
64749         * modules/sys_stat (License): Likewise.
64750         * modules/sys_time (License): Likewise.
64751         * modules/time (License): Likewise.
64752         * modules/time_r (License): Likewise.
64753         * modules/timegm (License): Likewise.
64754         * modules/unistd (License): Likewise.
64755         * modules/vsnprintf (License): Likewise.
64756         * modules/wctype (License): Likewise.
64757
64758 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64759
64760         * modules/argz (License): LGPLv2+.
64761
64762 2007-07-15  Karl Berry  <karl@gnu.org>
64763
64764         * doc/gnulib.texi: revise node structure per new fdl.texi.
64765
64766 2007-07-14  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64769         the output file.
64770         * lib/uniname/uninames.h: Regenerated.
64771
64772 2007-07-14  Karl Berry  <karl@gnu.org>
64773
64774         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64775         omitting sectioning and index commands.
64776
64777 2007-07-13  Bruno Haible  <bruno@clisp.org>
64778
64779         New gnulib-tool option --more-symlinks.
64780         * gnulib-tool (func_usage): Document --more-symlinks.
64781         (do_copyrights): New variable.
64782         Recognize option --more-symlinks.
64783         (func_import): Don't add a copyright notice transform to
64784         sed_transform_lib_file if do_copyrights is empty.
64785
64786 2007-07-13  Bruno Haible  <bruno@clisp.org>
64787
64788         * lib/vasnprintf.c (decimal_point_char): Define also if
64789         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64790         && !NEED_PRINTF_DIRECTIVE_A.
64791         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64792         Gary V. Vaughan <gary@gnu.org>.
64793
64794 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         * lib/inttypes_.h: Undo previous change, since it was fixed
64797         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64798
64799 2007-07-13  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64802         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64803
64804 2007-07-13  Jim Meyering  <jim@meyering.net>
64805
64806         df: Don't fail for Tru64's "file-on-file mount".
64807         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64808         so we fall through and use statfs instead.  Details here:
64809         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64810         Reported by Albert Chin.
64811
64812 2007-07-13  Bruno Haible  <bruno@clisp.org>
64813
64814         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64815         * modules/configmake (License): Likewise.
64816         * modules/gettext (License): Likewise.
64817         * modules/gettext-h (License): Likewise.
64818         * modules/include_next (License): Likewise.
64819         * modules/link-warning (License): Likewise.
64820         * modules/localcharset (License): Likewise.
64821         * modules/localename (License): Likewise.
64822         * modules/lock (License): Likewise.
64823         * modules/relocatable-lib-lgpl (License): Likewise.
64824         * modules/size_max (License): Likewise.
64825         * modules/vasnprintf (License): Likewise.
64826         * modules/wchar (License): Likewise.
64827         * modules/xsize (License): Likewise.
64828
64829 2007-07-13  Bruno Haible  <bruno@clisp.org>
64830
64831         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64832         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64833
64834 2007-07-12  Bruno Haible  <bruno@clisp.org>
64835
64836         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64837         in the modules files.
64838
64839 2007-07-11  Karl Berry  <karl@gnu.org>
64840
64841         * MODULES.html.sh (func_module): use
64842          sed -e '\|^'"${includefile}"'$|d'
64843          instead of /.../d, to avoid errors on $includefile's containing /.
64844
64845 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64846
64847         * gnulib-tool (func_import): Avoid duplication of --avoid
64848         statements
64849         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64850         names to `_' in variable names.
64851
64852 2007-07-10  Eric Blake  <ebb9@byu.net>
64853
64854         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64855         * NEWS: Document this change.
64856
64857 2007-07-08  Bruno Haible  <bruno@clisp.org>
64858
64859         Update to Unicode 5.0.
64860         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64861         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64862         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64863         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64864         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64865         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64866         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64867         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64868         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64869         U+10A3F, U+1D242..U+1D244.
64870         (nonspacing_table_ind): Update.
64871         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64872         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64873
64874 2007-07-08  Bruno Haible  <bruno@clisp.org>
64875
64876         Update to Unicode 5.0.
64877         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64878         code transform. Extend the name index field of unicode_name_to_code and
64879         unicode_code_to_name from 16 to 24 bits.
64880         * lib/uniname/uniname.c (unicode_character_name,
64881         unicode_name_character): Add the range 0x12xxx to the code transform.
64882         * lib/uniname/uninames.h: Regenerated.
64883         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64884
64885 2007-07-07  Bruno Haible  <bruno@clisp.org>
64886
64887         * modules/wcwidth-tests: New file.
64888         * tests/test-wcwidth.c: New file.
64889
64890         Work around MacOS X wcwidth() bug.
64891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64892         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64893         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64894         original wcwidth in non-UTF-8 locales.
64895         * modules/wcwidth (Depends-on): Add localcharset, streq,
64896         uniwidth/width.
64897         * doc/functions/wcwidth.texi: Update.
64898
64899 2007-07-07  Bruno Haible  <bruno@clisp.org>
64900
64901         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64902         (wcwidth): New declaration.
64903         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64904         macros.
64905         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64906         here. Prepare for creating <wchar.h> unconditionally.
64907         * modules/wchar (Depends-on): Add link-warning.
64908         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64909         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64910         * lib/wcwidth.h: Remove file.
64911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64912         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64913         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64914         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64915         (Include): Replace wcwidth.h with <wchar.h>.
64916         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64917         * lib/mbchar.h: Don't include wcwidth.h.
64918         * lib/mbswidth.c: Likewise.
64919         * NEWS: Mention the change.
64920
64921 2007-07-07  Bruno Haible  <bruno@clisp.org>
64922
64923         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64924         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64925         definition with an external declaration.
64926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64927         defined as a function. Remove AC_C_INLINE requirement.
64928         * modules/wcwidth (Files): Add lib/wcwidth.c.
64929         (Makefile.am): Remove redundant statement.
64930
64931 2007-07-07  Bruno Haible  <bruno@clisp.org>
64932
64933         * MODULES.html.sh (Unicode string functions): Add the new modules.
64934
64935         * tests/uniwidth/test-u32-strwidth.c: New file.
64936         * modules/uniwidth/u32-strwidth-tests: New file.
64937
64938         * lib/uniwidth/u32-strwidth.c: New file.
64939         * modules/uniwidth/u32-strwidth: New file.
64940
64941         * tests/uniwidth/test-u16-strwidth.c: New file.
64942         * modules/uniwidth/u16-strwidth-tests: New file.
64943
64944         * lib/uniwidth/u16-strwidth.c: New file.
64945         * modules/uniwidth/u16-strwidth: New file.
64946
64947         * tests/uniwidth/test-u8-strwidth.c: New file.
64948         * modules/uniwidth/u8-strwidth-tests: New file.
64949
64950         * lib/uniwidth/u8-strwidth.c: New file.
64951         * modules/uniwidth/u8-strwidth: New file.
64952
64953         * tests/uniwidth/test-u32-width.c: New file.
64954         * modules/uniwidth/u32-width-tests: New file.
64955
64956         * lib/uniwidth/u32-width.c: New file.
64957         * modules/uniwidth/u32-width: New file.
64958
64959         * tests/uniwidth/test-u16-width.c: New file.
64960         * modules/uniwidth/u16-width-tests: New file.
64961
64962         * lib/uniwidth/u16-width.c: New file.
64963         * modules/uniwidth/u16-width: New file.
64964
64965         * tests/uniwidth/test-u8-width.c: New file.
64966         * modules/uniwidth/u8-width-tests: New file.
64967
64968         * lib/uniwidth/u8-width.c: New file.
64969         * modules/uniwidth/u8-width: New file.
64970
64971         * tests/uniwidth/test-uc_width.c: New file.
64972         * modules/uniwidth/width-tests: New file.
64973
64974         * lib/uniwidth/width.c: New file, from GNU libiconv.
64975         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64976         * modules/uniwidth/width: New file.
64977
64978         * lib/uniwidth.h: New file, from GNU libiconv.
64979         * modules/uniwidth/base: New file.
64980
64981 2007-07-07  Bruno Haible  <bruno@clisp.org>
64982
64983         * lib/uniname.h: New file, from GNU gettext.
64984         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64985         * lib/uniname/uninames.h: New file, from GNU gettext.
64986         * lib/uniname/uniname.c: New file, from GNU gettext.
64987         * tests/uniname/test-uninames.sh: New file.
64988         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64989         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64990         * modules/uniname/base: New file.
64991         * modules/uniname/uniname: New file.
64992         * modules/uniname/uniname-tests: New file.
64993         * MODULES.html.sh (Unicode string functions): Add the new modules.
64994
64995 2007-07-06  Bruno Haible  <bruno@clisp.org>
64996
64997         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64998
64999 2007-07-06  Bruno Haible  <bruno@clisp.org>
65000
65001         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65002         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65003         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65004         include <sys/time.h>.
65005         Reported by Eric Blake.
65006
65007 2007-07-06  Eric Blake  <ebb9@byu.net>
65008
65009         Fix testing canonicalize on cygwin.
65010         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65011         Revert patch from 2007-06-19.
65012         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65013         canonicalize module is also in use.
65014         * tests/test-canonicalize.c: New file.
65015         * tests/test-canonicalize.sh: Likewise.
65016         * modules/canonicalize-tests: Likewise.
65017
65018 2007-07-06  Jim Meyering  <jim@meyering.net>
65019
65020         * lib/getugroups.c (getugroups): Detect getgrent failure.
65021         Adjust comment to reflect reality: this function may return -1.
65022
65023 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65024
65025         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65026         the new TP address.
65027         (usage): Fix typo
65028         (gnulib_mk): New variable.
65029
65030 2007-07-05  Jim Meyering  <jim@meyering.net>
65031
65032         Don't let endgrent clobber errno, no matter how improbable.
65033         * lib/getugroups.c (getugroups): Save and restore errno around
65034         endgrent call.
65035
65036         Close the group DB even when failing with 2^31 or more members.
65037         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65038
65039 2007-07-04  Jim Meyering  <jim@meyering.net>
65040
65041         * lib/getugroups.h: New file.
65042         * lib/getugroups.c: Include "getugroups.h".
65043         Remove uses of "register" keyword.
65044         Move local variable, "cp", down into scope where used.
65045         Give "username" parameter the "const" attribute.
65046         * modules/getugroups (Files): Add lib/getugroups.h
65047
65048 2007-07-04  Karl Berry  <karl@gnu.org>
65049
65050         * MODULES.html.sh (func_all_modules): Complete rename of
65051         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65052
65053 2007-07-02  Bruno Haible  <bruno@clisp.org>
65054
65055         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65056         mode, when inttypes.h comes from gnulib.
65057         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65058
65059 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65060
65061         * NEWS: Mention lgpl module name change.
65062
65063         * modules/lgpl-2.1: Renamed from lgpl.
65064
65065         * NEWS: Mention gpl module name change.
65066
65067         * modules/gpl-3.0: New file, based on gpl-2.0.
65068
65069         * modules/gpl-2.0: Renamed from gpl.
65070
65071         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65072         doc/gpl-2.0.texi.
65073
65074 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65077         #define __STDC_LIMIT_MACROS temporarily while including
65078         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65079         Problem reported by Joel E. Denny in
65080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65081
65082 2007-07-01  Bruno Haible  <bruno@clisp.org>
65083
65084         * lib/unistdio.h: New file.
65085         * lib/unistdio/u-asnprintf.h: New file.
65086         * lib/unistdio/u-asprintf.h: New file.
65087         * lib/unistdio/u-printf-args.c: New file.
65088         * lib/unistdio/u-printf-args.h: New file.
65089         * lib/unistdio/u-printf-parse.h: New file.
65090         * lib/unistdio/u-snprintf.h: New file.
65091         * lib/unistdio/u-sprintf.h: New file.
65092         * lib/unistdio/u-vasprintf.h: New file.
65093         * lib/unistdio/u-vsnprintf.h: New file.
65094         * lib/unistdio/u-vsprintf.h: New file.
65095         * lib/unistdio/ulc-asnprintf.c: New file.
65096         * lib/unistdio/ulc-asprintf.c: New file.
65097         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65098         * lib/unistdio/ulc-printf-parse.c: New file.
65099         * lib/unistdio/ulc-snprintf.c: New file.
65100         * lib/unistdio/ulc-sprintf.c: New file.
65101         * lib/unistdio/ulc-vasnprintf.c: New file.
65102         * lib/unistdio/ulc-vasprintf.c: New file.
65103         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65104         * lib/unistdio/ulc-vsnprintf.c: New file.
65105         * lib/unistdio/ulc-vsprintf.c: New file.
65106         * lib/unistdio/u8-asnprintf.c: New file.
65107         * lib/unistdio/u8-asprintf.c: New file.
65108         * lib/unistdio/u8-printf-parse.c: New file.
65109         * lib/unistdio/u8-snprintf.c: New file.
65110         * lib/unistdio/u8-sprintf.c: New file.
65111         * lib/unistdio/u8-vasnprintf.c: New file.
65112         * lib/unistdio/u8-vasprintf.c: New file.
65113         * lib/unistdio/u8-vsnprintf.c: New file.
65114         * lib/unistdio/u8-vsprintf.c: New file.
65115         * lib/unistdio/u8-u8-asnprintf.c: New file.
65116         * lib/unistdio/u8-u8-asprintf.c: New file.
65117         * lib/unistdio/u8-u8-snprintf.c: New file.
65118         * lib/unistdio/u8-u8-sprintf.c: New file.
65119         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65120         * lib/unistdio/u8-u8-vasprintf.c: New file.
65121         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65122         * lib/unistdio/u8-u8-vsprintf.c: New file.
65123         * lib/unistdio/u16-asnprintf.c: New file.
65124         * lib/unistdio/u16-asprintf.c: New file.
65125         * lib/unistdio/u16-printf-parse.c: New file.
65126         * lib/unistdio/u16-snprintf.c: New file.
65127         * lib/unistdio/u16-sprintf.c: New file.
65128         * lib/unistdio/u16-vasnprintf.c: New file.
65129         * lib/unistdio/u16-vasprintf.c: New file.
65130         * lib/unistdio/u16-vsnprintf.c: New file.
65131         * lib/unistdio/u16-vsprintf.c: New file.
65132         * lib/unistdio/u16-u16-asnprintf.c: New file.
65133         * lib/unistdio/u16-u16-asprintf.c: New file.
65134         * lib/unistdio/u16-u16-snprintf.c: New file.
65135         * lib/unistdio/u16-u16-sprintf.c: New file.
65136         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65137         * lib/unistdio/u16-u16-vasprintf.c: New file.
65138         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65139         * lib/unistdio/u16-u16-vsprintf.c: New file.
65140         * lib/unistdio/u32-asnprintf.c: New file.
65141         * lib/unistdio/u32-asprintf.c: New file.
65142         * lib/unistdio/u32-printf-parse.c: New file.
65143         * lib/unistdio/u32-snprintf.c: New file.
65144         * lib/unistdio/u32-sprintf.c: New file.
65145         * lib/unistdio/u32-vasnprintf.c: New file.
65146         * lib/unistdio/u32-vasprintf.c: New file.
65147         * lib/unistdio/u32-vsnprintf.c: New file.
65148         * lib/unistdio/u32-vsprintf.c: New file.
65149         * lib/unistdio/u32-u32-asnprintf.c: New file.
65150         * lib/unistdio/u32-u32-asprintf.c: New file.
65151         * lib/unistdio/u32-u32-snprintf.c: New file.
65152         * lib/unistdio/u32-u32-sprintf.c: New file.
65153         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65154         * lib/unistdio/u32-u32-vasprintf.c: New file.
65155         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65156         * lib/unistdio/u32-u32-vsprintf.c: New file.
65157         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65158         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65159         * tests/unistdio/test-ulc-printf1.h: New file.
65160         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65161         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65162         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65163         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65164         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65165         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65166         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65167         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65168         * tests/unistdio/test-u8-asnprintf1.c: New file.
65169         * tests/unistdio/test-u8-asnprintf1.h: New file.
65170         * tests/unistdio/test-u8-printf1.h: New file.
65171         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65172         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65173         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65174         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65175         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65176         * tests/unistdio/test-u8-vasprintf1.c: New file.
65177         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65178         * tests/unistdio/test-u8-vsprintf1.c: New file.
65179         * tests/unistdio/test-u16-asnprintf1.c: New file.
65180         * tests/unistdio/test-u16-asnprintf1.h: New file.
65181         * tests/unistdio/test-u16-printf1.h: New file.
65182         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65183         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65184         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65185         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65186         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65187         * tests/unistdio/test-u16-vasprintf1.c: New file.
65188         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65189         * tests/unistdio/test-u16-vsprintf1.c: New file.
65190         * tests/unistdio/test-u32-asnprintf1.c: New file.
65191         * tests/unistdio/test-u32-asnprintf1.h: New file.
65192         * tests/unistdio/test-u32-printf1.h: New file.
65193         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65194         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65195         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65196         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65197         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65198         * tests/unistdio/test-u32-vasprintf1.c: New file.
65199         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65200         * tests/unistdio/test-u32-vsprintf1.c: New file.
65201         * modules/unistdio/base: New file.
65202         * modules/unistdio/u-printf-args: New file.
65203         * modules/unistdio/ulc-asnprintf: New file.
65204         * modules/unistdio/ulc-asprintf: New file.
65205         * modules/unistdio/ulc-fprintf: New file.
65206         * modules/unistdio/ulc-printf-parse: New file.
65207         * modules/unistdio/ulc-snprintf: New file.
65208         * modules/unistdio/ulc-sprintf: New file.
65209         * modules/unistdio/ulc-vasnprintf: New file.
65210         * modules/unistdio/ulc-vasprintf: New file.
65211         * modules/unistdio/ulc-vfprintf: New file.
65212         * modules/unistdio/ulc-vsnprintf: New file.
65213         * modules/unistdio/ulc-vsprintf: New file.
65214         * modules/unistdio/u8-asnprintf: New file.
65215         * modules/unistdio/u8-asprintf: New file.
65216         * modules/unistdio/u8-printf-parse: New file.
65217         * modules/unistdio/u8-snprintf: New file.
65218         * modules/unistdio/u8-sprintf: New file.
65219         * modules/unistdio/u8-vasnprintf: New file.
65220         * modules/unistdio/u8-vasprintf: New file.
65221         * modules/unistdio/u8-vsnprintf: New file.
65222         * modules/unistdio/u8-vsprintf: New file.
65223         * modules/unistdio/u8-u8-asnprintf: New file.
65224         * modules/unistdio/u8-u8-asprintf: New file.
65225         * modules/unistdio/u8-u8-snprintf: New file.
65226         * modules/unistdio/u8-u8-sprintf: New file.
65227         * modules/unistdio/u8-u8-vasnprintf: New file.
65228         * modules/unistdio/u8-u8-vasprintf: New file.
65229         * modules/unistdio/u8-u8-vsnprintf: New file.
65230         * modules/unistdio/u8-u8-vsprintf: New file.
65231         * modules/unistdio/u16-asnprintf: New file.
65232         * modules/unistdio/u16-asprintf: New file.
65233         * modules/unistdio/u16-printf-parse: New file.
65234         * modules/unistdio/u16-snprintf: New file.
65235         * modules/unistdio/u16-sprintf: New file.
65236         * modules/unistdio/u16-vasnprintf: New file.
65237         * modules/unistdio/u16-vasprintf: New file.
65238         * modules/unistdio/u16-vsnprintf: New file.
65239         * modules/unistdio/u16-vsprintf: New file.
65240         * modules/unistdio/u16-u16-asnprintf: New file.
65241         * modules/unistdio/u16-u16-asprintf: New file.
65242         * modules/unistdio/u16-u16-snprintf: New file.
65243         * modules/unistdio/u16-u16-sprintf: New file.
65244         * modules/unistdio/u16-u16-vasnprintf: New file.
65245         * modules/unistdio/u16-u16-vasprintf: New file.
65246         * modules/unistdio/u16-u16-vsnprintf: New file.
65247         * modules/unistdio/u16-u16-vsprintf: New file.
65248         * modules/unistdio/u32-asnprintf: New file.
65249         * modules/unistdio/u32-asprintf: New file.
65250         * modules/unistdio/u32-printf-parse: New file.
65251         * modules/unistdio/u32-snprintf: New file.
65252         * modules/unistdio/u32-sprintf: New file.
65253         * modules/unistdio/u32-vasnprintf: New file.
65254         * modules/unistdio/u32-vasprintf: New file.
65255         * modules/unistdio/u32-vsnprintf: New file.
65256         * modules/unistdio/u32-vsprintf: New file.
65257         * modules/unistdio/u32-u32-asnprintf: New file.
65258         * modules/unistdio/u32-u32-asprintf: New file.
65259         * modules/unistdio/u32-u32-snprintf: New file.
65260         * modules/unistdio/u32-u32-sprintf: New file.
65261         * modules/unistdio/u32-u32-vasnprintf: New file.
65262         * modules/unistdio/u32-u32-vasprintf: New file.
65263         * modules/unistdio/u32-u32-vsnprintf: New file.
65264         * modules/unistdio/u32-u32-vsprintf: New file.
65265         * modules/unistdio/ulc-asnprintf-tests: New file.
65266         * modules/unistdio/ulc-vasnprintf-tests: New file.
65267         * modules/unistdio/ulc-vasprintf-tests: New file.
65268         * modules/unistdio/ulc-vsnprintf-tests: New file.
65269         * modules/unistdio/ulc-vsprintf-tests: New file.
65270         * modules/unistdio/u8-asnprintf-tests: New file.
65271         * modules/unistdio/u8-vasnprintf-tests: New file.
65272         * modules/unistdio/u8-vasprintf-tests: New file.
65273         * modules/unistdio/u8-vsnprintf-tests: New file.
65274         * modules/unistdio/u8-vsprintf-tests: New file.
65275         * modules/unistdio/u16-asnprintf-tests: New file.
65276         * modules/unistdio/u16-vasnprintf-tests: New file.
65277         * modules/unistdio/u16-vasprintf-tests: New file.
65278         * modules/unistdio/u16-vsnprintf-tests: New file.
65279         * modules/unistdio/u16-vsprintf-tests: New file.
65280         * modules/unistdio/u32-asnprintf-tests: New file.
65281         * modules/unistdio/u32-vasnprintf-tests: New file.
65282         * modules/unistdio/u32-vasprintf-tests: New file.
65283         * modules/unistdio/u32-vsnprintf-tests: New file.
65284         * modules/unistdio/u32-vsprintf-tests: New file.
65285         * MODULES.html.sh (Unicode string functions): Add the new modules.
65286
65287 2007-07-01  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/sprintf.c (sprintf): Limit the available length estimation,
65290         to avoid address wraparound.
65291         * lib/vsprintf.c (vsprintf): Likewise.
65292         * modules/sprintf-posix (Dependencies): Add stdint.
65293         * modules/vsprintf-posix (Dependencies): Likewise.
65294
65295 2007-07-01  Bruno Haible  <bruno@clisp.org>
65296
65297         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65298         Windows PATH as well. Conservative double-quoting. Comments.
65299
65300 2007-07-01  Bruno Haible  <bruno@clisp.org>
65301             Eric Blake  <ebb9@byu.net>
65302             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65303
65304         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65305         empty components in $PATH, denoting '.'.
65306
65307 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65308
65309         * gnulib-tool: Fix indentation.
65310         (func_create_megatestdir): Likewise.
65311         Report by Bruno Haible.
65312
65313 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65314
65315         Sync from Automake.
65316         * build-aux/gnupload: Fix shell portability issues with for loops.
65317         Report by Karl Berry.
65318
65319 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65320
65321         * build-aux/maint.mk (POURL): Use translationproject.org.
65322
65323 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65324             Bruno Haible  <bruno@clisp.org>
65325
65326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65327         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65328         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65329         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65330         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65331
65332 2007-06-27  Bruno Haible  <bruno@clisp.org>
65333
65334         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65335         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65336
65337 2007-06-26  Karl Berry  <karl@gnu.org>
65338
65339         * MODULES.html.sh: remove xreadlink-with-size.
65340
65341 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65344         method that I hope also handles the double-include problem noted
65345         by Bruno Haible in
65346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65347
65348 2007-06-23  Bruno Haible  <bruno@clisp.org>
65349
65350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65351         Don't let the 'mostlyclean' target fail if the last subdirectory could
65352         not be removed.
65353         Reported by Karl Berry.
65354
65355 2007-06-23  Bruno Haible  <bruno@clisp.org>
65356
65357         * gnulib-tool (echo): Add a speedier workaround for ksh.
65358         * tests/test-echo.sh: Likewise.
65359
65360 2007-06-23  Bruno Haible  <bruno@clisp.org>
65361
65362         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65363         * tests/test-echo.sh: Likewise.
65364
65365 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65366
65367         * gnulib-tool (IFS): Initialize early, so we don't set it to
65368         empty later.
65369         (self_abspathname): Rewrite algorithm to set it, reindent.
65370         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65371         (func_create_megatestdir): Merge some sed scripts.
65372
65373 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65376         exposed by Sun Studio 11 cc on Solaris 8.
65377
65378 2007-06-22  Bruno Haible  <bruno@clisp.org>
65379
65380         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65381         backslashes.
65382         * tests/test-echo.sh: New file.
65383
65384 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65385
65386         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65387         simplify `sed_replace_build_aux' scripts, they are portable but
65388         echoing them with `echo' is not.
65389         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65390
65391 2007-06-21  Karl Berry  <karl@gnu.org>
65392
65393         * config/srclist.txt: guess we can't handle the licenses via
65394         srclist at the moment.
65395
65396 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65397
65398         * MODULES.html.sh: Add include_next.
65399         * modules/include_next: New file.
65400
65401 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65404         INCLUDE_NEXT.
65405         (gl_CHECK_NEXT_HEADERS): New macro.
65406         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65407         the obsolescent gl_ABSOLUTE_HEADER.
65408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65409         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65410         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65411         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65412         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65413         * m4/math_h.m4 (gl_MATH_H): Likewise.
65414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65415         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65416         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65417         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65418         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65419         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65424         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65425         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65426         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65428         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65429         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65430         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65431         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65432         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65433         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65434         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65435         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65436         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65437         * lib/float_.h: Likewise.
65438         * lib/inttypes_.h: Likewise.
65439         * lib/math_.h: Likewise.
65440         * lib/search_.h: Likewise.
65441         * lib/signal_.h: Likewise.
65442         * lib/stdint_.h: Likewise.
65443         * lib/stdio_.h: Likewise.
65444         * lib/stdlib_.h: Likewise.
65445         * lib/string_.h: Likewise.
65446         * lib/sys_stat_.h: Likewise.
65447         * lib/sys_time_.h: Likewise.
65448         * lib/time_.h: Likewise.
65449         * lib/unistd_.h: Likewise.
65450         * lib/wchar_.h: Likewise.
65451         * lib/wctype_.h: Likewise.
65452         * lib/dirent_.h: Likewise.
65453         * lib/iconv_.h: Likewise.
65454         * lib/locale_.h: Likewise.
65455         * lib/netinet_in_.h: Likewise.
65456         * lib/sys_select_.h: Likewise.
65457         * lib/sys_socket_.h: Likewise.
65458         * lib/sysexits_.h: Likewise.
65459         * modules/fcntl (Depends-on): Depend on include_next, not
65460         absolute_header.
65461         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65462         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65463         * modules/fchdir: Likewise.
65464         * modules/float: Likewise.
65465         * modules/iconv_open: Likewise.
65466         * modules/inttypes: Likewise.
65467         * modules/locale: Likewise.
65468         * modules/math: Likewise.
65469         * modules/netinet_in: Likewise.
65470         * modules/search: Likewise.
65471         * modules/signal: Likewise.
65472         * modules/stdint: Likewise.
65473         * modules/stdio: Likewise.
65474         * modules/stdlib: Likewise.
65475         * modules/string: Likewise.
65476         * modules/sys_select: Likewise.
65477         * modules/sys_socket: Likewise.
65478         * modules/sys_stat: Likewise.
65479         * modules/sys_time: Likewise.
65480         * modules/sysexits: Likewise.
65481         * modules/time: Likewise.
65482         * modules/unistd: Likewise.
65483         * modules/wchar: Likewise.
65484         * modules/wctype: Likewise.
65485         * modules/sys_stat: Change maintainer to "all".
65486         * modules/unistd: Likewise.
65487
65488 2007-06-20  Karl Berry  <karl@gnu.org>
65489
65490         * config/srclist.txt: track www changes in license files.
65491
65492 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65493
65494         * build-aux/bootstrap: Remove stray dot.
65495         Make sure build_aux settings are honored when linking
65496         gnulib_extra_files.
65497
65498 2007-06-19  Eric Blake  <ebb9@byu.net>
65499
65500         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65501         Allow compilation on cygwin.
65502
65503 2007-06-19  Jim Meyering  <jim@meyering.net>
65504
65505         xreadlink-with-size: Remove module.  No longer used.
65506         Ex-callers now use xreadlink or mreadlink-with-size.
65507         * modules/xreadlink-with-size: Remove module.
65508         * lib/xreadlink-with-size.c: Remove file.
65509         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65510         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65511         just before the function definition *is* accurate.
65512
65513         Eliminate one way canonicalize_filename_mode could exit.
65514         * lib/canonicalize.c (canonicalize_filename_mode):
65515         Use mreadlink_with_size, not xreadlink_with_size.
65516
65517 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65518
65519         Detect porting problems to FreeBSD/arm, which has time_t wider than
65520         long int.  Original problem reported for GNU diff by Xin Li in
65521         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65522         * modules/getdate (Depends-on): Add intprops, verify.
65523         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65524         is an integer type no wider than long int.
65525
65526 2007-06-18  Jim Meyering  <jim@meyering.net>
65527
65528         New module: mreadlink-with-size.
65529         * MODULES.html.sh: Add mreadlink-with-size.
65530         * modules/mreadlink-with-size: New module
65531         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65532         not xreadlink-with-size.
65533         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65534
65535 2007-06-16  Bruno Haible  <bruno@clisp.org>
65536
65537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65538         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65539         Reported by Gary V. Vaughan <gary@gnu.org>.
65540
65541 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         Revamp lchown so that it lives in unistd.h where it belongs.
65544         * lib/lchown.h: Remove.
65545         * lib/dirchownmod.c: Don't include lib/lchown.h.
65546         * lib/fchownat.c: Likewise.
65547         * lib/openat.c: Likewise.
65548         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65549         does not follow symlinks.
65550         (EOPNOTSUPP): Define if not defined.
65551         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65552         is defined to 0.
65553         (lchown): New decl.
65554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65555         Do not check for lchown decl.
65556         Set REPLACE_LCHOWN.
65557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65558         REPLACE_LCHOWN.
65559         * modules/chown: Make it clear it follows symlinks.
65560         * modules/lchown: Make it clear it doesn't follow symlinks.
65561         (Files): Remove lib/lchown.h
65562         (Depends-on): Add unistd.
65563         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65564         (Include): Include <unistd.h>, not "lchown.h".
65565         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65566         REPLACE_LCHOWN.
65567
65568 2007-06-15  Jim Meyering  <jim@meyering.net>
65569
65570         Change license (GPL to LGPL) of fsusage and dependents.
65571         * modules/fsusage (License): Change to LGPL.
65572         * modules/full-read (License): Likewise.
65573         * modules/full-write (License): Likewise.
65574         * modules/safe-read (License): Likewise.
65575         * modules/safe-write (License): Likewise.
65576
65577 2007-06-14  Ben Pfaff  <blp@gnu.org>
65578
65579         Missing part of allocsa -> malloca transition.
65580         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65581         gl_MALLOCA.
65582
65583 2007-06-12  Bruno Haible  <bruno@clisp.org>
65584
65585         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65586         to ia64, x86_64, i386.
65587         Reported by Eric Blake.
65588
65589 2007-06-12  Bruno Haible  <bruno@clisp.org>
65590
65591         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65592         cross-compiling to x86_64.
65593
65594 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65597         glitch reported by Ralf Wildenhues in
65598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65599
65600         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65601         Vin Shelton.
65602
65603 2007-06-11  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65606         replacement string.
65607         Reported by Eric Blake.
65608
65609 2007-06-10  Bruno Haible  <bruno@clisp.org>
65610
65611         Prepare vasnprintf code for use with Unicode strings.
65612         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65613         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65614         TYPE_U32_STRING.
65615         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65616         a_u32_string variants.
65617         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65618         * lib/printf-args.c: Don't include config.h and the specification
65619         header if PRINTF_FETCHARGS is already defined.
65620         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65621         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65622         TYPE_U16_STRING, TYPE_U32_STRING.
65623         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65624         u16_directive, u16_directives, u32_directive, u32_directives): New
65625         types.
65626         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65627         New declarations.
65628         * lib/printf-parse.c: Don't include config.h and the specification
65629         header if PRINTF_PARSE is already defined. Eliminate the set of
65630         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65631         them now. Include c-ctype.h.
65632         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65633         directive and CHAR_T_ONLY_ASCII.
65634         * lib/vasnprintf.c: Don't include config.h and the specification header
65635         if VASNPRINTF is already defined.
65636         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65637         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65638         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65639         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65640         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65641         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65642         code accordingly.
65643         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65644         pad_ourselves also in this case, with the 'c' and 's' directives, and
65645         with a different notion of "width".
65646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65647
65648 2007-06-10  Bruno Haible  <bruno@clisp.org>
65649
65650         * modules/unistr/u32-mbsnlen: New file.
65651         * lib/unistr/u32-mbsnlen.c: New file.
65652
65653         * modules/unistr/u16-mbsnlen: New file.
65654         * lib/unistr/u16-mbsnlen.c: New file.
65655
65656         * modules/unistr/u8-mbsnlen: New file.
65657         * lib/unistr/u8-mbsnlen.c: New file.
65658
65659         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65660         declarations.
65661
65662 2007-06-10  Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/string_.h (mbsnlen): New declaration.
65665         * lib/mbsnlen.c: New file.
65666         * m4/mbsnlen.m4: New file.
65667         * modules/mbsnlen: New file.
65668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65669         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65670         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65671
65672 2007-06-10  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65675
65676 2007-06-10  Bruno Haible  <bruno@clisp.org>
65677
65678         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65679         * lib/mbuiter.h: Likewise.
65680
65681 2007-06-10  Bruno Haible  <bruno@clisp.org>
65682
65683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65684         declaration.
65685
65686 2007-06-10  Karl Berry  <karl@gnu.org>
65687
65688         * config/srclist.txt: remove gettext entries, Bruno prefers
65689         to update individually.
65690
65691 2007-06-10  Bruno Haible  <bruno@clisp.org>
65692
65693         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65694         'maxlen'. Ensure only length + width bytes are allocated, not
65695         length + 1 + width.
65696
65697 2007-06-09  Bruno Haible  <bruno@clisp.org>
65698
65699         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65700         (CHAR_T): Remove macro.
65701         (VASNPRINTF): Update.
65702
65703 2007-06-09  Bruno Haible  <bruno@clisp.org>
65704
65705         * MODULES.html.sh (Unicode string functions): Add the new modules.
65706
65707         * modules/uniconv/u32-conv-to-enc: New file.
65708         * lib/uniconv/u32-conv-to-enc.c: New file.
65709         * modules/uniconv/u32-conv-to-enc-tests: New file.
65710         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65711
65712         * modules/uniconv/u16-conv-to-enc: New file.
65713         * lib/uniconv/u16-conv-to-enc.c: New file.
65714         * lib/uniconv/u-conv-to-enc.h: New file.
65715         * modules/uniconv/u16-conv-to-enc-tests: New file.
65716         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65717
65718         * modules/uniconv/u8-conv-to-enc: New file.
65719         * lib/uniconv/u8-conv-to-enc.c: New file.
65720         * modules/uniconv/u8-conv-to-enc-tests: New file.
65721         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65722
65723         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65724         u32_conv_to_encoding): New declarations.
65725
65726 2007-06-09  Bruno Haible  <bruno@clisp.org>
65727
65728         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65729
65730 2007-06-09  Bruno Haible  <bruno@clisp.org>
65731
65732         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65733         * modules/malloca: Renamed from modules/allocsa, updated.
65734         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65735         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65736         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65737         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65738         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65739         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65740         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65741         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65742         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65743         * modules/c-strcasestr (Depends-on): Update.
65744         * lib/c-strcasestr.c: Update.
65745         * modules/c-strstr (Depends-on): Update.
65746         * lib/c-strstr.c: Update.
65747         * modules/canonicalize-lgpl (Depends-on): Update.
65748         * lib/canonicalize-lgpl.c: Update.
65749         * modules/clean-temp (Depends-on): Update.
65750         * lib/clean-temp.c: Update.
65751         * modules/csharpcomp (Depends-on): Update.
65752         * lib/csharpcomp.c: Update.
65753         * modules/csharpexec (Depends-on): Update.
65754         * lib/csharpexec.c: Update.
65755         * modules/javacomp (Depends-on): Update.
65756         * lib/javacomp.c: Update.
65757         * modules/javaexec (Depends-on): Update.
65758         * lib/javaexec.c: Update.
65759         * modules/mbscasestr (Depends-on): Update.
65760         * lib/mbscasestr.c: Update.
65761         * modules/mbsstr (Depends-on): Update.
65762         * lib/mbsstr.c: Update.
65763         * modules/setenv (Depends-on): Update.
65764         * lib/setenv.c: Update.
65765         * modules/strcasestr (Depends-on): Update.
65766         * lib/strcasestr.c: Update.
65767         * modules/striconveha (Depends-on): Update.
65768         * lib/striconveha.c: Update.
65769         * modules/relocatable-prog-wrapper (Files): Update.
65770         * lib/relocwrapper.c: Update.
65771         * build-aux/install-reloc: Update.
65772         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65773
65774 2007-06-08  Bruno Haible  <bruno@clisp.org>
65775
65776         Port to uClibc.
65777         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65778         * lib/fpurge.c (fpurge): Likewise.
65779         * lib/freading.c (freading): Likewise.
65780         * lib/fseeko.c (rpl_fseeko): Likewise.
65781         * lib/fseterr.c (fseterr): Likewise.
65782         * lib/fwriting.c (fwriting): Likewise.
65783         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65784
65785 2007-06-08  Bruno Haible  <bruno@clisp.org>
65786
65787         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65788         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65789         * modules/gettext (Files): Add m4/intlmacosx.m4.
65790
65791 2007-06-07  Bruno Haible  <bruno@clisp.org>
65792
65793         * modules/localename-tests: New file.
65794         * tests/test-localename.c: New file.
65795
65796         New module 'localename'.
65797         * lib/localename.h: New file.
65798         * lib/localename.c: New file, from GNU gettext.
65799         * m4/localename.m4: New file.
65800         * modules/localename: New file.
65801
65802 2007-06-07  Bruno Haible  <bruno@clisp.org>
65803
65804         Work around the lack of <wchar.h> on some builds of uClibc.
65805         * doc/headers/wchar.texi: Update.
65806         * lib/wchar_.h: Include <wchar.h> only if it exists.
65807         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65808         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65809         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65810         doesn't exist.
65811         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65812         * modules/mbfile (Depends-on): Add wchar.
65813         * modules/mbiter (Depends-on): Likewise.
65814         * modules/mbuiter (Depends-on): Likewise.
65815         Reported by Simon Josefsson.
65816
65817 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         Work around problem reported by Steven M. Schweda in
65820         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65821         Tru64 5.1B with the Compaq compiler environment installed declares
65822         an 'isblank' function but does not define it in the C library.
65823         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65824         * lib/regex_internal.h (isblank): Likewise.
65825         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65827
65828 2007-06-05  Bruno Haible  <bruno@clisp.org>
65829
65830         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65831         ia64.
65832         * modules/printf-safe: New file.
65833         * modules/fprintf-posix (Depends-on): Add printf-safe.
65834         * modules/printf-posix (Depends-on): Likewise.
65835         * modules/snprintf-posix (Depends-on): Likewise.
65836         * modules/sprintf-posix (Depends-on): Likewise.
65837         * modules/vasnprintf-posix (Depends-on): Likewise.
65838         * modules/vasprintf-posix (Depends-on): Likewise.
65839         * modules/vfprintf-posix (Depends-on): Likewise.
65840         * modules/vprintf-posix (Depends-on): Likewise.
65841         * modules/vsnprintf-posix (Depends-on): Likewise.
65842         * modules/vsprintf-posix (Depends-on): Likewise.
65843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65844         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65845         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65846         "no" on i386, x86_64, ia64.
65847         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65848         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65849         on i386, x86_64, ia64.
65850         * tests/test-sprintf-posix.h (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-vasnprintf-posix.c: Include float.h.
65854         (LDBL80_WORDS): New macro.
65855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65856         on i386, x86_64, ia64.
65857         * tests/test-vasprintf-posix.c: Include float.h.
65858         (LDBL80_WORDS): New macro.
65859         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65860         on i386, x86_64, ia64.
65861         * tests/test-snprintf-posix.c: Include float.h.
65862         * tests/test-sprintf-posix.c: Likewise.
65863         * tests/test-vsnprintf-posix.c: Likewise.
65864         * tests/test-vsprintf-posix.c: Likewise.
65865
65866 2007-06-05  Bruno Haible  <bruno@clisp.org>
65867
65868         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65870         non-IEEE numbers on i386, x86_64, ia64.
65871         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65872         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65873         * tests/test-isnanl.h: Include float.h.
65874         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65875
65876 2007-06-05  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65879         also the %a / %A. Handle the %a / %A code before this extra handling.
65880
65881 2007-06-05  Bruno Haible  <bruno@clisp.org>
65882
65883         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65884         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65885
65886 2007-06-05  Bruno Haible  <bruno@clisp.org>
65887
65888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65889         typo in variable name.
65890
65891 2007-06-05  Eric Blake  <ebb9@byu.net>
65892
65893         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65894         Reported by Simon Josefsson.
65895
65896 2007-06-04  Bruno Haible  <bruno@clisp.org>
65897
65898         Avoid test failures on some PowerPC platforms.
65899         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65900         Define differently for PowerPC.
65901         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65902         Reported by Gary V. Vaughan <gary@gnu.org>.
65903
65904 2007-06-02  Bruno Haible  <bruno@clisp.org>
65905
65906         Fix test-stdint failure on FreeBSD/ia64.
65907         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65908         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65909         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65910         * doc/headers/stdint.texi: Update.
65911
65912 2007-06-01  Bruno Haible  <bruno@clisp.org>
65913
65914         * tests/test-binary-io.c (main): Pass a third argument to open().
65915         Reported by Gary V. Vaughan <gary@gnu.org>.
65916
65917 2007-06-01  Bruno Haible  <bruno@clisp.org>
65918
65919         * doc/functions/frexpl.texi: Update for mingw.
65920
65921 2007-06-01  Bruno Haible  <bruno@clisp.org>
65922
65923         * tests/test-lseek.c (main): Disable test of errno for invalid third
65924         argument.
65925         * doc/functions/lseek.texi: Update.
65926         Reported by Gary V. Vaughan <gary@gnu.org>.
65927
65928 2007-05-28  Bruno Haible  <bruno@clisp.org>
65929
65930         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65931
65932 2007-05-31  Eric Blake  <ebb9@byu.net>
65933
65934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65935         cross compiling.
65936
65937 2007-05-30  Eric Blake  <ebb9@byu.net>
65938         and Bruno Haible  <bruno@clisp.org>
65939
65940         Work around mingw test failures exposed by m4-1.4.9b.
65941         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65942         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65943         moment.
65944
65945 2007-05-30  Bruno Haible  <bruno@clisp.org>
65946
65947         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65948         assuming that they are closed. Needed on HP-UX 11.
65949
65950 2007-05-29  Bruno Haible  <bruno@clisp.org>
65951
65952         Fix a problem with #include_next.
65953         * lib/dirent_.h: Split the double-inclusion guard.
65954         * lib/fcntl_.h: Likewise.
65955         * lib/float_.h: Likewise.
65956         * lib/iconv_.h: Likewise.
65957         * lib/inttypes_.h: Likewise.
65958         * lib/locale_.h: Likewise.
65959         * lib/math_.h: Likewise.
65960         * lib/netinet_in_.h: Likewise.
65961         * lib/search_.h: Likewise.
65962         * lib/signal_.h: Likewise.
65963         * lib/stdint_.h: Likewise.
65964         * lib/stdio_.h: Likewise.
65965         * lib/stdlib_.h: Likewise.
65966         * lib/string_.h: Likewise.
65967         * lib/sys_select_.h: Likewise.
65968         * lib/sys_socket_.h: Likewise.
65969         * lib/sys_stat_.h: Likewise.
65970         * lib/sys_time_.h: Likewise.
65971         * lib/sysexits_.h: Likewise.
65972         * lib/time_.h: Likewise.
65973         * lib/unistd_.h: Likewise.
65974         * lib/wchar_.h: Likewise.
65975         * lib/wctype_.h: Likewise.
65976
65977 2007-05-29  Bruno Haible  <bruno@clisp.org>
65978
65979         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65980         for the moment.
65981
65982 2007-05-29  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65985         invocation.
65986         Reported by Eric Blake.
65987
65988 2007-05-29  Bruno Haible  <bruno@clisp.org>
65989
65990         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65991         compiling case.
65992
65993 2007-05-29  Eric Blake  <ebb9@byu.net>
65994             Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65997         cross compiles.
65998
65999 2007-05-28  Eric Blake  <ebb9@byu.net>
66000
66001         * modules/closein-tests (test_closein_LDADD): Support test on
66002         cygwin with libtool.
66003
66004 2007-05-28  Bruno Haible  <bruno@clisp.org>
66005
66006         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66007         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66008         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66009         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66010         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66011         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66013         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66014         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66015
66016 2007-05-28  Eric Blake  <ebb9@byu.net>
66017
66018         Unconditionally include <config.h> in unit tests.
66019         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66020         * tests/test-allocsa.c, tests/test-arcfour.c,
66021         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66022         tests/test-array_list.c, tests/test-array_oset.c,
66023         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66024         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66025         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66026         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66027         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66028         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66029         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66030         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66031         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66032         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66033         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66034         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66035         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66036         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66037         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66038         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66039         test-md5.c, test-memmem.c, test-printf-posix.c,
66040         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66041         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66042         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66043         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66044         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66045         test-vasnprintf-posix2.c, test-vasnprintf.c,
66046         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66047         test-vfprintf-posix.c, test-vprintf-posix.c,
66048         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66049         test-xvasprintf.c: Likewise.
66050
66051 2007-05-28  Bruno Haible  <bruno@clisp.org>
66052
66053         * gnulib-tool (func_import): Remember the --with-tests command-line
66054         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66055         Reported by Eric Blake.
66056
66057 2007-05-28  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/ftell-tests: New file.
66060         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66061         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66062
66063         * lib/ftell.c: New file.
66064         * modules/ftell: New file.
66065         * m4/ftell.m4: New file.
66066         * doc/functions/ftell.texi: Update.
66067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66068         REPLACE_FTELL.
66069         * lib/stdio_.h (rpl_ftell): New declaration.
66070         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66071         REPLACE_FTELL.
66072
66073 2007-05-28  Eric Blake  <ebb9@byu.net>
66074
66075         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66076
66077 2007-05-28  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/fseek-tests: New file.
66080         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66081         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66082
66083         * lib/fseek.c: New file.
66084         * modules/fseek: New file.
66085         * m4/fseek.m4: New file.
66086         * doc/functions/fseek.texi: Update.
66087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66088         REPLACE_FSEEK.
66089         * lib/stdio_.h (rpl_fseek): New declaration.
66090         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66091         REPLACE_FSEEK.
66092
66093 2007-05-28  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/stdio_.h (fflush): More comments.
66096
66097 2007-05-28  Bruno Haible  <bruno@clisp.org>
66098
66099         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66100         runtime test.
66101
66102 2007-05-28  Eric Blake  <ebb9@byu.net>
66103
66104         Improve lseek module.
66105         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66106         * lib/unistd_.h (lseek): Scale back link warning message.
66107         * tests/test-lseek.c: Beef up test.
66108         * tests/test-lseek.sh: Exercise more facets of lseek.
66109         Reported by Bruno Haible.
66110
66111 2007-05-28  Bruno Haible  <bruno@clisp.org>
66112
66113         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66114         to define.
66115
66116 2007-05-27  Bruno Haible  <bruno@clisp.org>
66117
66118         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66119
66120 2007-05-27  Bruno Haible  <bruno@clisp.org>
66121
66122         * modules/openmp: New file.
66123         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66124         Noah Misch.
66125
66126 2007-05-26  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/chdir-long (Depends-on): Add fchdir.
66129         * modules/chdir-safer (Depends-on): Likewise.
66130         * modules/fts (Depends-on): Likewise.
66131         * modules/fts-lgpl (Depends-on): Likewise.
66132         * modules/openat (Depends-on): Likewise.
66133         * modules/savewd (Depends-on): Likewise.
66134
66135 2007-05-24  Eric Blake  <ebb9@byu.net>
66136
66137         Fix lseek on mingw.
66138         * modules/lseek: New module.
66139         * m4/lseek.m4: New file.
66140         * lib/lseek.c: New file.
66141         * modules/lseek-tests: New file.
66142         * tests/test-lseek.c: New file.
66143         * tests/test-lseek.sh: New file.
66144         * MODULES.html.sh: Document lseek module.
66145         * modules/fflush (Depends-on): Add lseek, fseeko.
66146         * modules/fseeko (Depends-on): Likewise.
66147         * modules/ftello (Depends-on): Likewise.
66148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66149         broken.
66150         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66151         broken.
66152         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66153         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66154         * lib/ftello.c (rpl_ftello): Likewise.
66155         * tests/test-fseeko.c (main): Test this.
66156         * tests/test-fseeko.sh: Likewise.
66157         * tests/test-ftello.c (main): Likewise.
66158         * tests/test-ftello.sh: Likewise.
66159         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66160         implies replacing fseek.
66161         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66162         HAVE_FTELLO.
66163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66164         * modules/unistd (Makefile.am): Likewise.
66165         * lib/unistd_.h (lseek): Declare a replacement.
66166         * doc/functions/lseek.texi (lseek): Document this fix.
66167         * doc/functions/fseek.texi (fseek): Likewise.
66168         * doc/functions/ftell.texi (ftell): Likewise.
66169
66170 2007-05-24  Bruno Haible  <bruno@clisp.org>
66171
66172         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66173         in the printed representation of a NaN.
66174         * tests/test-vasprintf-posix.c (test_function): Likewise.
66175         * tests/test-snprintf-posix.h (test_function): Likewise.
66176         * tests/test-sprintf-posix.h (test_function): Likewise.
66177         Reported by Eric Blake.
66178
66179 2007-05-23  Eric Blake  <ebb9@byu.net>
66180
66181         Fix fseeko/ftello on cygwin 1.5.24.
66182         * doc/functions/fseeko.texi (fseeko): Document the fix.
66183         * doc/functions/ftello.texi (ftello): Document the fix.
66184         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66185         * doc/functions/stdout.text (stdout): New file.
66186         * doc/functions/stderr.text (stderr): New file.
66187         * doc/gnulib.texi (Function Substitutes): Use new files.
66188         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66189         prior to 1.7.0.
66190         * tests/test-ftello.c (main): Likewise for ftello.
66191         * tests/test-fseeko.sh: New file.
66192         * tests/test-ftello.sh: New file.
66193         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66194         with seekable stdin.
66195         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66197         (gl_REPLACE_FSEEKO): New macro.
66198         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66199         * modules/fseeko (Files): Distribute fseeko.c.
66200         * modules/ftello (Files): Distribute ftello.c.
66201         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66202         mode.
66203         * lib/ftello.c (rpl_ftello): New file.
66204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66205         fseeko, ftello.
66206         (gl_STDIN_LARGE_OFFSET): New macro.
66207         * modules/stdio (Makefile.am): Perform the replacement.
66208         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66209
66210 2007-05-23  Bruno Haible  <bruno@clisp.org>
66211
66212         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66213         GNULIB_POSIXCHECK is defined.
66214
66215 2007-05-21  Bruno Haible  <bruno@clisp.org>
66216
66217         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66218         Check also the output for NaN arguments. When cross-compiling, guess
66219         no on IRIX.
66220         * lib/vasnprintf.c: Update comments.
66221         * tests/test-vasnprintf-posix.c (strisnan): New function.
66222         (test_function): Use it.
66223         * tests/test-vasprintf-posix.c (strisnan): New function.
66224         (test_function): Use it.
66225         * tests/test-snprintf-posix.h (strisnan): New function.
66226         (test_function): Use it.
66227         * tests/test-sprintf-posix.h (strisnan): New function.
66228         (test_function): Use it.
66229         Reported by Eric Blake.
66230
66231 2007-05-20  Bruno Haible  <bruno@clisp.org>
66232
66233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66234         numbers that fails on BeOS.
66235         * doc/functions/frexpl.texi: Update.
66236
66237 2007-05-20  Jim Meyering  <jim@meyering.net>
66238
66239         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66240         forced upon us by glibc-2.6.
66241
66242 2007-05-20  Bruno Haible  <bruno@clisp.org>
66243
66244         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66245         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66246         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66247         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66248         NEED_PRINTF_INFINITE.
66249         (is_infinitel): New function.
66250         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66252         gl_PREREQ_VASNPRINTF_INFINITE.
66253         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66254         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66255         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66256         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66257         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66258         gl_PREREQ_VASNPRINTF_INFINITE.
66259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66266         * doc/functions/fprintf.texi: Update.
66267         * doc/functions/printf.texi: Update.
66268         * doc/functions/snprintf.texi: Update.
66269         * doc/functions/sprintf.texi: Update.
66270         * doc/functions/vfprintf.texi: Update.
66271         * doc/functions/vprintf.texi: Update.
66272         * doc/functions/vsnprintf.texi: Update.
66273         * doc/functions/vsprintf.texi: Update.
66274
66275 2007-05-20  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66278         was not found in libc.
66279         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66280
66281 2007-05-20  Bruno Haible  <bruno@clisp.org>
66282
66283         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66284         printed as "-nan" instead of "nan".
66285         * tests/test-vasprintf-posix.c (test_function): Likewise.
66286         * tests/test-snprintf-posix.h (test_function): Likewise.
66287         * tests/test-sprintf-posix.h (test_function): Likewise.
66288         Needed for HP-UX 11.
66289
66290 2007-05-20  Jim Meyering  <jim@meyering.net>
66291
66292         Fix buggy test for the fchownat-deref bug.
66293         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66294         symlink required for the run-test.  Without it, this test would
66295         always declare that fchownat doesn't work, and client code would
66296         unnecessarily use the replacement function with fixed libc.
66297         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66298         Reported by Greg Schafer.
66299
66300 2007-05-19  Bruno Haible  <bruno@clisp.org>
66301
66302         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66303         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66304         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66305         Needed for IRIX 6.5 and Solaris 2.5.1.
66306
66307 2007-05-19  Bruno Haible  <bruno@clisp.org>
66308
66309         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66310         (test_function): Skip tests involving -0.0 on platforms where
66311         -0.0 = 0.0.
66312         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66313         (test_function): Skip tests involving -0.0 on platforms where
66314         -0.0 = 0.0.
66315         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66316         (test_function): Skip tests involving -0.0 on platforms where
66317         -0.0 = 0.0.
66318         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66319         (test_function): Skip tests involving -0.0 on platforms where
66320         -0.0 = 0.0.
66321         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66322         tests.
66323         * tests/test-printf-posix.h (test_function): Likewise.
66324         * tests/test-printf-posix.output: Remove all -0.0 related results.
66325         Needed for IRIX 6.5.
66326
66327 2007-05-19  Bruno Haible  <bruno@clisp.org>
66328
66329         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66330         printed as "nan0x7fffffff" instead of "nan".
66331         * tests/test-vasprintf-posix.c (test_function): Likewise.
66332         * tests/test-snprintf-posix.h (test_function): Likewise.
66333         * tests/test-sprintf-posix.h (test_function): Likewise.
66334         * tests/test-fprintf-posix.h (NaN): Remove macro.
66335         (test_function): Remove all NaN related tests.
66336         * tests/test-printf-posix.h (NaN): Remove macro.
66337         (test_function): Remove all NaN related tests.
66338         * tests/test-printf-posix.output: Remove all NaN related results.
66339         Needed for IRIX 6.5.
66340
66341 2007-05-19  Bruno Haible  <bruno@clisp.org>
66342
66343         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66345
66346 2007-05-19  Bruno Haible  <bruno@clisp.org>
66347
66348         * lib/float_.h: New file.
66349         * m4/float_h.m4: New file.
66350         * modules/float: New file.
66351         * modules/isnanl (Dependencies): Add float.
66352         * modules/isnanl-nolibm (Dependencies): Likewise.
66353         * modules/mathl (Dependencies): Likewise.
66354         * modules/printf-frexpl (Dependencies): Likewise.
66355         * modules/signbit (Dependencies): Likewise.
66356         * modules/vasnprintf (Dependencies): Likewise.
66357         * doc/headers/float.texi: Update.
66358
66359 2007-05-19  Jim Meyering  <jim@meyering.net>
66360
66361         * lib/utimens.c (gl_futimens): Rename from futimens,
66362         now that glibc-2.6 declares futimens.
66363         * lib/utimens.h: Likewise.
66364
66365 2007-05-19  Bruno Haible  <bruno@clisp.org>
66366
66367         Avoid test failures on mingw.
66368         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66369         * tests/test-printf-posix.sh: Likewise.
66370         * tests/test-vfprintf-posix.sh: Likewise.
66371         * tests/test-vprintf-posix.sh: Likewise.
66372
66373 2007-05-19  Bruno Haible  <bruno@clisp.org>
66374
66375         Fix *printf result for NaN, Inf, -0.0 on mingw.
66376         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66377         * lib/vasnprintf.c: Include math.h and isnan.h.
66378         (is_infinite_or_zero): New function.
66379         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66380         values in the %f, %F, %e, %E, %g, %G directives.
66381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66383         gl_PRINTF_INFINITE and test its result. Invoke
66384         gl_PREREQ_VASNPRINTF_INFINITE.
66385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66392         * doc/functions/fprintf.texi: Update.
66393         * doc/functions/printf.texi: Update.
66394         * doc/functions/snprintf.texi: Update.
66395         * doc/functions/sprintf.texi: Update.
66396         * doc/functions/vfprintf.texi: Update.
66397         * doc/functions/vprintf.texi: Update.
66398         * doc/functions/vsnprintf.texi: Update.
66399         * doc/functions/vsprintf.texi: Update.
66400
66401 2007-05-19  Bruno Haible  <bruno@clisp.org>
66402
66403         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66404         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66405         Instead of multiplying with 10^k, set extra_zeroes to k.
66406         (scale10_round_long_double): Remove function.
66407
66408 2007-05-18  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66411         introduced on 2007-05-06.
66412
66413 2007-05-18  Bruno Haible  <bruno@clisp.org>
66414
66415         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66416         %g directives.
66417         * tests/test-vasprintf-posix.c (test_function): Likewise.
66418         * tests/test-snprintf-posix.h (test_function): Likewise.
66419         * tests/test-sprintf-posix.h (test_function): Likewise.
66420
66421 2007-05-18  Bruno Haible  <bruno@clisp.org>
66422
66423         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66424         (strmatch): New function.
66425         (test_function): Test the %f directive on numbers of various exponents.
66426         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66427         (strmatch): New function.
66428         (test_function): Test the %f directive on numbers of various exponents.
66429         * tests/test-snprintf-posix.h (strmatch): New function.
66430         (test_function): Test the %f directive on numbers of various exponents.
66431         * tests/test-sprintf-posix.h (strmatch): New function.
66432         (test_function): Test the %f directive on numbers of various exponents.
66433         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66434         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66435         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66436         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66437
66438 2007-05-18  Bruno Haible  <bruno@clisp.org>
66439
66440         Add support for 'long double' number output.
66441         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66442         * lib/vasnprintf.c: Include math.h and float+.h.
66443         (mp_limb_t): New type.
66444         (GMP_LIMB_BITS): New macro.
66445         (mp_twolimb_t): New type.
66446         (GMP_TWOLIMB_BITS): New macro.
66447         (mpn_t): New type.
66448         (multiply, divide, convert_to_decimal, decode_long_double,
66449         scale10_round_long_double, scale10_round_decimal_long_double,
66450         floorlog10l): New functions.
66451         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66452         for the %f, %F, %e, %E, %g, %G directives.
66453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66454         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66455         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66456         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66458         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66464         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66465         * modules/snprintf-posix (Depends-on): Likewise.
66466         * modules/sprintf-posix (Depends-on): Likewise.
66467         * modules/vasnprintf-posix (Depends-on): Likewise.
66468         * modules/vasprintf-posix (Depends-on): Likewise.
66469         * modules/vfprintf-posix (Depends-on): Likewise.
66470         * modules/vsnprintf-posix (Depends-on): Likewise.
66471         * modules/vsprintf-posix (Depends-on): Likewise.
66472         * modules/vasnprintf (Files): Add lib/float+.h.
66473         * doc/functions/fprintf.texi: Update.
66474         * doc/functions/printf.texi: Update.
66475         * doc/functions/snprintf.texi: Update.
66476         * doc/functions/sprintf.texi: Update.
66477         * doc/functions/vfprintf.texi: Update.
66478         * doc/functions/vprintf.texi: Update.
66479         * doc/functions/vsnprintf.texi: Update.
66480         * doc/functions/vsprintf.texi: Update.
66481
66482 2007-05-18  Bruno Haible  <bruno@clisp.org>
66483
66484         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66485
66486 2007-05-18  Bruno Haible  <bruno@clisp.org>
66487
66488         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66489         for printing 64-bit integers. Needed for mingw.
66490
66491 2007-05-18  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66494         gl_FUNC_FREXPL_WORKS.
66495         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66496
66497 2007-05-18  Bruno Haible  <bruno@clisp.org>
66498
66499         * modules/frexpl-nolibm-tests: New file.
66500
66501         * modules/frexpl-nolibm: New file.
66502         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66503
66504 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66507         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66508         GCC 4.2, which otherwise issues a lot of warnings.
66509         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66510         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66511         Likewise.
66512         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66513         * modules/iconv_open (iconv.h): Likewise.
66514         * modules/locale (locale.h): Likewise.
66515         * modules/netinet_in (netinet/in.h): Likewise.
66516         * modules/sys_select (sys_select.h): Likewise.
66517         * modules/sys_socket (sys/socket.h): Likewise.
66518         * modules/sys_stat (sys/stat.h): Likewise.
66519         * modules/sysexits (sysexits.h): Likewise.
66520         * modules/unistd (unistd.h): Likewise.
66521
66522 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66523
66524         * modules/closein-tests (Makefile.am): Distribute
66525         `test-closein.sh'.
66526
66527 2007-05-17  Bruno Haible  <bruno@clisp.org>
66528
66529         * tests/test-printf-posix.output: Renamed from
66530         tests/test-fprintf-posix.out.
66531         * modules/fprintf-posix-tests: Update.
66532         * modules/printf-posix-tests: Update.
66533         * modules/vfprintf-posix-tests: Update.
66534         * modules/vprintf-posix-tests: Update.
66535         * tests/test-fprintf-posix.sh: Update.
66536         * tests/test-printf-posix.sh: Update.
66537         * tests/test-vfprintf-posix.sh: Update.
66538         * tests/test-vprintf-posix.sh: Update.
66539         Reported by Ralf Wildenhues.
66540
66541 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66542
66543         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66544         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66545         GCC 4.2, which otherwise issues a lot of warnings.
66546         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66547         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66548         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66549         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66550         it should no longer be needed.
66551         * lib/string_.h: Likewise.
66552         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66553         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66554         * modules/inttypes (inttypes.h): Likewise.
66555         * modules/math (math.h): Likewise.
66556         * modules/search (search.h): Likewise.
66557         * modules/signal (signal.h): Likewise.
66558         * modules/stdint (stdint.h): Likewise.
66559         * modules/stdio (stdio.h): Likewise.
66560         * modules/stdlib (stdlib.h): Likewise.
66561         * modules/string (string.h): Likewise.
66562         * modules/sys_time (sys/time.h): Likewise.
66563         * modules/time (time.h): Likewise.
66564         * modules/wchar (wchar.h): Likewise.
66565         * modules/wctype (wtype.h): Likewise.
66566
66567 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66568
66569         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66570
66571 2007-05-13  Bruno Haible  <bruno@clisp.org>
66572
66573         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66574         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66575         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66576         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66577         (gl_PREREQ_STRTOK_R): Don't require it here.
66578
66579 2007-05-13  Bruno Haible  <bruno@clisp.org>
66580
66581         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66582         when used in C++ mode.
66583
66584 2007-05-12  Bruno Haible  <bruno@clisp.org>
66585
66586         * lib/linebuffer.h: Tweak doc.
66587         * lib/linebuffer.c: Likewise.
66588
66589 2007-05-12  James Youngman  <jay@gnu.org>
66590
66591         * lib/linebuffer.c (readlinebuffer_delim): New function,
66592         like readlinebuffer, but use a caller-specified delimiter.
66593         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66594         as the delimiter.
66595         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66596
66597 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66598
66599         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66600         * modules/openat (Files): Remove openat-die.c.
66601         (Depends-on): Add openat-die.
66602         * modules/openat-die: New module.
66603
66604 2007-05-06  Bruno Haible  <bruno@clisp.org>
66605
66606         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66607         Update with info about Cygwin.
66608         * doc/functions/fprintf.texi: Update.
66609         * doc/functions/printf.texi: Update.
66610         * doc/functions/snprintf.texi: Update.
66611         * doc/functions/sprintf.texi: Update.
66612         * doc/functions/vfprintf.texi: Update.
66613         * doc/functions/vprintf.texi: Update.
66614         * doc/functions/vsnprintf.texi: Update.
66615         * doc/functions/vsprintf.texi: Update.
66616         Reported by Eric Blake.
66617
66618 2007-05-06  Bruno Haible  <bruno@clisp.org>
66619
66620         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66621         padding ourselves for the floating-point directives.
66622         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66625         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66626         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66631         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66634         * tests/test-snprintf-posix.h (test_function): Also check the width
66635         and some flags in the %f directive.
66636         * tests/test-sprintf-posix.h (test_function): Likewise.
66637         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66638         * tests/test-vasprintf-posix.c (test_function): Likewise.
66639         * doc/functions/fprintf.texi: Update.
66640         * doc/functions/printf.texi: Update.
66641         * doc/functions/snprintf.texi: Update.
66642         * doc/functions/sprintf.texi: Update.
66643         * doc/functions/vfprintf.texi: Update.
66644         * doc/functions/vprintf.texi: Update.
66645         * doc/functions/vsnprintf.texi: Update.
66646         * doc/functions/vsprintf.texi: Update.
66647
66648 2007-05-06  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66651         pass the ' flag character to sprintf or snprintf.
66652         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66655         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66656         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66664         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66665         flag.
66666         * tests/test-sprintf-posix.h (test_function): Likewise.
66667         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66668         * tests/test-vasprintf-posix.c (test_function): Likewise.
66669         * doc/functions/fprintf.texi: Update.
66670         * doc/functions/printf.texi: Update.
66671         * doc/functions/snprintf.texi: Update.
66672         * doc/functions/sprintf.texi: Update.
66673         * doc/functions/vfprintf.texi: Update.
66674         * doc/functions/vprintf.texi: Update.
66675         * doc/functions/vsnprintf.texi: Update.
66676         * doc/functions/vsprintf.texi: Update.
66677
66678 2007-05-01  Bruno Haible  <bruno@clisp.org>
66679
66680         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66681
66682 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66685         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66686
66687 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66690         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66692
66693 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66694
66695         * lib/argp-help.c (struct hol_entry): New member `ord'.
66696         (HOL_ENTRY_PTRCMP): Use ord for comparison
66697         (hol_sort): Initialize ord.
66698
66699 2007-05-01  Bruno Haible  <bruno@clisp.org>
66700
66701         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66702         Reported by Eric Blake.
66703         * doc/gnulib.texi (Function Substitutes): Update.
66704
66705 2007-05-01  Bruno Haible  <bruno@clisp.org>
66706
66707         * doc/functions.texi: Remove file, now redundant through
66708         doc/functions/*.texi.
66709
66710 2007-05-01  Bruno Haible  <bruno@clisp.org>
66711
66712         * modules/argp (Depends-on): Add sleep.
66713
66714 2007-05-01  Bruno Haible  <bruno@clisp.org>
66715
66716         * modules/sleep-tests: New file.
66717         * tests/test-sleep.c: New file.
66718
66719         * modules/sleep: New file.
66720         * lib/sleep.c: New file.
66721         * m4/sleep.m4: New file.
66722         * lib/unistd_.h (sleep): New declaration.
66723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66724         HAVE_SLEEP.
66725         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66726         * doc/functions/sleep.texi: Document the sleep module.
66727
66728 2007-05-01  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/sigprocmask.h: Remove file.
66731         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66732         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66733         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66734         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66735         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66736         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66737         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66738         HAVE_SIGSET_T as a shell variable.
66739         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66740         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66741         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66742         (Depends-on): Add signal. Remove verify.
66743         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66744         (Include): Mention <signal.h> instead of sigprocmask.h.
66745         * NEWS: Mention the change.
66746         * lib/fatal-signal.c: Don't include sigprocmask.h.
66747
66748 2007-05-01  Bruno Haible  <bruno@clisp.org>
66749
66750         * modules/signal: New file.
66751         * lib/signal_.h: New file.
66752         * m4/signal_h.m4: New file.
66753
66754 2007-05-01  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66757         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66758         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66759         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66760
66761 2007-05-01  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66764         configure time.
66765         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66766         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66767         * modules/sys_stat (Makefile.am): Substitute their values into
66768         sys/stat.h.
66769
66770 2007-05-01  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66773         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66774         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66775
66776 2007-05-01  Bruno Haible  <bruno@clisp.org>
66777
66778         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66779         'assert' module here.
66780
66781 2007-05-01  Bruno Haible  <bruno@clisp.org>
66782
66783         * doc/functions/*.texi: New files.
66784         * doc/functions/google-ranking.txt: New file.
66785         * doc/gnulib.texi (Function Substitutes): New chapter.
66786         (ctime, inet_ntoa): Remove sections.
66787         * doc/ctime.texi: Remove file.
66788         * doc/inet_ntoa.texi: Remove file.
66789         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66790         dependencies.
66791         (%.info): New rule, specifying a --reference-limit.
66792
66793 2007-05-01  Bruno Haible  <bruno@clisp.org>
66794
66795         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66796
66797 2007-05-01  Bruno Haible  <bruno@clisp.org>
66798
66799         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66800         the portability of 'mkdir' to mingw systems.
66801
66802 2007-05-01  Bruno Haible  <bruno@clisp.org>
66803
66804         * doc/headers/google-ranking.txt: New file.
66805
66806 2007-04-30  Eric Blake  <ebb9@byu.net>
66807
66808         Prefer fseeko to fseek.
66809         * modules/getpass (Depends-on): Add fseeko.
66810         * lib/getpass.c (getpass): Use fseeko, not fseek.
66811
66812 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66813
66814         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66815         assumes the sorting is stable, while most qsort implementations
66816         are not.  Use argument addresses to ensure they never compare as
66817         equal.
66818
66819         * tests/test-argp-2.sh (usage-indent test): Fix output
66820         (func_compare): Restore diff options
66821         * tests/test-argp.c: Restore #include "progname.h"
66822
66823 2007-04-29  Bruno Haible  <bruno@clisp.org>
66824
66825         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66827         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66829         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66830         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66831         (TESTS, check_PROGRAMS): Add test-snprintf.
66832         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66833         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66834         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66835         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66836         assertions that fail on HP-UX, OSF/1, or IRIX.
66837         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66838
66839 2007-04-29  Bruno Haible  <bruno@clisp.org>
66840
66841         * MODULES.html.sh (posix_functions): Remove 'contents'.
66842
66843 2007-04-29  Karl Berry  <karl@gnu.org>
66844
66845         * config/srclist.txt (gendocs_template_min): new entry.
66846
66847 2007-04-29  Bruno Haible  <bruno@clisp.org>
66848
66849         Work around fpurge bug on BSD systems.
66850         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66851         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66852         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66853         fpurge to rpl_fpurge if the system already has this function.
66854         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66855         the case where the system already has this function. Correct invariants
66856         on BSD systems.
66857         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66858         BSD systems.
66859
66860 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66861
66862         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66863         proposed by Sven Verdoolaege.
66864
66865         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66866         options.
66867         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66868         (usage and help tests): Update
66869
66870 2007-04-29  Bruno Haible  <bruno@clisp.org>
66871
66872         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66873         Print more information in case of failure. Disable a test on BeOS.
66874
66875 2007-04-29  Bruno Haible  <bruno@clisp.org>
66876
66877         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66878         This helps debugging on systems on which no gdb is available.
66879
66880 2007-04-29  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/freading.h: Improve comments.
66883         * lib/fwriting.h: Likewise.
66884         * tests/test-freading.c (main): Don't check freading immediately after
66885         repositioning. Needed for glibc.
66886
66887 2007-04-29  Bruno Haible  <bruno@clisp.org>
66888
66889         * lib/freading.c (freading): Trivial simplification.
66890
66891 2007-04-28  Bruno Haible  <bruno@clisp.org>
66892
66893         * tests/test-fwriting.c (main): Also test the interaction between
66894         fflush and fwriting.
66895         * modules/fwriting-tests (Depends-on): Add fflush.
66896
66897         * tests/test-freading.c (main): Also test the interaction between
66898         fflush and freading.
66899         * modules/freading-tests (Depends-on): Add fflush.
66900
66901 2007-04-28  Bruno Haible  <bruno@clisp.org>
66902
66903         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66904         fseeko and ftello.
66905         Suggested by Eric Blake.
66906
66907 2007-04-28  Jim Meyering  <jim@meyering.net>
66908
66909         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66910         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66911         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66912
66913 2007-04-27  Eric Blake  <ebb9@byu.net>
66914
66915         * doc/headers/assert.texi (assert.h): Document assert module use.
66916
66917 2007-04-27  Bruno Haible  <bruno@clisp.org>
66918
66919         * doc/headers/*.texi: New files.
66920         * doc/gnulib.texi (Header File Substitutes): New chapter.
66921         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66922         dependencies.
66923         (standards.info ,standards.html, standards.dvi): Update dependencies.
66924         (mostlyclean, clean): New targets.
66925
66926 2007-04-27  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66929         * modules/sysexits (Files, Makefile.am): Update.
66930
66931         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66932         * modules/sys_socket (Files, Makefile.am): Update.
66933
66934         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66935         * modules/sys_stat (Files, Makefile.am): Update.
66936
66937 2007-04-27  Eric Blake  <ebb9@byu.net>
66938
66939         * lib/freading.h: Improve comments.
66940         * lib/fwriting.h: Likewise.
66941         * lib/fflush.c: Likewise.
66942
66943         Fix closein for mingw.
66944         * modules/closein-tests: Add tests for closein.
66945         * tests/test-closein.c: New file.
66946         * tests/test-closein.sh: Likewise.
66947         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66948         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66949
66950 2007-04-27  Bruno Haible  <bruno@clisp.org>
66951
66952         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66953         version is < 6.
66954         * lib/math_.h [__DECC]: Likewise.
66955         * lib/stdio_.h [__DECC]: Likewise.
66956         * lib/stdlib_.h [__DECC]: Likewise.
66957         * lib/string_.h [__DECC]: Likewise.
66958         * lib/time_.h [__DECC]: Likewise.
66959         * lib/wchar_.h [__DECC]: Likewise.
66960         * lib/wctype_.h [__DECC]: Likewise.
66961
66962 2007-04-27  Bruno Haible  <bruno@clisp.org>
66963
66964         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66965
66966 2007-04-27  Bruno Haible  <bruno@clisp.org>
66967
66968         * lib/fflush.c: Add comments.
66969         * modules/fpurge-tests (Depends-on): Add fflush.
66970         * modules/freadable-tests (Depends-on): Likewise.
66971         * modules/fwritable-tests (Depends-on): Likewise.
66972
66973 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66974
66975         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66976         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66977         Report by Bruno Haible <bruno@clisp.org>.
66978
66979 2007-04-26  Eric Blake  <ebb9@byu.net>
66980
66981         Fix fflush on mingw.
66982         * modules/fflush (Depends-on): Add freading.
66983         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66984         but unread data.
66985
66986 2007-04-26  Eric Blake  <ebb9@byu.net>
66987         and Bruno Haible  <bruno@clisp.org>
66988
66989         Implement freading and fwriting.
66990         * lib/freading.c: New file.
66991         * lib/freading.h: Likewise.
66992         * m4/freading.m4: Likewise.
66993         * modules/freading: Likewise.
66994         * modules/freading-tests: Likewise.
66995         * tests/test-freading.c: Likewise.
66996         * lib/fwriting.c: New file.
66997         * lib/fwriting.h: Likewise.
66998         * m4/fwriting.m4: Likewise.
66999         * modules/fwriting: Likewise.
67000         * modules/fwriting-tests: Likewise.
67001         * tests/test-fwriting.c: Likewise.
67002         * MODULES.html.sh (File stream based Input/Output): Mention them.
67003
67004 2007-04-26  Bruno Haible  <bruno@clisp.org>
67005
67006         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67007         'long' when we assume it.
67008         Suggested by Eric Blake.
67009
67010 2007-04-26  Bruno Haible  <bruno@clisp.org>
67011
67012         Ensure fseeko, ftello are declared on glibc systems.
67013         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67014         * modules/fseeko (configure.ac-early): Likewise.
67015         * modules/ftello (configure.ac-early): Likewise.
67016         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67017         AC_FUNC_FSEEKO for this.
67018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67019         (gl_CHECK_FSEEKO): Remove macro.
67020
67021 2007-04-26  Bruno Haible  <bruno@clisp.org>
67022
67023         * tests/test-fflush.c (main): Also check the ftell result after
67024         fflush and fseek/fseeko.
67025         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67026         file descriptor position cache in the stream.
67027         * lib/fseeko.c (rpl_fseeko): Likewise.
67028
67029 2007-04-26  Bruno Haible  <bruno@clisp.org>
67030
67031         * modules/fflush-tests (Depends-on): Add fseeko.
67032
67033 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67034             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67035
67036         * lib/argz_.h: ensure error_t definition is obtained in same
67037         mechanism system argz.h would have.
67038         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67039         argz facilities are known bad.  Err on the side of caution if
67040         cross-compiling.
67041
67042 2007-04-25  Eric Blake  <ebb9@byu.net>
67043
67044         * lib/fpurge.c (includes): Use stdlib.h for free.
67045         * tests/test-fflush.c (main): Also test fflush-fseeko.
67046
67047 2007-04-25  Bruno Haible  <bruno@clisp.org>
67048
67049         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67050         * lib/fseeko.c: New file.
67051         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67052         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67053         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67054         gl_FUNC_FSEEKO.
67055         (gl_FUNC_FSEEKO): Invoke it.
67056         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67057         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67058         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67059
67060 2007-04-25  Bruno Haible  <bruno@clisp.org>
67061
67062         * modules/fflush (Depends-on): Add ftello.
67063
67064 2007-04-25  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/ftello-tests: New file.
67067         * tests/test-ftello.c: New file.
67068
67069         * modules/ftello: New file.
67070         * m4/ftello.m4: New file.
67071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67072         HAVE_FTELLO.
67073         * lib/stdio_.h (ftello): New declaration.
67074         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67075         HAVE_FTELLO.
67076
67077 2007-04-25  Bruno Haible  <bruno@clisp.org>
67078
67079         * modules/fseeko-tests: New file.
67080         * tests/test-fseeko.c: New file.
67081
67082         * modules/fseeko: New file.
67083         * m4/fseeko.m4: New file.
67084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67085         HAVE_FSEEKO.
67086         * lib/stdio_.h (fseeko): New declaration.
67087         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67088         HAVE_FSEEKO.
67089
67090 2007-04-25  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67093
67094 2007-04-25  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67097         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67098         * tests/test-unistd.c: Likewise.
67099         * tests/test-fcntl.c: Likewise.
67100
67101 2007-04-23  Eric Blake  <ebb9@byu.net>
67102
67103         * lib/fflush.c: Fix missing include.
67104         Reported by Bruno Haible.
67105
67106 2007-04-23  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67109         Reported by Eric Blake.
67110
67111 2007-04-23  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67114
67115 2007-04-23  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67118
67119 2007-04-23  Bruno Haible  <bruno@clisp.org>
67120
67121         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67122         Needed on HP-UX 11.
67123
67124 2007-04-16  Eric Blake  <ebb9@byu.net>
67125
67126         Make fflush rely on fpurge.
67127         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67128         open coding all variants.
67129         * modules/fflush (Depends-on): Add fpurge and unistd.
67130         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67131         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67132
67133         Fix --with-tests compilation on cygwin.
67134         * modules/argmatch-tests (Makefile.am): List gnulib library first
67135         in LDADD.
67136         * modules/argp-tests (Makefile.am): Likewise.
67137         * modules/array-list-tests (Makefile.am): Likewise.
67138         * modules/array-oset-tests (Makefile.am): Likewise.
67139         * modules/avltree-list-tests (Makefile.am): Likewise.
67140         * modules/avltree-oset-tests (Makefile.am): Likewise.
67141         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67142         * modules/carray-list-tests (Makefile.am): Likewise.
67143         * modules/dirname-tests (Makefile.am): Likewise.
67144         * modules/frexp-tests (Makefile.am): Likewise.
67145         * modules/isnanl-tests (Makefile.am): Likewise.
67146         * modules/linked-list-tests (Makefile.am): Likewise.
67147         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67148         * modules/lock-tests (Makefile.am): Likewise.
67149         * modules/rbtree-list-tests (Makefile.am): Likewise.
67150         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67151         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67152         * modules/tls-tests (Makefile.am): Likewise.
67153         * modules/tsearch-tests (Makefile.am): Likewise.
67154         * modules/xvasprintf-tests (Makefile.am): Likewise.
67155
67156         Fix fpurge for cygwin.
67157         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67158         value.
67159         * modules/fpurge-tests (Depends-on): Clean up trash.
67160
67161 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67162
67163         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67164
67165         * m4/autobuild.m4: Re-indent.
67166
67167 2007-04-13  Bruno Haible  <bruno@clisp.org>
67168
67169         * modules/fpurge-tests: New file.
67170         * tests/test-fpurge.c: New file.
67171
67172         * modules/fpurge: New file.
67173         * lib/fpurge.h: New file.
67174         * lib/fpurge.c: New file.
67175         * m4/fpurge.m4: New file.
67176
67177 2007-04-13  Bruno Haible  <bruno@clisp.org>
67178
67179         * modules/fbufmode-tests: New file.
67180         * tests/test-fbufmode.c: New file.
67181
67182         * modules/fbufmode: New file.
67183         * lib/fbufmode.h: New file.
67184         * lib/fbufmode.c: New file.
67185         * m4/fbufmode.m4: New file.
67186
67187 2007-04-13  Bruno Haible  <bruno@clisp.org>
67188
67189         * modules/fwritable-tests: New file.
67190         * tests/test-fwritable.c: New file.
67191
67192         * modules/fwritable: New file.
67193         * lib/fwritable.h: New file.
67194         * lib/fwritable.c: New file.
67195         * m4/fwritable.m4: New file.
67196
67197 2007-04-13  Bruno Haible  <bruno@clisp.org>
67198
67199         * modules/freadable-tests: New file.
67200         * tests/test-freadable.c: New file.
67201
67202         * modules/freadable: New file.
67203         * lib/freadable.h: New file.
67204         * lib/freadable.c: New file.
67205         * m4/freadable.m4: New file.
67206
67207 2007-04-13  Bruno Haible  <bruno@clisp.org>
67208
67209         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67210         MOSTLYCLEANFILES.
67211
67212 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67215         gzip bootstrap.conf to avoid dragging in i18n machinery.
67216         (gnulib_tool_option): Use it.
67217
67218 2007-04-13  Bruno Haible  <bruno@clisp.org>
67219
67220         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67221         %F directives.
67222         * tests/test-vasprintf-posix.c (test_function): Likewise.
67223         * tests/test-snprintf-posix.h (test_function): Likewise.
67224         * tests/test-sprintf-posix.h (test_function): Likewise.
67225         * tests/test-fprintf-posix.h (test_function): Likewise.
67226         * tests/test-printf-posix.h (test_function): Likewise.
67227         * tests/test-fprintf-posix.out: Likewise.
67228
67229 2007-04-13  Bruno Haible  <bruno@clisp.org>
67230
67231         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67232         * modules/tls-tests (configure.ac): Likewise.
67233         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67234
67235 2007-04-13  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/tls.c (glthread_tls_get): Fix return type.
67238         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67239
67240 2007-04-12  Eric Blake  <ebb9@byu.net>
67241
67242         * modules/gettime (Depends-on): Remove gettime.
67243         Reported by Dmitry V. Levin.
67244
67245 2007-04-12  Bruno Haible  <bruno@clisp.org>
67246
67247         * modules/fflush (Include): Mention <stdio.h>.
67248         * modules/strtoimax (Include): Mention <inttypes.h>.
67249         * modules/strtoumax (Include): Likewise.
67250
67251 2007-04-12  Eric Blake  <ebb9@byu.net>
67252
67253         * .cvsignore: New file.
67254         * .gitignore: Likewise.
67255
67256 2007-04-12  Bruno Haible  <bruno@clisp.org>
67257
67258         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67259         not before, since $(LDADD) often contains libgnu.a.
67260         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67261         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67262         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67263         Needed on Cygwin.
67264
67265 2007-04-12  Eric Blake  <ebb9@byu.net>
67266
67267         Work around glibc's failure to flush stdin on fclose.
67268         * lib/closein.c (close_stdin): Flush stdin before closing.
67269
67270         Work around glibc's failure to reset seekable stdin on exit.
67271         * modules/closein: New module.
67272         * lib/closein.c: New file.
67273         * lib/closein.h: Likewise.
67274         * m4/closein.m4: Likewise.
67275         * MODULES.html.sh (File stream based Input/Output): Document it.
67276
67277 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67278
67279         * gnulib-tool: Rename generated 'autobuild' script to
67280         'do-autobuild' in --create-megatestdir output.
67281
67282         * doc/gnulib.texi (Build robot for gnulib): Fix.
67283
67284 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67285
67286         * modules/sysexits (Depends-on): Add absolute-header.
67287
67288 2007-04-12  Eric Blake  <ebb9@byu.net>
67289
67290         No need to preserve errno on success.
67291         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67292         Reported by Bruno Haible.
67293
67294 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67295
67296         * MODULES.html.sh (Support for maintaining and releasing
67297         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67298
67299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67300
67301         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67302
67303 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67304
67305         * modules/autobuild: New module.
67306
67307         * m4/autobuild.m4: New file.
67308
67309 2007-04-11  Bruno Haible  <bruno@clisp.org>
67310
67311         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67312         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67324         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67339         Reported by Eric Blake.
67340
67341 2007-04-11  Bruno Haible  <bruno@clisp.org>
67342
67343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67344
67345 2007-04-10  Bruno Haible  <bruno@clisp.org>
67346
67347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67348         for NaN and Infinity. Needed on FreeBSD 6.1.
67349         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67350         regarding results for "%010a" of Infinity and NaN.
67351         * tests/test-vasprintf-posix.c (test_function): Likewise.
67352         * tests/test-snprintf-posix.h (test_function): Likewise.
67353         * tests/test-sprintf-posix.h (test_function): Likewise.
67354         * tests/test-fprintf-posix.h (test_function): Likewise.
67355         * tests/test-printf-posix.h (test_function): Likewise.
67356         * tests/test-fprintf-posix.out: Likewise.
67357
67358 2007-04-10  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/locale-tests: New file.
67361         * tests/test-locale.c: New file.
67362
67363         * modules/locale: New file.
67364         * lib/locale_.h: New file.
67365         * m4/locale_h.m4: New file.
67366
67367 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67368             Bruno Haible  <bruno@clisp.org>
67369
67370         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67371         be determined, test for availability of the copysignf, copysign,
67372         copysignl functions.
67373         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67374         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67375         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67376
67377 2007-04-09  Eric Blake  <ebb9@byu.net>
67378
67379         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67380         * modules/stdio (Makefile.am): Support fflush.
67381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67382         * modules/fflush: New file.
67383         * lib/fflush.c: Likewise.
67384         * m4/fflush.m4: Likewise.
67385         * modules/fflush-tests: New test.
67386         * tests/test-fflush.c: Likewise.
67387         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67388
67389 2007-04-06  Bruno Haible  <bruno@clisp.org>
67390
67391         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67392         (VASNPRINTF): Use signbit for faster determination whether to print a
67393         minus sign.
67394         * modules/vasnprintf (Files): Remove lib/float+.h.
67395         * modules/fprintf-posix (Depends-on): Add signbit.
67396         * modules/snprintf-posix (Depends-on): Likewise.
67397         * modules/sprintf-posix (Depends-on): Likewise.
67398         * modules/vasnprintf-posix (Depends-on): Likewise.
67399         * modules/vasprintf-posix (Depends-on): Likewise.
67400         * modules/vfprintf-posix (Depends-on): Likewise.
67401         * modules/vsnprintf-posix (Depends-on): Likewise.
67402         * modules/vsprintf-posix (Depends-on): Likewise.
67403
67404 2007-04-06  Bruno Haible  <bruno@clisp.org>
67405
67406         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67407         * tests/test-frexpl.c (main): Likewise.
67408         * tests/test-ldexpl.c (main): Likewise.
67409         * modules/frexp-tests (Depends-on): Add signbit.
67410         * modules/frexpl-tests (Depdends-on): Likewise.
67411         * modules/ldexpl-tests (Depdends-on): Likewise.
67412
67413 2007-04-06  Bruno Haible  <bruno@clisp.org>
67414
67415         * modules/signbit-tests: New file.
67416         * tests/test-signbit.c: New file.
67417
67418         * modules/signbit: New file.
67419         * lib/signbitf.c: New file.
67420         * lib/signbitd.c: New file.
67421         * lib/signbitl.c: New file.
67422         * m4/signbit.m4: New file.
67423         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67424         (signbit): New macro.
67425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67426         REPLACE_SIGNBIT.
67427         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67428         REPLACE_FREXPL into math.h.
67429
67430 2007-04-06  Bruno Haible  <bruno@clisp.org>
67431
67432         * modules/isnanf-nolibm-tests: New file.
67433         * tests/test-isnanf.c: New file.
67434
67435         * modules/isnanf-nolibm: New file.
67436         * lib/isnanf.h: New file.
67437         * lib/isnanf.c: New file.
67438         * lib/isnan.c: Consider the USE_FLOAT macro.
67439         * m4/isnanf.m4: New file.
67440
67441 2007-04-06  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67444         (Link): New section.
67445
67446         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67447
67448 2007-04-06  Bruno Haible  <bruno@clisp.org>
67449
67450         Assume the 'long double' type.
67451         * m4/longdouble.m4: Remove file.
67452         * config/srclist.txt: Don't mention longdouble.m4.
67453         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67454         * lib/float+.h: Likewise.
67455         * lib/frexp.c: Likewise.
67456         * lib/printf-args.h: Likewise.
67457         * lib/printf-args.c: Likewise.
67458         * lib/printf-frexp.c: Likewise.
67459         * lib/printf-parse.c: Likewise.
67460         * lib/vasnprintf.c: Likewise.
67461         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67462         * m4/intl.m4: Likewise.
67463         * m4/isnanl.m4: Likewise.
67464         * m4/printf.m4: Likewise.
67465         * m4/printf-frexpl.m4: Likewise.
67466         * m4/vasnprintf.m4: Likewise.
67467         * modules/allocsa (Files): Remove m4/longdouble.m4.
67468         * modules/gettext (Files): Likewise.
67469         * modules/relocatable-prog-wrapper (Files): Likewise.
67470         * modules/vasnprintf (Files): Likewise.
67471         * modules/isnanl (Files): Likewise.
67472         (Include): Simplify.
67473         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67474         (Include): Simplify.
67475         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67476         (Include): Simplify.
67477         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67479         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67481         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67483         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67485         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67487         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67489         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67490         * tests/test-isnanl.c: Likewise.
67491         * tests/test-snprintf-posix.h: Likewise.
67492         * tests/test-sprintf-posix.h: Likewise.
67493         * tests/test-vasnprintf-posix.c: Likewise.
67494         * tests/test-vasnprintf-posix2.c: Likewise.
67495         * tests/test-vasprintf-posix.c: Likewise.
67496
67497 2007-04-06  Bruno Haible  <bruno@clisp.org>
67498
67499         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67500         * lib/math_.h [__DECC]: Include the overridden include file through
67501         #include_next, outside the double-inclusion guard.
67502         * lib/stdio_.h [__DECC]: Likewise.
67503         * lib/stdlib_.h [__DECC]: Likewise.
67504         * lib/string_.h [__DECC]: Likewise.
67505         * lib/time_.h [__DECC]: Likewise.
67506         * lib/wchar_.h [__DECC]: Likewise.
67507         * lib/wctype_.h [__DECC]: Likewise.
67508         * lib/inttypes_.h [__DECC]: Likewise.
67509         Reported by Albert Chin <china@thewrittenword.com> in
67510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67511
67512 2007-04-04  Eric Blake  <ebb9@byu.net>
67513
67514         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67515         1.5.x.
67516
67517 2007-04-04  Bruno Haible  <bruno@clisp.org>
67518
67519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67520         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67521
67522 2007-04-04  Bruno Haible  <bruno@clisp.org>
67523
67524         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67525         results for "%010a" of Infinity and NaN.
67526         * tests/test-vasprintf-posix.c (test_function): Likewise.
67527         * tests/test-snprintf-posix.h (test_function): Likewise.
67528         * tests/test-sprintf-posix.h (test_function): Likewise.
67529         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67530         * tests/test-printf-posix.h (test_function): Likewise.
67531         * tests/test-fprintf-posix.out: Update.
67532         Needed for FreeBSD 6.1.
67533
67534 2007-04-04  Bruno Haible  <bruno@clisp.org>
67535
67536         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67537         directly used by the gnulib modules nor by gnulib-tool.
67538
67539 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * DEPENDENCIES: Give overall description of version dependency
67542         desirability.  Use more-typical names for apps.
67543         Add shell, coreutils, diffutils, grep, tar, gzip.
67544
67545 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67546
67547         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67548
67549 2007-04-04  Karl Berry  <karl@gnu.org>
67550
67551         * MODULES.html.sh (func_module): missing '.
67552
67553 2007-04-03  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/argmatch-tests (Makefile.am): New variable
67556         test_argmatch_LDADD.
67557         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67558         * modules/array-list-tests (Makefile.am): New variable
67559         test_array_list_LDADD.
67560         * modules/array-oset-tests (Makefile.am): New variable
67561         test_array_oset_LDADD.
67562         * modules/avltree-list-tests (Makefile.am): New variable
67563         test_avltree_list_LDADD.
67564         * modules/avltree-oset-tests (Makefile.am): New variable
67565         test_avltree_oset_LDADD.
67566         * modules/avltreehash-list-tests (Makefile.am): New variable
67567         test_avltreehash_list_LDADD.
67568         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67569         test_canonicalize_lgpl_LDADD.
67570         * modules/carray-list-tests (Makefile.am): New variable
67571         test_carray_list_LDADD.
67572         * modules/dirname-tests (Makefile.am): New variable
67573         test_dirname_LDADD.
67574         * modules/linked-list-tests (Makefile.am): New variable
67575         test_linked_list_LDADD.
67576         * modules/linkedhash-list-tests (Makefile.am): New variable
67577         test_linkedhash_list_LDADD.
67578         * modules/rbtree-list-tests (Makefile.am): New variable
67579         test_rbtree_list_LDADD.
67580         * modules/rbtree-oset-tests (Makefile.am): New variable
67581         test_rbtree_oset_LDADD.
67582         * modules/rbtreehash-list-tests (Makefile.am): New variable
67583         test_rbtreehash_list_LDADD.
67584         * modules/xvasprintf-tests (Makefile.am): New variable
67585         test_xvasprintf_LDADD.
67586         Reported by Eric Blake.
67587
67588 2007-04-03  Eric Blake  <ebb9@byu.net>
67589
67590         * DEPENDENCIES: Weaken m4 requirements.
67591
67592 2007-04-03  Bruno Haible  <bruno@clisp.org>
67593
67594         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67595         * modules/isnanl-tests (configure.ac): Likewise.
67596
67597 2007-04-03  Ben Pfaff  <blp@gnu.org>
67598
67599         * modules/iconv_open: Add $(srcdir)/ to source directory
67600         references in Makefile fragments that call gperf, to fix VPATH
67601         builds.
67602
67603 2007-04-03  Bruno Haible  <bruno@clisp.org>
67604
67605         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67606         * lib/ldexpl.c: Undo last change.
67607
67608 2007-04-03  Bruno Haible  <bruno@clisp.org>
67609
67610         * modules/printf-frexpl (Depends-on): Undo last change.
67611         (Files): Add m4/ldexpl.m4.
67612
67613 2007-04-03  Bruno Haible  <bruno@clisp.org>
67614
67615         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67616         * modules/isnanl (Link): New section.
67617
67618         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67619         * modules/frexp (Link): New section.
67620
67621         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67622         * modules/frexpl (Link): New section.
67623
67624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67625         * modules/ldexpl (Link): New section.
67626
67627 2007-04-03  Bruno Haible  <bruno@clisp.org>
67628
67629         * modules/TEMPLATE-EXTENDED: New file.
67630         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67631
67632 2007-04-03  Bruno Haible  <bruno@clisp.org>
67633
67634         * DEPENDENCIES: New file.
67635         Suggested by Simon Josefsson.
67636
67637 2007-04-03  Bruno Haible  <bruno@clisp.org>
67638
67639         * doc/gnulib.texi: Escape @.
67640
67641 2007-04-03  James Youngman  <jay@gnu.org>
67642         and Paul Eggert  <eggert@cs.ucla.edu>
67643
67644         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67645         birthtime on all systems that have birthtime, not just those which
67646         use st_birthtimensec rather than st_birthtim.  Putting zero in
67647         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67648         that the birth time is not available for files on an NFS mount.
67649
67650 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67651
67652         * modules/memxor: Move back from crypto/, suggested by Bruno.
67653         * modules/crypto/hmac-sha1: Fix memxor dependency.
67654
67655         * modules/crypto/gc: Moved from ../.
67656
67657 2007-04-02  Eric Blake  <ebb9@byu.net>
67658
67659         * lib/ldexpl.c (includes): Avoid libm.
67660
67661         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67662
67663 2007-04-02  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67666         on IRIX.
67667
67668 2007-04-02  Bruno Haible  <bruno@clisp.org>
67669
67670         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67671         x86 or x86_64 platforms running MacOS X.
67672         Reported by Ryan Schmidt <@ryandesign.com>.
67673
67674 2007-04-02  Bruno Haible  <bruno@clisp.org>
67675
67676         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67677         i386.
67678
67679 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67680
67681         * modules/crypto/arcfour: Moved from ../.
67682         * modules/crypto/arcfour-tests: Moved from ../.
67683         * modules/crypto/arctwo: Moved from ../.
67684         * modules/crypto/arctwo-tests: Moved from ../.
67685         * modules/crypto/des: Moved from ../.
67686         * modules/crypto/des-tests: Moved from ../.
67687         * modules/crypto/gc-arcfour: Moved from ../.
67688         * modules/crypto/gc-arcfour-tests: Moved from ../.
67689         * modules/crypto/gc-arctwo: Moved from ../.
67690         * modules/crypto/gc-arctwo-tests: Moved from ../.
67691         * modules/crypto/gc-des: Moved from ../.
67692         * modules/crypto/gc-des-tests: Moved from ../.
67693         * modules/crypto/gc-hmac-md5: Moved from ../.
67694         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67695         * modules/crypto/gc-hmac-sha1: Moved from ../.
67696         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67697         * modules/crypto/gc-md2: Moved from ../.
67698         * modules/crypto/gc-md2-tests: Moved from ../.
67699         * modules/crypto/gc-md4: Moved from ../.
67700         * modules/crypto/gc-md4-tests: Moved from ../.
67701         * modules/crypto/gc-md5: Moved from ../.
67702         * modules/crypto/gc-md5-tests: Moved from ../.
67703         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67704         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67705         * modules/crypto/gc-random: Moved from ../.
67706         * modules/crypto/gc-rijndael: Moved from ../.
67707         * modules/crypto/gc-rijndael-tests: Moved from ../.
67708         * modules/crypto/gc-sha1: Moved from ../.
67709         * modules/crypto/gc-sha1-tests: Moved from ../.
67710         * modules/crypto/gc-tests: Moved from ../.
67711         * modules/crypto/hmac-md5: Moved from ../.
67712         * modules/crypto/hmac-md5-tests: Moved from ../.
67713         * modules/crypto/hmac-sha1: Moved from ../.
67714         * modules/crypto/hmac-sha1-tests: Moved from ../.
67715         * modules/crypto/md2: Moved from ../.
67716         * modules/crypto/md2-tests: Moved from ../.
67717         * modules/crypto/md4: Moved from ../.
67718         * modules/crypto/md4-tests: Moved from ../.
67719         * modules/crypto/md5: Moved from ../.
67720         * modules/crypto/md5-tests: Moved from ../.
67721         * modules/crypto/memxor: Moved from ../.
67722         * modules/crypto/rijndael: Moved from ../.
67723         * modules/crypto/rijndael-tests: Moved from ../.
67724         * modules/crypto/sha1: Moved from ../.
67725
67726 2007-03-30  James Youngman  <jay@gnu.org>
67727
67728         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67729         rename() to change the ctime of a file (because ctime is unaffected
67730         by rename on jfs2 on AIX 5.1).
67731         (main): Start by doing cleanup, in case a previous run failed leaving
67732         test files behind.
67733
67734 2007-03-31  Bruno Haible  <bruno@clisp.org>
67735
67736         Support old proprietary implementations of iconv.
67737         * modules/iconv_open: New file.
67738         * lib/iconv_.h: New file.
67739         * m4/iconv_h.m4: New file.
67740         * lib/iconv_open.c: New file.
67741         * lib/iconv_open-aix.gperf: New file.
67742         * lib/iconv_open-hpux.gperf: New file.
67743         * lib/iconv_open-irix.gperf: New file.
67744         * lib/iconv_open-osf.gperf: New file.
67745         * m4/iconv_open.m4: New file.
67746         * modules/linebreak (Depends-on): Add iconv_open.
67747         * modules/striconv (Depends-on): Likewise.
67748         * modules/striconveh (Depends-on): Likewise.
67749         * modules/unicodeio (Depends-on): Likewise.
67750         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67751         (iconv_t)(-1).
67752         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67753         conversion if cd is (iconv_t)(-1).
67754         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67755         is not possible.
67756
67757 2007-03-31  Bruno Haible  <bruno@clisp.org>
67758
67759         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67760         work on Solaris either. Protect also second use of "autodetect_jp".
67761
67762 2007-03-31  Bruno Haible  <bruno@clisp.org>
67763
67764         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67765         the function is not present.
67766
67767 2007-03-31  Bruno Haible  <bruno@clisp.org>
67768
67769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67770         the function is not present.
67771
67772 2007-03-31  Bruno Haible  <bruno@clisp.org>
67773
67774         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67775         a bug in HP-UX iconv_open().
67776
67777 2007-03-31  Bruno Haible  <bruno@clisp.org>
67778
67779         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67780         (Mathematics <math.h>): New section, add fpieee.
67781         (Input/output <stdio.h>): Add fseterr.
67782         (Mathematics <math.h>): New section, add printf-frexp.
67783         (Container data structures): Add sublist.
67784         (Core language properties): Add fpucw, inline.
67785         (Functions for greatest-width integer types <inttypes.h>): Add
67786         imaxabs, imaxdiv, inttypes.
67787         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67788         isnanl-nolibm, ldexp.
67789         (Mathematics <math.h>): New section, add printf-frexpl.
67790         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67791         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67792         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67793         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67794         (Unicode string functions): Add unistr/u*-mbtoucr.
67795         (Java): Add javacomp-script, javaexec-script.
67796         (C#): Add csharpcomp-script, csharpexec-script.
67797         (Support for building libraries and executables): Add havelib,
67798         relocatable-*.
67799         (Support for maintaining and releasing projects): Renamed from
67800         'Support for maintaining and release projects'. Add announce-gen.
67801
67802 2007-03-31  Bruno Haible  <bruno@clisp.org>
67803
67804         * README: Talk primarily about git.
67805         (git and CVS): Renamed from CVS.
67806         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67807         gnulib is available through git.
67808         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67809
67810 2007-03-30  Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67813         * lib/poll_.h: Likewise.
67814         * lib/stat_.h: Likewise.
67815         * lib/sys_time_.h: Likewise.
67816         * lib/sysexit_.h: Likewise.
67817         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67818         * lib/stdbool_.h: Likewise.
67819         * lib/byteswap_.h: Add double-inclusion guard.
67820
67821 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67822
67823         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67824
67825 2007-03-30  Karl Berry  <karl@gnu.org>
67826
67827         * config/srclist-update: double space after USA in the license
67828         substitution, since that's how it's usually (?) written.
67829
67830 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67833         reported by Bruno Haible.
67834
67835 2007-03-29  Bruno Haible  <bruno@clisp.org>
67836
67837         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67838         a bug in AIX iconv().
67839
67840 2007-03-29  Bruno Haible  <bruno@clisp.org>
67841
67842         * modules/ldexpl-tests: New file.
67843         * tests/test-ldexpl.c: New file.
67844
67845 2007-03-29  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/ldexpl.c: Include fpucw.h.
67848         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67849         multiplication.
67850         * modules/ldexpl (Depends-on): Add fpucw.
67851
67852 2007-03-29  Bruno Haible  <bruno@clisp.org>
67853
67854         * modules/ldexpl: New file.
67855         * m4/ldexpl.m4: New file.
67856         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67857         set.
67858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67859         REPLACE_LDEXPL.
67860         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67861         REPLACE_LDEXPL.
67862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67863         gl_FUNC_LDEXPL_WORKS.
67864         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67865         * modules/mathl (Files): Remove lib/ldexpl.c.
67866         (Depends-on): Add ldexpl.
67867
67868 2007-03-29  Bruno Haible  <bruno@clisp.org>
67869
67870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67871
67872 2007-03-29  Bruno Haible  <bruno@clisp.org>
67873
67874         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67875         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67876         and possibly also HP-UX.
67877         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67878         work on AIX, IRIX, HP-UX, OSF/1.
67879         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67880         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67881         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67882         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67883         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67884         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67885
67886 2007-03-29  Bruno Haible  <bruno@clisp.org>
67887
67888         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67889
67890 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67893         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67894
67895 2007-03-29  Eric Blake  <ebb9@byu.net>
67896
67897         * lib/acl-internal.h: Remove redundant include.
67898         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67899         Cygwin when a file is locked.
67900
67901 2007-03-29  Bruno Haible  <bruno@clisp.org>
67902
67903         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67904         file.
67905         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67906
67907 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67910         try to remove a parent directory if the child couldn't be removed
67911         (except for the first rmdir, which could fail because the child
67912         doesn't exist).  Problem reported by Jeff Blaine in
67913         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67914
67915 2007-03-28  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/striconveh.c (utf8conv_carefully): New function.
67918         (mem_cd_iconveh_internal): Invoke it.
67919
67920 2007-03-28  Bruno Haible  <bruno@clisp.org>
67921
67922         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67923         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67924         input.
67925         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67926         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67927         unistr/u8-uctomb.
67928
67929 2007-03-28  Bruno Haible  <bruno@clisp.org>
67930
67931         * modules/unistr/u8-mbtoucr: New file.
67932         * lib/unistr/u8-mbtoucr.c: New file.
67933         * modules/unistr/u16-mbtoucr: New file.
67934         * lib/unistr/u16-mbtoucr.c: New file.
67935         * modules/unistr/u16-mbtoucr: New file.
67936         * lib/unistr/u16-mbtoucr.c: New file.
67937         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67938
67939 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67940             Bruno Haible  <bruno@clisp.org>
67941
67942         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67943         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67944         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67945
67946         * m4/stdio_h.m4: Add stubs for vasprintf too.
67947
67948         * modules/stdio: Support vasprintf in sed command.
67949
67950         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67951         vasprintf.h.  Add stdio module indicator.
67952
67953         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67954         vasprintf.h.
67955
67956         * lib/vasprintf.h: File removed.
67957
67958         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67959         * lib/vasprintf.c: Ditto.
67960         * lib/xvasprintf.c: Ditto.
67961         * tests/test-vasprintf-posix.c: Ditto.
67962         * tests/test-vasprintf.c: Ditto.
67963
67964 2007-03-27  Bruno Haible  <bruno@clisp.org>
67965
67966         Make vasnprintf multithread-safe.
67967         * lib/vasnprintf.c (decimal_point_char): New function.
67968         (VASNPRINTF): Use it.
67969         Suggested by Simon Josefsson.
67970
67971 2007-03-27  Eric Blake  <ebb9@byu.net>
67972
67973         Support sub-second birthtime on cygwin.
67974         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67975         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67976         (get_stat_birthtime): Also work with st_birthtim.
67977
67978 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67979
67980         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67981         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67982         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67983         (get_stat_birthtime_ns): Simplify compile-time tests.
67984         (get_stat_birthtime): Change the API to look like
67985         get_stat_mtime etc., except return a negative tv_nsec on error.
67986         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67987         Don't check for "spare" fields.
67988         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67989         or for struct stat.st_birthtime, as these tests aren't used.
67990         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67991
67992 2007-03-27  Bruno Haible  <bruno@clisp.org>
67993
67994         * lib/stat-time.h: Include <sys/stat.h>.
67995
67996 2007-03-27  James Youngman  <jay@gnu.org>
67997
67998         * lib/stat-time.h (get_stat_birthtime): New function for
67999           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68000         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68001           and its variants.
68002         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68003         * modules/stat-time-test: New file.
68004         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68005
68006 2007-03-26  Bruno Haible  <bruno@clisp.org>
68007
68008         Better support of signalling NaNs.
68009         * lib/atanl.c: Include isnanl.h.
68010         (atanl): Perform test for NaN at the beginning of the function and
68011         through a call to isnanl.
68012         * lib/cosl.c: Include isnanl.h.
68013         (cosl): Perform test for NaN at the beginning of the function and
68014         through a call to isnanl.
68015         * lib/ldexpl.c: Include isnanl.h.
68016         (ldexpl): Perform test for NaN through a call to isnanl.
68017         * lib/logl.c: Include isnanl.h.
68018         (logl): Perform test for NaN at the beginning of the function and
68019         through a call to isnanl.
68020         * lib/sinl.c: Include isnanl.h.
68021         (sinl): Perform test for NaN at the beginning of the function and
68022         through a call to isnanl.
68023         * lib/sqrtl.c: Include isnanl.h.
68024         (sqrtl): Perform test for NaN at the beginning of the function and
68025         through a call to isnanl.
68026         * lib/tanl.c: Include isnanl.h.
68027         (tanl): Perform test for NaN at the beginning of the function and
68028         through a call to isnanl.
68029         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68030         * modules/mathl (Depends-on): Add isnanl.
68031
68032 2007-03-26  Eric Blake  <ebb9@byu.net>
68033
68034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68035         regression in logic sense of previous patch.
68036
68037 2007-03-26  Bruno Haible  <bruno@clisp.org>
68038
68039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68040         unportable shell command "if ! ...".
68041         Reported by Ralf Wildenhues.
68042
68043 2007-03-25  Bruno Haible  <bruno@clisp.org>
68044
68045         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68046         <sysexits.h> file, and only add EX_CONFIG.
68047         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68048         absolute file name and whether it is sufficient. Substitute also
68049         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68050         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68051         ABSOLUTE_SYSEXITS_H into sysexits.h.
68052
68053 2007-03-25  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68056         hints is NULL.
68057
68058 2007-03-25  Bruno Haible  <bruno@clisp.org>
68059
68060         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68061         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68062
68063 2007-03-25  Bruno Haible  <bruno@clisp.org>
68064
68065         * lib/vasnprintf.c: Include langinfo.h.
68066         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68067         multithread-safe.
68068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68069         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68071         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68077         Reported by Simon Josefsson.
68078
68079 2007-03-25  Bruno Haible  <bruno@clisp.org>
68080
68081         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68082         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68083         * modules/vasnprintf (Depends-on): Add stdint.
68084
68085 2007-03-25  Bruno Haible  <bruno@clisp.org>
68086
68087         * modules/fpieee: New file.
68088         * m4/fpieee.m4: New file.
68089         * modules/isnan-nolibm (Depends-on): Add fpieee.
68090         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68091         * modules/isnanl (Depends-on): Add fpieee.
68092
68093 2007-03-25  Bruno Haible  <bruno@clisp.org>
68094
68095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68096
68097 2007-03-25  Bruno Haible  <bruno@clisp.org>
68098
68099         Avoid test failures on IRIX 6.5.
68100         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68101         (main): Use it.
68102         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68103         macros.
68104         (main): Use them.
68105
68106 2007-03-25  Bruno Haible  <bruno@clisp.org>
68107
68108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68109         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68110         exists but doesn't work.
68111         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68112         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68114         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68115         math.h.
68116
68117 2007-03-25  Bruno Haible  <bruno@clisp.org>
68118
68119         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68120         returns inf. Needed on IRIX 6.5.
68121
68122 2007-03-25  Bruno Haible  <bruno@clisp.org>
68123
68124         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68125         (main): Use isnanl instead of x != x idiom.
68126         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68127
68128         * tests/test-frexp.c: Include isnan.h.
68129         (main): Use isnan instead of x != x idiom.
68130         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68131
68132 2007-03-25  Bruno Haible  <bruno@clisp.org>
68133
68134         * tests/test-frexp.c (NaN): New function/macro.
68135         (main): Use it instead of 0.0 / 0.0.
68136         * tests/test-isnan.c (NaN): New function/macro.
68137         (main): Use it instead of 0.0 / 0.0.
68138         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68139         (test_function): Use it instead of 0.0 / 0.0.
68140         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68141         (test_function): Use it instead of 0.0 / 0.0.
68142         * tests/test-snprintf-posix.h (NaN): New function/macro.
68143         (test_function): Use it instead of 0.0 / 0.0.
68144         * tests/test-sprintf-posix.h (NaN): New function/macro.
68145         (test_function): Use it instead of 0.0 / 0.0.
68146         * tests/test-fprintf-posix.h (NaN): New function/macro.
68147         (test_function): Use it instead of 0.0 / 0.0.
68148         * tests/test-printf-posix.h (NaN): New function/macro.
68149         (test_function): Use it instead of 0.0 / 0.0.
68150
68151         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68152
68153 2007-03-25  Bruno Haible  <bruno@clisp.org>
68154
68155         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68156
68157 2007-03-25  Bruno Haible  <bruno@clisp.org>
68158
68159         * lib/regexec.c (merge_state_with_log): Make static.
68160
68161 2007-03-25  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/trigl.c (kernel_rem_pio2): Make static.
68164
68165 2007-03-25  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/sincosl.c (sincosl_table): Make static.
68168
68169 2007-03-25  Bruno Haible  <bruno@clisp.org>
68170
68171         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68172         if the compiler does not support C99.
68173
68174 2007-03-25  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/time (Makefile.am): Ensure all rule action lines start with a
68177         tab.
68178
68179 2007-03-24  Bruno Haible  <bruno@clisp.org>
68180
68181         * modules/tsearch-tests: New file.
68182         * tests/test-tsearch.sh: New file.
68183         * tests/test-tsearch.c: New file, mostly copied from glibc.
68184
68185         * modules/search-tests: New file.
68186         * tests/test-search.c: New file.
68187
68188         * modules/search: New file.
68189         * lib/search_.h: New file, incorporating lib/tsearch.h.
68190         * m4/search_h.m4: New file.
68191         * lib/tsearch.h: Remove file.
68192         * lib/tsearch.c: Include search.h instead of tsearch.h.
68193         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68194         HAVE_TSEARCH.
68195         * modules/tsearch (Files): Remove lib/tsearch.h.
68196         (Depends-on): Add search.
68197         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68198         (Include): Change tsearch.h into search.h.
68199
68200 2007-03-24  Bruno Haible  <bruno@clisp.org>
68201
68202         * modules/fpucw: New file.
68203         * lib/fpucw.h: New file.
68204         * lib/frexp.c: Include fpucw.h.
68205         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68206         (FUNC): Use them.
68207         * lib/printf-frexp.c: Include fpucw.h.
68208         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68209         (FUNC): Use them.
68210         * lib/vasnprintf.c: Include fpucw.h.
68211         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68212         'long double' calculations.
68213         * tests/test-frexpl.c: Include fpucw.h.
68214         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68215         * tests/test-printf-frexpl.c: Include fpucw.h.
68216         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68217         * modules/frexpl (Depends-on): Add fpucw.
68218         * modules/printf-frexpl (Depends-on): Likewise.
68219         * modules/fprintf-posix (Depends-on): Likewise.
68220         * modules/snprintf-posix (Depends-on): Likewise.
68221         * modules/sprintf-posix (Depends-on): Likewise.
68222         * modules/vasnprintf-posix (Depends-on): Likewise.
68223         * modules/vasprintf-posix (Depends-on): Likewise.
68224         * modules/vfprintf-posix (Depends-on): Likewise.
68225         * modules/vsnprintf-posix (Depends-on): Likewise.
68226         * modules/vsprintf-posix (Depends-on): Likewise.
68227         * modules/frexpl-tests (Depends-on): Likewise.
68228         * modules/printf-frexpl-tests (Depends-on): Likewise.
68229
68230 2007-03-24  Bruno Haible  <bruno@clisp.org>
68231
68232         * lib/float+.h: New file.
68233         * lib/isnan.c: Include float+.h.
68234         (SIZE): New macro.
68235         (FUNC): Compare only SIZE bytes of the value.
68236         * lib/vasnprintf.c: Include float+.h.
68237         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68238         SIZEOF_LDBL or SIZEOF_DBL bytes.
68239         * modules/isnan-nolibm (Files): Add lib/float+.h.
68240         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68241         * modules/isnanl (Files): Add lib/float+.h.
68242         * modules/vasnprintf (Files): Add lib/float+.h.
68243
68244 2007-03-24  Bruno Haible  <bruno@clisp.org>
68245
68246         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68247         include isnanl-nolibm.h.
68248
68249 2007-03-24  Bruno Haible  <bruno@clisp.org>
68250
68251         * tests/test-read-file.c (main): Don't produce spurious output for
68252         expected situations. Make the test fail if it encountered unexpected
68253         results.
68254
68255 2007-03-24  Bruno Haible  <bruno@clisp.org>
68256
68257         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68258         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68259
68260 2007-03-24  Bruno Haible  <bruno@clisp.org>
68261
68262         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68263
68264 2007-03-24  Bruno Haible  <bruno@clisp.org>
68265
68266         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68267         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68268
68269         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68270         * modules/utf8-ucs4: Turn into a symbolic link to module
68271         unistr/u8-mbtouc.
68272
68273         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68274         utf8-ucs4-unsafe.
68275         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68276         unistr/u8-mbtouc-unsafe.
68277
68278         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68279         * modules/utf16-ucs4: Turn into a symbolic link to module
68280         unistr/u16-mbtouc.
68281
68282         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68283         utf16-ucs4-unsafe.
68284         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68285         unistr/u16-mbtouc-unsafe.
68286
68287         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68288         * modules/ucs4-utf8: Turn into a symbolic link to module
68289         unistr/u8-ubtomb.
68290
68291         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68292         * modules/ucs4-utf16: Turn into a symbolic link to module
68293         unistr/u16-ubtomb.
68294
68295 2007-03-24  Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68298         Enable the function only if HAVE_INLINE.
68299         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68300         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68301         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68302         Enable the function only if HAVE_INLINE.
68303         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68304         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68305         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68306         Enable the function only if HAVE_INLINE.
68307         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68308         Enable the function only if HAVE_INLINE.
68309         * modules/utf8-ucs4: Update.
68310         * modules/utf8-ucs4-unsafe: Update.
68311         * modules/utf16-ucs4: Update.
68312         * modules/utf16-ucs4-unsafe: Update.
68313         * modules/ucs4-utf8: Update.
68314         * modules/ucs4-utf16: Update.
68315
68316 2007-03-24  Bruno Haible  <bruno@clisp.org>
68317
68318         * lib/utf8-ucs4.h: Remove file.
68319         * lib/utf8-ucs4-unsafe.h: Remove file.
68320         * lib/utf16-ucs4.h: Remove file.
68321         * lib/utf16-ucs4-unsafe.h: Remove file.
68322         * lib/ucs4-utf8.h: Remove file.
68323         * lib/ucs4-utf16.h: Remove file.
68324         * lib/unistr.h: Include their previous contents.
68325         * m4/utf-ucs4.m4: Remove file.
68326         * m4/ucs4-utf.m4: Remove file.
68327         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68328         (Depends-on): Add unistr/base.
68329         (configure.ac): Remove gl_UTF_UCS4.
68330         (Makefile.am): Update.
68331         (Include): Change to unistr.h.
68332         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68333         (Depends-on): Add unistr/base.
68334         (configure.ac): Remove gl_UTF_UCS4.
68335         (Makefile.am): Update.
68336         (Include): Change to unistr.h.
68337         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68338         (Depends-on): Add unistr/base.
68339         (configure.ac): Remove gl_UTF_UCS4.
68340         (Makefile.am): Update.
68341         (Include): Change to unistr.h.
68342         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68343         (Depends-on): Add unistr/base.
68344         (configure.ac): Remove gl_UTF_UCS4.
68345         (Makefile.am): Update.
68346         (Include): Change to unistr.h.
68347         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68348         (Depends-on): Add unistr/base.
68349         (configure.ac): Remove gl_UCS4_UTF.
68350         (Makefile.am): Update.
68351         (Include): Change to unistr.h.
68352         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68353         (Depends-on): Add unistr/base.
68354         (configure.ac): Remove gl_UCS4_UTF.
68355         (Makefile.am): Update.
68356         (Include): Change to unistr.h.
68357         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68358         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68359         utf8-ucs4-unsafe.h.
68360         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68361         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68362         utf16-ucs4-unsafe.h.
68363         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68364         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68365         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68366         * lib/unistr/u8-strchr.c: Likewise.
68367         * lib/unistr/u8-strrchr.c: Likewise.
68368         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68369         * lib/unistr/u16-strchr.c: Likewise.
68370         * lib/unistr/u16-strrchr.c: Likewise.
68371         * lib/striconveh.c: Update.
68372         * lib/linebreak.c: Update.
68373
68374 2007-03-24  Bruno Haible  <bruno@clisp.org>
68375
68376         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68377         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68378
68379 2007-03-22  Bruno Haible  <bruno@clisp.org>
68380
68381         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68382
68383 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68384
68385         * MODULES.html.sh (File system functions): New module write-any-file.
68386         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68387         * m4/write-any-file.m4: New files.
68388
68389 2007-03-23  Eric Blake  <ebb9@byu.net>
68390
68391         * gnulib-tool: Rearrange space-tab sequences, since some editors
68392         like to eat them.
68393
68394 2007-03-23  Eric Blake  <ebb9@byu.net>
68395
68396         * lib/version-etc.c (version_etc_va): Update license wording to
68397         be more concise.  Recommended by Richard Stallman.
68398
68399 2007-03-22  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/poll.c (MSG_PEEK): New fallback definition.
68402
68403 2007-03-22  Bruno Haible  <bruno@clisp.org>
68404
68405         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68406         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68407         (main): Update.
68408         Fixes a compilation error on BeOS.
68409
68410 2007-03-22  Bruno Haible  <bruno@clisp.org>
68411
68412         * modules/frexpl-tests: New file.
68413         * tests/test-frexpl.c: New file.
68414
68415         * modules/frexpl: New file.
68416         * m4/frexpl.m4: New file.
68417         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68418         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68420         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68421         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68422         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68423
68424 2007-03-22  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/frexpl.c: Share code with lib/frexp.c.
68427         * modules/mathl (Files): Add lib/frexp.c.
68428         (Depends-on): Add isnanl-nolibm.
68429
68430 2007-03-22  Bruno Haible  <bruno@clisp.org>
68431
68432         * modules/printf-frexp (Files): Add m4/frexp.m4.
68433         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68434         only if the found frexp function actually works.
68435
68436 2007-03-22  Bruno Haible  <bruno@clisp.org>
68437
68438         * lib/frexp.c: Remove older implementation that uses divisions.
68439
68440 2007-03-21  Bruno Haible  <bruno@clisp.org>
68441
68442         * modules/frexp-tests: New file.
68443         * tests/test-frexp.c: New file.
68444
68445         * modules/frexp: New file.
68446         * lib/frexp.c: New file.
68447         * m4/frexp.m4: New file.
68448         * lib/math_.h (frexp): New declaration.
68449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68450         REPLACE_FREXP.
68451         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68452
68453 2007-03-21  Bruno Haible  <bruno@clisp.org>
68454
68455         * modules/isnanl-tests: New file.
68456         * tests/test-isnanl.c: New file.
68457
68458         * modules/isnanl: New file.
68459         * lib/isnanl.h: New file.
68460         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68461         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68462         gl_FUNC_ISNANL_WORKS.
68463         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68464         New macros.
68465
68466 2007-03-21  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68469         lib/isnanl.h.
68470         (Include): Update.
68471         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68472         * lib/vasnprintf.c: Update.
68473         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68474         tests/test-isnanl.h, remove tests/test-isnanl.c.
68475         (Makefile.am): Update.
68476         * tests/test-isnanl-nolibm.c: New file.
68477         * tests/test-isnanl.h: New file.
68478         * tests/test-isnanl.c: Remove file.
68479
68480 2007-03-21  Jim Meyering  <jim@meyering.net>
68481
68482         When trying to open ".", treat ESTALE like EACCES.
68483         * lib/savewd.c (savewd_save): Resort to forking not just upon
68484         failure with EACCES, but also when errno is ESTALE.
68485
68486 2007-03-20  Bruno Haible  <bruno@clisp.org>
68487
68488         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68489         Needed on AIX 5.1. Reported by Matthew Woehlke.
68490
68491 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68492
68493         Suggestions by Bruno Haible:
68494         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68495         our own.
68496         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68497         * modules/acl (Depends-on): Add gettext.
68498
68499 2007-03-19  Bruno Haible  <bruno@clisp.org>
68500
68501         * modules/iconvme: Remove file.
68502         * lib/iconvme.h: Remove file.
68503         * lib/iconvme.c: Remove file.
68504         * m4/iconvme.m4: Remove file.
68505
68506 2007-03-19  Bruno Haible  <bruno@clisp.org>
68507
68508         * doc/relocatable-maint.texi: Break long shell script line.
68509         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68510
68511 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68514         handle file_has_acl.
68515         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68516         * lib/acl.c: Move header inclusions and related macro defns into
68517         lib/acl-internal.h.
68518         (S_ISLNK): Remove defn, since that's now done for us.
68519         (file_has_acl): Move to lib/file-has-acl.c.
68520         Call acl_trivial if available.  This is the crucial part of the fix.
68521         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68522         shared within the library.  Rewrite a bit, partly to make it compatible
68523         with the GNU coding style.
68524         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68525         Remove unnecessary double-quotes.
68526         Don't test for acl_to_text; the build will catch that.
68527         Replace acl_entries if it doesn't exist and it is needed.
68528         Check for -lsec and acl_trivial (as used on Solaris 10).
68529         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68530         lib/file-has-acl.c.
68531         (Depends-on): Add sys_stat, for S_ISLNK.
68532
68533 2007-03-19  Ben Pfaff  <blp@gnu.org>
68534
68535         * doc/gnulib.texi: Fix typos.
68536         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68537
68538 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68541         If size is zero here, buf must be zero.
68542
68543 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68544
68545         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68546         <bruno@clisp.org>.
68547
68548 2007-03-18  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68551         Suggested by Eric Blake.
68552
68553 2007-03-18  Ben Pfaff  <blp@gnu.org>
68554
68555         * doc/relocatable.texi: Recommend using as prefix a directory
68556         that does not exist and will never be created.  Based on
68557         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68558         and others.
68559
68560 2007-03-17  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/fchownat.c: Include lchown.h.
68563
68564 2007-03-17  Bruno Haible  <bruno@clisp.org>
68565
68566         Fix endless loop when the given allocated size was > INT_MAX.
68567         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68568         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68569         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68570         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68571         * lib/sprintf.c (sprintf): Likewise.
68572
68573 2007-03-17  Bruno Haible  <bruno@clisp.org>
68574
68575         * tests/test-argp-2.sh (func_compare): Output a context diff.
68576
68577 2007-03-17  Bruno Haible  <bruno@clisp.org>
68578
68579         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68580         locale's decimal-point character.
68581
68582 2007-03-17  Bruno Haible  <bruno@clisp.org>
68583
68584         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68585         before comparing it. Needed because on some platforms (e.g. x86) a
68586         'long double' occupies less bytes than sizeof (long double).
68587
68588 2007-03-17  Bruno Haible  <bruno@clisp.org>
68589
68590         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68591         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68592         * tests/test-getaddrinfo.c (simple): Likewise.
68593         * tests/test-read-file.c (main): Likewise.
68594
68595 2007-03-17  Bruno Haible  <bruno@clisp.org>
68596
68597         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68598
68599 2007-03-17  Bruno Haible  <bruno@clisp.org>
68600
68601         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68602         unused variable.
68603
68604 2007-03-17  Bruno Haible  <bruno@clisp.org>
68605
68606         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68607         * tests/test-c-strncasecmp.c: Likewise.
68608
68609 2007-03-17  Bruno Haible  <bruno@clisp.org>
68610
68611         * modules/stdlib (Depends-on): Add unistd.
68612         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68613         Needed for MacOS X 10.3.
68614
68615 2007-03-17  Bruno Haible  <bruno@clisp.org>
68616
68617         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68618
68619 2007-03-17  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68622
68623 2007-03-17  Bruno Haible  <bruno@clisp.org>
68624
68625         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68626         to reflect files copied from gnulib (with or without modifications).
68627         Suggested by Jim Meyering.
68628
68629 2007-03-17  Eric Blake  <ebb9@byu.net>
68630
68631         * NEWS: Document stdlib change from 2007-02-18.
68632
68633 2007-03-17  Jim Meyering  <jim@meyering.net>
68634
68635         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68636         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68637         someone uses a name containing shell meta-characters.
68638         Reported by Alfred M. Szmidt.
68639
68640         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68641
68642 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68643
68644         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68645         and copy gettext configuration files only if configure.ac contains
68646         a use of AM_GNU_GETTEXT_VERSION.
68647
68648 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68649
68650         * build-aux/bootstrap (gnulib_name): New variable.
68651         (gnulib_tool_options): Use it.
68652
68653 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68654
68655         * tests/test-des.c: Use new namespace.
68656
68657 2007-03-15  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68660         Reported by James Youngman <jay@gnu.org>.
68661
68662 2007-03-15  Bruno Haible  <bruno@clisp.org>
68663
68664         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68665         declared prototype. Needed with cc on OSF/1 5.1.
68666
68667 2007-03-15  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68670         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68671         (struct gl_list_implementation): Add dispose_fn argument to the
68672         'create_empty', 'create' methods.
68673         (struct gl_list_impl_base): Add field 'dispose_fn'.
68674         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68675         argument.
68676         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68677         dispose_fn argument.
68678         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68679         dispose_fn on the dropped values.
68680         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68681         dispose_fn argument.
68682         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68683         dropped values.
68684         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68685         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68686         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68687         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68688         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68689         argument.
68690         (gl_tree_list_free): Call dispose_fn on the dropped values.
68691         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68692         the dropped values.
68693         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68694         Add dispose_fn argument.
68695         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68696         Call dispose_fn on the dropped values.
68697         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68698         Add dispose_fn argument.
68699         (gl_sublist_create): Initialize the 'dispose_fn' field.
68700         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68701         * tests/test-array_list.c (main): Update.
68702         * tests/test-carray_list.c (main): Update.
68703         * tests/test-avltree_list.c (main): Update.
68704         * tests/test-rbtree_list.c (main): Update.
68705         * tests/test-avltreehash_list.c (main): Update.
68706         * tests/test-rbtreehash_list.c (main): Update.
68707         * tests/test-linked_list.c (main): Update.
68708         * tests/test-linkedhash_list.c (main): Update.
68709         * tests/test-array_oset.c (main): Update.
68710
68711 2007-03-15  Bruno Haible  <bruno@clisp.org>
68712
68713         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68714         (gl_oset_create_empty): Add dispose_fn argument.
68715         (struct gl_oset_implementation): Add dispose_fn argument to
68716         'create_empty' method.
68717         (struct gl_oset_impl_base): Add dispose_fn field.
68718         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68719         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68720         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68721         values.
68722         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68723         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68724         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68725         dropped value.
68726         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68727         dropped value.
68728         * tests/test-array_oset.c (main): Update.
68729         * tests/test-avltree_oset.c (main): Update.
68730         * tests/test-rbtree_oset.c (main): Update.
68731         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68732
68733 2007-03-13  Bruno Haible  <bruno@clisp.org>
68734
68735         * tests/test-stdbool.c (i): Update after last patch.
68736
68737 2007-03-12  Bruno Haible  <bruno@clisp.org>
68738
68739         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68740         the iswprint macro. Needed on Solaris 2.5.1.
68741
68742 2007-03-12  Bruno Haible  <bruno@clisp.org>
68743
68744         * tests/test-printf-frexp.c (main): Declare x as volatile.
68745
68746 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68747
68748         * doc/gnulib.texi (Build robot for gnulib): New section.
68749
68750 2007-03-12  Jim Meyering  <jim@meyering.net>
68751
68752         * build-aux/bootstrap: New file.
68753         * build-aux/bootstrap.conf: New file, from coreutils.
68754
68755 2007-03-11  Bruno Haible  <bruno@clisp.org>
68756
68757         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68758
68759 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68760
68761         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68762         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68763         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68764
68765 2007-03-11  Bruno Haible  <bruno@clisp.org>
68766
68767         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68768         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68769
68770 2007-03-11  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68773         formula. Needed for SunPRO C 5.0.
68774
68775 2007-03-11  Bruno Haible  <bruno@clisp.org>
68776
68777         * modules/long-options (Depends-on): Add getopt.
68778
68779 2007-03-11  Bruno Haible  <bruno@clisp.org>
68780
68781         * modules/modechange (Depends-on): Add stdbool.
68782
68783 2007-03-11  Bruno Haible  <bruno@clisp.org>
68784
68785         * modules/i-ring (Depends-on): Add stdbool.
68786
68787 2007-03-11  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/gc-des (Depends-on): Add stdbool.
68790
68791 2007-03-11  Bruno Haible  <bruno@clisp.org>
68792
68793         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68794
68795 2007-03-11  Bruno Haible  <bruno@clisp.org>
68796
68797         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68798
68799 2007-03-11  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68802
68803 2007-03-11  Bruno Haible  <bruno@clisp.org>
68804
68805         * lib/vasnprintf.c (sprintf): Undefine.
68806
68807 2007-03-11  Bruno Haible  <bruno@clisp.org>
68808
68809         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68810         initializers in SunPRO C and Compaq C compilers.
68811
68812 2007-03-11  Bruno Haible  <bruno@clisp.org>
68813
68814         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68815         decrementing code ANSI C compliant.
68816
68817 2007-03-11  Bruno Haible  <bruno@clisp.org>
68818
68819         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68820         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68821
68822 2007-03-11  Bruno Haible  <bruno@clisp.org>
68823
68824         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68825         <stdbool.h> substitute doesn't pass.
68826
68827 2007-03-11  Bruno Haible  <bruno@clisp.org>
68828
68829         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68830
68831 2007-03-11  Bruno Haible  <bruno@clisp.org>
68832
68833         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68834         script, for submission to autobuild.josefsson.org.
68835
68836 2007-03-10  Bruno Haible  <bruno@clisp.org>
68837
68838         * modules/canonicalize-lgpl-tests: New file.
68839         * tests/test-canonicalize-lgpl.sh: New file.
68840         * tests/test-canonicalize-lgpl.c: New file.
68841
68842         * modules/c-strcase-tests: New file.
68843         * tests/test-c-strcase.sh: New file.
68844         * tests/test-c-strcasecmp.c: New file.
68845         * tests/test-c-strncasecmp.c: New file.
68846
68847         * modules/atexit-tests: New file.
68848         * tests/test-atexit.sh: New file.
68849         * tests/test-atexit.c: New file.
68850
68851 2007-03-10  Bruno Haible  <bruno@clisp.org>
68852
68853         * tests/test-binary-io.sh: Use temporary filenames that are not so
68854         likely to clash with those of other tests (in a parallel make).
68855         * tests/test-binary-io.c: Likewise.
68856
68857 2007-03-10  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68860         fallback; use #error instead.
68861         Suggested by Simon Josefsson.
68862
68863 2007-03-10  Bruno Haible  <bruno@clisp.org>
68864
68865         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68866         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68867         first and the last.
68868
68869 2007-03-10  Bruno Haible  <bruno@clisp.org>
68870
68871         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68872
68873 2007-03-10  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68876         "make distcheck".
68877         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68878         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68879         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68880
68881 2007-03-10  Bruno Haible  <bruno@clisp.org>
68882
68883         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68884         variable.
68885         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68886         variable.
68887
68888 2007-03-09  Eric Blake  <ebb9@byu.net>
68889         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68890
68891         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68892         types are not being provided by gnulib.
68893         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68894         types are supported.
68895
68896 2007-03-10  Bruno Haible  <bruno@clisp.org>
68897
68898         * lib/stdio_.h (__attribute__): New macro.
68899         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68900         vsprintf): Specify __attribute__ __format__ for GCC.
68901         Suggested by Eric Blake.
68902
68903 2007-03-09  Bruno Haible  <bruno@clisp.org>
68904
68905         * modules/printf-posix-tests: New file.
68906         * tests/test-printf-posix.sh: New file.
68907         * tests/test-printf-posix.c: New file.
68908
68909         * modules/printf-posix: New file.
68910         * lib/printf.c: New file.
68911         * m4/printf-posix-rpl.m4: New file.
68912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68913         REPLACE_PRINTF.
68914         * lib/stdio_.h (printf): New declaration.
68915         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68916         ____strfmon____): New macros.
68917         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68918         REPLACE_PRINTF.
68919
68920 2007-03-09  Bruno Haible  <bruno@clisp.org>
68921
68922         * tests/test-vasnprintf-posix2.sh: New file.
68923         * tests/test-vasnprintf-posix2.c: New file.
68924         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68925         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68926         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68927
68928         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68929         a locale dependent decimal point, rather than always '.'.
68930
68931 2007-03-09  Eric Blake  <ebb9@byu.net>
68932
68933         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68934         spite of platforms like Tandem/NSK that define it to -1.
68935
68936 2007-03-08  Bruno Haible  <bruno@clisp.org>
68937
68938         * modules/vprintf-posix-tests: New file.
68939         * tests/test-vprintf-posix.sh: New file.
68940         * tests/test-vprintf-posix.c: New file.
68941         * tests/test-printf-posix.h: New file.
68942
68943         * modules/vprintf-posix: New file.
68944         * lib/vprintf.c: New file.
68945         * m4/vprintf-posix.m4: New file.
68946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68947         REPLACE_VPRINTF.
68948         * lib/stdio_.h (vprintf): New declaration.
68949         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68950         REPLACE_VPRINTF.
68951
68952 2007-03-08  Bruno Haible  <bruno@clisp.org>
68953
68954         * modules/fprintf-posix-tests: New file.
68955         * tests/test-fprintf-posix.sh: New file.
68956         * tests/test-fprintf-posix.c: New file.
68957
68958         * modules/fprintf-posix: New file.
68959         * lib/fprintf.c: New file.
68960         * m4/fprintf-posix.m4: New file.
68961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68962         REPLACE_FPRINTF.
68963         * lib/stdio_.h (fprintf): New declaration.
68964         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68965         REPLACE_FPRINTF.
68966
68967 2007-03-08  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/vfprintf-posix-tests: New file.
68970         * tests/test-vfprintf-posix.sh: New file.
68971         * tests/test-vfprintf-posix.c: New file.
68972         * tests/test-fprintf-posix.h: New file.
68973         * tests/test-fprintf-posix.out: New file.
68974
68975         * modules/vfprintf-posix: New file.
68976         * lib/vfprintf.c: New file.
68977         * m4/vfprintf-posix.m4: New file.
68978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68979         REPLACE_VFPRINTF.
68980         * lib/stdio_.h (vfprintf): New declaration.
68981         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68982         REPLACE_VFPRINTF.
68983
68984 2007-03-08  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68987
68988 2007-03-08  Bruno Haible  <bruno@clisp.org>
68989
68990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68991         instead of 'expr' invocations.
68992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68997         Suggested by Paul Eggert.
68998
68999 2007-03-08  Bruno Haible  <bruno@clisp.org>
69000
69001         * modules/fseterr-tests: New file.
69002         * tests/test-fseterr.c: New file.
69003
69004         * modules/fseterr: New file.
69005         * lib/fseterr.h: New file.
69006         * lib/fseterr.c: New file.
69007
69008 2007-03-08  Bruno Haible  <bruno@clisp.org>
69009
69010         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69011         * lib/getopt_.h: Likewise.
69012         * lib/mbswidth.h: Likewise.
69013         * lib/setenv.h: Likewise.
69014         * lib/vasnprintf.h: Likewise.
69015         * lib/vasprintf.h: Likewise.
69016         * lib/verror.h: Likewise.
69017         * lib/xsetenv.h: Likewise.
69018         * lib/xvasprintf.h: Likewise.
69019
69020 2007-03-08  Jim Meyering  <jim@meyering.net>
69021
69022         * users.txt: Add parted.
69023
69024         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69025
69026 2007-03-07  Bruno Haible  <bruno@clisp.org>
69027
69028         * m4/printf.m4: Make the shell script snippets copy&pastable.
69029
69030 2007-03-02  Bruno Haible  <bruno@clisp.org>
69031
69032         * lib/netinet_in_.h: New file.
69033         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69034         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69035         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69036         (Depends-on): Add absolute-header.
69037         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69038         into netinet/in.h.
69039
69040 2007-03-03  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/sys_select_.h: New file.
69043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69044         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69045         * modules/sys_select (Files): Add lib/sys_select_.h.
69046         (Depends-on): Add absolute-header.
69047         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69048         into sys/select.h.
69049
69050 2007-03-02  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69053         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69054         values.
69055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69056         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69057         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69058         * modules/sys_socket (Depends-on): Add absolute-header.
69059         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69060         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69061         (Include): Remove requirement of inclusion of <sys/types.h>.
69062
69063 2007-03-02  Bruno Haible  <bruno@clisp.org>
69064
69065         * lib/byteswap_.h (bswap_32): Fix formula.
69066
69067 2007-03-06  Bruno Haible  <bruno@clisp.org>
69068
69069         * modules/sprintf-posix-tests: New file.
69070         * tests/test-sprintf-posix.c: New file.
69071
69072         * modules/sprintf-posix: New file.
69073         * lib/sprintf.c: New file.
69074         * m4/sprintf-posix.m4: New file.
69075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69076         REPLACE_SPRINTF.
69077         * lib/stdio_.h (sprintf): New declaration.
69078         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69079         REPLACE_SPRINTF.
69080
69081 2007-03-06  Bruno Haible  <bruno@clisp.org>
69082
69083         * modules/vsprintf-posix-tests: New file.
69084         * tests/test-vsprintf-posix.c: New file.
69085         * tests/test-sprintf-posix.h: New file.
69086
69087         * modules/vsprintf-posix: New file.
69088         * lib/vsprintf.c: New file.
69089         * m4/vsprintf-posix.m4: New file.
69090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69091         REPLACE_VSPRINTF.
69092         * lib/stdio_.h (vsprintf): New declaration.
69093         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69094         REPLACE_VSPRINTF.
69095
69096 2007-03-06  Bruno Haible  <bruno@clisp.org>
69097
69098         * modules/vsnprintf (Depend-on): Remove minmax.
69099
69100 2007-03-06  Bruno Haible  <bruno@clisp.org>
69101
69102         * modules/snprintf-posix-tests: New file.
69103         * tests/test-snprintf-posix.c: New file.
69104
69105         * modules/snprintf-posix: New file.
69106         * m4/snprintf-posix.m4: New file.
69107         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69108         gl_FUNC_SNPRINTF.
69109         (gl_FUNC_SNPRINTF): Invoke it.
69110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69111         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69112         is set.
69113         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69114
69115 2007-03-06  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/vsnprintf-posix-tests: New file.
69118         * tests/test-vsnprintf-posix.c: New file.
69119         * tests/test-snprintf-posix.h: New file.
69120
69121         * modules/vsnprintf-posix: New file.
69122         * m4/vsnprintf-posix.m4: New file.
69123         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69124         gl_FUNC_VSNPRINTF.
69125         (gl_FUNC_VSNPRINTF): Invoke it.
69126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69127         * lib/stdio_.h (vsnprintf): Define as a replacement if
69128         REPLACE_VSNPRINTF is set.
69129         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69130
69131 2007-03-06  Bruno Haible  <bruno@clisp.org>
69132
69133         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69135
69136 2007-03-06  Bruno Haible  <bruno@clisp.org>
69137
69138         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69139         (asinl): Declare also if HAVE_DECL_ASINL is set.
69140         (atanl): Declare also if HAVE_DECL_ATANL is set.
69141         (ceill): Declare also if HAVE_DECL_CEILL is set.
69142         (cosl): Declare also if HAVE_DECL_COSL is set.
69143         (expl): Declare also if HAVE_DECL_EXPL is set.
69144         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69145         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69146         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69147         (logl): Declare also if HAVE_DECL_LOGL is set.
69148         (sinl): Declare also if HAVE_DECL_SINL is set.
69149         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69150         (tanl): Declare also if HAVE_DECL_TANL is set.
69151         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69153         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69154         declaration of frexpl, ldexpl.
69155         * modules/printf-frexpl (Depends-on): Add math.
69156         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69157
69158 2007-03-05  Bruno Haible  <bruno@clisp.org>
69159
69160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69161         frexpl and ldexpl are declared.
69162         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69163
69164 2007-03-05  Bruno Haible  <bruno@clisp.org>
69165
69166         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69167         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69168
69169 2007-03-05  Bruno Haible  <bruno@clisp.org>
69170
69171         * lib/stdio_.h: Include <stddef.h>.
69172
69173 2007-03-05  Bruno Haible  <bruno@clisp.org>
69174
69175         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69176
69177 2007-03-05  Bruno Haible  <bruno@clisp.org>
69178
69179         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69180         NetBSD 4, from Ralf Wildenhues.
69181
69182 2007-03-04  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/vasprintf.h: Update #if logic for the case when the functions
69185         exist but are overridden.
69186
69187 2007-03-04  Bruno Haible  <bruno@clisp.org>
69188
69189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69190         implementations: glibc-2.4 and MacOS X 10.3.
69191         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69192         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69193         * tests/test-vasprintf-posix.c (test_function): Likewise.
69194
69195 2007-03-04  Bruno Haible  <bruno@clisp.org>
69196
69197         * modules/vasprintf-posix-tests: New file.
69198         * tests/test-vasprintf-posix.c: New file.
69199
69200         * modules/vasprintf-posix: New file.
69201         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69202         defined.
69203         * m4/vasprintf-posix.m4: New file.
69204         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69205         gl_FUNC_VASPRINTF.
69206         (gl_FUNC_VASPRINTF): Invoke it.
69207         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69208         here.
69209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69210
69211 2007-03-04  Bruno Haible  <bruno@clisp.org>
69212
69213         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69214         REPLACE_GETTIMEOFDAY.
69215         * modules/sys_time (Makefile.am): Likewise.
69216         * m4/sys_time_h.m4: Likewise.
69217         * m4/gettimeofday.m4: Likewise.
69218
69219 2007-03-04  Bruno Haible  <bruno@clisp.org>
69220
69221         * modules/vasnprintf-posix-tests: New file.
69222         * tests/test-vasnprintf-posix.c: New file.
69223
69224         * modules/vasnprintf-posix: New file.
69225         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69226         printf-frexpl.h.
69227         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69228         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69229         REPLACE_VASNPRINTF is defined.
69230         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69231         gl_FUNC_VASNPRINTF.
69232         (gl_FUNC_VASNPRINTF): Invoke it.
69233         * m4/vasnprintf-posix.m4: New file.
69234         * m4/printf.m4: New file.
69235
69236 2007-03-04  Bruno Haible  <bruno@clisp.org>
69237
69238         Compile progreloc.c only if --enable-relocatable is specified.
69239         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69240         if --enable-relocatable was specified.
69241         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69242         lib_SOURCES.
69243
69244 2007-03-04  Jim Meyering  <jim@meyering.net>
69245
69246         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69247         Use it consistently, rather than enumerating errno constants.
69248
69249 2007-03-04  Bruno Haible  <bruno@clisp.org>
69250
69251         * modules/xvasprintf-tests: New file.
69252         * tests/test-xvasprintf.c: New file.
69253
69254         * modules/vasprintf-tests: New file.
69255         * tests/test-vasprintf.c: New file.
69256
69257         * modules/vasnprintf-tests: New file.
69258         * tests/test-vasnprintf.c: New file.
69259
69260         * modules/vsnprintf-tests: New file.
69261         * tests/test-vsnprintf.c: New file.
69262
69263         * modules/snprintf-tests: New file.
69264         * tests/test-snprintf.c: New file.
69265
69266 2007-03-04  Bruno Haible  <bruno@clisp.org>
69267
69268         Compile relocatable.c only if --enable-relocatable is specified.
69269         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69270         gl_RELOCATABLE_LIBRARY.
69271         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69272         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69273         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69274         gl_RELOCATABLE_LIBRARY.
69275         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69276         (Makefile.am): Remove lib_SOURCES.
69277         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69278         gl_RELOCATABLE_LIBRARY.
69279         (Makefile.am): Remove lib_SOURCES.
69280         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69281         always.
69282         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69283         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69284
69285 2007-03-04  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/argmatch-tests: New file.
69288         * tests/test-argmatch.c: New file.
69289
69290         * tests/test-allocsa.c (main): Halve the number of loop runs.
69291
69292         * modules/alloca-opt-tests: New file.
69293         * tests/test-alloca-opt.c: New file.
69294
69295 2007-03-04  Jim Meyering  <jim@meyering.net>
69296
69297         Work around difference between Linux ACLs and Solaris 10 ZFS.
69298         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69299         for EINVAL.
69300
69301 2007-03-03  Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/relocatable-prog (Depends-on): Add back progreloc's
69304         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69305
69306 2007-03-03  Bruno Haible  <bruno@clisp.org>
69307
69308         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69309         * modules/relocatable-lib: New file.
69310
69311 2007-03-03  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/relocatable-prog: Renamed from modules/relocatable.
69314         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69315
69316 2007-03-03  Bruno Haible  <bruno@clisp.org>
69317
69318         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69319         m4/relocatable-lib.m4.
69320         (Depends-on): Remove 'relocatable'.
69321         (configure.ac): Add gl_RELOCATABLE_NOP.
69322
69323 2007-03-03  Bruno Haible  <bruno@clisp.org>
69324
69325         * modules/relocatable-prog-wrapper: New file.
69326         * modules/relocatable (Depends-on): Add it. Remove all other
69327         dependencies except progname.
69328         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69329
69330         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69331         (gl_FUNC_STRERROR): Nop.
69332         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69333
69334         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69335         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69336
69337         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69338         (gl_FUNC_READLINK): Update.
69339
69340         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69341
69342 2007-03-03  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69345         * modules/xreadlink (Depends-on): Add unistd.
69346         * modules/xreadlink-with-size (Depends-on): Likewise.
69347
69348 2007-03-03  Bruno Haible  <bruno@clisp.org>
69349
69350         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69351         extracted from gt_FUNC_SETENV.
69352         (gt_FUNC_SETENV): Remove macro.
69353         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69354         remove gt_FUNC_SETENV.
69355
69356 2007-03-03  Bruno Haible  <bruno@clisp.org>
69357
69358         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69359         ENABLE_RELOCATABLE here.
69360         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69361
69362 2007-03-03  Bruno Haible  <bruno@clisp.org>
69363
69364         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69365         * tests/test-rbtreehash_list.c: Include progname.h.
69366         (main): Call set_program_name.
69367
69368         * modules/rbtree-oset-tests (Depends-on): Add progname.
69369         * tests/test-rbtree_oset.c: Include progname.h.
69370         (main): Call set_program_name.
69371
69372         * modules/rbtree-list-tests (Depends-on): Add progname.
69373         * tests/test-rbtree_list.c: Include progname.h.
69374         (main): Call set_program_name.
69375
69376         * modules/linked-list-tests (Depends-on): Add progname.
69377         * tests/test-linked_list.c: Include progname.h.
69378         (main): Call set_program_name.
69379
69380 2007-03-03  Bruno Haible  <bruno@clisp.org>
69381
69382         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69383         All uses of __restrict changed to _Restrict_.
69384         * lib/glob_.h (__restrict): Remove macro.
69385
69386 2007-03-02  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/gettext (configure.ac): Require gettext infrastructure
69389         from version 0.16.1.
69390
69391 2007-03-02  Bruno Haible  <bruno@clisp.org>
69392
69393         * modules/linkedhash-list-tests (Depends-on): Add progname.
69394         * tests/test-linkedhash_list.c: Include progname.h.
69395         (main): Call set_program_name.
69396
69397         * modules/carray-list-tests (Depends-on): Add progname.
69398         * tests/test-carray_list.c: Include progname.h.
69399         (main): Call set_program_name.
69400
69401         * modules/avltreehash-list-tests (Depends-on): Add progname.
69402         * tests/test-avltreehash_list.c: Include progname.h.
69403         (main): Call set_program_name.
69404
69405         * modules/avltree-oset-tests (Depends-on): Add progname.
69406         * tests/test-avltree_oset.c: Include progname.h.
69407         (main): Call set_program_name.
69408
69409         * modules/avltree-list-tests (Depends-on): Add progname.
69410         * tests/test-avltree_list.c: Include progname.h.
69411         (main): Call set_program_name.
69412
69413         * modules/array-oset-tests (Depends-on): Add progname.
69414         * tests/test-array_oset.c: Include progname.h.
69415         (main): Call set_program_name.
69416
69417         * modules/array-list-tests (Depends-on): Add progname.
69418         * tests/test-array_list.c: Include progname.h.
69419         (main): Call set_program_name.
69420
69421         * modules/argp-tests (Depends-on): Add progname.
69422         * tests/test-argp.c: Include argp.h first. Include progname.h.
69423         (main): Call set_program_name.
69424
69425 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         * doc/gnulib-tool.texi (Initial import): Reword description of
69428         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69429         limited effect even if defined after the first system include.
69430
69431 2007-03-01  Bruno Haible  <bruno@clisp.org>
69432
69433         * build-aux/config.libpath: Update to libtool-1.5.22.
69434         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69435
69436 2007-03-01  Bruno Haible  <bruno@clisp.org>
69437
69438         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69439         foo_CFLAGS.
69440         Reported by Ralf Wildenhues.
69441
69442 2007-03-01  Bruno Haible  <bruno@clisp.org>
69443
69444         * build-aux/install-reloc: Remove object files left over by some
69445         compilers.
69446         Reported by Ralf Wildenhues.
69447
69448 2007-03-01  Bruno Haible  <bruno@clisp.org>
69449
69450         * build-aux/install-reloc: Break long lines.
69451
69452 2007-03-01  Bruno Haible  <bruno@clisp.org>
69453
69454         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69455         Reported by Ralf Wildenhues.
69456
69457 2007-03-01  Bruno Haible  <bruno@clisp.org>
69458
69459         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69460         include ordering constraints.
69461
69462 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69463
69464         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69466         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69467         as another example.
69468         * lib/time_.h: Fix misspelling.
69469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69470         Require gl_HEADER_TIME_H_DEFAULTS.
69471         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69472         * m4/time_r.m4 (gl_TIME_R): Likewise.
69473         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69474
69475 2007-03-01  Bruno Haible  <bruno@clisp.org>
69476
69477         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69478         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69479
69480 2007-03-01  Jim Meyering  <jim@meyering.net>
69481
69482         * modules/xreadlink (Maintainer): Add my name.
69483         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69484
69485 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69486             Bruno Haible  <bruno@clisp.org>
69487
69488         * build-aux/install-reloc: Compile also c-ctype.c.
69489         * build-aux/relocatable.sh.in: New file.
69490         * doc/relocatable.texi: New file.
69491         * doc/relocatable-maint.texi: New file.
69492         * doc/gnulib.texi: Include relocatable-maint.texi.
69493         * lib/progreloc.c: Include unistd.h unconditionally.
69494         * lib/relocwrapper.c: Include unistd.h unconditionally.
69495         Include c-ctype.h.
69496         (add_dotbin): Use c_tolower.
69497         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69498         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69499         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69500         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69501         to m4/relocatable-lib.m4.
69502         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69503         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69504         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69505         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69506         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69507         * modules/relocatable: New file.
69508         * modules/relocatable-lib: New file.
69509         * modules/relocatable-script: New file.
69510
69511 2007-02-28  Bruno Haible  <bruno@clisp.org>
69512
69513         Import --enable-relocatable infrastructure.
69514         * build-aux/config.libpath: New file, from GNU gettext.
69515         * build-aux/install-reloc: New file, from GNU gettext.
69516         * build-aux/reloc-ldflags: New file, from GNU gettext.
69517         * lib/relocatable.h: New file, from GNU gettext.
69518         * lib/relocatable.c: New file, from GNU gettext.
69519         * lib/relocwrapper.c: New file, from GNU gettext.
69520         * m4/relocatable.m4: New file, from GNU gettext.
69521
69522 2007-02-28  Bruno Haible  <bruno@clisp.org>
69523
69524         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69525
69526         * modules/xreadlink: New file, from GNU gettext with modifications.
69527         * lib/xreadlink.c: New file, from GNU gettext.
69528         * lib/xreadlink.h: Add comments.
69529         (xreadlink): New declaration.
69530
69531         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69532         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69533         lib/xreadlink-with-size.c.
69534         (configure.ac): Remove gl_XREADLINK invocation.
69535         (Makefile.am): Augment lib_SOURCES.
69536         * m4/xreadlink.m4: Remove file.
69537         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69538         (xreadlink_with_size): Renamed from xreadink.
69539         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69540         * modules/canonicalize (Depends-on): Replace xreadlink with
69541         xreadlink-with-size.
69542         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69543
69544 2007-02-25  Jim Meyering  <jim@meyering.net>
69545
69546         * build-aux/announce-gen: When complaining about excess arguments,
69547         list them.
69548
69549 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * README: Document signed integer overflow situation more
69552         accurately.
69553
69554 2007-02-25  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69557         'a' or 'A' conversion.
69558
69559 2007-02-25  Bruno Haible  <bruno@clisp.org>
69560
69561         * modules/filename: Renamed from modules/pathname.
69562         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69563         lib/concatpath.c with lib/concat-filename.c.
69564         (Makefile.am): Update.
69565         (Include): Replace pathname.h with filename.h.
69566         * lib/filename.h: Renamed from lib/pathname.h.
69567         (concatenated_filename): Renamed from concatenated_pathname.
69568         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69569         (concatenated_filename): Renamed from concatenated_pathname.
69570         * lib/findprog.c: Include filename.h instead of pathname.h.
69571         (find_in_path): Update.
69572         * lib/javacomp.c: Include filename.h instead of pathname.h.
69573         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69574         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69575         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69576         is_oldgcj_14_13_usable, is_javac_usable): Update.
69577         * lib/javaexec.c: Include filename.h instead of pathname.h.
69578         (execute_java_class): Update.
69579         * modules/findprog: Update.
69580         * modules/javacomp: Update.
69581         * modules/javaexec: Update.
69582         * MODULES.html.sh (File system functions): Add 'filename', remove
69583         'pathname'.
69584
69585 2007-02-25  Bruno Haible  <bruno@clisp.org>
69586
69587         * modules/printf-frexpl-tests: New file.
69588         * tests/test-printf-frexpl.c: New file.
69589
69590         * modules/printf-frexpl: New file.
69591         * lib/printf-frexpl.h: New file.
69592         * lib/printf-frexpl.c: New file.
69593         * m4/printf-frexpl.m4: New file.
69594
69595 2007-02-25  Bruno Haible  <bruno@clisp.org>
69596
69597         * modules/printf-frexp-tests: New file.
69598         * tests/test-printf-frexp.c: New file.
69599
69600         * modules/printf-frexp: New file.
69601         * lib/printf-frexp.h: New file.
69602         * lib/printf-frexp.c: New file.
69603         * m4/printf-frexp.m4: New file.
69604
69605 2007-02-25  Bruno Haible  <bruno@clisp.org>
69606
69607         Assume automake >= 1.10 for the tests.
69608         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69609         * modules/arctwo-tests: Likewise.
69610         * modules/argp-tests: Likewise.
69611         * modules/avltree-list-tests: Likewise.
69612         * modules/avltree-oset-tests: Likewise.
69613         * modules/avltreehash-list-tests: Likewise.
69614         * modules/carray-list-tests: Likewise.
69615         * modules/crc-tests: Likewise.
69616         * modules/des-tests: Likewise.
69617         * modules/gc-arcfour-tests: Likewise.
69618         * modules/gc-arctwo-tests: Likewise.
69619         * modules/gc-des-tests: Likewise.
69620         * modules/gc-hmac-md5-tests: Likewise.
69621         * modules/gc-hmac-sha1-tests: Likewise.
69622         * modules/gc-md2-tests: Likewise.
69623         * modules/gc-md4-tests: Likewise.
69624         * modules/gc-md5-tests: Likewise.
69625         * modules/gc-pbkdf2-sha1-tests: Likewise.
69626         * modules/gc-rijndael-tests: Likewise.
69627         * modules/gc-sha1-tests: Likewise.
69628         * modules/gc-tests: Likewise.
69629         * modules/getaddrinfo-tests: Likewise.
69630         * modules/hmac-md5-tests: Likewise.
69631         * modules/hmac-sha1-tests: Likewise.
69632         * modules/linked-list-tests: Likewise.
69633         * modules/linkedhash-list-tests: Likewise.
69634         * modules/lock-tests: Likewise.
69635         * modules/md2-tests: Likewise.
69636         * modules/md4-tests: Likewise.
69637         * modules/md5-tests: Likewise.
69638         * modules/rbtree-list-tests: Likewise.
69639         * modules/rbtree-oset-tests: Likewise.
69640         * modules/rbtreehash-list-tests: Likewise.
69641         * modules/read-file-tests: Likewise.
69642         * modules/rijndael-tests: Likewise.
69643         * modules/stdint-tests: Likewise.
69644         * modules/tls-tests: Likewise.
69645
69646 2007-02-24  Bruno Haible  <bruno@clisp.org>
69647
69648         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69649         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69650         function; instead check whether isnan with a double argument links.
69651         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69652         function; instead check whether isnan with a 'long double' argument
69653         links.
69654         Reported by Eric Blake <ebb9@byu.net>.
69655
69656 2007-02-24  Bruno Haible  <bruno@clisp.org>
69657
69658         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69659         defined.
69660         * lib/isnanl.c: Remove all code. Just include isnan.c.
69661         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69662
69663 2007-02-25  Jim Meyering  <jim@meyering.net>
69664
69665         Avoid conflicting types for 'unsetenv' on FreeBSD.
69666         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69667         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69668         in stdlib.h.
69669
69670 2007-02-24  Bruno Haible  <bruno@clisp.org>
69671
69672         * modules/isnanl-nolibm-tests: New file.
69673         * tests/test-isnanl.c: New file.
69674
69675         * modules/isnanl-nolibm: New file.
69676         * lib/isnanl.h: New file.
69677         * lib/isnanl.c: New file.
69678         * m4/isnanl.m4: New file.
69679
69680 2007-02-24  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/isnan-nolibm-tests: New file.
69683         * tests/test-isnan.c: New file.
69684
69685         * modules/isnan-nolibm: New file.
69686         * lib/isnan.h: New file.
69687         * lib/isnan.c: New file.
69688         * m4/isnan.m4: New file.
69689
69690 2007-02-24  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69693         assume that an exponent fits in 20 bits.
69694
69695 2007-02-24  Jim Meyering  <jim@meyering.net>
69696
69697         * m4/regex.m4: Update the description of the configure-time option,
69698         --without-included-regex, to state accurately what the defaults are,
69699         and perhaps to give people an idea why using this option is risky.
69700
69701 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69704         loops on small arguments.  This attempts to avoid the problem
69705         Bruno Haible reported for AIX 4.3.2 in
69706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69707
69708 2007-02-23  Bruno Haible  <bruno@clisp.org>
69709
69710         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69711         Needed for help2man.
69712
69713 2007-02-23  Karl Berry  <karl@gnu.org>
69714
69715         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69716         exists, foo.h should be cvs-ignored, not committed.
69717
69718 2007-02-23  Eric Blake  <ebb9@byu.net>
69719
69720         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69721         * lib/stat-time.h (includes): Likewise.
69722         * lib/utimecmp.c (includes): Likewise.
69723         * lib/utimens.h (includes): Likewise.
69724         * lib/getdate.y (includes): Also include "timespec.h" for use
69725         internal to the module.
69726         * modules/utimens (Depends-on): Revert yesterday's patch.
69727         * modules/nanosleep (Depends-on): Add missing dependency.
69728
69729 2007-02-22  Bruno Haible  <bruno@clisp.org>
69730
69731         * lib/glob.c: Don't include getlogin_r.h.
69732
69733 2007-02-22  Jim Meyering  <jim@meyering.net>
69734
69735         * modules/utimens (Depends-on): Add timespec, required for
69736         utimens.h's inclusion of timespec.h.
69737
69738 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69741         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69742         Schwab in
69743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69744         I'll try to think of a better way to fix the Solaris problem.
69745
69746         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69747         like glibc; on Solaris 10, it fails with errno == EINVAL.
69748         POSIX says the behavior is unspecified if the first argument is NULL,
69749         so play it safe and never pass NULL to the system getcwd.
69750
69751 2007-02-21  Jim Meyering  <jim@meyering.net>
69752
69753         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69754         of gettimeofday.  It would conflict with the one now always
69755         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69756         an IRIX 6.5 build failure.
69757
69758 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         Minor fixups to port to Solaris 10 with Sun C 5.8.
69761         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69762         * modules/getcwd (Depends-on): Add dirfd.
69763         * lib/putenv.c (putenv): #undef it.
69764         (rpl_putenv): New decl.
69765         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69766
69767 2007-02-20  Bruno Haible  <bruno@clisp.org>
69768
69769         * modules/stdio-tests: New file.
69770         * tests/test-stdio.c: New file.
69771
69772         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69773         (Depends-on): Add stdio.
69774         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69775         (Include): Use <stdio.h> instead of vsnprintf.h.
69776         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69777         HAVE_DECL_VSNPRINTF.
69778         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69779
69780         * modules/snprintf (Files): Remove lib/snprintf.h.
69781         (Depends-on): Add stdio.
69782         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69783         (Include): Use <stdio.h> instead of snprintf.h.
69784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69785         HAVE_DECL_SNPRINTF.
69786         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69787         * lib/getaddrinfo.c: Likewise.
69788
69789         * modules/stdio: New file.
69790         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69791         * lib/snprintf.h: Remove file.
69792         * lib/vsnprintf.h: Remove file.
69793         * lib/.cppi-disable: Remove snprintf.h.
69794         * m4/stdio_h.m4: New file.
69795         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69796
69797 2007-02-20  Jim Meyering  <jim@meyering.net>
69798
69799         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69800         used by e.g., mingw.  From Bruno Haible.
69801
69802 2007-02-19  Bruno Haible  <bruno@clisp.org>
69803
69804         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69805         warnings.
69806         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69807
69808 2007-02-19  Bruno Haible  <bruno@clisp.org>
69809
69810         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69811         from mingw users.
69812
69813 2007-02-19  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69816         warnings.
69817         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69818
69819 2007-02-19  Jim Meyering  <jim@meyering.net>
69820
69821         Don't use FD after a successful "fdopendir (fd)".
69822         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69823         Reset it by calling dirfd on the just-obtained DIR*.
69824
69825         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69826         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69827
69828 2007-02-18  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/readlink.c: Include <unistd.h>.
69831         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69832         HAVE_READLINK.
69833         * modules/readlink (Depends-on): Add unistd.
69834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69835         (Include): Add <unistd.h>.
69836
69837         * lib/getlogin_r.h: Remove file.
69838         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69839         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69840         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69841         HAVE_DECL_GETLOGIN_R.
69842         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69844         (Include): Use <unistd.h> instead of getlogin_r.h.
69845
69846         * lib/getcwd.h: Remove file.
69847         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69848         * lib/xgetcwd.c: Likewise.
69849         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69850         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69851         * modules/getcwd (Files): Remove lib/getcwd.h.
69852         (Depends-on): Add unistd.
69853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69854         (Include): Use <unistd.h> instad of getcwd.h.
69855
69856         * lib/ftruncate.c: Include <unistd.h> first.
69857         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69858         Set HAVE_FTRUNCATE.
69859         * modules/ftruncate (Depends-on): Add unistd.
69860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69861
69862         * lib/fchdir.c: Include <unistd.h> first.
69863         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69865         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69866         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69867         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69868
69869         * lib/dup2.c: Include <unistd.h> first.
69870         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69871         HAVE_DUP2.
69872         * modules/dup2 (Depends-on): Add unistd.
69873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69874
69875         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69876         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69877         REPLACE_CHOWN. Don't define chown as a macro here.
69878         * modules/chown (Depends-on): Add unistd.
69879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69880
69881         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69882         Add definition for GL_LINK_WARNING.
69883         (chown, dup2): New declarations.
69884         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69885         link warning.
69886         (ftruncate): New declaration.
69887         (getcwd): New declaration, taken from old getcwd.h.
69888         (getlogin_r): New declaration, taken from old getlogin_r.h.
69889         (readlink): New declaration.
69890         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69891         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69892         (gl_PREREQ_UNISTD): Remove macro.
69893         (gl_UNISTD_MODULE_INDICATOR): New macro.
69894         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69895         many new variables. Don't set UNISTD_H.
69896         * modules/unistd (Description): Change.
69897         (Depends-on): Add link-warning.
69898         (configure.ac): Update.
69899         (Makefile.am): Create unistd.h always. Substitute many new variables
69900         into it.
69901
69902 2007-02-18  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69905         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69906         HAVE_GETSUBOPT.
69907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69908         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69909         * lib/getsubopt.h: Remove file.
69910         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69911         (Depends-on): Add stdlib.
69912         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69913         (Includes): Use <stdlib.h> instead of getsubopt.h.
69914         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69915         Set HAVE_GETSUBOPT.
69916         * lib/getsubopt.c: Don't include getsubopt.h.
69917
69918 2007-02-18  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/fchdir (Depends-on): Add dup2.
69921
69922 2007-02-18  Bruno Haible  <bruno@clisp.org>
69923
69924         * lib/stdlib_.h: Handle glibc's special invocation convention
69925         specially.
69926
69927 2007-02-18  Bruno Haible  <bruno@clisp.org>
69928
69929         * modules/stdlib-tests: New file.
69930         * tests/test-stdlib.c: New file.
69931
69932         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69933         (Depends-on): Add stdlib.
69934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69935         (Includes): Use <stdlib.h> instead of mkstemp.h.
69936         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69937         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69938         * lib/mkstemp.c: Don't include mkstemp.h.
69939         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69940         * lib/stdlib--.h: Don't include mkstemp.h.
69941
69942         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69943         (Depends-on): Add stdlib.
69944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69945         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69946         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69947         HAVE_MKDTEMP.
69948         * lib/mkdtemp.c: Don't include mkdtemp.h.
69949         * lib/clean-temp.c: Don't include mkdtemp.h.
69950
69951         * modules/exit (Files): Remove lib/exit.h.
69952         (Depends-on): Add stdlib.
69953         (Makefile.am): Remove lib_SOURCES.
69954         (Include): Use <stdlib.h> instead of exit.h.
69955         * lib/argmatch.c: Don't include exit.h.
69956         * lib/execute.c: Likewise.
69957         * lib/pagealign_alloc.c: Likewise.
69958         * lib/pipe.c: Likewise.
69959         * lib/wait-process.c: Likewise.
69960         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69961         * lib/exitfail.c: Likewise.
69962         * lib/savewd.c: Likewise.
69963         * lib/xsetenv.c: Likewise.
69964
69965         * modules/stdlib: New file.
69966         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69967         and extra comments about mkstemp().
69968         * lib/exit.h: Remove file.
69969         * lib/mkdtemp.h: Remove file.
69970         * lib/mkstemp.h: Remove file.
69971         * m4/stdlib_h.m4: New file.
69972         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69973
69974 2007-02-18  Bruno Haible  <bruno@clisp.org>
69975
69976         * modules/math-tests: New file.
69977         * tests/test-math.c: New file.
69978
69979         * modules/math: New file.
69980         * modules/mathl (Files): Remove lib/mathl.h.
69981         (Depends-on): Add math.
69982         (Makefile.am): Don't mention mathl.h.
69983         (Include): Use <math.h> instead of mathl.h.
69984         * lib/math_.h: New file.
69985         * lib/mathl.h: Remove file.
69986         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69987         mathl.h.
69988         * lib/asinl.c: Likewise.
69989         * lib/atanl.c: Likewise.
69990         * lib/ceill.c: Likewise.
69991         * lib/cosl.c: Likewise.
69992         * lib/expl.c: Likewise.
69993         * lib/floorl.c: Likewise.
69994         * lib/frexpl.c: Likewise.
69995         * lib/ldexpl.c: Likewise.
69996         * lib/logl.c: Likewise.
69997         * lib/sincosl.c: Likewise.
69998         * lib/sinl.c: Likewise.
69999         * lib/sqrtl.c: Likewise.
70000         * lib/tanl.c: Likewise.
70001         * lib/trigl.c: Likewise.
70002         * m4/math_h.m4: New file.
70003         * MODULES.html.sh (Mathematics): Add math.
70004
70005 2007-02-17  Bruno Haible  <bruno@clisp.org>
70006
70007         * modules/wctype-tests: New file.
70008         * tests/test-wctype.c: New file.
70009
70010         * modules/wchar-tests: New file.
70011         * tests/test-wchar.c: New file.
70012
70013         * modules/unistd-tests: New file.
70014         * tests/test-unistd.c: New file.
70015
70016         * modules/time-tests: New file.
70017         * tests/test-time.c: New file.
70018
70019         * modules/sysexits-tests: New file.
70020         * tests/test-sysexits.c: New file.
70021
70022         * modules/sys_time-tests: New file.
70023         * tests/test-sys_time.c: New file.
70024
70025         * modules/sys_stat-tests: New file.
70026         * tests/test-sys_stat.c: New file.
70027
70028         * modules/sys_socket-tests: New file.
70029         * tests/test-sys_socket.c: New file.
70030
70031         * modules/sys_select-tests: New file.
70032         * tests/test-sys_select.c: New file.
70033
70034         * modules/string-tests: New file.
70035         * tests/test-string.c: New file.
70036
70037         * modules/stdbool-tests: New file.
70038         * tests/test-stdbool.c: New file.
70039
70040         * modules/netinet_in-tests: New file.
70041         * tests/test-netinet_in.c: New file.
70042
70043         * modules/inttypes-tests: New file.
70044         * tests/test-inttypes.c: New file.
70045
70046         * modules/fcntl-tests: New file.
70047         * tests/test-fcntl.c: New file.
70048
70049         * modules/byteswap-tests: New file.
70050         * tests/test-byteswap.c: New file.
70051
70052         * modules/arpa_inet-tests: New file.
70053         * tests/test-arpa_inet.c: New file.
70054
70055 2007-02-17  Bruno Haible  <bruno@clisp.org>
70056
70057         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70058         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70059         if the corresponding module is not enabled. Emit link warnings if
70060         the function is used nevertheless.
70061         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70062         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70063         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70064         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70065         * modules/inttypes (Depends-on): Add link-warning.
70066         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70067         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70068         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70069         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70070         * modules/imaxdiv (configure.ac): Likewise.
70071         * modules/strtoimax (configure.ac): Likewise.
70072         * modules/strtoumax (configure.ac): Likewise.
70073
70074 2007-02-17  Bruno Haible  <bruno@clisp.org>
70075
70076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70077         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70078         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70079         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70080
70081 2007-02-17  Bruno Haible  <bruno@clisp.org>
70082
70083         * modules/link-warning: New file.
70084         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70085         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70086         * modules/string (Depends-on): Add link-warning.
70087         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70088         string.h.
70089         * MODULES.html.sh (Support for building libraries and executables): Add
70090         link-warning.
70091
70092 2007-02-17  Bruno Haible  <bruno@clisp.org>
70093
70094         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70095         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70096         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70097         long lines.
70098
70099 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70100             Bruno Haible  <bruno@clisp.org>
70101
70102         * modules/tmpfile: New file.
70103         * lib/tmpfile.c: New file.
70104         * m4/tmpfile.m4: New file.
70105         * MODULES.html.sh (func_all_modules): New section "Input/output".
70106
70107 2007-02-15  Bruno Haible  <bruno@clisp.org>
70108
70109         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70110         (supports_delete_on_close): New function.
70111         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70112
70113 2007-02-14  Bruno Haible  <bruno@clisp.org>
70114
70115         * modules/mbspcasecmp-tests: New file.
70116         * tests/test-mbspcasecmp.sh: New file.
70117         * tests/test-mbspcasecmp.c: New file.
70118
70119         New module mbspcasecmp.
70120         * modules/mbspcasecmp: New file.
70121         * lib/mbspcasecmp.c: New file.
70122         * lib/string_.h (strncasecmp): Change warning message.
70123         (mbspcasecmp): New declaration.
70124         * m4/mbspcasecmp.m4: New file.
70125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70126         GNULIB_MBSPCASECMP.
70127         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70128         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70129
70130 2007-02-14  Bruno Haible  <bruno@clisp.org>
70131
70132         * modules/mbsncasecmp-tests: New file.
70133         * tests/test-mbsncasecmp.sh: New file.
70134         * tests/test-mbsncasecmp.c: New file.
70135
70136         New module mbsncasecmp.
70137         * modules/mbsncasecmp: New file.
70138         * lib/mbsncasecmp.c: New file.
70139         * lib/string_.h (mbsncasecmp): New declaration.
70140         * m4/mbsncasecmp.m4: New file.
70141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70142         GNULIB_MBSNCASECMP.
70143         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70144         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70145
70146 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70149         Verify that it doesn't overlap with our flags.
70150         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70151         do not have the desired effect in multibyte locales; instead, use
70152         mbscasecmp.
70153         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70154         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70155         we don't require GNU fnmatch ourselves (if our users require it, they
70156         should do so explicitly).
70157
70158         Fix regex code so it doesn't rely on strcasecmp.
70159         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70160         Otherwise, include gnulib's langinfo.h.
70161         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70162         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70163         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70164         * modules/regex (FILES): Remove m4/codeset.m4.
70165         (Depends-on): Add localcharset.  Remove strcase.
70166
70167 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70168
70169         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70171
70172 2007-02-13  Bruno Haible  <bruno@clisp.org>
70173
70174         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70176
70177 2007-02-12  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70180         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70181         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70182         time warning rather than a link error.
70183
70184 2007-02-12  Bruno Haible  <bruno@clisp.org>
70185
70186         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70187         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70189
70190 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70193         args, not 2.
70194
70195 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70196
70197         New module 'time', so that apps can include <time.h> as per
70198         POSIX and GNU instead of separate include files like time_r.h
70199         and timegm.h.  This implementation tries out a simpler approach
70200         for replacing decls in standard include files (as compared to
70201         the string module), somewhat as an experiment.
70202
70203         * config/srclist.txt: Comment out mktime.c for now.
70204         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70205         since it doesn't apply any more.  Use generic wording instead.
70206         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70207         'time'.
70208         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70209         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70210         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70211         Don't include <sys/types.h>; no longer needed since we assume C89.
70212         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70213         * lib/strftime.c: Likewise.
70214         * lib/time_r.c: Likewise.
70215         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70216         * lib/nanosleep.c: Include <time.h> first, to check interface.
70217         * lib/strptime.c: Likewise.
70218         * lib/time_r.c: Likewise.
70219         * lib/timegm.c: Likewise.
70220         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70221         needed.
70222         * lib/timegm.c: Don't include timegm.h; no longer needed.
70223         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70224         time.h now handles any problems in that area.
70225         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70226         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70227         that time.h defines struct timespec.
70228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70229         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70230         handles that.
70231         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70232         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70233         needed.  Set REPLACE_LOCALTIME.
70234         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70235         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70236         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70237         nanosleep; time_h.m4 now does that.  Don't require
70238         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70239         module handles this now.
70240         * modules/getdate (Depends-on): Remove timespec.  Add time.
70241         * modules/nanosleep (Depends-on): Likewise.
70242         * modules/stat-time (Depends-on): Likewise.
70243         * modules/nanosleep (Include): Include time.h, not timespec.h.
70244         * modules/strptime (Files): Remove lib/strptime.h.
70245         (Depends-on): Add extensions, time.
70246         (Include): Include time.h, not strptime.h.
70247         * modules/time_r (Files): Remove lib/time_r.h.
70248         (Depends-on): Add time.
70249         (Include): Include time.h, not time_r.h.
70250         * modules/timegm: Likewise.
70251         * modules/timespec (Description): Now does timespec-related decls
70252         of our own, instead of struct timespec itself.
70253         (Depends-on): Add time; remove extensions.
70254         (Maintainer): Add self.
70255         * modules/utimecmp (Depends-on): Add time; remove timespec.
70256         * modules/utimens (Depends-on): Likewise.
70257         * modules/xnanosleep (Depends-on): Likewise.
70258
70259 2007-02-11  Bruno Haible  <bruno@clisp.org>
70260
70261         * lib/c-strstr.c: Include allocsa.h.
70262         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70263         * lib/c-strcasestr.c: Include allocsa.h.
70264         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70265         * lib/strcasestr.c: Include allocsa.h.
70266         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70267         * lib/mbsstr.c: Include allocsa.h.
70268         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70269         allocsa/freesa instead of malloc/free.
70270         * lib/mbscasestr.c: Include allocsa.h.
70271         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70272         allocsa/freesa instead of malloc/free.
70273         * modules/c-strstr (Depends-on): Add allocsa.
70274         * modules/c-strcasestr (Depends-on): Likewise.
70275         * modules/strcasestr (Depends-on): Likewise.
70276         * modules/mbsstr (Depends-on): Likewise.
70277         * modules/mbscasestr (Depends-on): Likewise.
70278
70279 2007-02-11  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70282
70283         * modules/mbsspn-tests: New file.
70284         * tests/test-mbsspn.sh: New file.
70285         * tests/test-mbsspn.c: New file.
70286
70287 2007-02-11  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70290
70291         * modules/mbspbrk-tests: New file.
70292         * tests/test-mbspbrk.sh: New file.
70293         * tests/test-mbspbrk.c: New file.
70294
70295 2007-02-11  Bruno Haible  <bruno@clisp.org>
70296
70297         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70298         unneeded cast.
70299
70300         * modules/mbscspn-tests: New file.
70301         * tests/test-mbscspn.sh: New file.
70302         * tests/test-mbscspn.c: New file.
70303
70304 2007-02-11  Bruno Haible  <bruno@clisp.org>
70305
70306         * modules/mbscasecmp-tests: New file.
70307         * tests/test-mbscasecmp.sh: New file.
70308         * tests/test-mbscasecmp.c: New file.
70309
70310 2007-02-11  Bruno Haible  <bruno@clisp.org>
70311
70312         Ensure O(n) worst-case complexity of mbscasestr.
70313         * lib/mbscasestr.c: Include stdbool.h.
70314         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70315         functions.
70316         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70317         the bookkeeping indicates that it's worth it.
70318         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70319
70320         * modules/mbscasestr-tests: New file.
70321         * tests/test-mbscasestr1.c: New file.
70322         * tests/test-mbscasestr2.sh: New file.
70323         * tests/test-mbscasestr2.c: New file.
70324         * tests/test-mbscasestr3.sh: New file.
70325         * tests/test-mbscasestr3.c: New file.
70326         * tests/test-mbscasestr4.sh: New file.
70327         * tests/test-mbscasestr4.c: New file.
70328         * m4/locale-tr.m4: New file.
70329
70330 2007-02-11  Bruno Haible  <bruno@clisp.org>
70331
70332         Ensure O(n) worst-case complexity of mbsstr.
70333         * lib/mbsstr.c: Include stdbool.h.
70334         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70335         functions.
70336         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70337         bookkeeping indicates that it's worth it.
70338         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70339
70340         * modules/mbsstr-tests: New file.
70341         * tests/test-mbsstr1.c: New file.
70342         * tests/test-mbsstr2.sh: New file.
70343         * tests/test-mbsstr2.c: New file.
70344         * tests/test-mbsstr3.sh: New file.
70345         * tests/test-mbsstr3.c: New file.
70346         * m4/locale-fr.m4: New file.
70347
70348 2007-02-11  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/mbsrchr.c (mbsrchr): Fix bug.
70351
70352         * modules/mbsrchr-tests: New file.
70353         * tests/test-mbsrchr.sh: New file.
70354         * tests/test-mbsrchr.c: New file.
70355
70356 2007-02-11  Bruno Haible  <bruno@clisp.org>
70357
70358         * lib/mbschr.c (mbschr): Fix bug.
70359
70360         * modules/mbschr-tests: New file.
70361         * tests/test-mbschr.sh: New file.
70362         * tests/test-mbschr.c: New file.
70363         * m4/locale-zh.m4: New file.
70364
70365 2007-02-11  Bruno Haible  <bruno@clisp.org>
70366
70367         Support for copying multibyte string iterators.
70368         * lib/mbiter.h: Include <string.h>.
70369         (mbiter_multi_copy): New function.
70370         (mbi_copy): New macro.
70371         * lib/mbuiter.h: Include <string.h>.
70372         (mbuiter_multi_copy): New function.
70373         (mbui_copy): New macro.
70374
70375 2007-02-11  Bruno Haible  <bruno@clisp.org>
70376
70377         New module mbslen.
70378         * modules/mbslen: New file.
70379         * lib/mbslen.c: New file.
70380         * lib/string_.h (mbslen): New declaration.
70381         * m4/mbslen.m4: New file.
70382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70383         GNULIB_MBSLEN.
70384         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70385         * MODULES.html.sh (Internationalization functions): Add mbslen.
70386
70387 2007-02-11  Bruno Haible  <bruno@clisp.org>
70388
70389         Ensure O(n) worst-case complexity of strcasestr substitute.
70390         * lib/strcasestr.c: Include stdbool.h.
70391         (knuth_morris_pratt): New function.
70392         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70393         bookkeeping indicates that it's worth it.
70394         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70395
70396         * modules/strcasestr-tests: New file.
70397         * tests/test-strcasestr.c: New file.
70398
70399 2007-02-11  Bruno Haible  <bruno@clisp.org>
70400
70401         Ensure O(n) worst-case complexity of c_strcasestr.
70402         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70403         (knuth_morris_pratt): New function.
70404         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70405         the bookkeeping indicates that it's worth it.
70406         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70407
70408         * modules/c-strcasestr-tests: New file.
70409         * tests/test-c-strcasestr.c: New file.
70410
70411 2007-02-11  Bruno Haible  <bruno@clisp.org>
70412
70413         Ensure O(n) worst-case complexity of c_strstr.
70414         * lib/c-strstr.c: Include stdbool.h, string.h.
70415         (knuth_morris_pratt): New function.
70416         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70417         bookkeeping indicates that it's worth it.
70418         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70419
70420         * lib/c-strstr.c: Complete rewrite for maintainability.
70421
70422         * modules/c-strstr-tests: New file.
70423         * tests/test-c-strstr.c: New file.
70424
70425 2007-02-11  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70428         5.2.1 and earlier, whereby \055 was treated just like the range
70429         delimiter '-'.
70430         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70431
70432 2007-02-08  Bruno Haible  <bruno@clisp.org>
70433
70434         * modules/regex (Depends-on): Add stdbool.
70435         Reported by Dalibor Topic <robilad@kaffe.org>.
70436
70437 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70438
70439         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70440         Prefer returning from main to exiting from it.
70441         Remove unnecessary parens after sizeof.
70442
70443 2007-02-05  Bruno Haible  <bruno@clisp.org>
70444
70445         New module mbssep.
70446         * modules/mbssep: New file.
70447         * lib/mbssep.c: New file.
70448         * lib/string_.h (strsep): Add a conditional link warning.
70449         (mbssep): New declaration.
70450         * m4/mbssep.m4: New file.
70451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70452         GNULIB_MBSSEP.
70453         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70454         * MODULES.html.sh (Internationalization functions): Add mbssep.
70455
70456 2007-02-05  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70459         Optimize search in case of 1 delimiter.
70460
70461 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70462
70463         * lib/acl.h: Include sys/types.h before sys/acl.h.
70464
70465 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70466
70467         Merge upstream fix for glibc bugzilla #3957:
70468
70469         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70470
70471         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70472         bit for RE_HAT_LISTS_NOT_NEWLINE.
70473         (build_charclass_op): Remove bogus comment.
70474
70475 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70476
70477         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70478
70479 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70482         * lib/memmem.c [!defined _LIBC]: Include config.h.
70483
70484 2007-02-04  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70487         warning message.
70488
70489 2007-02-04  Bruno Haible  <bruno@clisp.org>
70490
70491         New module mbstok_r.
70492         * modules/mbstok_r: New file.
70493         * lib/mbstok_r.c: New file.
70494         * lib/string_.h (strtok_r): Change argument names to match the
70495         comments. Add a conditional link warning.
70496         (mbstok_r): New declaration.
70497         * m4/mbstok_r.m4: New file.
70498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70499         GNULIB_MBSTOK_R.
70500         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70501         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70502
70503 2007-02-04  Bruno Haible  <bruno@clisp.org>
70504
70505         New module mbsspn.
70506         * modules/mbsspn: New file.
70507         * lib/mbsspn.c: New file.
70508         * lib/string_.h (strspn): Add a conditional link warning.
70509         (mbsspn): New declaration.
70510         * m4/mbsspn.m4: New file.
70511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70512         GNULIB_MBSSPN.
70513         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70514         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70515
70516 2007-02-04  Bruno Haible  <bruno@clisp.org>
70517
70518         New module mbspbrk.
70519         * modules/mbspbrk: New file.
70520         * lib/mbspbrk.c: New file.
70521         * lib/string_.h (strpbrk): Add a conditional link warning.
70522         (mbspbrk): New declaration.
70523         * m4/mbspbrk.m4: New file.
70524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70525         GNULIB_MBSPBRK.
70526         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70527         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70528
70529 2007-02-04  Bruno Haible  <bruno@clisp.org>
70530
70531         New module mbscspn.
70532         * modules/mbscspn: New file.
70533         * lib/mbscspn.c: New file.
70534         * lib/string_.h (strcspn): Add a conditional link warning.
70535         (mbscspn): New declaration.
70536         * m4/mbscspn.m4: New file.
70537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70538         GNULIB_MBSCSPN.
70539         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70540         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70541
70542 2007-02-04  Bruno Haible  <bruno@clisp.org>
70543
70544         New module mbscasestr, reduced goal of strcasestr.
70545         * modules/mbscasestr: New file.
70546         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70547         (mbscasestr): Renamed from strcasestr.
70548         * lib/strcasestr.c: Don't include mbuiter.h.
70549         (strcasestr): Remove support for multibyte locales.
70550         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70551         Change the conditional link warning.
70552         (mbscasestr): New declaration.
70553         * m4/mbscasestr.m4: New file.
70554         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70555         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70556         REPLACE_STRCASESTR.
70557         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70559         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70560         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70561         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70562         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70563         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70564         (Depends-on): Remove mbuiter.
70565         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70566
70567 2007-02-04  Bruno Haible  <bruno@clisp.org>
70568
70569         Simplify handling of strncasecmp.
70570         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70571         the conditional link warning.
70572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70573         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70574         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70575         * modules/strcase (configure.ac): Don't invoke
70576         gl_STRING_MODULE_INDICATOR.
70577         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70578
70579 2007-02-04  Bruno Haible  <bruno@clisp.org>
70580
70581         New module mbscasecmp, reduced goal of strcasecmp.
70582         * modules/mbscasecmp: New file.
70583         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70584         (mbscasecmp): Renamed from strcasecmp.
70585         * lib/strcasecmp.c: Don't include mbuiter.h.
70586         (strcasecmp): Remove support for multibyte locales.
70587         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70588         Change the conditional link warning.
70589         (mbscasecmp): New declaration.
70590         * m4/mbscasecmp.m4: New file.
70591         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70592         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70593         REPLACE_STRCASECMP.
70594         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70596         GNULIB_MBSCASECMP.
70597         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70598         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70599         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70600         (Depends-on): Remove mbuiter.
70601         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70602
70603 2007-02-04  Bruno Haible  <bruno@clisp.org>
70604
70605         New module mbsstr. Remove module strstr.
70606         * modules/mbsstr: New file.
70607         * modules/strstr: Remove file.
70608         * lib/mbsstr.c: Renamed from lib/strstr.c.
70609         (mbsstr): Renamed from strstr.
70610         * lib/string_.h (strstr): Remove declaration. Change the conditional
70611         link warning.
70612         (mbsstr): New declaration.
70613         * m4/mbsstr.m4: New file.
70614         * m4/strstr.m4: Remove file.
70615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70616         REPLACE_STRSTR.
70617         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70618         Don't initialize GNULIB_STRSTR.
70619         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70620         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70621         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70622         (Support for systems lacking ANSI C 89): Remove strstr.
70623
70624 2007-02-04  Bruno Haible  <bruno@clisp.org>
70625
70626         New module mbsrchr.
70627         * modules/mbsrchr: New file.
70628         * lib/mbsrchr.c: New file.
70629         * lib/string_.h (strrchr): Add a conditional link warning.
70630         (mbsrchr): New declaration.
70631         * m4/mbsrchr.m4: New file.
70632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70633         GNULIB_MBSRCHR.
70634         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70635         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70636
70637 2007-02-04  Bruno Haible  <bruno@clisp.org>
70638
70639         New module mbschr.
70640         * modules/mbschr: New file.
70641         * lib/mbschr.c: New file.
70642         * lib/string_.h (strchr): Add a conditional link warning.
70643         (mbschr): New declaration.
70644         * m4/mbschr.m4: New file.
70645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70646         GNULIB_MBSCHR.
70647         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70648         * MODULES.html.sh (Internationalization functions): Add mbschr.
70649
70650 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70653
70654         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70655
70656 2007-02-04  Bruno Haible  <bruno@clisp.org>
70657
70658         New module description section 'configure.ac-early'.
70659         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70660         (func_get_autoconf_early_snippet): New function.
70661         (func_import, func_create_testdir): Use it. Remove special cases for
70662         modules 'extensions' and 'lock'.
70663         * modules/extensions (configure.ac-early): Require
70664         gl_USE_SYSTEM_EXTENSIONS.
70665         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70666
70667 2007-02-04  Bruno Haible  <bruno@clisp.org>
70668
70669         Make use of gcj-4.3's -fsource and -ftarget option.
70670         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70671         and if so try the options -fsource and -ftarget.
70672         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70673         source_version, ftarget_option, target_version arguments.
70674         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70675         (is_envjavac_oldgcj_14_14_usable): Renamed from
70676         is_envjavac_gcj_14_14_usable.
70677         (is_envjavac_oldgcj_14_13_usable): Renamed from
70678         is_envjavac_gcj_14_13_usable.
70679         (is_gcj_present): Update.
70680         (is_gcj_43, is_gcj43_usable): New functions.
70681         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70682         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70683         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70684         try the options -fsource and -ftarget.
70685
70686 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70687
70688         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70689         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70690         larger value.
70691
70692 2007-02-03  Jim Meyering  <jim@meyering.net>
70693
70694         Give tools a better chance to allocate space for very large buffers.
70695         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70696
70697         Make pwd and readlink work also when run with an unreadable parent dir
70698         on systems with openat support.
70699         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70700         provided getcwd function, even when we have openat support.
70701         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70702
70703 2007-02-02  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70706         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70707         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70708         portability problems if one of these functions is only used on specific
70709         platforms.
70710         Reported by Paul Eggert.
70711
70712 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70715         is causing more trouble than it's curing.
70716         * lib/regex_internal.h (__mempcpy): Remove.
70717         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70718         (and make the code a tad smaller to boot).
70719         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70720
70721 2007-02-02  Jim Meyering  <jim@meyering.net>
70722
70723         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70724         section, not in the Makefile.am: one.
70725
70726 2007-02-02  Eric Blake  <ebb9@byu.net>
70727
70728         * lib/strchrnul.c: Always include config.h first.
70729
70730         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70731         gnulib strstr is not necessary here.
70732
70733 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70734
70735         * m4/socklen.m4: Fix typo.
70736
70737 2007-02-02  Eric Blake  <ebb9@byu.net>
70738
70739         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70740         * modules/netinet_in (Makefile.am): Likewise.
70741
70742 2007-02-01  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/string_.h (GL_LINK_WARNING): New macro.
70745         (strcasecmp, strstr, strcasestr): If provided by the system,
70746         conditionally define as a macro that leads to a warning instead of to
70747         an error.
70748         (strncasecmp): Conditionally define as a macro that leads to a warning.
70749
70750 2007-02-01  Karl Berry  <karl@gnu.org>
70751
70752         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70753
70754 2007-02-01  Bruno Haible  <bruno@clisp.org>
70755
70756         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70757         renamings.
70758
70759 2007-02-01  Eric Blake  <ebb9@byu.net>
70760
70761         * modules/regex (Depends-on): Revert dependence on mempcpy.
70762         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70763         module's definition of mempcpy.
70764         Reported by Paul Eggert.
70765
70766 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70769         the symbol XYZ before redefining it.  This fixes a problem with
70770         programs that don't use XYZ, when compiled on systems that define
70771         XYZ to something else.
70772
70773 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70776         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70777         writeable to group or other and (2) is intended to have a special
70778         mode bit that is set or cleared.  In such a case, the directory
70779         should be neither group- nor other-writeable until the special
70780         mode bits are right.
70781
70782 2007-01-31  Eric Blake  <ebb9@byu.net>
70783
70784         * modules/mountlist (Depends-on): Add strstr.
70785
70786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70787         bug.
70788         * modules/string (Makefile.am): Remove redundant replacement.
70789         * modules/regex (Depends-on): Add mempcpy.
70790
70791 2007-01-31  Bruno Haible  <bruno@clisp.org>
70792
70793         New module description field 'Link'.
70794         * gnulib-tool (func_usage): Document --extract-link-directive.
70795         (sed_extract_prog): Recognize 'Link' directive.
70796         (func_get_link_directive): New function.
70797         (func_import): Show summary of link directives.
70798         Handle --extract-link-directive option.
70799         * modules/acl (Link): New section.
70800         * modules/clock-time (Link): New section.
70801         * modules/euidaccess (Link): New section.
70802         * modules/gettext (Link): New section.
70803         * modules/iconv (Link): New section.
70804         * modules/lock (Link): New section.
70805         * modules/nanosleep (Link): New section.
70806         * modules/readline (Link): New section.
70807
70808 2007-01-27  Bruno Haible  <bruno@clisp.org>
70809
70810         Enforce the use of gnulib modules for unportable <string.h> functions.
70811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70812         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70813         (gl_HEADER_STRING_H_BODY): Require it.
70814         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70815         the symbol XYZ to one that gives a link error.
70816         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70817         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70818         * modules/mempcpy (configure.ac): Likewise.
70819         * modules/memrchr (configure.ac): Likewise.
70820         * modules/stpcpy (configure.ac): Likewise.
70821         * modules/stpncpy (configure.ac): Likewise.
70822         * modules/strcase (configure.ac): Likewise.
70823         * modules/strcasestr (configure.ac): Likewise.
70824         * modules/strchrnul (configure.ac): Likewise.
70825         * modules/strdup (configure.ac): Likewise.
70826         * modules/strndup (configure.ac): Likewise.
70827         * modules/strnlen (configure.ac): Likewise.
70828         * modules/strpbrk (configure.ac): Likewise.
70829         * modules/strsep (configure.ac): Likewise.
70830         * modules/strstr (configure.ac): Likewise.
70831         * modules/strtok_r (configure.ac): Likewise.
70832
70833 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70834
70835         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70836
70837 2007-01-30  Jim Meyering  <jim@meyering.net>
70838
70839         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70840
70841 2007-01-29  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70844         * lib/execute.c: Likewise.
70845         * lib/pipe.c: Likewise.
70846         * lib/printf-args.h: Likewise.
70847         * lib/printf-args.c: Likewise.
70848         * lib/printf-parse.c: Likewise.
70849         * lib/vasnprintf.c: Likewise.
70850
70851 2007-01-29  Eric Blake  <ebb9@byu.net>
70852
70853         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70854         declaration.
70855
70856 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * lib/strptime.h (strptime): Use 'restrict' for args where
70859         POSIX requires this.
70860         * lib/strptime.c (strptime): Likewise.
70861         Change license notice from LGPL to GPL, since gnulib-tool will
70862         change this as needed.
70863         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70864         defined.
70865         Include "strptime.h" first, to check interface.
70866         Do not #undef _LIBC and _NL_CURRENT.
70867         Do not include <stdlib.h>; no longer needed.
70868         Include "time_r.h" and declare ptime_locale_status
70869         only if _LIBC is not defined.
70870         (__P): Remove unused macro.
70871         (match_string): Bring back glibc version, but use it only if _LIBC
70872         is defined.
70873         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70874         Remove unnecessary assertion and abort() call.
70875         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70876         * m4/strptime.m4: Fix serial number comment.
70877         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70878         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70879         (Depends-on): Add time_r.
70880
70881 2007-01-29  Bruno Haible  <bruno@clisp.org>
70882
70883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70884         strptime.
70885         * modules/strptime (Depends-on): Add stdbool.
70886         * lib/strptime.h: Include <time.h> always. Add comments.
70887
70888 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70889
70890         * modules/strptime: New file.
70891         * lib/strptime.h: New file.
70892         * lib/strptime.c: New file.
70893         * m4/strptime.m4: New file.
70894
70895 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * MODULES.html.sh: New module mpsort.
70898         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70899
70900         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70901         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70903         All uses changed.
70904         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70905         All uses changed.
70906         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70907         to _Restrict_.
70908         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70909         the parameter matches the prototype.
70910
70911 2007-01-28  Jim Meyering  <jim@meyering.net>
70912
70913         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70914         sys/time.h here, reverting that part of the previous patch:
70915         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70916
70917 2007-01-28  Bruno Haible  <bruno@clisp.org>
70918
70919         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70920         value of $(SYS_TIME_H).
70921         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70922         remove it conditionally, too. [added by Jim Meyering]
70923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70924         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70925         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70926         GETTIMEOFDAY_REPLACEMENT to 1.
70927
70928 2007-01-28  Bruno Haible  <bruno@clisp.org>
70929
70930         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70931         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70933         Set UNISTD_H instead of UNISTD_H2.
70934         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70935
70936 2007-01-28  Bruno Haible  <bruno@clisp.org>
70937
70938         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70939         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70940
70941 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70942
70943         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70944         (func_create_testdir): Ensure C locale for `grep' and `tr'
70945         character ranges.
70946         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70947         ACLOCAL_AMFLAGS parsing state machine.
70948
70949 2007-01-27  Bruno Haible  <bruno@clisp.org>
70950
70951         * modules/unistr/base: Update.
70952
70953 2007-01-27  Bruno Haible  <bruno@clisp.org>
70954
70955         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70956         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70957         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70958         modules/unistr/u32-mbtouc.
70959         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70960         * lib/unistr.h: Update.
70961         * lib/linebreak.c: Update.
70962         * modules/unistr/u32-mbtouc: Renamed from
70963         modules/unistr/u32-mbtouc-safe.
70964         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70965         * lib/unistr.h: Update.
70966         * lib/unistr/u32-to-u8.c: Update.
70967         * lib/unistr/u32-to-u16.c: Update.
70968
70969 2007-01-27  Bruno Haible  <bruno@clisp.org>
70970
70971         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70972         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70973         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70974         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70975         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70976         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70977         modules/unistr/u16-mbtouc.
70978         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70979         * lib/unistr.h: Update.
70980         * lib/linebreak.c: Update.
70981         * modules/linebreak: Update.
70982         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70983         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70984         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70985         * modules/unistr/u16-mbtouc: Renamed from
70986         modules/unistr/u16-mbtouc-safe.
70987         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70988         * lib/unistr.h: Update.
70989         * lib/unistr/u16-to-u8.c: Update.
70990         * modules/unistr/u16-to-u8: Update.
70991         * lib/unistr/u16-to-u32.c: Update.
70992         * modules/unistr/u16-to-u32: Update.
70993
70994 2007-01-27  Bruno Haible  <bruno@clisp.org>
70995
70996         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70997         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70998         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70999         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71000         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71001         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71002         modules/unistr/u8-mbtouc.
71003         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71004         * lib/unistr.h: Update.
71005         * lib/striconveh.c: Update.
71006         * modules/striconveh: Update.
71007         * lib/linebreak.c: Update.
71008         * modules/linebreak: Update.
71009         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71010         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71011         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71012         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71013         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71014         * lib/unistr.h: Update.
71015         * lib/striconveh.c: Update.
71016         * modules/striconveh: Update.
71017         * lib/unistr/u8-to-u16.c: Update.
71018         * modules/unistr/u8-to-u16: Update.
71019         * lib/unistr/u8-to-u32.c: Update.
71020         * modules/unistr/u8-to-u32: Update.
71021
71022 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71023
71024         Sync from Libtool.
71025         * lib/argz.c: Do not include strings.h nor memory.h, include
71026         string.h unconditionally.  Patch by Simon Josefsson.
71027
71028 2007-01-27  Bruno Haible  <bruno@clisp.org>
71029
71030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71031         from gl_HEADER_STRING_H_BODY.
71032         (gl_HEADER_STRING_H_BODY): Require it.
71033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71034         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71036         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71038         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71040         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71041         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71042         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71043         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71044         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71045         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71046         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71047         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71048
71049 2007-01-27  Bruno Haible  <bruno@clisp.org>
71050
71051         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71052         check_PROGRAMS into noinst_PROGRAMS.
71053         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71054         check_PROGRAMS in this case.
71055         (func_import): Set for_test to false.
71056         (func_create_testdir): Set for_test to true.
71057
71058 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71059             Bruno Haible  <bruno@clisp.org>
71060
71061         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71062         (Depends-on): Add string.
71063         (Includes): Use <string.h> instead of strcasestr.h.
71064         * modules/string (Makefile.am): Also substitute the value of
71065         REPLACE_STRCASESTR.
71066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71067         assume strcasestr is declared in <string.h> not <strings.h>. Also
71068         set REPLACE_STRCASESTR.
71069         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71070         REPLACE_STRCASESTR.
71071         * lib/strcasestr.h: Remove file.
71072         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71073         * lib/string_.h (strcasestr): New declaration.
71074
71075 2007-01-27  Bruno Haible  <bruno@clisp.org>
71076
71077         * lib/string_.h: Use 'extern'.
71078
71079 2007-01-27  Jim Meyering  <jim@meyering.net>
71080
71081         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71082         of set-but-not-used local, "q".
71083
71084         * lib/mempcpy.c: Include <config.h> before <string.h>.
71085         This fixes a compilation error on HP-UX, due to the system's
71086         "restrict"-using mempcpy prototype.
71087
71088 2007-01-26  Bruno Haible  <bruno@clisp.org>
71089
71090         Small optimization.
71091         * lib/javacomp.c: Include c-strstr.h.
71092          (is_envjavac_gcj): Use c_strstr instead of strstr.
71093         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71094
71095 2007-01-26  Bruno Haible  <bruno@clisp.org>
71096
71097         * MODULES.html.sh (Unicode string functions): Add the new modules.
71098
71099         * modules/uniconv/u32-strconv-to-locale: New file.
71100         * lib/uniconv/u32-strconv-to-locale.c: New file.
71101
71102         * modules/uniconv/u16-strconv-to-locale: New file.
71103         * lib/uniconv/u16-strconv-to-locale.c: New file.
71104
71105         * modules/uniconv/u8-strconv-to-locale: New file.
71106         * lib/uniconv/u8-strconv-to-locale.c: New file.
71107
71108         * modules/uniconv/u32-strconv-from-locale: New file.
71109         * lib/uniconv/u32-strconv-from-locale.c: New file.
71110
71111         * modules/uniconv/u16-strconv-from-locale: New file.
71112         * lib/uniconv/u16-strconv-from-locale.c: New file.
71113
71114         * modules/uniconv/u8-strconv-from-locale: New file.
71115         * lib/uniconv/u8-strconv-from-locale.c: New file.
71116
71117         * modules/uniconv/u32-strconv-to-enc: New file.
71118         * lib/uniconv/u32-strconv-to-enc.c: New file.
71119         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71120         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71121
71122         * modules/uniconv/u16-strconv-to-enc: New file.
71123         * lib/uniconv/u16-strconv-to-enc.c: New file.
71124         * lib/uniconv/u-strconv-to-enc.h: New file.
71125         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71126         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71127
71128         * modules/uniconv/u8-strconv-to-enc: New file.
71129         * lib/uniconv/u8-strconv-to-enc.c: New file.
71130         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71131         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71132
71133         * modules/uniconv/u32-strconv-from-enc: New file.
71134         * lib/uniconv/u32-strconv-from-enc.c: New file.
71135         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71136         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71137
71138         * modules/uniconv/u16-strconv-from-enc: New file.
71139         * lib/uniconv/u16-strconv-from-enc.c: New file.
71140         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71141         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71142
71143         * modules/uniconv/u8-strconv-from-enc: New file.
71144         * lib/uniconv/u8-strconv-from-enc.c: New file.
71145         * lib/uniconv/u-strconv-from-enc.h: New file.
71146         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71147         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71148
71149         * modules/uniconv/u32-conv-from-enc: New file.
71150         * lib/uniconv/u32-conv-from-enc.c: New file.
71151         * modules/uniconv/u32-conv-from-enc-tests: New file.
71152         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71153
71154         * modules/uniconv/u16-conv-from-enc: New file.
71155         * lib/uniconv/u16-conv-from-enc.c: New file.
71156         * lib/uniconv/u-conv-from-enc.h: New file.
71157         * modules/uniconv/u16-conv-from-enc-tests: New file.
71158         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71159
71160         * modules/uniconv/u8-conv-from-enc: New file.
71161         * lib/uniconv/u8-conv-from-enc.c: New file.
71162         * modules/uniconv/u8-conv-from-enc-tests: New file.
71163         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71164
71165         * modules/uniconv/base: New file.
71166         * lib/uniconv.h: New file.
71167
71168 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * doc/gnulib-tool.texi (Initial import): Update to match current
71171         behavior with strdup module.
71172         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71173         * lib/memmem.h: Remove; all uses removed.  This is now done
71174         by <string.h>.
71175         * lib/mempcpy.h: Likewise.
71176         * lib/memrchr.h: Likewise.
71177         * lib/stpcpy.h: Likewise.
71178         * lib/stpncpy.h: Likewise.
71179         * lib/strcase.h: Likewise.
71180         * lib/strchrnul.h: Likewise.
71181         * lib/strdup.h: Likewise.
71182         * lib/strndup.h: Likewise.
71183         * lib/strnlen.h: Likewise.
71184         * lib/strpbrk.h: Likewise.
71185         * lib/strsep.h: Likewise.
71186         * lib/strstr.h: Likewise.
71187         * lib/strtok_r.h: Likewise.
71188         * lib/string_.h: New file.
71189         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71190         Rely on <string.h> instead.
71191         * lib/canon-host.c: Likewise.
71192         * lib/chdir-long.c: Likewise.
71193         * lib/concatpath.c: Likewise.
71194         * lib/exclude.c: Likewise.
71195         * lib/fchdir.c: Likewise.
71196         * lib/getaddrinfo.c: Likewise.
71197         * lib/getcwd.c: Likewise.
71198         * lib/getsubopt.c: Likewise.
71199         * lib/glob.c: Likewise.
71200         * lib/hard-locale.c: Likewise.
71201         * lib/iconvme.c: Likewise.
71202         * lib/javacomp.c: Likewise.
71203         * lib/mempcpy.c: Likewise.
71204         * lib/memrchr.c: Likewise.
71205         * lib/regex_internal.h: Likewise.
71206         * lib/stpncpy.c: Likewise.
71207         * lib/strcasecmp.c: Likewise.
71208         * lib/strchrnul.c: Likewise.
71209         * lib/strdup.c: Likewise.
71210         * lib/striconv.c: Likewise.
71211         * lib/striconveh.c: Likewise.
71212         * lib/striconveha.c: Likewise.
71213         * lib/strncasecmp.c: Likewise.
71214         * lib/strndup.c: Likewise.
71215         * lib/strnlen.c: Likewise.
71216         * lib/strsep.c: Likewise.
71217         * lib/strstr.c: Likewise.
71218         * lib/strtok_r.c: Likewise.
71219         * lib/userspec.c: Likewise.
71220         * lib/w32spawn.h: Likewise.
71221         * lib/xstrndup.c: Likewise.
71222         * lib/mountlist.c (strstr): Remove decl.
71223         * m4/string_h.m4: New file.
71224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71227         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71228         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71229         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71230         Set REPLACE_STRCASECMP if necessary.
71231         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71232         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71233         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71235         HAVE_DECL_STRDUP if necessary.
71236         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71237         since gl_FUNC_STRNDUP does that now.
71238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71239         Check for decl here...
71240         (gl_PREREQ_STRNLEN): ... not here.
71241         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71242         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71243         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71244         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71245         necessary.
71246         * modules/string: New file.
71247         * modules/memmem (Files): Remove special-purpose include file.
71248         (Depends-on): Add string.
71249         (Include): Include <string.h>, not the removed file.
71250         * modules/mempcpy: Likewise.
71251         * modules/memrchr: Likewise.
71252         * modules/stpcpy: Likewise.
71253         * modules/stpncpy: Likewise.
71254         * modules/strcase: Likewise.
71255         * modules/strchrnul: Likewise.
71256         * modules/strdup: Likewise.
71257         * modules/strndup: Likewise.
71258         * modules/strnlen: Likewise.
71259         * modules/strpbrk: Likewise.
71260         * modules/strsep: Likewise.
71261         * modules/strstr: Likewise.
71262         * modules/strtok_r: Likewise.
71263         * tests/test-dirname.c: Don't include "strdup.h", since
71264         <string.h> now suffices.
71265         * tests/test-memmem.c: Don't include "memmem.h", since
71266         <string.h> now suffices.
71267
71268 2007-01-25  Bruno Haible  <bruno@clisp.org>
71269
71270         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71271         *resultp is 0.
71272
71273         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71274         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71275         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71276         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71277
71278         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71279         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71280         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71281         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71282         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71283         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71284
71285 2007-01-24  Bruno Haible  <bruno@clisp.org>
71286
71287         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71289         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71290         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71291         gl_FUNC_FTS_CORE.
71292         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71293         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71294         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71295         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71296         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71297         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71298         gl_FUNC_FCHOWNAT.
71299         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71300         gl_FUNC_STRFTIME.
71301         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71302         Reported by Ralf Wildenhues.
71303
71304 2007-01-24  Bruno Haible  <bruno@clisp.org>
71305
71306         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71307         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71308         gl_GETADDRINFO.
71309         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71310         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71311         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71312
71313 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71316         Don't use 'exit'; just return from 'main'.
71317         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71318
71319         * lib/fnmatch_.h: Readjust white space and comments to match
71320         glibc, to avoid spurious diffs.
71321
71322 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71325         2004-12-01 change by Jakub Jelinek, since this code won't compile
71326         if !LIBC.  Problem reported by Bob Proulx.
71327
71328 2007-01-23  Bruno Haible  <bruno@clisp.org>
71329
71330         * lib/striconveh.c: Include c-strcaseeq.h.
71331         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71332         * modules/striconveh (Depends-on): Add c-strcaseeq.
71333
71334 2007-01-23  Bruno Haible  <bruno@clisp.org>
71335
71336         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71337
71338         * modules/c-strcaseeq: New file.
71339         * lib/c-strcaseeq.h: New file.
71340
71341         * modules/streq: New file.
71342         * lib/streq.h: New file.
71343
71344 2007-01-23  Bruno Haible  <bruno@clisp.org>
71345
71346         * modules/striconveha-tests: New file.
71347         * tests/test-striconveha.c: New file.
71348
71349         * lib/striconveha.h: Include <stdbool.h>.
71350         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71351         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71352         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71353         (mem_iconveha): New function.
71354         (str_iconveha_notranslit): Renamed from str_iconveha.
71355         (str_iconveha): New function.
71356         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71357         c-strcase.
71358
71359 2007-01-23  Bruno Haible  <bruno@clisp.org>
71360
71361         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71362         encodings without forgiving before trying any encoding with handler.
71363         (str_iconveha): Try all encodings without forgiving before trying any
71364         encoding with handler.
71365
71366 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71367
71368         Import the following changes from libc.
71369
71370         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71371
71372         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71373
71374         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71375
71376         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71377         normal_bracket label.
71378
71379         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71380
71381         [BZ #361]
71382         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71383         to normal_bracket after fetching the next character.
71384
71385 2007-01-22  Bruno Haible  <bruno@clisp.org>
71386
71387         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71388         argument.
71389         * lib/striconveh.c (iconv_carefully_1): New function.
71390         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71391         argument.
71392         (str_cd_iconveh): Update.
71393         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71394         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71395         * tests/test-striconveh.c (MAGIC): New macro.
71396         (new_offsets): New function.
71397         (main): Test call with and without offsets.
71398
71399 2007-01-22  Bruno Haible  <bruno@clisp.org>
71400
71401         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71402         * modules/sys_select (Makefile.am): Likewise.
71403         * modules/sys_socket (Makefile.am): Likewise.
71404         * modules/sys_time (Makefile.am): Likewise.
71405
71406 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * modules/gettimeofday (License): Change from GPL to LGPL, since
71409         gettimeofday is a library function.
71410
71411 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71412
71413         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71414
71415 2007-01-21  Bruno Haible  <bruno@clisp.org>
71416
71417         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71418
71419 2007-01-21  Bruno Haible  <bruno@clisp.org>
71420
71421         * modules/striconveha: New file.
71422         * lib/striconveha.h: New file.
71423         * lib/striconveha.c: New file.
71424         * MODULES.html.sh (Internationalization functions): Add striconveha.
71425         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71426         string.
71427         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71428
71429 2007-01-21  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71432         * lib/striconveh.c (str_iconveh): Likewise.
71433
71434 2007-01-21  Bruno Haible  <bruno@clisp.org>
71435
71436         * lib/striconveh.h (mem_iconveh): New declaration.
71437         * lib/striconveh.c (mem_iconveh): New function.
71438         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71439
71440 2007-01-21  Bruno Haible  <bruno@clisp.org>
71441
71442         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71443
71444         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71445         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71446         original result buffer.
71447         (str_cd_iconveh): Update.
71448         * tests/test-striconveh.c (main): Update.
71449
71450         * lib/striconv.h (mem_cd_iconv): Change specification.
71451         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71452         result buffer.
71453         (str_cd_iconv): Update.
71454         * tests/test-striconv.c (main): Update.
71455
71456 2007-01-21  Bruno Haible  <bruno@clisp.org>
71457
71458         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71459
71460 2007-01-20  Jim Meyering  <jim@meyering.net>
71461
71462         * lib/userspec.c (parse_with_separator): If a user or group string
71463         starts with "+", skip the corresponding name-to-ID look-up, since
71464         such a look-up must fail: user and group names may not include "+".
71465
71466 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71469         since we now assume the sys_time module.
71470         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71471         check for sys/time.h; no longer needed.
71472         * modules/poll (Depends-on): Depend on sys_time.
71473
71474 2007-01-18  Bruno Haible  <bruno@clisp.org>
71475
71476         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71478
71479         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71480         gettimeofday.
71481
71482         * tests/test-gettimeofday.c: Include <time.h>.
71483         (dummy): Remove variable.
71484
71485         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71486         gl_HEADER_SYS_TIME_H.
71487         (gl_HEADER_SYS_TIME_H): New macro.
71488
71489         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71490         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71492         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71493         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71494         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71495         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71496         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71497         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71498         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71499         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71500
71501         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71502         last change; it caused a compilation error when cross-compiling to
71503         Cygwin.
71504
71505 2007-01-18  Jim Meyering  <jim@meyering.net>
71506
71507         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71508         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71509         than the race-prone "test -d sys || mkdir sys".
71510         (configure.ac): Use AC_PROG_MKDIR_P.
71511         * modules/sys_select: Likewise.
71512         * modules/sys_socket: Likewise.
71513         * modules/sys_time: Likewise.
71514
71515 2007-01-18  Eric Blake  <ebb9@byu.net>
71516
71517         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71518         replace gettimeofday.
71519         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71520         name, to avoid infinite recursion.
71521
71522 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71523
71524         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71525         module sys_time.
71526         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71527         assume timespec.h defines struct timeval.
71528         * lib/settime.c: Likewise.
71529         * lib/utimens.c: Likewise.
71530         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71531         since we now assume the gettimeofday module.
71532         * lib/tempname.c (__gen_tempname): Likewise.
71533         * lib/gettimeofday.h: Remove.
71534         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71535         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71536         Include <time.h>, for 'time()'.
71537         (localtime_buffer_addr): Also use this workaround if
71538         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71539         to simplify the uses.  All uses changed.
71540         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71541         that #undef is inside {}, and 'const' follows type name consistently.
71542         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71543         (gettimeofday): Do not use the maximum possible value for
71544         tv->tv_usec, since that might break usages other than ls.c.
71545         Instead, we'll leave ls.c alone.  This undoes today's patch
71546         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71547         we've never observed the problem but might as well keep the
71548         canary.
71549         * lib/nanosleep.c: Include timespec.h first, for interface check.
71550         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71551         now assume the sys_time module.
71552         * lib/tempname.c: Likewise.
71553         * lib/timespec.h: Likewise.
71554         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71555         needed.
71556         * lib/strftime.c: Likewise.
71557         * lib/timespec.h: Likewise.
71558         * lib/posixtm.c: Include posixtm.h first, for interface check.
71559         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71560         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71561         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71562         * lib/sys_time_.h: New file.
71563         * lib/timespec.h (struct timespec): Use long int, not long.
71564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71565         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71566         Remove obsolescent call to AC_HEADER_TIME.
71567         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71569         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71570         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71571         Likewise.
71572         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71573         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71575         into the sys_time module.  Check for gettimeofday just once.
71576         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71577         for gettimeofday signature to just check the signature.  Merely
71578         compile it, since linking doesn't test signature.  Improve test for
71579         whether gettimeofday.o is actually needed.
71580         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71581         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71582         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71583         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71584         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71585         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71586         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71587         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71588         than worrying about sys/time.h.
71589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71590         Don't bother worrying about TIME_WITH_SYS_TIME.
71591         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71592         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71593         * m4/sys_time_h.m4: New file.
71594         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71595         Don't include sys/time.h.  Return from main rather than exiting.
71596         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71597         all uses changed.
71598         * modules/gethrxtime (Depends-on): Add sys_time.
71599         * modules/gettime (Depends-on): Likewise.
71600         * modules/gettimeofday (Depends-on): Likewise.
71601         * modules/nanosleep (Depends-on): Likewise.
71602         * modules/settime (Depends-on): Likewise.
71603         * modules/tempname (Depends-on): Likewise.
71604         * modules/utimens (Depends-on): Likewise.
71605         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71606         (Include): Change back to <sys/time.h>.
71607         (Maintainer): Add self.
71608         * modules/sys_time: New file.
71609         * modules/tempname (Depends-on): Add gettimeofday.
71610         * tests/test-gettimeofday.c: Include <sys/time.h>
71611         rather than gettimeofday.h.
71612
71613 2007-01-17  Bruno Haible  <bruno@clisp.org>
71614
71615         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71616         the license default to GPL.
71617         (func_create_testdir): Don't complain if a module is LGPL and its
71618         tests module depends on GPLed modules.
71619
71620 2007-01-17  Bruno Haible  <bruno@clisp.org>
71621
71622         * lib/gettimeofday.c (gettimeofday): Add code for the case
71623         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71624         maximum possible value for tv->tv_usec, rather than the minimum one.
71625
71626 2005-10-08  Martin Lambers  <marlam@marlam.de>
71627 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71628 2007-01-16  Bruno Haible  <bruno@clisp.org>
71629
71630         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71631         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71632         gl_FUNC_GETTIMEOFDAY.
71633         (Include): Add gettimeofday.h.
71634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71635         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71636         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71637         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71638         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71639         * lib/gettimeofday.h: New file.
71640         * lib/gettimeofday.c: Include <sys/timeb.h>.
71641         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71642         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71643         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71644         fall back on time().
71645
71646         * tests/test-gettimeofday.c: New file.
71647         * modules/gettimeofday-tests: New file.
71648
71649 2007-01-16  Eric Blake  <ebb9@byu.net>
71650
71651         * modules/fnmatch (Depends-on): Depend on wchar.
71652         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71653         * m4/fnmatch.m4: Likewise.
71654         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71655         * m4/mbchar.m4: Likewise.
71656         * modules/mbswidth (Depends-on): Depend on wchar.
71657         * lib/mbswidth.c: Assume <wchar.h>.
71658         * m4/mbswidth.m4: Likewise.
71659         * modules/quotearg (Depends-on): Depend on wchar.
71660         * lib/quotearg.c: Assume <wchar.h>.
71661         * m4/quotearg.m4: Likewise.
71662         * modules/regex (Depends-on): Depend on wchar.
71663         * lib/regex_internal.h: Assume <wchar.h>.
71664         * m4/regex.m4: Likewise.
71665         * modules/stdint (Depends-on): Depend on wchar.
71666         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71667         * m4/stdint.m4: Likewise.
71668         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71669         * modules/strftime (Depends-on): Depend on wchar.
71670         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71671         * modules/strtol (Depends-on): Depend on wchar.
71672         * lib/strtol.c: Assume <wchar.h>.
71673         * modules/wcwidth (Depends-on): Depend on wchar.
71674         * lib/wcwidth.h: Assume <wchar.h>.
71675         * m4/wcwidth.m4: Likewise.
71676
71677 2007-01-16  Bruno Haible  <bruno@clisp.org>
71678
71679         * modules/csharpexec-script: New, created from...
71680         * modules/csharpexec: ... this.
71681
71682 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71683
71684         * modules/javaexec-script: New, created from...
71685         * modules/javaexec: ... this.
71686
71687 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71688
71689         * modules/poll (Dependencies): Add sys_select.
71690
71691 2007-01-15  Jim Meyering  <jim@meyering.net>
71692
71693         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71694         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71695         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71696         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71697
71698 2007-01-15  Bruno Haible  <bruno@clisp.org>
71699
71700         * modules/striconveh: New file.
71701         * lib/striconveh.h: New file.
71702         * lib/striconveh.c: New file.
71703         * MODULES.html.sh (Internationalization functions): Add striconveh.
71704
71705         * modules/striconveh-tests: New file.
71706         * tests/test-striconveh.c: New file.
71707
71708 2007-01-15  Bruno Haible  <bruno@clisp.org>
71709
71710         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71711         not from GNU libiconv or GNU libc.
71712
71713 2007-01-15  Bruno Haible  <bruno@clisp.org>
71714
71715         * doc/gnulib-intro.texi (Copyright): Explain the different license
71716         terms for module descriptions, autoconf macros, tests, documentation.
71717
71718 2007-01-14  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/striconv-tests: New file.
71721         * tests/test-striconv.c: New file.
71722
71723 2007-01-14  Bruno Haible  <bruno@clisp.org>
71724
71725         * modules/iconv-tests: New file.
71726         * tests/test-iconv.c: New file.
71727
71728 2007-01-14  Bruno Haible  <bruno@clisp.org>
71729
71730         * gnulib-tool (func_get_license): For test modules, use the license of
71731         the main module.
71732
71733 2007-01-14  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71736         if iconv is found to exist.
71737
71738 2007-01-14  Bruno Haible  <bruno@clisp.org>
71739
71740         * modules/c-ctype-tests: New file.
71741         * tests/test-c-ctype.c: New file.
71742
71743 2007-01-14  Bruno Haible  <bruno@clisp.org>
71744
71745         * modules/binary-io-tests: New file.
71746         * tests/test-binary-io.sh: New file.
71747         * tests/test-binary-io.c: New file.
71748
71749 2007-01-14  Bruno Haible  <bruno@clisp.org>
71750
71751         * modules/array-oset-tests: New file.
71752         * tests/test-array_oset.c: New file.
71753
71754 2007-01-14  Bruno Haible  <bruno@clisp.org>
71755
71756         * modules/array-list-tests: New file.
71757         * tests/test-array_list.c: New file.
71758
71759 2007-01-14  Bruno Haible  <bruno@clisp.org>
71760
71761         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71762         and make.
71763         Reported by Simon Josefsson in
71764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71765
71766 2007-01-14  Bruno Haible  <bruno@clisp.org>
71767
71768         * modules/allocsa-tests: New file.
71769         * tests/test-allocsa.c: New file.
71770
71771 2007-01-14  Bruno Haible  <bruno@clisp.org>
71772
71773         * modules/fchdir (Depends-on): Add absolute-header.
71774         * modules/unistd (Depends-on): Likewise.
71775
71776 2006-12-30  Bruno Haible  <bruno@clisp.org>
71777
71778         * modules/fchdir: New file.
71779         * modules/unistd (Files): Add lib/unistd_.h.
71780         (Makefile.am): Generate unistd.h from unistd_.h.
71781         * lib/fchdir.c: New file.
71782         * lib/dirent_.h: New file.
71783         * lib/unistd_.h: New file.
71784         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71785         * m4/fchdir.m4: New file.
71786         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71787         (gl_HEADER_UNISTD): Invoke it.
71788         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71789         function.
71790         * lib/backupfile.c (opendir, closedir): Undefine.
71791         * lib/chown.c (open, close): Undefine.
71792         * lib/clean-temp.c (open, close): Undefine.
71793         * lib/copy-file.c (open, close): Undefine.
71794         * lib/execute.c (open, close): Undefine.
71795         * lib/fsusage.c (open, close): Undefine.
71796         * lib/gc-gnulib.c (open, close): Undefine.
71797         * lib/getcwd.c (opendir, closedir): Undefine.
71798         * lib/glob.c (opendir, closedir): Undefine.
71799         * lib/javacomp.c (open, close): Undefine.
71800         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71801         * lib/openat-proc.c (open, close): Undefine.
71802         * lib/pagealign_alloc.c (open, close): Undefine.
71803         * lib/pipe.c (open, close): Undefine.
71804         * lib/progreloc.c (open, close): Undefine.
71805         * lib/savedir.c (opendir, closedir): Undefine.
71806         * lib/utime.c (open, close): Undefine.
71807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71808
71809 2007-01-10  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71812
71813 2007-01-12  Eric Blake  <ebb9@byu.net>
71814
71815         Provide a robust <wchar.h>.  Further simplifications are now
71816         possible in other modules, but not included here.
71817         * modules/wchar: New module.
71818         * m4/wchar.m4: New file.
71819         * lib/wchar_.h: Likewise.
71820         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71821         of the new module.
71822         * MODULES.html.sh (Extended multibyte and wide character utilities):
71823         New section.
71824
71825 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71828         to a reasonable default for memory allocation.
71829         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71830         file system that reports garbage st_size values for symlinks.
71831         Problem reported by Liyang Hu.
71832
71833 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71834
71835         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71836         Emacs .#* auto-save files).
71837
71838 2007-01-11  Bruno Haible  <bruno@clisp.org>
71839
71840         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71841         directory.
71842
71843 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71844
71845         Use @...@ consistently in lib/wctype_.h.
71846         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71847         on it being set to 1 or 0.
71848         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71849         go back to AC_SUBSTing it.
71850         * modules/wctype (Makefile.am): Undo previous change.
71851
71852 2007-01-10  Eric Blake  <ebb9@byu.net>
71853
71854         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71855         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71856         * modules/wctype (Makefile.am): Likewise.
71857         Reported by Chris McGuire.
71858
71859 2007-01-10  Jim Meyering  <jim@meyering.net>
71860
71861         fts.c: a small readability/maintainability improvement
71862         * lib/fts.c (fts_read): Make this code slightly more readable and
71863         maintainable by hoisting the "sp->fts_cur = p" assignments to
71864         immediately follow the statements that set P.  Derived from
71865         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71866
71867 2007-01-10  Eric Blake  <ebb9@byu.net>
71868
71869         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71870         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71872         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71873         Reported by Chris McGuire.
71874
71875 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71876
71877         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71878         in sed script.
71879
71880 2007-01-09  Bruno Haible  <bruno@clisp.org>
71881
71882         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71883         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71884         variables.
71885         (func_module): Use them.
71886
71887 2007-01-09  Bruno Haible  <bruno@clisp.org>
71888
71889         * modules/unistr/base: New file.
71890         * lib/unistr.h: New file.
71891
71892         * modules/unistr/u8-to-u16: New file.
71893         * lib/unistr/u8-to-u16.c: New file.
71894
71895         * modules/unistr/u8-to-u32: New file.
71896         * lib/unistr/u8-to-u32.c: New file.
71897
71898         * modules/unistr/u16-to-u8: New file.
71899         * lib/unistr/u16-to-u8.c: New file.
71900
71901         * modules/unistr/u16-to-u32: New file.
71902         * lib/unistr/u16-to-u32.c: New file.
71903
71904         * modules/unistr/u32-to-u8: New file.
71905         * lib/unistr/u32-to-u8.c: New file.
71906
71907         * modules/unistr/u32-to-u16: New file.
71908         * lib/unistr/u32-to-u16.c: New file.
71909
71910         * modules/unistr/u8-check: New file.
71911         * modules/unistr/u16-check: New file.
71912         * modules/unistr/u32-check: New file.
71913         * lib/unistr/u8-check.c: New file.
71914         * lib/unistr/u16-check.c: New file.
71915         * lib/unistr/u32-check.c: New file.
71916
71917         * modules/unistr/u8-chr: New file.
71918         * modules/unistr/u16-chr: New file.
71919         * modules/unistr/u32-chr: New file.
71920         * lib/unistr/u8-chr.c: New file.
71921         * lib/unistr/u16-chr.c: New file.
71922         * lib/unistr/u32-chr.c: New file.
71923
71924         * modules/unistr/u8-cmp: New file.
71925         * modules/unistr/u16-cmp: New file.
71926         * modules/unistr/u32-cmp: New file.
71927         * lib/unistr/u8-cmp.c: New file.
71928         * lib/unistr/u16-cmp.c: New file.
71929         * lib/unistr/u32-cmp.c: New file.
71930
71931         * modules/unistr/u8-cpy: New file.
71932         * modules/unistr/u16-cpy: New file.
71933         * modules/unistr/u32-cpy: New file.
71934         * lib/unistr/u8-cpy.c: New file.
71935         * lib/unistr/u16-cpy.c: New file.
71936         * lib/unistr/u32-cpy.c: New file.
71937         * lib/unistr/u-cpy.h: New file.
71938
71939         * modules/unistr/u8-cpy-alloc: New file.
71940         * modules/unistr/u16-cpy-alloc: New file.
71941         * modules/unistr/u32-cpy-alloc: New file.
71942         * lib/unistr/u8-cpy-alloc.c: New file.
71943         * lib/unistr/u16-cpy-alloc.c: New file.
71944         * lib/unistr/u32-cpy-alloc.c: New file.
71945         * lib/unistr/u-cpy-alloc.h: New file.
71946
71947         * modules/unistr/u8-endswith: New file.
71948         * modules/unistr/u16-endswith: New file.
71949         * modules/unistr/u32-endswith: New file.
71950         * lib/unistr/u8-endswith.c: New file.
71951         * lib/unistr/u16-endswith.c: New file.
71952         * lib/unistr/u32-endswith.c: New file.
71953         * lib/unistr/u-endswith.h: New file.
71954
71955         * modules/unistr/u8-mblen: New file.
71956         * modules/unistr/u16-mblen: New file.
71957         * modules/unistr/u32-mblen: New file.
71958         * lib/unistr/u8-mblen.c: New file.
71959         * lib/unistr/u16-mblen.c: New file.
71960         * lib/unistr/u32-mblen.c: New file.
71961
71962         * modules/unistr/u8-mbtouc: New file.
71963         * modules/unistr/u16-mbtouc: New file.
71964         * modules/unistr/u32-mbtouc: New file.
71965         * lib/unistr/u8-mbtouc.c: New file.
71966         * lib/unistr/u16-mbtouc.c: New file.
71967         * lib/unistr/u32-mbtouc.c: New file.
71968
71969         * modules/unistr/u8-mbtouc-safe: New file.
71970         * modules/unistr/u16-mbtouc-safe: New file.
71971         * modules/unistr/u32-mbtouc-safe: New file.
71972         * lib/unistr/u8-mbtouc-safe.c: New file.
71973         * lib/unistr/u16-mbtouc-safe.c: New file.
71974         * lib/unistr/u32-mbtouc-safe.c: New file.
71975
71976         * modules/unistr/u8-move: New file.
71977         * modules/unistr/u16-move: New file.
71978         * modules/unistr/u32-move: New file.
71979         * lib/unistr/u8-move.c: New file.
71980         * lib/unistr/u16-move.c: New file.
71981         * lib/unistr/u32-move.c: New file.
71982         * lib/unistr/u-move.h: New file.
71983
71984         * modules/unistr/u8-next: New file.
71985         * modules/unistr/u16-next: New file.
71986         * modules/unistr/u32-next: New file.
71987         * lib/unistr/u8-next.c: New file.
71988         * lib/unistr/u16-next.c: New file.
71989         * lib/unistr/u32-next.c: New file.
71990
71991         * modules/unistr/u8-prev: New file.
71992         * modules/unistr/u16-prev: New file.
71993         * modules/unistr/u32-prev: New file.
71994         * lib/unistr/u8-prev.c: New file.
71995         * lib/unistr/u16-prev.c: New file.
71996         * lib/unistr/u32-prev.c: New file.
71997
71998         * modules/unistr/u8-set: New file.
71999         * modules/unistr/u16-set: New file.
72000         * modules/unistr/u32-set: New file.
72001         * lib/unistr/u8-set.c: New file.
72002         * lib/unistr/u16-set.c: New file.
72003         * lib/unistr/u32-set.c: New file.
72004         * lib/unistr/u-set.h: New file.
72005
72006         * modules/unistr/u8-startswith: New file.
72007         * modules/unistr/u16-startswith: New file.
72008         * modules/unistr/u32-startswith: New file.
72009         * lib/unistr/u8-startswith.c: New file.
72010         * lib/unistr/u16-startswith.c: New file.
72011         * lib/unistr/u32-startswith.c: New file.
72012         * lib/unistr/u-startswith.h: New file.
72013
72014         * modules/unistr/u8-stpcpy: New file.
72015         * modules/unistr/u16-stpcpy: New file.
72016         * modules/unistr/u32-stpcpy: New file.
72017         * lib/unistr/u8-stpcpy.c: New file.
72018         * lib/unistr/u16-stpcpy.c: New file.
72019         * lib/unistr/u32-stpcpy.c: New file.
72020         * lib/unistr/u-stpcpy.h: New file.
72021
72022         * modules/unistr/u8-stpncpy: New file.
72023         * modules/unistr/u16-stpncpy: New file.
72024         * modules/unistr/u32-stpncpy: New file.
72025         * lib/unistr/u8-stpncpy.c: New file.
72026         * lib/unistr/u16-stpncpy.c: New file.
72027         * lib/unistr/u32-stpncpy.c: New file.
72028         * lib/unistr/u-stpncpy.h: New file.
72029
72030         * modules/unistr/u8-strcat: New file.
72031         * modules/unistr/u16-strcat: New file.
72032         * modules/unistr/u32-strcat: New file.
72033         * lib/unistr/u8-strcat.c: New file.
72034         * lib/unistr/u16-strcat.c: New file.
72035         * lib/unistr/u32-strcat.c: New file.
72036         * lib/unistr/u-strcat.h: New file.
72037
72038         * modules/unistr/u8-strchr: New file.
72039         * modules/unistr/u16-strchr: New file.
72040         * modules/unistr/u32-strchr: New file.
72041         * lib/unistr/u8-strchr.c: New file.
72042         * lib/unistr/u16-strchr.c: New file.
72043         * lib/unistr/u32-strchr.c: New file.
72044
72045         * modules/unistr/u8-strcmp: New file.
72046         * modules/unistr/u16-strcmp: New file.
72047         * modules/unistr/u32-strcmp: New file.
72048         * lib/unistr/u8-strcmp.c: New file.
72049         * lib/unistr/u16-strcmp.c: New file.
72050         * lib/unistr/u32-strcmp.c: New file.
72051
72052         * modules/unistr/u8-strcpy: New file.
72053         * modules/unistr/u16-strcpy: New file.
72054         * modules/unistr/u32-strcpy: New file.
72055         * lib/unistr/u8-strcpy.c: New file.
72056         * lib/unistr/u16-strcpy.c: New file.
72057         * lib/unistr/u32-strcpy.c: New file.
72058         * lib/unistr/u-strcpy.h: New file.
72059
72060         * modules/unistr/u8-strcspn: New file.
72061         * modules/unistr/u16-strcspn: New file.
72062         * modules/unistr/u32-strcspn: New file.
72063         * lib/unistr/u8-strcspn.c: New file.
72064         * lib/unistr/u16-strcspn.c: New file.
72065         * lib/unistr/u32-strcspn.c: New file.
72066         * lib/unistr/u-strcspn.h: New file.
72067
72068         * modules/unistr/u8-strdup: New file.
72069         * modules/unistr/u16-strdup: New file.
72070         * modules/unistr/u32-strdup: New file.
72071         * lib/unistr/u8-strdup.c: New file.
72072         * lib/unistr/u16-strdup.c: New file.
72073         * lib/unistr/u32-strdup.c: New file.
72074         * lib/unistr/u-strdup.h: New file.
72075
72076         * modules/unistr/u8-strlen: New file.
72077         * modules/unistr/u16-strlen: New file.
72078         * modules/unistr/u32-strlen: New file.
72079         * lib/unistr/u8-strlen.c: New file.
72080         * lib/unistr/u16-strlen.c: New file.
72081         * lib/unistr/u32-strlen.c: New file.
72082         * lib/unistr/u-strlen.h: New file.
72083
72084         * modules/unistr/u8-strmblen: New file.
72085         * modules/unistr/u16-strmblen: New file.
72086         * modules/unistr/u32-strmblen: New file.
72087         * lib/unistr/u8-strmblen.c: New file.
72088         * lib/unistr/u16-strmblen.c: New file.
72089         * lib/unistr/u32-strmblen.c: New file.
72090
72091         * modules/unistr/u8-strmbtouc: New file.
72092         * modules/unistr/u16-strmbtouc: New file.
72093         * modules/unistr/u32-strmbtouc: New file.
72094         * lib/unistr/u8-strmbtouc.c: New file.
72095         * lib/unistr/u16-strmbtouc.c: New file.
72096         * lib/unistr/u32-strmbtouc.c: New file.
72097
72098         * modules/unistr/u8-strncat: New file.
72099         * modules/unistr/u16-strncat: New file.
72100         * modules/unistr/u32-strncat: New file.
72101         * lib/unistr/u8-strncat.c: New file.
72102         * lib/unistr/u16-strncat.c: New file.
72103         * lib/unistr/u32-strncat.c: New file.
72104         * lib/unistr/u-strncat.h: New file.
72105
72106         * modules/unistr/u8-strncmp: New file.
72107         * modules/unistr/u16-strncmp: New file.
72108         * modules/unistr/u32-strncmp: New file.
72109         * lib/unistr/u8-strncmp.c: New file.
72110         * lib/unistr/u16-strncmp.c: New file.
72111         * lib/unistr/u32-strncmp.c: New file.
72112
72113         * modules/unistr/u8-strncpy: New file.
72114         * modules/unistr/u16-strncpy: New file.
72115         * modules/unistr/u32-strncpy: New file.
72116         * lib/unistr/u8-strncpy.c: New file.
72117         * lib/unistr/u16-strncpy.c: New file.
72118         * lib/unistr/u32-strncpy.c: New file.
72119         * lib/unistr/u-strncpy.h: New file.
72120
72121         * modules/unistr/u8-strnlen: New file.
72122         * modules/unistr/u16-strnlen: New file.
72123         * modules/unistr/u32-strnlen: New file.
72124         * lib/unistr/u8-strnlen.c: New file.
72125         * lib/unistr/u16-strnlen.c: New file.
72126         * lib/unistr/u32-strnlen.c: New file.
72127         * lib/unistr/u-strnlen.h: New file.
72128
72129         * modules/unistr/u8-strpbrk: New file.
72130         * modules/unistr/u16-strpbrk: New file.
72131         * modules/unistr/u32-strpbrk: New file.
72132         * lib/unistr/u8-strpbrk.c: New file.
72133         * lib/unistr/u16-strpbrk.c: New file.
72134         * lib/unistr/u32-strpbrk.c: New file.
72135         * lib/unistr/u-strpbrk.h: New file.
72136
72137         * modules/unistr/u8-strrchr: New file.
72138         * modules/unistr/u16-strrchr: New file.
72139         * modules/unistr/u32-strrchr: New file.
72140         * lib/unistr/u8-strrchr.c: New file.
72141         * lib/unistr/u16-strrchr.c: New file.
72142         * lib/unistr/u32-strrchr.c: New file.
72143
72144         * modules/unistr/u8-strspn: New file.
72145         * modules/unistr/u16-strspn: New file.
72146         * modules/unistr/u32-strspn: New file.
72147         * lib/unistr/u8-strspn.c: New file.
72148         * lib/unistr/u16-strspn.c: New file.
72149         * lib/unistr/u32-strspn.c: New file.
72150         * lib/unistr/u-strspn.h: New file.
72151
72152         * modules/unistr/u8-strstr: New file.
72153         * modules/unistr/u16-strstr: New file.
72154         * modules/unistr/u32-strstr: New file.
72155         * lib/unistr/u8-strstr.c: New file.
72156         * lib/unistr/u16-strstr.c: New file.
72157         * lib/unistr/u32-strstr.c: New file.
72158         * lib/unistr/u-strstr.h: New file.
72159
72160         * modules/unistr/u8-strtok: New file.
72161         * modules/unistr/u16-strtok: New file.
72162         * modules/unistr/u32-strtok: New file.
72163         * lib/unistr/u8-strtok.c: New file.
72164         * lib/unistr/u16-strtok.c: New file.
72165         * lib/unistr/u32-strtok.c: New file.
72166         * lib/unistr/u-strtok.h: New file.
72167
72168         * modules/unistr/u8-uctomb: New file.
72169         * modules/unistr/u16-uctomb: New file.
72170         * modules/unistr/u32-uctomb: New file.
72171         * lib/unistr/u8-uctomb.c: New file.
72172         * lib/unistr/u16-uctomb.c: New file.
72173         * lib/unistr/u32-uctomb.c: New file.
72174
72175         * MODULES.html.sh (Unicode string functions): Add the new modules.
72176
72177 2007-01-08  Bruno Haible  <bruno@clisp.org>
72178
72179         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72180         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72181         subdirectories.
72182
72183 2007-01-08  Karl Berry  <karl@gnu.org>
72184
72185         * doc/error.texi: mention that main() fns must set program_name
72186         when progname is used.
72187
72188 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72191         WCTYPE_H is empty, for the benefit of builds from non-distclean
72192         directories.  Problem reported by Eric Blake in
72193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72194
72195 2007-01-08  Bruno Haible  <bruno@clisp.org>
72196
72197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72198         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72199         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72200         PROVIDE_CANONICALIZE_FILENAME_MODE.
72201         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72202
72203 2007-01-08  Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72206         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72207         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72208         * lib/fts.c: Likewise.
72209         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72210
72211 2006-12-25  Bruno Haible  <bruno@clisp.org>
72212
72213         * modules/utf8-ucs4-safe: New file.
72214         * lib/utf8-ucs4-safe.h: New file.
72215         * lib/unistr/utf8-ucs4-safe.c: New file.
72216
72217         * modules/utf16-ucs4-safe: New file.
72218         * lib/utf16-ucs4-safe.h: New file.
72219         * lib/unistr/utf16-ucs4-safe.c: New file.
72220
72221         * MODULES.html.sh (Unicode string functions): Add the new modules.
72222
72223 2007-01-08  Bruno Haible  <bruno@clisp.org>
72224
72225         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72226         (Depends-on): Add unitypes.
72227         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72228         (u8_mbtouc_aux): Move out to separate file.
72229         (u8_mbtouc): Use ucs4_t, uint8_t types.
72230         * lib/unistr/utf8-ucs4.c: New file.
72231
72232         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72233         (Depends-on): Add unitypes.
72234         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72235         (u16_mbtouc_aux): Move out to separate file.
72236         (u16_mbtouc): Use ucs4_t, uint16_t types.
72237         * lib/unistr/utf16-ucs4.c: New file.
72238
72239         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72240         (Depends-on): Add unitypes.
72241         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72242         (u8_uctomb_aux): Move out to separate file.
72243         (u8_uctomb): Use ucs4_t, uint8_t types.
72244         * lib/unistr/ucs4-utf8.c: New file.
72245
72246         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72247         (Depends-on): Add unitypes.
72248         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72249         (u16_uctomb_aux): Move out to separate file.
72250         (u16_uctomb): Use ucs4_t, uint16_t types.
72251         * lib/unistr/ucs4-utf16.c: New file.
72252
72253 2006-12-25  Bruno Haible  <bruno@clisp.org>
72254
72255         * modules/unitypes: New file.
72256         * lib/unitypes.h: New file.
72257         * MODULES.html.sh (func_all_modules): New section "Unicode string
72258         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72259         this section. Add unitypes.
72260
72261 2007-01-08  Bruno Haible  <bruno@clisp.org>
72262
72263         Avoid variable names that conflict with those from libtool.
72264         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72265         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72266         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72267         library_names_spec to acl_library_names_spec, hardcode_* to
72268         acl_hardcode_*.
72269         Reported by Ralf Wildenhues.
72270
72271 2007-01-08  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72274         definition.
72275         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72276         definition.
72277         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72278         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72279         definition.
72280         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72281         definition.
72282         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72283         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72284         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72285         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72286         definition.
72287         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72288         definition.
72289         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72290         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72291         GC_USE_<algorithm>.
72292         * lib/gc-libgcrypt.c: Likewise.
72293         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72294         * modules/gc-arctwo (configure.ac): Likewise.
72295         * modules/gc-des (configure.ac): Likewise.
72296         * modules/gc-hmac-md5 (configure.ac): Likewise.
72297         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72298         * modules/gc-md2 (configure.ac): Likewise.
72299         * modules/gc-md4 (configure.ac): Likewise.
72300         * modules/gc-md5 (configure.ac): Likewise.
72301         * modules/gc-random (configure.ac): Likewise.
72302         * modules/gc-rijndael (configure.ac): Likewise.
72303         * modules/gc-sha1 (configure.ac): Likewise.
72304
72305 2007-01-08  Bruno Haible  <bruno@clisp.org>
72306
72307         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72308         macro definition.
72309         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72310         definition.
72311         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72312         definition.
72313         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72314         * modules/fcntl-safer (configure.ac): Likewise.
72315         * modules/fopen-safer (configure.ac): Likewise.
72316         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72317         GNULIB_FWRITEERROR macro definition.
72318
72319 2007-01-08  Bruno Haible  <bruno@clisp.org>
72320
72321         * m4/gnulib-common.m4: New file.
72322         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72323         (func_get_filelist): Add m4/gnulib-common.m4.
72324
72325 2007-01-08  Bruno Haible  <bruno@clisp.org>
72326
72327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72328         command.
72329
72330 2007-01-08  Jim Meyering  <jim@meyering.net>
72331
72332         Use a more robust test for a "can't happen" condition.
72333         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72334         narrowed the st_size value.  Presuming the "can't happen" condition
72335         is true, that narrowing could conceivably convert an invalid st_size
72336         value into a valid one.  Instead, use a change based on Matthew
72337         Woehlke's original patch.
72338
72339         Slight readability improvement: use an assert-like macro
72340         in place of literal "abort ()" uses.
72341         * lib/fts.c (fts_assert): Define.
72342         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72343         Use this macro instead of a bare 'abort'.
72344
72345 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72346
72347         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72348         simply work around them.
72349         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72350         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72351         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72352         declaring.
72353         Don't bother to define as macros, since the standard doesn't require it.
72354         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72355         longer worry about IRIX 5.3.
72356         (HAVE_WCTYPE_CTMP_BUG): Remove.
72357
72358 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72361         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72362         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72363         Problems reported by Georg Schwarz for IRIX 5.3.
72364
72365         * gnulib-tool (autoconf_minversion): Take the maximum version number
72366         found, not the minimum.  Problem reported by James Youngman.
72367
72368 2007-01-03  Karl Berry  <karl@gnu.org>
72369
72370         * doc/error.texi: new file, explaining interaction with progname.
72371         * doc/gnulib.texi: include it.  Update copyright.
72372
72373 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72374
72375         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72376         AC_CANONICAL_HOST, to improve autobuild outputs.
72377
72378 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72379             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72380
72381         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72382         sockets, server sockets, and other file descriptors.  Count errors
72383         to compute the return value.  Reorder the code a bit to be easier
72384         to follow.  Don't set event bits that were not requested (except
72385         POLLERR and POLLHUP).
72386
72387 2007-01-01  Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72390
72391 2007-01-03  Jim Meyering  <jim@meyering.net>
72392
72393         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72394
72395 2007-01-02  Bruno Haible  <bruno@clisp.org>
72396
72397         * modules/settime (Include): Require timespec.h.
72398         * modules/nanosleep (Include): Likewise.
72399
72400 2007-01-01  Bruno Haible  <bruno@clisp.org>
72401
72402         * gnulib-tool (func_emit_copyright_notice): Bump year.
72403         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72404
72405 2007-01-01  Bruno Haible  <bruno@clisp.org>
72406
72407         Improve support for OpenBSD.
72408         * build-aux/config.rpath (libname_spec): Export.
72409         (library_names_spec): New variable. Export.
72410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72411         library_names_spec from the config.rpath output. Locate shared library
72412         through the name pattern in library_names_spec.
72413
72414 2007-01-01  Eric Blake  <ebb9@byu.net>
72415
72416         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72417
72418 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72421         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72422         assume the C locale, and avoid an "eval" that could cause trouble.
72423         Problem with SORT reported by Bob Proulx.
72424
72425         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72426         Define.  Trivial patch from Henning Nielsen Lund, originally
72427         sent to bug-grep@gnu.org today.
72428
72429 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72432         struct stat.  Problem reported by Henning Nielsen Lund.
72433         * lib/acl.c: Include acl.h first, to check interface.  Don't
72434         bother to include sys/types.h and sys/stat.h again.
72435
72436 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         Import the following change from libc; problem reported by
72439         Sven Verdoolaege.
72440
72441         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72442
72443         [BZ #1373]
72444         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72445
72446 2006-12-28  Jim Meyering  <jim@meyering.net>
72447
72448         * build-aux/announce-gen: Do not assume that the package
72449         builds any of tar.gz, tar.bz2, and .xdelta files.
72450         Suggestion from Simon Josefsson.
72451
72452 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72453
72454         * modules/announce-gen: New file.
72455
72456 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72459         handles its gotchas now.
72460         * lib/mbswidth.c: Likewise.
72461         * lib/wcwidth.h: Likewise.
72462         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72463         and iswcntrl; the wctype module does this stuff now.
72464         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72466         * modules/mbchar (Depends-on): Add wctype.
72467         * modules/mbswidth (Depends-on): Likewise.
72468         * modules/wcwidth (Depends-on): Likewise.
72469
72470 2006-12-27  Eric Blake  <ebb9@byu.net>
72471
72472         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72473         module uses more than what <wctype.h> is required to provide.
72474
72475 2006-12-26  Eric Blake  <ebb9@byu.net>
72476
72477         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72478
72479 2006-12-26  Eric Blake  <ebb9@byu.net>
72480
72481         * modules/absolute-header: New module.
72482         * modules/fcntl (Depends-on): Depend on it.
72483         * modules/inttypes (Depends-on): Likewise.
72484         * modules/stdint (Depends-on): Likewise.
72485         * modules/sys_stat (Depends-on): Likewise.
72486         * modules/wctype (Depends-on): Likewise.
72487         * MODULES.html.sh (Support for building libraries and
72488         executables): Document it.
72489
72490 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * gnulib-tool (SED): Remove, undoing previous change.
72493         The problem was that it broke coreutils on Solaris, because
72494         "sed --posix" leaked into a makefile.
72495         (sed): New alias, if 'alias' and GNU sed.
72496
72497 2006-12-24  Jim Meyering  <jim@meyering.net>
72498
72499         Work around an fchownat bug in glibc-2.4:
72500         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72501         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72502         in spite of the -P option.
72503         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72504         New macros.
72505         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72506         * modules/openat (Files): Add lib/fchownat.c.
72507         * lib/openat.c (fchownat): Don't define here.  Move to...
72508         * lib/fchownat.c: ...this new file.
72509
72510 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         Fix bug reported by Bruno Haible in
72513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72514         where quotearg.c didn't compile on Mac OS X 10.2 because it
72515         lacks <wchar.h> and wint_t.
72516         * lib/wctype_.h (__wctype_wint_t): New type.
72517         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72518         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72519         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72520         Arg is now of type __wctype_wint_t, not wint_t.
72521         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72522         substitute HAVE_WINT_T.
72523         * modules/wctype (Files): Add m4/wint_t.m4.
72524         (wctype.h): Substitute HAVE_WINT_T.
72525
72526 2006-12-23  Bruno Haible  <bruno@clisp.org>
72527
72528         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72529
72530 2006-12-23  Bruno Haible  <bruno@clisp.org>
72531
72532         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72533         S_ISLNK.
72534         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72535         mingw.
72536
72537 2006-12-22  Bruno Haible  <bruno@clisp.org>
72538
72539         * lib/copy-file.c: Include acl.h.
72540         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72541         Close the file descriptors only after being done with copy_acl.
72542         * modules/copy-file (Depends-on): Add acl.
72543
72544 2006-12-22  Bruno Haible  <bruno@clisp.org>
72545
72546         * gnulib-tool (SED): New variable.
72547         Use $SED instead of sed everywhere.
72548
72549 2006-12-22  Bruno Haible  <bruno@clisp.org>
72550
72551         * modules/no-c++: New file.
72552         * m4/no-c++.m4: New file.
72553         * MODULES.html.sh (Support for building libraries and executables):
72554         Add no-c++.
72555
72556 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72559         Include <limits.h>, and use its INT_MAX to rewrite the
72560         j loop so that it does not overflow 'int'.  Problem reported by
72561         Ralf Wildenhues in
72562         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72563         Play it safe by shifting left by 1 rather than multiplying by 2,
72564         as GCC is less likely to optimize this away when the value
72565         is signed (when it assumes overflow leads to undefined behavior).
72566         Also, don't assume time_t uses two's complement.
72567
72568 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72569
72570         * MODULES.html.sh: New module wctype.
72571         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72572         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72573         <wctype.h>, since the new wctype module should fix this.
72574         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72575         the wctype module should arrange for it.
72576         * lib/regex_internal.h: Likewise.
72577         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72578         since the wctype module should handle this now.
72579         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72580         * modules/fnmatch (Depends-on): Add wctype.
72581         * modules/quotearg (Depends-on): Likewise.
72582         * modules/regex (Depends-on): Likewise.
72583
72584 2006-12-19  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72587         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72588
72589 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72590
72591         * modules/savewd (Depends-on): Fix dependency on fcntl.
72592
72593 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72596         conforms to C99, rather than relying on the user's environment
72597         setting of STDINT_H.
72598
72599 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72600         and Eric Blake  <ebb9@byu.net>
72601
72602         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72603         This is more consistent with the other defines here.
72604         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72605         Port to z/OS.  Problem reported by Paul Gilmartin.
72606         Change local vars to use gl_ prefix rather than ac_.
72607         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72608         with other defines.
72609         * modules/double-slash-root: New module.
72610         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72611         (Depends-on): Add double-slash-root.
72612         * MODULES.html.sh (File system functions): Mention new module.
72613
72614 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72617         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72618         This is for the benefit of gzip, which doesn't do i18n.
72619
72620 2006-12-12  Jim Meyering  <jim@meyering.net>
72621
72622         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72623         Reported by Andreas Schwab <schwab@suse.de>.
72624
72625 2006-12-12  Bruno Haible  <bruno@clisp.org>
72626
72627         Merge these changes.
72628         2006-09-05  Bruno Haible  <bruno@clisp.org>
72629         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72630         iconv_alloc succeeded.
72631         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72632         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72633         test for " && dest " at the end - dest is always != NULL there. Call
72634         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72635         with 2xNULL arguments, also to flush the state storage. Handle the
72636         IRIX iconv behaviour. Realloc the final result, to throw away unused
72637         memory.
72638
72639 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72642         and fchmodat unconditionally, since glibc 2.4 has them.
72643         Problem reported by Arkadiusz Miskiewicz.
72644
72645 2006-12-10  Bruno Haible  <bruno@clisp.org>
72646
72647         * gnulib-tool (func_import): Show the include files only for those
72648         modules that are copied and specified.
72649         Reported by Karl Berry.
72650
72651 2006-12-08  Jim Meyering  <jim@meyering.net>
72652
72653         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72654         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72655
72656         * build-aux/announce-gen: Add two new options, both optional:
72657         --bootstrap-tools=TOOL_LIST
72658               a comma-separated list of tools, e.g.,
72659               autoconf,automake,bison,gnulib
72660         --gnulib-snapshot-date=DATE
72661               if gnulib is in the bootstrap tool list,
72662               then report this as the snapshot date.
72663               If not specified, use the current date/time.
72664               If you specify a date here, be sure it's UTC.
72665
72666 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72667
72668         * tests/test-argp-2.sh: Fix test to match actual output.
72669         (func_compare): Fix sed script to be portable.
72670
72671 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72674         workaround for this case.  It is not autoconfigured now; offhand
72675         it's hard to see how to autoconfigure it.
72676
72677 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72680         a directory that is about to be chowned.  Such a directory's
72681         initial file permissions should permit the owner only and this
72682         should not be changed until after the chown, since the group and
72683         other bits would be incorrect if they granted permission before
72684         the chown.
72685
72686         Fix porting problem for iswctype reported by Georg Schwarz in:
72687         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72688         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72689         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72691         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72692
72693 2006-12-03  Jim Meyering  <jim@meyering.net>
72694
72695         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72696         p->fts_statp may not yet be defined.
72697         (fts_read): Instead, set it in the caller, once p->fts_statp is
72698         sure to be defined, and corresponds to a top-level directory.
72699         This bug made du -x fail.  Here's the coreutils test case:
72700         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72701         Reported by Mike Frysinger.
72702
72703 2006-12-01  Jim Meyering  <jim@meyering.net>
72704
72705         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72706         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72707         Reported by Simon Josefsson.
72708
72709 2006-11-30  Jim Meyering  <jim@meyering.net>
72710
72711         * m4/warning.m4: Use the all-permissive copyright notice
72712         recommended by RMS (rather than LGPL).
72713         * m4/vararrays.m4: Likewise.
72714         * m4/flexmember.m4: Likewise.
72715
72716 2006-11-29  Bruno Haible  <bruno@clisp.org>
72717
72718         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72719         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72720         using +=.
72721         Reported by Simon Josefsson <simon@josefsson.org>.
72722
72723 2006-11-28  James Youngman <jay@gnu.org>
72724
72725         * README: Advise users that they might find the bug-gnulib@gnu.org
72726         and autotools-announce@gnu.org mailing lists useful.
72727
72728 2006-11-28  Bruno Haible  <bruno@clisp.org>
72729
72730         * m4/ptrdiff_max.m4: Remove file.
72731
72732 2006-11-21  Bruno Haible  <bruno@clisp.org>
72733
72734         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72735         _AC_COMPUTE_INT.
72736         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72737         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72738         _AC_COMPUTE_INT.
72739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72740         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72741         _AC_COMPUTE_INT.
72742         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72743
72744 2006-11-28  Jim Meyering  <jim@meyering.net>
72745
72746         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72747         warning from "gcc -Wshadow" about shadowing the builtin.
72748
72749 2006-11-27  Bruno Haible  <bruno@clisp.org>
72750
72751         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72752         _AC_COMPUTE_INT.
72753         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72754
72755 2006-11-27  Bruno Haible  <bruno@clisp.org>
72756             Paul Eggert  <eggert@cs.ucla.edu>
72757
72758         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72759
72760 2006-11-26  Bruno Haible  <bruno@clisp.org>
72761
72762         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72763         noinst_LTLIBRARIES.
72764
72765 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72766             Bruno Haible  <bruno@clisp.org>
72767
72768         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72769         if compiling with "gcc -ansi".
72770
72771 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         Fix some incompatibilities with gcc -ansi -pedantic.
72774         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72775         if compiling pedantically with GCC, unless it's C99 or later.
72776         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72777         it mishandles gcc -ansi -pedantic as well.
72778         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72779         if gcc -pedantic.
72780         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72781         initializers for struct if -pedantic, unless it's C99 or later.
72782
72783 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72784
72785         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72786         Don't close an fd more than once. Identical atimes indicate
72787         success, not failure.
72788
72789 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72790
72791         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72792
72793 2006-11-23  Jim Meyering  <jim@meyering.net>
72794
72795         * build-aux/announce-gen: New file.  From coreutils.
72796
72797 2006-11-22  Jim Meyering  <jim@meyering.net>
72798
72799         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72800         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72801         (fts_read): Use a temporary to narrow the overused st_size member
72802         before using it in a switch statement.  Reported by Matthew Woehlke.
72803
72804         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72805         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72806
72807 2006-11-20  Bruno Haible  <bruno@clisp.org>
72808
72809         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72810         changequote instead of pairs of brackets.
72811         Reported by Andreas Schwab <schwab@suse.de>.
72812
72813 2006-11-21  Jim Meyering  <jim@meyering.net>
72814
72815         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72816         so as to remain compatible with older compilers.
72817         Patch from Michael Deutschmann.
72818
72819 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72820
72821         * MODULES.html.sh (File system functions): Add openat.
72822
72823         * lib/openat.h (rpl_fstatat): New macro, if
72824         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72825         (fstatat): Define to rpl_fstatat under the same conditions,
72826         unless COMPILING_FSTATAT.
72827         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72828         seems to have the bug.
72829         * lib/fstatat.c: New file.
72830         * modules/openat (Files): Add it.
72831
72832 2006-11-20  Bruno Haible  <bruno@clisp.org>
72833
72834         * Makefile: New file.
72835
72836 2006-11-20  Jim Meyering  <jim@meyering.net>
72837
72838         The beginnings of syntax-related checks for gnulib.
72839         * lib/Makefile: New file.
72840         * lib/t-idcache: New script.  Ensure that the two halves of
72841         idcache.c stay in sync.
72842
72843         * lib/idcache.c: Adjust comments in user- and group- portions to
72844         be more accurate, and to be consistent with one another.
72845
72846 2006-11-20  Jim Meyering  <jim@meyering.net>
72847
72848         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72849         continue using the flexible array member (thus, this module performs
72850         half as many malloc calls), with the addition that...
72851         (getgroup, getuser): Consistently record a non-match via an empty
72852         "name" string, and map an empty string match to a NULL return value.
72853         * modules/idcache (Depends-on): Re-add flexmember.
72854
72855         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72856         (getuidbyname, getgroup, getgidbyname): Likewise.
72857
72858         Use cleaner syntax: NULL rather than 0.
72859         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72860
72861 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72864         It mishandled the case where the group was missing.
72865         Problem reported by Greg Schafer.
72866         * modules/idcache: Likewise.
72867
72868 2006-11-18  Jim Meyering  <jim@meyering.net>
72869
72870         * check-module (%exempt_header): Add exception for some
72871         conditionally-included headers.
72872
72873         * modules/i-ring (Depends-on): Add verify.
72874         (License): Change to LGPL.
72875
72876 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72879         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72880         and inttostr.h.  Use snprintf rather than uinttostr, so that
72881         LGPLed code doesn't depend on GPLed.
72882
72883 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         * modules/inline (License): Change from GPL to LGPL.
72886
72887 2006-11-17  Jim Meyering  <jim@meyering.net>
72888
72889         * modules/d-type (License): Switch to LGPL.
72890
72891 2006-11-15  Bruno Haible  <bruno@clisp.org>
72892
72893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72894
72895 2006-11-15  Eric Blake  <ebb9@byu.net>
72896
72897         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72898         the module dependency.
72899
72900 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72901             Bruno Haible  <bruno@clisp.org>
72902
72903         * gnulib-tool (func_create_testdir): Add license consistency check.
72904
72905 2006-11-15  Eric Blake  <ebb9@byu.net>
72906
72907         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72908         random "(cached)" in configure output.
72909
72910 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72911
72912         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72913         test for conforming inttypes.h is both announced and cached.
72914
72915         * MODULES.html.sh (seen_modules, seen_files): New variables.
72916         (func_module): Rewrite to use a few less gnulib-tool and sed
72917         invocations.  Avoid a couple of quadratic algorithms for ...
72918         (missed_modules, missed_files): ... these, with ...
72919         (func_append, func_tmpdir): ... these new functions, from
72920         gnulib-tool.  Analogously, install traps for cleanup.
72921
72922         * tests/test-gc.c (main): Remove unused variables.
72923         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72924
72925 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         * modules/inttostr (License): Change to LGPL.
72928
72929 2006-11-14  Eric Blake  <ebb9@byu.net>
72930
72931         * modules/tempname (License): Change to LGPL.
72932
72933 2006-11-14  Eric Blake  <ebb9@byu.net>
72934
72935         * doc/functions.texi (Function Portability): *printf functions on
72936         Cygwin now understand all POSIX size specifiers.
72937
72938 2006-11-14  Bruno Haible  <bruno@clisp.org>
72939
72940         * modules/c-ctype (License): Change to LGPL.
72941
72942 2006-11-12  Bruno Haible  <bruno@clisp.org>
72943
72944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72945         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72946         for GNOME libraries, for which the include files are installed in
72947         subdirectories of $prefix/include.
72948
72949 2006-11-12  Bruno Haible  <bruno@clisp.org>
72950
72951         * m4/lib-link.m4: Require at least autoconf-2.54.
72952         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72953         name to underscores for the --with option.
72954
72955 2006-11-13  Bruno Haible  <bruno@clisp.org>
72956
72957         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72958         the tests directory.
72959         Reported by Ralf Wildenhues.
72960
72961 2006-11-13  Bruno Haible  <bruno@clisp.org>
72962
72963         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72964         (func_emit_initmacro_end): Undo the override here.
72965         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72966         Works around the famous automake error in coreutils.
72967
72968 2006-11-13  Eric Blake  <ebb9@byu.net>
72969
72970         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72971         element, not its node.
72972
72973 2006-11-12  Bruno Haible  <bruno@clisp.org>
72974
72975         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72976         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72977
72978 2006-11-12  Bruno Haible  <bruno@clisp.org>
72979
72980         * gnulib-tool: New option --local-symlink.
72981         (func_usage): Document it.
72982         (lsymbolic): New variable.
72983         (func_import, func_create_testdir): If --symlink was not specified,
72984         test whether --local-symlink was specified and the file comes from
72985         the local_gnulib_dir.
72986
72987 2006-11-12  Bruno Haible  <bruno@clisp.org>
72988
72989         * gnulib-tool (func_ln): New function.
72990         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72991
72992 2006-11-12  Bruno Haible  <bruno@clisp.org>
72993
72994         Finish support for source files in subdirectories.
72995         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72996         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72997         AUTOMAKE_OPTIONS.
72998         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72999
73000 2006-11-12  Bruno Haible  <bruno@clisp.org>
73001
73002         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73003         EXTRA_lib_SOURCES augmentation.
73004         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73005
73006 2006-11-12  Jim Meyering  <jim@meyering.net>
73007
73008         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73009         file descriptors.  This also averts a failure on systems with
73010         native openat support when a traversed directory lacks "x" access.
73011         * lib/fts_.h: Include "i-ring.h"
73012         (struct FTS) [fts_fd_ring]: New member.
73013         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73014         (FCHDIR): Add parentheses.
73015         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73016         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73017         When descending, rather than simply closing the previous
73018         fts_cwd_fd value, push that file descriptor onto the ring.
73019         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73020         (fts_open): Initialize the new fd_ring member.
73021         (fts_close): Clear the ring.
73022         (fts_safe_changedir): When possible, use our new fd_ring to skip
73023         the diropen and fstat and dev/ino comparison that would normally
73024         accompany a virtual `chdir ("..")'.
73025
73026         * modules/fts (Depends-on): Add i-ring.
73027         * modules/i-ring: New module.
73028         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73029         * m4/i-ring.m4: New file.
73030
73031 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73032
73033         * gnulib-tool (func_create_testdir): Fix replacement of
73034         `build-aux' in configure.ac.  Run autotools in gltests
73035         subdirectory.
73036         (func_create_testdir, func_create_megatestdir, test): There is
73037         no need for '--force' in most autotool invocations in a new
73038         tree.  Actually fail the whole test if any of the tools, or the
73039         configure or make stages fail.
73040
73041         Sync from Automake.
73042         * build-aux/gnupload: Revert last change.  Add pointer to upload
73043         instructions of the GNU Maintenance Instructions.
73044         Suggestion by Karl Berry.
73045
73046 2006-11-10  Jim Meyering  <jim@meyering.net>
73047
73048         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73049
73050 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73053         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73054         (bind_textdomain_codeset) [! ENABLE_NLS]:
73055         Evaluate all the arguments.  That way, callers get compatible behavior
73056         if the arguments have side effects.  Also, it avoids some GCC
73057         diagnostics in some cases; Joel E. Denny reported problems when Bison
73058         was configured with --enable-gcc-warnigs.
73059
73060 2006-11-10  Jim Meyering  <jim@meyering.net>
73061
73062         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73063         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73064         account.
73065
73066 2006-11-10  Jim Meyering  <jim@meyering.net>
73067
73068         * modules/inline: New file/module.
73069         * modules/xalloc (Files): Remove m4/inline.m4.
73070         (Depends-on): Add inline, instead.
73071         * modules/oset: Likewise.
73072         * modules/list: Likewise.
73073
73074 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73077         Problem reported by Matthew Woehlke.
73078
73079 2006-11-09  Bruno Haible  <bruno@clisp.org>
73080
73081         * lib/tempname.c (gen_tempname): Remove variant that invokes
73082         __gen_tempname.
73083         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73084         __gen_tempname.
73085
73086 2006-11-08  Bruno Haible  <bruno@clisp.org>
73087
73088         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73089         to 'yes' instead of 'cross-compiling'.
73090
73091 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         * lib/quotearg.h (quotearg_free): New decl.
73094         * lib/quotearg.c (quotearg_free): New function.
73095         (slot0, nslots, slotvec0, slotvec):
73096         Now file-scope so that quotearg_free can get at them.
73097
73098 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73099
73100         Sync from Automake.
73101         * build-aux/gnupload: Add missing 'gnu' to example URL.
73102         Report by Karl Berry.
73103
73104 2006-11-08  Bruno Haible  <bruno@clisp.org>
73105
73106         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73107         Suggested by Paul Eggert.
73108
73109 2006-11-08  Jim Meyering  <jim@meyering.net>
73110
73111         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73112         It's already included if !_LIBC.
73113         (fts_safe_changedir): Add a comment.
73114
73115 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73118         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73119         Matthew Woehlke.
73120
73121         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73122         definitions up, to avoid colliding with change below.
73123         (static_inline) [HAVE_INLINE]: New macro.
73124         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73125         Provide extern decls when !HAVE_INLINE.  Do not define unless
73126         static_inline is defined, either by us or by xmalloc.c.  Use
73127         static_inline rather than static inline.
73128         (XCALLOC): Optimize sizeof(T) = 1 case.
73129         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73130
73131 2006-11-07  Bruno Haible  <bruno@clisp.org>
73132
73133         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73134         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73135         AC_C_INLINE.
73136         * modules/xalloc (Files): Add m4/inline.m4.
73137
73138 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73139
73140         * README: Fix typo.
73141         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73142         (Miscellanous Notes): ...from this.
73143
73144 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73147         Mention that offsetof should be used instead of sizeof.
73148         From Bruno Haible.
73149
73150 2006-11-07  Bruno Haible  <bruno@clisp.org>
73151
73152         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73153
73154 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73155
73156         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73157         * lib/gl_anyavltree_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):
73160         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73161         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73162         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73163         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73164         (gl_linked_add_after, gl_linked_add_at): Likewise.
73165         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73166         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73167         (gl_tree_add_before, gl_tree_add_after): Likewise.
73168         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73169         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73170         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73171
73172 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73173
73174         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73175
73176 2006-11-06  Bruno Haible  <bruno@clisp.org>
73177
73178         * m4/inline.m4: New file.
73179         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73180         * modules/list (Files): Add m4/inline.m4.
73181         * modules/oset (Files): Likewise.
73182
73183 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         * lib/idcache.c: Include <stddef.h>, for offsetof.
73186         (struct userid.name): Change from char * to a flexible array member.
73187         All uses changed.
73188         * modules/idcache (Depends-on): Add flexmember.
73189
73190         * MODULES.html.sh (Core language properties): New module flexmember.
73191         * modules/flexmember, m4/flexmember.m4: New files.
73192
73193         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73194         inline functions that are identical with the old xnmalloc_inline,
73195         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73196         that we can avoid some unnecessary integer multiplications and
73197         divisions in the common case where the element size is known at
73198         compile time.
73199         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73200         needed.
73201         (xnboundedmalloc): Remove.
73202         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73203         arguments, for consistency with rest of this header.
73204         (xcharalloc): Rewrite using XNMALLOC.
73205         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73206         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73207         versions have been moved to lib/xalloc.h and renamed to be the
73208         non-*_inline versions.
73209         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73210         and xnrealloc functions, since those functions are now inline and
73211         now call us.
73212         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73213         renaming described above.
73214         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73215         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73216         captures the dependency in AC_C_INLINE.
73217
73218         New module canonicalize-lgpl, proposed by Charles Wilson in
73219         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73220         with a few small changes afterwards.
73221         * MODULES.html.sh (File system functions): New module
73222         canonicalize-lgpl.
73223         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73224         and canonicalize_file_name.
73225         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73226         * modules/canonicalize-lgpl: New files.
73227
73228 2006-11-05  Bruno Haible  <bruno@clisp.org>
73229
73230         * gnulib-tool (func_import, func_create_testdir): Create directories
73231         also for files in subdirectories of lib/.
73232
73233 2006-11-05  Bruno Haible  <bruno@clisp.org>
73234
73235         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73236         ANSI C compliant.
73237
73238 2006-11-03  Bruno Haible  <bruno@clisp.org>
73239
73240         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73241         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73242         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73243         (xnboundedmalloc): New inline function.
73244         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73245         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73246         xmalloc.
73247         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73248         xmalloc.
73249         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73250         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73251         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73252         xmalloc.
73253         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73254         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73255         xmalloc.
73256         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73257         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73258         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73259         xmalloc.
73260         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73261         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73262         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73263         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73264         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73265         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73266         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73267
73268 2006-11-03  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/c-ctype.h [C++]: Define functions without name mangling.
73271         * lib/fwriteerror.h [C++]: Likewise.
73272         * lib/gcd.h [C++]: Likewise.
73273         * lib/linebreak.h [C++]: Likewise.
73274
73275 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73278         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73279         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73281         Check for functions and headers just once.
73282         Check for declaration of canonicalize_file_name.
73283         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73284
73285 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73286
73287         * gnulib-tool (func_import): Fix typo in actioncmd.
73288
73289 2006-11-02  Bruno Haible  <bruno@clisp.org>
73290
73291         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73292         newline sequence in the Makefile.am snippet as a space, like "make"
73293         does.
73294         Reported by Roger Persson <perrog@gmail.com>.
73295
73296 2006-11-01  Bruno Haible  <bruno@clisp.org>
73297
73298         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73299         already declared in <string.h>.
73300         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73301
73302 2006-11-01  Bruno Haible  <bruno@clisp.org>
73303
73304         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73305         * lib/strcase.h: Include <string.h>.
73306         (strcasecmp): Define to rpl_strcasecmp here.
73307
73308 2006-11-01  Bruno Haible  <bruno@clisp.org>
73309
73310         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73311
73312 2006-11-01  Eric Blake  <ebb9@byu.net>
73313
73314         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73315
73316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73317
73318 2006-10-29  Bruno Haible  <bruno@clisp.org>
73319
73320         Make it compile in C++ mode.
73321         * lib/full-write.c (full_rw): Add a cast.
73322
73323 2006-11-01  Bruno Haible  <bruno@clisp.org>
73324
73325         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73326         be POSIX compliant.
73327         Reported by Roger Persson <perrog@gmail.com>.
73328
73329 2006-11-01  Eric Blake  <ebb9@byu.net>
73330
73331         * lib/getopt_.h: Fix comments.
73332
73333 2006-10-31  Eric Blake  <ebb9@byu.net>
73334
73335         * modules/tmpdir (Depends-on): Add sys_stat.
73336         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73337         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73338         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73339         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73340         tempname.
73341
73342 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73343
73344         Avoid some C++ diagnostics reported by Bruno Haible.
73345         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73346         xmalloc.
73347         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73348         (struct slotvec): Move to top level.
73349         (quotearg_n_options): Rewrite to avoid xmalloc.
73350         * lib/xalloc.h (xcharalloc): New function.
73351         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73352         [defined __cplusplus]: Add function template that provides result
73353         type propagation.  This part of the change is from Bruno Haible.
73354
73355 2006-10-29  Bruno Haible  <bruno@clisp.org>
73356
73357         Make it compile in C++ mode.
73358         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73359         * lib/strnlen1.c (strnlen1): Cast memchr result.
73360         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73361         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73362         (create_temp_dir): Rename local variable 'template'.
73363         (compile_csharp_using_sscli): Add cast.
73364         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73365         * lib/findprog.c (find_in_path): Likewise.
73366         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73367         * lib/wait-process.c (register_slave_subprocess): Likewise.
73368
73369 2006-10-22  Bruno Haible  <bruno@clisp.org>
73370
73371         * modules/tsearch: New file.
73372         * lib/tsearch.h: New file.
73373         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73374         * m4/tsearch.m4: New file.
73375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73376
73377 2006-10-29  Eric Blake  <ebb9@byu.net>
73378
73379         * lib/arcfour.c: Assume config.h.
73380         * lib/arctwo.c: Likewise.
73381         * lib/base64.c: Likewise.
73382         * lib/check-version.c: Likewise.
73383         * lib/crc.c: Likewise.
73384         * lib/des.c: Likewise.
73385         * lib/gc-gnulib.c: Likewise.
73386         * lib/gc-libgcrypt.c: Likewise.
73387         * lib/gc-pbkdf2-sha1.c: Likewise.
73388         * lib/getaddrinfo.c: Likewise.
73389         * lib/getdelim.c: Likewise.
73390         * lib/getline.c: Likewise.
73391         * lib/hmac-md5.c: Likewise.
73392         * lib/hmac-sha1.c: Likewise.
73393         * lib/iconvme.c: Likewise.
73394         * lib/md2.c: Likewise.
73395         * lib/md4.c: Likewise.
73396         * lib/memxor.c: Likewise.
73397         * lib/read-file.c: Likewise.
73398         * lib/readline.c: Likewise.
73399         * lib/rijndael-alg-fst.c: Likewise.
73400         * lib/rijndael-api-fst.c: Likewise.
73401         * lib/xgetdomainname.c: Likewise.
73402
73403 2006-10-28  Eric Blake  <ebb9@byu.net>
73404
73405         * lib/xstrndup.c: Assume config.h.
73406
73407 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73410         stat-macros.h is now for our own macros, whereas stat_h is for
73411         macros in the <sys/stat.h> name space.
73412         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73413         (STAT_MACROS_H): Remove.
73414         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73415         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73416         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73417         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73418         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73419         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73420         Move these macros to ...
73421         * lib/stat_.h: here.  Don't include stat-macros.h.
73422         * lib/canonicalize.c: Don't include stat-macros.h.
73423         * lib/chown.c: Likewise.
73424         * lib/euidaccess.c: Likewise.
73425         * lib/file-type.c: Likewise.
73426         * lib/filemode.c: Likewise.
73427         * lib/glob.c: Likewise.
73428         * lib/isapipe.c: Likewise.
73429         * lib/lchown.c: Likewise.
73430         * lib/lstat.c: Likewise.
73431         * lib/mkdir-p.c: Likewise.
73432         * lib/rmdir.c: Likewise.
73433         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73435         unless mkdir isn't declared, to speed up 'configure'.
73436         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73437         would define all the S_* symbols.
73438         * modules/canonicalize (Depends-on):
73439         Depend on sys_stat, not stat-macros.
73440         * modules/chown: Likewise.
73441         * modules/euidaccess: Likewise.
73442         * modules/filemode: Likewise.
73443         * modules/file-type: Likewise.
73444         * modules/glob: Likewise.
73445         * modules/isapipe: Likewise.
73446         * modules/lchown: Likewise.
73447         * modules/lstat: Likewise.
73448         * modules/mkancesdirs: Likewise.
73449         * modules/rmdir: Likewise.
73450         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73451         * modules/modechange: Likewise.
73452         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73453         (configure.ac): Remove gl_STAT_MACROS.
73454         * modules/sys_stat (Depends-on): Remove stat-macros.
73455
73456 2006-10-27  Bruno Haible  <bruno@clisp.org>
73457
73458         * m4/signed.m4: Remove file.
73459         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73460         invocation.
73461         * modules/vasnprintf (Files): Remove m4/signed.m4.
73462
73463 2006-10-27  Bruno Haible  <bruno@clisp.org>
73464
73465         Update to GNU gettext 0.16.
73466         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73467         m4/inttypes-h.m4, m4/signed.m4.
73468         * m4/gettext.m4: Update to GNU gettext 0.16.
73469         * m4/intl.m4: New file, from GNU gettext.
73470         * m4/intldir.m4: New file, from GNU gettext.
73471         * config/srclist.txt: Update
73472
73473 2006-10-27  Eric Blake  <ebb9@byu.net>
73474
73475         * MODULES.html.sh: Document tempname.
73476         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73477         dependencies.
73478         (Files): Move lib/tempname.c...
73479         * modules/tempname: ...to this new module.
73480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73481         (gl_PREREQ_TEMPNAME): Move...
73482         * m4/tempname.m4: ...to this new file.
73483         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73484         * modules/sys_stat (Depends-on): Add stat-macros.
73485         * lib/stat_.h (includes): Pick up stat macros.
73486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73487         if stat macros are broken.
73488         * lib/tempname.c (includes): No need to include "stat-macros.h".
73489         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73490         (direxists, __path_search) [!_LIBC]: Don't compile these in
73491         gnulib; the tmpdir module covers that.
73492         * lib/tempname.h: New file.
73493
73494 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * COPYING: Explain how gnulib-tool converts licence headers.
73497         Almost all wording by Eric Blake.
73498
73499 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * lib/mbchar.h (is_basic_table): Make read-only.
73502         * lib/mbchar.c (is_basic_table): Likewise.
73503         Reported by John Darrington.
73504
73505 2006-10-25  Bruno Haible  <bruno@clisp.org>
73506
73507         * lib/progname.h (set_program_name): Undefine before defining.
73508
73509 2006-10-25  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73512         false for non-gcc C++ compilers.
73513         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73514
73515 2006-10-24  Bruno Haible  <bruno@clisp.org>
73516
73517         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73518         iconv implementations like Irix iconv.
73519
73520 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * modules/vararrays: New file.
73523         * m4/vararrays.m4: New file, taken from diffutils.
73524         * MODULES.html.sh: New module vararrays.
73525
73526 2006-10-24  Karl Berry  <karl@gnu.org>
73527
73528         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73529         Don't call GNU Unix.
73530
73531 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73532
73533         * users.txt: Add Libtool.
73534
73535         Sync from Libtool:
73536
73537         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73540         to gnulib's policy of including config.h unconditionally.
73541
73542 2006-10-24  Bruno Haible  <bruno@clisp.org>
73543
73544         * modules/wcwidth (Files): Add m4/wint_t.m4.
73545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73546         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73547
73548 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73549
73550         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73551         to pacify GCC with some -W flags enabled.  Problem reported by
73552         Bruno Haible.
73553
73554 2006-10-24  Jim Meyering  <jim@meyering.net>
73555
73556         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73557         Reported by Karl Berry.
73558
73559 2006-10-23  Bruno Haible  <bruno@clisp.org>
73560
73561         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73562
73563 2006-10-24  Bruno Haible  <bruno@clisp.org>
73564
73565         * lib/gl_list.h: Use C comment style, not C++ comment style.
73566
73567 2006-10-23  Eric Blake  <ebb9@byu.net>
73568
73569         * lib/getaddrinfo.c (includes): Add missing include.
73570
73571 2006-10-23  Bruno Haible  <bruno@clisp.org>
73572             Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         Ability to rename obstack_free.
73575         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73576         obstack_free.
73577         (obstack_free): Invoke the __obstack_free macro.
73578         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73579
73580 2006-10-23  Bruno Haible  <bruno@clisp.org>
73581             Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73584         __argc, __argv from the declaration. (They are defined as macros on
73585         mingw.)
73586
73587 2006-10-22  Bruno Haible  <bruno@clisp.org>
73588
73589         * doc/gnulib-intro.texi: New file.
73590         * doc/gnulib.texi: Include it.
73591
73592 2006-10-21  Bruno Haible  <bruno@clisp.org>
73593
73594         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73595         "Introduction", "Miscellanous Notes", "Particular Modules".
73596
73597 2006-10-21  Bruno Haible  <bruno@clisp.org>
73598
73599         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73600         Change mostlyclean-local rule to avoid sh syntax error from bash
73601         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73602
73603 2006-10-23  Jim Meyering  <jim@meyering.net>
73604
73605         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73606         in place of snprintf.
73607
73608         * modules/inttostr (Files): Add lib/uinttostr.c.
73609         * lib/uinttostr.c (inttostr): New file/function.
73610         * lib/inttostr.h (uinttostr): Declare.
73611         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73612         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73613         Add uinttostr.
73614         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73615
73616 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * lib/canonicalize.c (ELOOP): Define if not already defined.
73619         Problem reported by Bruno Haible in
73620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73621
73622 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73625         Problem reported by Perry Smith and Ville Laurikari.
73626
73627         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73628         uses.
73629
73630 2006-10-19  Bruno Haible  <bruno@clisp.org>
73631
73632         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73633         for mingw.
73634
73635 2006-10-19  Bruno Haible  <bruno@clisp.org>
73636
73637         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73638         Needed for mingw.
73639
73640 2006-10-19  Bruno Haible  <bruno@clisp.org>
73641
73642         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73643
73644 2006-10-19  Bruno Haible  <bruno@clisp.org>
73645
73646         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73647         it.
73648
73649 2006-10-19  Bruno Haible  <bruno@clisp.org>
73650
73651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73652         invocation.
73653
73654 2006-10-19  Bruno Haible  <bruno@clisp.org>
73655
73656         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73657         mountlist by default.
73658
73659 2006-10-16  Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/c-strstr.c: Include c-strstr.h.
73662
73663 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73664
73665         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73666         in a slash.
73667
73668 2006-10-18  Bruno Haible  <bruno@clisp.org>
73669
73670         * lib/lock.h [C++]: Wrap definitions in extern "C".
73671
73672 2006-10-18  Bruno Haible  <bruno@clisp.org>
73673
73674         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73675         gl_LIBOBJS list.
73676
73677 2006-10-18  Bruno Haible  <bruno@clisp.org>
73678
73679         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73680
73681 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * lib/xstrtol.h: Include gettext.h.
73684         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73685         Problem reported by Eric Blake.
73686         * modules/xstrtol (Depends-on): Add gettext-h.
73687
73688 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73689
73690         * lib/strftime.c (advance): New macro.
73691         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73692         incomplete type, so you can't add 0 to it.  Problem and patch
73693         reported by Eelco Dolstra for dietlibc.
73694
73695 2006-10-18  Jim Meyering  <jim@meyering.net>
73696
73697         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73698         type for a local, and rename it: s/up/user_proc/.
73699
73700 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73701
73702         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73703         READ_UTMP_USER_PROCESS.
73704         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73705
73706 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73707
73708         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73709         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73710
73711 2006-10-17  Eric Blake  <ebb9@byu.net>
73712
73713         * lib/sigprocmask.c (sigprocmask): Fix typo.
73714
73715         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73716
73717         * modules/clean-temp (Makefile.am): Don't add to make output...
73718         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73719         config.h.
73720
73721 2006-10-17  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73724         differently if DEFAULT_TEXT_DOMAIN is set.
73725
73726 2006-10-16  Bruno Haible  <bruno@clisp.org>
73727
73728         * lib/clean-temp.c: Include fwriteerror.h.
73729
73730 2006-10-16  Bruno Haible  <bruno@clisp.org>
73731
73732         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73733
73734 2006-10-16  Bruno Haible  <bruno@clisp.org>
73735
73736         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73737         * lib/sigprocmask.h: Include <sys/types.h>.
73738         (sigset_t): Use the system's definition if present.
73739
73740 2006-10-17  Eric Blake  <ebb9@byu.net>
73741
73742         * lib/xvasprintf.c (includes): Assume config.h.
73743         * lib/xasprintf.c (includes): Likewise.
73744
73745 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73748         at least as wide as intmax_t.
73749
73750 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73751
73752         (Imported from Automake.)
73753         * build-aux/gnupload: Update to version 1.1 of directive file.
73754
73755 2006-10-16  Eric Blake  <ebb9@byu.net>
73756
73757         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73758         match Automake 1.10a.
73759
73760 2006-10-14  Bruno Haible  <bruno@clisp.org>
73761
73762         * modules/sigprocmask: New file.
73763         * lib/sigprocmask.h: New file.
73764         * lib/sigprocmask.c: New file.
73765         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73766         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73767         request sigprocmask.o.
73768         (gl_PREREQ_SIGPROCMASK): New macro.
73769         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73770         (Depends-on): Add sigprocmask.
73771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73772         gt_SIGNALBLOCKING. Test for 'raise' only once.
73773         * lib/fatal-signal.c: Include sigprocmask.h.
73774         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73775         unblock_fatal_signals): Define always.
73776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73777         sigprocmask.
73778
73779 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73780
73781         Sync from Automake.
73782         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73783         which incorrectly sets the mode of an existing destination
73784         directory.  In some cases the unpatched install-sh could do the
73785         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73786         system.  We hope this is rare in practice, but it's clearly worth
73787         fixing.  Problem reported by Alex Unleashed in
73788         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73789         Also, don't bother to check for -m bugs unless we're using -m;
73790         suggested by Stepan Kasal.
73791
73792 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73793
73794         Sync from Automake.
73795         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73796         `-c' flag, so they appear at the same position as in %FASTDEP%
73797         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73798         which ignores unknown options only after the first non-option.
73799         Bug report against M4 by Nelson H. F. Beebe.
73800
73801 2006-10-13  Jim Meyering  <jim@meyering.net>
73802
73803         Fix a bug in yesterday's change.
73804         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73805         p->fts_statp->st_dev would be used uninitialized.
73806         Ensures that we always call fts_stat on the very first entry.
73807         Miklos Szeredi reported that find -xdev stopped working.
73808
73809 2006-10-12  Bruno Haible  <bruno@clisp.org>
73810
73811         * gnulib-tool (func_get_automake_snippet): Append an automatically
73812         computed EXTRA_DIST augmentation.
73813         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73814         * modules/alloca-opt (Makefile.am): Likewise.
73815         * modules/allocsa (Makefile.am): Likewise.
73816         * modules/arcfour (Makefile.am): Likewise.
73817         * modules/arctwo (Makefile.am): Likewise.
73818         * modules/argmatch (Makefile.am): Likewise.
73819         * modules/argz (Makefile.am): Likewise.
73820         * modules/atexit (Makefile.am): Likewise.
73821         * modules/backupfile (Makefile.am): Likewise.
73822         * modules/byteswap (Makefile.am): Likewise.
73823         * modules/c-strtod (Makefile.am): Likewise.
73824         * modules/c-strtold (Makefile.am): Likewise.
73825         * modules/calloc (Makefile.am): Likewise.
73826         * modules/canon-host (Makefile.am): Likewise.
73827         * modules/canonicalize (Makefile.am): Likewise.
73828         * modules/chdir-long (Makefile.am): Likewise.
73829         * modules/chdir-safer (Makefile.am): Likewise.
73830         * modules/check-version (Makefile.am): Likewise.
73831         * modules/chown (Makefile.am): Likewise.
73832         * modules/cloexec (Makefile.am): Likewise.
73833         * modules/close-stream (Makefile.am): Likewise.
73834         * modules/closeout (Makefile.am): Likewise.
73835         * modules/crc (Makefile.am): Likewise.
73836         * modules/csharpexec (Makefile.am): Likewise.
73837         * modules/cycle-check (Makefile.am): Likewise.
73838         * modules/des (Makefile.am): Likewise.
73839         * modules/dev-ino (Makefile.am): Likewise.
73840         * modules/dirfd (Makefile.am): Likewise.
73841         * modules/dirname (Makefile.am): Likewise.
73842         * modules/dup2 (Makefile.am): Likewise.
73843         * modules/eealloc (Makefile.am): Likewise.
73844         * modules/error (Makefile.am): Likewise.
73845         * modules/euidaccess (Makefile.am): Likewise.
73846         * modules/exclude (Makefile.am): Likewise.
73847         * modules/exitfail (Makefile.am): Likewise.
73848         * modules/fcntl-safer (Makefile.am): Likewise.
73849         * modules/fcntl (Makefile.am): Likewise.
73850         * modules/file-type (Makefile.am): Likewise.
73851         * modules/fileblocks (Makefile.am): Likewise.
73852         * modules/filemode (Makefile.am): Likewise.
73853         * modules/filenamecat (Makefile.am): Likewise.
73854         * modules/fnmatch (Makefile.am): Likewise.
73855         * modules/fopen-safer (Makefile.am): Likewise.
73856         * modules/fpending (Makefile.am): Likewise.
73857         * modules/fprintftime (Makefile.am): Likewise.
73858         * modules/free (Makefile.am): Likewise.
73859         * modules/fsusage (Makefile.am): Likewise.
73860         * modules/ftruncate (Makefile.am): Likewise.
73861         * modules/fts (Makefile.am): Likewise.
73862         * modules/gc-arcfour (Makefile.am): Likewise.
73863         * modules/gc-des (Makefile.am): Likewise.
73864         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73865         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73866         * modules/gc-md4 (Makefile.am): Likewise.
73867         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73868         * modules/gc-sha1 (Makefile.am): Likewise.
73869         * modules/gc (Makefile.am): Likewise.
73870         * modules/getaddrinfo (Makefile.am): Likewise.
73871         * modules/getcwd (Makefile.am): Likewise.
73872         * modules/getdelim (Makefile.am): Likewise.
73873         * modules/getdomainname (Makefile.am): Likewise.
73874         * modules/getgroups (Makefile.am): Likewise.
73875         * modules/gethostname (Makefile.am): Likewise.
73876         * modules/gethrxtime (Makefile.am): Likewise.
73877         * modules/getline (Makefile.am): Likewise.
73878         * modules/getloadavg (Makefile.am): Likewise.
73879         * modules/getlogin_r (Makefile.am): Likewise.
73880         * modules/getndelim2 (Makefile.am): Likewise.
73881         * modules/getopt (Makefile.am): Likewise.
73882         * modules/getpagesize (Makefile.am): Likewise.
73883         * modules/getpass-gnu (Makefile.am): Likewise.
73884         * modules/getpass (Makefile.am): Likewise.
73885         * modules/getsubopt (Makefile.am): Likewise.
73886         * modules/gettime (Makefile.am): Likewise.
73887         * modules/gettimeofday (Makefile.am): Likewise.
73888         * modules/getugroups (Makefile.am): Likewise.
73889         * modules/getusershell (Makefile.am): Likewise.
73890         * modules/glob (Makefile.am): Likewise.
73891         * modules/group-member (Makefile.am): Likewise.
73892         * modules/hard-locale (Makefile.am): Likewise.
73893         * modules/hash (Makefile.am): Likewise.
73894         * modules/hmac-md5 (Makefile.am): Likewise.
73895         * modules/hmac-sha1 (Makefile.am): Likewise.
73896         * modules/human (Makefile.am): Likewise.
73897         * modules/idcache (Makefile.am): Likewise.
73898         * modules/imaxabs (Makefile.am): Likewise.
73899         * modules/imaxdiv (Makefile.am): Likewise.
73900         * modules/inet_ntop (Makefile.am): Likewise.
73901         * modules/inet_pton (Makefile.am): Likewise.
73902         * modules/intprops (Makefile.am): Likewise.
73903         * modules/inttostr (Makefile.am): Likewise.
73904         * modules/inttypes (Makefile.am): Likewise.
73905         * modules/isapipe (Makefile.am): Likewise.
73906         * modules/javaversion (Makefile.am): Likewise.
73907         * modules/lchmod (Makefile.am): Likewise.
73908         * modules/lchown (Makefile.am): Likewise.
73909         * modules/localcharset (Makefile.am): Likewise.
73910         * modules/long-options (Makefile.am): Likewise.
73911         * modules/lstat (Makefile.am): Likewise.
73912         * modules/malloc (Makefile.am): Likewise.
73913         * modules/mathl (Makefile.am): Likewise.
73914         * modules/mbchar (Makefile.am): Likewise.
73915         * modules/md2 (Makefile.am): Likewise.
73916         * modules/md4 (Makefile.am): Likewise.
73917         * modules/md5 (Makefile.am): Likewise.
73918         * modules/memcasecmp (Makefile.am): Likewise.
73919         * modules/memchr (Makefile.am): Likewise.
73920         * modules/memcmp (Makefile.am): Likewise.
73921         * modules/memcoll (Makefile.am): Likewise.
73922         * modules/memcpy (Makefile.am): Likewise.
73923         * modules/memmem (Makefile.am): Likewise.
73924         * modules/memmove (Makefile.am): Likewise.
73925         * modules/mempcpy (Makefile.am): Likewise.
73926         * modules/memrchr (Makefile.am): Likewise.
73927         * modules/memset (Makefile.am): Likewise.
73928         * modules/memxor (Makefile.am): Likewise.
73929         * modules/mkancesdirs (Makefile.am): Likewise.
73930         * modules/mkdir-p (Makefile.am): Likewise.
73931         * modules/mkdir (Makefile.am): Likewise.
73932         * modules/mkdtemp (Makefile.am): Likewise.
73933         * modules/mkstemp (Makefile.am): Likewise.
73934         * modules/mktime (Makefile.am): Likewise.
73935         * modules/modechange (Makefile.am): Likewise.
73936         * modules/mountlist (Makefile.am): Likewise.
73937         * modules/nanosleep (Makefile.am): Likewise.
73938         * modules/obstack (Makefile.am): Likewise.
73939         * modules/openat (Makefile.am): Likewise.
73940         * modules/pagealign_alloc (Makefile.am): Likewise.
73941         * modules/pathmax (Makefile.am): Likewise.
73942         * modules/physmem (Makefile.am): Likewise.
73943         * modules/poll (Makefile.am): Likewise.
73944         * modules/posixtm (Makefile.am): Likewise.
73945         * modules/posixver (Makefile.am): Likewise.
73946         * modules/putenv (Makefile.am): Likewise.
73947         * modules/quote (Makefile.am): Likewise.
73948         * modules/quotearg (Makefile.am): Likewise.
73949         * modules/raise (Makefile.am): Likewise.
73950         * modules/read-file (Makefile.am): Likewise.
73951         * modules/readline (Makefile.am): Likewise.
73952         * modules/readlink (Makefile.am): Likewise.
73953         * modules/readtokens (Makefile.am): Likewise.
73954         * modules/readutmp (Makefile.am): Likewise.
73955         * modules/realloc (Makefile.am): Likewise.
73956         * modules/regex (Makefile.am): Likewise.
73957         * modules/rename-dest-slash (Makefile.am): Likewise.
73958         * modules/rename (Makefile.am): Likewise.
73959         * modules/rijndael (Makefile.am): Likewise.
73960         * modules/rmdir (Makefile.am): Likewise.
73961         * modules/rpmatch (Makefile.am): Likewise.
73962         * modules/safe-read (Makefile.am): Likewise.
73963         * modules/safe-write (Makefile.am): Likewise.
73964         * modules/same-inode (Makefile.am): Likewise.
73965         * modules/same (Makefile.am): Likewise.
73966         * modules/save-cwd (Makefile.am): Likewise.
73967         * modules/savedir (Makefile.am): Likewise.
73968         * modules/setenv (Makefile.am): Likewise.
73969         * modules/settime (Makefile.am): Likewise.
73970         * modules/sha1 (Makefile.am): Likewise.
73971         * modules/sig2str (Makefile.am): Likewise.
73972         * modules/snprintf (Makefile.am): Likewise.
73973         * modules/stat-macros (Makefile.am): Likewise.
73974         * modules/stat-time (Makefile.am): Likewise.
73975         * modules/stdbool (Makefile.am): Likewise.
73976         * modules/stdint (Makefile.am): Likewise.
73977         * modules/stdlib-safer (Makefile.am): Likewise.
73978         * modules/stpcpy (Makefile.am): Likewise.
73979         * modules/stpncpy (Makefile.am): Likewise.
73980         * modules/strcase (Makefile.am): Likewise.
73981         * modules/strcasestr (Makefile.am): Likewise.
73982         * modules/strchrnul (Makefile.am): Likewise.
73983         * modules/strcspn (Makefile.am): Likewise.
73984         * modules/strdup (Makefile.am): Likewise.
73985         * modules/strerror (Makefile.am): Likewise.
73986         * modules/strftime (Makefile.am): Likewise.
73987         * modules/strndup (Makefile.am): Likewise.
73988         * modules/strnlen (Makefile.am): Likewise.
73989         * modules/strpbrk (Makefile.am): Likewise.
73990         * modules/strsep (Makefile.am): Likewise.
73991         * modules/strstr (Makefile.am): Likewise.
73992         * modules/strtod (Makefile.am): Likewise.
73993         * modules/strtoimax (Makefile.am): Likewise.
73994         * modules/strtok_r (Makefile.am): Likewise.
73995         * modules/strtol (Makefile.am): Likewise.
73996         * modules/strtoll (Makefile.am): Likewise.
73997         * modules/strtoul (Makefile.am): Likewise.
73998         * modules/strtoull (Makefile.am): Likewise.
73999         * modules/strtoumax (Makefile.am): Likewise.
74000         * modules/strverscmp (Makefile.am): Likewise.
74001         * modules/sys_socket (Makefile.am): Likewise.
74002         * modules/sys_stat (Makefile.am): Likewise.
74003         * modules/sysexits (Makefile.am): Likewise.
74004         * modules/time_r (Makefile.am): Likewise.
74005         * modules/timegm (Makefile.am): Likewise.
74006         * modules/timespec (Makefile.am): Likewise.
74007         * modules/tmpfile-safer (Makefile.am): Likewise.
74008         * modules/trim (Makefile.am): Likewise.
74009         * modules/unistd-safer (Makefile.am): Likewise.
74010         * modules/unlinkdir (Makefile.am): Likewise.
74011         * modules/unlocked-io (Makefile.am): Likewise.
74012         * modules/userspec (Makefile.am): Likewise.
74013         * modules/utime (Makefile.am): Likewise.
74014         * modules/utimecmp (Makefile.am): Likewise.
74015         * modules/utimens (Makefile.am): Likewise.
74016         * modules/vasnprintf (Makefile.am): Likewise.
74017         * modules/vasprintf (Makefile.am): Likewise.
74018         * modules/vsnprintf (Makefile.am): Likewise.
74019         * modules/xalloc (Makefile.am): Likewise.
74020         * modules/xgetcwd (Makefile.am): Likewise.
74021         * modules/xnanosleep (Makefile.am): Likewise.
74022         * modules/xreadlink (Makefile.am): Likewise.
74023         * modules/xstrtod (Makefile.am): Likewise.
74024         * modules/xstrtol (Makefile.am): Likewise.
74025         * modules/xstrtold (Makefile.am): Likewise.
74026         * modules/yesno (Makefile.am): Likewise.
74027         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74028
74029 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * modules/error (Makefile.am): Distribute files through
74032         EXTRA_DIST, not lib_SOURCES.
74033
74034 2006-10-12  Eric Blake  <ebb9@byu.net>
74035
74036         * modules/error (Makefile.am): Distribute files in /lib.
74037         * modules/obstack (Makefile.am): Likewise.
74038
74039 2006-10-12  Bruno Haible  <bruno@clisp.org>
74040
74041         * modules/acl (Makefile.am): Distribute all files in lib/ through
74042         EXTRA_DIST.
74043         * modules/arcfour (Makefile.am): Likewise.
74044         * modules/arctwo (Makefile.am): Likewise.
74045         * modules/argmatch (Makefile.am): Likewise.
74046         * modules/argz (Makefile.am): Likewise.
74047         * modules/atexit (Makefile.am): Likewise.
74048         * modules/backupfile (Makefile.am): Likewise.
74049         * modules/c-strtod (Makefile.am): Likewise.
74050         * modules/c-strtold (Makefile.am): Likewise.
74051         * modules/calloc (Makefile.am): Likewise.
74052         * modules/canon-host (Makefile.am): Likewise.
74053         * modules/canonicalize (Makefile.am): Likewise.
74054         * modules/chdir-long (Makefile.am): Likewise.
74055         * modules/chdir-safer (Makefile.am): Likewise.
74056         * modules/check-version (Makefile.am): Likewise.
74057         * modules/chown (Makefile.am): Likewise.
74058         * modules/cloexec (Makefile.am): Likewise.
74059         * modules/close-stream (Makefile.am): Likewise.
74060         * modules/closeout (Makefile.am): Likewise.
74061         * modules/crc (Makefile.am): Likewise.
74062         * modules/cycle-check (Makefile.am): Likewise.
74063         * modules/des (Makefile.am): Likewise.
74064         * modules/dirfd (Makefile.am): Likewise.
74065         * modules/dirname (Makefile.am): Likewise.
74066         * modules/dup2 (Makefile.am): Likewise.
74067         * modules/euidaccess (Makefile.am): Likewise.
74068         * modules/exclude (Makefile.am): Likewise.
74069         * modules/exitfail (Makefile.am): Likewise.
74070         * modules/fcntl-safer (Makefile.am): Likewise.
74071         * modules/file-type (Makefile.am): Likewise.
74072         * modules/fileblocks (Makefile.am): Likewise.
74073         * modules/filemode (Makefile.am): Likewise.
74074         * modules/filenamecat (Makefile.am): Likewise.
74075         * modules/fnmatch (Makefile.am): Likewise.
74076         * modules/fopen-safer (Makefile.am): Likewise.
74077         * modules/fpending (Makefile.am): Likewise.
74078         * modules/fprintftime (Makefile.am): Likewise.
74079         * modules/free (Makefile.am): Likewise.
74080         * modules/fsusage (Makefile.am): Likewise.
74081         * modules/ftruncate (Makefile.am): Likewise.
74082         * modules/fts (Makefile.am): Likewise.
74083         * modules/gc (Makefile.am): Likewise.
74084         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74085         * modules/getaddrinfo (Makefile.am): Likewise.
74086         * modules/getcwd (Makefile.am): Likewise.
74087         * modules/getdelim (Makefile.am): Likewise.
74088         * modules/getdomainname (Makefile.am): Likewise.
74089         * modules/getgroups (Makefile.am): Likewise.
74090         * modules/gethostname (Makefile.am): Likewise.
74091         * modules/gethrxtime (Makefile.am): Likewise.
74092         * modules/getline (Makefile.am): Likewise.
74093         * modules/getloadavg (Makefile.am): Likewise.
74094         * modules/getlogin_r (Makefile.am): Likewise.
74095         * modules/getopt (Makefile.am): Likewise.
74096         * modules/getpass (Makefile.am): Likewise.
74097         * modules/getpass-gnu (Makefile.am): Likewise.
74098         * modules/getsubopt (Makefile.am): Likewise.
74099         * modules/gettime (Makefile.am): Likewise.
74100         * modules/gettimeofday (Makefile.am): Likewise.
74101         * modules/getugroups (Makefile.am): Likewise.
74102         * modules/getusershell (Makefile.am): Likewise.
74103         * modules/glob (Makefile.am): Likewise.
74104         * modules/group-member (Makefile.am): Likewise.
74105         * modules/hard-locale (Makefile.am): Likewise.
74106         * modules/hash (Makefile.am): Likewise.
74107         * modules/hmac-md5 (Makefile.am): Likewise.
74108         * modules/hmac-sha1 (Makefile.am): Likewise.
74109         * modules/human (Makefile.am): Likewise.
74110         * modules/idcache (Makefile.am): Likewise.
74111         * modules/imaxabs (Makefile.am): Likewise.
74112         * modules/imaxdiv (Makefile.am): Likewise.
74113         * modules/inet_ntop (Makefile.am): Likewise.
74114         * modules/inet_pton (Makefile.am): Likewise.
74115         * modules/inttostr (Makefile.am): Likewise.
74116         * modules/isapipe (Makefile.am): Likewise.
74117         * modules/lchown (Makefile.am): Likewise.
74118         * modules/long-options (Makefile.am): Likewise.
74119         * modules/lstat (Makefile.am): Likewise.
74120         * modules/malloc (Makefile.am): Likewise.
74121         * modules/mathl (Makefile.am): Likewise.
74122         * modules/mbchar (Makefile.am): Likewise.
74123         * modules/md2 (Makefile.am): Likewise.
74124         * modules/md4 (Makefile.am): Likewise.
74125         * modules/md5 (Makefile.am): Likewise.
74126         * modules/memcasecmp (Makefile.am): Likewise.
74127         * modules/memchr (Makefile.am): Likewise.
74128         * modules/memcmp (Makefile.am): Likewise.
74129         * modules/memcoll (Makefile.am): Likewise.
74130         * modules/memcpy (Makefile.am): Likewise.
74131         * modules/memmem (Makefile.am): Likewise.
74132         * modules/memmove (Makefile.am): Likewise.
74133         * modules/mempcpy (Makefile.am): Likewise.
74134         * modules/memrchr (Makefile.am): Likewise.
74135         * modules/memset (Makefile.am): Likewise.
74136         * modules/memxor (Makefile.am): Likewise.
74137         * modules/mkancesdirs (Makefile.am): Likewise.
74138         * modules/mkdir (Makefile.am): Likewise.
74139         * modules/mkdir-p (Makefile.am): Likewise.
74140         * modules/mkdtemp (Makefile.am): Likewise.
74141         * modules/mkstemp (Makefile.am): Likewise.
74142         * modules/mktime (Makefile.am): Likewise.
74143         * modules/modechange (Makefile.am): Likewise.
74144         * modules/mountlist (Makefile.am): Likewise.
74145         * modules/nanosleep (Makefile.am): Likewise.
74146         * modules/openat (Makefile.am): Likewise.
74147         * modules/pagealign_alloc (Makefile.am): Likewise.
74148         * modules/physmem (Makefile.am): Likewise.
74149         * modules/poll (Makefile.am): Likewise.
74150         * modules/posixtm (Makefile.am): Likewise.
74151         * modules/posixver (Makefile.am): Likewise.
74152         * modules/putenv (Makefile.am): Likewise.
74153         * modules/quote (Makefile.am): Likewise.
74154         * modules/quotearg (Makefile.am): Likewise.
74155         * modules/raise (Makefile.am): Likewise.
74156         * modules/read-file (Makefile.am): Likewise.
74157         * modules/readline (Makefile.am): Likewise.
74158         * modules/readlink (Makefile.am): Likewise.
74159         * modules/readtokens (Makefile.am): Likewise.
74160         * modules/readutmp (Makefile.am): Likewise.
74161         * modules/realloc (Makefile.am): Likewise.
74162         * modules/regex (Makefile.am): Likewise.
74163         * modules/rename (Makefile.am): Likewise.
74164         * modules/rename-dest-slash (Makefile.am): Likewise.
74165         * modules/rijndael (Makefile.am): Likewise.
74166         * modules/rmdir (Makefile.am): Likewise.
74167         * modules/rpmatch (Makefile.am): Likewise.
74168         * modules/safe-read (Makefile.am): Likewise.
74169         * modules/safe-write (Makefile.am): Likewise.
74170         * modules/same (Makefile.am): Likewise.
74171         * modules/save-cwd (Makefile.am): Likewise.
74172         * modules/savedir (Makefile.am): Likewise.
74173         * modules/setenv (Makefile.am): Likewise.
74174         * modules/settime (Makefile.am): Likewise.
74175         * modules/sha1 (Makefile.am): Likewise.
74176         * modules/sig2str (Makefile.am): Likewise.
74177         * modules/snprintf (Makefile.am): Likewise.
74178         * modules/stdlib-safer (Makefile.am): Likewise.
74179         * modules/stpcpy (Makefile.am): Likewise.
74180         * modules/stpncpy (Makefile.am): Likewise.
74181         * modules/strcase (Makefile.am): Likewise.
74182         * modules/strcasestr (Makefile.am): Likewise.
74183         * modules/strchrnul (Makefile.am): Likewise.
74184         * modules/strcspn (Makefile.am): Likewise.
74185         * modules/strdup (Makefile.am): Likewise.
74186         * modules/strerror (Makefile.am): Likewise.
74187         * modules/strftime (Makefile.am): Likewise.
74188         * modules/strndup (Makefile.am): Likewise.
74189         * modules/strnlen (Makefile.am): Likewise.
74190         * modules/strpbrk (Makefile.am): Likewise.
74191         * modules/strsep (Makefile.am): Likewise.
74192         * modules/strstr (Makefile.am): Likewise.
74193         * modules/strtod (Makefile.am): Likewise.
74194         * modules/strtoimax (Makefile.am): Likewise.
74195         * modules/strtok_r (Makefile.am): Likewise.
74196         * modules/strtol (Makefile.am): Likewise.
74197         * modules/strtoll (Makefile.am): Likewise.
74198         * modules/strtoul (Makefile.am): Likewise.
74199         * modules/strtoull (Makefile.am): Likewise.
74200         * modules/strtoumax (Makefile.am): Likewise.
74201         * modules/strverscmp (Makefile.am): Likewise.
74202         * modules/time_r (Makefile.am): Likewise.
74203         * modules/timegm (Makefile.am): Likewise.
74204         * modules/tmpfile-safer (Makefile.am): Likewise.
74205         * modules/unistd-safer (Makefile.am): Likewise.
74206         * modules/unlinkdir (Makefile.am): Likewise.
74207         * modules/userspec (Makefile.am): Likewise.
74208         * modules/utime (Makefile.am): Likewise.
74209         * modules/utimecmp (Makefile.am): Likewise.
74210         * modules/utimens (Makefile.am): Likewise.
74211         * modules/vasnprintf (Makefile.am): Likewise.
74212         * modules/vasprintf (Makefile.am): Likewise.
74213         * modules/vsnprintf (Makefile.am): Likewise.
74214         * modules/xalloc (Makefile.am): Likewise.
74215         * modules/xgetcwd (Makefile.am): Likewise.
74216         * modules/xnanosleep (Makefile.am): Likewise.
74217         * modules/xreadlink (Makefile.am): Likewise.
74218         * modules/xstrtod (Makefile.am): Likewise.
74219         * modules/xstrtol (Makefile.am): Likewise.
74220         * modules/xstrtold (Makefile.am): Likewise.
74221         * modules/yesno (Makefile.am): Likewise.
74222
74223 2006-10-12  Jim Meyering  <jim@meyering.net>
74224
74225         * m4/getloadavg.m4: Revert the change below.
74226
74227         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74228         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74229         fail with a symlink, which is what coreutils' ./bootstrap now
74230         creates by default.
74231
74232 2006-10-12  Bruno Haible  <bruno@clisp.org>
74233
74234         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74235         mingw.
74236         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74237         MSVC and mingw explicitly.
74238
74239 2006-10-11  Simon Josefsson  <jas@extundo.com>
74240             Bruno Haible  <bruno@clisp.org>
74241
74242         Add support for multiple gnulib-tool invocations in the scope of a
74243         single configure.ac file.
74244         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74245         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74246         with the same contents as the _LIBADD variable.
74247         (func_emit_initmacro_start, func_emit_initmacro_end,
74248         func_emit_initmacro_done): New functions.
74249         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74250         gl_LIBOBJS and gl_LTLIBOBJS.
74251
74252 2006-10-11  Bruno Haible  <bruno@clisp.org>
74253
74254         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74255         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74256         autoreconf. Instead, invoke autopoint explicitly but move back the
74257         *.m4 files from gnulib.
74258
74259 2006-10-11  Bruno Haible  <bruno@clisp.org>
74260
74261         * gnulib-tool (func_usage): Make module names after --create-testdir
74262         optional.
74263         (func_create_testdir): If no module was specified, use nearly all
74264         modules.
74265
74266 2006-10-12  Jim Meyering  <jim@meyering.net>
74267
74268         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74269         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74270         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74271         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74272         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74273         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74274         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74275         (fts_set_stat_required): New function.
74276         (fts_open): Defer the calls to fts_stat, if possible or requested.
74277         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74278         into fts_stat itself.
74279         (fts_read): Perform any required (deferred) fts_stat call.
74280         (fts_build): Likewise, for the directory we're about to open and read.
74281         In the readdir loop, carefully decide whether each entry will require
74282         an eventual call to fts_stat, using dirent.d_type info if available.
74283         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74284         a command line argument into this function.  Update all callers.
74285         Map a return value of FTS_DOT to FTS_D for a command line argument.
74286         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74287         Thanks to Miklos Szeredi for his tenacity and for the initial
74288         bug report about "find" failing on a FUSE-based file system.
74289
74290         * lib/fts.c (fts_open): Use consistent indentation.
74291
74292 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74293
74294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74295         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74296         reported by Jim Meyering.  All uses of cache variables renamed
74297         to match Autoconf's.
74298         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74299         the other one.
74300
74301         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74302         Fix misspelling in diagnostic.
74303
74304 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74307         defined.  Problem reported by Matthew Woehlke.
74308
74309         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74310         Add support for Tandem NonStop R series.
74311         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74312         Use new macro.
74313
74314         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74315         (has_trailing_slash): Omit size arg; all callers changed.
74316         Omit 'inline', since it doesn't help performance and we'd
74317         need to configure it.
74318         Don't count //, ///, etc. as having a trailing slash.
74319         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74320         (rpl_rename_dest_slash): On failure, use rename's errno rather
74321         than (in some cases) an incorrect or junk errno.
74322         Simplify code by removing need to compute length; this does
74323         cause it to make two passes instead of one over the file name,
74324         but it's worth it.
74325
74326         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74327         change, since Autoconf's version may no longer be appropriate now
74328         that we are using CVS Autoconf's version.  Add support for Tandem.
74329
74330 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74331             Bruno Haible  <bruno@clisp.org>
74332
74333         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74334         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74335         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74336         gl_AC_TYPE_LONG_LONG.
74337
74338         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74339         instead of HAVE_LONG_LONG.
74340         * lib/printf-args.c (printf_fetchargs): Likewise.
74341         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74342         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74343         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74344         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74345         gl_AC_TYPE_LONG_LONG.
74346
74347 2006-10-11  Bruno Haible  <bruno@clisp.org>
74348
74349         * m4/longlong.m4: Add comments.
74350         * m4/ulonglong.m4: Likewise.
74351
74352 2006-10-10  Bruno Haible  <bruno@clisp.org>
74353
74354         Make it possible to #define stpcpy, strdup to aliases.
74355         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74356         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74357
74358 2006-10-10  Bruno Haible  <bruno@clisp.org>
74359
74360         Make it possible to #define gcd to an alias.
74361         * lib/gcd.c: Include config.h.
74362
74363 2006-10-10  Bruno Haible  <bruno@clisp.org>
74364
74365         Make it possible to #define c_isascii to an alias.
74366         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74367         defined. Undefine the macros before defining them, to avoid gcc
74368         warnings.
74369         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74370         define NO_C_CTYPE_MACROS early.
74371
74372 2006-10-10  Bruno Haible  <bruno@clisp.org>
74373
74374         Make it possible to #define set_program_name to an alias.
74375         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74376         ENABLE_RELOCATABLE early.
74377
74378 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74381         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74382         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74383         More generally, don't assume that 64-bit signed int is available
74384         if unsigned int is, and vice versa.
74385         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74386         unsigned symbols, not on their signed counterparts.
74387         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74388         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74389         (UINT64_C, UINTMAX_C):
74390         Likewise.
74391         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74392         unsigned counterparts.
74393         (Have_long_long, Unsigned): New macros.
74394         (Int): Renamed from INT.
74395         (strtoimax): Use the new macros.
74396         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74397         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74398         * modules/inttypes (inttypes.h): Substitute
74399         HAVE_UNSIGNED_LONG_LONG_INT.
74400         * modules/stdint (stdint.h): Likewise.
74401         (Files): Add m4/ulonglong.m4.
74402
74403 2006-10-10  Bruno Haible  <bruno@clisp.org>
74404
74405         Fix a gcc -Wshadow warning.
74406         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74407         to 'bucket'.
74408         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74409         gl_linked_indexof_from_to): Likewise.
74410         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74411         Likewise.
74412         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74413         Likewise.
74414         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74415         Reported by Eric Blake.
74416
74417 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74420         for NetBSD.  Problem reported by Bruno Haible.
74421
74422 2006-10-09  Jim Meyering  <jim@meyering.net>
74423
74424         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74425         Patch from Bruno Haible.
74426
74427 2006-10-09  Jim Meyering  <jim@meyering.net>
74428
74429         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74430         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74431         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74432
74433 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         Don't include <config.h> twice; this doesn't work in some cases,
74436         e.g., when config.h has "#define intmax_t long long int" and
74437         we include <config.h>, <inttypes.h>, <config.h> in that order.
74438         Problem reported by Matthew Woehlke in:
74439         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74440         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74441         * lib/fts-cycle.c: Don't include config.h.
74442         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74443         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74444         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74445         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74446         inttypes.h.
74447         * lib/xstrtoumax.c: Likewise.
74448         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74449         __strtol and the like, so that this module is more like its siblings.
74450         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74451         Remove; no longer needed now that we assume gnulib inttypes.h.
74452
74453 2006-10-08  Bruno Haible  <bruno@clisp.org>
74454
74455         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74456         option.
74457
74458 2006-10-07  Jim Meyering  <jim@meyering.net>
74459
74460         * modules/inttypes (inttypes.h): Revert what seems to have been
74461         an inadvertent part of today's change: use "|", not "/" in the
74462         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74463
74464 2006-10-07  Bruno Haible  <bruno@clisp.org>
74465
74466         * modules/sublist: New file.
74467
74468 2006-10-07  Bruno Haible  <bruno@clisp.org>
74469
74470         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74471         * modules/argz (argz.h): Likewise.
74472         * modules/arpa_inet (arpa/inet.h): Likewise.
74473         * modules/byteswap (byteswap.h): Likewise.
74474         * modules/configmake (configmake.h): Likewise.
74475         * modules/fcntl (fcntl.h): Likewise.
74476         * modules/fnmatch (fnmatch.h): Likewise.
74477         * modules/getopt (getopt.h): Likewise.
74478         * modules/glob (glob.h): Likewise.
74479         * modules/inttypes (inttypes.h): Likewise.
74480         * modules/netinet_in (netinet/in.h): Likewise.
74481         * modules/poll (poll.h): Likewise.
74482         * modules/stdbool (stdbool.h): Likewise.
74483         * modules/stdint (stdint.h): Likewise.
74484         * modules/sys_select (sys/select.h): Likewise.
74485         * modules/sys_socket (sys/socket.h): Likewise.
74486         * modules/sys_stat (sys/stat.h): Likewise.
74487         * modules/sysexits (sysexits.h): Likewise.
74488         * modules/unistd (unistd.h): Likewise.
74489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74490         Add a "DO NOT EDIT" comment to the generated file.
74491         (func_import): Likewise for gnulib-comp.m4.
74492
74493 2006-10-07  Bruno Haible  <bruno@clisp.org>
74494
74495         * lib/gl_sublist.h: New file.
74496         * lib/gl_sublist.c: New file.
74497
74498 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74499
74500         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74501         name (relative to the original working directory) and the file
74502         name component (relative to the temporary working directory).  All
74503         callers changed.
74504         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74505         * lib/mkdir-p.c (make_dir_parents): Likewise.
74506         * lib/mkdir-p.h (make_dir_parents): Likewise.
74507
74508 2006-10-06  Eric Blake  <ebb9@byu.net>
74509
74510         Define several macros for use by the clean-temp module.
74511         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74512         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74513         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74514
74515         * lib/clean-temp.h (close_stream_temp): New declaration.
74516         * lib/clean-temp.c (includes): Pull in headers according to what
74517         other modules are in use.
74518         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74519
74520 2006-10-06  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74523         instead of fopen, fwriteerror.
74524
74525 2006-10-06  Bruno Haible  <bruno@clisp.org>
74526
74527         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74528         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74529         int.
74530         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74531         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74532         Return an error indicator.
74533         Suggested by Eric Blake.
74534
74535 2006-10-06  Bruno Haible  <bruno@clisp.org>
74536
74537         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74538         Reported by Eric Blake.
74539
74540 2006-10-06  Bruno Haible  <bruno@clisp.org>
74541
74542         * modules/closeout (Description): Mention stderr too.
74543
74544 2006-10-06  Bruno Haible  <bruno@clisp.org>
74545         and Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * lib/closeout.c (close_stdout): Also close stderr.
74548         * lib/closeout.h: Update comment.
74549
74550 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74553         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74554         * lib/dirchownmod.c: Include lchown.h.
74555         * lib/lchown.c: Don't include files that lchown.h now includes.
74556         Don't declare chown, since lchown.h now does that.
74557         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74558         (lchown): Define to rpl_chown if lchown is declared but
74559         does not exist.  Declare using a prototype if lchown is not
74560         declared.  Add a copyright notice.
74561         * lib/mkstemp.h: Include <unistd.h>.
74562         * lib/openat.c: Include lchown.h.
74563
74564         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74565         we now test for that separately.
74566         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74567         rather than O_NOFOLLOW, when testing whether it's possible to
74568         avoid a race condition reliably.
74569         * lib/savewd.c (savewd_chdir): Likewise.
74570
74571         Remove macros that are no longer needed now that stdint.h is
74572         reliable.
74573         * lib/fsusage.c (UINTMAX_MAX): Remove.
74574         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74575         * lib/utimecmp.c (SIZE_MAX): Remove.
74576
74577         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74578
74579         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74580         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74581         O_NOATIME works.
74582
74583 2006-10-05  Bruno Haible  <bruno@clisp.org>
74584
74585         * lib/gl_list.h (gl_sortedlist_search_from_to,
74586         gl_sortedlist_indexof_from_to): New declarations.
74587         (gl_list_implementation): New fields sortedlist_search_from_to,
74588         sortedlist_indexof_from_to.
74589         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74590         inline functions.
74591         * lib/gl_list.c (gl_sortedlist_search_from_to,
74592         gl_sortedlist_indexof_from_to): New functions.
74593         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74594         function.
74595         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74596         (gl_array_sortedlist_search_from_to): New function.
74597         (gl_array_list_implementation): Update.
74598         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74599         function.
74600         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74601         (gl_carray_sortedlist_search_from_to): New function.
74602         (gl_carray_list_implementation): Update.
74603         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74604         gl_linked_sortedlist_indexof_from_to): New functions.
74605         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74606         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74607         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74608         gl_tree_sortedlist_indexof_from_to): New functions.
74609         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74610         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74611         Update.
74612         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74613         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74614         Update.
74615
74616 2006-10-05  Bruno Haible  <bruno@clisp.org>
74617
74618         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74619         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74620         (struct gl_list_implementation): Add fields search_from_to,
74621         indexof_from_to. Remove fields search, indexof.
74622         (gl_list_search): Use the search_from_to method.
74623         (gl_list_search_from, gl_list_search_from_to): New functions.
74624         (gl_list_indexof): Use the indexof_from_to method.
74625         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74626         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74627         (gl_list_search_from, gl_list_search_from_to): New functions.
74628         (gl_list_indexof): Use the indexof_from_to method.
74629         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74630         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74631         gl_array_indexof. Add start_index, end_index arguments.
74632         (gl_array_search_from_to): Renamed from gl_array_search. Add
74633         start_index, end_index arguments.
74634         (gl_array_remove, gl_array_list_implementation): Update.
74635         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74636         gl_carray_indexof. Add start_index, end_index arguments.
74637         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74638         start_index, end_index arguments.
74639         (gl_carray_remove, gl_carray_list_implementation): Update.
74640         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74641         gl_linked_search. Add start_index, end_index arguments.
74642         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74643         start_index, end_index arguments.
74644         (gl_linked_remove): Update.
74645         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74646         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74647         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74648         field to 'size_t'.
74649         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74650         gl_tree_search. Add start_index, end_index arguments.
74651         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74652         start_index, end_index arguments.
74653         (gl_tree_remove): Update.
74654         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74655         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74656         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74657         function.
74658         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74659         gl_tree_search. Add start_index, end_index arguments.
74660         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74661         start_index, end_index arguments.
74662         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74663         Update.
74664         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74665
74666 2006-10-05  Bruno Haible  <bruno@clisp.org>
74667
74668         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74669
74670         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74671         fwriteerror_temp): New declarations.
74672         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74673         (descriptors): New variable.
74674         (cleanup): First, close the descriptors.
74675         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74676         fclose_temp, fwriteerror_temp): New functions.
74677
74678 2006-10-04  Jim Meyering  <jim@meyering.net>
74679
74680         * lib/fts.c (fts_open): Tiny comment change.
74681
74682 2006-10-04  Bruno Haible  <bruno@clisp.org>
74683
74684         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74685         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74686         gl_LOCK_BODY.
74687         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74688         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74689         gl_LOCK_EARLY_BODY.
74690         (gl_LOCK): Require gl_LOCK_BODY.
74691
74692 2006-10-04  Bruno Haible  <bruno@clisp.org>
74693
74694         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74695         (gl_oset_search_atleast): New declaration.
74696         (struct gl_oset_implementation): Add field 'search_atleast'.
74697         (gl_oset_search_atleast): New inline function.
74698         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74699         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74700         (gl_array_oset_implementation): Update.
74701         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74702         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74703         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74704
74705 2006-10-04  Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74708
74709 2006-10-03  Bruno Haible  <bruno@clisp.org>
74710
74711         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74712         from gl_avltreehash_list_implementation.
74713
74714 2006-10-03  Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/gl_oset.c (gl_oset_add): Fix return type.
74717
74718 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74719
74720         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74721
74722 2006-10-02  Eric Blake  <ebb9@byu.net>
74723
74724         * modules/strnlen (Depends-on): Add extensions.
74725
74726 2006-10-02  Eric Blake  <ebb9@byu.net>
74727
74728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74729         definition in 2.60+.
74730
74731 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74732
74733         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74734         checks.
74735
74736 2006-10-02  Bruno Haible  <bruno@clisp.org>
74737
74738         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74739         to the AUTOMAKE_OPTIONS.
74740         Reported by Jim Meyering.
74741
74742 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         Work around bug in Solaris 10 /proc file system:
74745         /proc/self/fd/NNN/.. isn't the parent directory of
74746         the directory whose file descriptor is NNN.  This needs to
74747         be worked around at run time, not compile time, since a
74748         program might be built on Solaris 8, where things work, and
74749         run on Solaris 10.
74750         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74751         to use the following interface instead:
74752         (OPENAT_BUFFER_SIZE): New macro.
74753         (openat_proc_name): New function.
74754         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74755         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74756         Likewise.
74757         * lib/openat-proc.c: New file.
74758         * modules/openat (Files): Add lib/openat-proc.c.
74759         (Depends-on): Add same-inode, stdbool.
74760         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74761
74762 2006-09-29  Bruno Haible  <bruno@clisp.org>
74763
74764         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74765         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74766         argument. Set stdout_closed before testing for ferror, not after.
74767         (fwriteerror, fwriteerror_no_ebadf): New functions.
74768
74769 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74770
74771         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74772
74773 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74774
74775         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74776         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74777
74778 2006-09-28  Jim Meyering  <jim@meyering.net>
74779
74780         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74781         Include <unistd.h>.
74782
74783 2006-09-28  Bruno Haible  <bruno@clisp.org>
74784
74785         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74786         * modules/linkedhash-list (Depends-on): Likewise.
74787         * modules/rbtreehash-list (Depends-on): Likewise.
74788
74789 2006-09-28  Bruno Haible  <bruno@clisp.org>
74790
74791         * lib/strndup.h: Simplify the redefinition of strndup.
74792         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74794
74795 2006-09-28  Bruno Haible  <bruno@clisp.org>
74796
74797         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74798         * lib/gl_linkedhash_list.c: Likewise.
74799         * lib/gl_rbtreehash_list.c: Likewise.
74800
74801 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74804         getaddrinfo.
74805
74806         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74807         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74808         it causes <stdio_ext.h> to cause a compile-time error.
74809         Problem reported by Nelson H. F. Beebe.
74810         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74811         of HAVE_DECL___PENDING.
74812
74813         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74814         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74815         declaration.
74816
74817 2006-09-27  Jim Meyering  <jim@meyering.net>
74818
74819         This file could end up with a definition for a function
74820         named __strndup, rather than rpl_strndup on a system with
74821         incomplete weak_alias support.
74822         * lib/strndup.c (strndup): Rename from __strndup.
74823         Remove #defines that used to map __strndup to strndup.
74824         Don't use K&R prototypes.
74825         Remove LIBC-related code, since this file is not sync'd with glibc.
74826         * lib/strndup.h: Revamp, accordingly.
74827         * m4/strndup.m4: Modernize.
74828
74829 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         * modules/savewd (Depends-on): Add 'raise'.
74832         * lib/savewd.c: Include <signal.h>, for 'raise'.
74833
74834 2006-09-26  Jim Meyering  <jim@meyering.net>
74835
74836         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74837         when we detect Darwin 8.7.0's acl_get_file bug.
74838         Rearrange to perform the new (below) run-test while $LIBS
74839         contains any acl-related library.  Set USE_ACL at the end.
74840         (gl_ACL_GET_FILE): New function.
74841
74842 2006-09-26  Eric Blake  <ebb9@byu.net>
74843
74844         * lib/verror.c: Include <config.h> unconditionally.
74845
74846 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * modules/clock-time (Maintainer): Add self.
74849         * modules/getlogin_r (Depends-on): Add extensions.
74850
74851 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74852
74853         * modules/clock-time: New module.
74854         * modules/nanosleep (Depends-on): Add clock-time.
74855         * modules/gethrxtime (Depends-on): Likewise.
74856         * modules/gettime (Depends-on): Likewise.
74857         * modules/settime (Depends-on): Likewise.
74858
74859         * modules/fts-lgpl: Depend on openat.
74860         * modules/mkancesdirs: Depend on savewd.
74861         * modules/mkdir-p: Likewise.
74862
74863 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74864
74865         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74866
74867         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74868         `gl_have_arbitrary_file_name_length_limit' to
74869         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74870         actually works between configure runs.
74871
74872 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74873             Bruno Haible  <bruno@clisp.org>
74874
74875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74876
74877 2006-09-25  Jim Meyering  <jim@meyering.net>
74878
74879         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74880         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74881
74882 2006-09-25  Eric Blake  <ebb9@byu.net>
74883
74884         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74885         exec's in 2006-09-18 patch when shuffling fds.
74886
74887 2006-09-25  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74890         Reported by Jim Meyering.
74891
74892 2006-09-24  Jim Meyering  <jim@meyering.net>
74893
74894         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74895         compare a pointer against a literal "0".  That caused failures with
74896         at least HP-UX's hpcc.
74897
74898 2006-09-22  Simon Josefsson  <jas@extundo.com>
74899
74900         * modules/gc-sha1:
74901         * modules/gc-md4:
74902         * modules/gc-hmac-sha1:
74903         * modules/gc-hmac-md5:
74904         * modules/gc-des:
74905         * modules/gc-arcfour: Distribute more files.
74906
74907 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74908
74909         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74910         (gl_linked_iterator_from_to): Initialize struct completely.
74911         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74912         (gl_tree_iterator_from_to): Likewise
74913         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74914         * lib/gl_array_list.c [lint] (gl_array_iterator)
74915         (gl_array_iterator_from_to): Likewise.
74916         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74917         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74918         (gl_carray_iterator_from_to): Likewise.
74919
74920         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74921         * lib/md4.c (md4_process_block): Remove unused variable.
74922         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74923         parentheses for clarity.
74924
74925 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74926
74927         * modules/bison-i18n (Depends-on): Add gettext.
74928
74929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74930
74931         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74932         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74933         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74934         also add missing comma that caused broken test.
74935         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74936         stdlib.h, for `abort'.
74937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74938         variables.
74939         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74940         include unistd.h if present, for `rmdir'.
74941         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74942         variables.
74943         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74944         in the process include standard headers for prototypes.
74945         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74946         gets declared on GNU/Linux.
74947         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74948         unistd.h, for `rmdir'.
74949         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74950
74951         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74952         always true.
74953         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74954
74955         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74956
74957 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74958
74959         * gnulib-tool (func_version): Create output all at once.  This
74960         may help avoid triggering unnecessary SIGPIPEs, and at any
74961         rate it doesn't hurt.
74962
74963 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74964             Bruno Haible  <bruno@clisp.org>
74965
74966         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74967         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74968         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74969
74970         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74971         (gl_FUNC_VASPRINTF): Invoke it.
74972
74973 2006-09-22  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74976         getloadavg.c as first argument.
74977
74978 2006-09-22  Bruno Haible  <bruno@clisp.org>
74979
74980         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74981         at the beginning of the gl_INIT macro.
74982         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74983         gl_GETLOADAVG.
74984
74985 2006-09-22  Bruno Haible  <bruno@clisp.org>
74986
74987         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74988         module.
74989         Suggested by Ralf Wildenhues.
74990
74991 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74992
74993         Import this patch from libc:
74994
74995         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74996
74997         * lib/regex_internal.c (re_string_reconstruct): Handle
74998         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74999         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75000         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75001         re_string_context_at.
75002
75003         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75004         now requires it.
75005         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75006         gl_REGEX now does it for us.
75007         (gl_REGEX): Add test taken from
75008         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75009
75010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75011         Check that large offsets work.  Modernize Autoconf usages.
75012         Prefer "yes" to mean a good thing rather than a bad.
75013         Don't put "#define mkstemp" in config.h, as this might interfere
75014         with standard system headers that "#define mkstemp mkstemp64".
75015
75016         * modules/mkstemp (Depends-on): Add extensions, so that
75017         mkstemp is visible on some platforms.
75018         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75019         (Include): Change to "mkstemp.h" from <stdlib.h>.
75020         (Files): Add mkstemp.h.
75021
75022         * lib/mkstemp.h: New file, since some standard headers
75023         #define mkstemp.
75024         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75025         Include "mkstemp.h".
75026         Make the _LIBC code resemble glibc original more,
75027         e.g., use K&R style.
75028         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75029         (mkstemp): Remove, since mkstemp.h does this for us.
75030         * lib/stdlib--.h: Include mkstemp.h.
75031
75032         Import this patch from libc:
75033
75034         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75035
75036         * lib/tempname.c (__gen_tempname): Change attempts_min
75037         into a macro.  Use preprocessor to decide how to initialize
75038         attempts [Coverity CID 67].
75039
75040 2006-09-20  Bruno Haible  <bruno@clisp.org>
75041
75042         * lib/mkdtemp.c: Import from libc.
75043         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75044                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75045                 attempts_min into a macro.  Use preprocessor to decide how to
75046                 initialize attempts [Coverity CID 67].
75047         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75048                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75049                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75050
75051 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75052
75053         * gnulib-tool (func_exit): New function, to allow to pass the
75054         exit status portably through the trap.  Use everywhere.
75055         (--help, --version): Signal a write error.
75056         (trap): catch SIGPIPE, for write errors.
75057         Exit at the end of the trap, with the correct exit status.
75058
75059 2006-09-19  Karl Berry  <karl@gnu.org>
75060
75061         * doc/gnulib.texi: note about the license texinfo files.
75062
75063 2006-09-19  Eric Blake  <ebb9@byu.net>
75064
75065         * gnulib-tool: Avoid space-tab.
75066
75067 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75070         that prevented coreutils 6.1 from building.  Problem reported
75071         by Petter Reinholdtsen.
75072
75073 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * gnulib-tool (avoidlist): Fix typo that broke options like
75076         --avoid=lock that are used by coreutils bootstrap.
75077
75078 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75079
75080         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75081         more systematically.
75082
75083 2006-09-18  Jim Meyering  <jim@meyering.net>
75084
75085         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75086
75087 2006-09-18  Bruno Haible  <bruno@clisp.org>
75088
75089         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75090
75091 2006-09-18  Bruno Haible  <bruno@clisp.org>
75092
75093         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75094         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75095         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75096         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75097         * m4/gettext.m4: Require autoconf >= 2.52.
75098         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75099         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75100         of gl_cv_header_inttypes_h.
75101
75102 2006-09-18  Bruno Haible  <bruno@clisp.org>
75103
75104         * lib/javaversion.c: Include configmake.h.
75105
75106 2006-09-18  Bruno Haible  <bruno@clisp.org>
75107
75108         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75109         avoid that the while loops be executed in a subshell.
75110
75111 2006-09-18  Bruno Haible  <bruno@clisp.org>
75112
75113         * MODULES.html.sh (func_module): Break long lines.
75114         Suggested by Bruce Korb <bkorb@gnu.org>.
75115
75116 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75117
75118         Speed up by a factor of 1.12.
75119         * gnulib-tool (nl): New variable.
75120         (func_import): Rewrite include directive extraction to only read each
75121         directive once.
75122
75123 2006-09-17  Bruno Haible  <bruno@clisp.org>
75124
75125         * modules/javaversion (Makefile.am): Remove DEFS setting.
75126         (Depends-on): Add configmake, for PKGDATADIR definition.
75127
75128 2006-09-17  Bruno Haible  <bruno@clisp.org>
75129
75130         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75131
75132 2006-09-17  Bruno Haible  <bruno@clisp.org>
75133
75134         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75135         (func_modules_transitive_closure, func_modules_add_dummy,
75136         func_modules_to_filelist, func_import, func_create_testdir,
75137         func_create_megatestdir, ...): Use it wherever possible.
75138         Suggested by Ralf Wildenhues.
75139
75140 2006-09-16  Karl Berry  <karl@gnu.org>
75141
75142         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75143         to avoid sectioning errors.
75144         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75145         [ifinfo]: blank line after @center-ed titles.
75146         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75147         Spell FSF address consistently with others.
75148         (These changes approved by rms.)
75149
75150 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75151
75152         Speed up by a factor of 1.61.
75153         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75154         already checked module names again.
75155
75156 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75157
75158         Speed up by a factor of 1.13.
75159         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75160         for new_files, and the input to func_add_or_update.
75161
75162 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75163
75164         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75165         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75166
75167 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75168
75169         * modules/mkancesdirs (Depends-on): Add fcntl.
75170         * modules/savewd: New file.
75171         * MODULES.html.sh (File system functions): Add savewd.
75172
75173         * modules/configmake (Makefile.am): Add support for the
75174         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75175
75176 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         * m4/savewd.m4: New file.
75179
75180 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75183         (dirchownmod): New arg FD.  All callers changed.
75184         Use FD rather than opening the directory ourself, as opening is
75185         now the caller's responsibility.
75186         * lib/dirchownmod.h: Likewise.
75187         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75188         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75189         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75190         (test_dir): Remove.
75191         (mkancesdirs): Return length of prefix of FILE that has already
75192         been made, or -2 if there is a child doing the work.  Redo
75193         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75194         ".", and treat ".." specially since it might stray back into
75195         already-created areas.  Use a subprocess if necessary.  New arg
75196         WD; all users changed.  MAKE_DIR function should now return 1
75197         if it creates a directory that is not readable.  Return -2 if
75198         a child process is spun off.
75199         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75200         Adjust signature to match code.
75201         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75202         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75203         all users changed.
75204         * lib/savewd.c, lib/savewd.h: New files.
75205
75206 2006-09-15  Jim Meyering  <jim@meyering.net>
75207
75208         * modules/rename-dest-slash: New module.
75209         * MODULES.html.sh (posix_compat): Add it here.
75210
75211         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75212
75213 2006-09-15  Jim Meyering  <jim@meyering.net>
75214
75215         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75216         file.
75217
75218         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75219
75220 2006-09-15  Jim Meyering  <jim@meyering.net>
75221
75222         * lib/rename-dest-slash.c (has_trailing_slash): Use
75223         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75224         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75225         test before testing whether SRC is a directory.
75226         Suggestions from Bruno Haible.
75227
75228         Avoid a warning about an unused variable.
75229         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75230         into the #ifdef block where it's used.
75231
75232         * lib/rename-dest-slash.c: New file.
75233
75234 2006-09-14  Bruno Haible  <bruno@clisp.org>
75235
75236         * lib/allocsa.c: Include <config.h> unconditionally.
75237         * lib/asnprintf.c: Likewise.
75238         * lib/asprintf.c: Likewise.
75239         * lib/c-strcasecmp.c: Likewise.
75240         * lib/c-strcasestr.c: Likewise.
75241         * lib/c-strncasecmp.c: Likewise.
75242         * lib/c-strstr.c: Likewise.
75243         * lib/classpath.c: Likewise.
75244         * lib/clean-temp.c: Likewise.
75245         * lib/concatpath.c: Likewise.
75246         * lib/copy-file.c: Likewise.
75247         * lib/csharpcomp.c: Likewise.
75248         * lib/csharpexec.c: Likewise.
75249         * lib/execute.c: Likewise.
75250         * lib/fatal-signal.c: Likewise.
75251         * lib/findprog.c: Likewise.
75252         * lib/fwriteerror.c: Likewise.
75253         * lib/gl_array_list.c: Likewise.
75254         * lib/gl_array_oset.c: Likewise.
75255         * lib/gl_avltree_list.c: Likewise.
75256         * lib/gl_avltree_oset.c: Likewise.
75257         * lib/gl_avltreehash_list.c: Likewise.
75258         * lib/gl_carray_list.c: Likewise.
75259         * lib/gl_linked_list.c: Likewise.
75260         * lib/gl_linkedhash_list.c: Likewise.
75261         * lib/gl_list.c: Likewise.
75262         * lib/gl_oset.c: Likewise.
75263         * lib/gl_rbtree_list.c: Likewise.
75264         * lib/gl_rbtree_oset.c: Likewise.
75265         * lib/gl_rbtreehash_list.c: Likewise.
75266         * lib/imaxabs.c: Likewise.
75267         * lib/imaxdiv.c: Likewise.
75268         * lib/javacomp.c: Likewise.
75269         * lib/javaexec.c: Likewise.
75270         * lib/javaversion.c: Likewise.
75271         * lib/linebreak.c: Likewise.
75272         * lib/localcharset.c: Likewise.
75273         * lib/lock.c: Likewise.
75274         * lib/mbchar.c: Likewise.
75275         * lib/mbswidth.c: Likewise.
75276         * lib/mkdtemp.c: Likewise.
75277         * lib/pipe.c: Likewise.
75278         * lib/printf-args.c: Likewise.
75279         * lib/printf-parse.c: Likewise.
75280         * lib/progname.c: Likewise.
75281         * lib/progreloc.c: Likewise.
75282         * lib/readlink.c: Likewise.
75283         * lib/sh-quote.c: Likewise.
75284         * lib/stpcpy.c: Likewise.
75285         * lib/stpncpy.c: Likewise.
75286         * lib/strcasecmp.c: Likewise.
75287         * lib/strcasestr.c: Likewise.
75288         * lib/strcspn.c: Likewise.
75289         * lib/striconv.c: Likewise.
75290         * lib/strncasecmp.c: Likewise.
75291         * lib/strnlen1.c: Likewise.
75292         * lib/strstr.c: Likewise.
75293         * lib/strtok_r.c: Likewise.
75294         * lib/tls.c: Likewise.
75295         * lib/tmpdir.c: Likewise.
75296         * lib/unicodeio.c: Likewise.
75297         * lib/unsetenv.c: Likewise.
75298         * lib/vasnprintf.c: Likewise.
75299         * lib/vasprintf.c: Likewise.
75300         * lib/wait-process.c: Likewise.
75301         * lib/xallocsa.c: Likewise.
75302         * lib/xsetenv.c: Likewise.
75303         * lib/xstriconv.c: Likewise.
75304
75305 2006-09-13  Simon Josefsson  <jas@extundo.com>
75306
75307         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75308         that internally, suggested by Ralf Wildenhues
75309         <Ralf.Wildenhues@gmx.de>.
75310
75311 2006-09-13  Simon Josefsson  <jas@extundo.com>
75312
75313         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75314         @LIBOBJS@.
75315         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75316
75317 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75320         longer worry about uses that don't define HAVE_CONFIG_H.
75321         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75322         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75323         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75324         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75325         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75326         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75327         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75328         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75329         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75330         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75331         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75332         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75333         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75334         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75335         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75336         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75337         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75338         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75339         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75340         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75341         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75342         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75343         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75344         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75345         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75346         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75347         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75348         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75349         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75350         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75351         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75352         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75353         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75354         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75355         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75356         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75357         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75358         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75359         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75360         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75361         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75362         Likewise.
75363
75364 2006-09-13  Eric Blake  <ebb9@byu.net>
75365
75366         * lib/getopt.c: Fix typo in last commit.
75367
75368 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75369
75370         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75371         dgettext.
75372
75373 2006-09-12  Jim Meyering  <jim@meyering.net>
75374
75375         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75376         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75377         Reported by Nelson H. F. Beebe.
75378
75379 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75380
75381         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75382         program_invocation_name and program_invocation_short_name are
75383         initialized.
75384         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75385         and program_invocation_short_name to argp.h, so they are visible
75386         to user programs.
75387         * lib/argp.h: Likewise
75388
75389 2006-09-10  Bruno Haible  <bruno@clisp.org>
75390
75391         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75392         m4/inttypes_h.m4, m4/uintmax_t.m4.
75393
75394 2006-09-10  Bruno Haible  <bruno@clisp.org>
75395
75396         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75397         gl_AC_TYPE_UINTMAX_T.
75398
75399 2006-09-10  Bruno Haible  <bruno@clisp.org>
75400
75401         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75402
75403 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75404
75405         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75406         convention.  Text proposed by Bruno Haible.
75407         (struct argp_option): Document the use of N_() wrappers.
75408
75409         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75410         '\v', and translate the two parts separately, instead of feeding
75411         the whole string to gettext.  This allows to exclude
75412         '\v' from the strings visible to the translator by writing doc
75413         strings as N_("..") "\v" N_("..").
75414
75415 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75416
75417         * config/srclist.txt: Undo latest change; the bug was fixed.
75418
75419 2006-09-09  Bruno Haible  <bruno@clisp.org>
75420
75421         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75422         assignments if building a library without libtool.
75423         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75424         in func_emit_lib_Makefile_am.
75425         (func_import): When building a static library libfoo.a, arrange to
75426         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75427         (func_create_testdir): Likewise.
75428         * modules/gc (configure.ac, Makefile.am): If building statically,
75429         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75430         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75431         * modules/striconv (configure.ac, Makefile.am): Likewise.
75432         Based on a suggestion by Ralf Wildenhues.
75433
75434 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75437         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75438         Also:
75439
75440         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75441         Add year_2050_test to catch glibc bug 2821
75442         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75443
75444         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75445         Prefer #ifdef to #if.
75446
75447         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75448         Return from 'main' instead of calling 'exit'.
75449
75450 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75453         returned the maximum time_t value rather than (time_t) -1.
75454         Problem originally reported by William Bardwell
75455         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75456
75457         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75458         Moved to here ...
75459         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75460         ... from here.
75461
75462 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75465         2821 is fixed.
75466
75467 2006-09-08  Jim Meyering  <jim@meyering.net>
75468
75469         Don't make generated files read-only.  That would bother too many
75470         people.  However, do retain the ability to work when targets are
75471         read-only: remove the destination and temporary files before writing
75472         them (when generated via sed or echo), or by using the -f option for
75473         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75474         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75475         * modules/byteswap, modules/configmake, modules/fcntl:
75476         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75477         * modules/localcharset, modules/netinet_in, modules/poll:
75478         * modules/stdbool, modules/stdint, modules/sys_select:
75479         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75480
75481 2006-09-08  Jim Meyering  <jim@meyering.net>
75482
75483         Avoid new build failure on FreeBSD 6.0.
75484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75485         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75486         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75487
75488 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75489
75490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75491
75492 2006-09-07  Jim Meyering  <jim@meyering.net>
75493
75494         Fix global typo in last change: use chmod u-w, not chmod u-x.
75495         Spotted by Paul Eggert and Bruce Korb.
75496         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75497         * modules/byteswap, modules/configmake, modules/fcntl:
75498         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75499         * modules/localcharset, modules/netinet_in, modules/poll:
75500         * modules/stdbool, modules/stdint, modules/sys_select:
75501         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75502
75503 2006-09-06  Jim Meyering  <jim@meyering.net>
75504
75505         Make generated files be read-only.
75506         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75507         Ensure that each generated file is now read-only.
75508         * modules/argz: Likewise.
75509         * modules/arpa_inet: Likewise.
75510         * modules/byteswap: Likewise.
75511         * modules/configmake: Likewise.
75512         * modules/fcntl: Likewise.
75513         * modules/fnmatch: Likewise.
75514         * modules/getopt: Likewise.
75515         * modules/glob: Likewise.
75516         * modules/inttypes: Likewise.
75517         * modules/netinet_in: Likewise.
75518         * modules/poll: Likewise.
75519         * modules/stdbool: Likewise.
75520         * modules/stdint: Likewise.
75521         * modules/sys_select: Likewise.
75522         * modules/sys_socket: Likewise.
75523         * modules/sys_stat: Likewise.
75524         * modules/sysexits: Likewise.
75525         * modules/localcharset: Same as above, but continue using temporary
75526         file named "t-$@" (why different?) rather than the "$@-t" used
75527         everywhere else.
75528
75529         * modules/sysexits (Makefile.am): Replace literal occurrences
75530         of "sysexit.h" more readable, and more consistent, "$@".
75531
75532 2006-09-06  Bruno Haible  <bruno@clisp.org>
75533
75534         * modules/striconv: New file.
75535         * modules/xstriconv: New file.
75536         * MODULES.html.sh (Internationalization functions): Add striconv,
75537         xstriconv.
75538
75539 2006-09-06  Bruno Haible  <bruno@clisp.org>
75540
75541         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75542         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75543         not using libtool correctly.
75544
75545 2006-09-06  Bruno Haible  <bruno@clisp.org>
75546
75547         * lib/striconv.h: New file.
75548         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75549         iconvstring.c.
75550         * lib/xstriconv.h: New file.
75551         * lib/xstriconv.c: New file.
75552
75553 2006-09-06  Bruno Haible  <bruno@clisp.org>
75554
75555         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75556         lib_..._LDFLAGS.
75557
75558 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75559
75560         * lib/argz_.h: Sync from Libtool.
75561
75562         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75563                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75564
75565         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75566
75567 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75568
75569         * modules/trim: New file.
75570
75571 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75572
75573         * lib/trim.h: New file.
75574         * lib/trim.c: New file.
75575
75576 2006-09-05  Bruno Haible  <bruno@clisp.org>
75577
75578         * MODULES.html.sh (String handling): Add trim.
75579
75580 2006-09-04  Karl Berry  <karl@gnu.org>
75581
75582         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75583         until next release.
75584
75585 2006-09-03  Bruno Haible  <bruno@clisp.org>
75586
75587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75588         correctly.
75589
75590 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75593         not gl_GETLOADAVG.  Omit unneeded semicolons.
75594         Problems reported by Ralf Wildenhues in
75595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75596         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75597         at the end, which is the usual gnulib style.
75598
75599         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75600         of doing all the work ourselves.
75601         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75602         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75603
75604 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75607         Problem reported by Ralf Wildenhues in
75608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75609
75610         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75611         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75612
75613 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75616         yesterday's patch by changing test -n to test -z.
75617
75618 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75621         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75622         the former is now obsolescent.
75623
75624         * modules/chdir-long (Depends-on): Add fcntl.
75625
75626 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75629         obsolescent, and programs should use gnulib instead.
75630         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75631         but with prefixes changed.
75632
75633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75636         or stdbool.h, because they might not exist while configuring.
75637
75638         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75639         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75640         does that for us.
75641         (O_DIRECTORY): Remove.
75642
75643 2006-08-31  Eric Blake  <ebb9@byu.net>
75644
75645         * gnulib-tool: Don't let emacs change spaces to TAB.
75646
75647 2006-08-31  Bruno Haible  <bruno@clisp.org>
75648
75649         * gnulib-tool: When calling func_import more than once, do it in a
75650         subshell.
75651         Reported by Eric Blake <ebb9@byu.net>.
75652
75653 2006-08-31  Bruno Haible  <bruno@clisp.org>
75654
75655         * gnulib-tool (nl): Remove variable.
75656         (sed_transform_lib_file): Use more robust test for config-h module.
75657         (func_import): Fix typo in 2006-08-25 patch.
75658
75659 2006-08-31  Bruno Haible  <bruno@clisp.org>
75660
75661         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75662         specified, augment Makefile.am variables instead of assigning them.
75663
75664 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         Work around a bug in both the Linux and SunOS 64-bit kernels:
75667         nanosleep mishandles sleeps for longer than 2**31 seconds.
75668         Problem reported by Frank v Waveren in
75669         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75671         Check for nanosleep bug.
75672         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75673
75674 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75675
75676         Work around a bug in both the Linux and SunOS 64-bit kernels:
75677         nanosleep mishandles sleeps for longer than 2**31 seconds.
75678         Problem reported by Frank v Waveren in
75679         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75680         * lib/nanosleep.c (BILLION): New constant.
75681         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75682         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75683         implementation.
75684
75685 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * modules/nanosleep (Depends-on): Add gettime.
75688
75689 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75690         and Simon Josefsson  <jas@extundo.com>
75691         and Oskar Liljeblad  <oskar@osk.mine.nu>
75692
75693         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75694         * gnulib-tool (func_import): New license type 'unmodifiable license
75695         text'.
75696         * modules/fdl: Use it.  Longer description.
75697         * module/gpl, module/lgpl: New files.
75698
75699 2006-08-30  Jim Meyering  <jim@meyering.net>
75700
75701         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75702         shadowing the parameter.
75703
75704 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75705
75706         Sync from Libtool:
75707
75708         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75709
75710         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75711         sharing with gnulib.  Report by Eric Blake.
75712
75713 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * modules/isapipe: New file.
75716         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75717
75718 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * modules/configmake (Makefile.am): Add a comment, and omit
75721         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75722         by Bruno Haible.
75723
75724 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         * m4/isapipe.m4: New file.
75727
75728 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75729
75730         * lib/isapipe.c, lib/isapipe.h: New files.
75731
75732 2006-08-29  Jim Meyering  <jim@meyering.net>
75733
75734         * modules/configmake (Makefile.am): Make configmake.h depend on
75735         Makefile.  Otherwise, a stale configmake.h could hang around.
75736
75737 2006-08-29  Eric Blake  <ebb9@byu.net>
75738
75739         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75740         resolution of upstream bug 3044.
75741
75742 2006-08-29  Bruno Haible  <bruno@clisp.org>
75743
75744         * modules/localcharset (Depends-on): Add configmake.
75745         (Makefile.am): Remove setting of LIBDIR through DEFS.
75746
75747 2006-08-29  Bruno Haible  <bruno@clisp.org>
75748
75749         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75750         defined.
75751
75752 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * modules/fcntl: New file.
75755         * modules/chdir-safer (Depends-on): Add fcntl.
75756         * modules/fts: Likewise.
75757         * modules/mkdir-p: Likewise.
75758
75759         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75760         This undoes the most recent change, since we're now addressing the
75761         problem in a different way.
75762
75763         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75764         into output, since the output might be called Makefile.am even
75765         if $makefile_name is something different.
75766         (func_import): Use $makefile_am rather than
75767         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75768         empty.
75769
75770         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75771
75772 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75775         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75776         recent change to stdint.m4, since we're now addressing the problem in a
75777         different way.
75778
75779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75780
75781         * m4/fcntl_h.m4: New file.
75782
75783 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         * lib/fcntl_.h: New file.
75786         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75787         the fcntl module.
75788         * lib/dirchownmod.c: Likewise.
75789         * lib/fts.c: Likewise.
75790
75791         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75792         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75793         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75794         just before including <inttypes.h>, to avoid circular inclusion.
75795
75796 2006-08-28  Jim Meyering  <jim@meyering.net>
75797
75798         * doc/visibility.texi: Actually read and correct the grammar of the
75799         sentence affected by yesterday's change.
75800
75801 2006-08-28  Eric Blake  <ebb9@byu.net>
75802
75803         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75804         needs wrapper.
75805
75806 2006-08-28  Eric Blake  <ebb9@byu.net>
75807
75808         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75809
75810 2006-08-28  Eric Blake  <ebb9@byu.net>
75811
75812         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75813
75814 2006-08-28  Bruno Haible  <bruno@clisp.org>
75815
75816         * modules/c-strstr: New file, from GNU gettext.
75817         * MODULES.html.sh (String handling): Add c-strstr.
75818
75819 2006-08-28  Bruno Haible  <bruno@clisp.org>
75820
75821         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75822         macros.
75823         Reported by Eric Blake.
75824
75825 2006-08-28  Bruno Haible  <bruno@clisp.org>
75826
75827         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75828         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75829         * lib/vasprintf.c: Include errno.h, limits.h.
75830         (EOVERFLOW): New fallback definition.
75831         (vasprintf): Test here whether the string length is > INT_MAX.
75832         * lib/vsnprintf.c: Include errno.h, limits.h.
75833         (EOVERFLOW): New fallback definition.
75834         (vsnprintf): Fix bug when generated string was too long for the buffer.
75835         Test here whether the string length is > INT_MAX.
75836
75837 2006-08-28  Bruno Haible  <bruno@clisp.org>
75838
75839         * lib/inttypes_.h (SCNX*): Remove definitions.
75840         Reported by Eric Blake.
75841
75842 2006-08-28  Bruno Haible  <bruno@clisp.org>
75843
75844         * lib/c-strstr.h: New file, from GNU gettext.
75845         * lib/c-strstr.c: New file, from GNU gettext.
75846
75847 2006-08-28  Bruno Haible  <bruno@clisp.org>
75848
75849         * gnulib-tool: Reorder some statements.
75850
75851 2006-08-28  Bruno Haible  <bruno@clisp.org>
75852
75853         * gnulib-tool: New option --makefile-name.
75854         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75855         $makefile_name.
75856         (func_import): Write $makefile_name to the cache file, and read it from
75857         there unless explicitly specified. Use $makefile_name as file name
75858         instead of Makefile.am. Adjust the recommendations accordingly.
75859
75860 2006-08-28  Bruno Haible  <bruno@clisp.org>
75861
75862         * gnulib-tool (func_verify_module): Check against misapplying patch.
75863
75864 2006-08-28  Bruno Haible  <bruno@clisp.org>
75865
75866         * gnulib-tool (func_relativize, func_relconcat): New functions.
75867         Give an error if --local-dir is given with --update.
75868         Remove trailing slashes from $local_gnulib_dir.
75869         (func_import): Store the relativized $local_gnulib_dir in
75870         gnulib-cache.m4, and read it from there if not specified explicitly.
75871
75872 2006-08-28  Bruno Haible  <bruno@clisp.org>
75873
75874         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75875         is the current directory. Respect also $local_gnulib_dir.
75876
75877 2006-08-28  Bruno Haible  <bruno@clisp.org>
75878             Simon Josefsson  <jas@extundo.com>
75879
75880         BeOS portability.
75881         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75882
75883 2006-08-27  Jim Meyering  <jim@meyering.net>
75884
75885         * doc/visibility.texi: Remove duplicate word: "pointer".
75886
75887 2006-08-26  Bruno Haible  <bruno@clisp.org>
75888
75889         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75890         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75891         (Makefile.am): Create inttypes.h from inttypes_.h.
75892         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75893
75894         * modules/imaxabs: New file.
75895
75896         * modules/imaxdiv: New file.
75897
75898 2006-08-26  Bruno Haible  <bruno@clisp.org>
75899
75900         * m4/inttypes.m4: New file.
75901         * m4/_inttypes_h.m4: Remove file.
75902         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75903         PRI_MACROS_BROKEN.
75904         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75905
75906         * m4/imaxabs.m4: New file.
75907
75908         * m4/imaxdiv.m4: New file.
75909
75910 2006-08-26  Bruno Haible  <bruno@clisp.org>
75911
75912         * lib/inttypes_.h: New file.
75913         * lib/inttypes.h: Remove file.
75914         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75915
75916         * lib/imaxabs.c: New file.
75917
75918         * lib/imaxdiv.c: New file.
75919
75920 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         New config-h module, so that "make" output needn't be cluttered
75923         by -DHAVE_CONFIG_H.
75924         * MODULES.html.sh (Support for building libraries and executables):
75925         Add config-h.
75926         * modules/config-h: New file.
75927         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75928         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75929         the config-h module is used.
75930
75931         New configmake module, so that "make" output needn't be cluttered
75932         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75933         * MODULES.html.sh (Support for building libraries and executables):
75934         Add configmake.
75935         * modules/configmake: New file.
75936
75937 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * m4/config-h.m4: New file.
75940
75941 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * config/srclist.txt: Add elisp-comp.
75944
75945 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75946
75947         * MODULES.html.sh (Support for building libraries and executables):
75948         Add elisp-comp.
75949         * build-aux/elisp-comp: New file.
75950         * modules/elisp-comp: New file.
75951
75952 2006-08-24  Bruno Haible  <bruno@clisp.org>
75953
75954         * gnulib-tool (func_create_testdir): Use non-default values of
75955         sourcebase and m4base.
75956
75957 2006-08-24  Bruno Haible  <bruno@clisp.org>
75958
75959         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75960         HTML structure.
75961
75962 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * modules/openat (Depends-on): Add lchown.
75965
75966 2006-08-23  Bruno Haible  <bruno@clisp.org>
75967
75968         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75969         of gl_LOCK_EARLY instead of gl_LOCK.
75970
75971 2006-08-23  Bruno Haible  <bruno@clisp.org>
75972
75973         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75974         on OSF/1 to no.
75975         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75976
75977 2006-08-23  Bruno Haible  <bruno@clisp.org>
75978
75979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75980         as unusable.
75981
75982         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75983         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75984         (gl_LOCK): New macro.
75985
75986 2006-08-22  Simon Josefsson  <jas@extundo.com>
75987
75988         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75989         to md5 module.
75990
75991 2006-08-22  Simon Josefsson  <jas@extundo.com>
75992
75993         * MODULES.html.sh: Add "Support for maintaining and release
75994         projects".
75995
75996         * build-aux/gnupload: New file, from coreutils.
75997
75998 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         Avoid the need for AC_LIBSOURCES in m4 macros.
76001         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76002         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76003         * modules/check-version (EXTRA_DIST): Add check-version.h.
76004         * modules/crc (EXTRA_DIST): Add crc.h.
76005         * modules/des (EXTRA_DIST): Add des.h.
76006         * modules/gc (EXTRA_DIST): Add gc.h.
76007         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76008         * modules/getline (EXTRA_DIST): Add getline.h.
76009         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76010         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76011         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76012         * modules/md2 (EXTRA_DIST): Add md2.h.
76013         * modules/md4 (EXTRA_DIST): Add md4.h.
76014         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76015         * modules/read-file (EXTRA_DIST): Add read-file.h.
76016         * modules/readline (EXTRA_DIST): Add readline.h.
76017         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76018         rijndael-api-fst.h.
76019
76020 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         * m4/rijndael.m4 (gl_ARCFOUR):
76023         * m4/arctwo.m4 (gl_ARCTWO):
76024         * m4/check-version.m4 (gl_CHECK_VERSION):
76025         * m4/crc.m4 (gl_CRC):
76026         * m4/des.m4 (gl_DES):
76027         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76028         * m4/gc.m4 (gl_GC):
76029         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76030         * m4/getline.m4 (gl_FUNC_GETLINE):
76031         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76032         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76033         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76034         * m4/md2.m4 (gl_MD2):
76035         * m4/md4.m4 (gl_MD4):
76036         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76037         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76038         * m4/readline.m4 (gl_FUNC_READLINE):
76039         * m4/rijndael.m4 (gl_RIJNDAEL):
76040         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76041         to get the necessary .h files and whatnot.
76042
76043 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76044
76045         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76046         gnulib rather than the other way around.
76047         * config/srclistvars.sh (COREUTILS): Remove.
76048
76049 2006-08-22  Jim Meyering  <jim@meyering.net>
76050
76051         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76052
76053         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76054
76055 2006-08-22  Eric Blake  <ebb9@byu.net>
76056
76057         * modules/regexprops-generic: New file.
76058         * MODULES.html.sh (Support for building documentation): List it.
76059
76060 2006-08-22  Eric Blake  <ebb9@byu.net>
76061
76062         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76063         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76064         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76065         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76066
76067 2006-08-22  Bruno Haible  <bruno@clisp.org>
76068
76069         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76070         and lib_LTLIBRARIES like the other lib_* variables.
76071
76072 2006-08-22  Bruno Haible  <bruno@clisp.org>
76073
76074         * build-aux/x-to-1.in: New file, from GNU gettext.
76075
76076 2006-08-22  Bruno Haible  <bruno@clisp.org>
76077
76078         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76079         <utmpx.h> exists.
76080
76081 2006-08-22  Bruno Haible  <bruno@clisp.org>
76082
76083         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76084         <utmpx.h> exists.
76085
76086 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         BeOS portability.
76089         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76090         exist.
76091         Problem reported by Bruno Haible.
76092
76093 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         Avoid the need for AC_LIBSOURCES in m4 macros.
76096         * modules/acl (EXTRA_DIST): Add acl.h.
76097         * modules/argmatch (Files): Add m4/argmatch.m4.
76098         (configure.ac): Add gl_ARGMATCH.
76099         (EXTRA_DIST): Renamed from lib_SOURCES, for
76100         consistency with the other modules.  Remove argmatch.c.
76101         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76102         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76103         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76104         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76105         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76106         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76107         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76108         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76109         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76110         * modules/closeout (EXTRA_DIST): Add closeout.h.
76111         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76112         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76113         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76114         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76115         dirname.h; remove basename.c and stripslash.c.
76116         * modules/exclude (EXTRA_DIST): Add exclude.h.
76117         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76118         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76119         * modules/file-type (EXTRA_DIST): Add file-type.h.
76120         * modules/filemode (EXTRA_DIST): Add filemode.h.
76121         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76122         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76123         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76124         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76125         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76126         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76127         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76128         * modules/getdate (EXTRA_DIST): Add getdate.c.
76129         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76130         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76131         * modules/getpass (EXTRA_DIST): Add getpass.h.
76132         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76133         * modules/group-member (EXTRA_DIST): Add group-member.h.
76134         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76135         * modules/hash (EXTRA_DIST): Add hash.h.
76136         * modules/human (EXTRA_DIST): Add human.h.
76137         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76138         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76139         * modules/lchown (EXTRA_DIST): Add lchown.h.
76140         * modules/long-options (EXTRA_DIST): Add long-options.h.
76141         * modules/lstat (EXTRA_DIST): Add lstat.h.
76142         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76143         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76144         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76145         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76146         * modules/memxor (EXTRA_DIST): Add memxor.h.
76147         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76148         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76149         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76150         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76151         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76152         * modules/physmem (EXTRA_DIST): Add physmem.h.
76153         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76154         * modules/posixver (EXTRA_DIST): Add posixver.h.
76155         * modules/quote (EXTRA_DIST): Add quote.h.
76156         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76157         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76158         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76159         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76160         regex_internal.h regexec.c.
76161         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76162         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76163         * modules/same (EXTRA_DIST): Add same.h.
76164         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76165         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76166         * modules/savedir (EXTRA_DIST): Add savedir.h.
76167         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76168         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76169         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76170         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76171         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76172         * modules/strdup (EXTRA_DIST): Add strdup.h.
76173         * modules/strftime (EXTRA_DIST): Add strftime.h.
76174         * modules/strndup (EXTRA_DIST): Add strndup.h.
76175         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76176         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76177         * modules/time_r (EXTRA_DIST): Add time_r.h.
76178         * modules/timespec (EXTRA_DIST): Add timespec.h.
76179         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76180         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76181         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76182         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76183         * modules/userspec (EXTRA_DIST): Add userspec.h.
76184         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76185         * modules/utimens (EXTRA_DIST): Add utimens.h.
76186         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76187         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76188         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76189         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76190         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76191         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76192         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76193         * modules/yesno (EXTRA_DIST): Add yesno.h.
76194
76195 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76198
76199         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76200         * m4/dev-ino.m4, same-inode.m4: Remove.
76201
76202         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76203         * m4/acl.m4 (AC_FUNC_ACL):
76204         * m4/backupfile.m4 (gl_BACKUPFILE):
76205         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76206         * m4/canon-host.m4 (gl_CANON_HOST):
76207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76208         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76209         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76210         * m4/cloexec.m4 (gl_CLOEXEC):
76211         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76212         * m4/closeout.m4 (gl_CLOSEOUT):
76213         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76214         * m4/dirname.m4 (gl_DIRNAME):
76215         * m4/exclude.m4 (gl_EXCLUDE):
76216         * m4/exitfail.m4 (gl_EXITFAIL):
76217         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76218         * m4/file-type.m4 (gl_FILE_TYPE):
76219         * m4/filemode.m4 (gl_FILEMODE):
76220         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76221         * m4/fpending.m4 (gl_FUNC_FPENDING):
76222         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76223         * m4/fts.m4 (gl_FUNC_FTS):
76224         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76225         * m4/getdate.m4 (gl_GETDATE):
76226         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76227         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76228         * m4/getpass.m4 (gl_FUNC_GETPASS):
76229         * m4/gettime.m4 (gl_GETTIME):
76230         * m4/getugroups.m4 (gl_GETUGROUPS):
76231         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76232         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76233         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76234         * m4/hash.m4 (gl_HASH):
76235         * m4/idcache.m4 (gl_IDCACHE):
76236         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76237         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76238         * m4/long-options.m4 (gl_LONG_OPTIONS):
76239         * m4/lstat.m4 (gl_FUNC_LSTAT):
76240         * m4/md5.m4 (gl_MD5):
76241         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76242         * m4/memcoll.m4 (gl_MEMCOLL):
76243         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76245         * m4/memxor.m4 (gl_MEMXOR):
76246         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76247         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76248         * m4/modechange.m4 (gl_MODECHANGE):
76249         * m4/mountlist.m4 (gl_MOUNTLIST):
76250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76251         * m4/openat.m4 (gl_FUNC_OPENAT):
76252         * m4/pathmax.m4 (gl_PATHMAX):
76253         * m4/physmem.m4 (gl_PHYSMEM):
76254         * m4/posixtm.m4 (gl_POSIXTM):
76255         * m4/posixver.m4 (gl_POSIXVER):
76256         * m4/quote.m4 (gl_QUOTE):
76257         * m4/quotearg.m4 (gl_QUOTEARG):
76258         * m4/readtokens.m4 (gl_READTOKENS):
76259         * m4/readutmp.m4 (gl_READUTMP):
76260         * m4/regex.m4 (gl_REGEX):
76261         * m4/safe-read.m4 (gl_SAFE_READ):
76262         * m4/safe-write.m4 (gl_SAFE_WRITE):
76263         * m4/same.m4 (gl_SAME):
76264         * m4/save-cwd.m4 (gl_SAVE_CWD):
76265         * m4/savedir.m4 (gl_SAVEDIR):
76266         * m4/settime.m4 (gl_SETTIME):
76267         * m4/sha1.m4 (gl_SHA1):
76268         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76269         * m4/stat-macros.m4 (gl_STAT_MACROS):
76270         * m4/stat-time.m4 (gl_STAT_TIME):
76271         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76272         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76273         * m4/strdup.m4 (gl_FUNC_STRDUP):
76274         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76275         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76276         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76277         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76278         * m4/time_r.m4 (gl_TIME_R):
76279         * m4/timespec.m4 (gl_TIMESPEC):
76280         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76281         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76282         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76283         * m4/userspec.m4 (gl_USERSPEC):
76284         * m4/utimecmp.m4 (gl_UTIMECMP):
76285         * m4/utimens.m4 (gl_UTIMENS):
76286         * m4/xalloc.m4 (gl_XALLOC):
76287         * m4/xgetcwd.m4 (gl_XGETCWD):
76288         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76289         * m4/xreadlink.m4 (gl_XREADLINK):
76290         * m4/xstrtod.m4 (gl_XSTRTOD):
76291         * m4/yesno.m4 (gl_YESNO):
76292         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76293         to get the necessary .h files and whatnot.
76294
76295 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76296             Bruno Haible  <bruno@clisp.org>
76297
76298         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76299         /bin/sh understanding of '!' conditional negation.
76300
76301 2006-08-21  Jim Meyering  <jim@meyering.net>
76302
76303         * modules/openat (Depends-on): Really alphabetize.
76304
76305         * modules/acl (Depends-on): Add error and quote.
76306
76307         * check-module (find_included_lib_files): Add at-func.c to the
76308         ok-to-include-more-than-once white list.
76309
76310         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76311
76312 2006-08-21  Bruno Haible  <bruno@clisp.org>
76313
76314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76315         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76316         Reported by Martin Lambers <marlam@marlam.de>.
76317
76318 2006-08-21  Bruno Haible  <bruno@clisp.org>
76319
76320         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76321         specify an installation location, don't emit a noinst_LIBRARIES or
76322         noinst_LTLIBRARIES assignment.
76323
76324 2006-08-21  Bruno Haible  <bruno@clisp.org>
76325
76326         BeOS portability.
76327         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76328         BeOS has mbrtowc() but no <wctype.h>.
76329
76330 2006-08-21  Bruno Haible  <bruno@clisp.org>
76331
76332         BeOS portability.
76333         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76334         exist.
76335
76336 2006-08-21  Bruno Haible  <bruno@clisp.org>
76337
76338         BeOS portability.
76339         * lib/mbchar.h: Include <wctype.h> only if it exists.
76340
76341 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         Remove files that are no longer needed by their respective modules.
76344         * m4/obstack.m4: Remove.
76345         * m4/strerror_r.m4: Remove.
76346         * m4/uint32_t.m4: Remove.
76347         * m4/uintptr_t.m4: Remove.
76348         * m4/ullong_max.m4: Remove.
76349         * m4/xstrtoimax.m4: Remove.
76350         * m4/xstrtoumax.m4: Remove.
76351
76352         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76353         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76354         dependencies now capture this.
76355
76356         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76357         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76358         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76359         * m4/human.m4 (gl_HUMAN): Likewise.
76360         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76361         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76362
76363         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76364
76365         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76366         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76367         stdint.
76368         * m4/human.m4 (gl_HUMAN): Likewise.
76369         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76370         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76371         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76372         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76373         * m4/xstrtol (gl_XSTRTOL): Likewise.
76374
76375         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76376         AC_TYPE_LONG_LONG_INT.
76377         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76378         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76379         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76380         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76381
76382         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76383         on stdbool.
76384
76385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76386         (gl_PREREQ_XSTRTOUL): Remove.
76387
76388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76389
76390         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76391         mode.
76392
76393 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         Add and change modules to make it easier for coreutils to use
76396         gnulib-tool.
76397         * modules/backupfile (Files): Remove m4/d-ino.m4.
76398         (Depends-on): Add d-ino.
76399         * modules/cycle-check (Depends-on): Add stdint.
76400         (lib_SOURCES): Add cycle-check.h.
76401         * modules/d-ino: New module.
76402         * modules/d-type: New module.
76403         * modules/error (Files): Remove m4/strerror_r.m4.
76404         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76405         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76406         m4/inttypes_h.m4, m4/uintmax_t.m4.
76407         (Depends-on): Add stdint.
76408         (lib_SOURCES): Add fsusage.h.
76409         * modules/getcwd (Files): Remove d-ino.m4.
76410         (Depends-on): Add d-ino.
76411         * modules/getndelim2 (Depends-on): Add stdint.
76412         * modules/glob (Files): Remove m4/d-type.m4.
76413         (Depends-on): Add d-type.
76414         * modules/host-os: New module.
76415         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76416         m4/inttypes_h.m4, m4/uintmax_t.m4.
76417         * Depends-on: Add stdint.
76418         (lib_SOURCES): Add human.h.
76419         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76420         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76421         m4/uintmax_t.m4, m4/ulonglong.m4.
76422         (Depends-on): Add stdint.
76423         (EXTRA_DIST): Add inttostr.h.
76424         * modules/lchmod: New module.
76425         * modules/link-follow: New module.
76426         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76427         (Depends-on): Add lchmod.
76428         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76429         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76430         (Depends-on): Add stdint.
76431         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76432         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76433         (Depends-on): Add stdint.
76434         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76435         * modules/perl: New module.
76436         * modules/regex (Depends-on): Add stdint.
76437         * modules/rmdir-errno: New module.
76438         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76439         m4/intmax_t.m4.
76440         (Depends-on): Add stdint.
76441         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76442         m4/uintmax_t.m4.
76443         (Depends-on): Add stdint.
76444         * modules/unlink-busy: New module.
76445         * modules/utimecmp (Depends-on): Add stdint.
76446         * modules/uptime: New module.
76447         * modules/winsz-ioctl: New module.
76448         * modules/winsz-termios: New module.
76449         * modules/xnanosleep (Depends-on): Add nanosleep.
76450         * modules/ullong_max: Remove.
76451         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76452         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76453         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76454         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76455         (Depends-on): Add inttypes.
76456         (lib_SOURCES): Add xstrtol.h.
76457         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76458         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76459         * MODULES.html.sh: Move 'assert' into the assert section.
76460         Move 'dummy' into the linking section.
76461         Remove ullong_max.
76462         Add section for compatibility checks for POSIX:2001 functions,
76463         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76464         winsz-ioctl, and winsz-termios into it.
76465         Add lchmod.
76466         Add top-level Misc section and put host-os, perl, and uptime
76467         into it.
76468
76469 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76472         now assume the stdint module.  Do not include inttypes.h.
76473         * lib/fsusage.h: Likewise.
76474         * lib/getndelim2.c: Likewise.
76475         * lib/human.h: Likewise.
76476         * lib/inttostr.h: Likewise.
76477         * lib/obstack.c: Likewise.
76478         * lib/regex_internal.h: Likewise.
76479         * lib/tempname.c: Likewise.
76480         * lib/utimecmp.c: Likewise.
76481         * lib/xstrtol.h: Likewise.
76482
76483         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76484
76485         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76486         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76487         * lib/xtime.h: Likewise.
76488
76489 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * modules/openat (Files): Add lib/fchmodat.c.
76492         Fixes problem reported by Jay Youngman.
76493
76494 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76497         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76498
76499 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76500             Bruno Haible  <bruno@clisp.org>
76501
76502         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76503         and is a script that invokes bison. Tighten the code. Add comments.
76504
76505 2006-08-18  Jim Meyering  <jim@meyering.net>
76506
76507         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76508         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76509         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76510         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76511
76512 2006-08-18  Bruno Haible  <bruno@clisp.org>
76513
76514         * modules/bison-i18n: New file.
76515         * MODULES.html.sh (Internationalization functions): Add it.
76516
76517 2006-08-18  Bruno Haible  <bruno@clisp.org>
76518
76519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76520         sys/statvfs.h. When getmntinfo was found, check its declaration and
76521         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76522
76523 2006-08-18  Bruno Haible  <bruno@clisp.org>
76524
76525         * m4/bison-i18n.m4: New file, from bison.
76526
76527 2006-08-18  Bruno Haible  <bruno@clisp.org>
76528
76529         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76530         (ME_DUMMY): Treat "kernfs" as a dummy.
76531         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76532
76533 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76534
76535         Update from coreutils.
76536
76537         2006-08-15  Jim Meyering  <jim@meyering.net>
76538
76539         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76540
76541         2006-01-17  Jim Meyering  <jim@meyering.net>
76542
76543         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76544
76545         2006-01-11  Jim Meyering  <jim@meyering.net>
76546
76547         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76548         Check for the lchmod function.
76549
76550 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         Update from coreutils.
76553
76554         * lib/__fpending.h: Add copyright notice.
76555         * lib/fprintftime.h: Likewise.
76556         * lib/savedir.c: Use (C) in copyright notice.
76557         * lib/savedir.h: Likewise.
76558
76559         2006-08-15  Jim Meyering  <jim@meyering.net>
76560
76561         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76562         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76563         in support of the EXPECTED_ERRNO macro.
76564         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76565         definitions.  Instead, define the appropriate symbols and include
76566         "at-func.c".
76567         * lib/mkdirat.c (mkdirat): Likewise.
76568         * lib/fchmodat.c (fchmodat): Likewise.
76569         (ENOSYS): Remove definition.
76570         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76571         it.  Don't include "unistd--.h" -- it wasn't ever used.
76572
76573         2006-01-17  Jim Meyering  <jim@meyering.net>
76574
76575         Rewrite fts.c not to change the current working directory,
76576         by using openat, fstatat, fdopendir, etc..
76577
76578         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76579         (HAVE_OPENAT_SUPPORT): Define.
76580         [_LIBC] (fchdir): Don't undef or define; no longer used.
76581         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76582         Now, this `function' always succeeds, and consumes its file descriptor
76583         parameter -- so callers must not close such FDs.  Update callers.
76584         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76585         (diropen): Add parameter, SP.  Adjust all callers.
76586         Implement using diropen_fd, rather than open.
76587         (fts_open): Initialize new member, fts_cwd_fd.
76588         Remove fts_rft-setting code.
76589         (fts_close): Close fts_cwd_fd, if necessary.
76590         (__opendir2): Define in terms of opendir or opendirat,
76591         depending on whether the FST_NOCHDIR flag is set.
76592         (fts_build): Since fts_safe_changedir consumes its FD, and since
76593         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76594         and close the dup'd file descriptor upon failure.
76595         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76596         (fts_safe_changedir): Tweak semantics to reflect that this function
76597         now calls cwd_advance_fd and hence consumes its FD argument.
76598         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76599         [struct FTS] (fts_rft): Remove now-unused member.
76600         [struct FTS] (fts_cycle.state): Improve comment.
76601
76602         * lib/openat.c (openat_needs_fchdir): New function.
76603         * lib/openat.h (openat_needs_fchdir): Declare it.
76604
76605 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76608         Problem and fix reported by Pádraig Brady in
76609         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76610
76611 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76612
76613         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76614
76615 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76616
76617         * lib/memcoll.c (memcoll): Optimize for the common case where the
76618         arguments are bytewise equal.
76619
76620 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * doc/regexprops-generic.texi: Add a copyright notice.
76623
76624 2006-08-15  Bruno Haible  <bruno@clisp.org>
76625
76626         * modules/tmpdir (License): Change to LGPL.
76627
76628 2006-08-15  Bruno Haible  <bruno@clisp.org>
76629
76630         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76631         module.
76632
76633 2006-08-14  Simon Josefsson  <jas@extundo.com>
76634
76635         * config/srclist.txt: Add gnupload.
76636
76637 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         Change copyright notice from LGPL 2 to GPL 2, since that's the
76640         standard form used in the gnulib repository.
76641         * tests/test-lock.c: Likewise.
76642         * tests/test-stdint.c: Likewise.
76643         * tests/test-tls.c: Likewise.
76644
76645         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76646         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76647         Add copyright notice.
76648
76649         * check-module: Add copyright notice.  Output a copyright
76650         notice if "--version" is specified.
76651         * modules/COPYING: New file.
76652         * tests/test-getaddrinfo.c: Add copyright notice.
76653         * tests/test-verify.c: Likewise.
76654
76655 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         Change copyright notice from LGPL 2 to GPL 2, since that's the
76658         standard form used in the gnulib repository.
76659         * lib/lock.c: LGPL -> GPL.
76660         * lib/lock.h: Likewise.
76661         * lib/strnlen1.c: Likewise.
76662         * lib/strnlen1.h: Likewise.
76663         * lib/tls.c: Likewise.
76664         * lib/tls.h: Likewise.
76665         * lib/tmpdir.c: Likewise.
76666
76667         * lib/TODO: Remove; this belongs only in coreutils.
76668
76669 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         Add copyright notices to long-enough files that lack them, since
76672         otherwise the files aren't clearly free.  Use the same notice that
76673         getdate.texi already uses.
76674         * doc/alloca-opt.texi: Add copyright notice.
76675         * doc/alloca.texi: Likewise.
76676         * doc/ctime.texi: Likewise.
76677         * doc/functions.texi: Likewise.
76678         * doc/gcd.texi: Likewise.
76679         * doc/gnulib-tool.texi: Likewise.
76680         * doc/inet_ntoa.texi: Likewise.
76681         * doc/visibility.texi: Likewise.
76682
76683         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76684         * doc/quote.texi: Add copyright notice.
76685
76686         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76687         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76688         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76689         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76690         is now obsolete, and give a pointer to the Sun list.
76691         Add copyright notice.
76692
76693 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76694
76695         * config/srclistvars.sh: Add copyright notice.
76696
76697 2006-08-14  Eric Blake  <ebb9@byu.net>
76698
76699         Import the following change from libc:
76700
76701         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76702
76703         Upstream bug 2997.
76704         * lib/misc/error.c: Add space between program name and message if file
76705         name is missing.
76706
76707 2006-08-12  Karl Berry  <karl@gnu.org>
76708
76709         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76710         remove, these originate in gnulib now.
76711
76712 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76713
76714         * doc/Makefile (standards.info standards.html standards.dvi):
76715         Also depend on make-stds.texi.
76716
76717 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76718
76719         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76720         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76721
76722         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76723         in wchar_t.  Problem reported by Eric Blake.
76724
76725         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76726         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76727         Also, help the compiler to keep LEN in a register.
76728
76729 2006-08-11  Eric Blake  <ebb9@byu.net>
76730
76731         * users.txt: Sort.  Add tar.
76732
76733 2006-08-11  Bruno Haible  <bruno@clisp.org>
76734
76735         * users.txt: New file.
76736
76737 2006-08-11  Bruno Haible  <bruno@clisp.org>
76738
76739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76740         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76741
76742 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * modules/snprintf (Depends-on): Remove minmax.
76745         (Maintainer): Add self and Bruno.
76746
76747 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76750         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76751         (EOVERFLOW): Define if the system does not.
76752         Do not include "minmax.h"; it wasn't used.
76753         (snprintf): Don't assume size_t promotes to an unsigned type.
76754         Fix bug when generated string was too long for the buffer: the
76755         buffer's contents are supposed to be the initial prefix of the
76756         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76757         exceeds INT_MAX; do the check ourselves.
76758
76759         Import the following changes from libc:
76760
76761         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76762
76763         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76764         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76765         set wc to the byte which couldn't be converted.
76766         (re_string_reconstruct): Don't clear valid_raw_len before calling
76767         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76768         tip_context using re_string_context_at.
76769
76770         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76771
76772         * lib/posix/regex.h: g++ still cannot handled [restrict].
76773
76774         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76775
76776         * lib/posix/regex.h: Remove special handling for VMS.
76777
76778 2006-08-10  Jim Meyering  <jim@meyering.net>
76779
76780         * modules/same-inode: New module.
76781         * modules/dev-ino: New module.
76782         * modules/cycle-check: Depend on these modules, rather than simply
76783         including their .h files.
76784         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76785         required via m4/cycle-check.m4.
76786         * modules/same: Depend on new same-inode module, rather than
76787         including same-inode.h.
76788         * modules/chdir-safer: New file.
76789
76790         * modules/chown (Depends-on): Add stat-macros.
76791
76792 2006-08-10  Jim Meyering  <jim@meyering.net>
76793
76794         * m4/cycle-check.m4: New file.
76795         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76796         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76797
76798 2006-08-10  Eric Blake  <ebb9@byu.net>
76799
76800         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76801         in from original proposal.
76802
76803 2006-08-10  Eric Blake  <ebb9@byu.net>
76804         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76805
76806         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76807         namespace.
76808
76809 2006-08-10  Bruno Haible  <bruno@clisp.org>
76810
76811         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76812         as well.
76813
76814 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         Sync from coreutils.
76817
76818         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76819
76820         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76821         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76822
76823 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * modules/restrict: Remove; no longer needed now that we assume
76826         Autoconf 2.59 or later.
76827         * MODULES.html.sh: Remove 'restrict'.
76828         * modules/argp (Depends-on): Remove 'restrict'.
76829         * modules/base64 (Depends-on): Likewise.
76830         * modules/gc (Depends-on): Likewise.
76831         * modules/getaddrinfo (Depends-on): Likewise.
76832         * modules/glob (Depends-on): Likewise.
76833         * modules/inet_ntop (Depends-on): Likewise.
76834         * modules/inet_pton (Depends-on): Likewise.
76835         * modules/memxor (Depends-on): Likewise.
76836         * modules/regex (Depends-on): Likewise.
76837         * modules/strtok_r (Depends-on): Likewise.
76838         * modules/time_r (Depends-on): Likewise.
76839
76840 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76843         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76844         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76845         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76846         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76847         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76848         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76849         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76850
76851         Merge from coreutils.
76852         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76853         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76854         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76855         * m4/time_r.m4 (gl_TIME_R): Likewise.
76856
76857 2006-08-09  Karl Berry  <karl@gnu.org>
76858
76859         * config/srclist.txt: no more gettext-tools, per Bruno.
76860
76861 2006-08-08  Eric Blake  <ebb9@byu.net>
76862
76863         * modules/verror: New module.
76864         * MODULES.html.sh: Document it.
76865
76866 2006-08-08  Eric Blake  <ebb9@byu.net>
76867
76868         * lib/verror.h, lib/verror.c: New files.
76869
76870 2006-08-08  Eric Blake  <ebb9@byu.net>
76871
76872         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76873         verror_at_line output complies with GNU Coding Standards even when
76874         file is NULL.
76875
76876 2006-08-07  Bruno Haible  <bruno@clisp.org>
76877
76878         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76879         versions of AIX.
76880         Reported by Ralf Wildenhues.
76881
76882 2006-08-07  Bruno Haible  <bruno@clisp.org>
76883
76884         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76885         in an AC_DEFUN. Needed so that the autoconf snippets can use
76886         AC_REQUIRE.
76887
76888 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76889
76890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76891         Initialize pkgdata_DATA.
76892         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76893         overriding it.
76894
76895 2006-08-06  Eric Blake  <ebb9@byu.net>
76896
76897         * lib/error.h: Fold in some upstream changes from glibc.
76898         * lib/error.c: Likewise.
76899
76900 2006-08-04  Bruno Haible  <bruno@clisp.org>
76901
76902         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76903         Make the mostlyclean-local rule depend on mostlyclean-generic.
76904         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76905
76906 2006-07-31  Bruno Haible  <bruno@clisp.org>
76907
76908         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76909         <stdlib.h>, <string.h>.
76910
76911 2006-07-30  Bruno Haible  <bruno@clisp.org>
76912
76913         * modules/readlink (License): Change to LGPL.
76914
76915 2006-07-30  Bruno Haible  <bruno@clisp.org>
76916
76917         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76918         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76919         set PKGDATADIR to point to it.
76920
76921 2006-07-30  Bruno Haible  <bruno@clisp.org>
76922
76923         * modules/csharpexec (configure.ac): Comment out macro invocation.
76924         * modules/javaexec (configure.ac): Likewise.
76925         * modules/javacomp-script (configure.ac): Likewise.
76926
76927         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76928
76929 2006-07-30  Bruno Haible  <bruno@clisp.org>
76930
76931         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76932         linked-list.
76933
76934 2006-07-30  Bruno Haible  <bruno@clisp.org>
76935
76936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76937
76938 2006-07-30  Bruno Haible  <bruno@clisp.org>
76939
76940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76941         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76942         get removed.
76943
76944 2006-07-29  Bruno Haible  <bruno@clisp.org>
76945
76946         Make it possible for gnulib-tool to work with locally modified or
76947         augmented gnulib repositories.
76948         * gnulib-tool (func_usage): Document --local-dir option.
76949         (local_gnulib_dir): New variable.
76950         Handle --local-dir option.
76951         (func_lookup_file): New function.
76952         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76953         (func_get_description, func_get_filelist, func_get_description,
76954         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76955         func_get_automake_snippet, func_get_include_directive,
76956         func_get_license, func_get_maintainer): Use func_lookup_file.
76957         (func_import, func_create_testdir): Use func_lookup_file.
76958
76959 2006-07-29  Bruno Haible  <bruno@clisp.org>
76960
76961         * modules/setenv (Depends-on): Add unistd.
76962
76963 2006-07-29  Bruno Haible  <bruno@clisp.org>
76964
76965         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76966
76967 2006-07-29  Bruno Haible  <bruno@clisp.org>
76968
76969         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76970
76971 2006-07-29  Bruno Haible  <bruno@clisp.org>
76972
76973         * gnulib-tool (import, update): If there is no Makefile.am, look at
76974         aclocal.m4, instead of bailing out.
76975
76976 2006-07-29  Bruno Haible  <bruno@clisp.org>
76977
76978         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76979         Categorize the options by when they are useful.
76980
76981 2006-07-29  Bruno Haible  <bruno@clisp.org>
76982
76983         * gnulib-tool (func_usage): Document option --no-libtool.
76984         Handle option --no-libtool.
76985         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76986         for changed semantics of $libtool variable.
76987         (func_import): Likewise. If libtool is not used, show this through
76988         an option --no-libtool.
76989         (func_create_testdir): Update.
76990
76991 2006-07-29  Bruno Haible  <bruno@clisp.org>
76992
76993         * gnulib-tool (func_import): Extend error message about missing
76994         --doc-base.
76995
76996 2006-07-29  Bruno Haible  <bruno@clisp.org>
76997
76998         * gnulib-tool (func_import): Don't create the $docbase directory if
76999         there is no file to store there.
77000
77001 2006-07-29  Bruno Haible  <bruno@clisp.org>
77002
77003         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77004         relevant, look for configure.ac there, not in the current directory.
77005         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77006
77007 2006-07-29  Bruno Haible  <bruno@clisp.org>
77008
77009         * gnulib-tool (SORT): New variable.
77010         (func_usage): Undocument --assume-autoconf option.
77011         Remove --assume-autoconf option handling.
77012         (autoconf_minversion): Determine from the contents of configure.ac.
77013         (func_import): Remove autoconf_minversion handling.
77014         Suggested by Eric Blake.
77015
77016 2006-07-29  Bruno Haible  <bruno@clisp.org>
77017
77018         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77019
77020 2006-07-29  Bruno Haible  <bruno@clisp.org>
77021
77022         * config/srclist.txt (*setenv.[ch]): Remove rules.
77023
77024 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77025
77026         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77027
77028 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77029
77030         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77031         arpa/inet.h.
77032
77033 2006-07-28  Simon Josefsson  <jas@extundo.com>
77034
77035         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77036         * modules/inet_pton (Depends-on): Likewise.
77037
77038 2006-07-28  Simon Josefsson  <jas@extundo.com>
77039
77040         * m4/netinet_in_h.m4: New file.
77041
77042 2006-07-28  Simon Josefsson  <jas@extundo.com>
77043
77044         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77045         #include's.
77046
77047 2006-07-28  Simon Josefsson  <jas@extundo.com>
77048
77049         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77050         #include's.
77051
77052 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77055         setgid on directories only if they set these bits.
77056         * lib/modechange.h: Remove obsolete comment about masks.
77057
77058 2006-07-28  Eric Blake  <ebb9@byu.net>
77059
77060         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77061         macro expansion.
77062
77063 2006-07-28  Bruno Haible  <bruno@clisp.org>
77064
77065         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77066
77067 2006-07-28  Bruno Haible  <bruno@clisp.org>
77068
77069         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77070
77071 2006-07-28  Bruno Haible  <bruno@clisp.org>
77072
77073         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77074         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77075         Define fallbacks.
77076         Avoids link error on FreeBSD 4.x.
77077         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77078
77079         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77080         encoding.
77081         * lib/mbswidth.c (iswcntrl): Likewise.
77082
77083 2006-07-27  Bruno Haible  <bruno@clisp.org>
77084
77085         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77086         test.
77087
77088 2006-07-27  Bruno Haible  <bruno@clisp.org>
77089
77090         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77091         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77092         defined.
77093
77094 2006-07-26  Eric Blake  <ebb9@byu.net>
77095
77096         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77097
77098 2006-07-26  Eric Blake  <ebb9@byu.net>
77099
77100         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77101         like mingw that lack mkstemp.
77102         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77103         avoid compilation warning on mingw.
77104
77105 2006-07-26  Bruno Haible  <bruno@clisp.org>
77106
77107         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77108         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77109         INT_FAST*_MIN, INTPTR_MIN.
77110
77111 2006-07-25  Bruno Haible  <bruno@clisp.org>
77112
77113         * modules/version-etc (Depends-on): Add stdarg.
77114
77115 2006-07-25  Bruno Haible  <bruno@clisp.org>
77116
77117         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77118         complex commands.
77119
77120 2006-07-25  Bruno Haible  <bruno@clisp.org>
77121
77122         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77123         defined in <stdarg.h> or config.h.
77124
77125 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77128         (gl_STDIO_SAFER): Remove.
77129
77130 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * MODULES.html.sh (File stream based Input/Output):
77133         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77134         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77135         * modules/fopen-safer, modules/tmpfile-safer: New files.
77136         * modules/stdio-safer: Remove.
77137
77138 2006-07-24  Bruno Haible  <bruno@clisp.org>
77139
77140         * modules/tmpdir: New file.
77141         * MODULES.html.sh (File system functions): Add it.
77142
77143 2006-07-24  Bruno Haible  <bruno@clisp.org>
77144
77145         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77146         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77147
77148 2006-07-24  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/clean-temp: New file.
77151
77152 2006-07-24  Bruno Haible  <bruno@clisp.org>
77153
77154         * m4/tmpdir.m4: New file, from GNU gettext.
77155
77156 2006-07-24  Bruno Haible  <bruno@clisp.org>
77157
77158         * lib/tmpdir.h: New file, from GNU gettext.
77159         * lib/tmpdir.c: New file, from GNU gettext.
77160
77161 2006-07-24  Bruno Haible  <bruno@clisp.org>
77162
77163         * lib/clean-temp.h: New file, from GNU gettext.
77164         * lib/clean-temp.c: New file, from GNU gettext.
77165
77166 2006-07-23  Eric Blake  <ebb9@byu.net>
77167
77168         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77169         (Depends-on): Add binary-io.
77170
77171 2006-07-23  Eric Blake  <ebb9@byu.net>
77172
77173         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77174
77175 2006-07-23  Eric Blake  <ebb9@byu.net>
77176
77177         * lib/tmpfile-safer.c: New file.
77178         * lib/stdio-safer.h (fopen_safer): Add prototype.
77179         * lib/stdio--.h (tmpfile): Make safer.
77180
77181 2006-07-23  Bruno Haible  <bruno@clisp.org>
77182
77183         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77184         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77185         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77186         gl_linked_remove_at): Use it.
77187
77188 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77189         and Simon Josefsson <jas@extundo.com>
77190
77191         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77192
77193         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77194
77195 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * modules/close-stream: New file.
77198         * modules/closeout (Description): Make it clear that it exits
77199         with a diagnostic on error.
77200         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77201         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77202
77203 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * m4/close-stream.m4: New file.
77206
77207 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * lib/close-stream.c, lib/close-stream.h: New files.
77210
77211 2006-07-22  Bruno Haible  <bruno@clisp.org>
77212
77213         Merge from GNU gettext 0.15.
77214
77215         2006-05-01  Bruno Haible  <bruno@clisp.org>
77216
77217                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77218
77219         2006-07-22  Bruno Haible  <bruno@clisp.org>
77220
77221                 * modules/javaversion: New file.
77222                 * MODULES.html.sh (Java): Add javaversion.
77223
77224         2006-03-12  Bruno Haible  <bruno@clisp.org>
77225
77226                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77227
77228         2005-12-04  Bruno Haible  <bruno@clisp.org>
77229
77230                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77231                 (untested).
77232
77233         2006-06-21  Bruno Haible  <bruno@clisp.org>
77234
77235                 Avoid warnings from recent versions of mcs.
77236                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77237                 -o, -L, -r any more. Use options documented since mcs-1.0
77238                 instead. Similarly for -g.
77239
77240         2005-12-04  Bruno Haible  <bruno@clisp.org>
77241
77242                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77243                 .resources, not .resource.
77244
77245         2005-07-09  Bruno Haible  <bruno@clisp.org>
77246
77247                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77248                 add a .dll suffix.
77249                 Reported by Mark Junker <mjscod@gmx.de>.
77250
77251         2006-07-22  Bruno Haible  <bruno@clisp.org>
77252
77253                 * modules/gettext: Upgrade to gettext-0.15.
77254                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77255                 m4/visibility.m4.
77256                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77257
77258 2006-07-22  Bruno Haible  <bruno@clisp.org>
77259
77260         Merge from GNU gettext 0.15.
77261
77262         2006-03-25  Bruno Haible  <bruno@clisp.org>
77263
77264                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77265
77266         2006-07-21  Bruno Haible  <bruno@clisp.org>
77267
77268                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77269                 "1.1".
77270
77271         2006-05-09  Bruno Haible  <bruno@clisp.org>
77272
77273                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77274                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77275                 for the conftestver execution.
77276
77277         2006-05-01  Bruno Haible  <bruno@clisp.org>
77278
77279                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77280                 optional target-version argument. Verify that the compiler
77281                 groks source of the specified source-version, or add -source
77282                 option as necessary. Verify that the compiler produces
77283                 bytecode in the specified target-version, or add -target and
77284                 -source options as necessary. Make the result of the test
77285                 available as variable CONF_JAVAC. Also log error output in
77286                 config.log.
77287
77288         2006-03-11  Bruno Haible  <bruno@clisp.org>
77289
77290                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77291
77292         2006-05-09  Bruno Haible  <bruno@clisp.org>
77293
77294                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77295                 CLASSPATH_SEPARATOR to a semicolon.
77296
77297         2006-03-12  Bruno Haible  <bruno@clisp.org>
77298
77299                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77300                 available as variable CONF_JAVA, for subsequent autoconf
77301                 tests. Also log error output in config.log.
77302
77303         2006-07-19  Bruno Haible  <bruno@clisp.org>
77304
77305                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77306                 that getline works on glibc2 systems. Needed to avoid trouble
77307                 in relocatable.c.
77308                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77309
77310         2005-12-04  Bruno Haible  <bruno@clisp.org>
77311
77312                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77313                 launcher (untested).
77314
77315         2005-12-04  Bruno Haible  <bruno@clisp.org>
77316
77317                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77318
77319         2006-07-22  Bruno Haible  <bruno@clisp.org>
77320
77321                 * gettext.m4: Update from GNU gettext-0.15.
77322                 * nls.m4: Likewise.
77323                 * po.m4: Likewise.
77324                 * inttypes-pri.m4: Likewise.
77325                 * inttypes-h.m4: Renamed from inttypes.m4.
77326                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77327
77328 2006-07-22  Bruno Haible  <bruno@clisp.org>
77329
77330         Merge from GNU gettext 0.15.
77331
77332         2005-07-05  Bruno Haible  <bruno@clisp.org>
77333
77334                 * printf-args.c (printf_fetchargs): Work around broken
77335                 definition of wint_t on mingw.
77336
77337         2005-02-12  Bruno Haible  <bruno@clisp.org>
77338
77339                 * xallocsa.h: Add extern "C" for C++.
77340
77341         2006-05-17  Bruno Haible  <bruno@clisp.org>
77342
77343                 Cygwin portability.
77344                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77345
77346         2006-04-30  Bruno Haible  <bruno@clisp.org>
77347
77348                 * progreloc.c: Include <mach-o/dyld.h> if available.
77349                 (find_executable): Use _NSGetExecutablePath when possible.
77350
77351         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77352
77353                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77354                 function.
77355
77356         2005-12-29  Bruno Haible  <bruno@clisp.org>
77357
77358                 * progreloc.c (set_program_name_and_installdir): Fix
77359                 compilation error.
77360
77361         2005-12-04  Bruno Haible  <bruno@clisp.org>
77362
77363                 Cygwin portability.
77364                 * progreloc.c: Include <windows.h> also on Cygwin.
77365                 (find_executable): Add support for Cygwin.
77366                 (set_program_name_and_installdir): Handle also platforms with
77367                 nonempty EXEEXT.
77368
77369         2006-07-11  Bruno Haible  <bruno@clisp.org>
77370
77371                 * javacomp.c: Fix a comment.
77372                 Reported by Jim Meyering.
77373
77374         2006-04-30  Bruno Haible  <bruno@clisp.org>
77375
77376                 * javacomp.h (compile_java_class): Add source_version,
77377                 target_version arguments.
77378                 * javacomp.c: Rewritten to choose only a compiler that
77379                 respects the specified source_version and target_version.
77380
77381         2006-06-27  Bruno Haible  <bruno@clisp.org>
77382
77383                 Assume correct S_ISDIR macro.
77384                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77385
77386         2006-07-22  Bruno Haible  <bruno@clisp.org>
77387
77388                 * javaversion.h: New file, from GNU gettext.
77389                 * javaversion.c: New file, from GNU gettext.
77390                 * javaversion.java: New file, from GNU gettext.
77391                 * javaversion.class: New file, from GNU gettext.
77392
77393         2006-05-17  Bruno Haible  <bruno@clisp.org>
77394
77395                 Cygwin portability.
77396                 * javaexec.c (execute_java_class): Test for jview program
77397                 also on Cygwin.
77398
77399         2006-04-09  Bruno Haible  <bruno@clisp.org>
77400
77401                 * fatal-signal.c: Don't include string.h.
77402                 (at_fatal_signal): Use a copying loop instead of memcpy.
77403
77404         2005-12-04  Bruno Haible  <bruno@clisp.org>
77405
77406                 * csharpexec.c: Add support for 'clix' launcher (untested).
77407                 (execute_csharp_using_sscli): New function.
77408                 (execute_csharp_program): Call it.
77409
77410         2006-06-21  Bruno Haible  <bruno@clisp.org>
77411
77412                 Avoid warnings from recent versions of mcs.
77413                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77414                 -o, -L, -r any more. Use options documented since mcs-1.0
77415                 instead. Similarly for -g.
77416
77417         2005-07-09  Bruno Haible  <bruno@clisp.org>
77418
77419                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77420                 add a .dll suffix.
77421                 Reported by Mark Junker <mjscod@gmx.de>.
77422
77423         2006-06-17  Bruno Haible  <bruno@clisp.org>
77424
77425                 * config.charset: Update for NetBSD 3.0.
77426
77427         2006-05-17  Bruno Haible  <bruno@clisp.org>
77428
77429                 Cygwin portability.
77430                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77431
77432         2006-05-16  Bruno Haible  <bruno@clisp.org>
77433
77434                 * localcharset.c [CYGWIN]: Include <windows.h>.
77435                 (get_charset_aliases): For Cygwin, return the same CPxxx
77436                 aliases list as under WIN32.
77437                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77438                 the environment variables. Fall back to GetACP().
77439
77440         2006-04-05  Bruno Haible  <bruno@clisp.org>
77441
77442                 * config.charset: Update Juan Manuel Guerrero's address.
77443
77444         2005-02-12  Bruno Haible  <bruno@clisp.org>
77445
77446                 * allocsa.h: Add extern "C" for C++.
77447
77448         2005-02-10  Bruno Haible  <bruno@clisp.org>
77449
77450                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77451                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77452
77453         2006-07-22  Bruno Haible  <bruno@clisp.org>
77454
77455                 * gettext.h: Update to GNU gettext-0.15.
77456
77457 2006-07-22  Bruno Haible  <bruno@clisp.org>
77458
77459         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77460         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77461         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77462
77463 2006-07-21  Eric Blake  <ebb9@byu.net>
77464
77465         * modules/stdlib-safer: New file.
77466         * MODULES.html.sh (File stream based Input/Output): Add
77467         stdlib-safer.
77468
77469 2006-07-21  Eric Blake  <ebb9@byu.net>
77470
77471         * lib/stdlib-safer.h: New file from coreutils, required by
77472         stdlib--.h.
77473
77474 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77475
77476         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77477
77478 2006-07-20  Bruno Haible  <bruno@clisp.org>
77479
77480         * gnulib-tool: Recognize new option --assume-autoconf.
77481         (autoconf_minversion): New variable.
77482         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77483
77484 2006-07-20  Bruno Haible  <bruno@clisp.org>
77485
77486         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77487
77488 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77489
77490         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77491         Reindent and repaginate.
77492
77493 2006-07-19  Derek Price  <derek@ximbiot.com>
77494
77495         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77496         Correct grammar.
77497
77498 2006-07-17  Bruno Haible  <bruno@clisp.org>
77499
77500         * modules/list: New file.
77501         * modules/array-list: New file.
77502         * modules/carray-list, modules/carray-list-tests: New files.
77503         * modules/linked-list, modules/linked-list-tests: New files.
77504         * modules/avltree-list, modules/avltree-list-tests: New files.
77505         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77506         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77507         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77508         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77509         * modules/oset: New file.
77510         * modules/array-oset: New file.
77511         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77512         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77513         * tests/test-carray_list.c: New file.
77514         * tests/test-linked_list.c: New file.
77515         * tests/test-avltree_list.c: New file.
77516         * tests/test-rbtree_list.c: New file.
77517         * tests/test-linkedhash_list.c: New file.
77518         * tests/test-avltreehash_list.c: New file.
77519         * tests/test-rbtreehash_list.c: New file.
77520         * tests/test-avltree_oset.c: New file.
77521         * tests/test-rbtree_oset.c: New file.
77522         * MODULES.html.sh (Container data structures): New section.
77523
77524 2006-07-17  Bruno Haible  <bruno@clisp.org>
77525
77526         * m4/gl_list.m4: New file.
77527
77528 2006-07-17  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/gl_list.h: New file.
77531         * lib/gl_list.c: New file.
77532         * lib/gl_array_list.h: New file.
77533         * lib/gl_array_list.c: New file.
77534         * lib/gl_carray_list.h: New file.
77535         * lib/gl_carray_list.c: New file.
77536         * lib/gl_linked_list.h: New file.
77537         * lib/gl_linked_list.c: New file.
77538         * lib/gl_anylinked_list1.h: New file.
77539         * lib/gl_anylinked_list2.h: New file.
77540         * lib/gl_avltree_list.h: New file.
77541         * lib/gl_avltree_list.c: New file.
77542         * lib/gl_anyavltree_list1.h: New file.
77543         * lib/gl_anyavltree_list2.h: New file.
77544         * lib/gl_rbtree_list.h: New file.
77545         * lib/gl_rbtree_list.c: New file.
77546         * lib/gl_anyrbtree_list1.h: New file.
77547         * lib/gl_anyrbtree_list2.h: New file.
77548         * lib/gl_anytree_list1.h: New file.
77549         * lib/gl_anytree_list2.h: New file.
77550         * lib/gl_linkedhash_list.h: New file.
77551         * lib/gl_linkedhash_list.c: New file.
77552         * lib/gl_anyhash_list1.h: New file.
77553         * lib/gl_anyhash_list2.h: New file.
77554         * lib/gl_avltreehash_list.h: New file.
77555         * lib/gl_avltreehash_list.c: New file.
77556         * lib/gl_rbtreehash_list.h: New file.
77557         * lib/gl_rbtreehash_list.c: New file.
77558         * lib/gl_anytreehash_list1.h: New file.
77559         * lib/gl_anytreehash_list2.h: New file.
77560
77561         * lib/gl_oset.h: New file.
77562         * lib/gl_oset.c: New file.
77563         * lib/gl_array_oset.h: New file.
77564         * lib/gl_array_oset.c: New file.
77565         * lib/gl_avltree_oset.h: New file.
77566         * lib/gl_avltree_oset.c: New file.
77567         * lib/gl_rbtree_oset.h: New file.
77568         * lib/gl_rbtree_oset.c: New file.
77569         * lib/gl_anytree_oset.h: New file.
77570
77571 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * m4/mkancesdirs.m4: New file.
77574         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77575         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77576         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77577         it.
77578
77579 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77582         * lib/mkancesdirs.h: New files.
77583         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77584         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77585         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77586         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77587         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77588         callers changed.  Revamp internals significantly, by not
77589         attempting to create directories that are temporarily more
77590         permissive than the final results.  Do not attempt to use
77591         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77592         This removes some race conditions, fixes some bugs, and simplifies
77593         things.  Use new dirchownmod function to do owner and mode changes.
77594         * lib/mkdir-p.h: Likewise.
77595         * lib/modechange.c (octal_to_mode): New function.
77596         (struct mode_change): New member mentioned.
77597         (make_node_op_equals): New arg mentioned.  All callers changed.
77598         (mode_compile): Keep track of which mode bits the user has explicitly
77599         mentioned.
77600         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77601         New arg PMODE_BITS, to keep track of which mode bits the user
77602         mentioned; it treats S_ISUID and S_ISGID speciall.
77603         All callers changed.
77604         * lib/modechange.h: Likewise.
77605
77606 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * MODULES.html.sh: Add mkancestors.
77609         * modules/mkancesdirs: New module.
77610         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77611         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77612         The chdir-safer and afs files are now orphans; I'll remove them
77613         unless someone speaks up.
77614         Add lib/dirchownmod.c, lib/dirchownmod.h.
77615         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77616         Add lchown, mkancesdirs.
77617         (Maintainer): Add self.
77618
77619 2006-07-15  Karl Berry  <karl@gnu.org>
77620
77621         * gnulib-tool: help message wording/arrangement.
77622
77623 2006-07-14  Simon Josefsson  <jas@extundo.com>
77624
77625         * doc/gnulib.texi (Libtool and Windows): New section.
77626
77627 2006-07-12  Simon Josefsson  <jas@extundo.com>
77628
77629         * modules/gendocs (License): Fix license, approved by Karl.
77630
77631 2006-07-12  Eric Blake  <ebb9@byu.net>
77632
77633         * MODULES.html.sh: Add gendocs.
77634
77635 2006-07-11  Eric Blake  <ebb9@byu.net>
77636
77637         * modules/fdl: New module, to install doc/fdl.texi.
77638         * MODULES.html.sh: Add new section for documentation modules.
77639         * gnulib-tool: Avoid space-tab.
77640         (--doc-base): New option, to manage files from doc.
77641
77642 2006-07-11  Eric Blake  <ebb9@byu.net>
77643
77644         * m4/absolute-header.m4: Fix comments to match recent change.
77645
77646 2006-07-11  Eric Blake  <ebb9@byu.net>
77647
77648         * gnulib-tool: List --doc-base before --tests-base.
77649
77650 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77651
77652         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77653
77654 2006-07-11  Bruno Haible  <bruno@clisp.org>
77655
77656         * README: Mention where to put documentation.
77657
77658 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77659
77660         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77661
77662 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77663
77664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77665         to stdint.m4.
77666
77667 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77670         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77671         "no/such/file/stdint.h" when there is no such file, so that
77672         the resulting C code can be parsed by dodgy compilers.
77673         Problems reported by Bob Proulx.
77674
77675 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77676
77677         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77678         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77679         macros into the GNU _D_EXACT_NAMLEN.
77680         * lib/savedir.c:  Likewise.
77681         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77682
77683 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77684         and Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77687         * m4/savedir.m4:
77688         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77689         macros into the GNU _D_EXACT_NAMLEN.
77690
77691 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77694         around the absolute name, to work around a problem with the HP-UX
77695         11.23 native C compiler, reported by Bob Proulx.
77696
77697 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * doc/maintain.texi, make-stds.texi: Sync from
77700         <http://savannah.gnu.org/projects/gnustandards>.
77701
77702 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77703
77704         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77705
77706 2006-07-09  Jim Meyering  <jim@meyering.net>
77707
77708         * m4/glob.m4: Remove a doubled word in a comment.
77709
77710 2006-07-09  Jim Meyering  <jim@meyering.net>
77711
77712         * lib/argp-pv.c: Remove a doubled word in a comment.
77713         * lib/check-version.c (check_version): Likewise.
77714         * lib/javacomp.c (compile_java_class): Likewise.
77715
77716 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77719         for the benefit of people using Autoconf 2.60.  If you want to
77720         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77721         (or m4/onceonly.m4, if pre-2.57) manually.
77722
77723 2006-07-08  Jim Meyering  <jim@meyering.net>
77724
77725         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77726         comment.
77727         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77728         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77729         comment.
77730
77731 2006-07-08  Jim Meyering  <jim@meyering.net>
77732
77733         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77734
77735 2006-07-07  Simon Josefsson  <jas@extundo.com>
77736
77737         * tests/test-crc.c: Change expected crc value, the test vector
77738         were probably computed using the old broken crc.c?
77739
77740 2006-07-06  Simon Josefsson  <jas@extundo.com>
77741
77742         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77743         now the canonical place for the M4 file).
77744
77745         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77746         from the sys_socket dependency now.
77747
77748         * modules/inet_pton (Files): Ditto.
77749
77750         * modules/inet_ntop (Files): Ditto.
77751
77752 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77753
77754         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77755         not gl_PREREQ_GETUSERSHELL.
77756
77757 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77758
77759         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77760         with only one argument, for Autoconf 2.60.
77761         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77762         expand to nothing, so add a shell command to avoid syntax error.
77763         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77764
77765 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77766
77767         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77768
77769 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77772         no longer needed.  Check for isblank decl.
77773         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77774         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77775         of existence.
77776
77777 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/getloadavg.c: Use __VMS, not VMS.
77780         * lib/getopt.c: Likewise.
77781         * lib/getpagesize.h: Likewise.
77782         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77783         and probably does not work.
77784
77785 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/.cppi-disable: Add wcwidth.
77788         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77789         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77790         (ISGRAPH): Remove.  All uses changed to isgraph.
77791         (FOLD) [!defined _LIBC]: Remove special case.
77792         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77793         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77794         HAVE_ISBLANK.
77795         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77796         case.
77797
77798 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77799
77800         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77801         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77802         brackets.  Other minor changes to suppress some compiler
77803         warnings.
77804
77805 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77806         and Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77809         of invoking obsolescent AC_HEADER_DIRENT macro.
77810         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77811         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77812         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77813         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77814         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77815         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77816         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77817         * m4/readdir.m4: Remove; no longer needed.
77818
77819 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77820         and Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77823         Don't worry about this obsolete case any more.
77824         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77825         directories.
77826         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77827         worry about this obsolete case any more.
77828         * lib/fts.c: Likewise.
77829         * lib/getcwd.c: Likewise.
77830         * lib/glob.h: Likewise.
77831         * lib/savedir.c: Likewise.
77832
77833 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77836         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77837         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77838         needed.
77839         All uses removed.
77840         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77841         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77842         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77843         needed.
77844         * m4/getdate.m4 (gl_GETDATE): Likewise.
77845         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77846         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77847         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77848         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77849         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77851         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77852         needed.
77853
77854 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         * lib/memcasecmp.c: Include <limits.h>.
77857         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77858         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77859         Don't assume isdigit succeeds only on '0' through '9'.
77860
77861 2006-07-05  Eric Blake  <ebb9@byu.net>
77862
77863         * modules/getaddrinfo (Depends-on): Add snprintf.
77864
77865 2006-07-05  Eric Blake  <ebb9@byu.net>
77866
77867         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77868         to avoid 'header present but could not be compiled' on cygwin.
77869
77870 2006-07-05  Eric Blake  <ebb9@byu.net>
77871
77872         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77873         missing from netdb.h.
77874         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77875
77876 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77877
77878         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77879         no longer needed.
77880         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77881         * m4/getdate.m4 (gl_GETDATE): Likewise.
77882         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77883         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77884         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77885         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77886         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77887
77888 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77889
77890         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77891         All uses of is_space replaced by isspace.
77892         * lib/exit.h: Don't talk about STDC_HEADERS.
77893         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77894         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77895         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77896         replaced by isprint etc.
77897         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77898         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77899         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77900         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77901         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77902         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77903
77904 2006-07-05  Bruno Haible  <bruno@clisp.org>
77905
77906         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77907         the function exists, before testing against AIX.
77908         Reported by Martin Lambers <marlam@marlam.de>.
77909
77910 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77913         From Mark D. Baushke.
77914
77915 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77918         to the absolute name, not just one, to bypass Sun C 5.8's
77919         "warning: #include of /usr/include/... may be non-portable".
77920
77921 2006-07-04  Eric Blake  <ebb9@byu.net>
77922
77923         * modules/dirname-tests: New test module.
77924         * tests/test-dirname.c: New file, replacing dirname.c
77925         TEST_DIRNAME section that was recently deleted.
77926
77927 2006-07-04  Bruno Haible  <bruno@clisp.org>
77928
77929         Assume ANSI C header files and <ctype.h> functions.
77930         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77931         (mbsnwidth): Use isprint, iscntrl instead.
77932
77933 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         Merge from coreutils.
77936         * MODULES.html.sh: Add xstrtold.
77937         * modules/xstrtold: New file.
77938         * modules/cycle-check (Files): Add lib/same-inode.h.
77939         * modules/dirname (Files): Add m4/double-slash-root.m4.
77940         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77941         * modules/mkdir-p (Files): Add lib/same-inode.h.
77942         * modules/same (Files): Add lib/same-inode.h.
77943
77944 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77947         This is to keep the terminology clean; POSIX talks about
77948         "absolute pathnames", not "full pathnames", but the GNU
77949         Coding Standards say to use "path" for something else;
77950         so use "absolute" to keep both sides happy.
77951         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77952         Set gl_absolute_header, not gl_full_header_path.
77953         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77954         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77955         All uses changed.
77956
77957         Merge from coreutils.
77958
77959         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77962         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77963         want to require the building of c-strtod.o.
77964         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77965         needs -lm directly.
77966         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77967
77968         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77971         --as-needed option if available.  Problem reported by Albert Chin in
77972         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77973         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77974         cc merely issues a bunch of annoying warnings for --as-needed
77975         (this problem was reported by Bob Proulx).  Also, try linking with
77976         -lm to detect a bug in binutils 2.16 (this problem was reported
77977         by Ralf Wildenhues).
77978
77979         2006-06-18  Jim Meyering  <jim@meyering.net>
77980
77981         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77982         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77983         macro.
77984         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77985         also check for glibc-2.4's abort-inducing bug.
77986
77987         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77988         Low-probability clean-up should be to use rmdir to get rid of
77989         the just-created directory, not unlink.
77990
77991         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77992         configure fail, and request a bug report to inform us about it.
77993         Add a comment that, barring reports to the contrary, in 2007 we'll
77994         assume ftruncate is universally available.
77995
77996         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77999
78000         2006-03-12  Jim Meyering  <jim@meyering.net>
78001
78002         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78003         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78004         * m4/same.m4 (gl_SAME): Likewise.
78005         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78006
78007         2006-03-11  Eric Blake  <ebb9@byu.net>
78008
78009         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78010         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78011         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78012         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78013
78014 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78015
78016         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78017         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78018         reported by Mark D. Baushke, one in
78019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78020
78021         Merge from coreutils.
78022
78023         * lib/.cppi-disable: Add stdint_.h.
78024         * lib/.cvsignore: Add stdint.h.
78025
78026         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78029         both double and long double versions.
78030         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78031         * lib/xstrtold.c: New file.
78032         * lib/xstrtod.h (xstrtold): New decl.
78033
78034         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * lib/filemode.c (setst): Remove.
78037         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78038         (arguably) clearer, and the generated code is a bit smaller on my
78039         Debian GNU/Linux stable x86 host.
78040
78041         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78044         Assume that filemode.h includes sys/types.h and sys/stat.h.
78045         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78046         (ftypelet): Reorder to put common cases first, for efficiency.
78047         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78048         to do 'M'.
78049         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78050         of 10, for compatibility with FreeBSD.  All callers changed.
78051         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78052         types that can't be deduced solely from st_mode.  First arg is now a
78053         const pointer.
78054         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78055         (strmode): Renamed from mode_string.
78056         (filemodestring): New decl.
78057         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78058         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78059         needed.
78060         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78061
78062         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78065         fsusage.h now does that.  Include fsusage.h first, to test interface.
78066         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78067         at most one method (the old code could have generated decls that
78068         didn't conform to C89, not that this was ever exercised).
78069         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78070
78071         2006-03-19  Jim Meyering  <jim@meyering.net>
78072
78073         Work even in a chroot where d_ino values for entries in "/"
78074         don't match the stat.st_ino values for the same names.
78075         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78076         number, iterate through all entries again, using lstat instead.
78077         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78078         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78079
78080         * lib/getcwd.c (__getcwd): Clarify a comment.
78081         Use memcpy in place of a call to strcpy.
78082
78083         2006-03-12  Jim Meyering  <jim@meyering.net>
78084
78085         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78086         matches that of the current directory (which we're about to chdir ".."
78087         out of), then save the dev-ino of the parent, instead.
78088
78089         * lib/same-inode.h (SAME_INODE): New file/macro.
78090         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78091         Include "same-inode.h", instead.
78092         * lib/same.c: Likewise.
78093         * lib/cycle-check.h: Include "same-inode.h".
78094         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78095         * lib/cycle-check.c (SAME_INODE): Remove definition.
78096         * lib/root-dev-ino.h: Include "same-inode.h".
78097
78098         2006-03-11  Eric Blake  <ebb9@byu.net>
78099
78100         * lib/same.c (same_name): s/base_name/last_component/
78101         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78102         * lib/filenamecat.c (file_name_concat): Likewise.
78103
78104         2006-03-11  Eric Blake  <ebb9@byu.net>,
78105                     Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78108         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78109         drive prefix.
78110         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78111         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78112         (last_component): New method.
78113         * lib/dirname.c (dir_len): Determine when drive letters need a
78114         subsequent slash.  Preserve // when it is special.
78115         (dir_name): Don't append dot when drive letter is absolute.
78116         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78117         * lib/basename.c (base_name): New semantics - malloc the result.
78118         Preserve // when it is special.  Preserve relative files that look
78119         like drive letters.
78120         (base_len): Preserve // when it is special.
78121         (last_component): New method, similar to old base_name semantics.
78122         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78123         base_name.  Strip redundant slashes from ///.
78124
78125 2006-07-03  Jim Meyering  <jim@meyering.net>
78126
78127         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78128         macro is used before the first cycle_check call.
78129
78130 2006-07-03  Eric Blake  <ebb9@byu.net>
78131
78132         * modules/dirname (Depends-on): Add xstrndup.
78133
78134 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78137         test cases, so that config.log is a bit easier to follow.
78138
78139 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78142         both are 64 bits, since this seems to be the tradition, and this
78143         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78144         we ever run into a host that prefers long long to long in this
78145         case, we'll need another configure-time test.  Problem reported by
78146         Jim Meyering.
78147
78148 2006-07-02  Eric Blake  <ebb9@byu.net>
78149
78150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78151
78152 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * modules/inttypes (Depends-on): No longer depends on stdint.
78155         * modules/stdint (Description): Say more about assumptions.
78156         Say that the fast types might differ.  Say macros are used.
78157         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78158         (Makefile.am): Revise list of substituted symbols to match
78159         new stdint.m4.
78160         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78161         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78162         * tests/test-stdint.c (verify_same_types)
78163         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78164         the code conforms to C99/C89.
78165         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78166         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78167
78168 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78171         but fix a bug, by requiring at least 64 bits.
78172         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78173         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78174         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78175         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78176
78177         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78178         changes.  Make 2.59 a prerequisite.  Check and substitute for
78179         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78180         inttypes.h.  Do not use special include files; just use the
78181         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78182         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78183         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78184         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78185         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78186         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78187         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78188         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78189         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78190         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78191         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78192         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78193         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78194         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78195         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78196         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78197         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78198         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78199         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78200         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78201         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78202         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78203         not check for things that C99 does not require, e.g., int8_t.  If
78204         a test isn't needed unless <stdint.h> isn't working, and is
78205         unlikely to be needed for any other reason, then don't do it
78206         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78207         size_t, since we assume C89 freestanding at least.  Do not check
78208         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78209         the right thing even if the types are not defined.  Instead use:
78210         (gl_STDINT_TYPE_PROPERTIES): New macro.
78211         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78212         testing whether <sys/types.h> clashes, as Autoconf does this for
78213         us now.  All uses removed.
78214         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78215         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78216         (gl_CHECK_TYPE_SAME):
78217         Remove; no longer needed.
78218         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78219         exists, since we'll return 0 anyway in that case.
78220         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78221
78222 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78225         possible collision with system files.
78226         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78227         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78228         WCHAR_MIN and WCHAR_MAX in this case.
78229         (<stddef.h>): Do not include; no longer needed.
78230         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78231         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78232         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78233         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78234         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78235         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78236         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78237         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78238         !defined(__c99))]: Include in this case too, since it's harmless
78239         now.
78240         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78241         dangerous to do so.
78242         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78243         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78244         (_STDINT_MIN, _STDINT_MAX): New macros.
78245         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78246         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78247         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78248         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78249         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78250         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78251         macros, not typedefs; this simplifies things quite a bit.
78252         Use long int for all types narrower than int64_t.
78253         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78254         Define in terms of long long int or int64_t or long int,
78255         not int64_t or int32_t.  This saves some compile-time testing.
78256         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78257         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78258         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78259         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78260         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78261         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78262         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78263         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78264         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78265         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78266         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78267         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78268         undef any previous version and define our own version, for
78269         simplicity and consistency with the new macros for types.
78270         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78271         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78272         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78273         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78274         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78275         @WINT_T_SUFFIX@ to keep things simple here.
78276         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78277         Simplify by assuming typical 8/16/32/64 host, since we're
78278         already doing that elsewhere anyway.
78279         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78280         and assume long long int is 64 bits if available.  This
78281         speeds up 'configure'.
78282
78283 2006-07-01  Eric Blake  <ebb9@byu.net>
78284
78285         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78286         Reported by Andreas Buening.
78287
78288 2006-07-01  Eric Blake  <ebb9@byu.net>
78289
78290         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78291
78292 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78293
78294         * lib/getaddrinfo.c: fixed typo
78295
78296 2006-06-29  Jim Meyering  <jim@meyering.net>
78297
78298         * modules/strftime (Maintainer): Add my name, since with the
78299         FPRINTFTIME changes strftime.c has forked from glibc.
78300
78301 2006-06-29  Eric Blake  <ebb9@byu.net>
78302
78303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78304
78305 2006-06-29  Eric Blake  <ebb9@byu.net>
78306
78307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78308
78309 2006-06-29  Eric Blake  <ebb9@byu.net>
78310
78311         * lib/stat_.h: New file.
78312
78313 2006-06-29  Eric Blake  <ebb9@byu.net>
78314
78315         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78316         unused static function.
78317
78318 2006-06-29  Eric Blake  <ebb9@byu.net>
78319
78320         * doc/functions.texi (Function Portability): Document missing lstat
78321         on mingw.
78322
78323 2006-06-29  Eric Blake  <ebb9@byu.net>
78324
78325         * MODULES.html.sh: Add sys_stat.
78326         * modules/sys_stat: New module.
78327         * modules/mkstemp (Depends-on): Add sys_stat.
78328
78329 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78330
78331         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78332
78333 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78334
78335         * m4/c-bs-a.m4: Removed.
78336
78337 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78338
78339         * lib/strftime.c: Assume strftime() exists.
78340
78341 2006-06-29  Derek Price  <derek@ximbiot.com>
78342
78343         * modules/c-bs-a: Removed - \a is C89.
78344         * MODULES.html.sh: Remove c-bs-a.
78345
78346 2006-06-29  Bruno Haible  <bruno@clisp.org>
78347
78348         * modules/wcwidth (License): Change to LGPL.
78349
78350 2006-06-28  Simon Josefsson  <jas@extundo.com>
78351
78352         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78353         on _WIN32.
78354
78355         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78356         getnameinfo.
78357
78358 2006-06-28  Simon Josefsson  <jas@extundo.com>
78359
78360         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78361
78362 2006-06-28  Simon Josefsson  <jas@extundo.com>
78363
78364         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78365         functions there.  It will succeed on Windows XP, but on Windows
78366         2000 and (presumably) earlier, it will fail, and use the internal
78367         re-implementation.
78368         (use_win32_p): New function.
78369         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78370         Support AI_NUMERICSERV to disable getservbyname.
78371         (getnameinfo): New function, only supports
78372         NI_NUMERICHOST|NI_NUMERICSERV for now.
78373
78374         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78375         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78376         getnameinfo.
78377
78378 2006-06-28  Eric Blake  <ebb9@byu.net>
78379
78380         * modules/wcwidth: New file.
78381         * modules/mbchar (Depends-on): Add wcwidth.
78382         * modules/mbswidth (Depends-on): Add wcwidth.
78383         * MODULES.html.sh: Add wcwidth.
78384
78385 2006-06-28  Eric Blake  <ebb9@byu.net>
78386
78387         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78389
78390 2006-06-28  Eric Blake  <ebb9@byu.net>
78391
78392         * lib/xvasprintf.h: Fix comments.
78393
78394 2006-06-28  Eric Blake  <ebb9@byu.net>
78395
78396         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78397         * lib/mbswidth.c (wcwidth): Move from here...
78398         * lib/wcwidth.h: ...to this new file.
78399
78400 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78401
78402         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78403
78404         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78405         it's obsolete.
78406         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78407
78408 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78409
78410         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78411         Autoconf 2.60 says this stuff was obsolete.
78412
78413 2006-06-28  Bruno Haible  <bruno@clisp.org>
78414
78415         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78416
78417 2006-06-28  Bruno Haible  <bruno@clisp.org>
78418
78419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78420         gt_TYPE_WCHAR_T.
78421
78422 2006-06-28  Bruno Haible  <bruno@clisp.org>
78423
78424         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78425         declaration for wcwidth.
78426         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78427
78428 2006-06-28  Bruno Haible  <bruno@clisp.org>
78429
78430         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78431         (mkdir): Define using _mkdir.
78432
78433 2006-06-28  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/getaddrinfo.h: Fix POSIX URL.
78436         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78437         _WIN32.
78438         (use_win32_p): Make static.
78439         (getaddrinfo): Reject service name if it is empty or does not consist
78440         solely of decimal digits, or if its value is > 65535.
78441         (getnameinfo): Remove useless casts.
78442
78443 2006-06-27  Simon Josefsson  <jas@extundo.com>
78444
78445         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78446         Eggert and Martin Lambers.
78447
78448 2006-06-27  Simon Josefsson  <jas@extundo.com>
78449
78450         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78451         Eggert and Martin Lambers.
78452
78453 2006-06-27  Bruno Haible  <bruno@clisp.org>
78454
78455         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78456         result to 0, not to empty.
78457         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78458
78459 2006-06-27  Bruno Haible  <bruno@clisp.org>
78460
78461         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78462
78463 2006-06-26  Simon Josefsson  <jas@extundo.com>
78464
78465         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78466         present.
78467
78468 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78471         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78473
78474 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78475
78476         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78477
78478 2006-06-26  Bruno Haible  <bruno@clisp.org>
78479
78480         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78481
78482 2006-06-26  Bruno Haible  <bruno@clisp.org>
78483
78484         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78485
78486 2006-06-26  Bruno Haible  <bruno@clisp.org>
78487
78488         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78489         SGI C compiler in pre-C99 mode.
78490         Suggested by Mark D. Baushke and Larry Jones.
78491
78492 2006-06-26  Bruno Haible  <bruno@clisp.org>
78493
78494         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78495         WCHAR_MAX.
78496         Reported by Mark D. Baushke and Larry Jones.
78497
78498 2006-06-26  Bruno Haible  <bruno@clisp.org>
78499
78500         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78501         in pre-C99 mode.
78502         Suggested by Mark D. Baushke and Larry Jones.
78503
78504 2006-06-23  Simon Josefsson  <jas@extundo.com>
78505             Bruno Haible  <bruno@clisp.org>
78506
78507         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78508         Emit mostlyclean-local rule.
78509         (func_emit_tests_Makefile_am): Likewise.
78510         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78511
78512 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78513
78514         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78515
78516 2006-06-23  Bruno Haible  <bruno@clisp.org>
78517
78518         * tests/test-stdint.c: Update to match ISO C 99 Technical
78519         Corrigendum 1.
78520
78521 2006-06-23  Bruno Haible  <bruno@clisp.org>
78522
78523         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78524
78525 2006-06-23  Bruno Haible  <bruno@clisp.org>
78526
78527         * lib/stdint_.h: Treat IRIX like OpenBSD.
78528
78529 2006-06-23  Bruno Haible  <bruno@clisp.org>
78530
78531         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78532         ISO C 99 Technical Corrigendum 1.
78533
78534 2006-06-22  Simon Josefsson  <jas@extundo.com>
78535
78536         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78537         MinGW.
78538
78539 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78540
78541         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78542         needed.  Some compiler complained about some of them.  Problem reported
78543         by Larry Jones in
78544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78545
78546 2006-06-21  Simon Josefsson  <jas@extundo.com>
78547
78548         * tests/test-getaddrinfo.c: New file.
78549
78550         * modules/getaddrinfo-tests: New file.
78551
78552         * MODULES.html.sh: Add inet_pton.
78553
78554         * modules/inet_pton: New file.
78555
78556 2006-06-21  Simon Josefsson  <jas@extundo.com>
78557
78558         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78559         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78560         of using the (limited) gnulib implementation on Windows XP.
78561
78562         * m4/inet_pton.m4: New file.
78563
78564 2006-06-21  Simon Josefsson  <jas@extundo.com>
78565
78566         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78567         variable.
78568
78569         * lib/socket_.h: Don't define WINVER.
78570
78571         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78572         slightly modified to work in gnulib.
78573
78574 2006-06-21  Simon Josefsson  <jas@extundo.com>
78575
78576         * doc/gnulib.texi (Windows sockets): Add.
78577
78578 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * lib/read-file.c (fread_file): Start with buffer allocation of
78581         0 bytes rather than 1 byte; this simplifies the code.
78582         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78583         code to free buffer and save/restore errno.
78584         (internal_read_file): Remove unused local.
78585
78586 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78589         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78590         Problem reported by Denis Excoffier in
78591         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78592
78593 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78594
78595         * modules/sys_socket, modules/socklen: Include sys/types since
78596         FreeBSD 4.x's sys/socket.h needs it.
78597
78598 2006-06-19  Simon Josefsson  <jas@extundo.com>
78599
78600         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78601
78602 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78603
78604         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78605
78606 2006-06-19  Bruno Haible  <bruno@clisp.org>
78607
78608         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78609         and FULL_PATH_INTTYPES_H in angle brackets.
78610         Reported by Mark D. Baushke <mdb@gnu.org>.
78611
78612 2006-06-17  Eric Blake  <ebb9@byu.net>
78613
78614         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78615         errno.
78616
78617 2006-06-17  Bruno Haible  <bruno@clisp.org>
78618
78619         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78620         <sys/inttypes.h>.
78621
78622 2006-06-17  Bruno Haible  <bruno@clisp.org>
78623
78624         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78625         whether errno is declared. Assume <errno.h> declares errno.
78626
78627 2006-06-17  Bruno Haible  <bruno@clisp.org>
78628
78629         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78630
78631 2006-06-17  Bruno Haible  <bruno@clisp.org>
78632
78633         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78634         problem on Solaris 2.5.1.
78635
78636 2006-06-16  Eric Blake  <ebb9@byu.net>
78637
78638         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78639         * lib/unicodeio.c [!defined errno]: Likewise.
78640         * lib/strtol.c [!defined errno]: Likewise.
78641         * lib/strtod.c [!defined errno]: Likewise.
78642
78643 2006-06-15  Eric Blake  <ebb9@byu.net>
78644
78645         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78646
78647 2006-06-15  Eric Blake  <ebb9@byu.net>
78648
78649         * config/srclist.txt (ssize_t.m4): Lose sync.
78650
78651 2006-06-15  Bruno Haible  <bruno@clisp.org>
78652
78653         * modules/stdint (Files): Include m4/full-header-path.m4,
78654         m4/size_max.m4, m4/wchar_t.m4.
78655         (Makefile.am): Many more substitutions.
78656         * modules/stdint-tests: New file.
78657         * tests/test-stdint.c: New file.
78658
78659 2006-06-15  Bruno Haible  <bruno@clisp.org>
78660
78661         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78662         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78663         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78664         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78665         gl_CHECK_TYPE_SAME): New macros.
78666
78667 2006-06-15  Bruno Haible  <bruno@clisp.org>
78668
78669         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78670
78671 2006-06-15  Bruno Haible  <bruno@clisp.org>
78672
78673         * lib/stdint_.h: Rewritten to be fully auto-configured.
78674         Fixes bug on HP-UX/IA64.
78675
78676 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * lib/getdate.y (__attribute__): Don't define if already defined.
78679         Problem reported by Larry Jones.
78680         * lib/utimens.c (__attribute__): Likewise.
78681
78682 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78685         reported by Andreas Schwab.
78686
78687 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78688             Bruno Haible  <bruno@clisp.org>
78689
78690         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78691         check for the declaration of strnlen and a run test that exposes the
78692         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78693         rpl_strndup.
78694
78695 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78696             Bruno Haible  <bruno@clisp.org>
78697
78698         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78699
78700 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78701
78702         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78703         compile test, for Tru64 4.0D.
78704
78705 2006-05-28  Karl Berry  <karl@gnu.org>
78706
78707         * config/srclist.txt (printf-args.c): lose sync.
78708
78709 2006-05-26  Martin Lambers  <marlam@marlam.de>
78710
78711         * lib/getpass.c: Updates the test for the native W32 API, and adds
78712         missing includes, thus fixing compilation warnings.
78713
78714 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78715
78716         * lib/exclude.c (exclude_fnmatch): New function.
78717         (excluded_file_name): Call exclude_fnmatch.
78718         * lib/exclude.h (excluded_file_name): New prototype
78719
78720 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * lib/tempname.c (small_open, large_open): New macros.
78723         (__open, __open64) [!_LIBC]: Remove.
78724         (__gen_tempname): Use small_open and large_open instead of __open
78725         and __open64.  This fixes a portability bug on HP-UX 11.11i
78726         reported by Simon Wing-Tang in
78727         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78728
78729 2006-05-24  Bruno Haible  <bruno@clisp.org>
78730
78731         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78732         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78733         Reported by Thorsten Maerz <torte@netztorte.de> via
78734         Aaron Stone <aaron@serendipity.cx>.
78735
78736 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78739         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78740         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78741         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78742         not really conditional on the cache.
78743         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78744
78745 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78746
78747         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78748         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78749         (my_usleep): Don't mishandle maximum value.
78750
78751 2006-05-19  Jim Meyering  <jim@meyering.net>
78752
78753         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78754
78755 2006-05-17  Bruno Haible  <bruno@clisp.org>
78756
78757         Cygwin portability.
78758         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78759
78760 2006-05-17  Bruno Haible  <bruno@clisp.org>
78761
78762         * lib/stdint_.h: Fix recognition of Cygwin.
78763
78764 2006-05-15  Bruno Haible  <bruno@clisp.org>
78765
78766         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78767         on libtool patch by Ralf Wildenhues.
78768
78769 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78772         test for C99 conformance; (bool) 0.5 is an integer constant
78773         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78774         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78775
78776 2006-05-11  Simon Josefsson  <jas@extundo.com>
78777
78778         * m4/xvasprintf.m4: Fix obvious typo.
78779
78780 2006-05-11  Jim Meyering  <jim@meyering.net>
78781
78782         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78783         James Lemley.
78784
78785 2006-05-10  Simon Josefsson  <jas@extundo.com>
78786
78787         * lib/md4.c: Typo fix, update copyright years.
78788         (K1, K2): Don't use L because it turn computations into 64-bit on
78789         64-bit platforms.
78790
78791 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78794         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78795         unwanted sign propagation, e.g., on hosts with 64-bit int.
78796         There still are some problems with reeelly weird theoretical hosts
78797         (e.g., 33-bit int) but it's not worth worrying about now.
78798         * lib/sha1.c (rol): Likewise.
78799         (K1, K2, K3, K4): Remove unnecessary L suffix.
78800
78801 2006-05-10  Bruno Haible  <bruno@clisp.org>
78802
78803         * lib/des.c: Cast to avoid warnings.
78804
78805 2006-05-09  Bruno Haible  <bruno@clisp.org>
78806
78807         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78808         (Depends-on): Depend also on xsize, stdarg.
78809         (configure.ac): Add gl_XVASPRINTF.
78810
78811 2006-05-09  Bruno Haible  <bruno@clisp.org>
78812
78813         * m4/xvasprintf.m4: New file.
78814
78815 2006-05-09  Bruno Haible  <bruno@clisp.org>
78816
78817         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78818         (EOVERFLOW): Define fallback value.
78819         (xstrcat): New function.
78820         (xvasprintf): Recognize the special case of a string concatenation.
78821
78822 2006-05-08  Eric Blake  <ebb9@byu.net>
78823
78824         * gnulib-tool (func_version): Base copyright year on CVS date.
78825         (func_emit_copyright_notice): New function.
78826         (func_emit_lib_Makefile_am): Use it.
78827         (func_emit_tests_Makefile_am): Likewise.
78828         (func_import): Likewise.
78829
78830 2006-05-08  Bruno Haible  <bruno@clisp.org>
78831
78832         * modules/stdarg: New file.
78833         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78834
78835 2006-05-08  Bruno Haible  <bruno@clisp.org>
78836
78837         * m4/stdarg.m4: New file, from GNU gettext.
78838
78839 2006-05-08  Bruno Haible  <bruno@clisp.org>
78840
78841         * config/srclist.txt (build-aux/config.rpath): different from latest
78842         release.
78843
78844 2006-05-08  Bruno Haible  <bruno@clisp.org>
78845
78846         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78847
78848 2006-05-05  Jim Meyering  <jim@meyering.net>
78849
78850         * m4/warning.m4: New file, derived from bison's file by the same name.
78851
78852 2006-05-03  Bruno Haible  <bruno@clisp.org>
78853
78854         * lib/stdint_.h: Shorter URL.
78855         * lib/inttypes.h: Likewise.
78856
78857 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78858
78859         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78860
78861 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78862
78863         * lib/verify.h: Document the internals better.  Most of this change
78864         was written by Bruno Haible.
78865
78866 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * doc/verify.texi: New file, partly based on a proposal by
78869         Bruno Haible.
78870
78871 2006-05-02  Bruno Haible  <bruno@clisp.org>
78872
78873         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78874         test from here...
78875         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78876
78877 2006-04-29  Bruno Haible  <bruno@clisp.org>
78878
78879         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78880         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78881
78882 2006-04-29  Bruno Haible  <bruno@clisp.org>
78883
78884         * gnulib-tool: Make --update option actually work.
78885
78886 2006-04-29  Bruno Haible  <bruno@clisp.org>
78887
78888         * doc/gcd.texi: New file.
78889         * doc/gnulib.texi: Include it.
78890
78891 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * lib/getdate.y (get_date): When adding relative date, start with the
78894         initial time, not with the result of the first mktime call.
78895
78896 2006-04-25  Bruno Haible  <bruno@clisp.org>
78897
78898         * gnulib-tool (func_import): Output the include directives in three
78899         blocks, sorted separately.
78900         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78901
78902 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78905         to define main with arguments, for C++.  Reported by Eric Blake.
78906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78907         Prefer 'int main ()' to 'int main (void)', for C++.
78908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78909         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78910         for 'main', for C99 and C++.
78911
78912 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78915         Don't assume that exit status -1 is valid.
78916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78917         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78918         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78919         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78920         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78921         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78922         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78923         functions can be used without declaring them, or that you can
78924         exit with status -1.
78925         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78926
78927 2006-04-24  Karl Berry  <karl@gnu.org>
78928
78929         * config/srclist.txt (longdouble.m4): sync lost.
78930
78931 2006-04-24  Eric Blake  <ebb9@byu.net>
78932
78933         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78934
78935 2006-04-24  Bruno Haible  <bruno@clisp.org>
78936
78937         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78938         poll() implementation in AIX.
78939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78940
78941 2006-04-24  Bruno Haible  <bruno@clisp.org>
78942
78943         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78944         assigned exactly once.
78945
78946 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78947             Bruno Haible  <bruno@clisp.org>
78948
78949         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78950         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78951         for AM_CPPFLAGS.
78952
78953 2006-04-23  Bruno Haible  <bruno@clisp.org>
78954
78955         * modules/copy-file: Depend on unistd.
78956         * modules/execute: Likewise.
78957         * modules/fatal-signal: Likewise.
78958         * modules/findprog: Likewise.
78959         * modules/mkdtemp : Likewise.
78960         * modules/pipe: Likewise.
78961         * modules/wait-process: Likewise.
78962
78963 2006-04-23  Bruno Haible  <bruno@clisp.org>
78964
78965         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78966         condition was already detected.
78967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78968
78969 2006-04-23  Bruno Haible  <bruno@clisp.org>
78970
78971         * lib/copy-file.c: Include <unistd.h> unconditionally.
78972         * lib/execute.c: Likewise.
78973         * lib/fatal-signal.c: Likewise.
78974         * lib/findprog.c: Likewise.
78975         * lib/mkdtemp.c: Likewise.
78976         * lib/pipe.h: Likewise.
78977         * lib/pipe.c: Likewise.
78978         * lib/wait-process.h: Likewise.
78979
78980 2006-04-23  Bruno Haible  <bruno@clisp.org>
78981
78982         * gnulib-tool (func_usage): Fix --import description. Document
78983         --update.
78984         (func_import): Create temporary file in a temporary directory, if
78985         --dry-run is specified. Silence errors from 'grep' when there are no
78986         m4 files in $m4dir.
78987         (func_create_testdir): Silence errors from 'grep' when there are no
78988         m4 files in $m4dir.
78989         Reported by Karl Berry <karl@freefriends.org>.
78990
78991 2006-04-20  Bruno Haible  <bruno@clisp.org>
78992
78993         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78994         one argument, so that the code will be portable to Autoconf 2.60.
78995         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78996         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78997         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78998
78999 2006-04-19  Derek Price  <derek@ximbiot.com>
79000             Eric Blake  <ebb9@byu.net>
79001
79002         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79003         rather than "/full/path.h".  Update comment to match.  Shorten &
79004         generalize m4_translit call via AS_TR_CPP.
79005
79006 2006-04-19  Derek Price  <derek@ximbiot.com>
79007             Eric Blake  <ebb9@byu.net>
79008
79009         * lib/inttypes.h: Correct grammar in comment.
79010
79011 2006-04-18  Derek Price  <derek@ximbiot.com>
79012             Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * modules/inttypes: New file.
79015         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79016
79017 2006-04-18  Derek Price  <derek@ximbiot.com>
79018             Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79021         New files.
79022
79023 2006-04-18  Derek Price  <derek@ximbiot.com>
79024             Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * lib/inttypes.h: New file.
79027         * lib/strtoimax.c: Assume <inttypes.h>.
79028
79029 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79030
79031         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79032         isn't mounted.  Problem reported by Kir Kolyshkin.
79033
79034 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79035
79036         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79037         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79038         Derek R. Price.
79039         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79040         implementation.
79041
79042 2006-04-12  Eric Blake  <ebb9@byu.net>
79043
79044         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79045         is now done automatically by the corresponding Autoconf macro.
79046
79047 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79050         time_r.h.
79051
79052 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         Merge regex changes from libc, removing some of our
79055         POSIX-conformance changes that were rejected and redoing them in a
79056         less-intrusive way.
79057
79058         * lib/regcomp.c (re_compile_internal, init_dfa):
79059         Length arg is now size_t, not Idx.  All uses changed.
79060         (peek_token): Forward decl now says internal_function.
79061         (__re_error_msgid, __re_error_msgid_idx):
79062         Now static rather than extern with attribute_hidden.
79063         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79064         For some reason libc prefers K&R style defns for external functions.
79065         (regerror) [!defined _LIBC]: Likewise.
79066         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79067         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79068         (build_range_exp, build_collating_symbol):
79069         Use K&R-style defn.
79070         (re_compile_fastmap): Use '\0' to memset, not 0.
79071         (utf8_sb_map): Make the calculations more obvious.
79072         (init_dfa, parse_bracket_exp, build_charclass_op):
79073         Call calloc and cast result, as glibc does.
79074         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79075         (build_range_exp, build_collating_symbol):
79076         Now internal functions.
79077
79078         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79079
79080         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79081         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79082         Don't depend on VMS; depend on __VMS instead, for POSIX
79083         namespace cleanness.
79084         (regoff_t): Define to ssize_t, not long int.
79085
79086         Remove the REG_ macros named below.  Instead, make the old names
79087         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79088         __USE_GNU_REGEX.
79089         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79090         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79091         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79092         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79093         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79094         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79095         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79096         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79097         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79098         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79099         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79100         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79101         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79102         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79103         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79104         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79105         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79106         (REG_NREGS):
79107         Remove.  All uses replaced by the old RE_* names.
79108         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79109         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79110         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79111         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79112         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79113         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79114         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79115         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79116         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79117         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79118         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79119         Don't bother having these macros be independent of each others'
79120         values, since they no longer exist in the POSIX name space.
79121
79122         Rename the following member names back to their old names,
79123         unless !__USE_GNU_REGEX.  All uses changed back.
79124         (buffer): Renamed from re_buffer.
79125         (allocated): Renamed from re_allocated.
79126         (used): Renamed from re_used.
79127         (syntax): Renamed from re_syntax.
79128         (fastmap): Renamed from re_fastmap.
79129         (translate): Renamed from re_translate.
79130         (can_be_null): Renamed from re_can_be_null.
79131         (regs_allocated): Renamed from re_regs_allocated.
79132         (fastmap_accurate): Renamed from re_fastmap_accurate.
79133         (no_sub): Renamed from re_no_sub.
79134         (not_bol): Renamed from re_not_bol.
79135         (not_eol): Renamed from re_not_eol.
79136         (newline_anchor): Renamed from re_newline_anchor.
79137         (num_regs): Renamed from rm_num_regs.
79138         (start): Renamed from rm_start.
79139         (end): Renamed from rm_end.
79140
79141         (free_state): Move up a bit.
79142
79143         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79144         #define to be empty.
79145         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79146         when that is what is intended.
79147         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79148         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79149         (MAX): New macro.
79150         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79151         All uses changed back to re_malloc, etc.  It's now the caller's
79152         responsibility to check for overflow; all callers changed.
79153         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79154         (re_x2nrealloc): Remove.
79155         (free_state): Remove decl.
79156
79157         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79158         (re_set_registers, re_exec):
79159         Use K&R-style defn.
79160
79161         2006-01-31  Roland McGrath  <roland@redhat.com>
79162
79163         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79164         Reported by Mike Frysinger <vapier@gentoo.org>.
79165
79166         2006-01-15  Andreas Jaeger  <aj@suse.de>
79167
79168         [BZ #1950]
79169         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79170         build_wcs_upper_buffer change.
79171         (build_wcs_upper_buffer): Change return type.
79172
79173         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79174
79175         * lib/regex_internal.h: Include <stdint.h> if available.
79176
79177         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79178
79179         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79180
79181         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79182
79183         * lib/regcomp.c: Adjust for changed secondary hash function.
79184
79185         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79186
79187         * lib/regex.h: Pretty printing.
79188         Clean up namespace a bit.
79189
79190         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79191
79192         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79193         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79194
79195         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79196                     Ulrich Drepper  <drepper@redhat.com>
79197
79198         [BZ #1302]
79199         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79200         changed.
79201         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79202
79203         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79204
79205         [BZ #281]
79206         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79207         * lib/regcomp.c: Remove unnecessary uses of
79208         unsigned RE_TRANSLATE_TYPE.
79209         * lib/regex_internal.h: Likewise.
79210         * lib/regex_internal.c: Likewise.
79211         * lib/regexec.c: Likewise.
79212         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79213
79214         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79215
79216         * lib/regexec.c (find_recover_state): Remove unnecessary
79217         initialization.
79218         (transit_state_bkref): Make DFA a const pointer.
79219         (get_subexp): Likewise.
79220         (check_arrival): Likewise.
79221         (update_cur_sifted_state): Likewise.
79222         (re_search_internal): Likewise.
79223         (prune_impossible_nodes): Likewise.
79224         (acquire_init_state_context): Likewise.
79225         (proceed_next_node): Likewise.
79226         (set_regs): Likewise.
79227         (free_fail_stack_return): Likewise.
79228         (check_arrival_expand_ecl): Mark DFA parameter as const.
79229         (check_arrival_expand_ecl_sub): Likewise.
79230         (check_subexp_limits): Likewise.
79231         (sub_epsilon_src_nodes):  Likewise.
79232         (add_epsilon_src_nodes):  Likewise.
79233         (merge_state_array): Likewise.
79234         (update_regs): Likewise.
79235         (build_trtable): Likewise.
79236         (sift_states_backward): Mark MCTX parameter as const.
79237         (build_sifted_states): Likewise.
79238         (update_cur_sifted_state): Likewise.
79239         (sift_states_mkref): Likewise.
79240         (check_arrival_expand_ecl): Mark eclosure as const.
79241         (check_dst_limits_calc_pos_1): Likewise.
79242         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79243         pointer.
79244
79245         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79246
79247         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79248         (transit_state_sb): Likewise.
79249         (transit_state_mb): Likewise.
79250         (sift_states_iter_mb): Likewise.
79251         (check_arrival_add_next_nodes): Likewise.
79252         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79253         [_LIBC] (re_search_2_stub): Use mempcpy.
79254
79255         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79256         mbrtowc for very simple UTF-8 case.
79257
79258         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79259         a pointer-to-const.
79260         (re_acquire_state_context): Likewise.
79261         * lib/regex_internal.h: Adjust prototypes.
79262
79263         * lib/regex.c: Prevent using C++ compilers.
79264
79265         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79266         (re_acquire_state_context): Likewise.
79267
79268 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         * modules/regex (Depends-on): Add ssize_t.
79271
79272 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79275         translation table.
79276
79277 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79280
79281 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79282             Bruno Haible  <bruno@clisp.org>
79283
79284         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79285         <sys/types.h> and <inttypes.h>.
79286
79287 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79288
79289         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79290         `__error_t_defined', so argp.h will not typedef the former.
79291
79292 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79295         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79296         glibc names.  Even if glibc is changed to conform to POSIX, the
79297         traditional names will be available anyway, since regex depends on
79298         the extensions module.  Also, fix a longstanding typo in the
79299         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79300         reported by Emanuele Giaquinta.  Also, change sense of cached
79301         variable, so that the message makes sense.
79302
79303 2006-03-24  Simon Josefsson  <jas@extundo.com>
79304
79305         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79306         including some doc fixes.
79307         (base64_encode_alloc): Fix +1 bug on allocation failures.
79308
79309 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79310
79311         * lib/base64.c (base64_encode): Do not read past end of array with
79312         unsanitized input on systems with CHAR_BIT > 8.
79313
79314 2006-03-24  Eric Blake  <ebb9@byu.net>
79315
79316         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79317
79318 2006-03-22  Karl Berry  <karl@gnu.org>
79319
79320         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79321         * config/srclistvars.sh (COREUTILS): new var.
79322
79323 2006-03-17  Jim Meyering  <jim@meyering.net>
79324
79325         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79326         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79327
79328 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79329
79330         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79331         no longer needs it.  Instead, check that regoff_t is as least
79332         as wide as ptrdiff_t.
79333
79334         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79335         so that our regex.h stays compatible with the installed regex.
79336         This is helpful for installers who configure --without-included-regex.
79337         Problem reported by Emanuele Giaquinta.
79338
79339 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79342         Typedef to long int, not to off_, as POSIX will likely change
79343         in that direction.
79344
79345 2006-03-15  Eric Blake  <ebb9@byu.net>
79346
79347         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79348
79349 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79350
79351         * lib/argp-help.c (validate_uparams): Fix typo
79352         * lib/argp-parse.c (argp_default_options): Consistently begin help
79353         messages with a lowercase letter.
79354
79355 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79356
79357         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79358         overrun buffers and shouldn't be used (much as gets shouldn't be
79359         used).
79360         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79361
79362 2006-03-08  Simon Josefsson  <jas@extundo.com>
79363
79364         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79365         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79366
79367 2006-03-08  Simon Josefsson  <jas@extundo.com>
79368
79369         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79370         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79371
79372 2006-03-08  Simon Josefsson  <jas@extundo.com>
79373
79374         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79375         signal that configure disabled the device.
79376
79377 2006-03-08  Simon Josefsson  <jas@extundo.com>
79378
79379         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79380         languages.
79381
79382 2006-03-07  Simon Josefsson  <jas@extundo.com>
79383
79384         * modules/getopt (Depends-on): Add unistd.
79385
79386         * modules/unistd: New file.
79387
79388 2006-03-07  Simon Josefsson  <jas@extundo.com>
79389
79390         * modules/gc-random: New file.
79391
79392 2006-03-07  Simon Josefsson  <jas@extundo.com>
79393
79394         * m4/unistd_h.m4: New file.
79395
79396 2006-03-07  Simon Josefsson  <jas@extundo.com>
79397
79398         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79399         test to be side-effect free by storing the result in the cache
79400         variable gl_cv_lib_readline, and moving the assignment of
79401         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79402         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79403
79404 2006-03-07  Simon Josefsson  <jas@extundo.com>
79405
79406         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79407         error on missing devices (the functions will return an error).
79408
79409         * m4/gc.m4: Move random stuff to gc-random.m4
79410
79411 2006-03-07  Simon Josefsson  <jas@extundo.com>
79412
79413         * lib/unistd_.h: New file.
79414
79415 2006-03-07  Simon Josefsson  <jas@extundo.com>
79416
79417         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79418
79419 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79422         Problem reported by Juan Manuel Guerrero.
79423
79424 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79427         the unistd module.
79428         * lib/getlogin_r.c: Likewise.
79429         * lib/getlogin_r.h: Likewise.
79430         * lib/glob.c: Likewise.
79431         * lib/pagealign_alloc.c: Likewise.
79432         * lib/unistd_.h: Remove; no longer needed.
79433
79434 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79435
79436         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79437         Add unistd.
79438         * modules/c-stack (Depends-on): Add unistd.
79439         * modules/getlogin_r: Likewise.
79440         * modules/glob: Likewise.
79441         * modules/pagealign_alloc: Likewise.
79442         * modules/unistd (Files): Remove lib/unistd_.h.
79443         (EXTRA_DIST): Remove.
79444         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79445         need unistd_.h.
79446         (MOSTLYCLEANFILES): Remove unistd.h-t.
79447
79448 2006-03-03  Simon Josefsson  <jas@extundo.com>
79449
79450         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79451
79452 2006-03-03  Simon Josefsson  <jas@extundo.com>
79453
79454         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79455         libidn and bison.
79456
79457 2006-03-03  Simon Josefsson  <jas@extundo.com>
79458
79459         * build-aux/maint.mk: Add indent target.
79460
79461 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79462
79463         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79464         our replacement poll.h in any case, to avoid a differing
79465         declaration from a system header.  Seen on AIX.
79466
79467 2006-03-01  Simon Josefsson  <jas@extundo.com>
79468
79469         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79470         <kasal@ucw.cz>.
79471
79472 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79473
79474         * modules/gettime (Depends-on): Add extensions module.
79475         * modules/nanosleep (Depends-on): Likewise.
79476         * modules/settime (Depends-on): Likewise.
79477
79478 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79481         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79482         pedantically.
79483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79484         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79485
79486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79487         not "==".  Reported by Ralf Wildenhues.
79488
79489 2006-03-01  Karl Berry  <karl@gnu.org>
79490
79491         * doc/Copyright/request-*: new files, synced from gnuorg.
79492
79493 2006-03-01  Karl Berry  <karl@gnu.org>
79494
79495         * config/srclist.txt (Copyright/*): new entries.
79496
79497 2006-02-28  Simon Josefsson  <jas@extundo.com>
79498
79499         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79500
79501 2006-02-27  Simon Josefsson  <jas@extundo.com>
79502
79503         * lib/base64.h: Indent #define's.  From Jim Meyering
79504         <jim@meyering.net>.
79505
79506 2006-02-27  Jim Meyering  <jim@meyering.net>
79507
79508         Revert the change of 2006-02-24, so these files can continue
79509         to be sync'd from gettext.
79510         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79511         of `config.h'.
79512
79513 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * modules/intprops: New file.
79516         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79517         Add intprops.
79518         * modules/getloadavg (Files): Remove lib/intprops.h.
79519         (Depends-on): Add intprops.
79520         * modules/human: Likewise.
79521         * modules/inttostr: Likewise.
79522         * modules/openat: Likewise.
79523         * modules/sig2str: Likewise.
79524         * modules/userspec: Likewise.
79525         * modules/utimecmp: Likewise.
79526         * modules/xnanosleep: Likewise.
79527         * modules/xstrtol: Likewise.
79528
79529 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79530
79531         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79532         * modules/lock-tests (TESTS): Use $(EXEEXT).
79533         * modules/tls-tests: Likewise.
79534         * modules/argp-tests: Likewise.
79535         (check_PROGRAMS): New var, replacing...
79536         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79537
79538 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79539
79540         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79541         `config.h'.
79542
79543 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79546
79547 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79548
79549         Sync from coreutils.
79550         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79551         gl_CHDIR_SAFER.
79552
79553 2006-02-22  Jim Meyering  <jim@meyering.net>
79554
79555         Sync from coreutils.
79556         * m4/chdir-safer.m4: New file.
79557
79558 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79561         AT_FDCWD exceeds INT_MAX.
79562         * lib/openat.h (AT_FDCWD): Likewise.
79563
79564 2006-02-17  Eric Blake  <address@hidden>
79565
79566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79567
79568 2006-02-16  Simon Josefsson  <jas@extundo.com>
79569
79570         * modules/getaddrinfo (Depends-on): Add sys_socket.
79571
79572 2006-02-15  Simon Josefsson  <jas@extundo.com>
79573
79574         * build-aux/maint.mk: Add dsyntax-check rule.
79575
79576 2006-02-15  Eric Blake  <ebb9@byu.net>
79577
79578         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79579         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79580         'present but cannot compile' warnings on cygwin.
79581         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79582         use ws2tcpip.h if sys/socket.h works.
79583         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79584         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79585
79586 2006-02-14  Simon Josefsson  <jas@extundo.com>
79587
79588         * modules/maintainer-makefile (Files): Rename.
79589
79590         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79591         and (the local) Makefile.cfg to maint-cfg.mk.
79592
79593         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79594         to the latter.
79595
79596         * modules/maintainer-makefile: New module.
79597
79598         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79599         severaly stripped to make it possible to build it up from scratch
79600         with reliable tests.
79601
79602         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79603         fixes to permit overriding the default actions when configure and
79604         makefile are not available.
79605
79606 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         Sync from coreutils.
79609         * modules/lstat (Depends-on): Don't depend on xalloc.
79610         (License): Change from GPL to LGPL, since this is now simply a
79611         replacement for a libc function.
79612
79613 2006-02-14  Jim Meyering  <jim@meyering.net>
79614
79615         Sync from coreutils.
79616
79617         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79618         failure on deficient systems, and simplify gnulib lgpl dependencies.
79619         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79620         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79621
79622         * lib/xalloc-die.c: Remove unused definition of N_.
79623
79624 2006-02-14  Jim Meyering  <jim@meyering.net>
79625
79626         Sync from coreutils.
79627         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79628         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79629         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79630         double-quote uses of that variable, to accommodate the rare case in
79631         which getmntent is available in none of the libraries checked.  This
79632         happens at least on FreeBSD 5.0.
79633
79634 2006-02-13  Simon Josefsson  <jas@extundo.com>
79635
79636         * gnulib-tool (Usage): Fix --import, from
79637         karl@freefriends.org (Karl Berry).
79638
79639 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79640
79641         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79642
79643 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79644
79645         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79646         "autoupdate" on 2005-12-12.
79647
79648 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         * modules/closeout (Depends-on): Remove atexit.
79651
79652 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79653
79654         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79655         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79656
79657 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79658
79659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79660         __EXTENSIONS__ if this causes compilation to fail.  Problem
79661         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79662         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79663
79664 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79665
79666         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79667         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79669         All uses changed.
79670
79671 2006-01-26  Simon Josefsson  <jas@extundo.com>
79672
79673         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79674         prototype is visible on mingw32.
79675
79676         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79677         for mingw32.
79678
79679         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79680         mingw32).
79681
79682 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79685         attempt to open for write; this always fails, at least on POSIX
79686         hosts.  This reinstates the 2006-01-09 change, which was
79687         inadvertently removed.
79688
79689 2006-01-26  Bruno Haible  <bruno@clisp.org>
79690
79691         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79692         Reported by Paul Eggert.
79693
79694 2006-01-26  Bruno Haible  <bruno@clisp.org>
79695             Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * lib/stdbool_.h (_Bool)
79698         [(! (defined __cplusplus || defined __BEOS__)
79699           && !defined __GNUC__
79700           && !(defined __HP_cc || defined __xlc__
79701                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79702                || defined __sgi))]:
79703         #define to signed char in these cases too; this simplifies
79704         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79705         etc., separately) and makes it more conservative.
79706
79707 2006-01-25  Simon Josefsson  <jas@extundo.com>
79708
79709         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79710         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79711         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79712
79713 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79714
79715         * lib/argp-namefrob.h: Bugfix. Remove stray #
79716
79717 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79720         so that we test the test.
79721         Check for yet another HP-UX cc bug involving *bool |= bool.
79722
79723 2006-01-25  Karl Berry  <karl@gnu.org>
79724
79725         * config/srclist.txt (vasnprintf.c): sync lost.
79726
79727 2006-01-25  Jim Meyering  <jim@meyering.net>
79728
79729         Sync from the stable (b5) branch of coreutils:
79730
79731         * lib/fts.c (fts_children): Don't let close() clobber errno from
79732         failed fchdir().
79733
79734         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79735         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79736         a dangling symlink.  That can also happen at least for ELOOP.
79737         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79738         FYI, this bug predates the inclusion of fts.c in coreutils.
79739
79740         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79741         in their own block, so pre-c99 compilers don't object.
79742
79743         Avoid the double-free (first in fts_read, second in fts_close) that
79744         would occur when an `active' directory is made inaccessible (e.g.,
79745         via chmod a-x) during a traversal.
79746         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79747         before returning.  Reproduce this failure by
79748         mkdir -p a/b; cd a; chmod a-x . b
79749         Reported by Stavros Passas.
79750
79751 2006-01-25  Jim Meyering  <jim@meyering.net>
79752
79753         * lib/fileblocks.c: Remove more useless parentheses.
79754         * lib/readutmp.h: Likewise.
79755
79756 2006-01-25  Bruno Haible  <bruno@clisp.org>
79757
79758         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79759         warnings.
79760         Reported by Paul Eggert.
79761
79762 2006-01-25  Bruno Haible  <bruno@clisp.org>
79763
79764         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79765         rid of a trap command. For Solaris sh.
79766         Reported by Mark D. Baushke <mdb@gnu.org>.
79767
79768 2006-01-24  Simon Josefsson  <jas@extundo.com>
79769
79770         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79771         Bruno.
79772
79773 2006-01-24  Karl Berry  <karl@gnu.org>
79774
79775         * config/srclist.txt (argp-namefrob.h): sync lost.
79776
79777 2006-01-24  Jim Meyering  <jim@meyering.net>
79778
79779         * modules/openat (Files): Add lib/intprops.h.
79780         From Mark D. Baushke.
79781
79782 2006-01-24  Jim Meyering  <jim@meyering.net>
79783
79784         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79785         Reported by Mark D. Baushke.
79786
79787 2006-01-24  Jim Meyering  <jim@meyering.net>
79788
79789         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79790
79791 2006-01-24  Bruno Haible  <bruno@clisp.org>
79792
79793         * modules/strnlen (Maintainer): Change from glibc to all.
79794
79795 2006-01-24  Bruno Haible  <bruno@clisp.org>
79796
79797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79798         Patch by Paul Eggert.
79799
79800 2006-01-24  Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79803         already has it.
79804         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79805         2005-11-26.
79806
79807         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79808         'signed char' to avoid problems with the built-in _Bool type.
79809         Reported by Paul Eggert on 2005-11-26.
79810
79811 2006-01-24  Bruno Haible  <bruno@clisp.org>
79812
79813         * gnulib-tool (func_import): Avoid constructing complicated sed
79814         expressions inside backquote.
79815         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79816
79817 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79818
79819         These changes imported from libc.
79820         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79821         test and two separate function calls.
79822         * lib/strndup.c (__strndup): Add libc_hidden_def.
79823
79824 2006-01-23  Simon Josefsson  <jas@extundo.com>
79825
79826         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79827         Remove the test_*_SOURCES variable: automake infers it by default.
79828         * modules/tls-tests: Likewise.
79829
79830 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         Work around porting bugs reported by Dieter in
79833         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79834         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79835         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79836         Include "getopt.h" first, to check interface.
79837         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79838         !HAVE_DECL_GETENV.
79839         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79840         (__strndup): Revert to K&R-style function dfns, the glibc style.
79841         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79842         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79843         Include strnlen.h first, to get prototype properly.
79844         (strnlen): Renamed from __strnlen.
79845         Remove weak alias.
79846
79847 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79850
79851 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * config/srclist.txt: Adjust to reflect glibc reorganization.
79854         This affects only comments.
79855
79856 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79857
79858          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79859          Reported by Bruce Korb <bkorb@gnu.org>.
79860
79861 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79862
79863         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79864         to pacify gcc -Wswitch-default.
79865
79866 2006-01-22  Bruno Haible  <bruno@clisp.org>
79867
79868         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79869         temporary buffer for sprintf, take into account the precision also
79870         for 'd', 'i', 'u', 'o', 'x', 'X'.
79871
79872 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79873
79874         * modules/argp-tests: New module
79875         * tests/test-argp.c: New file
79876         * tests/test-argp-2.sh: New file
79877
79878 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79879
79880         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79881         (__argp_base_name): Removed
79882         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79883         typo.
79884         (__argp_base_name): Provide macro definition or extern declaration
79885         depending on the configuration
79886
79887 2006-01-20  Simon Josefsson  <jas@extundo.com>
79888
79889         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79890
79891 2006-01-20  Simon Josefsson  <jas@extundo.com>
79892
79893         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79894
79895 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79898         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79899         Suggested by Bruno Haible.
79900
79901 2006-01-20  Karl Berry  <karl@gnu.org>
79902
79903         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79904         until changes propagate, I guess.
79905
79906 2006-01-19  Simon Josefsson  <jas@extundo.com>
79907
79908         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79909
79910 2006-01-19  Simon Josefsson  <jas@extundo.com>
79911
79912         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79913
79914 2006-01-19  Simon Josefsson  <jas@extundo.com>
79915
79916         * gnulib-tool: Set check_PROGRAMS.
79917
79918         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79919         modules/des-tests, modules/gc-arcfour-tests,
79920         modules/gc-arctwo-tests, modules/gc-des-tests,
79921         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79922         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79923         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79924         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79925         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79926         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79927         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79928         test_*_SOURCES.
79929
79930 2006-01-18  Simon Josefsson  <jas@extundo.com>
79931
79932         * modules/socklen (Depends-on): Depend on sys_socket.
79933
79934 2006-01-18  Simon Josefsson  <jas@extundo.com>
79935
79936         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79937         modules/des-tests, modules/gc-arcfour-tests,
79938         modules/gc-arctwo-tests, modules/gc-des-tests,
79939         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79940         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79941         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79942         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79943         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79944         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79945         $(EXEEXT) to automake TESTS variable, for mingw32.
79946
79947 2006-01-17  Simon Josefsson  <jas@extundo.com>
79948
79949         * modules/socklen (Include): Need sys/socket.h.
79950
79951 2006-01-17  Bruno Haible  <bruno@clisp.org>
79952
79953         * modules/ssize_t (Include): Add <sys/types.h>.
79954
79955 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79958         it's not portable and it doesn't work with cross-compiles.
79959         Problem reported by Bruno Haible.  Fix missing-$ typo in
79960         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79961         -zignore from being used with Sun's C compiler.
79962
79963 2006-01-12  Simon Josefsson  <jas@extundo.com>
79964
79965         * lib/base64.c: Fix warning, reported by Bruno Haible
79966         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79967
79968 2006-01-12  Bruno Haible  <bruno@clisp.org>
79969
79970         * modules/ldd: New file.
79971         * build-aux/ldd.sh.in: New file.
79972         * MODULES.html.sh (Support for building libraries and executables): Add
79973         ldd.
79974
79975 2006-01-12  Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/ldd.m4: New file.
79978
79979 2006-01-12  Bruno Haible  <bruno@clisp.org>
79980
79981         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79982         endless loop while replacing $auxdir with build-aux.
79983
79984 2006-01-11  Simon Josefsson  <jas@extundo.com>
79985
79986         * lib/stdint_.h (SIZE_MAX): Add missing (.
79987
79988 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         Sync from coreutils.
79991         * lib/md5.c: Fix commentary typos.
79992         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79993         * lib/md5.h (__attribute__): Remove; unused.
79994         * lib/sha1.c: Fix commentary to match md5 better.
79995         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79996         so that we don't need to worry about alignment.  All uses changed.
79997         This merges the 2005-10-28 md5 change into sha1.
79998
79999 2006-01-11  Jim Meyering  <jim@meyering.net>
80000
80001         Sync from coreutils.
80002         * lib/md5.c (OP): Fix spacing.
80003
80004 2006-01-11  Bruno Haible  <bruno@clisp.org>
80005
80006         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80007         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80008         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80009
80010 2006-01-11  Bruno Haible  <bruno@clisp.org>
80011
80012         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80013         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80014         the "early" section as well.
80015
80016 2006-01-11  Bruno Haible  <bruno@clisp.org>
80017
80018         Avoid "ar: no archive members specified" error on MacOS X.
80019         * gnulib-tool (func_modules_add_dummy): New function.
80020         (func_import, func_create_testdir): Invoke it.
80021
80022 2006-01-11  Bruno Haible  <bruno@clisp.org>
80023
80024         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80025         with $auxdir in AC_CONFIG_FILES statements.
80026
80027 2006-01-11  Bruno Haible  <bruno@clisp.org>
80028
80029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80030         Initialize also noinst_HEADERS to empty.
80031
80032 2006-01-11  Bruno Haible  <bruno@clisp.org>
80033
80034         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80035         variables.
80036         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80037         autoreconf.
80038
80039 2006-01-11  Bruno Haible  <bruno@clisp.org>
80040
80041         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80042         overridable by the user.
80043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80044
80045 2006-01-10  Simon Josefsson  <jas@extundo.com>
80046
80047         * modules/sys_socket: New file.
80048
80049 2006-01-10  Simon Josefsson  <jas@extundo.com>
80050
80051         * m4/sys_socket_h.m4: New file.
80052
80053 2006-01-10  Simon Josefsson  <jas@extundo.com>
80054
80055         * lib/socket_.h: New file.
80056
80057 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * modules/readutmp (Maintainer): Add myself.
80060
80061 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80064         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80065         People who are still concerned with buggy memcmp implementations
80066         can invoke gl_FUNC_MEMCMP themselves.
80067
80068 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * lib/regex_internal.h (BITSET_WORD_BITS):
80071         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80072         preprocessor mishandles large unsigned values as if they were signed.
80073         Problem reported by Claudio Fontana in
80074         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80075
80076 2006-01-10  Jim Meyering  <jim@meyering.net>
80077
80078         Avoid the double-free (first in fts_read, second in fts_close) that
80079         would occur when an `active' directory is made inaccessible (e.g.,
80080         via chmod a-x) during a traversal.
80081         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80082         before returning.  Reproduce this failure by
80083         mkdir -p a/b; cd a; chmod a-x . b
80084         Reported by Stavros Passas.
80085
80086         Sync from coreutils.
80087         * lib/sha1.c: Tweak grammar in a comment.
80088
80089 2006-01-10  Jim Meyering  <jim@meyering.net>
80090
80091         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80092         Patch by Joerg Sonnenberger.
80093
80094 2006-01-10  Bruno Haible  <bruno@clisp.org>
80095
80096         * modules/readutmp: Depend on module free.
80097         * modules/strtok_r: Depend on module restrict.
80098
80099 2006-01-10  Bruno Haible  <bruno@clisp.org>
80100
80101         * modules/gettext (configure.ac): Add an invocation of
80102         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80103
80104 2006-01-10  Bruno Haible  <bruno@clisp.org>
80105
80106         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80107         Reported by Werner Lemberg <wl@gnu.org>.
80108
80109 2006-01-10  Bruno Haible  <bruno@clisp.org>
80110
80111         * lib/localcharset.c: Update from GNU gettext.
80112
80113 2006-01-10  Bruno Haible  <bruno@clisp.org>
80114
80115         * lib/argp.h (__const): Remove macro. Use const instead.
80116         * lib/argp-fmtstream.h (__const): Likewise.
80117         * lib/glob_.h (__const): Remove macro.
80118         * lib/glob-libc.h: Use const instead of __const.
80119
80120 2006-01-10  Bruno Haible  <bruno@clisp.org>
80121
80122         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80123         variable.
80124         Needed to avoid an automake error regarding the 'gettext' module.
80125
80126 2006-01-09  Simon Josefsson  <jas@extundo.com>
80127
80128         * modules/inet_ntop (Depends-on): Add restrict.
80129
80130 2006-01-09  Simon Josefsson  <jas@extundo.com>
80131
80132         * modules/gc-rijndael-tests (License): Put under LGPL.
80133
80134         * modules/gc-des-tests (License): Likewise.
80135
80136         * modules/gc-arcfour-tests (License): Likewise.
80137
80138         * modules/gc-arctwo-tests (License): Likewise.
80139
80140         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80141
80142         * modules/gc-hmac-sha1-tests (Files): Likewise.
80143
80144         * modules/gc-hmac-md5-tests (License): Likewise.
80145
80146         * modules/gc-sha1-tests (License): Likewise.
80147
80148         * modules/gc-md5-tests (License): Likewise.
80149
80150         * modules/gc-md4-tests (License): Likewise.
80151
80152         * modules/gc-md2-tests (License): Likewise.
80153
80154         * modules/gc-tests (License): Likewise.
80155
80156         * modules/des-tests (License): Likewise.
80157
80158         * modules/md4-tests (License): Likewise.
80159
80160         * modules/md2-tests (License): Likewise.
80161
80162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         Sync from coreutils:
80165
80166         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80167         * modules/lib-ignore: New file.
80168         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80169         chdir-safer.m4, lchmod.m4.
80170         * modules/openat: Add mkdirat.c, openat-priv.h.
80171
80172 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         Sync from coreutils.
80175         * m4/lib-ignore.m4: New file.
80176         * m4/lchmod.m4: New file.
80177
80178 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         Sync from coreutils.
80181         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80182         for write access: POSIX says that must fail.
80183         * lib/fts.c (diropen): Likewise.
80184         * lib/save-cwd.c (save_cwd): Likewise.
80185         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80186         well, for minor improvements on hosts that lack O_DIRECTORY.
80187         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80188         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80189         Fall back on chown if open failed with EACCES.
80190
80191         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80192         Report an error at compile-time if only a 1-second nominal clock
80193         resolution is found.
80194
80195         * lib/lchmod.h: New file.
80196         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80197         (make_dir_parents): Use lchown rather than chown, and
80198         lchmod rather than chmod.
80199
80200         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80201         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80202         "proc" reported by n0dalus.
80203
80204         * lib/mountlist.c: Include <limits.h>.
80205         (dev_from_mount_options)
80206         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80207         New function.  It no longer assumes "dev=" has the System V meaning
80208         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80209         (read_file_system_list)
80210         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80211         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80212         dev= in that case.
80213
80214         * lib/posixtm.h (PDS_PRE_2000): New macro.
80215         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80216         allow_century.  All usages changed.  Reject dates outside the range
80217         1969-1999 if PDS_PRE_2000 is used.
80218
80219 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         Sync from coreutils.
80222         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80223         (Time of day items): Mention the possibility of leap seconds.
80224         Problem reported by Dr. David Alan Gilbert.
80225
80226 2006-01-09  Jim Meyering  <jim@meyering.net>
80227
80228         Sync from coreutils.
80229
80230         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80231
80232         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80233
80234         * lib/modechange.c (mode_compile): Reject an invalid mode string
80235         that starts with an octal digit.  From Andreas Gruenbacher.
80236
80237         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80238         and dup to open_safer and dup_safer, respectively.
80239         (openat_permissive): Fix typo in comment.
80240
80241         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80242         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80243         (_): Remove; no longer needed.
80244         (openat): Renamed from rpl_openat; no need for rpl_openat
80245         since openat.h renames openat for us.
80246         Replace most of the body with a call to openat_permissive,
80247         to avoid duplicate code.
80248         Port to (probably hypothetical) environments were mode_t is
80249         wider than int.
80250         (openat_permissive): Require mode arg, so that we can check
80251         types better.  Put it just after flags.  Change cwd failure
80252         indicator from pointer-to-bool to pointer-to-errno-value.
80253         All callers changed.
80254         Invoke openat_save_fail and/or openat_restore_fail if
80255         cwd_errno is null, so that openat can call us.
80256         (openat_permissive, fdopendir, fstatat, unlinkat):
80257         Simplify errno handling to avoid some duplicate code,
80258         as it's OK to set errno on success.
80259         * lib/openat.h: Revamp code so that function macros depend on
80260         __OPENAT_PREFIX only, not also on AT_FDCWD.
80261         (openat_ro): Remove.  Caller changed to use openat_permissive.
80262         (openat_permissive): Now a macro, if not a function.
80263         (openat_restore_fail, openat_save_fail): Now always functions,
80264         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80265
80266         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80267         and openat.c.
80268         * lib/mkdirat.c: Include openat-priv.h.
80269         Remove definitions of macros defined therein.
80270         * lib/openat.c: Likewise.
80271
80272         * lib/mkdirat.c (mkdirat): New file and function.
80273         * lib/openat.h (mkdirat): Declare.
80274
80275         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80276
80277         * lib/openat.h (openat_permissive): Declare.
80278         (openat_ro): Define.
80279
80280         * lib/openat.c (EXPECTED_ERRNO): New macro.
80281         (openat_permissive): New function -- used in remove.c rewrite.
80282         (all functions): Set errno just before returning, only if there
80283         was an actual failure.
80284         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80285
80286         Emulate openat-family functions using Linux's procfs, if possible.
80287         Idea and some code based on Ulrich Drepper's glibc changes.
80288
80289         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80290         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80291         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80292         before falling back on save_cwd and restore_cwd.
80293         (fdopendir, fstatat, unlinkat): Likewise.
80294
80295         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80296         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80297
80298         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80299         as second argument to va_arg.  Otherwise, some versions of gcc
80300         warn that `if this code is reached, the program will abort'.
80301
80302 2006-01-09  Jim Meyering  <jim@meyering.net>
80303
80304         Sync from coreutils.
80305         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80306         Require openat-priv.h.
80307
80308 2006-01-09  Bruno Haible  <bruno@clisp.org>
80309
80310         * modules/strnlen (Include): Use strnlen.h.
80311
80312 2006-01-09  Bruno Haible  <bruno@clisp.org>
80313
80314         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80315
80316 2006-01-09  Bruno Haible  <bruno@clisp.org>
80317
80318         * lib/sysexit_.h (EX_OK): New macro.
80319         Suggested by Martin Lambers <marlam@marlam.de>.
80320
80321 2006-01-09  Bruno Haible  <bruno@clisp.org>
80322
80323         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80324         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80325
80326 2006-01-09  Bruno Haible  <bruno@clisp.org>
80327
80328         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80329         numbers.
80330
80331 2006-01-09  Bruno Haible  <bruno@clisp.org>
80332
80333         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80334         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80335         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80336         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80337
80338 2006-01-09  Bruno Haible  <bruno@clisp.org>
80339
80340         * build-aux/javacomp.sh.in: New file, moved from lib/.
80341         * modules/javacomp-script (Files): Update.
80342         (configure.ac): Add AC_CONFIG_FILES invocation.
80343         (EXTRA_DIST): Remove variable.
80344
80345         * build-aux/javaexec.sh.in: New file, moved from lib/.
80346         * modules/javaexec (Files): Update.
80347         (configure.ac): Add AC_CONFIG_FILES invocation.
80348         (EXTRA_DIST): Remove javaexec.sh.in.
80349
80350         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80351         * modules/csharpcomp-script (Files): Update.
80352         (configure.ac): Add AC_CONFIG_FILES invocation.
80353         (EXTRA_DIST): Remove variable.
80354
80355         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80356         * modules/csharpexec (Files): Update.
80357         (configure.ac): Add AC_CONFIG_FILES invocation.
80358         (EXTRA_DIST): Remove csharpexec.sh.in.
80359
80360 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80361
80362         Sync from coreutils.
80363
80364         Add POSIX ACL support
80365         * lib/acl.h (copy_acl, set_acl): Add declarations.
80366         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80367         systems other than Linux.
80368         (chmod_or_fchmod): New function: use fchmod when possible,
80369         and chmod otherwise.
80370         (file_has_acl): Add a POSIX ACL implementation, with a
80371         Linux-specific subcase.
80372         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80373         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80374         acls are unsupported.
80375         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80376         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80377         are unsupported.
80378
80379 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80380
80381         Sync from coreutils.
80382         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80383
80384 2006-01-07  Bruno Haible  <bruno@clisp.org>
80385
80386         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80387         gl_EARLY.
80388
80389 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80390
80391         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80392         Problem reported for Mingw by Mark Junker.
80393
80394 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * README: Gnulib normally doesn't generate a tarball.
80397
80398 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80399
80400         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80401         long int, not int, for nanosecond counts, so that people who are
80402         used to POSIX struct timespec won't be surprised.  Reported by Jim
80403         Meyering.
80404
80405 2005-12-28  Bruno Haible  <bruno@clisp.org>
80406
80407         * build-aux/config.rpath: Update from GNU gettext.
80408
80409 2005-12-16  Jim Meyering  <jim@meyering.net>
80410
80411         * modules/fprintftime: New module.
80412         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80413
80414 2005-12-16  Jim Meyering  <jim@meyering.net>
80415
80416         * m4/fprintftime.m4: New file.
80417
80418 2005-12-16  Jim Meyering  <jim@meyering.net>
80419
80420         * lib/fprintftime.c, lib/fprintftime.h: New files.
80421
80422 2005-12-15  Simon Josefsson  <jas@extundo.com>
80423
80424         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80425         new m4/socklen.m4.
80426
80427 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80428
80429         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80430         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80431
80432 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80433
80434         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80435         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80436         struct uparams is valid. Fall back to the default values if it is
80437         not.
80438
80439 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80440
80441         * modules/argp (Files): Add argp-pin.c
80442         (Depends-on): dirname
80443         (lib_SOURCES): Add argp-pin.c
80444
80445 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80446
80447         * m4/argp.m4:  Check if program_invocation_name and
80448         program_invocation_short_name are declared and define appropriate
80449         macros if they are not.
80450
80451 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80452
80453         * lib/argp-help.c (__argp_base_name): New function
80454         (__argp_short_program_name): Rewrite using __argp_base_name
80455         * lib/argp-namefrob.h: Define program_invocation_name and
80456         program_invocation_short_name if requested
80457         (__argp_base_name): Add prototype
80458         * lib/argp-parse.c (argp_def): Use gettext wrappers
80459         (argp_default_parser): Use __argp_base_name
80460         * lib/argp-pin.c: New file. Defines program_invocation_name and
80461         program_invocation_short_name on systems that lack them.
80462
80463 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80466         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80467         porting problem reported by Georg Schwarz in
80468         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80469
80470 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80473         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80474         porting problem reported by Georg Schwarz in
80475         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80476
80477 2005-12-05  Bruno Haible  <bruno@clisp.org>
80478
80479         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80480         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80481         Reported by Mark Junker <mjscod@gmx.de>.
80482
80483 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80484
80485         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80486         Use implementation from Albert Chin, with some
80487         comments/corrections by Stepan Kasal and myself.
80488
80489 2005-12-02  Bruno Haible  <bruno@clisp.org>
80490
80491         * gnulib-tool (func_import): Accept GPLed build tool modules when
80492         --lgpl is given.
80493         * modules/csharpcomp-script: New file.
80494         * modules/csharpcomp: Depend on it.
80495         * modules/javacomp-script: New file.
80496         * modules/javacomp: Depend on it.
80497         Suggested by Simon Josefsson.
80498
80499 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80502         statement, to work around an HP-UX 10.20 compiler bug reported by
80503         Peter O'Gorman.
80504
80505 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80506
80507         * modules/savedir (Depends-on): Add openat.
80508
80509 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80512         (uintmax_t) [defined uintmax_t]: Do not declare.
80513         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80514         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80515         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80516         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80517         sake of portability to weird hosts that C allows (though we don't
80518         know of any practical examples).
80519
80520         * lib/savedir.h (fdsavedir): New decl.
80521         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80522         contains most of the former guts of savedir.
80523         (savedir): Use savedirstream.
80524         Include "openat.h".
80525
80526 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80527
80528         * modules/obstack (Files): Add m4/ulonglong.m4.
80529         Problem reported by Davide Angelocola.
80530
80531 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80534         coreutils no longer futzes with rounding modes.
80535
80536 2005-11-14  Jim Meyering  <jim@meyering.net>
80537
80538         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80539         replacement of mkstemp.
80540
80541 2005-11-10  Simon Josefsson  <jas@extundo.com>
80542
80543         * lib/readline.c: Remove EOL.
80544
80545 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * modules/gethrxtime (Depends-on): Add gettime.
80548
80549 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80552         or gettimeofday; no longer needed.
80553
80554 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80557         time business.
80558         (gethrxtime) [! (HAVE_NANOUPTIME
80559         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80560         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80561         our own approximation.
80562
80563 2005-11-08  Eric Blake  <ebb9@byu.net>
80564
80565         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80566
80567 2005-11-08  Eric Blake  <ebb9@byu.net>
80568
80569         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80570
80571 2005-11-04  Bruno Haible  <bruno@clisp.org>
80572
80573         * gnulib-tool: Implement --update mode.
80574
80575 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         Fix porting problem reported by Theodoros V. Kalamatianos.
80578         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80579         Don't assume that futimes failing means we must fail.
80580
80581 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80584         variables to suggest the intended function of the PATH_MAX check.
80585
80586 2005-10-30  Kean Johnston  <jkj@sco.com>
80587
80588         Trivial changes to support SCO systems.
80589         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80590         as PATH_MAX.
80591         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80592         where __ptr is null when no I/O is pending.
80593
80594 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80597         leave errno alone.  Problem reported by Dmitry V. Levin.
80598
80599 2005-10-28  Simon Josefsson  <jas@extundo.com>
80600
80601         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80602         Test more.
80603
80604         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80605
80606         * modules/md2, modules/md2-tests: New files.
80607
80608 2005-10-28  Simon Josefsson  <jas@extundo.com>
80609
80610         * m4/inet_ntop.m4: More tests.
80611
80612         * m4/gc-md2.m4, md2.m4: New file.
80613
80614 2005-10-28  Simon Josefsson  <jas@extundo.com>
80615
80616         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80617         "restrict" keywords, as per POSIX.  Protect the function
80618         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80619         Don't use K&R prototypes.  Check the sprintf return values.
80620         Re-define EAFNOSUPPORT if not present.  Indent.
80621
80622         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80623         suggested by Bruno Haible <bruno@clisp.org>.
80624
80625         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80626
80627         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80628
80629         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80630         libgcrypt).
80631
80632         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80633
80634         * lib/md2.h, lib/md2.c: New files.
80635
80636 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80637
80638         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80639         errno alone.  Problem reported by Frederic Jolliton.
80640
80641 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80642
80643         * modules/verify (License): Change from GPL to LGPL.  This is a
80644         tiny module and there are apparently near-equivalents that are
80645         under the BSD license.
80646
80647 2005-10-24  Simon Josefsson  <jas@extundo.com>
80648
80649         * modules/sha1: Relicense to LGPL.
80650
80651 2005-10-24  Simon Josefsson  <jas@extundo.com>
80652
80653         * lib/md4.h: Shrink buffer size, now that we changed the type.
80654
80655 2005-10-23  Simon Josefsson  <jas@extundo.com>
80656
80657         * gnulib-tool (func_import): Fix --tests-base.
80658
80659 2005-10-22  Simon Josefsson  <jas@extundo.com>
80660
80661         * modules/arcfour (Depends-on): Need stdint.
80662
80663 2005-10-22  Simon Josefsson  <jas@extundo.com>
80664
80665         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80666         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80667
80668 2005-10-22  Simon Josefsson  <jas@extundo.com>
80669
80670         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80671         suggested by Bruno Haible <bruno@clisp.org>.
80672
80673 2005-10-22  Simon Josefsson  <jas@extundo.com>
80674
80675         * lib/crc.h: Include stddef.h, for size_t.
80676
80677 2005-10-22  Simon Josefsson  <jas@extundo.com>
80678
80679         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80680         arcfour_context struct (simplify test vector testing in GNU
80681         Shishi).
80682
80683 2005-10-21  Simon Josefsson  <jas@extundo.com>
80684
80685         * modules/des, modules/des-tests: New files.
80686
80687         * modules/gc-des, modules/gc-des-tests: New files.
80688
80689         * tests/test-des.c, tests/test-gc-des.c: New file.
80690
80691 2005-10-21  Simon Josefsson  <jas@extundo.com>
80692
80693         * modules/arctwo, modules/arctwo-tests: New files.
80694
80695         * tests/test-arctwo.c: New file.
80696
80697         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80698
80699         * tests/test-gc-arctwo.c: New file.
80700
80701 2005-10-21  Simon Josefsson  <jas@extundo.com>
80702
80703         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80704         Bruno Haible <bruno@clisp.org>.
80705
80706         * m4/gc-des.m4: New file.
80707
80708 2005-10-21  Simon Josefsson  <jas@extundo.com>
80709
80710         * m4/arctwo.m4: New file.
80711
80712         * m4/gc-arctwo.m4: New file.
80713
80714 2005-10-21  Simon Josefsson  <jas@extundo.com>
80715
80716         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80717         block.
80718
80719 2005-10-21  Simon Josefsson  <jas@extundo.com>
80720
80721         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80722         <bruno@clisp.org>.
80723
80724         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80725
80726         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80727         Bruno Haible <bruno@clisp.org>.
80728
80729         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80730         <bruno@clisp.org>.
80731
80732 2005-10-21  Simon Josefsson  <jas@extundo.com>
80733
80734         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80735
80736 2005-10-21  Simon Josefsson  <jas@extundo.com>
80737
80738         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80739
80740 2005-10-21  Simon Josefsson  <jas@extundo.com>
80741
80742         * lib/des.h, lib/des.c: New files.
80743
80744         * lib/gc-gnulib.c: Support DES.c
80745
80746 2005-10-21  Simon Josefsson  <jas@extundo.com>
80747
80748         * lib/arctwo.h, lib/arctwo.c: New files.
80749
80750         * lib/gc-gnulib.c: Support ARCTWO.
80751
80752 2005-10-21  Simon Josefsson  <jas@extundo.com>
80753
80754         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80755         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80756
80757 2005-10-21  Simon Josefsson  <jas@extundo.com>
80758
80759         * gnulib-tool (func_import, func_create_testdir): Define automake
80760         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80761         Makefile.am snippet),
80762         suggested by Bruno Haible <bruno@clisp.org>.
80763
80764         * modules/gc (Makefile.am): Use it.
80765
80766 2005-10-21  Bruno Haible  <bruno@clisp.org>
80767
80768         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80769         patch.
80770
80771 2005-10-19  Simon Josefsson  <jas@extundo.com>
80772
80773         * tests/test-gc-rijndael.c: New file.
80774
80775         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80776
80777 2005-10-19  Simon Josefsson  <jas@extundo.com>
80778
80779         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80780         interface too.
80781
80782 2005-10-19  Simon Josefsson  <jas@extundo.com>
80783
80784         * tests/test-gc-arcfour.c: New file.
80785
80786         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80787
80788 2005-10-19  Simon Josefsson  <jas@extundo.com>
80789
80790         * modules/gc-md4, modules/gc-md4-tests: New file.
80791
80792         * tests/test-gc-md4.c: New file.
80793
80794 2005-10-19  Simon Josefsson  <jas@extundo.com>
80795
80796         * m4/gc-md4.m4: New file.
80797
80798 2005-10-19  Simon Josefsson  <jas@extundo.com>
80799
80800         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80801         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80802         <kasal@ucw.cz>.
80803
80804 2005-10-19  Simon Josefsson  <jas@extundo.com>
80805
80806         * m4/gc-arcfour.m4: New file.
80807
80808         * m4/gc-rijndael.m4: New file.
80809
80810 2005-10-19  Simon Josefsson  <jas@extundo.com>
80811
80812         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80813
80814 2005-10-19  Simon Josefsson  <jas@extundo.com>
80815
80816         * lib/gc-gnulib.c: Support ARCFOUR.
80817
80818 2005-10-19  Simon Josefsson  <jas@extundo.com>
80819
80820         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80821         support.
80822
80823         * lib/gc.h: Add ECB enum type.
80824
80825         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80826
80827 2005-10-18  Simon Josefsson  <jas@extundo.com>
80828
80829         * tests/test-md5.c: New file.
80830
80831         * modules/md5-tests: New file.
80832
80833 2005-10-18  Simon Josefsson  <jas@extundo.com>
80834
80835         * tests/test-md4.c: New file.
80836
80837         * modules/md4, modules/md4-tests: New files.
80838
80839 2005-10-18  Simon Josefsson  <jas@extundo.com>
80840
80841         * m4/md4.m4: New file.
80842
80843 2005-10-18  Simon Josefsson  <jas@extundo.com>
80844
80845         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80846
80847 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80848
80849         * gnulib-tool (func_create_testdir): Omit the second check whether
80850         BUILT_SOURCES in nonempty.
80851
80852 2005-10-17  Simon Josefsson  <jas@extundo.com>
80853
80854         * tests/test-rijndael.c: New file.
80855
80856 2005-10-17  Simon Josefsson  <jas@extundo.com>
80857
80858         * modules/sha1: Depend on stdint instead of md5.
80859
80860         * modules/md5: Depend on stdint, remove uint32_t.
80861
80862 2005-10-17  Simon Josefsson  <jas@extundo.com>
80863
80864         * modules/gc-sha1-tests: New file.
80865
80866         * tests/test-gc-sha1.c: New file.
80867
80868 2005-10-17  Simon Josefsson  <jas@extundo.com>
80869
80870         * m4/md5.m4: Remove call to uint32_t.m4.
80871
80872 2005-10-17  Simon Josefsson  <jas@extundo.com>
80873
80874         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80875
80876         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80877         md5.h.
80878
80879         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80880
80881         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80882
80883 2005-10-17  Simon Josefsson  <jas@extundo.com>
80884
80885         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80886
80887 2005-10-17  Simon Josefsson  <jas@extundo.com>
80888
80889         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80890
80891 2005-10-17  Simon Josefsson  <jas@extundo.com>
80892
80893         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80894
80895         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80896
80897 2005-10-17  Bruno Haible  <bruno@clisp.org>
80898
80899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80900         that it can also be used in a test.
80901
80902 2005-10-16  Bruno Haible  <bruno@clisp.org>
80903
80904         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80905         TESTS_ENVIRONMENT, so that individual tests can augment it.
80906
80907         * gnulib-tool (func_create_testdir): Use an intermediate target for
80908         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80909         macros, like $(ALLOCA_H), which cannot be passed through the command
80910         line.
80911
80912 2005-10-15  Simon Josefsson  <jas@extundo.com>
80913
80914         * modules/rijndael-tests: New file.
80915
80916         * modules/rijndael: New file.
80917
80918 2005-10-15  Simon Josefsson  <jas@extundo.com>
80919
80920         * m4/rijndael.m4: New file.
80921
80922 2005-10-15  Simon Josefsson  <jas@extundo.com>
80923
80924         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80925
80926         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80927
80928 2005-10-14  Simon Josefsson  <jas@extundo.com>
80929
80930         * tests/test-arcfour.c: New file.
80931
80932         * modules/arcfour, modules/arcfour-tests: New files.
80933
80934 2005-10-14  Simon Josefsson  <jas@extundo.com>
80935
80936         * m4/arcfour.m4: New file.
80937
80938 2005-10-14  Simon Josefsson  <jas@extundo.com>
80939
80940         * lib/arcfour.h, lib/arcfour.c: New files.
80941
80942 2005-10-14  Roland McGrath  <roland@redhat.com>
80943
80944         Import from libc.  [BZ #1331]
80945         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80946         macro argument.
80947         Reported by Matej Vela <vela@debian.org>.
80948
80949 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80950
80951         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80952         include <wchar.h>; no longer needed.
80953
80954 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80957
80958 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80959         and  Ulrich Drepper  <drepper@redhat.com>
80960
80961         Import from libc.
80962         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80963         instead of inline stream orientation test and two separate
80964         function calls.  Pay no attention to USE_IN_LIBIO.
80965
80966 2005-10-13  Simon Josefsson  <jas@extundo.com>
80967
80968         * modules/gc-hmac-md5-tests: New file.
80969
80970         * tests/test-gc-hmac-sha1.c: New file.
80971
80972         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80973
80974         * modules/gc-hmac-md5-tests: New file.
80975
80976         * tests/test-gc-md5.c: New file.
80977
80978         * modules/gc-md5-tests: New file.
80979
80980 2005-10-13  Simon Josefsson  <jas@extundo.com>
80981
80982         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80983         Move memory allocation outside of loop.
80984
80985 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80986
80987         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80988         intermediate directory is in a read-only file system.  Problem
80989         reported by Eric Blake.
80990
80991 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80992
80993         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80994
80995 2005-10-12  Simon Josefsson  <jas@extundo.com>
80996
80997         * tests/test-hmac-sha1.c: New file.
80998
80999         * modules/hmac-sha1-tests: New file.
81000
81001         * modules/hmac-sha1: New file.
81002
81003 2005-10-12  Simon Josefsson  <jas@extundo.com>
81004
81005         * modules/gc-sha1: New file.
81006
81007 2005-10-12  Simon Josefsson  <jas@extundo.com>
81008
81009         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81010
81011         * tests/test-gc-pbkdf2-sha1.c: New file.
81012
81013 2005-10-12  Simon Josefsson  <jas@extundo.com>
81014
81015         * modules/gc-md5, modules/gc-hmac-md5: New files.
81016
81017         * modules/gc (Files): Remove md5, memxor and hmac files.
81018
81019 2005-10-12  Simon Josefsson  <jas@extundo.com>
81020
81021         * m4/gc-pbkdf2-sha1.m4: New file.
81022
81023         * m4/gc-hmac-sha1.m4: New file.
81024
81025         * m4/gc-sha1: New file.
81026
81027         * m4/hmac-sha1.m4: New file.
81028
81029 2005-10-12  Simon Josefsson  <jas@extundo.com>
81030
81031         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81032
81033         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81034
81035 2005-10-12  Simon Josefsson  <jas@extundo.com>
81036
81037         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81038         suggested by Bruno Haible <bruno@clisp.org>.
81039
81040 2005-10-12  Simon Josefsson  <jas@extundo.com>
81041
81042         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81043
81044 2005-10-12  Simon Josefsson  <jas@extundo.com>
81045
81046         * lib/gc-pbkdf2-sha1.c: New file.
81047
81048         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81049
81050 2005-10-12  Simon Josefsson  <jas@extundo.com>
81051
81052         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81053
81054         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81055
81056 2005-10-12  Simon Josefsson  <jas@extundo.com>
81057
81058         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81059         GC_USE_HMAC_MD5, respectively.
81060
81061         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81062         (gc_md5): Fix typo.
81063
81064         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81065
81066         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81067
81068         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81069
81070 2005-10-12  Bruno Haible  <bruno@clisp.org>
81071
81072         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81073         Reported by Stepan Kasal <kasal@ucw.cz>.
81074
81075 2005-10-11  Simon Josefsson  <jas@extundo.com>
81076
81077         * tests/test-crc.c: New file.
81078
81079         * modules/crc, modules/crc-tests: New files.
81080
81081 2005-10-11  Simon Josefsson  <jas@extundo.com>
81082
81083         * m4/crc.m4: New file.
81084
81085 2005-10-11  Simon Josefsson  <jas@extundo.com>
81086
81087         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81088
81089         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81090
81091         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81092
81093 2005-10-11  Simon Josefsson  <jas@extundo.com>
81094
81095         * lib/crc.h, lib/crc.c: New files.
81096
81097         * lib/gc.h (gc_hash_buffer): Add doc.
81098
81099 2005-10-11  Bruno Haible  <bruno@clisp.org>
81100
81101         * modules/c-strcasestr: New file.
81102         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81103
81104 2005-10-11  Bruno Haible  <bruno@clisp.org>
81105
81106         * modules/c-strcase: New file.
81107         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81108
81109 2005-10-11  Bruno Haible  <bruno@clisp.org>
81110
81111         * lib/strcasecmp.c: Include limits.h.
81112         (strcasecmp): Avoid integer overflow on exotic platforms.
81113         * lib/strncasecmp.c: Include limits.h.
81114         (strncasecmp): Avoid integer overflow on exotic platforms.
81115         Reported by Paul Eggert.
81116
81117 2005-10-11  Bruno Haible  <bruno@clisp.org>
81118
81119         * lib/c-strcasestr.h: New file, from GNU gettext.
81120         * lib/c-strcasestr.c: New file, from GNU gettext.
81121
81122 2005-10-11  Bruno Haible  <bruno@clisp.org>
81123
81124         * lib/c-strcase.h: New file, from GNU gettext.
81125         * lib/c-strcasecmp.c: New file, from GNU gettext.
81126         * lib/c-strncasecmp.c: New file, from GNU gettext.
81127
81128 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * modules/mempcpy (License): GPL -> LGPL.
81131         * modules/strchrnul (License): Likewise.
81132         * modules/sysexits (License): Likewise.
81133
81134 2005-10-08  Simon Josefsson  <jas@extundo.com>
81135
81136         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81137
81138 2005-10-07  Simon Josefsson  <jas@extundo.com>
81139
81140         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81141
81142 2005-10-06  Simon Josefsson  <jas@extundo.com>
81143
81144         * tests/test-hmac-md5.c: New file.
81145
81146         * modules/hmac-md5-tests: New file.
81147
81148         * modules/hmac-md5: New file.
81149
81150 2005-10-06  Simon Josefsson  <jas@extundo.com>
81151
81152         * m4/hmac-md5.m4: New file.
81153
81154         * m4/memxor.m4: Require gl_C_RESTRICT.
81155
81156 2005-10-06  Simon Josefsson  <jas@extundo.com>
81157
81158         * lib/memxor.c (memxor): Avoid casts and warnings.
81159
81160 2005-10-06  Simon Josefsson  <jas@extundo.com>
81161
81162         * lib/hmac-md5.c: New file.
81163
81164         * lib/hmac.h: New file.
81165
81166 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81167
81168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81169         promotes to int, not unsigned int, to catch the AIX 5.3
81170         compiler bug.
81171
81172 2005-10-05  Simon Josefsson  <jas@extundo.com>
81173
81174         * modules/memxor: New file.
81175
81176         * modules/iconv (Files): Move config.rpath to havelib, it is used
81177         there.
81178
81179         * modules/havelib (Files): Add config.rpath.
81180
81181 2005-10-05  Simon Josefsson  <jas@extundo.com>
81182
81183         * m4/memxor.m4: New file.
81184
81185 2005-10-05  Simon Josefsson  <jas@extundo.com>
81186
81187         * lib/memxor.c (memxor): Fix compiler error.
81188
81189         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81190         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81191
81192         * lib/memxor.h, lib/memxor.c: New files.
81193
81194         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81195         we assume all systems have it, suggested by Jim Meyering
81196         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81197         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81198         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81199         same reasons.
81200
81201 2005-10-05  Simon Josefsson  <jas@extundo.com>
81202
81203         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81204
81205 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81206
81207         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81208         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81209         needed, since the source code now assumes these .h files.
81210
81211 2005-10-05  Derek Price  <derek@ximbiot.com>
81212
81213         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81214
81215 2005-10-05  Bruno Haible  <bruno@clisp.org>
81216
81217         * modules/stdint (License): Change to LGPL.
81218
81219 2005-10-04  Simon Josefsson  <jas@extundo.com>
81220
81221         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81222         D. Baushke" <mdb@gnu.org>.
81223
81224 2005-10-04  Bruno Haible  <bruno@clisp.org>
81225
81226         * lib/verify.h (verify_true): Provide alternative definition for C++.
81227
81228 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81229
81230         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81231         (SSIZE_MAX): New macro, if not already defined.
81232         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81233         than 2 GiB.
81234
81235 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         Sync from coreutils.
81238         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81239         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81240         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81241         ULLONG_MAX doesn't work with 2.7.2.1.
81242
81243 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81246         From Ben Pfaff.
81247
81248         * modules/exclude (Depends-on): Depend on verify.
81249         * modules/strtoimax (Depends-on): Likewise.
81250         * modules/utimecmp (Depends-on): Likewise.
81251
81252 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81253
81254         * lib/exclude.c: Include verify.h.
81255         (verify): Remove.  All callers changed to use verify.h's version.
81256         * lib/strtoimax.c: Likewise.
81257         * lib/utimecmp.c: Likewis.e
81258
81259         Sync from coreutils.
81260         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81261         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81262         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81263         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81264         bother returning ENOSYS if settimeofday or stime fails; just let
81265         them return whatever errno they want to return.
81266         * lib/utimens.c: Include unistd.h, for dup2.
81267         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81268         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81269
81270 2005-10-02  Jim Meyering  <jim@meyering.net>
81271
81272         Sync from coreutils.
81273         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81274         from glibc-2.2.5 that fails for read-only files.
81275
81276 2005-10-02  Jim Meyering  <jim@meyering.net>
81277
81278         Sync from coreutils.
81279         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81280         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81281         `#if HAVE_CONFIG_H'.
81282         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81283         Remove AT_FDCWD test.
81284         Do not consume the fd unless successful.
81285         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81286         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81287         block, so that we don't even try to compile it if settimeofday is
81288         available.  This works around a compilation failure on OSF1 V5.1,
81289         due to stime requiring a `long int*' while tv_sec is `int'.
81290
81291 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81292
81293         Sync from coreutils.
81294         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81295         against `yes', rather than just testing for nonempty.
81296
81297 2005-10-01  Simon Josefsson  <jas@extundo.com>
81298
81299         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81300         and Darwin.
81301
81302         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81303         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81304         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81305         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81306         Check if struct addrinfo is declared.
81307
81308 2005-10-01  Simon Josefsson  <jas@extundo.com>
81309
81310         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81311         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81312         AI_* and EAI_* definitions.  Protect function declarations.
81313
81314 2005-10-01  Jim Meyering  <jim@meyering.net>
81315
81316         Sync from coreutils.
81317
81318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81319         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81320         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81322         in the inet and nsl libraries.  Required on Solaris 5.7.
81323
81324 2005-10-01  Jim Meyering  <jim@meyering.net>
81325
81326         Sync from coreutils.
81327         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81328         in the inet and nsl libraries.  Required on Solaris 5.7.
81329
81330 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81331
81332         * lib/getdelim.c (getdelim): Remove unused variables.
81333
81334 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81335
81336         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81337         so that the code works even with ancient cpp.  Portability problem
81338         with GCC 2.7.2.1 reported by Thomas M.Ott.
81339
81340 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * modules/regex (Depends-on): Add strcase.
81343
81344         * modules/gethostname (Licence): Change from GPL to LGPL, since
81345         gethostname.c is a trivial implementation of a standard library
81346         function.
81347         * modules/poll (License): Change from GPL to LGPL, since it's
81348         derived from LGPL code.
81349
81350 2005-09-27  Jim Meyering  <jim@meyering.net>
81351
81352         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81353         HAVE_CONFIG_H.
81354
81355         * lib/intprops.h (signed_type_or_expr__): Define.
81356         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81357         for unsigned types.
81358
81359 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         * lib/verify.h (verify_expr): Remove, replacing with:
81362         (verify_true): New macro that returns true instead of void.
81363         (verify_type__): Remove.
81364         (verify): Use verify_true rather than verify_type__.
81365
81366 2005-09-26  Bruno Haible  <bruno@clisp.org>
81367
81368         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81369         is necessary.
81370         (lib_SOURCES): Remove mbchar.c.
81371         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81372         (Files): Add m4/mbrtowc.m4.
81373         * modules/mbiter: Likewise.
81374         * modules/mbuiter: Likewise.
81375
81376 2005-09-26  Bruno Haible  <bruno@clisp.org>
81377
81378         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81379         compile mbchar.c if they are not both present.
81380         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81381         * m4/mbiter.m4 (gl_MBITER): Likewise.
81382         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81383         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81384         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81385
81386 2005-09-25  Jim Meyering  <jim@meyering.net>
81387
81388         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81389         also uses socklen_t.
81390
81391 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81392
81393         * lib/utimens.c (ENOSYS): Define if not already defined.
81394         (futimens): Support having a null PATH if the file descriptor
81395         is nonnegative.
81396
81397         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81398         Remove.
81399         (__attribute): Define to empty unless GCC 3.1 or later.
81400         This works around a core dump on OpenBSD 3.4, which has GCC
81401         2.95.3, which dumps core when given __attribute__(()).  It also
81402         simplifies other tests, since we really don't want to bother with
81403         worrying about which ancient version of GCC supported what.
81404         Original problem reported by Yoann Vandoorselaere, with part of
81405         the fix suggested by Derek Price.
81406
81407 2005-09-24  Jim Meyering  <jim@meyering.net>
81408
81409         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81410         so we can once again use a positive bitfield width of 1 -- now we
81411         don't have to explain why we were using a bitfield width of 2.
81412
81413 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81416         and similarly for the other external symbols.  Problem reported
81417         by James Gallager.
81418
81419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81420         bug reported by Jim Meyering.
81421
81422         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81424         not needed, since socklen is a prerequisite module.
81425
81426 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81429         Problem reported by Eric Blake.
81430         (getaddrinfo): Initialize se so that it's not garbage.
81431         Redo internal storage allocation so that it doesn't make unportable
81432         assumptions about alignment.
81433         Fix a memory leak.
81434
81435         * lib/utimens.c (futimens): Use futimesat if available.
81436         Prefer it to futimes since it doesn't have the futimes bug.
81437
81438         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81439         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81440         Instead, declare a function that returns a pointer to an array,
81441         and use verify_type__ to declare the size of the array.
81442         Problem and germ of a solution reported by Bruno Haible.
81443         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81444         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81445
81446 2005-09-23  Jim Meyering  <jim@meyering.net>
81447
81448         Sync from coreutils.
81449         Correct build failure (socklen_t not defined) on at least
81450         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81451         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81452
81453 2005-09-23  Jim Meyering  <jim@meyering.net>
81454
81455         * modules/getaddrinfo (Depends-on): Add socklen.
81456
81457 2005-09-23  Bruno Haible  <bruno@clisp.org>
81458
81459         * tests/test-verify.c: New file.
81460
81461 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         Sync from coreutils.
81464
81465         * modules/argmatch (Depends-on): Add verify.
81466         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81467         unistd-safer.
81468         * modules/save-cwd (Depends-on): Likewise.
81469
81470         * modules/openat (Files): Add lib/openat-die.c.
81471         (Depends-on): Remove error, exitfail.
81472         Add dirname.
81473
81474         * modules/verify: New file.
81475         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81476         with "verify" module.
81477
81478 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         Sync from coreutils.
81481
81482         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81483         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81484         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81485         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81486         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81487         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81488         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81489         Don't bother checking for string.h, stdlib.h, unistd.h.
81490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81491         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81492         module's job.
81493         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81494         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81495
81496         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81497         (gl_GETDATE): Use it.
81498
81499         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81500
81501 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81502
81503         Sync from coreutils.
81504
81505         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81506         stat-time.h.
81507         * lib/argmatch.h: Include verify.h
81508         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81509         (ARGMATCH_ASSERT): Remove; unused.
81510         * lib/canonicalize.c: Assume STDC_HEADERS.
81511         * lib/exclude.c: Include "strcase.h".
81512         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81513         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81514         and stdio-safer.h.
81515         (getusershell): Call fopen, not fopen_safer.
81516         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81517         Do not include unistd-safer.h.
81518         (save_cwd): Don't call fd_safer; no longer needed
81519         now that we include fcntl--.h.
81520
81521         * lib/getdate.y (relative_time): New type.
81522         (RELATIVE_TIME_0): New constant.
81523         (parser_control): Use relative_time instead of doing it ourselves.
81524         (%union): Add new relative_time rel member.
81525         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81526         Now typeless.
81527         (relunit, relunit_snumber): Now of type rel.
81528         (zone, rel, relunit, get_date): Adjust to above changes.
81529
81530         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81531         Do not include unistd-safer.h.
81532         (getloadavg): Don't call fd_safer; no longer needed
81533         now that we include fcntl--.h.
81534
81535         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81536         (make_dir_parents): Treat ENOSYS like EEXIST.
81537
81538         Improve quality of diagnostics on restore_cwd failure.
81539         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81540         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81541         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81542         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81543         each time through the loop.  Do not diagnose restore_cwd failure;
81544         that is the caller's job (and perhaps the caller does not care).
81545
81546         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81547         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81548         If the file already exists but is not a directory, don't bother
81549         to try to make its parents.
81550         Close potential file descriptor leak if we can't chdir("/") (!).
81551         Don't always return true if chdir($PWD) fails; return true only
81552         if the requested action was done successfully (except for the
81553         chdir($PWD)).
81554         Don't log final directory unless we actually made it.
81555         Refactor to avoid duplicate code to fix up permissions.
81556         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81557
81558         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81559         to make it a bit faster and (I hope) clearer.
81560         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81561         Fix bug in formats like %2N.
81562
81563         * lib/verify.h: New file.
81564
81565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81566
81567         Sync from coreutils.
81568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81569
81570 2005-09-22  Jim Meyering  <jim@meyering.net>
81571
81572         Sync from coreutils.
81573
81574         * m4/lstat.m4 (gl_FUNC_LSTAT):
81575         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81576         Remove obsolete comment.
81577         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81578         * m4/xstrtod.m4: Likewise.
81579
81580         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81581
81582 2005-09-22  Jim Meyering  <jim@meyering.net>
81583
81584         Sync from coreutils.
81585
81586         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81587
81588         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81589         the .tm_year member, since otherwise gcc-4.0 would now warn about
81590         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81591
81592         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81593         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81594
81595         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81596         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81597         when run in a time zone for which daylight savings time is in effect
81598         for the starting date.
81599
81600         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81601         stop us from restricting permissions of just-created absolute-named
81602         directories.
81603         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81604         to restore initial working directory.
81605         * lib/mkdir-p.c (make_dir_parents): New parameter:
81606         different_working_dir, to tell caller if/when we change the working
81607         directory and are unable to return to the initial one.
81608         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81609         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81610         `return false'.  This fixes a bug introduced on 2004-07-30.
81611
81612         * lib/openat.c (fdopendir): Be sure to close the supplied
81613         file descriptor before returning.  This makes our replacement
81614         implementation a little closer to Solaris's, where fdopendir
81615         ties the file descriptor to the returned DIR* pointer.
81616         * lib/openat.c (unlinkat): New function.
81617         * lib/openat.h (unlinkat): Add prototype.
81618         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81619         (openat_restore_fail): Rename from openat_restore_die.
81620         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81621
81622         Provide an alternative to exiting immediately upon save_cwd or
81623         restore_cwd failure.  Now, an application can arrange e.g.,
81624         to perform a longjump in that case.
81625         * lib/openat.c: Include dirname.h.
81626         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81627         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81628         and openat_restore_die rather than calling error directly.
81629         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81630
81631         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81632         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81633         define.
81634
81635         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81636         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81637                             int utc, int nanoseconds);
81638         Background:
81639         date should not have to allocate a megabyte of virtual memory to
81640         handle a format argument like +%1048575T.  When implemented with
81641         strftime, it must allocate such a buffer, use strftime to fill it
81642         in, print it, then free it.
81643         With fprintftime, it simply prints everything and exits.
81644         With no need for memory allocation, that's one fewer way to fail.
81645         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81646         optional field width, not before, so we accept %9:z, not %:9z.
81647         (my_strftime): Be sure to use L_('x') for literals.
81648
81649         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81650         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81651         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81652         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81653         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81654         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81655         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81656         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81657         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81658         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81659         * lib/xgethostname.c, lib/xreadlink.c:
81660         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81661
81662         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81663         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81664         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81665         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81666         and don't include <sys/file.h>).
81667
81668 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81669
81670         Sync from coreutils.
81671
81672         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81673         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81674         [!LDAV_DONE]: Avoid unused variable warning.
81675
81676 2005-09-21  Bruno Haible  <bruno@clisp.org>
81677
81678         * lib/unicodeio.h (unicode_to_mb): New declaration.
81679
81680 2005-09-20  Derek Price  <derek@ximbiot.com>
81681
81682         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81683         getaddrinfo.h.
81684
81685 2005-09-20  Bruno Haible  <bruno@clisp.org>
81686
81687         * gnulib-tool: Remove trailing slashes from the values specified for
81688         --source-base, --m4-base, --tests-base, --aux-dir.
81689         Suggested by Simon Josefsson <jas@extundo.com>.
81690
81691 2005-09-20  Bruno Haible  <bruno@clisp.org>
81692
81693         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81694         func_modules_to_filelist, func_import, func_create_testdir): Make all
81695         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81696         change when gnulib-tool is invoked in a different locale.
81697
81698 2005-09-19  Simon Josefsson  <jas@extundo.com>
81699
81700         * m4/socklen.m4: Fix typo.
81701
81702 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81703
81704         Use a consistent style for including <config.h>.
81705         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81706         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81707         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81708         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81709         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81710         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81711         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81712         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81713         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81714         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81715         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81716         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81717         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81718         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81719         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81720         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81721         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81722         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81723         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81724         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81725         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81726         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81727         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81728         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81729         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81730         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81731         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81732         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81733         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81734         lib/xstrtoumax.c, lib/yesno.c:
81735         Standardize inclusion of config.h.
81736         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81737         lib/inttostr.h:  Removed inclusion of config.h from header files.
81738         * lib/inttostr.c:  Adjusted in-tree users.
81739         * lib/timespec.h: Remove superfluous warning to include config.h.
81740         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81741         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81742         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81743         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81744         config.h with HAVE_CONFIG_H.
81745
81746 2005-09-19  Jim Meyering  <jim@meyering.net>
81747
81748         * modules/pathmax (License): Change to LGPL.
81749
81750 2005-09-19  Derek Price  <derek@ximbiot.com>
81751
81752         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81753
81754 2005-09-19  Bruno Haible  <bruno@clisp.org>
81755
81756         * gnulib-tool (import): Provide default for --tests-base.
81757
81758 2005-09-19  Bruno Haible  <bruno@clisp.org>
81759
81760         * doc/quote.texi: New file, extracted from gnulib.texi.
81761         * doc/ctime.texi: New file, extracted from gnulib.texi.
81762         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81763         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81764         * doc/gnulib.texi: Include them.
81765
81766 2005-09-18  Bruno Haible  <bruno@clisp.org>
81767
81768         Portability fix.
81769         * gnulib-tool (func_readlink): New function.
81770         (func_ln_if_changed): Use it.
81771
81772 2005-09-18  Bruno Haible  <bruno@clisp.org>
81773
81774         * gnulib-tool: Support --with-tests also with --import.
81775         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81776         (func_import): Use variables $testsbase and $inctests. Emit a
81777         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81778         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81779         SUBDIRS += $testsdir.
81780         (func_create_testdir): Update.
81781
81782 2005-09-18  Bruno Haible  <bruno@clisp.org>
81783
81784         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81785         instead of $dry_run.
81786         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81787         (func_ln_if_changed): Don't handle dry-run here.
81788         (func_import): In dry-run mode, detect more precisely which actions
81789         would be performed, and don't use "...ing" verbs.
81790
81791 2005-09-18  Bruno Haible  <bruno@clisp.org>
81792
81793         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81794         (func_import): Use join on two temporary files instead of three nested
81795         loops, in order to determine which files are new or old.
81796
81797 2005-09-18  Bruno Haible  <bruno@clisp.org>
81798
81799         * gnulib-tool (func_import): Comment out code that spits out the
81800         new files with --dry-run.
81801
81802 2005-09-18  Bruno Haible  <bruno@clisp.org>
81803
81804         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81805
81806 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * lib/stat-time.h: New file.
81809         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81810         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81811         in a different way.
81812         (timespec_cmp): New function.
81813         * lib/utimecmp.c: Include stat-time.h.
81814         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81815         members exist, not on the obsolescent ST_MTIM_NSEC.
81816         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81817
81818 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81821
81822 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * MODULES.html.sh (File system functions): Add stat-time.
81825         * modules/stat-time: New file.
81826         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81827         is now done in a different way, by the stat-time module.
81828         * modules/utimecmp (Depends-on): Add stat-time.
81829
81830 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * m4/st_mtim.m4: Remove.  Superseded by...
81833         * m4/stat-time.m4: New file.
81834         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81835         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81836
81837 2005-09-15  Derek Price  <derek@ximbiot.com>
81838
81839         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81840
81841 2005-09-15  Derek Price  <derek@ximbiot.com>
81842
81843         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81844         * lib/regex_internal.c: Ditto, using this...
81845         (__GNUC_PREREQ): ...new macro.
81846         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81847         using...
81848         (__GNUC_PREREQ): ...this new macro.
81849
81850         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81851
81852 2005-09-15  Derek Price  <derek@ximbiot.com>
81853             Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81856         changes, consolidating in...
81857         * lib/regex_internal.h: ...this file.
81858
81859 2005-09-13  Jim Meyering  <jim@meyering.net>
81860
81861         * lib/canon-host.c: Filter through gnu indent and reword comments
81862         slightly.
81863         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81864
81865 2005-09-13  Derek Price  <derek@ximbiot.com>
81866
81867         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81868         failure.
81869         Reported by Jim Meyering  <jim@meyering.net>.
81870
81871 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81872
81873         * lib/base64.c: Typo.
81874         (base64_encode): Put b64str in initialized data section.
81875
81876 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         Merge glibc and coreutils changes into gnulib, plus a few
81879         extra fixes.
81880         * lib/md5.c: Use #error rather than a string.
81881         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81882         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81883         (__attribute__): Define to empty for non recent-GCC.
81884         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81885         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81886         Renamed from their non-__ counterparts, with new macros replacing
81887         them if not _LIBC.  Add __THROW attribute.
81888         (rol): Remove.
81889         (struct md5_ctx): Align buffer if using GCC.
81890         * lib/sha1.h (struct sha1_ctx): Likewise.
81891         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81892         The old name was backwards.
81893         (NOTSWAP): Remove; not used.
81894         (rol): New macro, moved here from md5.h.
81895         (sha1_process_block): Remove a FIXME that doesn't make sense.
81896
81897 2005-09-12  Derek Price  <derek@ximbiot.com>
81898
81899         Return usable errors from canon-host.
81900         * lib/canon-host.h: New file.
81901         * lib/canon-host.c (canon_host): Wrap...
81902         (canon_host_r): ...this new function, which now relies exclusively on
81903         getaddrinfo.
81904         (ch_strerror): New function.
81905         (last_cherror): New global.
81906         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81907         interface.
81908         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81909         void *.
81910         (freeaddrinfo): Free ai->ai_canonname when set.
81911
81912 2005-09-12  Derek Price  <derek@ximbiot.com>
81913
81914         Make canon-host require getaddrinfo.
81915         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81916         AC_LIBSOURCE canon-host.h.  Call...
81917         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81918         gl_GETADDRINFO.
81919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81920
81921 2005-09-12  Derek Price  <derek@ximbiot.com>
81922
81923         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81924         LGPL.
81925         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81926
81927 2005-09-12  Derek Price  <derek@ximbiot.com>
81928
81929         * lib/gai_strerror.c: Include config.h when available.  Include
81930         getaddrinfo.h before other headers to test interface.
81931         Reported by Larry Jones <lawrence.jones@ugs.com>.
81932
81933 2005-09-12  Derek Price  <derek@ximbiot.com>
81934             Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         * modules/glob (Files): Add glob-libc.h.
81937
81938 2005-09-12  Derek Price  <derek@ximbiot.com>
81939             Paul Eggert  <eggert@cs.ucla.edu>
81940
81941         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81942         glob_.h, glob-libc.h.
81943         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81944
81945 2005-09-12  Derek Price  <derek@ximbiot.com>
81946             Paul Eggert  <eggert@cs.ucla.edu>
81947
81948         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81949         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81950         protecting things that should be done only in gnulib contexts.
81951         * lib/glob_.h: New file, containing only the glob things needed for
81952         gnulib.
81953         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81954         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81955         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81956         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81957         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81958         and to respect the namespace rules better.
81959
81960 2005-09-08  Simon Josefsson  <jas@extundo.com>
81961
81962         * modules/socklen: New file.
81963
81964 2005-09-08  Simon Josefsson  <jas@extundo.com>
81965
81966         * m4/socklen.m4: New file.
81967
81968 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * modules/utimens (Files): Add m4/utimbuf.m4, since
81971         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81972         Reported by Sergey Poznyakoff.
81973
81974 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81977         definitions, since that's the preferred style in glibc.
81978         Fix a minor spacing issue, and update copyright notice to match
81979         glibc's.
81980
81981 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81984
81985 2005-09-06  Simon Josefsson  <jas@extundo.com>
81986
81987         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81988         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81989
81990 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81991
81992         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81993         warning.
81994
81995 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * config/srclist.txt: Add glibc bug 1302.
81998
81999 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         Change bitset word type from unsigned int to unsigned long int,
82002         as this has better performance on typical 64-bit hosts.
82003         Port bitset code to hosts with unusual word sizes.
82004         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82005         (build_collating_symbol):
82006         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82007         argument is a bitset.  This is merely a style issue, but it makes
82008         it clearer that an entire array is expected.
82009         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82010         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82011         Port to the case where bitset_word is not the same as unsigned int.
82012         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82013         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82014         Likewise.
82015         * lib/regexec.c (check_dst_limits_calc_pos_1,
82016         check_subexp_matching_top):
82017         (build_trtable, group_nodes_into_DFAstates):
82018         Likewise.
82019         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82020         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82021         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82022         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82023         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82024         * lib/regcomp.c (optimize_subexps, lower_subexp):
82025         Work even if bitset_word has holes in its bitwise representation.
82026         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82027         * lib/regexec.c (check_dst_limits_calc_pos_1,
82028         check_subexp_matching_top):
82029         Likewise.
82030         * lib/regex_internal.c (re_string_reconstruct):
82031         Don't assume UCHAR_MAX == 255.
82032         * lib/regex_internal.h (bitset_set_all): Likewise.
82033         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82034         All uses changed.
82035         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82036         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82037         All uses changed.
82038         (BITSET_WORD_MAX): New macro.
82039         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82040         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82041         (bitset_empty, bitset_copy):
82042         Prefer sizeof (bitset) to multiplying it out ourselves.
82043         (bitset_not_merge): Remove; unused.
82044         (bitset_contain): Return bool, not unsigned int with one bit on.
82045         All callers changed.
82046         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82047         alignment than re_node_set; do this by defining a new internal
82048         type struct dests_alloc and using it to allocate memory.
82049
82050 2005-09-05  Bruno Haible  <bruno@clisp.org>
82051
82052         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82053         links.
82054
82055 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82056
82057         * modules/size_max (Makefile.am): Add size_max.h
82058
82059 2005-09-04  Derek Price  <derek@ximbiot.com>
82060
82061         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82062
82063 2005-09-03  Simon Josefsson  <jas@extundo.com>
82064
82065         * gnulib-tool: Fix typo.
82066
82067 2005-09-03  Simon Josefsson  <jas@extundo.com>
82068
82069         * config/srclist.txt: Add glibc bug 1293.
82070
82071 2005-09-03  Derek Price  <derek@ximbiot.com>
82072
82073         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82074         From Larry Jones <lawrence.jones@ugs.com>.
82075
82076 2005-09-02  Simon Josefsson  <jas@extundo.com>
82077
82078         * modules/socklen: New file.
82079
82080 2005-09-02  Simon Josefsson  <jas@extundo.com>
82081
82082         * modules/havelib: New module.
82083
82084         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82085         Use havelib.
82086
82087 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82088
82089         Check for arithmetic overflow when calculating sizes, to prevent
82090         some buffer-overflow issues.  These patches are conservative, in the
82091         sense that when I couldn't determine whether an overflow was possible,
82092         I inserted a run-time check.
82093         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82094         macros.
82095         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82096         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82097         (re_xnrealloc, re_x2nrealloc): New inline functions.
82098         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82099         parse_bracket_exp):
82100         (build_equiv_class, build_charclass): Check for arithmetic overflow
82101         in size expression calculations.
82102         * lib/regex_internal.c (re_string_realloc_buffers):
82103         (build_wcs_upper_buffer, re_node_set_add_intersect):
82104         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82105         (re_dfa_add_node, register_state): Likewise.
82106         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82107         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82108         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82109         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82110
82111 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82114         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82115
82116 2005-09-02  Bruno Haible  <bruno@clisp.org>
82117
82118         Support for lib vs. lib64 distinction on biarch platforms.
82119         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82120         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82122
82123 2005-09-02  Bruno Haible  <bruno@clisp.org>
82124
82125         * gnulib-tool (import): In the other first-use case, provide defaults
82126         as well.
82127
82128 2005-09-02  Bruno Haible  <bruno@clisp.org>
82129
82130         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82131         patches not yet found in the latest gettext release.
82132
82133 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82134
82135         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82136         to avoid a collision with bits/local_lim.h in glibc.
82137         All uses changed.  Problem reported by Dmitry V. Levin in
82138         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82139
82140         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82141         bugs in int versus size_t comparisons.
82142         (re_string_context_at): Fix bug where the code assumed that
82143         Idx is signed.
82144
82145         Use bool where appropriate.
82146         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82147         All callers changed.
82148         (calc_eclosure_iter): Likewise, for ROOT arg.
82149         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82150         (build_charclass_op): Likewise, for NON_MATCH arg.
82151         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82152         (re_string_construct_common): Likewise, for ICASE arg.
82153         * lib/regexec.c (re_search_2_stub, re_search_stub):
82154         Likewise, for RET_LEN arg.
82155         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82156         (set_regs): Likewise, for FL_BACKTRACK arg.
82157         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82158         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82159         (calc_eclosure_iter, parse_bracket_exp):
82160         Use bool for internal variables that are booleans.
82161         * lib/regexec.c (re_search_internal, check_matching,
82162         proceed_next_node):
82163         (set_regs, build_sifted_states, sift_states_bkref):
82164         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82165         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82166         (find_collation_sequence_value):
82167         Likewise.
82168         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82169         (re_node_set_compare):
82170         Return bool, not int. All callers changed.
82171         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82172         (build_trtable, check_node_accept): Likewise.
82173         * lib/regex_internal.h: Include stdbool.h.
82174
82175         Fix bugs uncovered when converting to bool.
82176         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82177         failure instead of charging ahead blindly.
82178         * lib/regex_internal.c (register_state): Likewise.
82179         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82180         for freeing internal storage.
82181         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82182         bitset pieces used as boolean, to avoid undefined behavior
82183         on hosts that do int overflow checking.
82184
82185 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * config/srclist.txt: Add glibc bugs 1285-1287.
82188
82189 2005-09-01  Jim Meyering  <jim@meyering.net>
82190
82191         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82192         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82193         Require gl_STAT_MACROS, too.
82194
82195 2005-09-01  Bruno Haible  <bruno@clisp.org>
82196
82197         * gnulib-tool (import): In the first-use case, provide defaults.
82198
82199 2005-09-01  Bruno Haible  <bruno@clisp.org>
82200
82201         * gnulib-tool (func_import): Remove the .tmp files.
82202
82203 2005-09-01  Bruno Haible  <bruno@clisp.org>
82204
82205         * gnulib-tool (func_import): Fix handling of symbolic links.
82206
82207 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82208
82209         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82210         old glibc regex code mishandles strings longer than 2**31 bytes.
82211         This patch fixes this when the regex code is used in gnulib
82212         (i.e., outside glibc).
82213
82214         This patch should not affect the use of the regex code inside
82215         glibc.  No doubt this problem also needs to be handled for glibc
82216         as well, but the result will be an incompatible change to the
82217         glibc ABI, and the old ABI will have to be supported too.  That
82218         can be the the subject for another patch.
82219
82220         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82221         governing whether the rest of this patch is active.  By default,
82222         the macro is disabled and the patch has no effect.
82223         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82224         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82225         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82226         (re_match_2, re_set_registers): Use the new types.
82227         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82228         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82229         New macros.
82230         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82231         (re_string_context_at, bin_tree_t, re_dfastate_t):
82232         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82233         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82234         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82235         (re_string_char_size_at, re_string_wchar_at):
82236         (re_string_elem_size_at):
82237         Use the new types and macros to port to 64-bit hosts.
82238         Use unsigned types for internal values, so that the code
82239         mostly works even for arrays larger than SSIZE_MAX.
82240         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82241         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82242         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82243         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82244         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82245         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82246         (calc_inveclosure, parse_dup_op, build_range_exp):
82247         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82248         (fetch_number, create_token_tree, mark_opt_subexp):
82249         Likewise.
82250         * lib/regex_internal.c (re_string_construct_common,
82251         create_ci_newstate):
82252         (create_cd_newstate, re_string_allocate, re_string_construct):
82253         (re_string_realloc_buffers, build_wcs_upper_buffer):
82254         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82255         (re_string_reconstruct, re_string_peek_byte_case):
82256         (re_string_fetch_byte_case, re_string_context_at):
82257         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82258         (re_node_set_init_copy, re_node_set_add_intersect):
82259         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82260         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82261         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82262         (re_acquire_state, re_acquire_state_context, register_state):
82263         Likewise.
82264         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82265         search_cur_bkref_entry):
82266         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82267         (re_search_internal, re_search_2_stub, re_search_stub)
82268         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82269         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82270         (update_cur_sifted_state, check_dst_limits):
82271         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82272         (check_subexp_limits, sift_states_bkref, merge_state_array):
82273         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82274         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82275         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82276         (expand_bkref_cache, check_node_accept_bytes):
82277         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82278         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82279         (acquire_init_state_context, check_halt_node_context):
82280         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82281         (sift_states_backward, clean_state_log_if_needed):
82282         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82283         (find_recover_state, transit_state_sb, transit_state_mb):
82284         (transit_state_bkref, build_trtable, match_ctx_clean):
82285         Likewise.
82286         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82287         to work around an assumption that REG_MISSING is negative.
82288
82289         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82290         (seek_collating_symbol_entry) [defined _LIBC]:
82291         (lookup_collation_sequence_value) [defined _LIBC]:
82292         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82293         Use prototypes rather than old-style function definitions.
82294         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82295         (transit_state_sb) [0]:
82296         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82297
82298         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82299         rm_eo.
82300
82301         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82302         (optimize_subexps, lower_subexp):
82303         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82304         since the signed shift might overflow.  Use 1u<<31 instead.
82305         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82306         Likewise.
82307         * lib/regexec.c (check_dst_limits_calc_pos_1,
82308         check_subexp_matching_top): Likewise.
82309
82310         * lib/regcomp.c (optimize_subexps, lower_subexp):
82311         Use CHAR_BIT rather than 8, for clarity.
82312         * lib/regexec.c (check_dst_limits_calc_pos_1):
82313         (check_subexp_matching_top): Likewise.
82314         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82315         have to worry about portability issues when shifting it left.
82316         Remove no-longer-needed test for table_size > 0.
82317         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82318         in a word, as the resulting behavior is undefined.
82319         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82320         in one case, a <= should have been an <, and in another case the
82321         whole test was missing.
82322         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82323         the standard name CHAR_BIT.
82324         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82325         this is not true on one's complement and signed-magnitude hosts.
82326
82327         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82328         next_last_offset.
82329         (struct re_dfa_t): Remove unused member states_alloc.
82330         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82331
82332 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82333
82334         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82335         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82336         and large-file glibc and in 32-bit large-file Solaris.
82337
82338 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82341         lengths fit in regoff_t; this isn't true if regoff_t is the same
82342         width as size_t.
82343         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82344         (= START + RANGE) instead of RANGE.  This avoids overflow
82345         problems when regoff_t is the same width as size_t.
82346         All callers changed.
82347         (re_search_2_stub): Check for overflow when adding the
82348         sizes of the two strings.
82349         (re_search_stub): Check for overflow when adding START
82350         to RANGE; if it occurs, substitute the extreme value.
82351
82352 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82355
82356 2005-08-31  Jim Meyering  <jim@meyering.net>
82357
82358         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82359         a pointer-to-const.
82360         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82361         (register_state): Likewise.
82362         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82363         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82364         (group_nodes_into_DFAstates): Likewise.
82365
82366 2005-08-31  Jim Meyering  <jim@meyering.net>
82367
82368         * check-module: Add a FIXME comment.
82369
82370 2005-08-31  Eric Blake  <ebb9@byu.net>
82371
82372         * modules/unistd-safer (Files): Add unistd--.h.
82373         * modules/stdio-safer (Files): Add stdio--.h.
82374
82375 2005-08-31  Derek Price  <derek@ximbiot.com>
82376
82377         * lib/getdelim.c (getdelim): Return EOF on EOF.
82378         Reported by Larry Jones <lawrence.jones@ugs.com>.
82379
82380 2005-08-31  Bruno Haible  <bruno@clisp.org>
82381
82382         Avoid unnecessary diffs in the generated lib/Makefile.am.
82383         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82384         the generated files.
82385         (func_import): Don't set cmd.
82386
82387 2005-08-31  Bruno Haible  <bruno@clisp.org>
82388
82389         * lib/strstr.c: Include <stddef.h>, for NULL.
82390         * lib/strcasestr.c: Likewise.
82391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82392
82393 2005-08-31  Bruno Haible  <bruno@clisp.org>
82394
82395         * gnulib-tool: New option --macro-prefix.
82396         (func_import): Use macro_prefix.
82397         (import): Handle option --macro-prefix.
82398
82399 2005-08-31  Bruno Haible  <bruno@clisp.org>
82400
82401         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82402         Also use new variables cached_lgpl, cached_libtool.
82403
82404 2005-08-31  Bruno Haible  <bruno@clisp.org>
82405
82406         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82407         always instantiating them.
82408
82409 2005-08-31  Bruno Haible  <bruno@clisp.org>
82410
82411         * gnulib-tool (func_import): Read the previous cached settings
82412         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82413         earlier added by gnulib but are now dropped. Warn when a gnulib file
82414         overwrites a non-gnulib file.
82415
82416 2005-08-31  Bruno Haible  <bruno@clisp.org>
82417
82418         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82419         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82420         projects that don't keep autogenerated files in CVS. Put into
82421         actioncmd only the specified modules, not the transitive closure.
82422
82423 2005-08-31  Bruno Haible  <bruno@clisp.org>
82424
82425         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82426         Create directories that shall be filled.
82427         (import): Don't look for gl_* macros in configure.ac. Recurse across
82428         all directories containing a gnulib-cache.m4 files, if meaningful.
82429
82430 2005-08-31  Bruno Haible  <bruno@clisp.org>
82431
82432         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82433         (import): Set seen_libtool when we see gl_LIBTOOL.
82434
82435 2005-08-31  Bruno Haible  <bruno@clisp.org>
82436
82437         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82438         declaration macro definitions from generated gnulib.m4.
82439
82440 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82441
82442         * lib/iconvme.h: Add prototype for iconv_alloc.
82443
82444 2005-08-29  Simon Josefsson  <jas@extundo.com>
82445
82446         * lib/iconvme.c: Fix errno.
82447
82448 2005-08-29  Bruno Haible  <bruno@clisp.org>
82449
82450         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82451         that it works when the directory contains spaces.
82452
82453 2005-08-29  Bruno Haible  <bruno@clisp.org>
82454
82455         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82456
82457 2005-08-29  Bruno Haible  <bruno@clisp.org>
82458
82459         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82460         Emit more advice.
82461
82462 2005-08-29  Bruno Haible  <bruno@clisp.org>
82463         and Stepan Kasal  <kasal@ucw.cz>
82464
82465         * check-module: If more parameters are given, check each of them
82466         separately; add more exceptions, as noted by Jim Meyering.
82467         (check_module): New procedure.
82468         (%exempt_header): Now contains all exceptions.
82469
82470 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82471
82472         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82473
82474 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82475
82476         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82477
82478 2005-08-28  Bruno Haible  <bruno@clisp.org>
82479
82480         * m4/gnulib-tool.m4: New file.
82481
82482 2005-08-27  Jim Meyering  <jim@meyering.net>
82483
82484         * modules/unistd-safer (Files): Add pipe-safer.c.
82485         * modules/fcntl-safer (Files): Add creat-safer.c.
82486
82487 2005-08-27  Jim Meyering  <jim@meyering.net>
82488
82489         * m4/stdlib-safer.m4: New file.  From coreutils.
82490         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82491         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82492         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82493         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82494         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82495
82496 2005-08-27  Jim Meyering  <jim@meyering.net>
82497
82498         * lib/fopen-safer.c: Merge minor changes from coreutils.
82499         * lib/dup-safer.c: Likewise.
82500         * lib/fd-safer.c: Likewise.
82501
82502         Merge from coreutils.
82503         * lib/stdio--.h: New file.
82504         * lib/stdlib--.h: New file.
82505         * lib/mkstemp-safer.c: New file.
82506
82507         GNU tar needs these.
82508         * lib/pipe-safer.c: New file.
82509         * lib/creat-safer.c: New file.
82510         * lib/fcntl--.h (creat): Define to creat_safer.
82511         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82512         * lib/unistd--.h (pipe): Define to pipe_safer.
82513         * lib/unistd-safer.h: Declare pipe_safer.
82514
82515 2005-08-26  Simon Josefsson  <jas@extundo.com>
82516
82517         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82518         Haible <bruno@clisp.org>.
82519
82520 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * lib/regex_internal.h: Remove all references to
82523         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82524         or better.
82525         (bitset_not, bitset_merge, bitset_not_merge):
82526         (bitset_mask, re_string_allocate, re_string_construct):
82527         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82528         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82529         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82530         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82531         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82532         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82533         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82534         (re_acquire_state_context):
82535         Remove unnecessary forward decls.
82536         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82537         Put __attribute at function definition,
82538         now that the function decl has been removed.
82539         * lib/regex_internal.c (re_string_peek_byte_case):
82540         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82541         Likewise.
82542
82543 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82544
82545         * m4/regex.m4: Add AC_PREREQ(2.50).
82546         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82547
82548 2005-08-25  Simon Josefsson  <jas@extundo.com>
82549
82550         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82551         __fsetlocking.
82552
82553 2005-08-25  Simon Josefsson  <jas@extundo.com>
82554
82555         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82556         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82557         GLIBC specific code.
82558
82559 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         Make regex safe for g++.  This fixes one real bug (an "err"
82562         that should have been "*err").  g++ problem reported by
82563         Sam Steingold.
82564         * lib/regex_internal.h (re_calloc): New macro, consistent with
82565         re_malloc etc.  All callers of calloc changed to use re_calloc.
82566         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82567         not int.  All callers changed.
82568         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82569         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82570         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82571         (find_recover_state): Change "err" to "*err"; this fixes what
82572         appears to be a real bug.
82573         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82574         versus int.
82575
82576 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82577
82578         * modules/regex (Depends-on): Add malloc, since the code
82579         assumes that !malloc(0) means failure.
82580
82581 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82582
82583         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82584
82585         alloca modernization/simplification for regex.
82586         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82587         needs to be at the start of the file, and can be moved into
82588         regex_internal.h and simplified.
82589         * lib/regex_internal.h: Include <alloca.h>.
82590         (__libc_use_alloca) [!defined _LIBC]: New macro.
82591         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82592         now works outside glibc.
82593
82594 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * config/srclist.txt: Add glibc bugs 1241, 1245.
82597
82598 2005-08-25  Jim Meyering  <jim@meyering.net>
82599
82600         * lib/open-safer.c: Include <config.h>.
82601         Otherwise, we'd lose LARGEFILE support in any file using
82602         e.g. "fcntl--.h"
82603
82604 2005-08-25  Bruno Haible  <bruno@clisp.org>
82605
82606         * m4/minmax.m4: Require autoconf 2.52.
82607         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82608         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82609         alternatives of translit over the alphabet.
82610         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82611
82612 2005-08-24  Simon Josefsson  <jas@extundo.com>
82613
82614         * tests/test-getpass.c: New file.
82615
82616 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82619         for GNU regex features.
82620
82621 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82624         * lib/regex.h (regerror): Likewise.
82625
82626         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82627         requires this.  (The code never needed it.)
82628
82629         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82630         All uses of recently-renamed identifiers changed to use the new,
82631         POSIX-compliant names.  The code will build and run just fine
82632         without these changes, but it's better to eat our own dog food
82633         and use the standard-conforming names.
82634
82635         * lib/regex.h: Fix a multitude of POSIX name space violations.
82636         These changes have an effect only for programs that define
82637         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82638         do not change anything for programs compiled in the normal way.
82639         Also, there is no effect on the ABI.
82640
82641         (_REGEX_SOURCE): New macro.
82642         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82643         defined and _GNU_SOURCE is not; this fixes a name space violation.
82644
82645         Rename the following macros to obey POSIX requirements.
82646         The old names are still visible as macros if _REGEX_SOURCE is defined.
82647         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82648         RE_BACKSLASH_ESCAPE_IN_LISTS.
82649         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82650         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82651         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82652         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82653         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82654         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82655         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82656         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82657         (REG_INTERVALS): renamed from RE_INTERVALS.
82658         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82659         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82660         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82661         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82662         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82663         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82664         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82665         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82666         RE_UNMATCHED_RIGHT_PAREN_ORD.
82667         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82668         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82669         (REG_DEBUG): renamed from RE_DEBUG.
82670         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82671         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82672         unusual, since we can't clash with the POSIX REG_ICASE.
82673         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82674         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82675         (REG_NO_SUB): renamed from RE_NO_SUB.
82676         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82677         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82678         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82679         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82680         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82681         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82682         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82683         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82684         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82685         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82686         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82687         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82688         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82689         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82690         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82691         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82692         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82693         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82694         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82695         (REG_FIXED): Renamed from REGS_FIXED.
82696         (REG_NREGS): Renamed from RE_NREGS.
82697
82698         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82699         of other REG_* macros, since POSIX says the user is allowed to
82700         #undef these macros selectively.
82701
82702         (reg_errcode_t): Update comment stating what other tables need
82703         to be consistent.
82704
82705         Rename the following enum values to obey POSIX requirements.
82706         The old names are still visible as macros.
82707         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82708         is not defined, since GNU is supposed to be a superset of POSIX as
82709         much as possible, and since we want reg_errcode_t to be a signed
82710         type for implementation consistency.
82711         (_REG_NOERROR): Renamed from REG_NOERROR.
82712         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82713         (_REG_BADPAT): Renamed from REG_BADPAT.
82714         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82715         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82716         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82717         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82718         (_REG_EBRACK): Renamed from REG_EBRACK.
82719         (_REG_EPAREN): Renamed from REG_EPAREN.
82720         (_REG_EBRACE): Renamed from REG_EBRACE.
82721         (_REG_BADBR): Renamed from REG_BADBR.
82722         (_REG_ERANGE): Renamed from REG_ERANGE.
82723         (_REG_ESPACE): Renamed from REG_ESPACE.
82724         (_REG_BADRPT): Renamed from REG_BADRPT.
82725         (_REG_EEND): Renamed from REG_EEND.
82726         (_REG_ESIZE): Renamed from REG_ESIZE.
82727         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82728         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82729         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82730         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82731         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82732
82733         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82734         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82735         changed.  But support the old name if the new one is not defined
82736         and if _REGEX_SOURCE.
82737
82738         Change the following member names in struct re_pattern_buffer.
82739         The old names are still supported if !_REGEX_SOURCE.
82740         The new names are always supported, regardless of _REGEX_SOURCE.
82741         (re_buffer): Renamed from buffer.
82742         (re_allocated): Renamed from allocated.
82743         (re_used): Renamed from used.
82744         (re_syntax): Renamed from syntax.
82745         (re_fastmap): Renamed from fastmap.
82746         (re_translate): Renamed from translate.
82747         (re_can_be_null): Renamed from can_be_null.
82748         (re_regs_allocated): Renamed from regs_allocated.
82749         (re_fastmap_accurate): Renamed from fastmap_accurate.
82750         (re_no_sub): Renamed from no_sub.
82751         (re_not_bol): Renamed from not_bol.
82752         (re_not_eol): Renamed from not_eol.
82753         (re_newline_anchor): Renamed from newline_anchor.
82754
82755         Change the following member names in struct re_registers.
82756         The old names are still supported if !_REGEX_SOURCE.
82757         The new names are always supported, regardless of _REGEX_SOURCE.
82758         (rm_num_regs): Renamed from num_regs.
82759         (rm_start): Renamed from start.
82760         (rm_end): Renamed from end.
82761
82762         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82763         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82764         Prepend __ to parameter names.
82765
82766         Undo yesterday's changes.
82767
82768 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82769
82770         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82771         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82772         lib/regex.c.
82773
82774 2005-08-24  Jim Meyering  <jim@meyering.net>
82775
82776         Sync from coreutils.
82777         * m4/fcntl-safer.m4: New file.
82778
82779         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82780         and object files for this module.
82781
82782 2005-08-24  Jim Meyering  <jim@meyering.net>
82783
82784         Sync from coreutils.
82785         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82786
82787 2005-08-24  Jim Meyering  <jim@meyering.net>
82788
82789         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82790         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82791
82792 2005-08-24  Jim Meyering  <jim@meyering.net>
82793
82794         * modules/fcntl-safer: New module.
82795         * modules/fts (Depends-on): Add fcntl-safer.
82796         * MODULES.html.sh (File descriptor based Input/Output):
82797         Add fcntl-safer.
82798
82799 2005-08-24  Bruno Haible  <bruno@clisp.org>
82800
82801         Support for unit test modules.
82802         * modules/README: Mention tests modules.
82803         * modules/TEMPLATE-TESTS: New file.
82804         * gnulib-tool: New options --extract-tests-module, --with-tests and
82805         --tests-base (unused for the moment).
82806         (testsbase, inctests): New variables.
82807         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82808         (func_verify_module): Exclude TEMPLATE-TESTS.
82809         (func_verify_nontests_module, func_verify_tests_module): New functions.
82810         (func_get_dependencies): Add implicit dependency for tests modules.
82811         (func_get_tests_module): New function.
82812         (func_modules_transitive_closure): When --with-tests was specified,
82813         include the unit tests as well, unless explicitly avoided.
82814         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82815         (func_emit_tests_Makefile_am): New function.
82816         (func_create_testdir): When --with-tests was specified, emit a
82817         tests/ directory.
82818         * MODULES.html.sh (Future developments): Update.
82819
82820 2005-08-24  Bruno Haible  <bruno@clisp.org>
82821
82822         * modules/tls-tests: New file.
82823         * tests/test-tls.c: New file, from GNU gettext.
82824
82825 2005-08-24  Bruno Haible  <bruno@clisp.org>
82826
82827         * modules/lock-tests: New file.
82828         * tests/test-lock.c: New file, from GNU gettext.
82829
82830 2005-08-24  Bruno Haible  <bruno@clisp.org>
82831
82832         * lib/lock.h: Add multiple inclusion guard.
82833         * lib/tls.h: Add multiple inclusion guard.
82834
82835 2005-08-24  Bruno Haible  <bruno@clisp.org>
82836
82837         * gnulib-tool: Add support for the --aux-dir option to
82838         --create-testdir, --create-megatestdir, --test, --megatest.
82839         (func_create_testdir, func_create_megatestdir): Optionally emit a
82840         AC_CONFIG_AUX_DIR directive.
82841         (create-testdir, create-megatestdir, test, megatest): Provide a
82842         default value for $auxdir.
82843
82844 2005-08-24  Bruno Haible  <bruno@clisp.org>
82845
82846         * gnulib-tool (import): Use compound statement instead of subshell
82847         where possible.
82848
82849 2005-08-24  Bruno Haible  <bruno@clisp.org>
82850
82851         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82852
82853 2005-08-24  Bruno Haible  <bruno@clisp.org>
82854
82855         * gnulib-tool (func_version): Update.
82856
82857 2005-08-24  Bruno Haible  <bruno@clisp.org>
82858
82859         * gnulib-tool (func_import, func_create_testdir,
82860         func_create_megatestdir): Quote all autoconf macro arguments.
82861
82862 2005-08-24  Bruno Haible  <bruno@clisp.org>
82863
82864         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82865         option --force, because --force causes the aclocal.m4 of each
82866         subdirectory to be newer than the corresponding config.h.in.
82867
82868 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82871         All contents moved to gl_REGEX.
82872         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82873         assume that it does.
82874
82875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         * lib/regex.h (REG_NOSYS)
82878         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82879         Define, since POSIX requires it as of 2001.
82880         (_REG_ENOSYS)
82881         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82882         New private symbol, used to keep the enum signed in all cases.
82883         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82884         Youngman in
82885         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82886
82887         * lib/regex_internal.c (re_string_skip_chars, register_state):
82888         (calc_state_hash):
82889         Remove forward decls; no longer needed now that we use prototypes.
82890         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82891         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82892         (clean_state_log_if_needed): Likewise.
82893
82894 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82895
82896         * config/srclist.txt: Add glibc bugs 1231-1233.
82897
82898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         Fix problems reported by Sam Steingold in
82901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82902         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82903         assumed that reg_errcode_t is a signed type, which is not
82904         necessarily true if _XOPEN_SOURCE is not defined.
82905         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82906         since some compilers warn about it otherwise.
82907
82908 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82909
82910         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82911         (init_word_char, create_initial_state, duplicate_node_closure):
82912         (fetch_token, peek_token_bracket, build_range_exp):
82913         (build_collating_symbol): Remove forward decls; no longer needed
82914         now that we use prototypes.
82915
82916         * lib/regcomp.c:
82917         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82918         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82919         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82920         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82921         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82922         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82923         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82924         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82925         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82926         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82927         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82928         (build_charclass, build_charclass_op, fetch_number, create_tree):
82929         (create_token_tree, mark_opt_subexp, duplicate_tree):
82930         Use prototypes rather than old-style definitions.
82931
82932         * lib/regex_internal.c:
82933         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82934         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82935         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82936         (re_string_reconstruct, re_string_peek_byte_case):
82937         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82938         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82939         (re_node_set_init_copy, re_node_set_add_intersect):
82940         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82941         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82942         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82943         (re_acquire_state, re_acquire_state_context, register_state):
82944         (create_ci_newstate, create_cd_newstate, free_state):
82945         Likewise.
82946         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82947         re_search_2):
82948         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82949         (re_search_internal, prune_impossible_nodes):
82950         (acquire_init_state_context, check_matching, static):
82951         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82952         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82953         (update_regs, sift_states_backward, build_sifted_states):
82954         (clean_state_log_if_needed, merge_state_array):
82955         (update_cur_sifted_state, add_epsilon_src_nodes):
82956         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82957         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82958         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82959         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82960         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82961         (check_arrival, check_arrival_add_next_nodes):
82962         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82963         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82964         (check_node_accept_bytes, check_node_accept, extend_buffers):
82965         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82966         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82967         (sift_ctx_init):
82968         Likewise.
82969
82970         * lib/regex_internal.h:
82971         (re_string_allocate, re_string_construct, re_string_reconstruct):
82972         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82973         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82974         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82975         (re_string_context_at, re_string_peek_byte_case):
82976         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82977         is defined, since we now use prototypes always.
82978
82979         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82980         C89 or better.  All uses removed.
82981
82982 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         * config/srclist.txt: Add glibc bugs 1220-1227.
82985
82986 2005-08-20  Jim Meyering  <jim@meyering.net>
82987
82988         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82989         of unused local, dfa.
82990
82991 2005-08-20  Bruno Haible  <bruno@clisp.org>
82992
82993         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82994
82995 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82996
82997         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82998         (re_node_set_insert_last, re_dfa_add_node):
82999         Rename local variables to avoid GCC shadowing warnings.
83000
83001 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83002
83003         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83004         [defined lint]: Suppress bogus uninitialized-variable warnings.
83005
83006         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83007         and let the caller return REG_ESPACE if out of space.  This
83008         removes an uninitialied-variable warning with GCC 4.0.1, and also
83009         avoids taking the address of a local variable.  All callers
83010         changed.
83011
83012 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83015         $LIBCSRC/posix/regexec.c.
83016         Add glibc bug 1217 for regcomp.c.
83017
83018 2005-08-19  Jim Meyering  <jim@meyering.net>
83019
83020         * lib/regexec.c (proceed_next_node): Redo local variables to
83021         avoid GCC shadowing warnings.
83022
83023 2005-08-18  Bruno Haible  <bruno@clisp.org>
83024
83025         * lib/strstr.c (strstr): Fix return value in multibyte case.
83026         * lib/strcasestr.c (strcasestr): Likewise.
83027
83028 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83029
83030         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83031
83032 2005-08-17  Jim Meyering  <jim@meyering.net>
83033
83034         Make the %s format (seconds since the epoch) work for a negative
83035         number and when used with a zero-padded field width, e.g. %015s.
83036
83037         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83038         label so that it precedes the code to set `digits'.  Otherwise,
83039         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83040         print `00-22'.  Now, it prints `-0022', as it should.
83041
83042 2005-08-17  Bruno Haible  <bruno@clisp.org>
83043
83044         * modules/strstr (Files): Add m4/mbrtowc.m4.
83045         (Depends-on): Add mbuiter.
83046
83047 2005-08-17  Bruno Haible  <bruno@clisp.org>
83048
83049         * modules/strcasestr: New file.
83050         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83051         strcasestr.
83052
83053 2005-08-17  Bruno Haible  <bruno@clisp.org>
83054
83055         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83056
83057 2005-08-17  Bruno Haible  <bruno@clisp.org>
83058
83059         * modules/mbuiter: New file.
83060         * MODULES.html.sh (Extended multibyte and wide character utilities):
83061         Add mbuiter.
83062
83063 2005-08-17  Bruno Haible  <bruno@clisp.org>
83064
83065         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83066         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83067
83068 2005-08-17  Bruno Haible  <bruno@clisp.org>
83069
83070         * m4/strcasestr.m4: New file.
83071
83072 2005-08-17  Bruno Haible  <bruno@clisp.org>
83073
83074         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83075         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83076
83077 2005-08-17  Bruno Haible  <bruno@clisp.org>
83078
83079         * lib/strcasestr.h: New file.
83080         * lib/strcasestr.c: New file.
83081
83082 2005-08-17  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/strcasecmp.c: Use mbuiter.h.
83085
83086 2005-08-17  Bruno Haible  <bruno@clisp.org>
83087
83088         * lib/mbuiter.h: New file.
83089
83090 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83091
83092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83093         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83094         and gl_GETOPT are both invoked via different paths (as happens
83095         with GNU tar CVS because it uses both argp and getopt), the former
83096         wins.
83097
83098 2005-08-16  Bruno Haible  <bruno@clisp.org>
83099
83100         * modules/tls: New file.
83101         * MODULES.html.sh (Multithreading): Add tls.
83102
83103 2005-08-16  Bruno Haible  <bruno@clisp.org>
83104
83105         * modules/strnlen1: New file.
83106         * MODULES.html.sh (String handling): Add strnlen1.
83107
83108 2005-08-16  Bruno Haible  <bruno@clisp.org>
83109
83110         * modules/strcase (Files): Add m4/mbrtowc.m4.
83111         (Depends-on): Add strnlen1, mbchar.
83112
83113 2005-08-16  Bruno Haible  <bruno@clisp.org>
83114
83115         * modules/mbiter: New file.
83116         * MODULES.html.sh (Extended multibyte and wide character utilities):
83117         Add mbiter.
83118
83119 2005-08-16  Bruno Haible  <bruno@clisp.org>
83120
83121         * modules/mbfile: New file.
83122         * MODULES.html.sh (Extended multibyte and wide character utilities):
83123         Add mbfile.
83124
83125 2005-08-16  Bruno Haible  <bruno@clisp.org>
83126
83127         * modules/mbchar: New file.
83128         * MODULES.html.sh (Extended multibyte and wide character utilities):
83129         New section.
83130
83131 2005-08-16  Bruno Haible  <bruno@clisp.org>
83132
83133         * m4/tls.m4: New file, from GNU gettext.
83134
83135 2005-08-16  Bruno Haible  <bruno@clisp.org>
83136
83137         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83138         always.
83139         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83140
83141 2005-08-16  Bruno Haible  <bruno@clisp.org>
83142
83143         * m4/mbiter.m4: New file.
83144
83145 2005-08-16  Bruno Haible  <bruno@clisp.org>
83146
83147         * m4/mbfile.m4: New file.
83148
83149 2005-08-16  Bruno Haible  <bruno@clisp.org>
83150
83151         * m4/mbchar.m4: New file.
83152
83153 2005-08-16  Bruno Haible  <bruno@clisp.org>
83154
83155         * lib/tls.h: New file, from GNU gettext.
83156         * lib/tls.c: New file, from GNU gettext.
83157
83158 2005-08-16  Bruno Haible  <bruno@clisp.org>
83159
83160         * lib/strnlen1.h: New file.
83161         * lib/strnlen1.c: New file.
83162
83163 2005-08-16  Bruno Haible  <bruno@clisp.org>
83164
83165         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83166         (mbi_init): Update.
83167         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83168         NUL byte, not after it.
83169
83170 2005-08-16  Bruno Haible  <bruno@clisp.org>
83171
83172         * lib/strcase.h (strcasecmp): Add note in comments.
83173         * lib/strncasecmp.c: Use code from strcasecmp.c.
83174         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83175         (strcasecmp): Work correctly in multibyte locales.
83176
83177 2005-08-16  Bruno Haible  <bruno@clisp.org>
83178
83179         * lib/mbiter.h: New file.
83180
83181 2005-08-16  Bruno Haible  <bruno@clisp.org>
83182
83183         * lib/mbfile.h: New file.
83184
83185 2005-08-16  Bruno Haible  <bruno@clisp.org>
83186
83187         * lib/mbchar.h: New file.
83188         * lib/mbchar.c: New file.
83189
83190 2005-08-16  Bruno Haible  <bruno@clisp.org>
83191
83192         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83193         the valid ones. Makes the comparison operations transitive:
83194         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83195         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83196
83197 2005-08-15  Simon Josefsson  <jas@extundo.com>
83198
83199         * modules/ssize_t (License): Change to 'unlimited'.
83200
83201         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83202
83203 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83204
83205         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83206         Add comments for each pending glibc patch.
83207
83208 2005-08-15  Bruno Haible  <bruno@clisp.org>
83209
83210         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83211         __cplusplus is defined.
83212
83213 2005-08-14  Jim Meyering  <jim@meyering.net>
83214
83215         Sync from coreutils.
83216
83217         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83218         Use the hash-table-based cycle-detection code not just when
83219         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83220         Reported by James Youngman in
83221         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83222         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83223         FTS_TIGHT_CYCLE_CHECK.
83224         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83225         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83226         once again.
83227         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83228         * lib/fts.c (fd_safer): Remove decl.
83229         Include fcntl--.h rather than unistd-safer.h
83230         (fts_safe_changedir): Don't call fd_safer; no longer needed
83231         now that we include fcntl--.h.
83232
83233 2005-08-12  Simon Josefsson  <jas@extundo.com>
83234
83235         * modules/getndelim2: Use ssize_t module.
83236         * modules/getnline: Likewise.
83237         * modules/safe-read: Likewise.
83238         * modules/xreadlink: Likewise.
83239
83240         * modules/ssize_t: New file.
83241
83242 2005-08-12  Simon Josefsson  <jas@extundo.com>
83243
83244         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83245
83246 2005-08-12  Simon Josefsson  <jas@extundo.com>
83247
83248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83249         ssize_t.
83250
83251 2005-08-12  Simon Josefsson  <jas@extundo.com>
83252
83253         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83254         readline, getdelim and check_version.
83255         (Support for systems lacking ISO C 99: Sizes of integer types):
83256         Add size_max.
83257
83258 2005-08-12  Bruno Haible  <bruno@clisp.org>
83259
83260         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83261
83262 2005-08-11  Simon Josefsson  <jas@extundo.com>
83263
83264         * modules/readline: New file.
83265
83266         * modules/strnlen (Files): Add strnlen.h.
83267
83268 2005-08-11  Simon Josefsson  <jas@extundo.com>
83269
83270         * m4/readline.m4: New file.
83271
83272 2005-08-11  Simon Josefsson  <jas@extundo.com>
83273
83274         * lib/readline.h, readline.c: New file.
83275
83276 2005-08-11  Simon Josefsson  <jas@extundo.com>
83277
83278         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83279         gl_AVOID.
83280
83281 2005-08-11  Bruno Haible  <bruno@clisp.org>
83282
83283         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83284
83285 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83286
83287         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83288
83289 2005-08-10  Simon Josefsson  <jas@extundo.com>
83290
83291         * tests/test-iconvme.c: New file.
83292
83293 2005-08-10  Simon Josefsson  <jas@extundo.com>
83294
83295         * m4/strnlen.m4: New file.
83296
83297         * m4/strndup.m4: Don't check for strnlen declaration, done in
83298         strnlen.m4.
83299
83300 2005-08-10  Simon Josefsson  <jas@extundo.com>
83301
83302         * lib/strndup.c: Use strnlen.h.
83303
83304         * lib/strnlen.h: New file.
83305
83306 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83307
83308         * README: Typos.
83309
83310 2005-08-02  Simon Josefsson  <jas@extundo.com>
83311
83312         * modules/readline: New file.
83313
83314 2005-08-02  Simon Josefsson  <jas@extundo.com>
83315
83316         * modules/getdelim: New file.
83317
83318         * modules/getline: Rewrite, don't use getndelim2.
83319
83320 2005-08-02  Simon Josefsson  <jas@extundo.com>
83321
83322         * m4/getline.m4: Separate out getdelim stuff into separate module.
83323
83324         * m4/getdelim.m4: New file.
83325
83326 2005-08-02  Simon Josefsson  <jas@extundo.com>
83327
83328         * lib/getline.h, getline.c: Rewrite.
83329
83330         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83331
83332 2005-07-31  Bruno Haible  <bruno@clisp.org>
83333
83334         * lib/lock.h (gl_lock_initializer): New macro.
83335         (gl_lock_define_initialized): Use it.
83336         (gl_rwlock_initializer): New macro.
83337         (gl_rwlock_define_initialized): Use it.
83338         (gl_recursive_lock_initializer): New macro.
83339         (gl_recursive_lock_define_initialized): Use it.
83340
83341 2005-07-30  Karl Berry  <karl@gnu.org>
83342
83343         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83344         Report from Ben Pfaff, regarding getopt.
83345
83346 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83349         normal way.
83350         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83351         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83352         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83353         (gl_GETOPT): Use the new macros.  Most of the implementation
83354         is moved to the new macros.  This is for programs like Emacs
83355         that don't want all the functionality of gl_GETOPT.
83356
83357 2005-07-26  Bruno Haible  <bruno@clisp.org>
83358
83359         * m4/lock.m4: Update from GNU gettext.
83360
83361 2005-07-26  Bruno Haible  <bruno@clisp.org>
83362
83363         * lib/lock.h: Update from GNU gettext.
83364         * lib/lock.c: Update from GNU gettext.
83365
83366 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83367
83368         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83369         obsolescent AC_TRY_RUN.  Include the default includes files, for
83370         'exit'.
83371
83372 2005-07-24  Bruno Haible  <bruno@clisp.org>
83373
83374         * modules/visibility: New file.
83375         * MODULES.html.sh (Misc): Add visibility.
83376
83377 2005-07-24  Bruno Haible  <bruno@clisp.org>
83378
83379         * m4/visibility.m4: New file.
83380
83381 2005-07-24  Bruno Haible  <bruno@clisp.org>
83382
83383         * doc/visibility.texi: New file.
83384
83385 2005-07-22  Bruno Haible  <bruno@clisp.org>
83386
83387         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83388         $(ALLOCA_H), redundant through BUILT_SOURCES.
83389         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83390         redundant through BUILT_SOURCES.
83391         * modules/byteswap (Makefile.am): Remove explicit dependency on
83392         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83393         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83394         $(FNMATCH_H), redundant through BUILT_SOURCES.
83395         * modules/getopt (Makefile.am): Remove explicit dependency on
83396         $(GETOPT_H), redundant through BUILT_SOURCES.
83397         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83398         redundant through BUILT_SOURCES.
83399         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83400         redundant through BUILT_SOURCES.
83401         * modules/stdbool (Makefile.am): Remove explicit dependency on
83402         $(STDBOOL_H), redundant through BUILT_SOURCES.
83403         * modules/stdint (Makefile.am): Remove explicit dependency on
83404         $(STDINT_H), redundant through BUILT_SOURCES.
83405         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83406         Remove explicit dependency on $(SYSEXITS_H).
83407         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83408
83409 2005-07-18  Simon Josefsson  <jas@extundo.com>
83410
83411         * lib/check-version.c (check_version): Accept identical versions too.
83412
83413 2005-07-18  Bruno Haible  <bruno@clisp.org>
83414
83415         * modules/lock: New file.
83416         * MODULES.html.sh (Multithreading): New section.
83417
83418 2005-07-18  Bruno Haible  <bruno@clisp.org>
83419
83420         * m4/lock.m4: New file, from GNU gettext.
83421
83422 2005-07-18  Bruno Haible  <bruno@clisp.org>
83423
83424         * lib/lock.h: New file, from GNU gettext.
83425         * lib/lock.c: New file, from GNU gettext.
83426
83427 2005-07-18  Bruno Haible  <bruno@clisp.org>
83428
83429         * lib/lock.h (gl_once_t): New type.
83430         (gl_once_define, gl_once): New macros.
83431         * lib/lock.c (fresh_once): New variable.
83432         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83433         functions.
83434
83435 2005-07-16  Simon Josefsson  <jas@extundo.com>
83436
83437         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83438         workaround, suggested by Bruno.
83439
83440 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83441
83442         * modules/xalloc (Depends-on): Add xalloc-die.
83443         * modules/xvasprintf (Depends-on): Add xalloc-die.
83444
83445 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83446
83447         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83448         with a minor change.
83449
83450 2005-07-15  Bruno Haible  <bruno@clisp.org>
83451
83452         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83453         When using lib/poll.c, define poll as rpl_poll.
83454
83455 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83456
83457         * modules/argp (Depends-on): Remove unlocked-io.
83458
83459 2005-07-14  Derek Price  <derek@ximbiot.com>
83460
83461         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83462         for glob symlink bug.
83463
83464 2005-07-14  Bruno Haible  <bruno@clisp.org>
83465
83466         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83467         Instead, test for *_unlocked function declarations directly.
83468
83469 2005-07-11  Simon Josefsson  <jas@extundo.com>
83470
83471         * modules/size_max: New file.
83472
83473         * modules/xsize: Depend on size_max module for size_max.m4.
83474
83475 2005-07-11  Simon Josefsson  <jas@extundo.com>
83476
83477         * lib/size_max.h: New file.
83478
83479 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83480
83481         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83482         copyright symbol and the year.
83483         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83484         (version_etc_va): Use parameterized copyright notice.
83485         Reword to conform to the current GNU coding standards.
83486
83487 2005-07-11  Karl Berry  <karl@gnu.org>
83488
83489         * doc/gnulib.texi (Quoting): new node.
83490         (Initial import): more info, from Patrice.
83491
83492 2005-07-11  Bruno Haible  <bruno@clisp.org>
83493
83494         * gnulib-tool (func_usage): Document option --avoid.
83495         (Command line options): Handle --avoid.
83496         (func_acceptable): New function.
83497         (func_modules_transitive_closure): Use it.
83498
83499 2005-07-11  Bruno Haible  <bruno@clisp.org>
83500
83501         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83502         Reported by Jim Meyering.
83503
83504 2005-07-10  Bruno Haible  <bruno@clisp.org>
83505
83506         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83507         Needed when size_t is smaller than 'unsigned int'.
83508         Reported by Paul Eggert.
83509
83510 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83511
83512         * modules/argp (Depends-on): Add unlocked-io
83513
83514 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83515
83516         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83517         block of defines.
83518
83519 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83520
83521         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83522         fix now.
83523
83524 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83525         and Paul Eggert  <eggert@cs.ucla.edu>
83526
83527         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83528         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83529
83530 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         * modules/regex (Files): Add lib/regex_internal.c,
83533         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83534         (Depends-on): Add extensions.
83535         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83536
83537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83538
83539         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83540         pathconf.
83541         * m4/same.m4 (gl_SAME): Likewise.
83542         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83543
83544         * m4/regex.m4: Adjust to new libc regex implementation.
83545         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83546         all the .c and .h parts of (the new) regex.
83547         Quote the m4 stuff better.
83548         Check for RE_ICASE bug of old gnulib.
83549         Check for REG_STARTEND of recent libc.
83550         Rename local variables from jm_* to gl_*.
83551         Quote operand of "test -f".
83552         Say "recent enough" version of libc, not "version 2".
83553         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83554         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83555         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83556         Remove check for btowc, isascii.
83557         Require AM_LANGINFO_CODESET.
83558
83559 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83560
83561         * lib/regex.c, regex.h: Sync from libc.
83562         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83563         * lib/regexec.c:
83564         New files, synced from libc, except that regex_internal.h
83565         currently has a small porting fix.
83566
83567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83568
83569         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83570         regex_internal.c, regexec.c.
83571         Add regex_internal.h too, but as a comment, since the libc version
83572         is currently broken in gnulib mode.
83573
83574 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83575
83576         Support programs like Emacs that use gnulib but not gettext.
83577         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83578         * modules/gettext-h: New file.
83579         * modules/gettext (Files): Remove lib/gettext.h.
83580         (Depends-on): Add gettext-h.
83581         (Makefile.am): Remove lib_SOURCES.
83582         * modules/argmatch, modules/c-stack, modules/closeout:
83583         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83584         * modules/execute, modules/file-type, modules/getaddrinfo:
83585         * modules/getopt, modules/human, modules/javacomp:
83586         * modules/javaexec, modules/mkdir-p, modules/obstack:
83587         * modules/openat, modules/pagealign_alloc, modules/pipe:
83588         * modules/quotearg, modules/regex, modules/rpmatch:
83589         * modules/unicodeio, modules/userspec, modules/version-etc:
83590         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83591         * modules/xsetenv:
83592         Depend on gettext-h, not gettext.
83593
83594 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * gnulib-tool (func_import): Add support for 'public domain' license.
83597         * modules/alloca, modules/atexit, modules/memmove:
83598         Now public domain, not GPL.
83599         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83600         * modules/realloc, modules/strerror, modules/strtod:
83601         Now LGPL, not GPL.
83602
83603 2005-07-05  Bruno Haible  <bruno@clisp.org>
83604
83605         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83606         autoconf CVS. Needed for mingw.
83607
83608 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         Remove the dependency of the strftime module on the tzset module.
83611         * modules/strftime (Depends-on): Remove dependency on tzset.
83612
83613 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         Remove the dependency of the strftime module on the tzset module.
83616         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83617         gl_FUNC_TZSET_CLOBBER.
83618
83619 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83620
83621         Remove the dependency of the strftime module on the tzset module.
83622         * lib/strftime.c (my_strftime)
83623         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83624         Copy the input structure, to work around some of the bug with
83625         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83626         Solaris releases, you should also use the tzset module, but we won't
83627         require it as a dependency any more since we don't want LGPLed code
83628         to depend on GPLed code.
83629
83630 2005-07-02  Jim Meyering  <jim@meyering.net>
83631
83632         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83633         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83634         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83635         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83636
83637 2005-07-02  Jim Meyering  <jim@meyering.net>
83638
83639         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83640
83641 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83644         declares only 'struct timespec;' (!).
83645
83646 2005-07-01  Jim Meyering  <jim@meyering.net>
83647
83648         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83649         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83650         * lib/save-cwd.c, tempname.c:
83651         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83652         and don't include <sys/file.h>).
83653
83654 2005-06-29  Jim Meyering  <jim@meyering.net>
83655
83656         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83657         type name.  Use the variable name instead.
83658         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83659         Likewise.
83660
83661 2005-06-28  Simon Josefsson  <jas@extundo.com>
83662
83663         * modules/check-version (Files): Add check-version.m4.
83664
83665 2005-06-28  Simon Josefsson  <jas@extundo.com>
83666
83667         * m4/check-version.m4: New file, suggested by Jim Meyering
83668         <jim@meyering.net>.
83669
83670 2005-06-28  Simon Josefsson  <jas@extundo.com>
83671
83672         * lib/check-version.h, lib/check-version.c: New files.
83673
83674 2005-06-28  Simon Josefsson  <jas@extundo.com>
83675
83676         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83677         collision with global variable.  Better indentation.  Don't
83678         increment buffer pointer beyond buffer end.  Based on comments
83679         from Paul Eggert <eggert@cs.ucla.edu>.
83680
83681         * lib/base64.h: Indent.
83682
83683 2005-06-28  Simon Josefsson  <jas@extundo.com>
83684
83685         * doc/gnulib.texi (Library version handling): New section.
83686
83687 2005-06-28  Jim Meyering  <jim@meyering.net>
83688
83689         * check-module (find_included_lib_files): Hard-code another
83690         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83691         but modules/fts-lgpl (correctly) does not list those files.
83692
83693         * modules/canonicalize (Files): Add lib/pathmax.h.
83694
83695 2005-06-25  Simon Josefsson  <jas@extundo.com>
83696
83697         * modules/check-version: New file.
83698
83699 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83702         initializer of struct addrinfo, as an indication that we don't
83703         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83710         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83711         * m4/stat.m4: Remove this file.
83712
83713 2005-06-24  Derek Price  <derek@ximbiot.com>
83714         and Bruno Haible  <bruno@clisp.org>
83715
83716         Remove stat module & update lstat.
83717         * lib/stat.c: Remove this file...
83718         (slash_aware_lstat): ...moving this content and its support...
83719         * lib/lstat.c (rpl_lstat): ...into here.
83720         * lib/lstat.h: New file.
83721
83722 2005-06-24  Derek Price  <derek@ximbiot.com>
83723         and Bruno Haible  <bruno@clisp.org>
83724
83725         Remove stat module & update lstat.
83726         * config/srclist.txt (libc sources): Remove stat.
83727
83728 2005-06-24  Derek Price  <derek@ximbiot.com>
83729         and Bruno Haible  <bruno@clisp.org>
83730
83731         Remove stat module & update lstat.
83732         * MODULES.html.sh (stat): Remove.
83733         * MODULES.html: Regenerated.
83734         * modules/lstat (Description): Correct function name.
83735         (Files): Add "lstat.h".
83736         (Depends-on): Remove stat, add xalloc, stat-macros.
83737         * modules/stat: Remove this file.
83738         (Include): Add "lstat.h", remove <sys/stat.h>.
83739
83740 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83743         (ranged_convert): Don't save conversion in a temporary struct.
83744         This causes a warning with GCC 4.0.0, and anyway in the typical
83745         case it's not worth the extra 100 bytes or so of code.
83746         (ranged_convert, __mktime_internal): When calling a function via a
83747         pointer P, use P () rather than (*P) (), as we now assume C89 or
83748         better.
83749
83750 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83753         "who -r" failed to give output.  Problem reported by Tim Waugh.
83754
83755         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83756         (xcalloc): Use it to avoid needless tests.
83757         Problem reported by Jim Meyering.
83758
83759 2005-06-20  Derek Price  <derek@ximbiot.com>
83760
83761         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83762         unnecessary for Autoconfs > 2.59c.
83763
83764 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83765
83766         * lib/argp.h (__option_is_short): Check upper limit of
83767         __key. Isprint() requires its argument to have the value
83768         of an unsigned char or EOF.
83769
83770 2005-06-16  Jim Meyering  <jim@meyering.net>
83771
83772         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83773         when either N or S is zero.
83774
83775 2005-06-16  Derek Price  <derek@ximbiot.com>
83776
83777         * m4/bison.m4: Declare YACC & YFLAGS precious.
83778
83779 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83780
83781         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83782         multibyte string or pattern, fall back on unibyte matching.
83783         Problem reported by James Youngman.
83784
83785 2005-06-08  Bruno Haible  <bruno@clisp.org>
83786
83787         * modules/csharpcomp: New file.
83788         * MODULES.html.sh (C#): Add csharpcomp.
83789
83790 2005-06-08  Bruno Haible  <bruno@clisp.org>
83791
83792         * m4/csharpcomp.m4: New file, from GNU gettext.
83793
83794 2005-06-08  Bruno Haible  <bruno@clisp.org>
83795
83796         * lib/csharpcomp.h: New file, from GNU gettext.
83797         * lib/csharpcomp.c: New file, from GNU gettext.
83798         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83799
83800 2005-06-08  Bruno Haible  <bruno@clisp.org>
83801
83802         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83803         warning on mingw.
83804
83805 2005-06-07  Derek Price  <derek@ximbiot.com>
83806
83807         Sync from CVS.
83808         * lib/glob_.h: Indent nested #ifdef.
83809
83810 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83811
83812         Sync from coreutils.
83813         Use "file name" when talking about file names, instead of "filename"
83814         or "path", as per the GNU coding standards.
83815         * lib/mkdir-p.c: Renamed from makepath.c.
83816         (make_dir_parents): Renamed from make_path.  All callers changed.
83817         * lib/mkdir-p.h: Likewise.  All includers changed.
83818         * lib/filenamecat.c: Renamed from path-concat.c.
83819         (file_name_concat): Renamed from path_concat.  All callers changed.
83820         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83821         * lib/filenamecat.h: Likewise.  All includers changed.
83822         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83823         in comments or local variable names.
83824         * lib/basename.c: Likewise.
83825         * lib/canonicalize.c, canonicalize.h: Likewise.
83826         * lib/dirname.c, dirname.h: Likewise.
83827         * lib/euidaccess.c: Likewise.
83828         * lib/exclude.c: Likewise
83829         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83830         * lib/fsusage.c, fsuage.h: Likewise.
83831         * lib/fts.c, fts_.h: Likewise.
83832         * lib/getcwd.c: Likewise.
83833         * lib/getloadavg.c: Likewise.
83834         * lib/mkstemp.c: Likewise.
83835         * lib/mountlist.c, mountlist.h: Likewise.
83836         * lib/openat.c, openat.h: Likewise.
83837         * lib/readlink-stub.c: Likewise.
83838         * lib/readutmp.c, readutmp.h: Likewise.
83839         * lib/rename.c: Likewise.
83840         * lib/rmdir.c: Likewise.
83841         * lib/same.c: Likewise.
83842         * lib/savedir.c: Likewise.
83843         * lib/stripslash.c: Likewise.
83844         * lib/tempname.c: Likewise.
83845         * lib/xreadlink.c: Likewise.
83846         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83847         All uses changed.
83848         * lib/exclude.h: Likewise.
83849
83850         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83851         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83852         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83853         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83854         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83855         files have been getting away with it for years (MORE/BSD 4.3
83856         is extinct now).
83857         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83858         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83859
83860         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83861         Define to 256, not 255, as per modern POSIX.
83862
83863 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83864
83865         Sync from coreutils.
83866         Use "file name" when talking about file names, instead of "filename"
83867         or "path", as per the GNU coding standards.
83868         * MODULES.html.sh: mkdir-p renamed from makepath.
83869         filenamecat renamed from path-concat.
83870         * modules/filenamecat: Renamed from modules/path-concat.
83871         (Files): filenamecat.h and filenamecat.c renamed from
83872         path-concat.h and path-concat.c.
83873         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83874         (Include): filenamecat.h, not path-concat.h.
83875         * modules/mkdir-p: Renamed from modules/makepath.
83876         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83877         makepath.c.
83878         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83879         (Include): mkdir-p.h, not makepath.h.
83880
83881 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         Sync from coreutils.
83884         * m4/mkdir-p.m4: Renamed from makepath.m4.
83885         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83886         Rename files from makepath.c to mkdir-p.c, and from
83887         makepath.h to mkdir-p.h.
83888         * m4/filenamecat.m4: Renamed from path-concat.m4.
83889         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83890         Rename files from path-concat.c to filenamecat.c,
83891         and from path-concat.h to filenamecat.h.
83892         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83893         "file name" in local variables or comments.
83894         * m4/rename.m4: Likewise.
83895
83896 2005-06-01  Bruno Haible  <bruno@clisp.org>
83897
83898         * modules/csharpexec: New file.
83899         * MODULES.html.sh (C#): New section.
83900
83901 2005-06-01  Bruno Haible  <bruno@clisp.org>
83902
83903         * m4/csharp.m4: New file, from GNU gettext.
83904         * m4/csharpexec.m4: New file, from GNU gettext.
83905
83906 2005-06-01  Bruno Haible  <bruno@clisp.org>
83907
83908         * lib/csharpexec.h: New file, from GNU gettext.
83909         * lib/csharpexec.c: New file, from GNU gettext.
83910         * lib/csharpexec.sh.in: New file, from GNU gettext.
83911
83912 2005-05-31  Derek Price  <derek@ximbiot.com>
83913             Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         Sync from cvs.
83916         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83917
83918 2005-05-31  Derek Price  <derek@ximbiot.com>
83919             Paul Eggert  <eggert@cs.ucla.edu>
83920
83921         Sync from cvs.
83922         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83923
83924 2005-05-29  Derek Price  <derek@ximbiot.com>
83925
83926         * config/srclist.txt (glob_.h, glob.c): Add these files.
83927
83928 2005-05-29  Derek Price  <derek@ximbiot.com>
83929
83930         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83931         * modules/glob: New file.
83932         * modules/getlogin_r: Add link to POSIX spec in description.
83933
83934 2005-05-29  Derek Price  <derek@ximbiot.com>
83935             Paul Eggert  <eggert@cs.ucla.edu>
83936
83937         * m4/glob.m4: New file.
83938
83939 2005-05-29  Derek Price  <derek@ximbiot.com>
83940             Paul Eggert  <eggert@cs.ucla.edu>
83941
83942         * lib/glob_.h, lib/glob.c: New files.
83943
83944 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83945
83946         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83947         * modules/fts-lgpl (Depends-on): Remove gettext.
83948
83949 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83950
83951         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83952         and don't require gt_INTTYPES_PRI.
83953
83954 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83955
83956         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83957
83958         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83959         the configuration hassle isn't worth it.
83960         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83961         (LONGEST_MODIFIER, PRIuMAX): Remove.
83962
83963 2005-05-27  Bruno Haible  <bruno@clisp.org>
83964
83965         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83966
83967 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83968
83969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83970         _POSIX_PTHREAD_SEMANTICS for Solaris.
83971
83972 2005-05-25  Derek Price  <derek@ximbiot.com>
83973
83974         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83975
83976 2005-05-25  Derek Price  <derek@ximbiot.com>
83977             Paul Eggert  <eggert@cs.ucla.edu>
83978
83979         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83980         * lib/getlogin_r.c, getlogin_r.h: New files.
83981
83982 2005-05-25  Bruno Haible  <bruno@clisp.org>
83983             Derek Price  <derek@ximbiot.com>
83984
83985         * lib/getlogin_r.h: Simplify API documentation.
83986
83987 2005-05-23  Derek Price  <derek@ximbiot.com>
83988
83989         * modules/minmax (Files): Add m4/minmax.m4.
83990         (configure.ac): Add gl_MINMAX.
83991
83992 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83995         so that unistd-safer.h (GPL'ed code) need not be included.
83996
83997 2005-05-22  Bruno Haible  <bruno@clisp.org>
83998
83999         * m4/minmax.m4: New file.
84000         Based on a patch by Derek Price <derek@ximbiot.com>.
84001
84002 2005-05-22  Bruno Haible  <bruno@clisp.org>
84003
84004         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84005         (INT64_MIN): Fix definition.
84006         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84007
84008         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84009         NEED_SIGNED_INT_TYPES.
84010
84011         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84012         HAVE_SYSTEM_INTTYPES.
84013
84014 2005-05-22  Bruno Haible  <bruno@clisp.org>
84015
84016         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84017         Also include <sys/param.h> if it defines MIN, MAX.
84018         Based on a patch by Derek Price <derek@ximbiot.com>.
84019
84020 2005-05-21  Jim Meyering  <jim@meyering.net>
84021
84022         * modules/fts (Files): Add m4/inttypes-pri.m4.
84023         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84024
84025 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         New fts module.
84028         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84029         (setup_dir, free_dir): New functions.
84030         (enter_dir, leave_dir): Define trivial
84031         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84032         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84033         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84034         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84035         Move to fts-cycle.c.
84036         (fts_open): Use setup_dir.
84037         (fts_close): Use free_dir.
84038         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84039         This adds a label and some gotos, but the alternatives were messier.
84040         Check for memory allocation failure when entering a dir.
84041         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84042         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84043         (FTS): New member fts_cycle, that is a union that contains the
84044         old active_dir_ht and cycle_state.  All uses changed to mention
84045         fts_cycle.ht and fts_cycle.state.
84046         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84047         fts.c, with the following changes:
84048         (setup_dir, free_dir): New functions.
84049         (enter_dir): Now returns bool.  Return true if successful, false
84050         if memory exhausted.  All callers changed.
84051         Do not bother partly cleaning up on
84052         memory allocation failure; that is free_dir's job.
84053         However, free ad if hash_insert fails, to avoid memory leak.
84054         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84055         fts->fts_options to see which union member to use.
84056
84057 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84058
84059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84060         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84061
84062 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84063
84064         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84065
84066 2005-05-20  Jim Meyering  <jim@meyering.net>
84067
84068         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84069         Now a macro, to pacify GCC.
84070
84071 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84072
84073         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84074         of -1.
84075
84076 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84077
84078         * lib/chown.c (rpl_chown): Return -1 on failure.
84079
84080 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84083         Don't check for stddef.h.
84084         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84085         don't use its results.
84086         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84087         since we include them unconditionally.  Don't require
84088         AM_STDBOOL_H, since stdbool is a prerequisite.
84089         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84090         since we assume C89 or better.
84091         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84092         as we don't use their results.
84093         Don't check for fchdir, memmove, memset, strrchr, as we use
84094         them unconditionally.
84095         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84096         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84097
84098 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84099
84100         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84101         Include <stddef.h> unconditionally, since we assume C89 now.
84102         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84103         * lib/fts.c: Include fts_.h first, to check interface.
84104         Do not include intprops.h; no longer needed.
84105         Include cycle-check.h and hash.h, since fts_.h no longer does.
84106         Remove unnecessary casts of closedir to void.
84107         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84108         decide whether to decrement nlinks.
84109         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84110         (FTS): Use struct hash_table * instead of Hash_table, so that
84111         we no longer need to include hash.h here.
84112
84113 2005-05-18  Jim Meyering  <jim@meyering.net>
84114
84115         * modules/dirfd (License): Change to LGPL.  Most of the code
84116         is already in the public domain.
84117
84118 2005-05-18  Jim Meyering  <jim@meyering.net>
84119
84120         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84121         Reported by Yoann Vandoorselaere.
84122
84123 2005-05-17  Jim Meyering  <jim@meyering.net>
84124
84125         * m4/fts.m4: New file, from coreutils.
84126
84127 2005-05-17  Jim Meyering  <jim@meyering.net>
84128
84129         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84130
84131 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84132
84133         Sync from coreutils.
84134         * m4/unlinkdir.m4: New file.
84135
84136 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84137
84138         Sync from coreutils.
84139         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84140         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84141         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84142         White space changes only.
84143         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84144         special.
84145         * lib/yesno.c: Include getline.h, not ctype.h.
84146         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84147         Use getline to remove arbitrary restriction on response length.
84148
84149 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84150
84151         * config/srclist-update: Spell out "Street" in FSF postal
84152         mail address; this is the style the FSF seems to prefer.
84153
84154         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84155         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84156         this updates FSF postal mail address.
84157
84158         Sync from coreutils.
84159         * modules/unlinkdir: New file.
84160         * modules/yesno (Depends-on): Add getline.
84161         * MODULES.html.sh (File system functions): Add unlinkdir.
84162
84163 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84164
84165         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84166         lib/strsep.h:
84167         Change the initial comment to refer to GPL, not LGPL.
84168         gnulib-tool will change it to LGPL as needed.
84169
84170         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84171         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84172         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84173         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84174         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84175         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84176         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84177         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84178         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84179         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84180         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84181         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84182         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84183         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84184         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84185         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84186         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84187         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84188         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84189         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84190         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84191         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84192         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84193         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84194         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84195         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84196         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84197         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84198         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84199         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84200         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84201         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84202         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84203         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84204         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84205         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84206         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84207         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84208         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84209         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84210         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84211         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84212         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84213         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84214         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84215         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84216         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84217         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84218         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84219         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84220         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84221         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84222         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84223         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84224         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84225         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84226         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84227         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84228         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84229         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84230         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84231         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84232         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84233         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84234         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84235         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84236         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84237         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84238         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84239         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84240         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84241         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84242         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84243         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84244         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84245         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84246         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84247         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84248         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84249         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84250         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84251         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84252         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84253         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84254         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84255         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84256         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84257         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84258         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84259         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84260         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84261         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84262         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84263         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84264         lib/yesno.c, lib/yesno.h:
84265         Update FSF postal mail address.
84266
84267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84270         tests/test-memmem.c, tests/test-stpncpy.c:
84271         Update FSF postal mail address.
84272
84273 2005-05-13  Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84276         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84277         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84278         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84279         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84280         Add support for 64-bit integers in the MSVC compiler.
84281
84282 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84283
84284         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84285
84286 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84287
84288         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84289
84290 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84291
84292         * doc/getdate.texi (General date syntax): Don't say that date
84293         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84294         Problem reported by Nic Ferrier.
84295
84296 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84297
84298         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84299         specified in ai_socktype. Fix invalid ai_protocol
84300         check. ai_protocol is usually set to 0 or depending on
84301         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84302         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84303         ai_socktype / ai_protocol in the returned addrinfo structure.
84304
84305 2005-05-10  Simon Josefsson  <jas@extundo.com>
84306
84307         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84308         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84309
84310 2005-05-10  Karl Berry  <karl@gnu.org>
84311
84312         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84313         (from http://www.gnu.org/licenses).
84314         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84315         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84316         fdl.texi suffices.
84317
84318 2005-05-10  Karl Berry  <karl@gnu.org>
84319
84320         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84321         (COPYING.DOC): remove.
84322
84323         * config/srclist-update: new FSF address.
84324
84325 2005-05-10  Derek Price  <derek@ximbiot.com>
84326
84327         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84328         possible.
84329
84330 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84331             Bruno Haible  <bruno@clisp.org>
84332
84333         * modules/inet_ntop: New file.
84334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84335         inet_ntop.
84336
84337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84338             Bruno Haible  <bruno@clisp.org>
84339
84340         * m4/inet_ntop.m4: New file.
84341
84342 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84343             Bruno Haible  <bruno@clisp.org>
84344
84345         * lib/inet_ntop.h: New file.
84346         * lib/inet_ntop.c: New file, from glibc with modifications.
84347
84348 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84349
84350         * modules/time_r (License): Change to LGPL.
84351         * modules/extensions (License): Change to LGPL.  Actually,
84352         the license is more permissive than that, but currently gnulib-tool
84353         doesn't know how to handle more-permissive licenses.
84354
84355         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84356         Problem reported by Dave Love.
84357
84358 2005-05-08  Jim Meyering  <jim@meyering.net>
84359
84360         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84361         blank.
84362
84363 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * modules/argmatch (Depends-on): Add stdbool.
84366         * modules/backupfile (Depends-on): Likewise.
84367         * modules/chdir-long (Depends-on): Likewise.
84368         * modules/closeout (Depends-on): Likewise.
84369         * modules/cycle-check (Depends-on): Likewise.
84370         * modules/dirname (Depends-on): Likewise.
84371         * modules/fnmatch (Depends-on): Likewise.
84372         * modules/fsusage (Depends-on): Likewise.
84373         * modules/fwriteerror (Depends-on): Likewise.
84374         * modules/getcwd (Depends-on): Likewise.
84375         * modules/getloadavg (Depends-on): Likewise.
84376         * modules/hard-locale (Depends-on): Likewise.
84377         * modules/makepath (Depends-on): Likewise.
84378         * modules/mountlist (Depends-on): Likewise.
84379         * modules/nanosleep (Depends-on): Likewise.
84380         * modules/posixtm (Depends-on): Likewise.
84381         * modules/quotearg (Depends-on): Likewise.
84382         * modules/readtokens (Depends-on): Likewise.
84383         * modules/readtokens0 (Depends-on): Likewise.
84384         * modules/readutmp (Depends-on): Likewise.
84385         * modules/save-cwd (Depends-on): Likewise.
84386         * modules/strftime (Depends-on): Likewise.
84387         * modules/userspec (Depends-on): Likewise.
84388         * modules/utimecmp (Depends-on): Likewise.
84389         * modules/xgetcwd (Depends-on): Likewise.
84390         * modules/xnanosleep (Depends-on): Likewise.
84391         * modules/xstrtod (Depends-on): Likewise.
84392         * modules/yesno (Depends-on): Likewise.
84393
84394 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84397         needless checks.
84398
84399 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84400
84401         Merge from coreutils.  Among other things,
84402         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84403         * lib/fd-safer.c: New file.
84404         * lib/fcntl-safer.h, open-safer.c: Remove.
84405         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84406         * lib/dup-safer.c: Include unistd-safer.h first.
84407         Don't include errno.h.
84408         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84409         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84410         * lib/file-type.c: Rely on file-type.h change.
84411         * lib/getloadavg.c: Include unistd-safer.h.
84412         (getloadavg): Use safer open.
84413         * lib/getusershell.c: Include "stdio-safer.h".
84414         (getusershell): Use safer fopen.
84415         * lib/long-options.c (long_options): Use NULL rather than 0.
84416         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84417         'free'.
84418         * lib/modechange.c: Likewise.
84419         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84420         (MODE_DONE): New constant.
84421         (struct mode_change): Remove 'next' member.
84422         (make_node_op_equals): New function; like the old one of the
84423         same name, except it allocates an array.
84424         (mode_compile, mode_create_from_ref): Use it.
84425         (mode_compile): Allocate result as an array, not a linked list.
84426         Parse octal string ourself, so that we catch mistakes like "+0".
84427         (mode_adjust): Arg is an array, not a linked list.
84428         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84429         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84430         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84431         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84432         Remove.  This is now stat-macros.h's job.
84433         (talloc): Remove.  All callers replaced by xalloc, so that
84434         our invokers don't have to worry about reporting memory failures.
84435         (make_node_op_equals): Remove.
84436         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84437         New constants.
84438         (struct mode_change): Moved here from modechange.h.
84439         (mode_append_entry): Remove.
84440         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84441         apps to have incorrect behavior.  Use simpler algorithm for head
84442         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84443         Detect more invalid usages rather than having somewhat-random behavior.
84444         Don't insert an "a=" action, as that leads to incorrect behavior.
84445         (mode_compile, mode_create_from_ref): Return NULL on error instead
84446         of an enum, since now there's only one way to have an error.  All
84447         callers changed.
84448         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84449         at the correct time.  Simplify calculation of "+u" and its ilk.
84450         Don't mishandle "+X".
84451         (mode_free): Remove "register" and localize decls.
84452         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84453         (struct mode_change): Move to modechange.c; callers don't
84454         need to see this stuff.
84455         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84456         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84457         (mode_change, mode_adjust): Reflect the new signatures noted above.
84458         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84459         that might redefine system include files.
84460         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84461         (my_usleep): Use NULL rather than (void *) 0.
84462         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84463         Use siginterrupt to specify that system calls should be interrupted.
84464         (rpl_nanosleep): Move initialization of suspended closer to call of
84465         my_usleep.
84466         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84467         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84468         (desirable_utmp_entry): New function.
84469         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84470         using x2nrealloc, to simplify logic.
84471         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84472         size calculation.  Do not assume utmp file is a regular file.
84473         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84474         (READ_UTMP_CHECK_PIDS): New constant.
84475         * lib/save-cwd.c: Include unistd-safer.h.
84476         (save_cwd): Use fd_safer.
84477         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84478         [!_LIBC] Include "stat-macros.h" instead.
84479         * lib/unistd-safer.h (fd_safer): New decl.
84480
84481 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * modules/getloadavg (Depends-on): Add unistd-safer.
84484         * modules/getusershell (Depends-on): Add stdio-safer.
84485         * modules/lstat (Depends-on): Remove xalloc.
84486         * modules/mkstemp (Depends-on): Add stat-macros.
84487         * modules/modechange (Depends-on): Remove xstrtol.
84488         Add stat-macros, xalloc.
84489         * modules/save-cwd (Depends-on): Add unistd-safer.
84490         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84491         * modules/unistd-safer (Files): Add lib/fd-safer.c
84492         (Makefile.am): Remove lib_SOURCES.
84493
84494         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84495         Remove fcntl-safer; unistd-safer supersedes it.
84496
84497 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84498
84499         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84500         AC_HEADER_STAT.
84501         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84502         (gl_PREREQ_CHOWN): Remove.
84503         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84504         it.  Don't require AC_HEADER_STAT.
84505         (gl_PREREQ_LSTAT): Remove.
84506         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84507         Don't require AC_HEADER_STAT.
84508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84509         (gl_PREREQ_RMDIR): Remove.
84510         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84511         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84512         the stat-macros module a prerequisite.
84513         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84514         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84515         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84516         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84517         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84518         variable names.
84519         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84520         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84521         variable prefixes.
84522         * m4/fcntl-safer.m4: Remove.
84523         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84524         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84525         Invoke gl_PREREQ_FD_SAFER.
84526         (gl_PREREQ_FD_SAFER): New macro.
84527         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84528         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84529         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84530         Remove duplicate call to AC_LIBOBJ(readutmp).
84531         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84532
84533         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84534         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84535
84536 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         * MODULES.html.sh (Misc): Add byteswap.
84539
84540 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84541
84542         * modules/getcwd (Depends-on): Add extensions.
84543         * modules/openat (Depends-on): Likewise.
84544
84545 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84546
84547         * modules/byteswap: New file.
84548
84549 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84550
84551         * m4/byteswap.m4: New file.
84552
84553 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84554
84555         * lib/byteswap_.h: New file.
84556
84557 2005-04-25  Karl Berry  <karl@gnu.org>
84558
84559         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84560
84561 2005-04-25  Albert Chin  <china@thewrittenword.com>
84562
84563         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84564         Toolkit C bug.
84565
84566 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84567
84568         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84569         (func_ln_if_changed): Remove forcibly for no error message
84570         in case file does not exist.
84571
84572 2005-04-19  Simon Josefsson  <jas@extundo.com>
84573
84574         * gnulib-tool (Options): Make --symlink mean --symbolic.
84575
84576 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84577
84578         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84579
84580 2005-04-16  Simon Josefsson  <jas@extundo.com>
84581
84582         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84583
84584 2005-04-15  Simon Josefsson  <jas@extundo.com>
84585
84586         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84587
84588 2005-04-15  Simon Josefsson  <jas@extundo.com>
84589
84590         * gnulib-tool: Rename --symlink to --symbolic.
84591
84592 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84593
84594         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84595         symbolic links to files instead of copying/moving.  Add --aux-dir,
84596         specifying directory relative --dir where auxiliary build tools
84597         are placed.
84598
84599 2005-04-14  Bruno Haible  <bruno@clisp.org>
84600
84601         * modules/allocsa (License): Change to LGPL.
84602         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84603
84604 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84607         that "UTC +1 second" continues to work.  Problem reported
84608         by Dmitry V. Levin.
84609         (relunit_snumber): New rule.
84610         (relunit): Use it.
84611
84612 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * lib/getdate.y (universal_time_zone_table): New constant.
84615         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84616         universal_time_zone_table.
84617         (lookup_zone): Prefer universal_time_zone_table to
84618         local_time_zone_table, so that "GMT" time stamps are allowed in
84619         London during the summer.  Problem reported by Ian Abbott.
84620
84621 2005-04-12  Jim Meyering  <jim@meyering.net>
84622
84623         * lib/human.c (humblock): Set *options even when returning due to
84624         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84625         warning from gcc-4.
84626
84627 2005-04-09  Jim Meyering  <jim@meyering.net>
84628
84629         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84630         -Wuninitialized: initialize tm0.tm_year.
84631
84632 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84635         count, since there's no maximum.  All uses changed.
84636         Add member dsts_seen.
84637         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84638         not being INT_MAX.
84639         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84640         Use pc_rels_seen to decide whether a date is absolute.
84641
84642         * lib/getdate.y (number): Don't overwrite year.
84643         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84644         check.
84645
84646 2005-04-02  Simon Josefsson  <jas@extundo.com>
84647
84648         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84649         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84650
84651 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84652
84653         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84654         where no absolute path name can be longer than PATH_MAX.
84655
84656 2005-03-27  Jim Meyering  <jim@meyering.net>
84657
84658         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84659
84660 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84663         "one's complement" -> "ones' complement" in comment, as per Knuth.
84664         "value of type" -> "type or expression" in comment.
84665         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84666
84667 2005-03-26  Jim Meyering  <jim@meyering.net>
84668
84669         Comment nits.
84670         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84671         Correct typos: s/or/of/.
84672
84673 2005-03-26  Jim Meyering  <jim@meyering.net>
84674
84675         * modules/check-include-files: Move to ../ and rename to...
84676         * check-module: ...this.
84677
84678 2005-03-25  Jim Meyering  <jim@meyering.net>
84679
84680         * modules/xvasprintf (Files): Add xalloc.h.
84681
84682 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84683
84684         * modules/gettext (Files): config/config.rpath ->
84685         build-aux/config.rpath
84686         * modules/iconv (Files): Likewise.
84687         Problem reported by Oskar Liljeblad.
84688
84689 2005-03-23  Jim Meyering  <jim@meyering.net>
84690
84691         * modules/check-include-files: New script to check for
84692         missing dependencies, multiple includes, etc.
84693
84694         * modules/c-strtold (Depends-on): Add xalloc.
84695         * modules/c-strtod (Depends-on): Add xalloc.
84696         * modules/hash (Depends-on): Add xalloc.
84697         (Files): Remove lib/xalloc.h.
84698
84699         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84700         * modules/userspec (Files): Add lib/inttostr.h.
84701
84702 2005-03-23  Jim Meyering  <jim@meyering.net>
84703
84704         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84705
84706 2005-03-22  Jim Meyering  <jim@meyering.net>
84707
84708         * modules/stat-macros: New module.
84709         * modules/canonicalize, modules/euidaccess, modules/file-type,
84710         * modules/filemode, modules/lchown, modules/makepath,
84711         * modules/rmdir, modules/stat: Depend on new stat-macros module
84712         rather than listing lib/stat-macros.h manually.
84713         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84714
84715 2005-03-22  Jim Meyering  <jim@meyering.net>
84716
84717         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84718
84719 2005-03-22  Bruno Haible  <bruno@clisp.org>
84720
84721         * config/srclist.txt: Replace target directory 'config' with
84722         'build-aux'.
84723         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84724         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84725         ../build-aux/.
84726
84727 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84728
84729         * modules/chdir-long (Depends-on): Add mempcpy.
84730
84731         * modules/acl, modules/backupfile, modules/c-strtod,
84732         modules/c-strtold, modules/canon-host, modules/canonicalize,
84733         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84734         modules/exclude, modules/exitfail, modules/file-type,
84735         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84736         modules/getdate, modules/getline, modules/getpagesize,
84737         modules/getpass, modules/getugroups, modules/group-member,
84738         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84739         modules/inttostr, modules/long-options, modules/makepath,
84740         modules/md5, modules/memcasecmp, modules/memcoll,
84741         modules/modechange, modules/mountlist, modules/path-concat,
84742         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84743         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84744         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84745         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84746         modules/strftime, modules/strndup, modules/strverscmp,
84747         modules/timespec, modules/unlocked-io, modules/userspec,
84748         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84749         modules/yesno:
84750         Remove lib_SOURCES line from Makefile.am section, as this is now
84751         done automatically by the corresponding Autoconf macro.
84752
84753 2005-03-21  Jim Meyering  <jim@meyering.net>
84754
84755         Changes imported from coreutils.
84756
84757         * lib/cycle-check.c: Don't include xalloc.h.
84758
84759         * lib/path-concat.c: Don't include assert.h.
84760         (path_concat): Remove assertion that would have triggered
84761         for ABASE starting with more than one slash.
84762         Reported by Andreas Schwab.
84763
84764         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84765         properly when ABASE is an absolute file name.
84766         Correct the description of this function.
84767         Include <assert.h>.
84768         Add an assertion and a test driver.
84769         This fixes a bug introduced on 2004-07-02.
84770         Andreas Schwab reported the resulting failure of cp --parents:
84771         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84772
84773 2005-03-21  Jim Meyering  <jim@meyering.net>
84774
84775         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84776         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84777
84778 2005-03-21  Jim Meyering  <jim@meyering.net>
84779         and  Paul Eggert  <eggert@cs.ucla.edu>
84780
84781         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84782         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84783         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84784         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84785         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84786         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84787         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84788         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84789         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84790         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84791         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84792         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84793         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84794         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84795         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84796         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84797         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84798         for these modules.
84799
84800 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84803         (which shouldn't happen), generate nothing instead of returning 0
84804         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84805
84806 2005-03-16  Bruno Haible  <bruno@clisp.org>
84807
84808         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84809         HAVE_LONGLONG_64BIT.
84810
84811 2005-03-16  Bruno Haible  <bruno@clisp.org>
84812
84813         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84814         HAVE_LONGLONG_64BIT.
84815
84816 2005-03-16  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84819         HAVE_LONGLONG_64BIT.
84820
84821 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84822
84823         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84824         reliably distinguish strftime failure from empty output on POSIX
84825         hosts.
84826
84827 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84828
84829         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84830         (iconv_string): Don't guess a size-zero buffer, as that might cause
84831         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84832         result would be 'too large', where 'too large' is (heuristically)
84833         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84834         overflow concerns.  This will prevent some unwanted malloc failures
84835         when the inputs are very large.
84836
84837 2005-03-15  Karl Berry  <karl@gnu.org>
84838
84839         * config/srclist.txt (config.rpath): from gettext.
84840         * config/config.rpath: update.
84841
84842 2005-03-15  Bruno Haible  <bruno@clisp.org>
84843
84844         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84845         to 'negate'.
84846
84847         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84848         variable.
84849
84850         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84851         results.
84852
84853 2005-03-14  Simon Josefsson  <jas@extundo.com>
84854
84855         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84856         <fx@gnu.org>.
84857
84858 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84861         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84862         intprops.h.
84863         * lib/strtol.c: Likewise.
84864
84865 2005-03-14  Jim Meyering  <jim@meyering.net>
84866
84867         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84868         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84869         to be nonzero so that we (and caller) can detect the difference
84870         between a valid zero-length expansion and an error return, even
84871         when the underlying strftime fails before writing anything into
84872         that location.
84873
84874 2005-03-14  Bruno Haible  <bruno@clisp.org>
84875
84876         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84877         Update from GNU gettext 0.14.3.
84878
84879 2005-03-10  Jim Meyering  <jim@meyering.net>
84880
84881         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84882
84883 2005-03-10  Jim Meyering  <jim@meyering.net>
84884
84885         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84886         so that this module works on systems without fchdir.
84887
84888 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         Factor int-properties macros into a single file, except for
84891         glibc-related files.
84892         * lib/intprops.h: New file.
84893         * lib/getloadavg.c: Include it instead of limits.h.
84894         (INT_STRLEN_BOUND): Remove.
84895         * lib/human.c: Include intprops.h.
84896         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84897         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84898         302/1000.
84899         * lib/inttostr.h: Include intprops.h instead of limits.h.
84900         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84901         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84902         for consistency with intprops.h.
84903         (time_t_is_integer, twos_complement_arithmetic): Use them.
84904         * lib/sig2str.h: Include <signal.h>, intprops.h.
84905         (INT_STRLEN_BOUND): Remove.
84906         * lib/strftime.c (TYPE_SIGNED): Remove.
84907         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84908         * lib/strtol.c: Adjust comments to match intprops.h.
84909         * lib/userspec.c: Include intprops.h.
84910         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84911         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84912         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84913         instead of rolling our own expressions.
84914         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84915
84916         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84917         instead of int.
84918         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84919         the right thing even if adding 1900 would overflow.  Similarly
84920         for tm_mon + 1 and tm_yday + 1.
84921         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84922         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84923         (DO_SIGNED_NUMBER): New macro.
84924         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84925
84926 2005-03-07  Bruno Haible  <bruno@clisp.org>
84927
84928         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84929
84930 2005-03-07  Bruno Haible  <bruno@clisp.org>
84931
84932         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84933
84934 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84935
84936         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84937         (func_import): Only replace files via --import when they have actually
84938         changed.
84939
84940 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84941
84942         * m4/mmap-anon.m4: New file.
84943         * m4/pagealign_alloc.m4: New file.
84944
84945 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84946             Bruno Haible  <bruno@clisp.org>
84947
84948         * modules/pagealign_alloc: New file.
84949         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84950
84951 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84952             Bruno Haible  <bruno@clisp.org>
84953
84954         * lib/pagealign_alloc.h: New file.
84955         * lib/pagealign_alloc.c: New file.
84956
84957 2005-03-03  Bruno Haible  <bruno@clisp.org>
84958
84959         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84960         Use an all-permissive copyright notice, recommended by RMS.
84961
84962 2005-03-02  Bruno Haible  <bruno@clisp.org>
84963
84964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84965         of AIX, the replacement has to be done only after <string.h> is
84966         included, therefore not in config.h. stpncpy.h does the replacement,
84967         and stpncpy.c uses it.
84968
84969 2005-03-02  Bruno Haible  <bruno@clisp.org>
84970
84971         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84972         stpncpy.c uses it.
84973
84974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84975
84976         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84977         The workaround isn't strictly needed for POSIX conformance, and
84978         it's too much of a pain to configure and maintain.  We'll ask
84979         people to fix their kernels instead.
84980         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84981         (NANOSLEEP_BUG_WORKAROUND): Remove.
84982         (xnanosleep): Remove the workaround.
84983
84984 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84987         Reported by Derek Price.
84988         (Include): Add "timespec.h".
84989
84990         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84991
84992 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84995         to detect nanosleep bug.
84996
84997 2005-03-01  Bruno Haible  <bruno@clisp.org>
84998
84999         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85000
85001 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         * modules/gethrxtime: New file.
85004         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85005         (Depends-on): Add gethrxtime.
85006         (configure.ac): Add gl_XNANOSLEEP.
85007         (Makefile.am): Remove lib_SOURCES line.
85008
85009 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85012         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85013
85014 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85017         * lib/timespec.h (gettime): Return void, since it always
85018         succeeds now.  All uses changed.
85019         * lib/gettime.c (gettime): Likewise.
85020         [HAVE_NANOTIME]: Prefer nanotime.
85021         Assume gettimeofday succeeds, as POSIX requires.
85022         Assime time () succeeds, since other code already does.
85023         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85024         (timespec_subtract): Remove.
85025         (NANOSLEEP_BUG_WORKAROUND): New constant.
85026         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85027         things considerably.  Use it only on GNU/Linux hosts, since the
85028         workaround shouldn't be needed elsewhere.
85029
85030 2005-02-24  Bruno Haible  <bruno@clisp.org>
85031
85032         * modules/gettext (Files): Add m4/glibc2.m4.
85033
85034 2005-02-24  Bruno Haible  <bruno@clisp.org>
85035
85036         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85037         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85038         * m4/progtest.m4:
85039         Update from GNU gettext 0.14.2.
85040         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85041
85042 2005-02-24  Bruno Haible  <bruno@clisp.org>
85043
85044         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85045         * lib/config.charset: Update from GNU gettext 0.14.2.
85046
85047 2005-02-24  Bruno Haible  <bruno@clisp.org>
85048
85049         * lib/gettext.h: Update from GNU gettext 0.14.2.
85050
85051 2005-02-23  Simon Josefsson  <jas@extundo.com>
85052
85053         * m4/iconvme.m4: New file.
85054
85055 2005-02-23  Jim Meyering  <jim@meyering.net>
85056
85057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85058         change.
85059         Thanks to Bruno Haible for catching it.
85060
85061 2005-02-22  Simon Josefsson  <jas@extundo.com>
85062
85063         * modules/iconvme: New file.
85064
85065         * MODULES.html.sh: Add iconvme.
85066
85067 2005-02-22  Simon Josefsson  <jas@extundo.com>
85068
85069         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85070
85071 2005-02-22  Simon Josefsson  <jas@extundo.com>
85072
85073         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85074
85075 2005-02-22  Jim Meyering  <jim@meyering.net>
85076
85077         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85078         s/ifndef/ifdef/.
85079
85080 2005-02-20  Neil Conway  <neilc@samurai.com>
85081
85082         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85083         returned by OSX/Darwin if the specified buffer is not large
85084         enough for the hostname.
85085
85086 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85087
85088         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85089         pass it to _help, otherwise the latter coredumps trying to
85090         dereference state.root_argp.
85091
85092 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85093
85094         * modules/chdir-long (Depends-on): Add memrchr.
85095         * modules/memrchr (Files): Add lib/memrchr.h.
85096         (Include): "memrchr.h".
85097
85098 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85101
85102 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         * lib/memrchr.h: New file.
85105         * lib/chdir-long.c: Include it.
85106         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85107         Don't bother including stddef.h.
85108
85109 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85110
85111         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85112         inclusion.
85113         Include <sys/types.h>, for dev_t.
85114         (ME_DUMMY, ME_REMOTE): Move from here....
85115         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85116         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85117         Dmitry V. Levin.
85118         Include mountlist.h first, to test the interface.
85119
85120 2005-01-29  Bruno Haible  <bruno@clisp.org>
85121
85122         * lib/progname.c (program_name): Initialize.
85123         Needed when linking statically on MacOS X.
85124
85125 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85126
85127         Sync from coreutils.
85128         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85129         (Depends-on): Add c-strtod.
85130         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85131
85132 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         Sync from coreutils.
85135         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85136
85137         Remove files that are specific to coreutils.
85138         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85139
85140 2005-01-28  Bruno Haible  <bruno@clisp.org>
85141
85142         * modules/javacomp: New file.
85143         * MODULES.html.sh (Java): Add javacomp.
85144
85145 2005-01-28  Bruno Haible  <bruno@clisp.org>
85146
85147         * m4/javacomp.m4: New file, from GNU gettext.
85148
85149 2005-01-28  Bruno Haible  <bruno@clisp.org>
85150
85151         * lib/javacomp.sh.in: New file, from GNU gettext.
85152         * lib/javacomp.h: New file, from GNU gettext.
85153         * lib/javacomp.c: New file, from GNU gettext.
85154
85155 2005-01-26  Simon Josefsson  <jas@extundo.com>
85156
85157         * lib/gai_strerror.c: Use GPL in header.
85158
85159 2005-01-26  Bruno Haible  <bruno@clisp.org>
85160
85161         * modules/javaexec: New file.
85162         * MODULES.html.sh (Java): Add javaexec.
85163
85164 2005-01-26  Bruno Haible  <bruno@clisp.org>
85165
85166         * m4/javaexec.m4: New file, from GNU gettext.
85167
85168 2005-01-26  Bruno Haible  <bruno@clisp.org>
85169
85170         * lib/javaexec.sh.in: New file, from GNU gettext.
85171         * lib/javaexec.h: New file, from GNU gettext.
85172         * lib/javaexec.c: New file, from GNU gettext.
85173
85174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85175
85176         * modules/lchown (Depends-on): Remove lchown.h
85177
85178 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85179
85180         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85181         must be defined if the header file was not found, in order
85182         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85183
85184 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85185
85186         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85187         initializers for struct pentry_state.
85188         (__argp_error): Check return value of __asprintf
85189         (__argp_failure): Translate error message
85190
85191         * lib/argp-parse.c: Removed braces around the expansion of N_()
85192
85193 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85194
85195         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85196         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85197         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85198         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85199         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85200         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85201         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85202         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85203         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85204         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85205         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85206         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85207         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85208         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85209         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85210         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85211         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85212         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85213         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85214         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85215         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85216         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85217         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85218         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85219         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85220         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85221         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85222         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85223         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85224         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85225         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85226         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85227         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85228         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85229         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85230         Use an all-permissive copyright notice, recommended by RMS.
85231
85232 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         * modules/chdir-long (Depends-on): Remove mempcpy.
85235
85236 2005-01-21  Jim Meyering  <jim@meyering.net>
85237
85238         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85239         same value as for Solaris 9.
85240
85241         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85242         component length.  This included changing the parameter to be
85243         of type `char *' rather than `char const *'.
85244         * lib/chdir-long.h (chdir_long): Update prototype.
85245
85246         * lib/openat.c (fdopendir, fstatat): New functions.
85247         * lib/openat.h: Include headers required for use of DIR and struct
85248         stat.
85249         [AT_SYMLINK_NOFOLLOW]: Define.
85250         (fdopendir, fstatat): Add prototypes.
85251
85252 2005-01-21  Bruno Haible  <bruno@clisp.org>
85253
85254         * modules/classpath: New file.
85255         * MODULES.html.sh (Java): Add classpath.
85256
85257 2005-01-21  Bruno Haible  <bruno@clisp.org>
85258
85259         * lib/classpath.h: New file, from GNU gettext.
85260         * lib/classpath.c: New file, from GNU gettext.
85261
85262 2005-01-20  Simon Josefsson  <jas@extundo.com>
85263
85264         * modules/version-etc-fsf: New file.
85265
85266 2005-01-20  Simon Josefsson  <jas@extundo.com>
85267
85268         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85269         * lib/version-etc.c: Remove version_etc_copyright.
85270         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85271         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85272
85273 2005-01-20  Simon Josefsson  <jas@extundo.com>
85274
85275         * lib/base64.h (isbase64): Add.
85276
85277         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85278         using a unsigned prototype, don't inline.
85279         (base64_decode): Use it.
85280
85281 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85284         it.
85285
85286 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * lib/save-cwd.c (save_cwd): Remove code to support the case
85289         where fchdir is missing or flaky.
85290
85291 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85294
85295 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85298         AC_LIBSOURCES now does this.
85299         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85300         with new ullong_max module.
85301
85302 2005-01-19  Bruno Haible  <bruno@clisp.org>
85303
85304         * modules/sh-quote: New file.
85305         * MODULES.html.sh (Executing programs): Add sh-quote.
85306
85307 2005-01-19  Bruno Haible  <bruno@clisp.org>
85308
85309         * lib/sh-quote.h: New file, from GNU gettext.
85310         * lib/sh-quote.c: New file, from GNU gettext.
85311
85312 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         Merge from coreutils.
85315         * m4/ullong_max.m4: New file.
85316         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85317         (gl_MACROS): Assume localeconv exists.
85318
85319 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         Merge changes from coreutils, as described below in several
85322         changelogs dated today.
85323
85324         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85325         (O_DIRECTORY): Remove; not needed here, since "." must be
85326         a directory.  All uses removed.
85327         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85328         universal on Suns, and we also need to test for IRIX.
85329         Revamp code to use 'if' rather than '#if'.
85330         Avoid unnecessary comparison of cwd->desc to 0.
85331
85332         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85333         for known valid error numbers rather than observed invalid ones.
85334
85335 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * modules/ullong_max: New file.
85338
85339         * modules/chdir-long, modules/openat: New files.
85340         * modules/save-cwd (Depends-on): Depend on chdir-long.
85341         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85342
85343 2005-01-18  Jim Meyering  <jim@meyering.net>
85344
85345         Merge from coreutils.
85346         * m4/chdir-long.m4, m4/openat.m4: New files.
85347         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85348         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85349         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85350         is sane and DOES follow symlinks.  Besides, testing 20 different
85351         systems found no broken chown implementations.
85352         Prompted by a change in rsync's copy of this macro.
85353         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85354
85355         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85356
85357         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85358         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85359         NULL-means-set-to-current-time semantics.
85360         Remove temporary file immediately, rather than waiting
85361         for configure's at-exit trap code to do it.
85362
85363 2005-01-18  Jim Meyering  <jim@meyering.net>
85364
85365         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85366
85367         * lib/utimens.c (futimens): Account for the fact that futimes
85368         can also fail with errno == ENOSYS or errno == ENOENT.
85369         Patch from Dmitry V. Levin.
85370
85371         Change the name of the robust chdir function from chdir to chdir_long.
85372         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85373         (restore_cwd): Use chdir_long, not chdir.
85374         * lib/chdir-long.c: Renamed from chdir.c.
85375         * lib/chdir-long.h: Renamed from chdir.h.
85376         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85377         Hurd.
85378
85379 2005-01-18  Bruno Haible  <bruno@clisp.org>
85380
85381         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85382         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85383         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85384         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85385         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85386         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85387         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85388         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85389         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85390         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85391         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85392         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85393         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85394         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85395         Use an all-permissive copyright notice, recommended by RMS.
85396
85397 2005-01-18  Bob Proulx  <bob@proulx.com>
85398
85399         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85400         simplify offsetof() macro construct to avoid compile failure with
85401         native HP-UX 11.0 ANSI C compiler.
85402
85403 2005-01-17  Bruno Haible  <bruno@clisp.org>
85404
85405         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85406         redundant because stpncpy.m4 takes care of it.
85407
85408 2005-01-17  Bruno Haible  <bruno@clisp.org>
85409
85410         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85411
85412 2005-01-17  Bruno Haible  <bruno@clisp.org>
85413
85414         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85415         used.
85416
85417 2005-01-17  Bruno Haible  <bruno@clisp.org>
85418
85419         * lib/fwriteerror.h (fwriteerror): Change specification to include
85420         fclose.
85421         * lib/fwriteerror.c: Include <stdbool.h>.
85422         (fwriteerror): At the end, close the file stream. Record whether
85423         stdout was already closed.
85424
85425 2005-01-17  Bruno Haible  <bruno@clisp.org>
85426
85427         * lib/execute.c (environ): Declare if needed.
85428         * lib/pipe.c (environ): Likewise.
85429         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85430
85431 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85432
85433         * modules/argp: Depend on vsnprintf
85434
85435 2005-01-10  Jim Meyering  <jim@meyering.net>
85436
85437         * modules/closeout (Depends-on): Add atexit.
85438
85439 2005-01-06  Bruno Haible  <bruno@clisp.org>
85440
85441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85442
85443 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85446         definitions to be after all include files, to avoid collisions.
85447         Problem reported by Bob Proulx.
85448
85449 2005-01-04  Jim Meyering  <jim@meyering.net>
85450
85451         Changes imported from coreutils.
85452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85453         as the mkstemp template, use a temporary directory and an
85454         8.3-friendly template to avoid trouble on systems like DJGPP.
85455         Reported by Juan M. Guerrero via Stepan Kasal.
85456         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85457         close. Remove the temporary directory right away, rather than waiting
85458         for configure's at-exit trap code to do it.
85459         Suggestion from Stepan Kasal.
85460
85461 2005-01-01  Simon Josefsson  <jas@extundo.com>
85462
85463         * gnulib-tool: Print #include directives when --import'ing.
85464
85465 2004-12-28  Simon Josefsson  <jas@extundo.com>
85466
85467         * tests/test-base64.c: Include required header files.  Remove
85468         unused variables.
85469
85470 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * modules/error (Depends-on): Remove gettext.
85473
85474 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85475
85476         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85477         not needed.  This removes a dependency on the gettext module.
85478         [defined _LIBC]: Do not include <libintl.h>; not needed.
85479
85480 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85481
85482         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85483         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85484
85485 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85486
85487         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85488         HAVE_DECL_STRTOLD.
85489
85490 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85491
85492         * modules/getdate (Depends-on): Remove alloca-opt.
85493
85494 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85497
85498 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85499
85500         * lib/argp-parse.c: Include <stddef.h>.
85501         (alignof, alignto): New macros.
85502         (parser_init): Don't assume that void * is aligned sufficiently
85503         for struct option.
85504
85505         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85506         need to extend the stack.
85507         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85508         large.
85509
85510 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85511
85512         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85513
85514 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85515
85516         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85517         (2004-10-24) change.  Apparently this was a false alarm.
85518
85519         * modules/getdate: Depend on alloca-opt, not alloca.
85520
85521 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85522
85523         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85524         Remove now-obsolete comment about AIX.
85525         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85526         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85527         (YYMAXDEPTH): New macro.
85528
85529 2004-12-18  Simon Josefsson  <jas@extundo.com>
85530
85531         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85532
85533 2004-12-18  Bruno Haible  <bruno@clisp.org>
85534
85535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85536
85537 2004-12-18  Bruno Haible  <bruno@clisp.org>
85538
85539         * lib/fatal-signal.c (fatal_signals): Make non-const.
85540         (init_fatal_signals): New function.
85541         (uninstall_handlers, install_handlers): Ignore signals that were set to
85542         SIG_IGN.
85543         (at_fatal_signal): Call init_fatal_signals.
85544         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85545         SIG_IGN.
85546         Reported by Paul Eggert.
85547
85548 2004-12-18  Bruno Haible  <bruno@clisp.org>
85549
85550         * doc/alloca.texi: New file.
85551         * doc/alloca-opt.texi: New file.
85552
85553 2004-12-17  Jim Meyering  <jim@meyering.net>
85554
85555         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85556         Otherwise, install-sh could exit with improper exit status when
85557         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85558
85559 2004-12-16  Simon Josefsson  <jas@extundo.com>
85560
85561         * tests/test-base64.c: Add license.
85562
85563 2004-12-15  Stepan Kasal  <address@hidden>
85564
85565         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85566
85567 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * modules/getcwd (Files): Add m4/d-ino.m4.
85570         Suggested by Mark D. Baushke.
85571
85572 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85573
85574         * lib/getdate.y (textint): New member "negative".
85575         (time_zone_hhmm): New function.
85576         Expect 14 shift-reduce conflicts, not 13.
85577         (o_colon_minutes): New rule.
85578         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85579         (yylex): Set the "negative" member of signed numbers.
85580
85581 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85582
85583         * doc/getdate.texi (Time of day items, Time zone items):
85584         Describe new formats +00:00, UTC+00:00.
85585
85586 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85587
85588         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85589         spurious "-l"s.  Problem reported by Stepan Kasal.
85590
85591 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85592
85593         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85594         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85595
85596 2004-12-04  Simon Josefsson  <jas@extundo.com>
85597
85598         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85599         Vandoorselaere <yoann@prelude-ids.org>.
85600
85601 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         Changes imported from coreutils.
85604         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85605         exist.
85606         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85607
85608 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85609
85610         Changes imported from coreutils.
85611         * lib/hard-locale.c: Assume <locale.h> exists.
85612         Include "strdup.h".
85613         (GLIBC_VERSION): New macro.
85614         (hard_locale): Assume setlocale exists.
85615         Rewrite to avoid #ifdef.
85616         Use strdup rather than malloc + strcpy.
85617         * lib/human.c: Assume <locale.h> exists.
85618         (human_readable): Assume localeconv exists.
85619
85620 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85621
85622         * modules/hard-locale (Depends-on): Add strdup.
85623
85624 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85625
85626         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85627         convert T2, not T.  (Imported from libc.)
85628
85629 2004-11-30  Simon Josefsson  <jas@extundo.com>
85630
85631         * modules/restrict (License): Change to LGPL.
85632
85633 2004-11-30  Simon Josefsson  <jas@extundo.com>
85634
85635         * m4/restrict.m4: Add copyright and copying conditions.
85636
85637 2004-11-30  Simon Josefsson  <jas@extundo.com>
85638
85639         * m4/base64.m4: New file.
85640
85641 2004-11-30  Simon Josefsson  <jas@extundo.com>
85642
85643         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85644         base64.
85645
85646         * tests/test-base64.c: New file.
85647
85648         * modules/base64: New file.
85649
85650 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85651
85652         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85653         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85654
85655         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85656
85657 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85658
85659         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85660         (__getcwd.c): Don't restore errno; glibc doesn't.
85661         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85662         first, falling back to our code only if its results look suspicious.
85663         Ensure that the resulting buffer is only as large as necessary.
85664
85665         * lib/readutmp.c: Include readutmp.h first.
85666         Include <errno.h>, since readutmp.h no longer does that.
85667         * lib/readutmp.h: Don't include <errno.h>,
85668         <sys/param.h>, <time.h>; not needed to establish interface.
85669         (errno): Remove decl.
85670         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85671         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85672         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85673
85674 2004-11-28  Simon Josefsson  <jas@extundo.com>
85675
85676         * lib/base64.h, base64.c: New file.
85677
85678 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85681
85682 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85683
85684         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85685         (Depends-on): Remove pathmax, same.  Add mempcpy.
85686         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85687         (Makefile.am): Append getcwd.h to lib_SOURCES.
85688         (Include): Add getcwd.h.
85689         (Maintainer): Change from Jim Meyering to "all, glibc",
85690         since getdate now uses intended-for-glibc code.
85691         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85692         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85693
85694 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85697         HP's ANSI C compiler.
85698         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85699         Declaring int functions causes warnings on some modern systems and
85700         shouldn't be needed to compile on ancient ones.
85701         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85702         defined.
85703
85704         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85705         with the following changes.
85706         (__set_errno): Parenthesize properly.
85707         Include <stdbool.h>.
85708         (MIN, MAX, MATCHING_INO): New macros.
85709         (__getcwd): Define with prototype, not K&R form.
85710         Use heuristics to allocate default buffer on stack if possible.
85711         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85712         behavior, and to avoid the PATH_MAX limit when computing
85713         ../../../../...
85714         Use MATCHING_INO to compare inode number to file.
85715         Check for arithmetic overflow in size calculations.
85716         Fix bug in reallocation of dot array that caused getcwd to fail
85717         on directories nested deeper than 75.
85718         Be more careful about saving errno on error.
85719         Do not use realloc; use only free+malloc, as this is a bit
85720         more flexible and avoids a needless copy operation.
85721         Do not inspect st_dev and st_ino for symbolic links; POSIX
85722         doesn't specify the latter.
85723         Check for closedir errors.
85724         Avoid needless casts.
85725         Use "#ifdef weak_alias" around weak_alias, to be like other
85726         glibc code.
85727         The following changes to getcwd.c have effect only when used in
85728         gnulib; they have no effect inside glibc proper.
85729         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85730         as alloca isn't used.
85731         (alloca, __alloca): Likewise.
85732         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85733         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85734         unconditionally, as gnulib assumes C89 or better.
85735         Do not include <sys/param.h>.
85736         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85737         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85738         better.
85739         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85740         Include <dirent.h> in a way that is compatible with modern Autoconf.
85741         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85742         New macros, if not already defined.
85743         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85744         Use "_LIBC", not "defined _LIBC", for consistency.
85745         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85746         a mempcpy module.
85747         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85748         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85749         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85750         credit only to Jim Meyering and adjust the copyright dates.
85751         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85752         <stdlib.h>, <unistd.h>, "pathmax.h".
85753         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85754         (INITIAL_BUFFER_SIZE): Remove.
85755         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85756
85757 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85760         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85761         Use the _ONCE methods, for efficiency.
85762         Check for fcntl.h.  In test program, include <errno.h>
85763         and <fcntl.h> if available.  Remove old K&R cruft from
85764         test program.  Check for common errors in GNU/Linux,
85765         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85766         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85767         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85768         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85769         name accordingly.
85770         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85771         accommodate new getcwd.c.
85772         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85773         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85774         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85775         that's all we need now.
85776
85777 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85778
85779         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85780         argp-parse.c depends on getopt internals, that means we should
85781         always use our getopt, to be on the safe side.
85782         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85783         order not to spoil the result of an eventual previous invocation
85784         of gl_GETOPT_SUBSTITUTE.
85785
85786 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85787
85788         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85789         redefinition warnings. To avoid them, include the defines
85790         in `#if !defined __need_getopt ... #endif'. The only place
85791         where __getopt_argv_const is used is in definitions
85792         of getopt_long and getopt_long_only below, which are as well
85793         protected by `#ifndef __need_getopt'.
85794         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85795         __need_getopt after including <stdio.h> and <unistd.h> These
85796         headers might have defined it.
85797
85798 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85799
85800         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85801
85802 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85805         (futimens): New function, which uses futimes if available.
85806         (futimens, utimens): Support timespec==NULL, with same semantics
85807         as utime and utimens.
85808         * lib/utimens.h (futimens): New decl.
85809
85810 2004-11-23  Jim Meyering  <jim@meyering.net>
85811
85812         * lib/getopt_.h: Remove trailing blanks.
85813
85814 2004-11-23  Jim Meyering  <jim@meyering.net>
85815
85816         * lib/__fpending.c: Add comment.
85817
85818 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85819
85820         * modules/canonicalize (Depends-on): Add xreadlink.
85821         Problem reported by James Youngman.
85822
85823 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85824
85825         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85826         New macros.
85827         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85828         optopt): Use them instead of invoking ## directly; otherwise, the
85829         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85830
85831 2004-11-19  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/strtok_r.c: Move comments from here...
85834         * lib/strtok_r.h: ... to here.
85835
85836 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85837
85838         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85839         implementations that mishandle size_t overflow.
85840
85841 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85842
85843         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85844         might fail.  Problem reported by Yoann Vandoorselaere.
85845         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85846         implementations that mishandle size_t overflow.
85847
85848 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * modules/canon-host (Depends-on): Add strdup.
85851
85852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85855
85856 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         * lib/canon-host.c: Include "strdup.h".
85859         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85860         Use strdup instead of malloc/strcpy to duplicate strings.
85861
85862         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85863         (human_space_before_unit): New constant.
85864         * lib/human.c (human_readable): Support it.
85865
85866         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85867         (xgetcwd): Set errno correctly when failing.
85868         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85869         the failure is actually due to a PATH_MAX problem.
85870
85871         Further getopt changes to make it more likely that glibc will
85872         buy the changes back.
85873         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85874         (getopt): Use it, so to preserve glibc semantic
85875         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85876         when compiling for libc.
85877         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85878         (getopt_long, getopt_long_only): Use it.
85879
85880         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85881         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85882         (getopt): Argv is now char * const *, as per standard.
85883         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85884         not char *__getopt_argv_const *.
85885         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85886         _getopt_long_only_r): Likewise.
85887         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85888         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85889         _getopt_long_r, _getopt_long_only_r): Likewise.
85890         * lib/getopt_.h (__getopt_argv_const): Remove.
85891         (getopt): Argv is now char * const *, as per standard.
85892
85893         * lib/getdate.y (tORDINAL): New token.
85894         (day, relunit): Allow it for relative times.
85895         (relative_time_table): Use tORDINAL for ordinals.
85896
85897 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85898
85899         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85900         Document that "second" isn't allowed as an ordinal number.
85901
85902 2004-11-16  Jim Meyering  <jim@meyering.net>
85903
85904         * modules/closeout (Depends-on): Add fpending.
85905
85906 2004-11-15  Jim Meyering  <jim@meyering.net>
85907
85908         * lib/closeout.c: Include "__fpending.h" once again.
85909         Include <stdbool.h>.
85910         (close_stdout): Don't fail just because stdout was closed initially,
85911         since some programs don't write to stdout in the normal course of
85912         operation (other than --version and --help), and we don't want this
85913         function to make e.g. `touch file >&-' fail.
85914         But do fail if it was closed and someone has tried to write to it.
85915         E.g., `printf foo >&-' must fail.
85916
85917 2004-11-13  Jim Meyering  <jim@meyering.net>
85918
85919         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85920
85921 2004-11-12  Simon Josefsson  <jas@extundo.com>
85922
85923         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85924         small doc fix is still pending.
85925
85926 2004-11-11  Simon Josefsson  <jas@extundo.com>
85927
85928         * modules/strtok_r: New file.
85929
85930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85931         strtok_r.
85932
85933 2004-11-11  Simon Josefsson  <jas@extundo.com>
85934
85935         * m4/strtok_r.m4: New file.
85936
85937         * m4/getopt.m4: Replace opterr.
85938
85939 2004-11-11  Simon Josefsson  <jas@extundo.com>
85940
85941         * lib/strtok_r.h, strtok_r.c: New file.
85942
85943 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85946         of replacing opterr, getopt, etc.  This should handle the
85947         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85948
85949 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85952         we can stop lying to compilers about the constness of argv when we
85953         are compiled outside glibc.
85954         (getopt, getopt_long, getopt_long_only): Use it.
85955         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85956         _getopt_internal, getopt): Likewise.
85957         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85958         _getopt_long_only_r): Likewise.
85959         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85960         _getopt_long_r, _getopt_long_only_r): Likewise.
85961
85962         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85963         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85964         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85965         the other external symbols.
85966         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85967         declaration, since the above renaming now works around collisions.
85968
85969 2004-11-11  Jim Meyering  <jim@meyering.net>
85970
85971         * lib/linebreak.c: Remove trailing blanks.
85972         * lib/alloca_.h: Likewise.
85973         * lib/acosl.c: Likewise.
85974         * lib/euidaccess.c: Likewise.
85975         * lib/allocsa.h: Likewise.
85976
85977 2004-11-10  Simon Josefsson  <jas@extundo.com>
85978
85979         * m4/getaddrinfo.m4: New file.
85980
85981 2004-11-10  Simon Josefsson  <jas@extundo.com>
85982
85983         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85984
85985 2004-11-10  Simon Josefsson  <jas@extundo.com>
85986
85987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85988         getaddrinfo.
85989
85990         * modules/getaddrinfo: New file.
85991
85992 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85993
85994         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85995
85996 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85997
85998         * lib/mktime.c (SHR): New macro, which is a portable
85999         substitute for >> that should work even on Crays.
86000         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86001         Problem reported by Mark D. Baushke in
86002         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86003         * lib/getdate.y (SHR): Likewise.
86004         (tm_diff): Use it.
86005         * lib/strftime.c (SHR): Likewise.
86006         (tm_diff): Use it.
86007         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86008         quote_these_too, so that right shifts are well defined.  All uses
86009         changed.
86010
86011 2004-11-10  Jim Meyering  <jim@meyering.net>
86012
86013         Ensure that no close failure goes unreported.
86014         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86015         return early when it seems there's nothing to flush.
86016         Don't include __fpending.h.
86017
86018 2004-11-10  Jim Meyering  <jim@meyering.net>
86019
86020         * modules/closeout (Depends-on): Remove fpending.
86021
86022 2004-11-10  Jim Meyering  <jim@meyering.net>
86023
86024         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86025
86026 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86027
86028         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86029         gl_FUNC_STRFTIME.
86030         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86031         and AC_REQUIRE when possible, to avoid duplicate checks.
86032         Check for <wchar.h>.
86033
86034 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86035
86036         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86037
86038 2004-11-09  Bruno Haible  <bruno@clisp.org>
86039
86040         * m4/sockpfaf.m4: New file.
86041
86042 2004-11-05  Bruno Haible  <bruno@clisp.org>
86043
86044         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86045         Reported by Mark D. Baushke <mdb@cvshome.org>.
86046
86047 2004-11-04  Bruno Haible  <bruno@clisp.org>
86048
86049         2004-09-11  Bruno Haible  <bruno@clisp.org>
86050                 * allocsa.valgrind: New file.
86051         2004-02-06  Bruno Haible  <bruno@clisp.org>
86052                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86053                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86054                 Reported by Christopher Seip <chris.seip@hp.com>.
86055
86056 2004-11-04  Bruno Haible  <bruno@clisp.org>
86057
86058         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86059         (Makefile.am): Distribute it.
86060
86061 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86064         with errno == ERANGE if the buffer is too small.
86065         Problem reported by Mark D. Baushke.
86066
86067 2004-11-03  Albert Chin  <china@thewrittenword.com>
86068             Paul Eggert  <eggert@cs.ucla.edu>
86069
86070         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86071         equivalent, substitute $ac_type for equivalent type rather than
86072         blindly using uint32_t *always* which won't work if uint32_t is not
86073         available.  Define _UINT32_T to work around typedef of uint32_t if
86074         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86075         2.5.1.
86076
86077 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86078
86079         * m4/jm-macros.m4: Sync from coreutils.
86080         (gl_MACROS): Check for mbrlen, for pathchk.
86081         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86082
86083 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86084
86085         * lib/xreadlink.c (MAXSIZE): New macro.
86086         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86087         size does not exceed MAXSIZE.  Avoid cast.
86088         As suggested by Mark D. Baushke in
86089         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86090         if readlink fails with buffer size just under MAXSIZE, try again
86091         with MAXSIZE.
86092
86093 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86096
86097 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86098         and  Paul Eggert  <eggert@cs.ucla.edu>
86099
86100         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86101         (get_date): Overparenthesize to avoid GCC warning.
86102
86103 2004-11-02  Bruno Haible  <bruno@clisp.org>
86104
86105         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86106         returns void.
86107
86108 2004-11-02  Bruno Haible  <bruno@clisp.org>
86109
86110         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86111         function returns void.
86112
86113 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86114
86115         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86116         fflush_unlocked, flockfile, funlockfile, funlockfile,
86117         fputs_unlocked, putc_unlocked.
86118
86119 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86120
86121         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86122         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86123         already declared.
86124
86125 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86126
86127         * modules/getdate (Files): Add doc/getdate.texi.
86128         (Depends-on): Add setenv, xalloc.
86129
86130 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * lib/getdate.y: Add support for TZ="foo" within a date string.
86133         Fix some bugs near time_t boundaries.  Reject dates with
86134         out-of-range components, e.g., "Sept 31".
86135         Include <stdlib.h>, "setenv.h", "xalloc.h".
86136         (ISDIGIT_LOCALE): Remove; unused.
86137         Note that the TZ and time functions used here are not reentrant.
86138         (mktime_ok, get_tz): New functions.
86139         (TZBUFSIZE): New constant.
86140         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86141         This requires that we sometimes generate our own TZ="XXX..." setting.
86142
86143 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86144
86145         * doc/getdate.texi: New file, from coreutils with modifications for
86146         the new TZ parsing.
86147
86148 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86149
86150         * lib/mktime.c (not_equal_tm): Remove redundant check.
86151
86152 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86153
86154         * modules/regex (lib_SOURCES): Add regex.c.
86155         Reported by James Youngman in
86156         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86157
86158 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86159
86160         * lib/getdate.y: Use Bison 1.875 features, and some minor
86161         code cleanups.  This change does not affect semantics.
86162         Don't include <stdlib.h>; no longer needed.
86163         Don't include unlocked-io.h; only the "#if TEST" code uses
86164         stdio, and performance isn't crucial there.
86165         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86166         Bison 1.875 features as described below.
86167         All uses of "PC." replaced by "pc->".
86168         (YYSTYPE): Add a forward declaration.
86169         (yylex, yyerror): Use full prototypes in forward decls.
86170         Use "%pure-parser" rather than obsolescent "%pure_parser".
86171         Use %parse-param and %lex-param instead of obsolescent
86172         YYPARSE_PARAM and YYLEX_PARAM.
86173         (meridian_table, month_and_day_table, time_units_table,
86174         relative_time_table, time_zone_table, military_table,
86175         lookup_zone, lookup_word, get_date):
86176         Use NULL instead of 0 where appropriate.
86177         (to_hour): Avoid abort (), to avoid a dependency on
86178         stdlib.h.
86179         (yyerror, yylex): Now accepts parser_control * arg.
86180         (main) [TEST]: Use '\0' rather than 0 for char.
86181
86182 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86183
86184         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86185
86186 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86187
86188         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86189         It's now the caller's responsibility to handle the case where
86190         !HAVE_GETPAGESIZE && !defined getpagesize.
86191
86192         * lib/mktime.c (leapyear): Arg is long int, not int.
86193
86194 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86195
86196         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86197
86198 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86199
86200         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86201         missing.  Problem reported by James Youngman.
86202
86203 2004-10-16  Simon Josefsson  <jas@extundo.com>
86204
86205         * gnulib-tool: Fix comments.  Fix parse problem.
86206         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86207
86208 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86209
86210         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86211         implementation of getopt_long.  Problem reported by Alexander Taler in:
86212         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86213
86214 2004-10-15  Bruno Haible  <bruno@clisp.org>
86215
86216         * gnulib-tool: Untabify. Initialize supplied_libname.
86217         (func_usage): More homogenous output.
86218         (func_modules_transitive_closure, func_modules_to_filelist,
86219         func_emit_lib_Makefile_am): New functions.
86220         (func_import): New function, extracted from big case statement. Use
86221         func_get_license, func_modules_transitive_closure,
86222         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86223         opt_lgpl. Don't use test -a, as it's not portable.
86224         (func_create_testdir): Use func_modules_transitive_closure,
86225         func_modules_to_filelist, func_emit_lib_Makefile_am.
86226
86227 2004-10-15  Bruno Haible  <bruno@clisp.org>
86228
86229         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86230
86231 2004-10-15  Bruno Haible  <bruno@clisp.org>
86232
86233         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86234         the portions belonging to each module.
86235         Suggested by Derek Robert Price <derek@ximbiot.com>.
86236
86237 2004-10-12  Simon Josefsson  <jas@extundo.com>
86238
86239         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86240         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86241         to real functions.
86242
86243 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86244
86245         * modules/vsnprintf: New file.
86246
86247 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86248
86249         * m4/vsnprintf.m4: New file.
86250
86251 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86252
86253         * lib/vsnprintf.h: New file.
86254         * lib/vsnprintf.c: New file.
86255
86256 2004-10-11  Bruno Haible  <bruno@clisp.org>
86257
86258         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86259         vsnprintf.
86260
86261 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86262
86263         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86264
86265 2004-10-07  Bruno Haible  <bruno@clisp.org>
86266
86267         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86268         fits into the provided buffer.
86269
86270 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86271
86272         * lib/diacrit.c, diacrit.h: Add GPL notice.
86273
86274         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86275         notice.
86276         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86277         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86278         This avoids a potential constant-folding bug.
86279
86280 2004-10-05  Bruno Haible  <bruno@clisp.org>
86281
86282         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86283         for the declaration of strsep.
86284
86285 2004-10-05  Bruno Haible  <bruno@clisp.org>
86286
86287         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86288
86289 2004-10-04  Simon Josefsson  <jas@extundo.com>
86290
86291         * modules/memmem: New file.
86292         * tests/test-memmem.c: New file.
86293         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86294
86295 2004-10-04  Simon Josefsson  <jas@extundo.com>
86296
86297         * m4/memmem.m4: New file.
86298
86299 2004-10-04  Simon Josefsson  <jas@extundo.com>
86300
86301         * lib/memmem.h: New file.
86302         * lib/memmem.c: New file, taken from glibc.
86303
86304 2004-10-04  Simon Josefsson  <jas@extundo.com>
86305
86306         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86307         '#ifdef USE_UNLOCKED_IO'.
86308
86309 2004-10-04  Simon Josefsson  <jas@extundo.com>
86310
86311         * config/srclist.txt: Add memmem from glibc.
86312
86313 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86314
86315         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86316
86317         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86318         modules/exclude, modules/getdate, modules/getline,
86319         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86320         modules/getusershell, modules/linebuffer, modules/md5,
86321         modules/mountlist, modules/posixtm, modules/readtokens,
86322         modules/readutmp, modules/regex, modules/sha1,
86323         modules/version-etc, modules/yesno:
86324         Remove dependency on unlocked-io.
86325
86326 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86327
86328         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86329
86330         * m4/unlocked-io.m4: Add copyright notice.
86331         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86332
86333 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86334
86335         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86336         * lib/xmalloc.c (xmemdup): Likewise.
86337         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86338         XFREE): Remove these long-obsolescent macros.
86339         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86340         * lib/xstrdup.c: Remove.
86341
86342         * lib/regex.c (re_comp): Cast gettext return value to char *,
86343         Problem reported by Martin Neitzel via Mark D. Baushke.
86344
86345 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86346
86347         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86348         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86349         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86350         regex.c, sha1.c, version-etc.c, yesno.c:
86351         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86352         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86353         the includer's responsibility.
86354
86355         Sync from coreutils.
86356
86357         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86358         points to the start of a string, as the C Standard says the
86359         resulting behavior is undefined.
86360
86361         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86362         simple -> simple_backups, numbered_existing ->
86363         numbered_existing_backups, numbered -> numbered_backups
86364         to avoid shadowing problems.  All uses changed.
86365         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86366         * lib/backupfile.c (check_extension, numbered_backup):
86367         Rename locals to avoid shadowing 'basename'.
86368         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86369         once.
86370
86371         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86372         * lib/.cvsignore: Add getopt.h.
86373
86374 2004-10-04  Bruno Haible  <bruno@clisp.org>
86375
86376         * modules/README: New file.
86377         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86378         not a module.
86379
86380 2004-10-02  Jim Meyering  <jim@meyering.net>
86381
86382         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86383
86384 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86385
86386         * modules/strsep: New file.
86387
86388 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86389
86390         * m4/strsep.m4: New file.
86391
86392 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86393
86394         * lib/strsep.h: New file.
86395         * lib/strsep.c: New file.
86396
86397 2004-10-01  Simon Josefsson  <jas@extundo.com>
86398
86399         * lib/snprintf.c (snprintf): Handle size==0.
86400
86401 2004-10-01  Simon Josefsson  <jas@extundo.com>
86402             Bruno Haible  <bruno@clisp.org>
86403
86404         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86405         (snprintf): Declare 'args'.
86406
86407 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         * lib/snprintf.c: Remove comments as to why each header is needed.
86410
86411 2004-10-01  Bruno Haible  <bruno@clisp.org>
86412
86413         * MODULES.html.sh: Add strsep.
86414
86415 2004-09-30  Simon Josefsson  <jas@extundo.com>
86416
86417         * modules/snprintf: New file.
86418
86419 2004-09-30  Simon Josefsson  <jas@extundo.com>
86420
86421         * m4/snprintf.m4: New file.
86422
86423 2004-09-30  Simon Josefsson  <jas@extundo.com>
86424
86425         * lib/snprintf.h, lib/snprintf.c: New files.
86426
86427 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86428
86429         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86430         (hol_entry_help): Never translate an empty string.
86431         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86432         * lib/argp.h (OPTION_NO_TRANS): New option.
86433
86434 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         * modules/argp (Maintainer): Replace Simon Josefsson
86437         by Sergey Poznyakoff.
86438
86439 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86442         changes merged back into glibc.
86443
86444 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86447
86448 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86449
86450         * lib/xvasprintf.c: Include xalloc.h.
86451         (xvasprintf): Use xalloc_die, not xmalloc_die.
86452
86453 2004-09-29  Bruno Haible  <bruno@clisp.org>
86454
86455         * modules/alloca-opt: New file, derived from modules/alloca.
86456         * modules/allocsa: Depend on alloca-opt instead of alloca.
86457         * modules/setenv: Likewise.
86458         * modules/vasnprintf: Likewise.
86459         * MODULES.html.sh: Add alloca-opt.
86460
86461 2004-09-28  Simon Josefsson  <jas@extundo.com>
86462
86463         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86464         LGPL, and to replace license template from GPL to LGPL.
86465
86466 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86467
86468         * modules/dummy: Change license to LGPL.
86469
86470 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86471
86472         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86473
86474 2004-09-24  Simon Josefsson  <jas@extundo.com>
86475
86476         * modules/minmax (License): Change from GPL to LGPL.
86477
86478 2004-09-23  Simon Josefsson  <jas@extundo.com>
86479
86480         * gnulib-tool (--import): Typo.
86481
86482 2004-09-23  Simon Josefsson  <jas@extundo.com>
86483
86484         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86485
86486 2004-09-22  Bruno Haible  <bruno@clisp.org>
86487
86488         * modules/*: Add 'License' field.
86489         * gnulib-tool: Accept --extract-license option.
86490         (func_get_license): New function.
86491
86492 2004-09-21  Bruno Haible  <bruno@clisp.org>
86493
86494         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86495         Reported by Simon Josefsson.
86496
86497 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86498
86499         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86500         gl_AC_TYPE_LONG_LONG.
86501
86502 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86503
86504         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86505
86506 2004-09-18  Simon Josefsson  <jas@extundo.com>
86507         and  Paul Eggert  <eggert@cs.ucla.edu>
86508
86509         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86510         calls with autoreconf.  Define GL_LIB.
86511
86512 2004-09-14  Karl Berry  <karl@gnu.org>
86513
86514         * config/srclist.txt: unsync setenv.c, sigh.
86515
86516 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86517
86518         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86519         Problem reported by Bruno Haible in:
86520         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86521
86522 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86523
86524         * config/srclist.txt: Comment out argp-pvh.c.
86525
86526 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86527
86528         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86529         in case some system header has #define'd it.  Problem reported by
86530         Soeren D. Schulze in
86531         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86532
86533 2004-09-09  Karl Berry  <karl@gnu.org>
86534
86535         * regex.[ch]: delete from the root.  These were supposed to be
86536                 synced with emacs cvs, but this has not happened for about
86537                 a year, and anyway nothing else uses emacs regex.[ch].
86538                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86539                 lib/regex[.ch] is untouched.
86540
86541 2004-09-09  Bruno Haible  <bruno@clisp.org>
86542
86543         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86544
86545 2004-09-09  Bruno Haible  <bruno@clisp.org>
86546
86547         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86548         modifications.
86549         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86550
86551 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86552
86553         * modules/xvasprintf: New file.
86554         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86555
86556 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86557
86558         * lib/xvasprintf.h: New file.
86559         * lib/xvasprintf.c: New file.
86560         * lib/xasprintf.c: New file.
86561
86562 2004-09-08  Bruno Haible  <bruno@clisp.org>
86563
86564         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86565
86566 2004-09-08  Bruno Haible  <bruno@clisp.org>
86567
86568         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86569         length is > INT_MAX.
86570         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86571         more.
86572
86573 2004-09-08  Bruno Haible  <bruno@clisp.org>
86574
86575         * lib/stdint_.h: New file, taken from GNU clisp.
86576
86577 2004-09-08  Bruno Haible  <bruno@clisp.org>
86578             Oskar Liljeblad  <oskar@osk.mine.nu>
86579
86580         * modules/stdint: New file.
86581         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86582
86583 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86584
86585         Import from coreutils.
86586         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86587         strings on unbounded length.  alloca's performance benefits aren't
86588         that important here.
86589         (V_STRDUP): Remove.
86590         (parse_with_separator): New function, with most of the internals
86591         of the old parse_user_spec.  Allow user to omit both user and group,
86592         for compatibility with FreeBSD.
86593         Clone only the user name, not the entire spec.
86594         Do not set *uid, *gid unless entirely successful.
86595         Avoid memory leak in some failing cases.
86596         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86597         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86598         (parse_user_spec): Rewrite to use parse_with_separator.
86599
86600 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86601
86602         * modules/userspec: Don't depend on alloca.
86603
86604 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86605
86606         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86607
86608 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86609
86610         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86611         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86612         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86613
86614 2004-08-16  Simon Josefsson  <jas@extundo.com>
86615
86616         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86617         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86618         Add --dry-run for --import.
86619         Let user provided command line parameters override configure.ac
86620         settings.
86621
86622 2004-08-12  Simon Josefsson  <jas@extundo.com>
86623
86624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86625         as discussed with Paul Eggert in threads rooted at
86626         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86627         and
86628         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86629         Before, the test was empty, and relied on ELIDE_CODE in source
86630         code.)
86631         (gl_PREREQ_GETOPT): New macro.
86632         (gl_GETOPT): Use them.
86633
86634 2004-08-12  Simon Josefsson  <jas@extundo.com>
86635
86636         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86637         * lib/getopt_.h: Renamed from getopt.h.
86638
86639 2004-08-12  Simon Josefsson  <jas@extundo.com>
86640
86641         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86642         Change default library name from libfoo to libgnu.
86643         Now, if you have a configure.ac that says:
86644                 gl_SOURCE_BASE(gl)
86645                 gl_M4_BASE(gl/m4)
86646                 gl_MODULES(error getopt etcetera)
86647                 gl_INIT
86648         you can import all you need by running:
86649                 ../gnulib/gnulib-tool --import
86650
86651         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86652         (Makefile.am): Rewrite, use logic from argz.
86653         (Include): Use <getopt.h> instead of "getopt.h".
86654
86655 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86656
86657         * modules/argp (Files): Add m4/unlocked-io.m4.
86658         (Depends-on): Add extensions.
86659
86660 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86663         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86664         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86665         Check for program_invocation_name, program_invocation_short_name,
86666         flockfile, funlockfile, features.h, _getopt_long_only_r.
86667
86668 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86669
86670         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86671         its complicated substitute.
86672         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86673         and program_invocation_name.
86674         (__argp_basename) [!_LIBC]: Remove; the only use was
86675         replaced by its body.
86676         (__argp_short_program_name): Change condition from
86677         !defined __argp_short_program_name to
86678         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86679         to match argp-namefrob.h.
86680         (__argp_failure): Don't assume strerror_r returns char *.
86681         * lib/argp-parse.c (N_): Define unconditionally.
86682         (argp_default_options): Fill out initializers with 0 to avoid
86683         gcc warnings.
86684
86685 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86688         getopt1.c.
86689
86690 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86691
86692         Merge from coreutils.
86693
86694         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86695
86696         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86697         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86698
86699 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86700
86701         Merge from coreutils.
86702
86703         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86704         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86705         for Reliant Unix 5.43.
86706
86707         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86708         (union fooround): Use uintmax_t, not long int.
86709         The rest is a merge from libc:
86710         [defined _LIBC]: Include <shlib-compat.h>.
86711         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86712
86713         * lib/settime.c (settime): Recode to avoid warning with
86714         Sun Forte C 6U2.
86715
86716         * lib/strverscmp.c: Convert to UTF-8.
86717
86718 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86719
86720         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86721         m4/uintmax_t.m4.
86722
86723 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86724
86725         * modules/xalloc-die: New file.
86726         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86727
86728         * modules/md5 (Files): Add m4/uint32_t.m4.
86729         * modules/sha1: Renamed from modules/sha.
86730         (Files):
86731         Rename lib/sha.h to lib/sha1.h.
86732         Rename lib/sha.c to lib/sha1.c.
86733         Rename m4/sha.m4 to m4/sha1.m4.
86734         (lib_SOURCES): Likewise.
86735         (configure.ac): Rename gl_SHA to gl_SHA1.
86736         (Include): sha.h -> sha1.h.
86737
86738 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86739
86740         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86741         * m4/sha1.m4: Renamed from sha.m4.
86742         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86743
86744 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86745
86746         * lib/obstack.h (obstack_empty_p):
86747         Don't assume that chunk->contents is suitably aligned.
86748         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86749         Likewise. Problem reported by Benno in
86750         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86751
86752         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86753         readable.  This could be improved further but it'd take some work.
86754
86755 2004-08-08  Simon Josefsson  <jas@extundo.com>
86756
86757         * modules/xgethostname (Depends-on): Remove exit and error (not
86758         used).
86759
86760         * modules/getpass-gnu: Add getpass.h.
86761         (Depends-on): Add stdbool.
86762         * modules/getpass: Add getpass.h.
86763
86764 2004-08-08  Simon Josefsson  <jas@extundo.com>
86765
86766         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86767         Check getpass declaration.
86768
86769 2004-08-08  Simon Josefsson  <jas@extundo.com>
86770
86771         * lib/xgethostname.c: Don't include error.h (not used).
86772
86773         * lib/getpass.h: Add.
86774         * lib/getpass.c: Include getpass.h first.
86775
86776 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86777
86778         * lib/xalloc-die.c: New file.
86779         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86780         All uses removed.
86781         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86782         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86783         xalloc-die.c.
86784         (_, N_, xalloc_die): Move to xalloc-die.c.
86785         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86786         so that we needn't mess with xalloc_msg_memory_exhausted.
86787
86788         * lib/sha1.h: Renamed from sha.h.
86789         (SHA1_H): Renamed from _SHA_H.
86790         (sha1_ctx): Renamed from sha_ctx.
86791         (sha1_init_ctx): Renamed from sha_init_ctx.
86792         (sha1_process_block): Renamed from sha_process_block.
86793         (sha1_process_bytes): Renamed from sha_process_bytes.
86794         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86795         (sha1_read_ctx): Renamed from sha_read_ctx.
86796         (sha1_stream): Renamed from sha_stream.
86797         (sha1_buffer): Renamed from sha_buffer.
86798         * lib/sha1.c: Likewise; renamed from sha.c.
86799         Do not include <sys/types.h>.
86800         Include <stddef.h> rather than <stdlib.h>.
86801
86802 2004-08-08  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86805         FILESYSTEM_PREFIX_LEN.
86806         * lib/progreloc.c: Likewise.
86807         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86808
86809 2004-08-06  Simon Josefsson  <jas@extundo.com>
86810
86811         * modules/progname (Depends-on): Don't depend on stdbool.
86812
86813 2004-08-06  Simon Josefsson  <jas@extundo.com>
86814
86815         * modules/getsubopt: New file.
86816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86817         getsubopt.
86818
86819 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86820
86821         More merge from coreutils.
86822
86823         * m4/utimens.m4, m4/utimecmp.m4: New files.
86824         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86825         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86826         prereq.m4, sha.m4: Import changes from coreutils.
86827
86828 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86829
86830         More merge from coreutils.
86831         * modules/raise, modules/readtokens0, modules/utimens:
86832         * modules/utimecmp, module/xnanosleep: New files.
86833         * modules/strftime: Add lib/strftime.h.
86834         Change include from <time.h> to "strftime.h".
86835         * modules/yesno: Add lib/yesno.h.
86836         * modules/backupfile: Remove lib/addext.c.
86837         * modules/euidaccess: Add stat-macros.h.
86838         * modules/canonicalize, modules/euidaccess,
86839         modules/filemode, modules/lchown, modules/makepath,
86840         modules/rmdir, modules/stat: Likewise.
86841
86842 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86843
86844         Merge from tar.
86845         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86846         SIZE_MAX is a valid preprocessor constant.
86847         (__argp_basename): Change from "#ifndef _LIBC"
86848         to "#ifndef __argp_short_program_name", so that
86849         we don't compile these functions for tar.
86850
86851         More merges from coreutils.
86852         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86853         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86854         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86855         * lib/addext.c: Remove; no longer needed.
86856         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86857         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86858         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86859         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86860         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86861         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86862         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86863         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86864         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86865         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86866         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86867         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86868         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86869         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86870         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86871         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86872         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86873         Import changes from coreutils.
86874
86875 2004-08-05  Simon Josefsson  <jas@extundo.com>
86876
86877         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86878
86879 2004-08-05  Simon Josefsson  <jas@extundo.com>
86880
86881         * m4/getsubopt.m4: New file.
86882
86883 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86884
86885         Merge from coreutils.
86886
86887         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86888         * m4/getcwd-path-max.m4: New files.
86889
86890         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86891         FILESYSTEM_PREFIX_LEN ->
86892         FILE_SYSTEM_PREFIX_LEN.
86893         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86894         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86895         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86896         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86897
86898         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86899         prerequisite modules now handle the DOS stuff.
86900         Don't check for unistd.h.
86901
86902 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86903
86904         Merge from coreutils.
86905
86906         * lib/.gdb-history: Remove; this doesn't belong here.
86907
86908         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86909         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86910         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86911         * lib/getcwd.c: New files.
86912
86913         * lib/dirname.h: Include <stdbool.h>.
86914         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86915         for consistency with POSIX terminology.  All uses changed.
86916         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86917         (strip_trailing_slashes): Use bool for booleans.
86918         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86919
86920         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86921         sometimes returns a positive errno value even when it succeeds.
86922         (print_errno_message) [!LIBC]: Fall back on strerror if
86923         __strerror_r fails.
86924
86925         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86926         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86927         (longest_relative_suffix): New function.
86928         (path_concat): Use it.  Assume first argument is not NULL.
86929         Port to DOS.  Omit redundant separators.
86930         Report an error instead of returning NULL.
86931         Use mempcpy instead of memcpy.
86932         (xpath_concat): Remove: not declared or used.
86933
86934         * lib/same.h: Include <stdbool.h>
86935         (same_name): Return bool, not int.
86936         * lib/same.c (same_name): Likewise.
86937         (errno): Don't declare; we assume C89 or better now.
86938
86939         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86940         if not already defined.
86941
86942         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86943         * lib/dup-safer.c (errno): Likewise.
86944
86945 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86946
86947         Merge from coreutils.
86948         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86949         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86950         * modules/path-concat: Don't depend on strdup.
86951
86952 2004-08-03  Simon Josefsson  <jas@extundo.com>
86953
86954         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86955         * lib/progname.h: Don't include stdbool.h.
86956
86957 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86958
86959         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86960         * MODULES.html.sh (func_all_modules): Remove fatal.
86961
86962 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86965
86966 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86967
86968         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86969         working.
86970
86971 2004-08-02  Simon Josefsson  <jas@extundo.com>
86972
86973         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86974         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86975         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86976
86977 2004-08-01  Simon Josefsson  <jas@extundo.com>
86978
86979         * lib/xgetdomainname.c: Include stdlib.h, for free().
86980
86981 2004-07-19  Bruno Haible  <bruno@clisp.org>
86982
86983         * MODULES.html.sh (func_all_modules): Add dummy.
86984
86985 2004-07-16  Simon Josefsson  <jas@extundo.com>
86986
86987         * modules/dummy: New file.
86988
86989 2004-07-16  Simon Josefsson  <jas@extundo.com>
86990
86991         * lib/dummy.c: New file.
86992
86993 2004-07-16  Bruno Haible  <bruno@clisp.org>
86994
86995         * lib/backupfile.h: Add extern "C" for C++.
86996         * lib/closeout.h: Likewise.
86997         * lib/copy-file.h: Likewise.
86998         * lib/findprog.h: Likewise.
86999         * lib/full-write.h: Likewise.
87000         * lib/pathname.h: Likewise.
87001         * lib/progname.h: Likewise.
87002         * lib/stpcpy.h: Likewise.
87003         * lib/stpncpy.h: Likewise.
87004         * lib/strcase.h: Likewise.
87005         * lib/strstr.h: Likewise.
87006         * lib/xalloc.h: Likewise.
87007
87008         * lib/mbswidth.h: Add extern "C" for C++.
87009         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87010
87011 2004-07-13  Robert Millan  <robertmh@gnu.org>
87012
87013         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87014
87015 2004-07-09  Simon Josefsson  <jas@extundo.com>
87016
87017         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87018         failed without this.)
87019
87020 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87021
87022         * modules/chown (Files): Add lib/fchown-stub.c, since
87023         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87024
87025 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87026
87027         * lib/fchown-stub.c: New file.
87028
87029 2004-06-24  Jim Meyering  <jim@meyering.net>
87030
87031         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87032
87033 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87034
87035         * modules/argz: Omit "#include".
87036
87037         * MODULES.html.sh (func_all_modules): Add calloc, to match
87038         2004-06-01 addition of calloc module.
87039
87040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87041
87042         * m4/argz.m4: New file, which is autoupdated from libtool.
87043
87044 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87045
87046         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87047         libtool.
87048
87049 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87050
87051         * config/srclist-update: Don't insist on "USA." before the
87052         close-comment, as libtool omits the period and puts the */ on a
87053         separate line.
87054         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87055         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87056
87057 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87058
87059         * modules/argz: New file.
87060         * MODULES.html.sh (func_all_modules): Add argz.
87061
87062 2004-06-12  Jim Meyering  <jim@meyering.net>
87063         and  Paul Eggert  <eggert@cs.ucla.edu>
87064
87065         * modules/hash (Files): Add lib/xalloc.h.
87066         * modules/pipe (Depends-on): Add wait-process.
87067         * modules/stat (Depends-on): Add xalloc.
87068         * modules/userspec (Files): Add lib/userspec.h.
87069         * modules/xstrto
87070
87071         Upgrade from gettext-0.13.
87072         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87073         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87074         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87075
87076 2004-06-10  Jim Meyering  <jim@meyering.net>
87077
87078         * lib/calloc.c: New file.
87079
87080 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87081
87082         * lib/getdate.y (yylex): Allow space between sign and number.
87083         Problem reported by Dan Jacobson.
87084
87085 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87086
87087         Merge from coreutils CVS.
87088
87089         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87090         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87091         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87092         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87093         xstrtol.m4: Fix copyright date and/or serial number.
87094
87095         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87096         See if we need an fchown replacement.
87097         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87098         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87099         and use the replacement function if we detect either defect.
87100
87101         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87102         gl_UTIMECMP.
87103
87104 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87105         and  Jim Meyering  <jim@meyering.net>
87106
87107         Merge from coreutils CVS.
87108
87109         * lib/stat-macros.h: New file, with contents from file-type.h
87110         and coreutils' system.h.
87111         * lib/file-type.c: Include "stat-macros.h".
87112         * lib/file-type.h (file_type): Move all macro definitions to new file,
87113         stat-macros.h.
87114
87115         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87116         Wrap old code with this conditional.
87117         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87118         function that does not dereference symlinks.
87119         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87120
87121         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87122         dependency problems.
87123         (xreadlink): Accept new arg SIZE, for efficiency.
87124         All decls and uses changed.
87125         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87126
87127         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87128         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87129
87130         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87131         sysexits.h.
87132
87133 2004-06-01  Jim Meyering  <jim@meyering.net>
87134
87135         * m4/calloc.m4: New file.
87136
87137 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87138
87139         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87140         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87141         Also, fix a typo in a diagnostic.
87142
87143 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87144
87145         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87146         or AC_FUNC_REALLOC.
87147
87148 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87149
87150         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87151         macros to be defined.
87152         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87153         the allocator returns NULL because the requested size is zero.
87154
87155 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87156
87157         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87158         var.  Add comment explaining why libc still defines it.  This
87159         merges the following patch from glibc:
87160         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87161
87162 2004-05-20  Andreas Schwab  <schwab@suse.de>
87163
87164         * m4/free.m4: Replace free if it not known to work, not the other
87165         way round.
87166
87167 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87168
87169         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87170         present in glibc since revision 1.1 of this file.
87171         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87172         obstack_alignment_mask, obstack_alloc, obstack_base,
87173         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87174         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87175         obstack_grow0, obstack_init, obstack_int_grow,
87176         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87177         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87178         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87179         nonexistent functions.
87180
87181 2004-05-18  Karl Berry  <karl@gnu.org>
87182
87183         * config/srclist.txt: break link for vasnprintf.c.
87184
87185 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87186
87187         Port obstack to the AS/400, where pointers are 16 bytes wide and
87188         you cannot cast an integer to a valid pointer.  This patch is
87189         currently waiting to be integrated into glibc; see
87190         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87191
87192         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87193         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87194         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87195         (struct obstack): temp member is now a union of a pointer and
87196         an integer, instead of an integer.  All integer uses changed.
87197         This does not affect the physical layout of struct obstack,
87198         except on hosts (like the AS/400) where the size or alignment of
87199         void * is greater than that of ptrdiff_t.
87200         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87201         __STDC__)]: Store temporary in pointer member of union, not
87202         integer member.
87203         * lib/obstack.c: Include <stddef.h>, for offsetof.
87204         (struct fooalign): Remove; it doesn't need a name.
87205         (union fooround): Change double to long double, and add void *.
87206         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87207         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87208         not a macro.  Hence the values are always int; so remove all
87209         casts-to-int in uses.
87210
87211 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87212
87213         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87214         we can get this patch merged into glibc.
87215
87216 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87217             Paul Eggert  <eggert@cs.ucla.edu>
87218
87219         * m4/argp: Depend on alloca.
87220
87221 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87222             Paul Eggert  <eggert@cs.ucla.edu>
87223
87224         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87225         freecoding.
87226
87227 2004-05-17  Bruno Haible  <bruno@clisp.org>
87228
87229         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87230         precision that consists of a '.' followed by an empty digit string.
87231         Patch by Tor Lillqvist <tml@iki.fi>.
87232
87233 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87234
87235         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87236         for backward compatibility with older code.  We need our own
87237         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87238         it under some other name, and our alloca.h will define it.
87239
87240 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87241             Derek Price  <derek@ximbiot.com>
87242
87243         * lib/alloca.c: Include <alloca.h>, to get our interface.
87244         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87245         include <alloca.h> first.  Use C89 prototype for alloca; this
87246         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87247         Use #elif for simplicity, since we can assume C89 now.
87248         Don't try to source the system alloca.h since it will not be found
87249         and to prevent recursively including its replacement.
87250         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87251         * lib/regex.c: Likewise.
87252
87253 2004-05-16  Derek Price  <derek@ximbiot.com>
87254             Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         getline cleanup.  This changes the getndelim2 API: both order of
87257         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87258         no delimiter).
87259
87260         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87261         interface does that.
87262         (getline): Always use getdelim, so that we don't have two
87263         copies of this code.
87264         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87265         if available.
87266         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87267         (GETNDELIM2_MAXIMUM): New macro.
87268         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87269         instead of the old practice of delim2==0.  All callers changed.
87270         Return -1 on overflow, instead of returning junk.
87271         Do not set *linesize unless allocation succeeds.
87272         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87273         that we include sys/types.h.
87274         * lib/getnline.h: Likewise.
87275         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87276         (getndelim2): Reorder arguments.
87277         * lib/getnline.c (getnline, getndelim):
87278         Don't discard the NMAX argument.
87279         (getnline): Invoke getndelim, to avoid code duplication.
87280         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87281         of (size_t) -1 by callers of the getnline family.
87282
87283 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87284
87285         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87286         Check for gettimeofday.
87287         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87288         Check for settimeofday, stime.
87289
87290 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87291
87292         * lib/nanosleep.c (suspended): Change its type from int to
87293         sig_atomic_t volatile.
87294         (first_call): Make it private to rpl_nanosleep, and have it
87295         be zero initially as that's a bit faster.
87296         (my_usleep): Round up fractional times instead of truncating them,
87297         as this is the usual meaning for 'sleep'.
87298
87299         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87300         doesn't work.
87301         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87302         (ENOSYS): Define if not defined.
87303         (settime): Fall back on stime if it exists and settimeofday fails.
87304         But don't bother with fallbacks if a method fails with errno == EPERM.
87305
87306 2004-05-11  Jim Meyering  <jim@meyering.net>
87307
87308         Prior to this change, the save_cwd caller required read access to the
87309         current directory on most systems (ones with the fchdir function).
87310
87311         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87312         fails, try write-only, and finally, resort to using xgetcwd.
87313
87314 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         * lib/obstack.c, obstack.h: Import changes from libc.
87317
87318 2004-04-28  Bruno Haible  <bruno@clisp.org>
87319
87320         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87321         also implicitly appends .exe to executables.
87322         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87323         accepts Windows pathnames.
87324         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87325         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87326         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87327         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87328         Reported by Derek Robert Price <derek@ximbiot.com>.
87329
87330 2004-04-21  Karl Berry  <karl@gnu.org>
87331
87332         * config/srclist.txt (localcharset.c): break sync.
87333
87334 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87335
87336         * m4/host-os.m4: Add a copyright notice.
87337
87338 2004-04-20  Jim Meyering  <jim@meyering.net>
87339
87340         Change UTILS_ to gl_ in AC_DEFINE'd names.
87341         Change utils_- and jm_-prefixed variables, too.
87342         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87343         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87344         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87345
87346         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87347         Don't emit trailing blanks.
87348         Also rename jm_-prefixed variables to have gl_ prefix.
87349
87350         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87351         Also rename jm_-prefixed variables to have gl_ prefix.
87352
87353         * m4/jm-macros.m4: Reflect the renamings.
87354         * m4/prereq.m4: Likewise.
87355
87356 2004-04-20  Jim Meyering  <jim@meyering.net>
87357
87358         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87359         memory.
87360
87361 2004-04-20  Jim Meyering  <jim@meyering.net>
87362             Bruno Haible  <bruno@clisp.org>
87363
87364         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87365         memory when realloc fails.
87366
87367 2004-04-19  Jim Meyering  <jim@meyering.net>
87368
87369         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87370         now that readutmp.c may call `free (0)'.
87371
87372 2004-04-19  Bruno Haible  <bruno@clisp.org>
87373
87374         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87375         * m4/inttypes_h.m4: Likewise.
87376         * m4/stdint_h.m4: Likewise.
87377         * m4/intmax_t.m4: Likewise.
87378         * m4/uintmax_t.m4: Likewise.
87379
87380 2004-04-18  Jim Meyering  <jim@meyering.net>
87381
87382         * m4/prereq.m4: Don't forbid jm_ prefix.
87383
87384         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87385         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87386         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87387         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87388         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87389         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87390         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87391         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87392         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87393         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87394         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87395         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87396         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87397         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87398         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87399         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87400         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87401         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87402         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87403
87404 2004-04-18  Jim Meyering  <jim@meyering.net>
87405
87406         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87407         failure, don't leak memory and do call END_UTMP_ENT.
87408
87409 2004-04-16  Jim Meyering  <jim@meyering.net>
87410
87411         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87412         coreutils' stat program.
87413         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87414
87415 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87416
87417         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87418         C89.
87419         (CHAR_BIT): Remove, since we assume C89.
87420         Include <stdint.h> if available, as per current Autoconf CVS advice.
87421
87422 2004-03-31  Jim Meyering  <jim@meyering.net>
87423
87424         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87425         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87426         * m4/xalloc.m4: Likewise.
87427
87428 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87429
87430         Merge from coreutils.
87431
87432         * m4/inttostr.m4: New file.
87433         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87434         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87435         Require gl_CLOCK_TIME.
87436         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87437
87438 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87439
87440         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87441         not bool, to be more consistent with Unix conventions.
87442         Suggested by Bruno Haible.
87443
87444         Merge from coreutils.
87445
87446         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87447         * lib/umaxtostr.c: New files.
87448
87449         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87450         the usual <time.h> dance.
87451         (get_date): Change signature to support fractional time stamps.
87452         All callers changed.
87453         * lib/getdate.y: Include "getdate.h" first, as we can now
87454         assume C89 and don't need to worry about 'const'.
87455         Similarly, include "unlocked-io.h" near start, not in middle.
87456         Include <limits.h>.
87457         (textint.value): Use long int rather than int.
87458         (textint.digits): Use size_t rather than int.
87459         (BILLION, LOG10_BILLION): New constants.
87460         (parser_control): New member rel_ns.  Members day_ordinal,
87461         time_zone, month, day, hour, minutes, rel_year, rel_month,
87462         rel_day, rel_hour, rel_minutes, rel_seconds
87463         are now long int, not int.  Member seconds is now struct timespec,
87464         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87465         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87466         not int.
87467         (%union.intval): Now long int, not int.
87468         New member timespec.
87469         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87470         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87471         (spec): Now is a timespec or an item list.
87472         (timespec, items): New nonterminals.
87473         (time, rel, relunit, number, get_date):
87474         Add support for fractional seconds.
87475         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87476         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87477         (to_hour): First arg is now long int, not int.
87478         (to_year): Returns long int, not int.
87479         Don't treat year -70 like 70.
87480         (tm_diff): Returns long int, not int.
87481         (lookup_word): Use bool instead of int when appropriate.
87482         (yylex): Use size_t for count, not int.
87483         Detect overflow when parsing large integer constants.
87484         Add support for fractions.
87485         (get_date): Make pointers 'const' if possible.
87486         Use more-portable code to detect integer overflow.
87487         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87488         Don't use ctime; it's not reliable if the year has >4 digits.
87489
87490         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87491         This is for compatibility with BSD.
87492
87493         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87494         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87495         From coreutils' system.h.
87496
87497         * lib/userspec.c: Don't include "posixver.h".
87498         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87499         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87500         compatible extension.  Simplify code by removing a boolean int
87501         that was always nonzero if a string was nonnull.
87502
87503 2004-03-30  Jim Meyering  <jim@meyering.net>
87504
87505         Merge from coreutils.
87506
87507         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87508         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87509         on some systems one must include <grp.h> before it.
87510         Reported by Christian Krackowizer.
87511
87512 2004-03-30  Jim Meyering  <jim@meyering.net>
87513
87514         Merge from coreutils.
87515
87516         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87517
87518         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87519         an empty input stream.
87520
87521         * lib/readtokens.c: Include <stdbool.h>.
87522         (readtoken): Use `size_t' rather than int/long.
87523         All callers adjusted.
87524         Use `bool' rather than `int' where appropriate.
87525         Use memset rather than an explicit loop.
87526         Use x2nrealloc rather than xrealloc.
87527         Allow the use of `\0' as a delimiter.
87528         (readtokens): Likewise.
87529         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87530
87531 2004-03-30  Jim Meyering  <jim@meyering.net>
87532
87533         * m4/realloc.m4: Remove file, since now it does no more than
87534         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87535         the `configure.ac' section of module/realloc.
87536         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87537
87538 2004-03-30  Bruno Haible  <bruno@clisp.org>
87539
87540         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87541         nonnull.
87542
87543 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87544
87545         Merge changes to getloadavg.c from coreutils and Emacs.
87546
87547         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87548         Define to an expression, not to the empty string.
87549         Include cloexec.h and xalloc.h.
87550         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87551         Use set_cloexec_flag rather than rolling our own.
87552         * lib/cloexec.c, lib/cloexec.h: New files.
87553
87554 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87555
87556         * m4/cloexec.m4: New file.
87557
87558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87559
87560         * lib/getopt.h: Sync with libc CVS.
87561
87562 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87563             Bruno Haible  <bruno@clisp.org>
87564
87565         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87566         mbswidth.
87567
87568 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87569             Bruno Haible  <bruno@clisp.org>
87570
87571         * lib/mbswidth.h: Include <wchar.h> only if
87572         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87573         <wchar.h>.
87574         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87575
87576 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87577
87578         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87579         Sync with libc CVS.
87580         * lib/getopt_int.h: New file, also synced from libc.
87581
87582 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87583
87584         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87585         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87586         Bring back getopt.c, getopt.h, getopt1.c.
87587
87588 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87589
87590         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87591         All uses changed.  Check for sa_sigaction member; this fixes
87592         a bug first reported by Jason Andrade in
87593         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87594
87595 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87596
87597         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87598         '#if' expressions.  Unlike the code it replaces, it does not
87599         depend on (defined _SC_PAGESIZE).  However, it does depend on
87600         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87601         first reported by Jason Andrade in
87602         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87603
87604 2004-02-25  Simon Josefsson  <jas@extundo.com>
87605
87606         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87607
87608 2004-02-25  Simon Josefsson  <jas@extundo.com>
87609
87610         * lib/strdup.h: New file.
87611         * lib/strdup.c: Include it.
87612         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87613         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87614
87615 2004-02-23  Karl Berry  <karl@gnu.org>
87616
87617         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87618         (from fencepost.gnu.org:/gd/gnuorg).
87619
87620 2004-02-23  Karl Berry  <karl@gnu.org>
87621
87622         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87623         * config/srclist.txt: add maintain/standards documents.
87624
87625 2004-02-18  Bruno Haible  <bruno@clisp.org>
87626
87627         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87628         Reported by Derek Robert Price <derek@ximbiot.com>.
87629
87630 2004-02-16  Karl Berry  <karl@gnu.org>
87631
87632         * config/mkinstalldirs, install-sh: update from automake.
87633
87634 2004-02-06  Karl Berry  <karl@gnu.org>
87635
87636         * m4/po.m4: update from gettext 0.14.1.
87637
87638 2004-02-06  Karl Berry  <karl@gnu.org>
87639
87640         * lib/config.charset: update from gettext 0.14.1.
87641
87642 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87643
87644         Add comments and code, prompted by suggestions from Bruno Haible
87645         for sh-quote.
87646         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87647         describing the enum quoting_style values.
87648         * lib/quotearg.c (quotearg_alloc): New function.
87649         (quotearg_buffer_restyled): Treat lone { and } as special.
87650         Treat = as special.  Work around bug with older shells
87651         that "see" a '\' that is really the 2nd byte of a multibyte char.
87652         Quote empty string with shell_quoting_style.
87653
87654 2004-02-03  Bruno Haible  <bruno@clisp.org>
87655
87656         * m4/pipe.m4: New file, from GNU gettext.
87657
87658 2004-02-03  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/pipe.h: New file, from GNU gettext.
87661         * lib/pipe.c: New file, from GNU gettext.
87662
87663 2004-01-27  Bruno Haible  <bruno@clisp.org>
87664
87665         * m4/execute.m4: New file, from GNU gettext.
87666
87667 2004-01-27  Bruno Haible  <bruno@clisp.org>
87668
87669         * lib/execute.h: New file, from GNU gettext.
87670         * lib/execute.c: New file, from GNU gettext.
87671         * lib/w32spawn.h: New file, from GNU gettext.
87672
87673 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87674
87675         Merge from diffutils.
87676
87677         * lib/file-type.c (file_type): Add typed memory objects.
87678         * lib/file-type.h (S_TYPEISTMO): New macro.
87679
87680         * lib/c-stack.h (c_stack_action): Remove argv argument.
87681         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87682         (die): Don't calculate message unless segv_action returns.
87683         (get_stack_location, min_address_from_argv, max_address_from_argv,
87684         volatile stack_base, volatile_stack_size): Remove.
87685         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87686         that every segmentation violation is a stack overflow.  (Ouch!)
87687         See Debian bug 136249 (still outstanding) for more info about why
87688         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87689
87690 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87691
87692         Exit-status fix from coreutils.
87693
87694         Use exit_failure consistently in place of EXIT_FAILURE,
87695         so that program exit statuses are consistent on failure.
87696
87697         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87698         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87699         * lib/argmatch.h: Comment fix to match the above.
87700         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87701         Now a macro referring to exit_failure, instead of a separate
87702         variable.  Include "exitfail.h" to get it.
87703         * lib/xstrtol.h: Include "exitfail.h".
87704         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87705
87706         * lib/long-options.c (parse_long_options): Use prototype
87707         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87708         for clarity.
87709
87710 2004-01-21  Jim Meyering  <jim@meyering.net>
87711
87712         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87713         so as not to conflict with a different-sized __mktime_internal
87714         function in GNU libc.
87715         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87716         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87717
87718 2004-01-20  Karl Berry  <karl@gnu.org>
87719
87720         * config/config.guess: update from config.
87721
87722         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87723
87724 2004-01-20  Bruno Haible  <bruno@clisp.org>
87725
87726         Safer stack allocation.
87727         * lib/setenv.c: Include allocsa.h.
87728         (alloca): Remove fallback definition.
87729         (freea): Remove macro.
87730         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87731         instead of freea.
87732
87733 2004-01-20  Bruno Haible  <bruno@clisp.org>
87734
87735         * m4/eealloc.m4: New file, from GNU gettext.
87736
87737 2004-01-20  Bruno Haible  <bruno@clisp.org>
87738
87739         * m4/allocsa.m4: New file, from GNU gettext.
87740
87741 2004-01-20  Bruno Haible  <bruno@clisp.org>
87742
87743         * lib/xallocsa.h: New file, from GNU gettext.
87744         * lib/xallocsa.c: New file, from GNU gettext.
87745
87746 2004-01-20  Bruno Haible  <bruno@clisp.org>
87747
87748         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87749
87750 2004-01-20  Bruno Haible  <bruno@clisp.org>
87751
87752         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87753         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87754         specially.
87755
87756 2004-01-20  Bruno Haible  <bruno@clisp.org>
87757
87758         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87759         patch.
87760
87761 2004-01-20  Bruno Haible  <bruno@clisp.org>
87762
87763         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87764
87765 2004-01-20  Bruno Haible  <bruno@clisp.org>
87766
87767         * lib/eealloc.h: New file.
87768
87769 2004-01-20  Bruno Haible  <bruno@clisp.org>
87770
87771         * lib/binary-io.h: Avoid warnings on Cygwin.
87772
87773 2004-01-20  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/allocsa.h: New file, from GNU gettext.
87776         * lib/allocsa.c: New file, from GNU gettext.
87777
87778 2004-01-18  Karl Berry  <karl@gnu.org>
87779
87780         * doc/gpl.texi, doc/lgpl.texi: new files.
87781
87782 2004-01-18  Karl Berry  <karl@gnu.org>
87783
87784         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87785         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87786
87787 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87788
87789         Merge from coreutils.
87790
87791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87792         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87793         (gl_DEFAULT_POSIX2_VERSION): Move
87794         the documentation from 'configure' into 'config.hin',
87795         so that 'configure --help' isn't burdened by it and
87796         we don't have to worry about its formatting there.
87797         Reword the documentation so that it's more succinct
87798         and can be run together into a single paragraph.
87799         * m4/same.m4 (gl_SAME): Check for pathconf.
87800
87801 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87802
87803         Merge from coreutils.
87804
87805         * lib/posixver.c: Include posixver.h.
87806
87807         * lib/same.c: Include <stdbool.h>, <limits.h>.
87808         (_POSIX_NAME_MAX): Define if not defined.
87809         (MIN): New macro.
87810         (same_name): If file names are silently truncated, report
87811         that the file names are the same if they are the same after
87812         the silent truncation.
87813
87814         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87815         conversion function.
87816         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87817         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87818         longer needed.
87819
87820 2004-01-15  Jim Meyering  <jim@meyering.net>
87821
87822         Merge from coreutils.
87823
87824         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87825         if no library is required.
87826         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87827         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87828         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87829         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87830         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87831         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87832         value, $ac_cv_search_crypt, if it's "none required".
87833         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87834         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87835         not gl_FUNC_GETLOADAVG.
87836         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87837         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87838
87839 2004-01-15  Jim Meyering  <jim@meyering.net>
87840
87841         Merge from coreutils.
87842
87843         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87844         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87845         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87846
87847         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87848         optional configure-time default.
87849
87850         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87851
87852         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87853
87854 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87855
87856         Merge from coreutils.
87857
87858         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87859         value, $ac_cv_search_nanosleep, if it's "none required".
87860
87861 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87862
87863         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87864         with like-named macro in fnmatch.c.
87865         (EXT): Use an internal constant instead.
87866
87867         Merge fnmatch patches from glibc.
87868         * lib/fnmatch.c (mbsinit): Remove define.
87869         Add libc_hidden_ver (__fnmatch, fnmatch).
87870         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87871         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87872
87873 2004-01-14  Karl Berry  <karl@gnu.org>
87874
87875         * config/install-sh: update from automake.
87876
87877 2004-01-13  Karl Berry  <karl@gnu.org>
87878
87879         * config/install-sh: update from automake.
87880
87881 2004-01-09  Karl Berry  <karl@gnu.org>
87882
87883         * config/install-sh: update from automake.
87884
87885 2004-01-05  Karl Berry  <karl@gnu.org>
87886
87887         * config/config.{sub,guess}: update from config.
87888
87889 2003-12-31  Karl Berry  <karl@gnu.org>
87890
87891         * config/depcomp: update from automake.
87892
87893 2003-12-14  Karl Berry  <karl@gnu.org>
87894
87895         * lib/config.charset: update from gettext-runtime.
87896
87897 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87898
87899         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87900         Bug reported by Alfred M. Szmidt.
87901
87902 2003-12-03  Bruno Haible  <bruno@clisp.org>
87903
87904         * m4/gettext.m4: Upgrade from gettext-0.13.
87905         * m4/po.m4: Upgrade from gettext-0.13.
87906         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87907         * m4/intmax.m4: New file, from gettext-0.13.
87908         * m4/printf-posix.m4: New file, from gettext-0.13.
87909
87910 2003-11-29  Karl Berry  <karl@gnu.org>
87911
87912         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87913
87914 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87915             Bruno Haible  <bruno@clisp.org>
87916
87917         * lib/printf-parse.h: Don't include sys/types.h.
87918         (ARG_NONE): New macro.
87919         (char_directive): Change type of *arg_index fields to size_t.
87920         * lib/printf-parse.c: Don't include sys/types.h.
87921         (SSIZE_MAX): Remove macro.
87922         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87923         Remove unnecessary overflow check.
87924         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87925         fields.
87926
87927 2003-11-25  Bruno Haible  <bruno@clisp.org>
87928
87929         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87930
87931 2003-11-25  Bruno Haible  <bruno@clisp.org>
87932
87933         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87934         gt_TYPE_SSIZE_T.
87935
87936 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87937
87938         * modules/alloca: Remove dependency on xalloc.
87939
87940 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87941
87942         * lib/alloca.c: Remove dependency on xalloc module.
87943         (xalloc_die): Remove.
87944         (memory_full) [!defined emacs]: New macro.
87945         [!defined emacs]: Don't include xalloc.h.
87946         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87947         address arithmetic overflows.  Change datatypes a bit to avoid
87948         unnecessary casts.
87949
87950 2003-11-22  Jim Meyering  <jim@meyering.net>
87951
87952         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87953         s/size/size_t/.
87954
87955 2003-11-21  Karl Berry  <karl@gnu.org>
87956
87957         * config/config.{sub,guess}: update from config.
87958
87959 2003-11-18  Karl Berry  <karl@gnu.org>
87960
87961         * config/config.{sub,guess}: update from config.
87962
87963         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87964
87965 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87966
87967         * README: Mention that S+T cannot overflow if S is the size of
87968         an existing object and T is sufficiently small.
87969
87970 2003-11-17  Jim Meyering  <jim@meyering.net>
87971
87972         On systems without utime and without a utimes function capable of
87973         dealing with a NULL struct utimbuf* argument, this utime replacement
87974         could -- in unusual circumstances -- leak a file descriptor.
87975         * lib/utime.c: Include <unistd.h> and <errno.h>.
87976         (utime_null): Be sure to close `fd' and to preserve errno.
87977         Reported by Geoff Collyer via Arnold Robbins.
87978
87979 2003-11-17  Bruno Haible  <bruno@clisp.org>
87980
87981         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87982         (Depends-on): Add xsize.
87983
87984 2003-11-17  Bruno Haible  <bruno@clisp.org>
87985
87986         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87987
87988 2003-11-17  Bruno Haible  <bruno@clisp.org>
87989
87990         * lib/vasnprintf.c (alloca): Remove fallback definition.
87991         (freea): Remove definition.
87992         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87993         Reported by Paul Eggert.
87994
87995 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87996             Bruno Haible  <bruno@clisp.org>
87997
87998         Protect against address arithmetic overflow.
87999         * lib/printf-args.h: Include stddef.h.
88000         (arguments): Change type of field 'count' to size_t.
88001         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88002         'unsigned int' where appropriate.
88003         * lib/printf-parse.h: Include sys/types.h.
88004         (char_directive): Change type of *arg_index fields to ssize_t.
88005         (char_directives): Change type of fields 'count', max_*_length to
88006         size_t.
88007         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88008         (SSIZE_MAX): Define fallback value.
88009         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88010         instead of 'int' where appropriate. Check a_allocated, d_allocated
88011         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88012         * lib/vasnprintf.c: Include xsize.h.
88013         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88014         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88015         overflow. Avoid wraparound when converting a width or precision from
88016         decimal to binary.
88017
88018 2003-11-16  Bruno Haible  <bruno@clisp.org>
88019
88020         Update from GNU gettext.
88021         * lib/printf-parse.c: Generalize to it can be compiled for wide
88022         strings.
88023         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88024         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88025         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88026         SNPRINTF): New macros.
88027         Don't include <alloca.h> if the file is used inside libintl.
88028         (local_wcslen): New function, for Solaris 2.5.1.
88029         (VASNPRINTF): Use it instead of wcslen.
88030
88031 2003-11-16  Bruno Haible  <bruno@clisp.org>
88032
88033         * lib/xsize.h (xmax): New function.
88034         (xsum, xsum3, xsum4): Declare as "pure" functions.
88035
88036 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88037
88038         * modules/xalloc (Files): Undo latest change, since xalloc.h
88039         no longer needs SIZE_MAX or PTRDIFF_MAX.
88040
88041 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88042
88043         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88044         gl_PTRDIFF_MAX.
88045
88046 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88047
88048         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88049         "return", to pacify some unknown compiler.  Problem reported
88050         by Joerg Schilling.
88051
88052 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88053
88054         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88055         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88056         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88057         heuristic is just as accurate as far as we know, and it removes a
88058         dependency on size_max.m4 and ptrdiff_max.m4.
88059
88060 2003-11-11  Bruno Haible  <bruno@clisp.org>
88061
88062         * modules/xsize (Files): Add m4/size_max.m4.
88063         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88064
88065 2003-11-11  Bruno Haible  <bruno@clisp.org>
88066
88067         * m4/size_max.m4: New file.
88068         * m4/ptrdiff_max.m4: New file.
88069         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88070         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88071         (gl_XALLOC): Invoke it.
88072
88073 2003-11-11  Bruno Haible  <bruno@clisp.org>
88074
88075         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88076         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88077         defined.
88078
88079 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88080
88081         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88082         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88083         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88084         From Bruno Haible.
88085         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88086         not (size_t) -1, since it's defined here.
88087
88088 2003-11-09  Karl Berry  <karl@gnu.org>
88089
88090         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88091
88092 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88093
88094         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88095         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88096         Reject sizes of exactly SIZE_MAX bytes.
88097         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88098         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88099
88100 2003-11-05  Bruno Haible  <bruno@clisp.org>
88101
88102         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88103         SIZE_MAX defined in <limits.h> on Solaris.
88104
88105 2003-11-04  Jim Meyering  <jim@meyering.net>
88106
88107         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88108         variable names, rather than @VAR@.
88109         * modules/poll: Likewise.
88110
88111 2003-11-04  Bruno Haible  <bruno@clisp.org>
88112
88113         * modules/xsize: New file.
88114         * modules/linebreak: Depend on xsize.
88115         * MODULES.html.sh (func_all_modules): Add xsize.
88116
88117 2003-11-04  Bruno Haible  <bruno@clisp.org>
88118
88119         * m4/xsize.m4: New file.
88120
88121 2003-11-04  Bruno Haible  <bruno@clisp.org>
88122
88123         * lib/xsize.h: New file.
88124         * lib/linebreak.c: Include xsize.h.
88125         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88126         argument for overflow.
88127         Suggested by Paul Eggert.
88128
88129 2003-11-03  Karl Berry  <karl@gnu.org>
88130
88131         * config/config.{guess,sub}: update from config.
88132
88133 2003-11-03  Jim Meyering  <jim@meyering.net>
88134
88135         * modules/userspec (lib_SOURCES): Add userspec.h.
88136         (Include): Add "userspec.h".
88137         Improve description.
88138
88139 2003-11-03  Jim Meyering  <jim@meyering.net>
88140
88141         * lib/userspec.c: Include "userspec.h".
88142         * lib/userspec.h: New file.
88143
88144 2003-11-03  Bruno Haible  <bruno@clisp.org>
88145
88146         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88147
88148 2003-11-03  Bruno Haible  <bruno@clisp.org>
88149
88150         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88151         available, to avoid (extremely rare) race condition.
88152         Suggested by Paul Eggert.
88153
88154 2003-11-02  Karl Berry  <karl@gnu.org>
88155
88156         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88157
88158 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88159
88160         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88161         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88162         (read_filesystem_list): Set and use me_type_malloced.
88163         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88164         whatever the type happens to be), for brevity and consistency.
88165         Check for size calculation overflow on Alphas running OSF/1.
88166
88167 2003-10-31  Jim Meyering  <jim@meyering.net>
88168
88169         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88170
88171         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88172
88173 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88174             Bruno Haible  <bruno@clisp.org>
88175
88176         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88177         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88178
88179 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88180
88181         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88182         netbsd*-gnu*.  Suggested by Robert Millan.
88183
88184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88185
88186         * modules/group-member: Depend on stdbool.
88187
88188 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88189
88190         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88191
88192 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88193
88194         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88195         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88196         after the 'gnu' in these cases.  This fixes some bugs in the
88197         previous change, and is based on suggestions by Robert Millan.
88198
88199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88200
88201         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88202         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88203         no longer needed.
88204         * lib/quotearg.c (quotearg_n_options): Use it.
88205         * lib/group-member.c: Include <stdbool.h>.
88206         (free_group_info): Arg is now const *; don't free arg.
88207         (get_group_info): Now returns bool and accepts struct group_info *,
88208         rather than returning a malloc'ed struct group_info *.
88209         All uses changed.  Check for overflow in internal size calculation.
88210
88211         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88212         rather than xmalloc/xrealloc.
88213         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88214         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88215         conformance bug: the old code used a pointer after freeing the
88216         storage that it addressed.
88217         * lib/hash.c (hash_initialize): Simplify the code by using
88218         xalloc_oversized rather than doing it by hand.
88219         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88220         the buffer preserved.  Use free and xmalloc instead.
88221         * lib/quotearg.c (quotearg_n_options): Likewise.
88222         Use a simpler test for size overflow.  Don't use xalloc_oversized
88223         because unsigned int might be wider than size_t (!); this suggests
88224         that we should switch from unsigned int to size_t for slot numbers.
88225
88226 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88227
88228         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88229         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88230         NetBSD kernels.  Requested by Richard Stallman.
88231
88232 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88233
88234         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88235         to allocate the returned structure.  Do not allocate a subarray,
88236         as x2nrealloc will do that.
88237         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88238         instead of xnrealloc.
88239         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88240
88241 2003-10-27  Bruno Haible  <bruno@clisp.org>
88242
88243         * lib/stdbool_.h: Better support for BeOS.
88244
88245 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88246
88247         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88248         now uses inline.
88249
88250 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88251
88252         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88253         callers that want to do their own size-overflow checking.  Include
88254         <stdbool.h>, since xalloc_oversized returns bool.
88255         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88256         to use xalloc_oversized.
88257
88258         Add two functions x2realloc, x2nrealloc, for programs that grow
88259         arrays dynamically by doubling their sizes.
88260         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88261         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88262         New functions.
88263
88264         Port to C99 semantics for 'inline' of external functions.
88265         Bug reported by Bruno Haible.
88266         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88267         with the old contents of xnmalloc.
88268         (xnmalloc, xmalloc): Use it.
88269         (xnrealloc_inline): New static inline function,
88270         with the old contents of xnrealloc.
88271         (xnrealloc, xrealloc): Use it.
88272
88273         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88274         that.
88275
88276 2003-10-26  Karl Berry  <karl@gnu.org>
88277
88278         * config/srclist.txt (COPYING.DOC): no longer available from
88279         /gd/gnuorg; don't know where the ultimate source is.
88280
88281 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88282
88283         Fix several address-calculation bugs in the hash modules,
88284         plus some minor code cleanup.
88285
88286         * lib/hash.h: Include <stdbool.h>, for bool.
88287         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88288         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88289         hash_get_n_entries, hash_get_max_bucket_length,
88290         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88291         hash_rehash): Use size_t rather than unsigned.
88292         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88293         hash_get_n_buckets_used, hash_get_n_entries,
88294         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88295         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88296         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88297         Likewise.
88298         (SIZE_MAX): Define if not defined.
88299         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88300         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88301         hash_print):
88302         Use const * when possible.
88303         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88304         (check_tuning): Fix bug: if tuning parameters were very close to
88305         0 or 1, rounding errors could have caused subscript violations.
88306         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88307         (hash_initialize): Add 'fail:' label
88308         to free table and return NULL, and use it to simplify code.
88309         Use calloc rather than clearing the storage ourself.
88310         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88311         buffer size calculations.
88312         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88313         Include <stddef.h>, for size_t.
88314         * lib/hash-pjw.c (hash_pjw): Likewise.
88315         Switch to method described by Bruno Haible.
88316         Include <limits.h>, for CHAR_BIT.
88317         (SIZE_BITS): New macro.
88318
88319 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88320
88321         * m4/getline.m4 (AM_FUNC_GETLINE):
88322         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88323         hosts.  Problem reported by Derek Robert Price in
88324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88325         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88326         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88327
88328 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88329
88330         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88331         ceiling the allocation at NMAX bytes rather than silently
88332         discarding input bytes before NMAX is reached.  This makes
88333         a difference only if NMAX exceeds SIZE_MAX / 2.
88334
88335         * lib/obstack.c: Merge from glibc.
88336         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88337         Add libc_hidden_def (_obstack_newchunk).
88338         (_obstack_free) [! defined _LIBC]: Remove.
88339         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88340         a clone of the function body.
88341         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88342         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88343
88344         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88345         glibc.
88346         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88347         arg to memcpy.
88348
88349         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88350         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88351         Don't use lvalue casts, as GCC plans to remove support for them
88352         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88353         was also present in the non-GCC version, indicating that this
88354         code had always been buggy and had never been widely used.
88355         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88356         Use the fast variant of each macro, rather than copying the
88357         definiens of the fast variant; that way, we'll be more likely to
88358         catch future bugs in the fast variants.
88359
88360 2003-10-20  Bruno Haible  <bruno@clisp.org>
88361
88362         * modules/wait-process: New file.
88363         * MODULES.html.sh (func_all_modules): Add wait-process.
88364
88365 2003-10-20  Bruno Haible  <bruno@clisp.org>
88366
88367         * m4/wait-process.m4: New file.
88368
88369 2003-10-20  Bruno Haible  <bruno@clisp.org>
88370
88371         * lib/wait-process.h: New file, from GNU gettext.
88372         * lib/wait-process.c: New file, from GNU gettext.
88373
88374 2003-10-19  Jim Meyering  <jim@meyering.net>
88375
88376         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88377         HPUX 10.20.
88378
88379 2003-10-18  Karl Berry  <karl@gnu.org>
88380
88381         * config/config.guess: update from config.
88382
88383 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88384
88385         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88386         (getgroups): First arg is int, not size_t.
88387         Don't let 'free' mangle errno.
88388
88389 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88390
88391         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88392
88393 2003-10-16  Karl Berry  <karl@gnu.org>
88394
88395         * config/config.{guess,sub}: update from config.
88396
88397 2003-10-16  Jim Meyering  <jim@meyering.net>
88398
88399         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88400         memcpy.
88401
88402 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88403
88404         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88405         (SIZE_MAX): Remove.
88406         (new_exclude, add_exclude_file): Initial size no longer needs to
88407         be a power of 2.
88408         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88409         our own address arithmetic overflow checking.
88410
88411         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88412         (fnmatch): Do not alloca more than 2000 wide characters;
88413         instead, use malloc for large buffers.
88414         Check for address arithmetic overflow, and return -1
88415         with errno set to ENOMEM in that case.
88416         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88417         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88418         instead, return -1.  Check for address arithmetic overflow.
88419
88420 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88421
88422         Handle invalid suffixes and overflow independently, so that
88423         callers can treat them independently as needed.  Fix some bugs in
88424         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88425         suffix for a human-readable blocksize.  The major caller-visible
88426         change is the addition of a new
88427         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88428         that both overflow and suffix chars were found.
88429
88430         * lib/human.c (humblock): Don't check separately for invalid suffix
88431         char; that is xstrtoumax's job (now that its bug is fixed).
88432         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88433         INTMAX_MAX]: New macros.
88434         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88435         TYPE_MAXIMUM): New macros.
88436         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88437         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88438         if overflow occurs, as it's what __strtol does and it's more useful
88439         in practice.
88440         (__xstrtol): If __strtol reports some error other than ERANGE,
88441         reflect it to the caller as LONGINT_INVALID.  If it reports
88442         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88443         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88444         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88445         value.
88446         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88447         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88448         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88449         [defined UINTMAX_MAX]: New macros.
88450
88451 2003-10-14  Bruno Haible  <bruno@clisp.org>
88452
88453         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88454
88455 2003-10-14  Bruno Haible  <bruno@clisp.org>
88456
88457         * m4/sig_atomic_t: New file, from GNU gettext.
88458         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88459
88460 2003-10-14  Bruno Haible  <bruno@clisp.org>
88461
88462         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88463         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88464         Also use volatile where needed.
88465
88466 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88467
88468         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88469         Change maintainer from Bruno Haible to 'all'.
88470
88471 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88472
88473         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88474
88475 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88476
88477         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88478         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88479         and define in terms of the other primitives.
88480         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88481         (SIZE_MAX): Define if not already defined.
88482         (array_size_overflow): New function.
88483         (xalloc_die): Abort instead of exiting if 'error' returns.
88484         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88485         (xmalloc, xrealloc): Use them.
88486         (xcalloc): Check for address arithmetic overflow.
88487         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88488         a bit faster than strcpy.
88489
88490 2003-10-10  Simon Josefsson  <jas@extundo.com>
88491
88492         * modules/argp (Depends-on): Add restrict and strcase.
88493
88494 2003-10-10  Simon Josefsson  <jas@extundo.com>
88495
88496         * m4/argp.m4: Add AC_C_INLINE.
88497
88498 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88499
88500         Merge getpass from libc, plus a few fixes.
88501
88502         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88503         Include <stdbool.h>.
88504         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88505         __fsetlocking to empty.
88506         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88507         do include <bits/libc-lock.h>.
88508         Do not include <fcntl.h>; not needed.
88509         [_LIBC]: Include <wchar.h>.
88510         (NOTCANCEL_MODE): New macro.
88511         (flockfile, funlockfile) [_LIBC]: New macros.
88512         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88513         [!_LIBC]: New macros.
88514         (call_fclose): New function.
88515         (getpass): Use it.  Save tty stream separately; this simplifies the
88516         code and makes it more reliable if stdin happens to equal stdout.
88517         Invoke __fsetlocking on tty.
88518         Handle thread cancellation if needed.
88519         Namespace cleanup (use __tcgetattr, __getline).
88520         Use bool for Booleans.
88521         [USE_IN_LIBIO]: Handle wide streams.
88522         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88523         stream might go where.
88524
88525         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88526         doesn't have to include <stdio.h> before us.
88527         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88528         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88529         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88530         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88531         if not declared, so that we can use getpass.c code from libc without
88532         rewriting it.
88533         (flockfile, ftrylockfile, funlockfile): New macros.
88534
88535 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88536
88537         * modules/getpass: Depend on stdbool.
88538
88539 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88540
88541         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88542
88543 2003-10-07  Karl Berry  <karl@gnu.org>
88544
88545         * config/config.{guess,sub}: update from config.
88546
88547 2003-10-06  Jim Meyering  <jim@meyering.net>
88548             Bruno Haible  <bruno@clisp.org>
88549
88550         This lets translators provide better translations for the
88551         "Written by ..." part of --version output.
88552         * lib/version-etc.h: Include stdarg.h.
88553         (version_etc_copyright): Declare as readonly.
88554         (version_etc): Make this function variadic with a NULL-terminated list
88555         of author name strings.
88556         (version_etc_va): New declaration.
88557         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88558         (version_etc_copyright): Declare as readonly.
88559         (version_etc_va): New function. Provide a different translatable string
88560         for each possible number of authors < 10. Abbreviate when there are 10
88561         authors or more.
88562         (version_etc): Make this function variadic. Call version_etc_va.
88563         Suggestion from Gary V. Vaughan.
88564
88565         * lib/long-options.h (parse_long_options): Change prototype: the
88566         authors string is moved to the end and becomes variadic.
88567         * lib/long-options.c: Include stdarg.h.
88568         (parse_long_options): Make this function variadic, too.
88569         Call version_etc_va, not version_etc.
88570
88571 2003-10-06  Bruno Haible  <bruno@clisp.org>
88572
88573         * modules/version-etc-2: Remove file.
88574         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88575
88576 2003-10-06  Bruno Haible  <bruno@clisp.org>
88577
88578         * modules/fatal-signal: New file.
88579         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88580
88581 2003-10-06  Bruno Haible  <bruno@clisp.org>
88582
88583         * m4/fatal-signal.m4: New file.
88584         * m4/signalblocking.m4: New file, from GNU gettext.
88585
88586 2003-10-06  Bruno Haible  <bruno@clisp.org>
88587
88588         * lib/version-etc-2.h: Remove file.
88589         * lib/version-etc-2.c: Remove file.
88590
88591 2003-10-06  Bruno Haible  <bruno@clisp.org>
88592
88593         * lib/fatal-signal.h: New file, from GNU gettext.
88594         * lib/fatal-signal.c: New file, from GNU gettext.
88595
88596 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88597
88598         * README: Rework advice for preventing empty .o files.
88599         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88600         not <sys/types.h>.
88601
88602 2003-10-04  Karl Berry  <karl@gnu.org>
88603
88604         * lib/argp*: update from libc.
88605
88606 2003-10-04  Karl Berry  <karl@gnu.org>
88607
88608         * config/config.{guess,sub}: update from config.
88609
88610 2003-10-02  Bruno Haible  <bruno@clisp.org>
88611
88612         * modules/lchown (Include): Add lchown.h.
88613         * modules/time_r (Include): Use "..." syntax.
88614         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88615
88616 2003-10-01  Simon Josefsson  <jas@extundo.com>
88617
88618         * MODULES.html.sh (func_all_modules): Move gethostname from section
88619         'based on' to section 'lacking' POSIX:2001.
88620
88621 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88622
88623         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88624         to output mode on the same stream.
88625
88626 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88627
88628         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88629         Fix arg typo in previous patch.
88630
88631 2003-09-28  Jim Meyering  <jim@meyering.net>
88632
88633         * lib/error.c: Correct cpp indentation.
88634
88635 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88636
88637         * modules/free: New file.
88638
88639 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88640
88641         * m4/free.m4: New file.
88642
88643 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88644
88645         * lib/minmax.h (MIN, MAX)
88646         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88647         Omit the special code that used __typeof__, since we worry that
88648         it could be more trouble than it's worth.  See:
88649         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88650         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88651
88652         * lib/free.c: New file.
88653
88654 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88655
88656         Trivial fixes to Makefile.am parts of module listings.
88657         * modules/strstr: Append strstr.h to lib_SOURCES.
88658         * modules/strcase: Likewise, for strcase.h.
88659
88660 2003-09-27  Karl Berry  <karl@gnu.org>
88661
88662         * config/mkinstalldirs: update from automake.
88663
88664 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88665
88666         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88667         (error_tail): Do not loop, reallocating temporary buffer, since
88668         the output cannot contain more wide characters than the input
88669         contains bytes, the size must be big enough already.  This avoids
88670         one potential size overflow calculation.  Check for size overflow
88671         when calculating temporary buffer size.  Free temporary buffer
88672         when done, if it was allocated with malloc; this plugs a memory
88673         leak.  Remove casts from void * to pointers, that are no longer
88674         needed now that we're assuming C89 or better.
88675
88676         Merge error changes from glibc.
88677
88678         * lib/error.c, error.h: Update copyright notice header to match glibc.
88679         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88680         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88681         Disable cancellation while printing error.
88682         * lib/error.h: Prepend __ to parameter names.
88683
88684 2003-09-26  Jim Meyering  <jim@meyering.net>
88685
88686         * lib/error.c (error_tail): Move some declarations
88687         into inner scope where the local variables are used.
88688
88689 2003-09-26  Bruno Haible  <bruno@clisp.org>
88690
88691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88692         stpncpy().
88693         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88694
88695 2003-09-26  Bruno Haible  <bruno@clisp.org>
88696
88697         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88698         (stpncpy): Define as alias for gnu_stpncpy.
88699         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88700
88701 2003-09-25  Simon Josefsson  <jas@extundo.com>
88702
88703         * lib/xgetdomainname.h: New file.
88704         * lib/xgetdomainname.c: New file.
88705
88706 2003-09-25  Simon Josefsson  <jas@extundo.com>
88707             Bruno Haible  <bruno@clisp.org>
88708
88709         * modules/getdomainname: New file.
88710         * modules/xgetdomainname: New file.
88711         * MODULES.html.sh (func_all_modules): Add getdomainname,
88712         xgetdomainname.
88713
88714 2003-09-25  Simon Josefsson  <jas@extundo.com>
88715             Bruno Haible  <bruno@clisp.org>
88716
88717         * m4/getdomainname.m4: New file.
88718
88719 2003-09-25  Simon Josefsson  <jas@extundo.com>
88720             Bruno Haible  <bruno@clisp.org>
88721
88722         * lib/getdomainname.h: New file.
88723         * lib/getdomainname.c: New file.
88724
88725 2003-09-25  Karl Berry  <karl@gnu.org>
88726
88727         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88728
88729 2003-09-25  Karl Berry  <karl@gnu.org>
88730
88731         * config/install-sh: update from automake.
88732
88733 2003-09-25  Bruno Haible  <bruno@clisp.org>
88734
88735         * modules/version-etc-2: New file, from modules/version-etc with
88736         modifications.
88737         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88738
88739 2003-09-25  Bruno Haible  <bruno@clisp.org>
88740
88741         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88742         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88743
88744 2003-09-24  Simon Josefsson  <jas@extundo.com>
88745
88746         * modules/xgethostname: Add xgethostname.h.
88747
88748 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88749
88750         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88751         the buffer associated with the argument.  Bug reported by
88752         Simon Josefsson.
88753
88754 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88755
88756         * README: Document assumptions that 'int' is at least 32 bits
88757         wide, that integer arithmetic is 2's complement without overflow,
88758         that there are no holes in integer values, that adding sizes of
88759         two nonoverlapping objects can't overflow, and that all-bits-zero
88760         yields scalar zero.  Fix spelling and capitalization typos.
88761
88762 2003-09-19  Karl Berry  <karl@gnu.org>
88763
88764         * lib/argp.h: update from libc.
88765
88766 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88767
88768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88769         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88770         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88771
88772 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88773
88774         * gnulib-tool: Use "test -h", not "test -L", for portability
88775         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88776         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88777         (sed_extract_prog): Issue s commands one-by-one, rather than
88778         using \| in one s command.
88779
88780 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88781
88782         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88783         input error, instead of returning NULL the next time we are called
88784         (and therefore losing track of errno).
88785
88786 2003-09-16  Bruno Haible  <bruno@clisp.org>
88787
88788         * gnulib-tool (func_create_testdir): Warn about duplicated
88789         dependencies.
88790
88791 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88792
88793         * modules/argmatch, modules/fatal, modules/obstack,
88794         modules/xalloc, modules/xgethostname: Sort dependencies by
88795         importance, not alphabetically.
88796
88797 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88798
88799         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88800         fails, so that the caller gets the proper errno.
88801
88802         * lib/readutmp.c (read_utmp): Likewise.
88803         Check for fstat error.  Close stream and free storage
88804         when failing.
88805
88806 2003-09-14  Karl Berry  <karl@gnu.org>
88807
88808         * config/srclist.txt (strdup.c): disable for c89 changes.
88809
88810 2003-09-14  Jim Meyering  <jim@meyering.net>
88811
88812         * lib/getloadavg.c: Correct cpp indentation.
88813         * lib/strdup.c: Likewise.
88814         * lib/vasnprintf.c: Likewise.
88815
88816 2003-09-14  Bruno Haible  <bruno@clisp.org>
88817
88818         * modules/fwriteerror: New file.
88819         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88820
88821 2003-09-14  Bruno Haible  <bruno@clisp.org>
88822
88823         * lib/fwriteerror.h: New file.
88824         * lib/fwriteerror.c: New file.
88825
88826 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88827
88828         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88829         modules/xgethostname, modules/xalloc: Depend on exit.
88830
88831 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88832
88833         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88834
88835         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88836         and AC_MINIX, too, so that their extensions are available.
88837
88838         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88839         This macro has been superseded by gl_BACKUPFILE.
88840
88841         More patches to assume C89 or better.
88842
88843         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88844
88845         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88846         unconditionally.
88847         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88848         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88849         Include <string.h>, <stdlib.h> unconditionally.
88850         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88851         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88852         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88853         headers or for string.h.
88854         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88855         or strtoul.
88856
88857         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88858         headers.
88859         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88860         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88861         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88862         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88863         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88864         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88865         memcpy, memset.
88866         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88867         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88868         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88869         strtol.
88870         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88871         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88873         strtoul.
88874
88875 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88876
88877         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88878         * lib/obstack.c [!defined _LIBC]: Likewise.
88879         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88880         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88881         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88882
88883         More changes to assume C89 or better.
88884
88885         * lib/error.c (error_tail): Assume vprintf.
88886
88887         * lib/argmatch.c (getenv): Remove decl.
88888         * lib/progreloc.c (get_full_program_name): Define via prototype.
88889         * lib/setenv.c (clearenv): Likewise.
88890         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88891         needed.
88892         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88893         (malloc, memcpy): Remove decls.
88894         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88895         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88896         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88897         (memcpy): Remove macro.
88898         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88899         (__P): Remove.  All uses removed.
88900         (PTR): Remove.  All uses changed to void *.
88901         (CHAR_BIT, NULL): Remove.
88902         (spaces, zeros, memset_space, memset_zero)
88903         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88904         Remove.
88905         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88906         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88907         Define with prototype.
88908         Remove now-unnecessary prototype decl.
88909         (extra_args_spec): Assume ANSI C.  All uses changed.
88910         (extra_args_spec_iso): Remove.
88911         (my_strftime, emacs_strftimeu): Define via prototype.
88912         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88913         unconditionally.
88914         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88915         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88916         (strtoul, strtol): Remove decls.
88917         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88918         LONG_MAX): Remove.
88919         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88920         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88921         (LOCALE_PARAM_PROTO): New macro.
88922         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88923         (INTERNAL (strtol), strtol): Define with a prototype.
88924         (PARAMS): Remove.  All uses removed.
88925         * lib/tempname.c: Include <string.h> unconditionally.
88926         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88927         * lib/xgethostname.c (main): Define with a prototype.
88928         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88929         Include <stdlib.h> unconditionally.
88930         (calloc, malloc, realloc, free): Remove decls.
88931         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88932         Include <stdlib.h> unconditionally.  Sort include file names.
88933         (strtod): Remove.
88934         (xstrtod): Define with a prototype.
88935         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88936         (strtol, strtoul): Remove decls.
88937
88938 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88939
88940         More patches to assume C89 or better.
88941         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88942         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88943         string.h, memchr, STDC_HEADERS.
88944
88945 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88946
88947         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88948         Include <stdlib.h>, <string.h> unconditionally.
88949         Remove now-unnecessary cast to char *.
88950         * lib/strnlen.c: Include <string.h> unconditionally.
88951         * lib/yesno.c (yesno): Define with a prototype.
88952
88953 2003-09-11  Bruno Haible  <bruno@clisp.org>
88954
88955         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88956
88957 2003-09-10  Jim Meyering  <jim@meyering.net>
88958
88959         * lib/error.c: Correct indentation of cpp directives.
88960
88961 2003-09-10  Bruno Haible  <bruno@clisp.org>
88962
88963         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88964         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88965         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88966         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88967         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88968         <stdlib.h> and <string.h> checks.
88969         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88970         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88971
88972 2003-09-10  Bruno Haible  <bruno@clisp.org>
88973
88974         * lib/strcspn.c: Include <string.h> unconditionally.
88975         * lib/strpbrk.c: Include <string.h> unconditionally.
88976         * lib/strstr.c: Include <string.h> unconditionally.
88977         * lib/unicodeio.c: Include <string.h> unconditionally.
88978         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88979         * lib/unsetenv.c: Likewise.
88980         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88981         * lib/yesno.c: Include <stdlib.h> unconditionally.
88982         (rpmatch): Add prototype.
88983
88984 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88985
88986         More patches to assume C89 or better.
88987         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88988         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88989         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88990         or for string.h.
88991         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88992         stdlib.h.
88993         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88994         C headers.
88995         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88996         string.h.
88997         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88998         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88999         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89000         or for string.h.
89001         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89002         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89003         C headers.
89004         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89005         memcpy.
89006         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89007         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89008         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89009         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89010         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89011         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89012         string.h, free.
89013         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89014         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89015         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89016         C headers, or for string.h.
89017         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89018         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89019         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89020         headers, memory.h, stdlib.h, string.h, strings.h.
89021         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89022         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89023         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89024         strchr.
89025         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89026         headers, memory.h, string.h.
89027         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89028         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89029         free.
89030         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89031         headers.
89032         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89033         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89034         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89035         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89036         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89037
89038 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89039
89040         More K&R removal.
89041
89042         * lib/acosl.c (main): Use a prototype.
89043         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89044         tanl.c: Likewise.
89045
89046         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89047
89048         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89049         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89050         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89051         with a prototype.
89052         * lib/getopt.c (const): Remove macro.
89053         Include <string.h> unconditionally.
89054         (my_index): Remove; all uses changed to strchr.
89055         (strlen): Remove decl.
89056         (exchange): Remove forward decl; no longer needed.
89057         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89058         Define with prototype.
89059         * lib/getopt1.c (const): Remove macro.
89060         (getopt_long, getopt_long_only, main): Define with prototype.
89061
89062         * lib/getugroups.c: Include <string.h> unconditionally.
89063
89064         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89065         (getusershell, setusershell, endusershell, readname, main):
89066         Define with prototypes.
89067
89068         * lib/group-member.c: Include group-member.h first.
89069         Include <stdlib.h> unconditionally.
89070
89071         * lib/hard-locale.c: Include hard-locale.h first.
89072         Include <stdlib.h>, <string.h> unconditionally.
89073
89074         * lib/hash.c (free, malloc): Remove decls.
89075         Include <stdlib.h> unconditionally.
89076
89077         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89078         (getenv): Do not declare.
89079
89080         * lib/idcache.c: Include <string.h> unconditionally.
89081
89082         * lib/long-options.c: Include long-options.h first, to test interface.
89083         Include <stdlib.h> unconditionally.
89084
89085         * lib/makepath.c: Include makepath.h first, to test interface.
89086         Include <stdlib.h> and <string.h> unconditionally.
89087
89088         * lib/linebuffer.c: Include <stdlib.h>.
89089         (free): Remove decl.
89090
89091         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89092         stddef.h. rpl_malloc returns void *, not char *.
89093         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89094         prototype.
89095
89096         * lib/md5.h: Include <limits.h> unconditionally.
89097         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89098         (__P): Remove; all uses removed.
89099         * lib/md5.c: Include "md5.h" first.
89100         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89101         md5_buffer, md5_process_bytes, md5_process_block):
89102         Define with prototypes.
89103         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89104         * lib/sha.c: Include "sha.h" first.
89105         Include <stdlib.h>, <string.h> unconditionally.
89106
89107         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89108         * lib/memcmp.c (__ptr_t): Likewise.
89109         * lib/memrchr.c (__ptr_t): Likewise.
89110         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89111         Include <string.h> unconditionally.
89112         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89113         * lib/memchr.c: Include <stdlib.h> unconditionally.
89114         * lib/memchr.c (LONG_MAX): Remove.
89115         * lib/memrchr.c (LONG_MAX): Likewise.
89116         * lib/memchr.c (__memchr): Define via a prototype.
89117         * lib/memrchr.c (__memrchr): Likewise.
89118         * lib/memcmp.c (__P): Remove, and remove all uses.
89119         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89120         Remove forward decls; no longer needed.
89121         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89122         Use types required by C89 in prototype.
89123
89124         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89125         * lib/savedir.c: Likewise.
89126         * lib/mkdir.c (free): Remove decl.
89127         * lib/rmdir.c (rmdir): Define with a prototype.
89128         * lib/savedir.c: Include savedir.h first, to test interface.
89129
89130         * lib/mktime.c (STDC_HEADERS): Remove.
89131         Include <stdlib.h>, <string.h> unconditionally.
89132
89133         * lib/modechange.c: Include <stdlib.h> unconditionally.
89134         (malloc): Remove decl.
89135
89136         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89137         (free): Remove decl.
89138
89139         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89140         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89141         (This type really should be intptr_t, but that's a C99ism.)
89142         (_obstack_memcpy): Remove: all uses changed to memcpy.
89143         Include <string.h> unconditionally.
89144         (struct obstack): Assume __STDC__ for types of members
89145         chunkfun, freefun, extra_arg.
89146         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89147         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89148         obstack_begin, obstack_specify_allocation,
89149         obstack_specify_allocation_with_arg, obstack_chunkfun,
89150         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89151         Remove unprototyped decls and the macros that use them.
89152         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89153         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89154         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89155         (defined __STDC__ && __STDC__)]:
89156         Remove nonprototyped code.
89157         Include <stdlib.h> unconditionally.
89158         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89159         _obstack_allocated_p, _obstack_free, obstack_free,
89160         _obstack_memory_used, print_and_abort):
89161         Define using prototypes.
89162         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89163         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89164         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89165         obstack_next_free, obstack_object_size, obstack_room) [0]:
89166         Remove unused, unprototyped code.
89167
89168         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89169
89170         * lib/physmem.c (physmem_total, physmem_available, main): Define
89171         with prototypes.
89172
89173         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89174         (main): Define with a prototype.
89175
89176         * lib/posixver.c (getenv): Remove decl.
89177
89178         * lib/putenv.c (malloc): Returns void *, not char *.
89179         Include <string.h> unconditionally.
89180         (strchr, memcpy, NULL): Do not define.
89181
89182         * lib/readtokens.c: Include readtokens.h first, to test interface.
89183         Include <stdlib.h>, <string.h> unconditionally.
89184         (init_tokenbuffer): Define with a prototype.
89185
89186         * lib/regex.c (PARAMS): Remove.  All uses removed.
89187         All uses of _RE_ARGS removed, too.
89188         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89189         unconditionally.
89190         (bzero): Assume memset exists.
89191         (memcmp, memcpy, NULL): Remove.
89192         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89193         char, or assignments to local vars of type signed char.
89194         (init_syntax_once, PREFIX(extract_number_and_incr),
89195         PREFIX(print_partial_compiled_pattern),
89196         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89197         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89198         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89199         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89200         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89201         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89202         wcs_compile_range, byte_compile_range, truncate_wchar,
89203         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89204         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89205         count_mbs_length, wcs_re_match_2_internal,
89206         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89207         PREFIX(alt_match_null_string_p),
89208         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89209         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89210         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89211         now-unnecessary declaration, if any.
89212         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89213         regcomp, regexec):
89214         Remove now-unnecessary casts among pointer types.
89215         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89216
89217         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89218         (free): Remove decl.
89219
89220         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89221
89222         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89223         (free): Remove decl.
89224
89225         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89226         * lib/xgetcwd.c: Likewise.
89227
89228         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89229         (free): Remove decl.
89230
89231         * lib/strchrnul.c (strchrnul): Define with a prototype.
89232         Fix bug: c_in was not converted to char before searching.
89233
89234         The following changes are not K&R related:
89235
89236         * lib/group-member.h: Include <sys/types.h>, so that this file is
89237         self-contained.
89238         * lib/makepath.h: Likewise.
89239
89240         * lib/getusershell.c (readname, default_index, line_size, readname):
89241         Use size_t, not int, for sizes.
89242         (readname): If the size overflows, report an error instead of
89243         looping forever.
89244
89245 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89246
89247         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89248         libc.
89249
89250 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89251
89252         * README: New section: portability guidelines.
89253
89254 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89255
89256         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89257         C89 spec.
89258
89259 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89260
89261         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89262
89263 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89264
89265         Assume C89 or better; remove K&R cruft.
89266         A few of these changes were first proposed by Derek Robert Price
89267         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89268
89269         * lib/addext.c: Include <string.h> unconditionally.
89270         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89271         Don't declare getenv or malloc.
89272
89273         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89274         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89275         (NULL): Remove.
89276         (find_stack_direction, alloca): Use prototypes.
89277
89278         * lib/atexit.c (atexit): Define using a prototype.
89279
89280         * lib/basename.c, dirname.c, stripslash.c:
89281         Include <string.h> unconditionally.
89282
89283         * lib/bcopy.c: Include <stddef.h>.
89284         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89285
89286         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89287
89288         * lib/error.h (error, error_at_line, error_print_progname)
89289         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89290         * lib/error.c: Include error.h first, to check interface.
89291         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89292         (VA_START): Remove; all uses changeed to va_start.
89293         (exit, strerror): Remove decls.
89294         (error_print_progname): Prototype uncondionally.
89295         Don't include <errno.h>; no longer needed.
89296         (private_strerror): Remove.
89297         (error_tail): Always define.
89298         (error, error_at_line): Assume C89 or better; always use prototypes.
89299         * lib/fatal.c: Include "fatal.h" first, to test interface.
89300         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89301         (VA_START): Remove; all uses changed to va_start.
89302         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89303         this case.
89304         (exit): Remove decl.
89305         (fatal): Prototype unconditionally.  Assume va_start works.
89306         Abort at end, to pacify gcc.
89307
89308         * lib/euidaccess.c (main): Define with a prototype.
89309
89310         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89311
89312         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89313
89314         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89315         prototypes.
89316         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89317         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89318         (getenv): Remove decl.
89319         (fnmatch): Define using a prototype.
89320         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89321         (FCT): Define using a prototype.
89322
89323         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89324
89325         * lib/gethostname.c: Include <stddef.h>.
89326         (gethostname): Define with prototype.  Length is size_t, not int.
89327
89328 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89329
89330         Assume C89 or better; remove K&R cruft.
89331         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89332         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89333         string.h, getenv, malloc.
89334         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89335         headers.
89336         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89337         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89338         do not check for strerror.
89339         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89340         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89341         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89342         do not check for doprnt or vprintf.
89343         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89344         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89345
89346 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89347
89348         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89349         getversion.c should have been removed then, but was accidentally
89350         preserved.
89351
89352         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89353         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89354
89355 2003-09-08  Karl Berry  <karl@gnu.org>
89356
89357         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89358                 config, forget about prep.
89359
89360         * config/depcomp, missing: update from automake.
89361
89362 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89363
89364         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89365         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89366
89367 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89368
89369         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89370         copy_tm_result.  Bug reported by Simon Josefsson in
89371         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89372
89373 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89374
89375         * m4/time_r.m4: New file.
89376         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89378         is. Check for timegm declaration.
89379         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89380         Do not check for gmtime_r.
89381         Replace mktime if __mktime_internal does not exist and if mktime
89382         hasn't been replaced already.
89383
89384 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89385
89386         * lib/time_r.c, lib/time_r.h: New files.
89387
89388         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89389         __localtime_r.
89390         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89391         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89392
89393         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89394         __gmtime_r.
89395         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89396         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89397         Include <time_r.h>.
89398
89399         * lib/timegm.c: Switch to glibc implementation, with the following
89400         changes:
89401         [defined HAVE_CONFIG_H]: Include <config.h>.
89402         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89403         (__mktime_internal) [!defined _LIBC]: New decl.
89404         (__gmtime_r) [!defined _LIBC]: New macro and function.
89405         (timegm): Use a prototype, since gnulib assumes C89.
89406         Do not bother declaring tmp to be const, as it's not really usefu.
89407         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89408         (timegm): Declare only if HAVE_DECL_TIMEGM.
89409
89410 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89411
89412         * MODULES.html.sh (func_all_modules): Add time_r.
89413         * modules/time_r: New file.
89414         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89415         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89416
89417 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89418
89419         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89420         Bug reported by Lute Kamstra in
89421         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89422
89423         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89424         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89425         course with correspondingly smaller numbers for tomorrow and
89426         yesterday.  From Tadayoshi Funaba.  Originally installed into
89427         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89428         coreutils merge?).
89429
89430 2003-08-31  Simon Josefsson  <jas@extundo.com>
89431
89432         * modules/timegm: New file.
89433         * MODULES.html.sh (func_all_modules): Add timegm.
89434
89435 2003-08-31  Simon Josefsson  <jas@extundo.com>
89436
89437         * m4/timegm.m4: New file.
89438
89439 2003-08-31  Simon Josefsson  <jas@extundo.com>
89440
89441         * lib/timegm.h: New file.
89442         * lib/timegm.c: New file.  Based on
89443         wget-1.8.2/src/http.c:mktime_from_utc.
89444
89445 2003-08-31  Karl Berry  <karl@gnu.org>
89446
89447         * lib/argp.h: update from libc.
89448
89449 2003-08-28  Bruno Haible  <bruno@clisp.org>
89450
89451         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89452         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89453         followed by '#define fnmatch fnmatch_posix' gives an error.
89454
89455 2003-08-28  Bruno Haible  <bruno@clisp.org>
89456
89457         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89458         warning on QNX, which defines O_BINARY to 000000.
89459
89460 2003-08-27  Jim Meyering  <jim@meyering.net>
89461
89462         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89463         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89464         would fail after 32.  Reported by Danny Levinson.  Details here:
89465         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89466
89467 2003-08-24  Bruno Haible  <bruno@clisp.org>
89468
89469         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89470         MSVC7 <stdio.h> is included later.
89471
89472 2003-08-22  Simon Josefsson  <jas@extundo.com>
89473
89474         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89475
89476 2003-08-20  Karl Berry  <karl@gnu.org>
89477
89478         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89479
89480 2003-08-20  Bruno Haible  <bruno@clisp.org>
89481
89482         * modules/progname: New file.
89483         * MODULES.html.sh (func_all_modules): Add progname.
89484
89485 2003-08-20  Bruno Haible  <bruno@clisp.org>
89486
89487         * lib/progname.h: New file, from GNU gettext.
89488         * lib/progname.c: New file, from GNU gettext.
89489         * lib/progreloc.c: New file, from GNU gettext.
89490
89491 2003-08-19  Jim Meyering  <jim@meyering.net>
89492
89493         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89494         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89495
89496 2003-08-19  Bruno Haible  <bruno@clisp.org>
89497
89498         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89499         more.
89500
89501 2003-08-19  Bruno Haible  <bruno@clisp.org>
89502
89503         * lib/xstrdup.c: Assume <string.h> exists.
89504
89505 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89506
89507         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89508         in makefile rules.
89509
89510 2003-08-18  Jim Meyering  <jim@meyering.net>
89511
89512         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89513         * m4/lib-ld.m4: Likewise.
89514
89515 2003-08-18  Jim Meyering  <jim@meyering.net>
89516
89517         * lib/setenv.h: Indent nested cpp directive.
89518         * lib/vasnprintf.c: Remove trailing blanks.
89519
89520 2003-08-17  Simon Josefsson  <jas@extundo.com>
89521
89522         * modules/xstrndup: New file.
89523         * MODULES.html.sh (func_all_modules): Add xstrndup.
89524
89525 2003-08-17  Simon Josefsson  <jas@extundo.com>
89526
89527         * modules/argp: Fix autoconf macro name. Add more dependencies.
89528
89529 2003-08-17  Simon Josefsson  <jas@extundo.com>
89530
89531         * m4/xstrndup.m4: New file.
89532
89533 2003-08-17  Simon Josefsson  <jas@extundo.com>
89534
89535         * m4/argp.m4: New file.
89536
89537 2003-08-17  Simon Josefsson  <jas@extundo.com>
89538             Bruno Haible  <bruno@clisp.org>
89539
89540         * lib/xstrndup.h: New file.
89541         * lib/xstrndup.c: New file.
89542
89543 2003-08-17  Bruno Haible  <bruno@clisp.org>
89544
89545         * modules/strndup (Files, Include): Add lib/strndup.h.
89546
89547 2003-08-17  Bruno Haible  <bruno@clisp.org>
89548
89549         * modules/euidaccess (Files): Add lib/euidaccess.h.
89550
89551 2003-08-17  Bruno Haible  <bruno@clisp.org>
89552
89553         * lib/strndup.h: New file.
89554
89555 2003-08-17  Bruno Haible  <bruno@clisp.org>
89556
89557         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89558         like AC_GNU_SOURCE.
89559         * modules/extensions (configure.ac): Comment out the invocation of
89560         gl_USE_SYSTEM_EXTENSIONS.
89561
89562 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89563
89564         Merges from coreutils, etc.
89565         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89566         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89567         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89568         fixing a typo.
89569         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89570         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89571
89572 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89573
89574         Document merge from coreutils.
89575         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89576         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89577         * modules/utime: Add m4/utimes-null.m4.
89578
89579 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89580
89581         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89582         space, undoing this 2003-08-12 change:
89583         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89584
89585 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89586
89587         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89588         strtoul.c from libc, undoing this 2003-08-12 change:
89589         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89590
89591 2003-08-16  Jim Meyering  <jim@meyering.net>
89592
89593         Merges from coreutils.
89594         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89595         prefix.  Adjust cache variables similarly.  Create 500 rather than
89596         just 300 files, to exercise bug on Darwin6.5, too.
89597         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89598         $missing_dir.
89599         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89600         AM_SYS_POSIX_TERMIOS.
89601         Reported by mkc@mathdogs.com.
89602         Also change use of $am_cv_sys_posix_termios
89603         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89604         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89605         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89606         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89607         in /proc/mounts until it finds one with matching device number.  This
89608         is unnecessary when the FILE argument *is* a mount point.  No stat call
89609         is necessary in that case.  So, disable the statvfs-testing code on
89610         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89611         as RedHat bug# 84846.
89612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89613         to 1MB, so as not to render systems with no stack size limit (e.g.,
89614         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89615         Include <unistd.h>.  On some systems,
89616         it is required for the definition of _SC_PAGESIZE.
89617
89618 2003-08-16  Jim Meyering  <jim@meyering.net>
89619
89620         Merge from coreutils.
89621         * lib/xstrtoimax.c: #else #if -> #elif.
89622         * lib/xstrtoumax.c: Likewise.
89623
89624 2003-08-16  Jim Meyering  <jim@meyering.net>
89625
89626         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89627         * m4/utimes.m4: Removed.
89628         * m4/utimes-null.m4: Renamed from utimes.m4.
89629
89630         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89631         to 1MB, so as not to render systems with no stack size limit (e.g.,
89632         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89633         Include <unistd.h>.  On some systems,
89634         it is required for the definition of _SC_PAGESIZE.
89635
89636 2003-08-16  Jim Meyering  <jim@meyering.net>
89637         and Paul Eggert  <eggert@cs.ucla.edu>
89638
89639         Merges from coreutils, etc.
89640
89641         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89642         using the latest version from cvs.  This avoids problems with #line
89643         directives using a vendor (Sun) compiler.
89644         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89645         Don't set GETGROUPS_LIB here; now it's
89646         done via getgroups.m4's wrapper function.
89647         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89648         rather than just in sh-util/configure.in, so that the
89649         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89650         same.
89651         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89652         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89653         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89654         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89655         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89656         Remove code that is now done by the newly-required macros.
89657         Append $(EXEEXT) to DF_PROG.
89658         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89659         Do not invoke or require the following here,
89660         since prereq.m4 or some gnulib .m4 now does this for us:
89661         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89662         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89663         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89664         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89665         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89666         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89667         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89668         AC_FUNC_OBSTACK.
89669         Do not replace the following functions, as this is now the job
89670         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89671         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89672         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89673         atexit getpass, strdup, getpagesize.
89674         Replace 'raise'.
89675         Do not check for the following functions, as this is now the job
89676         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89677         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89678         setregid.
89679         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89680         Check for sys/sysctl.h.
89681         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89682         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89683         of checking for ssize_t ourselves.
89684
89685         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89686         Require every macro that gnulib/modules/* suggests for us.
89687         (jm_PREREQ_ADDEXT): New macro.
89688         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89689         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89690
89691         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89692         (gl_PHYSMEM): Use it.
89693         Also check for `table' function.
89694         Check for new headers and functions.
89695         Add check for sys/sysmp.h.
89696         With suggestions from Kaveh Ghazi.
89697         Ignore headers that are present but cannot be compiled.  This
89698         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89699         C 5.4.
89700
89701 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89702
89703         Document merge from coreutils.
89704         * modules/userspec: Depend on posixver.
89705         * modules/strftime: Depend on tzset.
89706
89707 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89708
89709         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89710         rather than tab, after '#' in shell-script copyright notices.
89711         Suggested by Bruno Haible.
89712
89713 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89714
89715         * config/srclist-update: Use three spaces, rather than tab, after '#'
89716         in shell-script copyright notices.  Suggested by Bruno Haible.
89717         Remove unnecessary parenthesization in regular expression.
89718
89719 2003-08-15  Jim Meyering  <jim@meyering.net>
89720
89721         Merge from coreutils.
89722         * lib/xgethostname.c: Include <stdlib.h>.
89723         (xghostname): Don't exit for anything other than memory-related
89724         failure; just return NULL.
89725         * lib/userspec.c: Include "posixver.h".
89726         (parse_user_spec): Accept `.' as a separator only
89727         in pre-POSIX-200112 mode.
89728         * lib/strtoimax.c: Use #elif rather than #else #if.
89729         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89730         Remove function, now that we can rely on a working tzset function.
89731         [!_LIBC]: Ensure that the required autoconf test has been run.
89732         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89733         Use underlying_strftime for %r.
89734         * lib/sha.c: Merge in some clean-up and optimization changes from
89735         glibc.
89736         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89737         Ensure that it is a multiple of 64.
89738         Rearrange loop exit tests so as to avoid performing an
89739         additional fread after encountering an error or EOF.
89740         * lib/realloc.c: Update copyright date.
89741
89742 2003-08-15  Jim Meyering  <jim@meyering.net>
89743         and Paul Eggert  <eggert@twinsun.com>
89744
89745         Merge from coreutils.
89746         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89747         member but strut utmpx does not.  Needed for AIX 4.3.3.
89748         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89749
89750 2003-08-15  Jim Meyering  <jim@meyering.net>
89751         and Paul Eggert  <eggert@cs.ucla.edu>
89752
89753         Merges from coreutils, etc.
89754         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89755         Require gl_FUNC_TZSET_CLOBBER.
89756         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89757         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89758         members.
89759
89760 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89761
89762         Help the merge from coreutils.
89763         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89764         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89765         * m4/tzset.m4: Use it too.
89766
89767 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89768
89769         * modules/tzset: New file.
89770
89771 2003-08-14  Jim Meyering  <jim@meyering.net>
89772
89773         Merges from coreutils.
89774         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89775         variable names, rather than @FNMATCH_H@.
89776         * modules/alloca: Likewise for $(ALLOCA_H).
89777
89778         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89779         the three copies of the literal target, `fnmatch.h'.
89780         * modules/alloca (alloca.h): Likewise.
89781
89782 2003-08-14  Jim Meyering  <jim@meyering.net>
89783
89784         Merge from coreutils.
89785         * m4/tzset.m4: New file.
89786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89787         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89788         otherwise, AIX 5.1 systems would end up using the latter.
89789         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89790         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89791         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89792         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89793
89794 2003-08-14  Jim Meyering  <jim@meyering.net>
89795
89796         Merge from coreutils.
89797         * lib/obstack.h: Whitespace changes.
89798         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89799         and xcalloc return values.
89800         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89801         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89802         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89803         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89804         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89805         error from mntctl.
89806         Use mntctl's return value to drive the entry-processing loop, since
89807         we can't rely on the value of the vmt_length member in the last
89808         entry.  On some systems doing so could result in exhausting
89809         virtual memory.  Based in part on a patch from Mike Jetzer.
89810
89811 2003-08-14  Jim Meyering  <jim@meyering.net>
89812         and Paul Eggert  <eggert@twinsun.com>
89813
89814         Merges from coreutils, plus other fixes.
89815         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89816         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89817         for credits and details.  Thanks to Kaveh Ghazi for helping
89818         to keep these files in sync.
89819         (ARRAY_SIZE): Define it.
89820         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89821         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89822         (memcasecmp): Don't assume size_t fits in unsigned int.
89823         Remove casts and duplicate code.
89824         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89825         (memcpy): Remove definition.
89826         Merge in some clean-up and optimization changes from glibc.
89827         [BLOCKSIZE]: Move definition to top of file.
89828         Ensure that it is a multiple of 64.
89829         Rearrange loop exit tests so as to avoid performing an
89830         additional fread after encountering an error or EOF.
89831         * lib/md5.h (md5_uintptr): Define.
89832         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89833         return to the initial working directory.  Preserve errno
89834         for caller.
89835         * lib/idcache.c: Include "xalloc.h".
89836         (xmalloc, xrealloc): Remove decls.
89837         (getuser): Remove casts no longer required in C89.
89838         * lib/human.c: Include stdio.h, for sprintf.
89839         * lib/group-member.c: Include "xalloc.h".
89840         (xmalloc, xrealloc): Remove decls.
89841         (get_group_info): Remove casts no longer required in C89.
89842         * lib/getusershell.c (readname): Remove casts no longer required in
89843         C89.
89844         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89845         * lib/getline.c: Whitespace fix, from coreutils.
89846
89847 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89848
89849         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89850         Check for isascii.
89851
89852         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89853         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89854         Undo previous (whitespace-only) change.
89855
89856 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89857
89858         * lib/exclude.c: Include <ctype.h>
89859         (IN_CTYPE_DOMAIN): New macro.
89860         (is_space): New fn.
89861         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89862         and empty lines.
89863
89864         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89865         Undo previous (whitespace-only) change.
89866
89867 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89868
89869         * config/srclist-update: Change update back to the old behavior,
89870         leaving whitespace alone.  Use one 'sed' command rather than a
89871         pipeline.
89872         (fixlicense): Now a variable, not a function.
89873         (remove_trailing_blanks): Remove.
89874         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89875         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89876         Undo previous (whitespace-only) change.
89877
89878 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89879
89880         Merge from coreutils.
89881         * modules/euidaccess: Add lib_SOURCES, include for new
89882         file euidaccess.h
89883
89884 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89885
89886         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89887         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89888         Normalize leading white space and remove trailing white space.
89889
89890         Merge from coreutils
89891         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89892
89893         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89894         0.12.1.  These files are now being upgraded automatically by
89895         ../config/srclist-update.
89896
89897 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89898
89899         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89900         Normalize leading white space and remove trailing white space.
89901         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89902         notice, as per ../config/srclist-update.
89903
89904         Merge from coreutils.
89905         * lib/euidaccess.h: New file.
89906         * lib/euidaccess.c: Include it.
89907         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89908         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89909         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89910
89911 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89912
89913         * config/srclist-update: Add copyright notice.
89914         (remove_id_lines, remove_trailing_blanks): New constants.
89915         (fixfile): Use them to normalize spacing a bit in copied files.
89916         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89917         Normalize leading white space and remove trailing white space.
89918
89919         * config/texinfo.tex: Sync with texinfo.
89920
89921         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89922         strtoul.c from libc, to merge coreutils whitespace changes.
89923
89924         * config/srclist.txt: Get the following m4 files from gettext:
89925         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89926         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89927         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89928         wint_t.m4.
89929
89930 2003-08-12  Karl Berry  <karl@gnu.org>
89931
89932         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89933         been made.
89934
89935 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89936
89937         * modules/gnu-source, m4/gnu-source.m4:
89938         Remove; we're assuming Autoconf 2.54 or later now.
89939         Suggested by Bruno Haible.
89940         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89941
89942 2003-08-11  Bruno Haible  <bruno@clisp.org>
89943
89944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89945
89946 2003-08-11  Bruno Haible  <bruno@clisp.org>
89947
89948         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89949         (vasnprintf): Use it instead of wcslen.
89950
89951 2003-08-11  Bruno Haible  <bruno@clisp.org>
89952
89953         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89954         value to ensure that _Bool promotes to int. Use #define for _Bool when
89955         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89956
89957 2003-08-10  Karl Berry  <karl@gnu.org>
89958
89959         * lib/regex.h: update from libc (whitespace fix).
89960
89961 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89962
89963         Merge some files from coreutils.  These changes were
89964         originally made by Jim Meyering.
89965         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89966         many older Unixes require this.
89967         * lib/alloca.c (alloca): Remove cast to argument of free;
89968         no longer needed in C89.
89969         * lib/alloca_.h, regex.h: Fix white space to match
89970         what GNU indent does.
89971
89972 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89973
89974         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89975         apparently Emacs's Unicode mode got confused before my 2003-08-05
89976         checkin.
89977
89978 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89979
89980         * m4/extensions.m4: New file.
89981         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89982         Require gl_USE_SYSTEM_EXTENSIONS.
89983         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89984         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89985
89986 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89987
89988         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89989         * modules/extensions, modules/gnu-source: New files.
89990         * modules/timespec, modules/unlocked-io: Depend on extensions.
89991
89992 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89993
89994         * modules/restrict: New file.
89995         * MODULES.html.sh (func_all_modules): Add restrict.
89996         * modules/regex: Depend on restrict.
89997
89998 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89999
90000         * m4/restrict.m4: New file.
90001         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90002
90003 2003-08-07  Bruno Haible  <bruno@clisp.org>
90004
90005         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90006         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90007
90008 2003-08-07  Bruno Haible  <bruno@clisp.org>
90009
90010         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90011         makes the module 'getndelim2' compatible with the module 'getline'.
90012
90013 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90014
90015         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90016         byte with "\201" to avoid glitches when editing that source file
90017         with multi-gnome-terminal.
90018
90019 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90020
90021         * lib/bumpalloc.h: Remove.
90022
90023 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90024
90025         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90026         * modules/bumpalloc: Remove.
90027
90028 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90029
90030         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90031         GNU coding style.
90032
90033         Merge from coreutils.
90034         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90035         1. From glibc.
90036         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90037         from Karl Berry, implemented by Jim Meyering.
90038         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90039         from Dmitry V. Levin.
90040         Remove anachronistic cast of xrealloc.
90041         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90042         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90043         type. Otherwise, it wouldn't compile with at least /bin/cc on
90044         ymp-cray-unicos9.0.2.X.
90045         Combine two mostly-identical uses of alloca into one.
90046         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90047
90048 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90049
90050         [From Emacs.]
90051
90052         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90053         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90054         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90055         obsolete NLIST_NAME_UNION.
90056         [__GNU__]: Undef BSD and FSCALE.
90057         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90058
90059 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90060
90061         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90062         an enum type, so that it's guaranteed to promote to int.  See:
90063         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90064
90065 2003-08-03  Karl Berry  <karl@gnu.org>
90066
90067         * config/depcomp: update from automake.
90068
90069 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90070
90071         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90072         (strerror): Don't assume that a printable int fits in 14 bytes.
90073
90074 2003-07-31  Bruno Haible  <bruno@clisp.org>
90075
90076         * modules/getpass-gnu: New file.
90077         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90078
90079 2003-07-31  Bruno Haible  <bruno@clisp.org>
90080
90081         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90082
90083 2003-07-24  Karl Berry  <karl@gnu.org>
90084
90085         * config/missing: update from automake.
90086
90087 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90088             Bruno Haible  <bruno@clisp.org>
90089
90090         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90091         * lib/getline.c (getline, getdelim): Likewise.
90092         Remove _GNU_SOURCE define; now it's defined in config.h through
90093         m4/getline.m4.
90094
90095 2003-07-23  Karl Berry  <karl@gnu.org>
90096
90097         * config/config.sub: update from prep.
90098
90099 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90100
90101         * modules/xalloc (Depends-on): Add exitfail.
90102         * modules/xmemcoll: Likewise.
90103
90104 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90105
90106         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90107         over-parenthesization in macros.
90108
90109         Sync with coreutils.
90110
90111         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90112         required by C99.
90113
90114         Use `exit_failure' for xalloc and xmemcoll instead of their own
90115         private exit-failure variables.
90116         * lib/xalloc.h (xalloc_exit_failure): Remove.
90117         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90118         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90119         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90120         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90121         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90122
90123 2003-07-20  Jim Meyering  <jim@meyering.net>
90124
90125         * modules/closeout (Depends-on): Add exitfail.
90126         Suggestion from Bruno Haible.
90127
90128 2003-07-19  Karl Berry  <karl@gnu.org>
90129
90130         * config/config.sub: update from prep.
90131
90132 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90133
90134         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90135         Remove.
90136         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90137         to test that it can stand by itself.  Include "exitfail.h".
90138         Clients should set exit_failure instead.
90139         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90140
90141 2003-07-18  Bruno Haible  <bruno@clisp.org>
90142
90143         * modules/getndelim2: New file.
90144         * modules/getline: Share files with module getndelim2.
90145         * modules/getnline: Depend on getndelim2 instead of sharing files with
90146         it. Add getnline.c to lib_SOURCES.
90147         * MODULES.html.sh (func_all_modules): Add getndelim2.
90148
90149 2003-07-18  Bruno Haible  <bruno@clisp.org>
90150
90151         * m4/getndelim2.m4: New file.
90152         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90153         invoke gl_PREREQ_GETNDELIM2.
90154         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90155         gl_PREREQ_GETNDELIM2.
90156         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90157         gl_GETNDELIM2.
90158
90159 2003-07-18  Bruno Haible  <bruno@clisp.org>
90160
90161         * lib/getndelim2.h: New file.
90162         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90163         getndelim2.h.
90164         (getndelim2): Make non-static. Change return type to ssize_t.
90165         * lib/getline.h: Change argument names.
90166         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90167         * lib/getnline.c: Include getndelim2.h.
90168
90169 2003-07-18  Andreas Schwab  <schwab@suse.de>
90170
90171         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90172
90173 2003-07-17  Karl Berry  <karl@gnu.org>
90174
90175         * config/config.sub: update from prep.
90176
90177 2003-07-17  Bruno Haible  <bruno@clisp.org>
90178
90179         * modules/getnline: New file.
90180         * modules/getline: Add lib/getndelim2.c to source file list.
90181         * MODULES.html.sh (func_all_modules): Add getnline.
90182
90183 2003-07-17  Bruno Haible  <bruno@clisp.org>
90184
90185         * m4/getnline.m4: New file.
90186
90187 2003-07-17  Bruno Haible  <bruno@clisp.org>
90188
90189         * m4/Makefile.am.in: Remove file.
90190         * m4/Makefile.am: Remove file.
90191         * m4/Makefile.in: Remove file.
90192
90193 2003-07-17  Bruno Haible  <bruno@clisp.org>
90194
90195         * lib/getnline.h: New file.
90196         * lib/getnline.c: New file.
90197         * lib/getndelim2.c: New file, extracted from getline.c.
90198         (getndelim2): Renamed from getdelim2, with added nmax argument.
90199         * lib/getline.c: Include getndelim2.c.
90200         (getdelim2): Moved out to getndelim2.c.
90201         (getline, getdelim): Update.
90202
90203 2003-07-17  Bruno Haible  <bruno@clisp.org>
90204
90205         * lib/Makefile.am: Remove file.
90206         * lib/Makefile.in: Remove file.
90207
90208 2003-07-17  Bruno Haible  <bruno@clisp.org>
90209
90210         * configure.in: Remove file.
90211         * Makefile.in: Remove file.
90212
90213 2003-07-17  Bruno Haible  <bruno@clisp.org>
90214
90215         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90216
90217 2003-07-16  Karl Berry  <karl@gnu.org>
90218
90219         * config/srclist-update: was running fixlicense twice, which caused
90220                 texinfo.tex to be nullified for some reason.  Simplify,
90221                 $gplsrc is no longer needed as far as I can see?
90222
90223 2003-07-16  Jim Meyering  <jim@meyering.net>
90224
90225         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90226
90227 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90228
90229         * config/srclist.txt: Get the following files from gettext-runtime/intl
90230         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90231         ref-del.sin.  From Bruno Haible.
90232         * config/srclist-update (fixfile): Change grep pattern again, since the
90233         previous fix didn't work (there was another trailing $).  Use
90234         '[$]' to escape the $s.
90235
90236 2003-07-15  Karl Berry  <karl@gnu.org>
90237
90238         * lib/vasnprintf.c: update from gettext.
90239
90240 2003-07-15  Karl Berry  <karl@gnu.org>
90241
90242         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90243         gets expanded when surrounded by '$'.
90244
90245 2003-07-15  Jim Meyering  <jim@meyering.net>
90246
90247         * modules/save-cwd: Don't depend on error.  From Derek Price.
90248
90249 2003-07-15  Jim Meyering  <jim@meyering.net>
90250
90251         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90252
90253 2003-07-14  Simon Josefsson  <jas@extundo.com>
90254
90255         * modules/mempcpy: New file.
90256         * MODULES.html.sh (func_all_modules): Add mempcpy.
90257
90258 2003-07-14  Simon Josefsson  <jas@extundo.com>
90259
90260         * m4/mempcpy.m4: New file.
90261
90262 2003-07-14  Simon Josefsson  <jas@extundo.com>
90263
90264         * lib/mempcpy.h: New file.
90265         * lib/mempcpy.c: New file.
90266
90267 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90268
90269         * modules/getdate, modules/posixtm: Depend on mktime.
90270
90271 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90272
90273         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90274         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90275         unicodeio.c, unicodeio.h, unlocked-io.h:
90276         Switch from LGPL to GPL.
90277
90278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90279
90280         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90281         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90282         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90283         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90284         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90285         updated automatically by ../config/srclist-update.  This changes
90286         their license from LPGL to GPL.
90287
90288 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90289
90290         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90291         assumed to refer to the root of the most recent stable gettext version.
90292         * config/srclistvars.sh: Add defaults for eggert.
90293         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90294         Match "This program" as well as "The program".  This is needed
90295         for gettext.
90296
90297 2003-07-14  Jim Meyering  <jim@meyering.net>
90298
90299         Don't emit diagnostics.  Let callers do that.
90300         * lib/save-cwd.c: Don't include "error.h".
90301         (save_cwd): Don't call error.  Ensure that errno is valid
90302         when returning nonzero.
90303
90304         * lib/save-cwd.h (restore_cwd): Update prototype.
90305         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90306         Simplify.  Don't call error upon failure.  Let callers do that.
90307         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90308         when auditing is enabled.  But don't bother updating the #if.
90309
90310 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90311
90312         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90313         it breaks C++ compilation.
90314         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90315
90316 2003-07-10  Simon Josefsson  <jas@extundo.com>
90317
90318         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90319
90320 2003-07-10  Jim Meyering  <jim@meyering.net>
90321
90322         * m4/clock_time.m4: Remove trailing blank.
90323         * m4/intmax_t.m4: Likewise.
90324
90325 2003-07-10  Jim Meyering  <jim@meyering.net>
90326
90327         * lib/vasnprintf.c: Remove trailing blanks.
90328         Make cpp indentation consistent.
90329
90330 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90331
90332         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90333         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90334         Switch from LGPL to GPL.
90335
90336 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90337
90338         * config/srclist.txt: Sort sublists.  Add
90339         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90340         that differ from gnulib for one reason or another; we'd like this list
90341         to be smaller but for now let's document what we have.
90342
90343 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90344
90345         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90346         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90347         and sweeter "eval x=$x".
90348         * config/srclist.txt: Get lib/argp* from glibc.
90349
90350 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90351
90352         * lib/mktime.c: Fix some boundary cases and remove need for floating
90353         point.
90354
90355         Issue a compile-time diagnostic if time_t is floating point, or if
90356         two's complement arithmetic is not in effect, or if arithmetic
90357         right shift does not propagate the sign.  These assumptions were
90358         all in the original code but they weren't checked.
90359
90360         (TIME_T_MIDPOINT, verify): New macros.
90361         (__isleap): Remove; it has integer overflow problems.
90362         (leapyear): New function, without those problems.
90363         (ydhms_tm_diff): Remove; splitting into two parts.
90364         (ydhms_diff): New function, containing the arithmetic part of
90365         the old ydhms_tm_diff function.  Issue a compile-time
90366         diagnostic if we are not using C99 integer division.
90367         Avoid casts when possible.
90368         (guess_time_tm): New function, containing the checking part of
90369         the old ydhms_tm_diff function.  Return the new value, rather than
90370         the difference between it and the old.  Accept a new argument T
90371         so that *T specifies the old value.  Check for overflow in the result.
90372
90373         (__mktime_internal): Use a time_t offset, not a long int offset.
90374         This undoes the 2003-06-04 change, which is no longer needed now
90375         that we have better overflow checking.
90376         (localtime_offset): Likewise.
90377
90378         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90379         and long are 64-bit but int is only 32-bit.
90380         (ydhms_diff): Use long int to store year1 and yday1.
90381         Issue a compile-time diagnostic if long int is not wide enough.
90382
90383         (__mktime_internal): Use long int to store adjusted year and yday.
90384         Use plain C rather than preprocessor commands, if that doesn't
90385         affect efficiency.
90386         Check for overflow (and try to repair) after each probe
90387         rather than checking only at the very end.  This avoids some bugs
90388         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90389         does not equal GMT offset at maximum time).
90390         Use integer to check for overflow rather than floating point; this
90391         is more portable to non-IEEE hosts, and is a tad faster.
90392         When we detect that we are oscillating between two values,
90393         don't check whether tm_isdst has the requested value, since
90394         we already know the answer.  When tm_isdst has the wrong value,
90395         use a different heuristic to find the right one, based on the
90396         extreme values actually observed in practice in tz2003a,
90397         rather than the (overly optimistic) "previous 3 calendar quarters".
90398
90399         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90400         "T const" to accommodate glibc style.
90401         (check_result): Use less-confusing report format.  "long" -> "long int.
90402         (main): Likewise.
90403         Don't loop if the iteration overflows time_t.
90404         Allow a negative step in the iteration.
90405
90406 2003-07-06  Karl Berry  <karl@gnu.org>
90407
90408         * config/depcomp: update from automake.
90409         * config/config.sub: update from prep.
90410
90411 2003-07-03  Karl Berry  <karl@gnu.org>
90412
90413         * config/config.guess: update from prep.
90414
90415 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90416
90417         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90418         xreadlink.c now includes it unconditionally.
90419
90420 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90421
90422         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90423         having it depend on HAVE_SYS_TYPES_H.
90424
90425 2003-07-01  Bruno Haible  <bruno@clisp.org>
90426
90427         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90428         <sys/types.h> should be sufficient.
90429         Reported by Paul Eggert.
90430
90431 2003-06-26  Karl Berry  <karl@gnu.org>
90432
90433         * config/depcomp: update from automake.
90434
90435 2003-06-26  Bruno Haible  <bruno@clisp.org>
90436
90437         * modules/human: Depend on module stdbool.
90438
90439 2003-06-25  Bruno Haible  <bruno@clisp.org>
90440
90441         * modules/readlink: New file.
90442         * modules/xreadlink: Depend on it.
90443         * MODULES.html.sh (func_all_modules): Add readlink.
90444
90445 2003-06-25  Bruno Haible  <bruno@clisp.org>
90446
90447         * m4/readlink.m4: New file.
90448
90449 2003-06-25  Bruno Haible  <bruno@clisp.org>
90450
90451         * lib/readlink.c: New file.
90452
90453 2003-06-22  Karl Berry  <karl@gnu.org>
90454
90455         * config/srclist.txt: update mkinstalldirs from automake.
90456         * config/mkinstalldirs: update.
90457
90458 2003-06-22  Bruno Haible  <bruno@clisp.org>
90459
90460         Portability to mingw32.
90461         * m4/ssize_t.m4: New file, from GNU gettext.
90462         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90463         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90464
90465 2003-06-22  Bruno Haible  <bruno@clisp.org>
90466
90467         * modules/safe-read: Add m4/ssize_t.m4.
90468         * modules/xreadlink: Add m4/ssize_t.m4.
90469
90470 2003-06-20  Bruno Haible  <bruno@clisp.org>
90471
90472         Assume C89, so PARAMS isn't needed.
90473         * lib/unicodeio.h (PARAMS): Remove.
90474         * lib/unicodeio.c: Don't use PARAMS.
90475
90476 2003-06-18  Karl Berry  <karl@gnu.org>
90477
90478         * config/config.{guess,sub}: update from prep.
90479
90480 2003-06-18  Jim Meyering  <jim@meyering.net>
90481
90482         Merge changes from coreutils.
90483         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90484         Remove explicit declarations of xmalloc and realloc.
90485         Include xalloc.h.
90486         (read_utmp): Remove anachronistic cast of xmalloc.
90487
90488 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90489
90490         Assume C89, so PARAMS isn't needed.
90491         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90492         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90493         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90494         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90495         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90496         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90497         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90498         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90499         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90500         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90501         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90502         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90503         no longer needed. Anyway, config.h should always be included before any
90504         other file.
90505
90506 2003-06-11  Simon Josefsson  <jas@extundo.com>
90507
90508         * modules/sysexits: New file.
90509         * MODULES.html.sh (func_all_modules): Add sysexits.
90510
90511 2003-06-11  Simon Josefsson  <jas@extundo.com>
90512
90513         * lib/sysexit_.h: New file.
90514
90515 2003-06-11  Derek Price  <derek@ximbiot.com>
90516
90517         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90518         necessary.
90519
90520 2003-06-11  Bruno Haible  <bruno@clisp.org>
90521
90522         * m4/sysexits.m4: New file.
90523
90524 2003-06-10  Simon Josefsson  <jas@extundo.com>
90525
90526         * lib/argp.h: New file, from glibc.
90527         * lib/argp-ba.c: New file, from glibc.
90528         * lib/argp-eexst.c: New file, from glibc.
90529         * lib/argp-fmtstream.c: New file, from glibc.
90530         * lib/argp-fmtstream.h: New file, from glibc.
90531         * lib/argp-fs-xinl.c: New file, from glibc.
90532         * lib/argp-help.c: New file, from glibc.
90533         * lib/argp-namefrob.h: New file, from glibc.
90534         * lib/argp-parse.c: New file, from glibc.
90535         * lib/argp-pv.c: New file, from glibc.
90536         * lib/argp-pvh.c: New file, from glibc.
90537         * lib/argp-xinl.c: New file, from glibc.
90538
90539 2003-06-10  Simon Josefsson  <jas@extundo.com>
90540
90541         * modules/strchrnul: New file.
90542
90543 2003-06-10  Simon Josefsson  <jas@extundo.com>
90544
90545         * modules/argp: New file.
90546
90547 2003-06-10  Simon Josefsson  <jas@extundo.com>
90548
90549         * m4/strchrnul.m4: New file.
90550
90551 2003-06-10  Simon Josefsson  <jas@extundo.com>
90552
90553         * lib/strchrnul.h: New file.
90554         * lib/strchrnul.c: New file.
90555
90556 2003-06-10  Bruno Haible  <bruno@clisp.org>
90557
90558         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90559
90560 2003-06-07  Karl Berry  <karl@gnu.org>
90561
90562         * config/config.{guess,sub}: update from prep.
90563
90564 2003-06-07  Jim Meyering  <jim@meyering.net>
90565
90566         * modules/strtod: Use $(...) notation, not @...@ for
90567         AC_REPLACE'd variables.
90568         * modules/localcharset: Likewise.
90569
90570 2003-06-07  Jim Meyering  <jim@meyering.net>
90571
90572         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90573         in place of my name in the copyright comment.
90574         Remove definition and uses of __P.
90575
90576         From coreutils.
90577         * lib/stat.c: Don't declare xmalloc explicitly.
90578         Instead, include "xalloc.h".
90579         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90580         xrealloc, and xcalloc return values.
90581         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90582         Improve comment.
90583         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90584
90585 2003-06-07  Bruno Haible  <bruno@clisp.org>
90586
90587         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90588         avoid AC_CONFIG_LINKS.
90589         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90590         fnmatch.h, to avoid AC_CONFIG_LINKS.
90591         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90592
90593 2003-06-07  Bruno Haible  <bruno@clisp.org>
90594
90595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90596         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90597         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90598         directory.
90599         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90600         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90601         directory.
90602
90603 2003-06-06  Jim Meyering  <jim@meyering.net>
90604
90605         Merge from coreutils.
90606         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90607         Consolidate declarations and initializations of *_base* locals.
90608
90609         Merge from coreutils.
90610         This avoids a core dump on systems without GNU putenv,
90611         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90612         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90613         (unsetenv): New static function, from GNU libc.
90614         (rpl_putenv): Use it.
90615
90616         * lib/modechange.c: Remove trailing blanks.
90617
90618         Merge from coreutils.
90619         * lib/fsusage.c: Remove declaration of statfs.
90620         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90621
90622         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90623
90624 2003-06-06  Jim Meyering  <jim@meyering.net>
90625
90626         * lib/stdbool_.h: Renamed from stdbool.h.in.
90627
90628 2003-06-06  Jim Meyering  <jim@meyering.net>
90629             Bruno Haible  <bruno@clisp.org>
90630
90631         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90632         Adjust Makefile.am snippet not to redirect directly to target.
90633         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90634
90635 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90636
90637         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90638         mismatch, look in future quarters as well as past.  This fixes a
90639         bug when processing fall-backwards gaps immediately after a long
90640         period of daylight-saving time.
90641
90642         * lib/mktime.c: Assume freestanding C89 or better.
90643         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90644         (__P): Remove; not used.
90645         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90646         (mktime, not_equal_tm, print_tm, check_result,
90647         main): Use prototypes.  Use const * where appropriate.
90648         (main): Fix typo in testing code that uncovered by above changes.
90649         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90650
90651 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90652
90653         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90654         locale.h, localeconv.  This merges changes from coreutils.
90655
90656         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90657         It can be removed after the next Autoconf is released.
90658         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90659         needed.
90660
90661 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90662
90663         * lib/mktime.c: Fix Debian bug 177940
90664         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90665         (localtime_offset): Now long int, not time_t, because we want it
90666         to be guaranteed to be signed.  All uses changed.
90667         (__mktime_internal): If overflow would occur when adding offset,
90668         don't add it.
90669
90670         Merge 'human' changes from coreutils.  Rewrite to support
90671         locale-specific notations like thousands separators.
90672         * lib/human.c: Simplify authorship notice.
90673         Include human.h immediately after config.h.
90674         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90675         <limits.h>: Do not include, since human.h does.
90676         (SIZE_MAX, UINTMAX_MAX): New macros.
90677         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90678         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90679         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90680         (power_letter): Renamed from suffixes.
90681         (generate_suffix_backwards): Remove.
90682         (adjust_value): Now takes int style (because of human.h changes)
90683         and long double value (for greater precision on some platforms).
90684         (group_number): New function.
90685         (human_readable): Use it.  Use integer options, not enum.
90686         Put the options before the sizes in the arg list.
90687         Support all the new options.
90688         The old human_readable function has been removed;
90689         use inttostr.h instead.
90690         (human_readable, default_block_size, humblock):
90691         Use uintmax_t, not int, for block sizes.
90692         (human_readable_inexact, block_size_types): Remove.
90693         (block_size_opts): New constant.
90694         (human_options): Renamed from human_block_size, with new signature
90695         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90696         * lib/human.h: Add copyright and authorship notice.
90697         Include <limits.h> and <stdbool.h> unconditionally.
90698         (PARAMS): Remove.  All uses removed.
90699         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90700         (enum human_inexact_style): Remove tag; now a nameless enum.
90701         (human_floor, human_ceiling, human_round_to_even): Now have
90702         values 2, 0, 1 rather than -1, 1, 0.
90703         (human_group_digits, human_suppress_point_zero, human_autoscale,
90704         human_base_1024, human_SI, human_B): New constants.
90705         (human_readable_inexact, human_block_size): Remove.
90706         (human_readable): Size args are now uintmax_t, not int.
90707         (human_options): New decl.
90708
90709         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90710         unnecessary now that we assume C89 or better.  This change
90711         imported from coreutils.
90712
90713         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90714         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90715         in the 2003-05-30 sync from glibc.
90716
90717         .h files should stand alone, but we shouldn't include <sys/types.h>
90718         if we can get away with just <stddef.h>.
90719
90720         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90721         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90722         rather than <sys/types.h>, as we merely need size_t.
90723         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90724         to get size_t.
90725         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90726         Include <stdio.h>, to get FILE.
90727         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90728         memcasecmp.h has included <stddef.h> and all we need is size_t.
90729         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90730         our interface, instead of including <sys/types.h>
90731
90732 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90733
90734         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90735         now, as glibc mktime is buggy on non-glibc systems.
90736
90737 2003-06-03  Karl Berry  <karl@gnu.org>
90738
90739         * config/config.sub: update from prep.
90740
90741 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90742
90743         [from coreutils]
90744         Fix some minor time-related bugs with POSIX time arguments.
90745         Some valid time stamps were being rejected (notably -1, and
90746         time stamps before 1900 on 64-bit hosts).  And some invalid
90747         time stamps were being accepted, e.g. September 31.
90748
90749         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90750         that we can return (time_t) -1 successfully.
90751         * lib/posixtm.c: Likewise.
90752         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90753         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90754         (t): Remove static var.
90755         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90756         of static var.  All uses changed.
90757         (year): Do not reject years before 1900; they can occur with
90758         64-bit time_t.
90759         (posix_time_parse): Do not check for out-of-range components;
90760         that is now the caller's responsibility, since our checks were
90761         only approximations.
90762         (posixtime): Use mktime to check for out-of-range components,
90763         since it knows them exactly.
90764         If mktime returns (time_t) -1, check whether an error actually occurred
90765         by invoking localtime on -1.
90766         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90767         posixtime failures better.
90768         Improve the test data (in comments only).
90769
90770 2003-06-02  Karl Berry  <karl@gnu.org>
90771
90772         * config/mkinstalldirs (version): new variable.
90773         (--version): new option.
90774         (usage): improve message.
90775
90776 2003-05-30  Karl Berry  <karl@gnu.org>
90777
90778         * lib/mktime.c: update from libc.
90779
90780 2003-05-30  Bruno Haible  <bruno@clisp.org>
90781
90782         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90783         * config/config.rpath: Upgrade to gettext-0.12.1.
90784
90785 2003-05-30  Bruno Haible  <bruno@clisp.org>
90786
90787         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90788         * m4/nls.m4: New file, from gettext-0.12.1.
90789         * m4/po.m4: New file, from gettext-0.12.1.
90790         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90791
90792 2003-05-30  Bruno Haible  <bruno@clisp.org>
90793
90794         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90795         * lib/localcharset.h: Likewise.
90796         * lib/localcharset.c: Likewise.
90797
90798 2003-05-29  Karl Berry  <karl@gnu.org>
90799
90800         * config/config.rpath: update from gettext.
90801
90802 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90803
90804         Assume the headers required for C89 freestanding compilers.
90805         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90806         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90807         * m4/human.m4 (gl_HUMAN): Likewise.
90808         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90809         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90810         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90811         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90812         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90813         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90814
90815 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90816
90817         Assume the headers required for C89 freestanding compilers.
90818         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90819         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90820         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90821         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90822         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90823         define, since <limits.h> is guaranteed to do that.
90824         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90825         * lib/exclude.c: Include <stdbool.h> unconditionally.
90826         * lib/tempname.c: Include <stddef.h> unconditionally.
90827         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90828         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90829         <stddef.h> does that.
90830         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90831         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90832         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90833         needed.
90834         * lib/xstrtol.c: Likewise.
90835         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90836         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90837
90838         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90839         warnings on some platforms.
90840
90841         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90842         arbitrarily.
90843
90844 2003-05-26  Jim Meyering  <jim@meyering.net>
90845
90846         Merge in a change from coreutils:
90847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90848         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90849         that condition, rather than `-1' which is slightly misleading.
90850         Change the name of the cache variable to have the gl_ prefix.
90851         Prompted by a patch from Richard Dawe for DJGPP.
90852
90853 2003-05-24  Karl Berry  <karl@gnu.org>
90854
90855         * config/config.guess: update from prep.
90856
90857 2003-05-22  Karl Berry  <karl@gnu.org>
90858
90859         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90860
90861 2003-05-20  Karl Berry  <karl@gnu.org>
90862
90863         * config/config.guess: update from prep.
90864
90865 2003-05-18  Karl Berry  <karl@gnu.org>
90866
90867         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90868         might actually be set by the user.
90869
90870         * config/depcomp, install-sh, mdate-sh: update from automake.
90871
90872 2003-05-17  Bruno Haible  <bruno@clisp.org>
90873
90874         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90875         invalid expansion for AC_EGREP_CPP.
90876         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90877         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90878         Suggested by Akim Demaille <akim@epita.fr> in
90879         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90880
90881 2003-05-12  Jim Meyering  <jim@meyering.net>
90882
90883         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90884         the space-padded-by-default conversion specifiers, %e, %k, %l.
90885
90886 2003-05-12  Bruno Haible  <bruno@clisp.org>
90887
90888         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90889         the string is longer than 4 KB.
90890
90891 2003-05-11  Karl Berry  <karl@gnu.org>
90892
90893         * config/config.{guess,sub}: update from prep.
90894
90895 2003-05-09  Bruno Haible  <bruno@clisp.org>
90896
90897         * modules/error: Add m4/strerror_r.m4 to file list.
90898
90899 2003-05-03  Bruno Haible  <bruno@clisp.org>
90900
90901         Upgrade to Unicode-4.0.
90902         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90903         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90904         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90905         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90906         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90907         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90908         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90909         Change width of U+E0100..U+E01EF from 1 to 0.
90910
90911 2003-04-25  Jim Meyering  <jim@meyering.net>
90912
90913         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90914         of type size_t, not int.
90915
90916 2003-04-25  Bruno Haible  <bruno@clisp.org>
90917
90918         * lib/copy-file.c: Include <stddef.h>, for size_t.
90919
90920 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90921
90922         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90923         code which expansion is under static control.  Patch imported from
90924         Akim Demaille's patch to Bison; see
90925         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90926
90927 2003-04-14  Bruno Haible  <bruno@clisp.org>
90928
90929         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90930
90931 2003-04-11  Jim Meyering  <jim@meyering.net>
90932
90933         Merge changes from Coreutils.
90934
90935         2003-03-22  Jim Meyering  <jim@meyering.net>
90936
90937         * lib/strftime.c (widen): Cast alloca return value to proper type.
90938
90939         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90940
90941         From GNU libc.
90942         * lib/strftime.c (my_strftime): Handle very large width
90943         specifications for numeric values correctly.  Improve checks for
90944         overflow.
90945
90946         2003-01-19  Jim Meyering  <jim@meyering.net>
90947
90948         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90949         definitions.
90950         (nl_get_alt_digit) [! defined my_strftime]: Define.
90951         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90952         _nl_get_alt_digit and _nl_get_walt_digit.
90953
90954         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90955         libc. These changes have no effect outside of _LIBC.
90956
90957 2003-04-10  Bruno Haible  <bruno@clisp.org>
90958
90959         * modules/findprog: New file.
90960         * MODULES.html.sh (func_all_modules): Add it.
90961
90962 2003-04-10  Bruno Haible  <bruno@clisp.org>
90963
90964         * m4/findprog.m4: New file.
90965         * m4/eaccess.m4: New file.
90966
90967 2003-04-10  Bruno Haible  <bruno@clisp.org>
90968
90969         * lib/findprog.h: New file, from GNU gettext.
90970         * lib/findprog.c: New file, from GNU gettext.
90971
90972 2003-04-05  Jim Meyering  <jim@meyering.net>
90973
90974         Merge changes from Coreutils.
90975
90976         * lib/exclude.h (PARAMS): Remove definition and uses.
90977         * lib/exclude.c: Remove uses of `PARAMS'.
90978
90979         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90980         Add test-cases for DOS filenames. Declare program_name.
90981         (main): Set up program_name.  Patch by Rich Dawe.
90982
90983         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90984         error from mntctl.
90985         Use mntctl's return value to drive the entry-processing loop, since
90986         we can't rely on the value of the vmt_length member in the last
90987         entry.  On some systems doing so could result in exhausting
90988         virtual memory.  Based in part on a patch from Mike Jetzer.
90989
90990 2003-04-04  Bruno Haible  <bruno@clisp.org>
90991
90992         * modules/linebreak: New file.
90993         * MODULES.html.sh (func_all_modules): Add it.
90994
90995 2003-04-04  Bruno Haible  <bruno@clisp.org>
90996
90997         * m4/linebreak.m4: New file.
90998
90999 2003-04-04  Bruno Haible  <bruno@clisp.org>
91000
91001         * lib/linebreak.h: New file, from GNU gettext.
91002         * lib/linebreak.c: New file, from GNU gettext with slight
91003         modifications.
91004         * lib/lbrkprop.h: New file, from GNU gettext.
91005
91006 2003-04-03  Bruno Haible  <bruno@clisp.org>
91007
91008         * modules/utf8-ucs4: New file.
91009         * modules/utf16-ucs4: New file.
91010         * modules/ucs4-utf8: New file.
91011         * modules/ucs4-utf16: New file.
91012         * MODULES.html.sh (func_all_modules): Add them.
91013
91014 2003-04-03  Bruno Haible  <bruno@clisp.org>
91015
91016         * m4/utf-ucs4.m4: New file.
91017         * m4/ucs4-utf.m4: New file.
91018
91019 2003-04-03  Bruno Haible  <bruno@clisp.org>
91020
91021         * lib/utf8-ucs4.h: New file, from GNU gettext.
91022         * lib/utf16-ucs4.h: New file, from GNU gettext.
91023         * lib/ucs4-utf8.h: New file, from GNU gettext.
91024         * lib/ucs4-utf16.h: New file, from GNU gettext.
91025
91026 2003-04-02  Bruno Haible  <bruno@clisp.org>
91027
91028         * modules/binary-io: New file.
91029         * MODULES.html.sh (func_all_modules): Add it.
91030
91031 2003-04-02  Bruno Haible  <bruno@clisp.org>
91032
91033         * lib/binary-io.h: New file, from GNU gettext.
91034
91035 2003-04-01  Bruno Haible  <bruno@clisp.org>
91036
91037         * modules/pathname: New file.
91038         * MODULES.html.sh (func_all_modules): Add it.
91039
91040 2003-04-01  Bruno Haible  <bruno@clisp.org>
91041
91042         * lib/pathname.h: New file, from GNU gettext.
91043         * lib/concatpath.c: New file, from GNU gettext.
91044
91045 2003-03-30  Bruno Haible  <bruno@clisp.org>
91046
91047         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91048
91049 2003-03-30  Bruno Haible  <bruno@clisp.org>
91050
91051         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91052         function chown() doesn't exist.
91053
91054 2003-03-28  Bruno Haible  <bruno@clisp.org>
91055
91056         * modules/copy-file: New file.
91057         * MODULES.html.sh (func_all_modules): Add it.
91058
91059 2003-03-28  Bruno Haible  <bruno@clisp.org>
91060
91061         * m4/copy-file.m4: New file.
91062
91063 2003-03-28  Bruno Haible  <bruno@clisp.org>
91064
91065         * lib/copy-file.h: New file, from GNU gettext.
91066         * lib/copy-file.c: New file, from GNU gettext.
91067
91068 2003-03-18  Jim Meyering  <jim@meyering.net>
91069
91070         * lib/quote.c (quote_n): Fix typo in comment.
91071
91072 2003-03-18  Bruno Haible  <bruno@clisp.org>
91073
91074         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91075         checking.
91076         * m4/onceonly_2_57.m4: Likewise.
91077
91078 2003-03-17  Bruno Haible  <bruno@clisp.org>
91079
91080         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91081         (m4_quote): Remove macro.
91082         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91083
91084 2003-03-14  Jim Meyering  <jim@meyering.net>
91085
91086         Merge changes from Coreutils.
91087         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91088         to be const, in order to avoid warnings.
91089         (obstack_room): Likewise.
91090         (obstack_empty_p): Likewise.
91091
91092 2003-03-14  Bruno Haible  <bruno@clisp.org>
91093
91094         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91095         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91096
91097 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91098
91099         Merge changes from Bison.
91100         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91101         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91102         when compiling Bison 1.875's `bitset bset = obstack_alloc
91103         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91104         * lib/hash.c: Include <stdbool.h> unconditionally.
91105
91106 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91107
91108         * m4/onceonly.m4 (m4_quote): New macro.
91109         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91110         Quote AC_FOREACH variable-expansions properly.
91111
91112 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91113
91114         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91115
91116 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91117
91118         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91119         Reported by Bruce Becker; see:
91120         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91121
91122 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91123             Bruno Haible  <bruno@clisp.org>
91124
91125         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91126         Reported by John Hughes, see
91127         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91128
91129 2003-02-20  Bruno Haible  <bruno@clisp.org>
91130
91131         * MODULES.html.sh (func_all_modules): Add poll.
91132
91133 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91134
91135         * modules/poll: New file.
91136
91137 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91138
91139         * lib/poll_.h: New file.
91140         * lib/poll.c: New file.
91141
91142 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91143
91144         * m4/poll.m4: New file.
91145
91146 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91147
91148         * modules/mathl: New file.
91149
91150 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91151
91152         * lib/mathl.h: New file.
91153         * lib/acosl.c: New file.
91154         * lib/asinl.c: New file.
91155         * lib/atanl.c: New file.
91156         * lib/ceill.c: New file.
91157         * lib/cosl.c: New file.
91158         * lib/expl.c: New file.
91159         * lib/floorl.c: New file.
91160         * lib/frexpl.c: New file.
91161         * lib/ldexpl.c: New file.
91162         * lib/logl.c: New file.
91163         * lib/sincosl.c: New file.
91164         * lib/sinl.c: New file.
91165         * lib/sqrtl.c: New file.
91166         * lib/tanl.c: New file.
91167         * lib/trigl.c: New file.
91168         * lib/trigl.h: New file.
91169
91170 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91171
91172         * m4/mathl.m4: New file.
91173
91174 2003-02-18  Bruno Haible  <bruno@clisp.org>
91175
91176         * MODULES.html.sh (func_all_modules): Add mathl.
91177
91178 2003-02-17  Bruno Haible  <bruno@clisp.org>
91179
91180         * modules/mkdtemp: New module.
91181         * MODULES.html.sh (func_all_modules): Add it.
91182
91183 2003-02-17  Bruno Haible  <bruno@clisp.org>
91184
91185         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91186
91187 2003-02-17  Bruno Haible  <bruno@clisp.org>
91188
91189         * lib/mkdtemp.h: New file, from GNU gettext.
91190         * lib/mkdtemp.c: New file, from GNU gettext.
91191
91192 2003-02-02  Jim Meyering  <jim@meyering.net>
91193
91194         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91195         e.g. glibc-2.2.93.
91196
91197 2003-01-31  Bruno Haible  <bruno@clisp.org>
91198
91199         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91200         'rpl_rename'.
91201         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91202         'rpl_strnlen'.
91203         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91204         'rpl_strtod'.
91205         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91206         'rpl_utime'.
91207
91208 2003-01-31  Bruno Haible  <bruno@clisp.org>
91209
91210         * lib/rename.c: #undef rename before defining rpl_rename.
91211         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91212
91213 2003-01-30  Bruno Haible  <bruno@clisp.org>
91214
91215         * modules/vasnprintf, modules/vasprintf: New modules.
91216         * MODULES.html.sh (func_all_modules): Add them.
91217
91218 2003-01-30  Bruno Haible  <bruno@clisp.org>
91219
91220         * m4/signed.m4: New file, from GNU gettext.
91221         * m4/longdouble.m4: New file, from GNU gettext.
91222         * m4/wchar_t.m4: New file, from GNU gettext.
91223         * m4/wint_t.m4: New file, from GNU gettext.
91224         * m4/vasnprintf.m4: New file.
91225         * m4/vasprintf.m4: New file.
91226
91227 2003-01-30  Bruno Haible  <bruno@clisp.org>
91228
91229         * lib/printf-args.h: New file, from GNU gettext.
91230         * lib/printf-args.c: New file, from GNU gettext.
91231         * lib/printf-parse.h: New file, from GNU gettext.
91232         * lib/printf-parse.c: New file, from GNU gettext.
91233         * lib/vasnprintf.h: New file, from GNU gettext.
91234         * lib/vasnprintf.c: New file, from GNU gettext.
91235         * lib/asnprintf.c: New file, from GNU gettext.
91236         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91237         * lib/vasprintf.c: New file, from GNU gettext.
91238         * lib/asprintf.c: New file, from GNU gettext.
91239
91240 2003-01-29  Bruno Haible  <bruno@clisp.org>
91241
91242         * modules/stpncpy: New module.
91243         * MODULES.html.sh (func_all_modules): Add it.
91244
91245 2003-01-29  Bruno Haible  <bruno@clisp.org>
91246
91247         * m4/stpncpy.m4: New file.
91248
91249 2003-01-29  Bruno Haible  <bruno@clisp.org>
91250
91251         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91252         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91253
91254 2003-01-28  Bruno Haible  <bruno@clisp.org>
91255
91256         * modules/c-ctype: New module.
91257         * MODULES.html.sh (func_all_modules): Add it.
91258
91259 2003-01-28  Bruno Haible  <bruno@clisp.org>
91260
91261         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91262         Paul Eggert.
91263         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91264         Paul Eggert.
91265
91266 2003-01-27  Bruno Haible  <bruno@clisp.org>
91267
91268         * modules/xsetenv: New module.
91269         * MODULES.html.sh (func_all_modules): Add it.
91270
91271 2003-01-27  Bruno Haible  <bruno@clisp.org>
91272
91273         * lib/xsetenv.h: New file, from GNU gettext.
91274         * lib/xsetenv.c: New file, from GNU gettext.
91275
91276 2003-01-23  Jim Meyering  <jim@meyering.net>
91277
91278         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91279         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91280
91281 2003-01-23  Bruno Haible  <bruno@clisp.org>
91282
91283         * modules/minmax: New module.
91284         * MODULES.html.sh (func_all_modules): Add it.
91285
91286 2003-01-23  Bruno Haible  <bruno@clisp.org>
91287
91288         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91289         Eggert.
91290
91291 2003-01-22  Bruno Haible  <bruno@clisp.org>
91292
91293         * modules/exit: New module.
91294         * MODULES.html.sh (func_all_modules): Add it.
91295
91296 2003-01-22  Bruno Haible  <bruno@clisp.org>
91297
91298         * lib/exit.h: New file, from GNU gettext.
91299
91300 2003-01-19  Bruno Haible  <bruno@clisp.org>
91301
91302         * gnulib-tool: Recognize option --extract-maintainer.
91303         (func_get_maintainer): New function.
91304         * modules/*: Add Maintainer entry.
91305
91306 2003-01-16  Jim Meyering  <jim@meyering.net>
91307
91308         * m4/regex.m4: The `regex' struct is both input and output.
91309         Initialize it before each use.  Patch by Tim Waugh.
91310
91311 2003-01-16  Bruno Haible  <bruno@clisp.org>
91312
91313         * MODULES.html.sh: Add a table of contents. Add the module name as
91314         leftmost column. Add hyperlinks.
91315
91316 2003-01-15  Bruno Haible  <bruno@clisp.org>
91317
91318         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91319
91320 2003-01-15  Bruno Haible  <bruno@clisp.org>
91321
91322         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91323         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91324         suffix.
91325
91326 2003-01-15  Bruno Haible  <bruno@clisp.org>
91327
91328         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91329
91330 2003-01-15  Bruno Haible  <bruno@clisp.org>
91331
91332         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91333         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91334
91335 2003-01-14  Jim Meyering  <jim@meyering.net>
91336
91337         * lib/same.c (same_name): Tweak a comment.
91338
91339 2003-01-14  Bruno Haible  <bruno@clisp.org>
91340
91341         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91342         when a string comparison is sufficient.
91343
91344 2003-01-14  Bruno Haible  <bruno@clisp.org>
91345
91346         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91347         'unsigned int'.
91348
91349 2003-01-14  Bruno Haible  <bruno@clisp.org>
91350
91351         * lib/hash-pjw.c: Add comment about low quality of this function.
91352
91353 2003-01-13  Bruno Haible  <bruno@clisp.org>
91354
91355         * modules/stpcpy: Distribute lib/stpcpy.h.
91356         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91357
91358 2003-01-13  Bruno Haible  <bruno@clisp.org>
91359
91360         * modules/*: Add a description.
91361         * modules/strpbrk: Fix Makefile.am snippet.
91362         * modules/strtoimax: Fix dependencies.
91363         * modules/strtoumax: Likewise.
91364
91365 2003-01-13  Bruno Haible  <bruno@clisp.org>
91366
91367         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91368         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91369         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91370
91371 2003-01-13  Bruno Haible  <bruno@clisp.org>
91372
91373         * gnulib-tool (func_create_testdir): Store config/* files in the main
91374         directory.
91375         * config.rpath: Move to ...
91376         * config/config.rpath: ... here.
91377         * modules/gettext: Contains config/config.rpath, not config.rpath.
91378         * modules/iconv: Likewise.
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         * m4/getstr.m4: Remove.
91386         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91387
91388 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91389
91390         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91391         to avoid collisions with libcurses and libreadline.
91392
91393         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91394         * lib/getstr.h, getstr.c: Remove.
91395         * lib/getline.c: Include "getline.h", to check interface.
91396         Move body of old getstr.c here: this defines MIN_CHUNK and
91397         declares getdelim2, which is renamed from getstr.
91398         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91399
91400         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91401         All uses changed.
91402         * lib/linebuffer.h: Likewise.
91403         (readline): Remove backward-compatibility macro.
91404
91405 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91406
91407         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91408         to avoid collisions with libcurses and libreadline.
91409         * getstr: Remove.
91410         * MODULES.html.sh: Remove getstr.
91411         * modules/getline: Depend on unlocked-io, not getstr.
91412
91413 2003-01-12  Jim Meyering  <jim@meyering.net>
91414
91415         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91416
91417 2003-01-10  Bruno Haible  <bruno@clisp.org>
91418
91419         * modules/alloca: Change Makefile.am requirements. Simplify Include
91420         requirements. Add lib/alloca_.h to file list.
91421
91422 2003-01-10  Bruno Haible  <bruno@clisp.org>
91423
91424         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91425
91426 2003-01-10  Bruno Haible  <bruno@clisp.org>
91427
91428         * lib/alloca_.h: New file.
91429         * lib/getdate.y: Unconditionally include alloca.h.
91430         * lib/makepath.c: Likewise.
91431         * lib/setenv.c: Likewise.
91432         * lib/userspec.c: Likewise.
91433
91434 2003-01-09  Karl Berry  <karl@gnu.org>
91435
91436         * MODULES.html.sh: include `dirname $0` in PATH, to find
91437         gnulib-tool.
91438
91439 2003-01-09  Bruno Haible  <bruno@clisp.org>
91440
91441         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91442         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91443
91444 2003-01-09  Bruno Haible  <bruno@clisp.org>
91445
91446         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91447
91448 2003-01-09  Bruno Haible  <bruno@clisp.org>
91449
91450         * lib/stdbool.h.in: New file.
91451
91452 2003-01-09  Bruno Haible  <bruno@clisp.org>
91453
91454         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91455         * MODULES.html.sh: Likewise.
91456
91457 2003-01-08  Jim Meyering  <jim@meyering.net>
91458
91459         * lib/full-write.c: Undefine and define-away `const' after inclusion
91460         of errno.h, not before.  Suggestion from Bruno Haible.
91461
91462 2003-01-08  Bruno Haible  <bruno@clisp.org>
91463
91464         * modules/full-read: Depend on full-write.
91465
91466 2003-01-08  Bruno Haible  <bruno@clisp.org>
91467
91468         * lib/safe-read.c: Include specification header first, to ensure its
91469         selfcontainedness.
91470         * lib/full-write.c: Likewise.
91471
91472 2003-01-07  Jim Meyering  <jim@meyering.net>
91473
91474         * lib/full-write.c: Rework so that it may serve to define full_read,
91475         too.
91476         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91477
91478 2003-01-07  Bruno Haible  <bruno@clisp.org>
91479
91480         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91481         <inttypes.h>.
91482         * lib/xstrtol.h: Likewise.
91483         * lib/xstrtoimax.c: Likewise.
91484         * lib/xstrtoumax.c: Likewise.
91485         * lib/human.h: Likewise.
91486
91487         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91488         on systems that have <inttypes.h> but not <stdint.h>.
91489
91490 2003-01-07  Bruno Haible  <bruno@clisp.org>
91491
91492         * MODULES.html.sh: Add copyright notice.
91493         (missed_files): Omit CVS directory entries.
91494         (func_module): Make it work with sed-3.02.
91495         * MODULES.txt: Remove file.
91496
91497 2003-01-06  Jim Meyering  <jim@meyering.net>
91498
91499         * lib/version-etc.c: Update year in translatable copyright string.
91500
91501 2003-01-03  Karl Berry  <karl@gnu.org>
91502
91503         * config/config.{guess,sub}: update from prep.
91504
91505 2003-01-02  Karl Berry  <karl@gnu.org>
91506
91507         * doc/COPYING.DOC: belatedly updated to 1.2.
91508
91509 2003-01-01  Karl Berry  <karl@gnu.org>
91510
91511         * gnulib-tool (func_verify_module): report module name $module in
91512         error message, not $1.
91513         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91514         be created, only if it doesn't exist.
91515         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91516
91517 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91518
91519         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91520
91521 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91522
91523         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91524         memcmp if strcoll doesn't work.
91525
91526 2002-12-31  Bruno Haible  <bruno@clisp.org>
91527
91528         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91529         nonempty.
91530
91531 2002-12-31  Bruno Haible  <bruno@clisp.org>
91532
91533         * lib/memcoll.c (STRCOLL): New macro.
91534         (memcoll): Use it.
91535
91536 2002-12-31  Bruno Haible  <bruno@clisp.org>
91537
91538         * lib/localcharset.h: New file.
91539         * lib/localcharset.c: Include it.
91540         * lib/unicodeio.c: Likewise.
91541
91542 2002-12-31  Bruno Haible  <bruno@clisp.org>
91543
91544         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91545         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91546
91547 2002-12-31  Bruno Haible  <bruno@clisp.org>
91548
91549         * lib/getline.h: Include <stddef.h>, for size_t.
91550
91551         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91552         * lib/unicodeio.c: Don't include <stddef.h>.
91553
91554 2002-12-31  Bruno Haible  <bruno@clisp.org>
91555
91556         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91557         HAVE_TM_ZONE.
91558
91559 2002-12-24  Karl Berry  <karl@gnu.org>
91560
91561         * config/config.guess: update from prep.
91562
91563 2002-12-24  Bruno Haible  <bruno@clisp.org>
91564
91565         General infrasructure.
91566         * m4/README: Rewritten.
91567         * m4/onceonly.m4: New file.
91568         * m4/onceonly_2_57.m4: New file.
91569
91570         Module atexit.
91571         * m4/atexit.m4: New file.
91572
91573         Module strtod.
91574         * m4/strtod.m4: New file.
91575
91576         Module strtol.
91577         * m4/strtol.m4: New file.
91578
91579         Module strtoul.
91580         * m4/strtoul.m4: New file.
91581
91582         Module memchr.
91583         * m4/memchr.m4: New file.
91584
91585         Module memcmp.
91586         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91587         (jm_FUNC_MEMCMP): Invoke it.
91588
91589         Module memcpy.
91590         * m4/memcpy.m4: New file.
91591
91592         Module memmove.
91593         * m4/memmove.m4: New file.
91594
91595         Module memset.
91596         * m4/memset.m4: New file.
91597
91598         Module strcspn.
91599         * m4/strcspn.m4: New file.
91600
91601         Module strpbrk.
91602         * m4/strpbrk.m4: New file.
91603
91604         Module strstr.
91605         * m4/strstr.m4: New file.
91606
91607         Module strerror.
91608         * m4/strerror.m4: New file.
91609
91610         Module mktime.
91611         * m4/mktime.m4: Renamed from jm-mktime.m4.
91612         (gl_PREREQ_MKTIME): New macro.
91613         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91614
91615         Module malloc.
91616         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91617         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91618         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91619
91620         Module realloc.
91621         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91622         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91623         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91624
91625         Module strftime.
91626         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91627         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91628         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91629         gl_TM_GMTOFF.
91630         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91631
91632         Module xalloc.
91633         * m4/xalloc.m4: New file.
91634
91635         Module alloca.
91636         * m4/alloca.m4: New file.
91637
91638         Module putenv.
91639         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91640         (jm_FUNC_PUTENV): Invoke it.
91641
91642         Module setenv.
91643         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91644         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91645         when invoked twice.
91646         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91647         gt_FUNC_SETENV.
91648
91649         Module memrchr.
91650         * m4/memrchr.m4: New file.
91651
91652         Module stpcpy.
91653         * m4/stpcpy.m4: New file.
91654
91655         Module strcase.
91656         * m4/strcase.m4: New file.
91657
91658         Module strdup.
91659         * m4/strdup.m4: New file.
91660
91661         Module strnlen.
91662         * m4/strnlen.m4: New file.
91663
91664         Module strndup.
91665         * m4/strndup.m4: New file.
91666
91667         Module xstrtod.
91668         * m4/xstrtod.m4: New file.
91669
91670         Module xstrtol.
91671         * m4/xstrtol.m4: New file.
91672
91673         Module getdate.
91674         * m4/getdate.m4: New file.
91675
91676         Module unlocked-io.
91677         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91678         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91679         * m4/jm-glibc-io.m4n: Remove file.
91680
91681         Module long-options.
91682         * m4/long-options.m4: New file.
91683
91684         Module md5.
91685         * m4/md5.m4: New file.
91686
91687         Module sha.
91688         * m4/sha.m4: New file.
91689
91690         Module getstr.
91691         * m4/getstr.m4: New file.
91692
91693         Module getline.
91694         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91695         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91696         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91697         simply getline. Infoke gl_PREREQ_GETLINE.
91698
91699         Module obstack.
91700         * m4/obstack.m4: New file.
91701
91702         Module hash.
91703         * m4/hash.m4: New file.
91704
91705         Module readtokens.
91706         * m4/readtokens.m4: New file.
91707
91708         Module strverscmp.
91709         * m4/strverscmp.m4: New file.
91710
91711         Module stdbool.
91712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91713         OSF/1.
91714
91715         Module strtoll.
91716         * m4/strtoll.m4: New file.
91717
91718         Module strtoull.
91719         * m4/strtoull.m4: New file.
91720
91721         Module strtoimax.
91722         * m4/strtoimax.m4: New file.
91723
91724         Module strtoumax.
91725         * m4/strtoumax.m4: New file.
91726
91727         Module xstrtoimax.
91728         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91729         jm_AC_PREREQ_XSTRTOIMAX.
91730         Moved the strtol prerequisites to strtol.m4.
91731         Moved the strtoll prerequisites to strtoll.m4.
91732         Moved the strtoimax prerequisites to strtoimax.m4.
91733
91734         Module xstrtoumax.
91735         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91736         jm_AC_PREREQ_XSTRTOUMAX.
91737         Moved the strtoul prerequisites to strtoul.m4.
91738         Moved the strtoull prerequisites to strtoull.m4.
91739         Moved the strtoumax prerequisites to strtoumax.m4.
91740
91741         Module chown.
91742         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91743         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91744
91745         Module dup2.
91746         * m4/dup2.m4: New file.
91747
91748         Module ftruncate.
91749         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91750         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91751
91752         Module getgroups.
91753         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91754         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91755
91756         Module gettimeofday.
91757         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91758         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91759         gl_PREREQ_GETTIMEOFDAY.
91760
91761         Module mkdir.
91762         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91763         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91764
91765         Module mkstemp.
91766         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91767         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91768         jm_AC_TYPE_UINTMAX_T.
91769         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91770
91771         Module stat.
91772         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91773         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91774
91775         Module lstat.
91776         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91777         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91778
91779         Module timespec.
91780         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91781         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91782         * m4/st_mtim.m4: Indentation.
91783
91784         Module nanosleep.
91785         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91786         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91787         gl_PREREQ_NANOSLEEP.
91788
91789         Module regex.
91790         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91791         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91792         (gl_REGEX): New macro.
91793
91794         Module rename.
91795         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91796         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91797
91798         Module rmdir.
91799         * m4/rmdir.m4: New file.
91800
91801         Module utime.
91802         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91803         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91804         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91805
91806         Module dirname.
91807         * m4/dirname.m4: New file.
91808
91809         Module getopt.
91810         * m4/getopt.m4: New file.
91811
91812         Module unistd-safer.
91813         * m4/unistd-safer.m4: New file.
91814
91815         Module fnmatch.
91816         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91817         declaration.
91818         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91819         (gl_FUNC_FNMATCH_POSIX): New macro.
91820         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91821         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91822         simply fnmatch.
91823
91824         Module exclude.
91825         * m4/exclude.m4: New file.
91826
91827         Module human.
91828         * m4/human.m4: New file.
91829
91830         Module acl.
91831         * m4/acl.m4: Nop.
91832
91833         Module backupfile.
91834         * m4/backupfile.m4: New file.
91835         * m4/d-ino.m4: Indentation.
91836
91837         Module fsusage.
91838         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91839         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91840         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91841
91842         Module dirfd.
91843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91844         requirements.
91845
91846         Module euidaccess.
91847         * m4/euidaccess.m4: New file.
91848
91849         Module file-type.
91850         * m4/file-type.m4: New file.
91851
91852         Module fileblocks.
91853         * m4/fileblocks.m4: New file.
91854
91855         Module filemode.
91856         * m4/filemode.m4: New file.
91857
91858         Module isdir.
91859         * m4/isdir.m4: New file.
91860
91861         Module lchown.
91862         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91863         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91864
91865         Module makepath.
91866         * m4/makepath.m4: New file.
91867
91868         Module modechange.
91869         * m4/modechange.m4: New file.
91870
91871         Module mountlist.
91872         * m4/mountlist.m4: New file.
91873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91874         Indentation.
91875
91876         Module path-concat.
91877         * m4/path-concat.m4: New file.
91878
91879         Module pathmax.
91880         * m4/pathmax.m4: New file.
91881
91882         Module same.
91883         * m4/same.m4: New file.
91884
91885         Module save-cwd.
91886         * m4/save-cwd.m4: New file.
91887
91888         Module savedir.
91889         * m4/savedir.m4: New file.
91890
91891         Module xgetcwd.
91892         * m4/xgetcwd.m4: New file.
91893         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91894
91895         Module xreadlink.
91896         * m4/xreadlink.m4: New file.
91897
91898         Module safe-read.
91899         * m4/safe-read.m4: New file.
91900
91901         Module safe-write.
91902         * m4/safe-write.m4: New file.
91903
91904         Module closeout.
91905         * m4/closeout.m4: New file.
91906
91907         Module stdio-safer.
91908         * m4/stdio-safer.m4: New file.
91909
91910         Module getpass.
91911         * m4/getpass.m4: New file.
91912
91913         Module getugroups.
91914         * m4/getugroups.m4: New file.
91915
91916         Module group-member.
91917         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91918         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91919
91920         Module idcache.
91921         * m4/idcache.m4: New file.
91922
91923         Module userspec.
91924         * m4/userspec.m4: New file.
91925
91926         Module gettime.
91927         * m4/clock_time.m4: New file.
91928         * m4/gettime.m4: New file.
91929
91930         Module settime.
91931         * m4/settime.m4: New file.
91932
91933         Module posixtm.
91934         * m4/posixtm.m4: New file.
91935
91936         Module gethostname.
91937         * m4/gethostname.m4: New file.
91938
91939         Module canon-host.
91940         * m4/canon-host.m4: New file.
91941
91942         Module gettext.
91943         * m4/codeset.m4: New file, from gettext-0.11.5.
91944         * m4/gettext.m4: New file, from gettext-0.11.5.
91945         * m4/glibc21.m4: New file, from gettext-0.11.5.
91946         * m4/iconv.m4: New file, from gettext-0.11.5.
91947         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91948         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91949         * m4/inttypes.m4: New file, from gettext-0.11.5.
91950         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91951         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91952         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91953         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91954         * m4/lib-link.m4: New file, from gettext-0.11.5.
91955         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91956         * m4/progtest.m4: New file, from gettext-0.11.5.
91957         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91958         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91959         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91960
91961         Module localcharset.
91962         * m4/localcharset.m4: New file.
91963
91964         Module hard-locale.
91965         * m4/hard-locale.m4: New file.
91966
91967         Module mbswidth.
91968         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91969         onceonly macros.
91970         * m4/mbrtowc.m4: Add comment.
91971
91972         Module memcasecmp.
91973         * m4/memcasecmp.m4: New file.
91974
91975         Module memcoll.
91976         * m4/memcoll.m4: New file.
91977
91978         Module unicodeio.
91979         * m4/unicodeio.m4: New file.
91980
91981         Module rpmatch.
91982         * m4/rpmatch.m4: New file.
91983
91984         Module yesno.
91985         * m4/yesno.m4: New file.
91986
91987         Module exitfail.
91988         * m4/exitfail.m4: New file.
91989
91990         Module c-stack.
91991         * m4/c-stack.m4 (gl_C_STACK): New macro.
91992         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91993
91994         Module error.
91995         * m4/error.m4 (gl_ERROR): New macro.
91996         (jm_PREREQ_ERROR): Use onceonly macros.
91997
91998         Module fatal.
91999         * m4/fatal.m4: New file.
92000
92001         Module getloadavg.
92002         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92003         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92004
92005         Module getpagesize.
92006         * m4/getpagesize.m4: New file.
92007
92008         Module getusershell.
92009         * m4/getusershell.m4: New file.
92010
92011         Module physmem.
92012         * m4/physmem.m4: New file.
92013
92014         Module posixver.
92015         * m4/posixver.m4: New file.
92016
92017         Module quotearg.
92018         * m4/quotearg.m4: New file.
92019
92020         Module quote.
92021         * m4/quote.m4: New file.
92022
92023         Module readutmp.
92024         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92025
92026         Module sig2str.
92027         * m4/sig2str.m4: New file.
92028
92029         Other.
92030         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92031         ulonglong.m4.
92032         * m4/intmax_t.m4: New file.
92033         * m4/d-type.m4: Indentation.
92034         * m4/jm-macros.m4: Update.
92035         * m4/prereq.m4 (jm_PREREQ): Update.
92036         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92037         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92038         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92039         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92040         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92041         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92042         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92043         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92044         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92045         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92046         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92047         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92048         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92049         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92050         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92051         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92052         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92053         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92054         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92055
92056 2002-12-24  Bruno Haible  <bruno@clisp.org>
92057
92058         * MODULES.txt: Update according to m4/ changes.
92059
92060         Module gettext.
92061         * config.rpath: New file, from gettext-0.11.5.
92062
92063         * modules/*: New module descriptions.
92064         * gnulib-tool: New file.
92065         * MODULES.html.sh: New file.
92066
92067 2002-12-21  Karl Berry  <karl@gnu.org>
92068
92069         * doc/fdl.texi: update to version 1.2.
92070
92071 2002-12-19  Karl Berry  <karl@gnu.org>
92072
92073         * config/config.guess: update from prep.
92074
92075 2002-12-18  Bruno Haible  <bruno@clisp.org>
92076
92077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92078         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92079
92080 2002-12-17  Bruno Haible  <bruno@clisp.org>
92081
92082         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92083         stdlib.h, string.h.
92084
92085 2002-12-17  Bruno Haible  <bruno@clisp.org>
92086
92087         * lib/canon-host.c (strdup): Remove unused declaration.
92088
92089         * lib/fsusage.c: Include full_read.h.
92090         (get_fs_usage): Use full_read instead of safe_read.
92091
92092         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92093
92094 2002-12-12  Karl Berry  <karl@gnu.org>
92095
92096         * config/config.guess: update from prep.
92097
92098 2002-12-11  Bruno Haible  <bruno@clisp.org>
92099
92100         * m4/setenv.m4: New file, from gettext-0.11.5.
92101
92102 2002-12-11  Bruno Haible  <bruno@clisp.org>
92103
92104         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92105         not unsetenv().
92106         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92107         modifications:
92108
92109         2002-12-11  Bruno Haible  <bruno@clisp.org>
92110
92111                 * setenv.c (alloca): Fall back to malloc.
92112                 (freea): New macro.
92113                 (setenv): Use freea() to free memory allocated with alloca().
92114
92115         2002-11-13  Bruno Haible  <bruno@clisp.org>
92116
92117                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92118                 function declarations.
92119                 * unsetenv.c (unsetenv): Likewise.
92120
92121         2002-03-04  Bruno Haible  <bruno@clisp.org>
92122
92123                 Portability to AIX 4.3.3.
92124                 * unsetenv.c: New file, extracted from setenv.c.
92125                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92126
92127         2001-12-20  Bruno Haible  <bruno@clisp.org>
92128
92129                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92130                 use malloc instead. For SunOS 4.
92131
92132         2001-12-11  Bruno Haible  <bruno@clisp.org>
92133
92134                 * setenv.c: Declare alloca.
92135                 (compar_fn_t): New typedef.
92136                 (KNOWN_VALUE, STORE_VALUE): Use it.
92137
92138         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92139         setenv.h.
92140
92141 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92142
92143         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92144         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92145         Choose values that are less likely to collide with system fnmatch
92146         options.
92147         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92148         defined (e.g., a pure POSIX system).
92149         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92150         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92151
92152 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92153
92154         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92155         a pain in practice to deal with generated m4 files.  This change
92156         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92157
92158         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92159         and jm-glibc-io.m4, as they are no longer a special case.
92160         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92161         kludge and the auto-generation stuff.  Check only whether the
92162         functions are declared, not whether they exist, since older hosts
92163         that don't declare the functions can't use the optimization anyway.
92164
92165 2002-12-06  Jim Meyering  <jim@meyering.net>
92166
92167         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92168
92169         Merge in changes from libc's misc/error.c, in preparation
92170         for the merge of gnulib's changes back into libc.
92171
92172         * lib/error.c (_): Define only if not already defined.
92173         Move definition to follow all #include directives.
92174         Include unlocked-io.h only if !_LIBC.
92175         [_LIBC]: Include <libio/libioP.h>.
92176         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92177         (fflush): Tweak definition to use INTUSE.
92178         (putc): Define.
92179
92180 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92181
92182         * lib/alloca.c [defined emacs]: Include "lisp.h".
92183         (xalloc_die) [defined emacs]: New macro.
92184         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92185         [! defined emacs]: Include <xalloc.h>.
92186         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92187         (pointer): Typedef to POINTER_TYPE *.
92188         (malloc): Remove decl; we now always use xmalloc.
92189         (alloca): Use old-style definition, since Emacs needs this.
92190         Check for arithmetic overflow when computing combined size.
92191
92192 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92193
92194         Do not generate unlocked-io.h automatically, since it's easier to
92195         maintain it by hand.
92196
92197         * lib/unlocked-io.h: New file, from GNU diffutils,
92198         but with proper copyright notice and attribution.
92199         * lib/gen-uio: Remove.
92200         * lib/Makefile.am: Add copyright notice.
92201         (libfetish_a_SOURCES): Add unlocked-io.h.
92202         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92203         (DISTCLEANFILES, io_functions): Remove macros.
92204         (EXTRA_DIST): Remove gen_uio.
92205         (unlocked-io.h): Remove rule.
92206
92207 2002-12-04  Jim Meyering  <jim@meyering.net>
92208
92209         Reflect the fact that stat.c and lstat.c are no longer generated.
92210         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92211         (DISTCLEANFILES): Likewise.
92212         (EXTRA_DIST): Likewise.
92213         (all_local): Don't depend on stat.c or lstat.c.
92214         (stat.c, lstat.c): Remove rules.
92215         (EXTRA_DIST): Remove xstat.in.
92216
92217         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92218         * lib/stat.c: New file.  Contents mostly from xstat.in.
92219         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92220         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92221
92222         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92223         too.
92224         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92225
92226 2002-12-03  Jim Meyering  <jim@meyering.net>
92227
92228         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92229         but not semantics, to minimize the differences between these two files.
92230         (safe_read): Change comment to mention SAFE_READ_ERROR.
92231
92232         * lib/safe-read.c (IS_EINTR): Define.
92233         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92234
92235 2002-12-02  Jim Meyering  <jim@meyering.net>
92236
92237         * lib/safe-read.c (EINTR): Define.
92238         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92239         (INT_MAX): Provide fallback.
92240         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92241
92242         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92243
92244 2002-12-02  Bruno Haible  <bruno@clisp.org>
92245
92246         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92247         Define, taken from safe-read.c.
92248         (INT_MAX): Provide fallback.
92249         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92250         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92251
92252         * lib/safe-read.c (EINTR): Remove definition.
92253         (safe_read): Don't use EINTR if it is absent.
92254
92255 2002-12-01  Jim Meyering  <jim@meyering.net>
92256
92257         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92258         zero.
92259         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92260
92261 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92262
92263         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92264         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92265         with `if (! (value < limit)) abort ();', for readability.
92266
92267 2002-11-26  Karl Berry  <karl@gnu.org>
92268
92269         * lib/strdup.c: copy from libc again, with jim's ok.
92270         * lib/.cppi-disable: re-add strdup.c
92271
92272 2002-11-25  Karl Berry  <karl@gnu.org>
92273
92274         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92275         instead of "strtol.c".
92276
92277 2002-11-25  Karl Berry  <karl@gnu.org>
92278
92279         * config/install-sh: update from automake for variable quoting, $0 in
92280         error msgs, etc.
92281
92282         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92283         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92284         entry.
92285
92286 2002-11-25  Jim Meyering  <jim@meyering.net>
92287
92288         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92289
92290 2002-11-24  Karl Berry  <karl@gnu.org>
92291
92292         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92293         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92294
92295 2002-11-24  Jim Meyering  <jim@meyering.net>
92296
92297         Update from coreutils:
92298
92299         * lib/mktime.c: Merge in changes from libc.
92300
92301         Avoid a link-time failure on some Linux systems.
92302         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92303         (otherwise).
92304         (__mon_yday): Declare with the STATIC attribute.
92305         (__mktime_internal): Likewise.
92306         Based on a report from Greg Schafer.
92307
92308 2002-11-23  Jim Meyering  <jim@meyering.net>
92309
92310         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92311         Use `unsigned', not `int', as type of index.
92312
92313         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92314
92315         * lib/fsusage.c: Remove unneeded parentheses around operands of
92316         `defined'.
92317
92318 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92319
92320         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92321         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92322         so that we can be included first.
92323         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92324         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92325         No need to include stddef.h or sys/types.h any more.
92326         Surround local include files with "", not "<>".
92327         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92328         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92329         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92330         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92331         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92332         (ISPRINT): Remove; no longer needed now that we assume C89.
92333
92334         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92335         Preserve errno.
92336
92337         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92338         quotearg_char): Use SIZE_MAX rather than
92339         (size_t) -1 when we are talking about "infinity".
92340
92341         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92342
92343 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92344
92345         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92346         hint that one should use `if (! x) abort ();' rather than `assert
92347         (x);', and anyway it's one less thing to worry about configuring.
92348         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92349         hash_rehash, hash_insert): Use abort rather than assert.
92350
92351 2002-11-22  Bruno Haible  <bruno@clisp.org>
92352
92353         * lib/safe-read.h: Assume C89. Add comments.
92354         (safe_read): Change return type to size_t.
92355         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92356         byte counts > SSIZE_MAX correctly.
92357         * lib/safe-write.h: New file.
92358         * lib/safe-write.c: New file.
92359         * lib/full-read.h: New file.
92360         * lib/full-read.c: New file.
92361         * lib/full-write.h: Assume C89. Add comments.
92362         * lib/full-write.c: Include safe-write.h.
92363         (full_write): Rewritten to use safe_write.
92364         Suggested by Jim Meyering and Paul Eggert.
92365
92366 2002-11-21  Jim Meyering  <jim@meyering.net>
92367
92368         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92369
92370         Merge in changes from the coreutils.
92371
92372         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92373         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92374         <stdint.h>.
92375         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92376         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92377         int.  Work more efficiently if X is the same width as uintmax_t.
92378         Do not compare X to -1, to avoid bogus compiler warning.
92379         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92380         Don't assume that f_frsize and f_bsize are the same type.
92381
92382         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92383         warning on FreeBSD.
92384
92385         * lib/makepath.c (make_path): Restore umask *before* creating the final
92386         component.
92387         (make_path): Minor reformatting.
92388
92389         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92390         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92391         HAVE_MALLOC/HAVE_REALLOC.
92392
92393         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92394         dummy ones.  At least on GNU/Linux systems, `auto' means something
92395         else.
92396         From Michael Stone.
92397
92398 2002-11-21  Bruno Haible  <bruno@clisp.org>
92399
92400         Remove case insensitive option matching.
92401         * lib/argmatch.h (argcasematch): Remove declaration.
92402         (ARGCASEMATCH): Remove macro.
92403         (__xargmatch_internal): Remove case_sensitive argument.
92404         (XARGMATCH): Update.
92405         (XARGCASEMATCH): Remove macro.
92406         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92407         case_sensitive argument.
92408         (argcasematch): Remove function.
92409         (__xargmatch_internal): Remove case_sensitive argument.
92410         (main): Use XARGMATCH instead of XARGCASEMATCH.
92411
92412         * lib/xmalloc.c: Change compile-time error message. Add comment about
92413         required autoconf version.
92414
92415 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92416
92417         Merge argmatch cleanups from Bison.  Assume C89.
92418
92419         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92420         Include stdlib.h, for EXIT_FAILURE.
92421         Always include <string.h>, since we assume C89.
92422         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92423         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92424         Include <stddef.h> instead, since it's all we need for size_t.
92425         (PARAMS): Remove.  All uses removed.
92426         (ARRAY_CARDINALITY): Do not bother to #undef.
92427         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92428         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92429         Remove unnecessary parentheses.
92430         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92431         Insert necessary parentheses.
92432         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92433         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92434
92435 2002-11-19  Bruno Haible  <bruno@clisp.org>
92436
92437         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92438         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92439
92440         * lib/mbswidth.h (PARAMS): Remove macro.
92441         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92442         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92443
92444         * lib/gcd.h (PARAMS): Remove macro.
92445         (gcd): Use ANSI C function declarations.
92446         * lib/gcd.c (gcd): Likewise.
92447
92448 2002-11-15  Bruno Haible  <bruno@clisp.org>
92449
92450         * lib/strcspn.c: Include <stddef.h>.
92451         (strcspn): Use ANSI C function declaration. Change return type to
92452         size_t. Use NULL.
92453         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92454         (strpbrk): Use NULL.
92455         * lib/strpbrk.h (PARAMS): Remove macro.
92456         (strpbrk): Use ANSI C function declaration.
92457         * lib/strstr.c: Don't include <sys/types.h>.
92458         * lib/strstr.h (PARAMS): Remove macro.
92459         (strstr): Use ANSI C function declarations.
92460
92461 2002-11-14  Karl Berry  <karl@gnu.org>
92462
92463         * config/mkinstalldirs: `do' on separate line, instead of
92464         `for var; do'.
92465
92466 2002-11-06  Bruno Haible  <bruno@clisp.org>
92467
92468         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92469         * lib/gcd.c (gcd): Likewise.
92470
92471 2002-11-05  Bruno Haible  <bruno@clisp.org>
92472
92473         * lib/gcd.h: New file, from gettext-0.11.5.
92474         * lib/gcd.c: New file, from gettext-0.11.5.
92475
92476 2002-11-05  Bruno Haible  <bruno@clisp.org>
92477
92478         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92479         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92480         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92481         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92482
92483         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92484         <libintl.h>.
92485         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92486         <libintl.h>.
92487
92488         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92489         * lib/human.c: Include gettext.h instead of <libintl.h>.
92490         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92491         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92492         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92493         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92494         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92495         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92496         (textdomain): Remove definition.
92497         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92498
92499         * lib/long-options.c: Remove include of <libintl.h> and definition of
92500         _.
92501         * lib/same.c: Remove include of <libintl.h> and definition of _.
92502
92503 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92504
92505         * lib/config.charset: A few additions for Solaris.
92506
92507 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92508
92509         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92510         * lib/localcharset.c (locale_charset): Declare as extern "C".
92511
92512 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92513
92514         * lib/config.charset: msdos in uk_UA uses CP1125.
92515
92516 2002-11-04  Bruno Haible  <bruno@clisp.org>
92517
92518         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92519         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92520         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92521         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92522         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92523
92524 2002-11-04  Bruno Haible  <bruno@clisp.org>
92525
92526         * lib/localcharset.c (locale_charset): Don't return an empty string.
92527
92528 2002-11-04  Bruno Haible  <bruno@clisp.org>
92529
92530         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92531         aliases.
92532
92533 2002-11-04  Bruno Haible  <bruno@clisp.org>
92534
92535         * lib/config.charset: Update for newest glibc. Add canonical names
92536         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92537
92538 2002-11-04  Bruno Haible  <bruno@clisp.org>
92539
92540         * lib/config.charset: Add support for NetBSD.
92541
92542 2002-11-04  Bruno Haible  <bruno@clisp.org>
92543
92544         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92545
92546 2002-11-01  Bruno Haible  <bruno@clisp.org>
92547
92548         * configure.in: Add AC_CONFIG_AUX_DIR call.
92549         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92550         test/Makefile.
92551         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92552
92553 2002-09-28  Karl Berry  <karl@gnu.org>
92554
92555         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92556         installed automake until the next release, since changes have been
92557         made.
92558
92559 2002-09-25  Karl Berry  <karl@gnu.org>
92560
92561         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92562         * lib/getopt*: copy from libc/posix.
92563         * lib/gettext.h: copy from gettext.
92564         * lib/.cppi-disable: add strdup.c, gettext.h.
92565
92566 2002-09-25  Karl Berry  <karl@gnu.org>
92567
92568         * config/srclist.txt: enable gettext.h check.
92569         * config/config.{guess,sub}: update from prep.
92570         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92571                 from automake 1.6.3.
92572         See srclist*.
92573
92574 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92575
92576         * regex.c (PATFETCH): Remove the translating fetch.
92577         (PATFETCH_RAW): Rename to PATFETCH.
92578         (set_image_of_range): New fun.
92579         (SET_RANGE_TABLE_WORK_AREA): Use it.
92580         (regex_compile): Don't translate the pattern chars so eagerly.
92581         Only do it when inserting an `exactn' bytecode or when handling
92582         a char-range.
92583         (mutually_exclusive_p): Avoid empty statement.
92584
92585 2002-07-06  Jim Meyering  <meyering@lucent.com>
92586
92587         * m4/README: Don't mention Makefile.am.in.
92588         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92589
92590 2002-07-01  Jim Meyering  <meyering@lucent.com>
92591
92592         * lib/c-stack.c: Include sys/time.h.
92593         From Volker Borchert.
92594
92595 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92596
92597         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92598
92599 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92600
92601         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92602         New macro.  Use it uniformly instead of
92603         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92604         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92605         reported by Vin Shelton.
92606
92607 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92608
92609         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92610         Do not assume SA_SIGINFO behavior.
92611         Bug reported by Jim Meyering on NetBSD 1.5.2.
92612
92613 2002-06-22  Jim Meyering  <meyering@lucent.com>
92614
92615         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92617
92618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92619         now that configure.ac uses AC_GNU_SOURCE.
92620         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92621         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92622
92623         Update to latest tools.  Suggestions from Paul Eggert.
92624         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92625         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92626         * m4/fnmatch.m4: Likewise.
92627         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92628         to AC_HEADER_STDBOOL
92629
92630 2002-06-22  Jim Meyering  <meyering@lucent.com>
92631
92632         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92633         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92634
92635 2002-06-22  Jim Meyering  <meyering@lucent.com>
92636
92637         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92638
92639         * lib/exitfail.c, exitfail.h: Likewise.
92640         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92641
92642         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92643         of fnmatch.h.
92644         (EXTRA_DIST): Add fnmatch_loop.c.
92645         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92646
92647         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92648         * lib/fnmatch.c: Update from diffutils-2.8.2.
92649         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92650         * lib/fnmatch.h: Remove file.
92651
92652 2002-06-21  Jim Meyering  <meyering@lucent.com>
92653
92654         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92655         * m4/mbrtowc.m4: Likewise.
92656
92657         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92658         * m4/mbswidth.m4: Reflect name change:
92659         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92661
92662         * m4/lib-link.m4: Update from gettext-0.11.2.
92663         * m4/gettext.m4: Likewise.
92664
92665         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92666         From Alfred M. Szmidt.
92667
92668 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/file-type.h: Report an error if neither S_ISREG nor
92671         S_IFREG is defined, instead of using a test specific to glibc
92672         2.2.  This should be safe, since POSIX requires S_ISREG and
92673         Unix Version 7 had S_IFREG.  We don't need to check for
92674         <sys/types.h> since we don't use any symbols that it defines.
92675
92676 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92677
92678         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92679         $@-t, so that each temporary file name is unique and valid in the first
92680         8 characters, for operation under DOS.
92681
92682 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92683
92684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92685
92686 2002-06-15  Jim Meyering  <meyering@lucent.com>
92687
92688         Work even with DJGPP 2.03, which lacks support for symlinks.
92689         From Richard Dawe.
92690         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92691         is defined.
92692         * lib/lchown.c (S_ISLNK): Likewise.
92693
92694 2002-06-15  Jim Meyering  <meyering@lucent.com>
92695
92696         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92697         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92698         have been included before this file.
92699
92700 2002-06-14  Jim Meyering  <meyering@lucent.com>
92701
92702         * lib/file-type.h: Use the version from diffutils-2.8.2.
92703         * lib/file-type.c: Likewise.
92704
92705 2002-06-07  Jim Meyering  <meyering@lucent.com>
92706
92707         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92708         They're needed at least for NetBSD 1.5.2.
92709         ($statxfs_includes): Include those same headers.
92710         ($statxfs_includes): Include sys/vfs.h if available.
92711         ($statxfs_includes): Likewise for sys/statvfs.h.
92712         Check for the following members in both structs statfs and statvfs:
92713         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92714
92715 2002-06-01  Jim Meyering  <meyering@lucent.com>
92716
92717         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92718         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92719
92720 2002-05-28  Jim Meyering  <meyering@lucent.com>
92721
92722         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92723         Reported by Volker Borchert.
92724
92725 2002-05-27  Jim Meyering  <meyering@lucent.com>
92726
92727         Fix a problem seen only on nonconforming systems whereby ls.c's
92728         use of localtime, and then of gettimeofday would cause trouble:
92729         the localtime call used to initialize rpl_gettimeofday's save
92730         mechanism would clobber ls's current local time information so
92731         that in any long listing the first file would always be listed
92732         with date 1970-01-01.  Analysis by Volker Borchert.
92733
92734         * lib/gettimeofday.c (localtime): Undefine.
92735         (rpl_localtime): New function.
92736
92737 2002-05-27  Jim Meyering  <meyering@lucent.com>
92738
92739         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92740         localtime.
92741
92742         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92743         use the replacement function; it wouldn't resolve at link time.
92744         Reported by Volker Borchert.
92745
92746 2002-05-22  Jim Meyering  <meyering@lucent.com>
92747
92748         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92749         file-type.h.
92750         * lib/file-type.h: New file.
92751         * lib/file-type.c (file_type): New file/function.  Extracted from
92752         diffutils.
92753
92754 2002-04-30  Jim Meyering  <meyering@lucent.com>
92755
92756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92757
92758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92759
92760         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92761
92762 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92763
92764         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92765         Do not check for alloca.h (no longer used) or stdbool.h (was never
92766         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92767
92768 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92769
92770         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92771
92772 2002-04-29  Jim Meyering  <meyering@lucent.com>
92773
92774         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92775         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92776         Use AC_FUNC_STRNLEN here instead.
92777
92778         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92779         With autoconf-2.53a, it's part of AC_PROG_CC.
92780
92781 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92782
92783         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92784         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92785
92786 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92787
92788         * lib/sig2str.h, lib/sig2str.c: New files.
92789         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92790
92791 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92792
92793         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92794         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92795         of 127, since 64 is the largest conceivable number for ancient
92796         nonstandard hosts.
92797         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92798
92799 2002-04-28  Jim Meyering  <meyering@lucent.com>
92800
92801         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92802
92803 2002-04-24  Jim Meyering  <meyering@lucent.com>
92804
92805         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92806         (jm_PREREQ): Use it.
92807
92808         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92809         mach/mach.h fcntl.h.
92810         Check for this function: setlocale.
92811
92812 2002-04-24  Jim Meyering  <meyering@lucent.com>
92813
92814         * lib/gettext.h: New file, from Gettext.
92815         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92816         (libfetish_a_SOURCES): Add gettext.h.
92817
92818 2002-04-16  Jim Meyering  <meyering@lucent.com>
92819
92820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92821         ut_pid, ut_id, ut_exit.
92822
92823 2002-04-16  Jim Meyering  <meyering@lucent.com>
92824
92825         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92826         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92827         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92828
92829 2002-04-12  Jim Meyering  <meyering@lucent.com>
92830
92831         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92832         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92833         existence of the getmntinfo function.  Needed for Darwin 5.3.
92834
92835         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92836         This is necessary at least on Darwin 5.3.
92837
92838         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92839         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92840         strnlen.o in the library, and that makes some versions of ranlib
92841         object.
92842
92843 2002-04-12  Jim Meyering  <meyering@lucent.com>
92844
92845         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92846
92847 2002-04-09  Jim Meyering  <meyering@lucent.com>
92848
92849         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92850         to be more precise.  Rather than saying we're checking whether the
92851         function `works', say what we're testing.
92852         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92853         Reported by Bruno Haible.
92854
92855 2002-03-10  Jim Meyering  <meyering@lucent.com>
92856
92857         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92858         Suggestion from Santiago Vila.
92859
92860 2002-03-08  Jim Meyering  <meyering@lucent.com>
92861
92862         * lib/rename.c: Mention that this wrapper is needed also on
92863         mips-dec-ultrix4.4 systems.
92864
92865 2002-03-02  Jim Meyering  <meyering@lucent.com>
92866
92867         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92868         not HAVE_CLOCK_SETTIME.
92869
92870 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92871
92872         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92873         Check for clock_settime.
92874
92875 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92876
92877         * lib/nanosleep.h: Rename to....
92878         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92879
92880         * lib/gettime.c: New file.
92881         * lib/settime.c: New file.
92882         * lib/stime.c: Remove.
92883
92884         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92885         timespec.h.  Remove nanosleep.h.
92886
92887 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92888
92889         * m4/acl.m4: New file.
92890         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92891         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92892
92893 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92894
92895         * lib/acl.c, lib/acl.h: New files.
92896         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92897
92898 2002-02-24  Jim Meyering  <meyering@lucent.com>
92899
92900         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92901         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92902         cause trouble.  Reported by Nelson Beebe.
92903
92904 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92905
92906         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92907         compilers that don't know that xalloc_die never returns.
92908
92909 2002-02-20  Jim Meyering  <meyering@lucent.com>
92910
92911         * lib/getdate.c: Regenerate using bison-1.33.
92912
92913 2002-02-17  Jim Meyering  <meyering@lucent.com>
92914
92915         * config/config.guess (main): Don't use `head -1'; it's no longer
92916         portable. Use `sed 1q' instead.
92917
92918 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92919
92920         * m4/codeset.m4: Upgrade to gettext-0.11.
92921         * m4/gettext.m4: Upgrade to gettext-0.11.
92922         * m4/glibc21.m4: Upgrade to gettext-0.11.
92923         * m4/iconv.m4: Upgrade to gettext-0.11.
92924         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92925         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92926         * m4/lib-ld.m4: New file, from gettext-0.11.
92927         * m4/lib-link.m4: New file, from gettext-0.11.
92928         * m4/lib-prefix.m4: New file, from gettext-0.11.
92929         * m4/progtest.m4: Upgrade to gettext-0.11.
92930
92931 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92932
92933         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92934         (jm_PREREQ): Use it.
92935
92936 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92937
92938         * lib/posixver.c, lib/posixver.h: New files.
92939         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92940
92941 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92942             Bruno Haible  <bruno@clisp.org>
92943
92944         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92945         (fwrite_success_callback): New declaration.
92946         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92947         print_unicode_char. Call failure callback instead of error.
92948         (fwrite_success_callback): New function.
92949         (exit_failure_callback): New function.
92950         (fallback_failure_callback): New function.
92951         (print_unicode_char): Call unicode_to_mb.
92952
92953 2002-01-26  Jim Meyering  <meyering@lucent.com>
92954
92955         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92956         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92957
92958 2002-01-26  Jim Meyering  <meyering@lucent.com>
92959
92960         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92961
92962 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92963
92964         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92965
92966 2002-01-22  Jim Meyering  <meyering@lucent.com>
92967
92968         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92969         Otherwise, some versions of automake would omit the rule that makes
92970         Makefile from Makefile.in.
92971
92972 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92973
92974         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92975         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92976         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92977         (memcoll): Set errno to zero if there is no error.
92978
92979         * lib/quotearg.c (quotearg_buffer_restyled):
92980         Fix bug with quoting buffers containing NUL when backslashing escapes.
92981         This bug was exposed by the other changes in this patch.
92982         (quotearg_n_options): New arg ARGSIZE.
92983         All callers changed.
92984         (quoting_options_from_style): New function.
92985         (quotearg_n_style): Use it.
92986         (quotearg_n_style_mem): New function.
92987
92988         * lib/quotearg.h (quotearg_n_style_mem): New function.
92989
92990 2002-01-19  Jim Meyering  <meyering@lucent.com>
92991
92992         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92993         Remove useless quotes: DF_PROG="df".
92994         * m4/strnlen.m4: New file.
92995
92996 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92997
92998         * lib/backupfile.c (ISDIGIT): Comment fix.
92999         * lib/getdate.y (ISDIGIT): Likewise.
93000         * lib/posixtm.c (ISDIGIT, year): Likewise.
93001         * lib/strverscmp.c (ISDIGIT): Likewise.
93002         * lib/userspec.c (ISDIGIT): Likewise.
93003
93004 2002-01-16  Jim Meyering  <meyering@lucent.com>
93005
93006         * lib/getdate.y: Add three semicolons, each just before a closing
93007         brace. Bison (as of version 1.31) no longer papers over that mistake.
93008
93009 2002-01-05  Jim Meyering  <meyering@lucent.com>
93010
93011         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93012
93013 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93014
93015         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93016         not silently exit merely because the output buffer happens to
93017         have nothing pending.
93018
93019 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93020
93021         See the big note in ../ChangeLog.
93022         * lib/human.c (suffixes): Prefer K to k for 1024.
93023         (generate_suffix_backwards): New function.
93024         (human_readable_inexact): Use it.
93025         * lib/xstrtol.c (__xstrtol): If there is no number but there
93026         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93027         Accept 'K' as well as 'k'.
93028
93029 2001-12-15  Jim Meyering  <meyering@lucent.com>
93030
93031         * lib/regex.h (__restrict_arr): Update from libc.
93032
93033         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93034         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93035         (STREQ): Define.
93036
93037 2001-12-14  Jim Meyering  <meyering@lucent.com>
93038
93039         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93040         Suggestion from Bruno Haible.
93041
93042 2001-12-10  Jim Meyering  <meyering@lucent.com>
93043
93044         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93045         xrealloc, Instead, include "xalloc.h".
93046         (initbuffer): Don't cast xmalloc return value to char*.
93047         (readline): Reword comment.
93048         Don't cast xrealloc return value to char*
93049         Return NULL, not 0.
93050
93051 2001-12-09  Jim Meyering  <meyering@lucent.com>
93052
93053         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93054         about `signed and unsigned type in conditional expression'.
93055         * lib/posixtm.c (posix_time_parse): Likewise.
93056
93057         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93058
93059         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93060         to avoid a pedantic warning.
93061
93062         * lib/getstr.c: Don't include assert.h.
93063         (getstr): Remove warning-evoking assertions.
93064         Return -1 if offset parameter is out of bounds.
93065         Change the type of a local from int to size_t.
93066
93067         * lib/strftime.c (my_strftime_localtime_r): Include this function
93068         definition in the `#if ! HAVE_TM_GMTOFF' block.
93069
93070         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93071         Include xalloc.h instead.
93072
93073 2001-12-02  Jim Meyering  <meyering@lucent.com>
93074
93075         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93076         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93077         included.
93078
93079         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93080         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93081
93082 2001-11-30  Akim Demaille  <akim@epita.fr>
93083
93084         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93085         before being defined.
93086
93087 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93088
93089         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93090         First arg is int, not unsigned.
93091         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93092         (SIZE_MAX, UINT_MAX): New macros.
93093         (quotearg_n_options): Abort if N is negative.
93094         Avoid overflow check on hosts where size_t is 64 bits and int
93095         is 32 bits, as overflow is impossible there.
93096         Fix off-by-one typo that caused unnecessary reallocation.
93097
93098 2001-11-27  Jim Meyering  <meyering@lucent.com>
93099
93100         * lib/tempname.c: Merge with version from libc.
93101         * lib/regex.c: Likewise.
93102
93103         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93104         systems for which STDC_HEADERS is 0, it was not included, resulting in
93105         a warning about an integer-to-pointer conversion problem with getenv.
93106         Reported by Volker Borchert.
93107
93108 2001-11-26  Jim Meyering  <meyering@lucent.com>
93109
93110         * lib/gtod.h: Remove file.
93111         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93112         * lib/gettimeofday.c: Don't include gtod.h.
93113         (GTOD_init): Remove function.
93114         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93115         Suggestion from Volker Borchert.
93116
93117 2001-11-23  Jim Meyering  <meyering@lucent.com>
93118
93119         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93120         it.
93121         * lib/hash.c (struct hash_table): Define it here instead.
93122
93123 2001-11-22  Jim Meyering  <meyering@lucent.com>
93124
93125         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93126
93127 2001-11-20  Jim Meyering  <meyering@lucent.com>
93128
93129         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93130         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93131
93132 2001-11-19  Jim Meyering  <meyering@lucent.com>
93133
93134         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93135         directory.  Use "conftestXXXXXX" as the template.
93136         Suggestion from Paul Eggert.
93137
93138         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93139         immediately, so the test doesn't mistakenly hit the max-open-files
93140         limit.
93141
93142 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93143
93144         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93145         (TEMPORARIES): New macro.
93146         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93147         removes an artificial limitation (e.g. HP-UX 10.20, where
93148         TMP_MAX is 17576).
93149
93150 2001-11-18  Jim Meyering  <meyering@lucent.com>
93151
93152         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93153
93154 2001-11-18  Jim Meyering  <meyering@lucent.com>
93155
93156         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93157         on SunOS 4.
93158
93159         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93160         files will be created before anything else.
93161
93162 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93163
93164         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93165         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93166
93167 2001-11-17  Jim Meyering  <meyering@lucent.com>
93168
93169         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93170         Prompted by a report from Bob Proulx.
93171
93172         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93173         Instead, require UTILS_FUNC_MKSTEMP.
93174
93175 2001-11-17  Jim Meyering  <meyering@lucent.com>
93176
93177         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93178         Now, that's done as part of AC_FUNC_STRTOD.
93179
93180 2001-11-17  Jim Meyering  <meyering@lucent.com>
93181
93182         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93183         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93184         rather than group writable.  Patch by Juan F. Codagnone.
93185
93186         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93187         xrealloc, Instead, include "xalloc.h".
93188
93189         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93190         Remove explicit declarations of xmalloc, xrealloc,
93191         and xstrdup.  Instead, include "xalloc.h".
93192
93193         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93194         unlocked-io.h.
93195         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93196         Likewise.
93197         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93198
93199         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93200         Reported by Padraig Brady.
93201
93202         * lib/mkstemp.c: #undef mkstemp.
93203         Include config.h.
93204         (rpl_mkstemp): Rename from mkstemp.
93205         Protoize.
93206
93207 2001-11-16  Jim Meyering  <meyering@lucent.com>
93208
93209         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93210         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93211         determine the amount of total physical memory, use pstat_getstatic.
93212         HPUX-11 doesn't define _SC_PHYS_PAGES.
93213         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93214         If sysconf couldn't be used to determine the amount of available
93215         physical memory, use both pstat_getstatic and pstat_getdynamic.
93216         Based on a patch from Bob Proulx.
93217
93218 2001-11-10  Jim Meyering  <meyering@lucent.com>
93219
93220         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93221         (jm_PREREQ): Use it.
93222
93223 2001-11-09  Jim Meyering  <meyering@lucent.com>
93224
93225         * m4/jm-macros.m4: Require autoconf-2.52f.
93226         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93227         Use these AC_-prefixed names, not the AM_-prefixed ones.
93228
93229         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93230
93231 2001-11-05  Jim Meyering  <meyering@lucent.com>
93232
93233         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93234
93235 2001-11-04  Jim Meyering  <meyering@lucent.com>
93236
93237         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93238         $DEFS.
93239
93240 2001-11-03  Jim Meyering  <meyering@lucent.com>
93241
93242         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93243         of AC_DEFUN.
93244
93245         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93246         know the name of the variable in the macro definition.
93247
93248 2001-11-03  Jim Meyering  <meyering@lucent.com>
93249
93250         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93251         in argmatch_to_argument call.
93252
93253         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93254         argument.
93255
93256         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93257         e.g., a fault due to an attempt to free a NULL pointer.
93258
93259 2001-11-01  Jim Meyering  <meyering@lucent.com>
93260
93261         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93262         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93263
93264 2001-11-01  Jim Meyering  <meyering@lucent.com>
93265
93266         * lib/dirfd.c, lib/dirfd.h: New files.
93267         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93268
93269         * lib/hash.c (hash_print) [TESTING]: Clean up.
93270
93271 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93272
93273         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93274         to avoid a warning if -Wall.
93275
93276 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93277
93278         * README: New file
93279         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93280         (per RMS's instructions, this is now the canonical source)
93281         * lgpl/, gpl/: New directories.
93282
93283 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93284
93285         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93286
93287 2001-10-21  Jim Meyering  <meyering@lucent.com>
93288
93289         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93290         this code would end up calling gettext even in packages built
93291         with --disable-nls.
93292         * lib/getopt.c (_): Likewise.
93293         * lib/regex.c (_): Likewise.
93294
93295 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93296
93297         * m4/error.m4 (jm_PREREQ_ERROR):
93298         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93299         AC_FUNC_STRERROR_R does that.
93300         Check for strerror declaration.
93301
93302         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93303         are supposed to have them these days.
93304         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93305         Merge changes from latest Autoconf CVS.
93306         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93307         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93308         POSIX decided to standardize on the int flavor of strerror_r.
93309
93310 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93311
93312         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93313         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93314         Use strerror_r that is only a macro, even if it is not a function.
93315         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93316         (private_strerror): Use prototypes, not old-style function definition.
93317         (print_errno_message): New function.
93318         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93319         char*-flavored one.
93320         (error_tail, error, error_at_line): Use it.
93321
93322 2001-10-11  Jim Meyering  <meyering@lucent.com>
93323
93324         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93325         and quote_n (1, ... to avoid clobbering a buffer.
93326
93327 2001-10-05  Jim Meyering  <meyering@lucent.com>
93328
93329         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93330         hash-pjw.h.
93331         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93332         * lib/hash-pjw.h: New file.
93333
93334 2001-09-30  Jim Meyering  <meyering@lucent.com>
93335
93336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93337         `struct fsstat' has the `f_fstypename' member.
93338         Use that to define FS_TYPE, which is now used to make
93339         the getfsstat link test tighter.
93340
93341 2001-09-30  Jim Meyering  <meyering@lucent.com>
93342
93343         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93344         Include <sys/ucred.h>, for Apple Darwin.
93345         Include sys/mount.h and sys/fs_types.h only if available.
93346         (FS_TYPE): Define.
93347         (read_filesystem_list): Use FS_TYPE.
93348
93349 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93350
93351         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93352         a boolean context.
93353
93354 2001-09-29  Jim Meyering  <meyering@lucent.com>
93355
93356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93357         [one-argument getmntent function]): Include stdio.h before mntent.h.
93358         SunOS 4.1.x needs it for the declaration of `FILE'.
93359         Patch by Volker Borchert.
93360
93361         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93362         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93363         sys/fs_types.h, and make the link-test for getfsstat guard #include
93364         directives with appropriate #if HAVE_*_H tests so that we can
93365         detect getfsstat on Apple Darwin1.3.7 systems.
93366         Reported by Nelson Beebe.
93367         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93368
93369 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93370
93371         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93372         #defines strtoimax.  Also treat the other strto* functions
93373         like strtoimax.
93374
93375         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93376         Check for strtoul and strtoumax,
93377         as those declarations are made even in the signed case.
93378         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93379         Likewise, for strtol and strtoimax.
93380
93381 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93382
93383         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93384         #defines strtoimax.  Also treat the other strto* functions
93385         like strtoimax.
93386
93387         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93388         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93389         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93390
93391 2001-09-26  Jim Meyering  <meyering@lucent.com>
93392
93393         Most macros in unlocked-io.h had the wrong number of arguments.
93394         * lib/gen-uio: New script.
93395         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93396         * lib/unlocked-io.hin: Remove file.
93397         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93398         rather than trying to embed it here.
93399         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93400         Reported by Padraig Brady.
93401
93402 2001-09-25  Volker Borchert  <bt@teknon.de>
93403
93404         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93405         `result'.
93406
93407 2001-09-24  Jim Meyering  <meyering@lucent.com>
93408
93409         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93410
93411 2001-09-23  Jim Meyering  <meyering@lucent.com>
93412
93413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93414         instead of the mere test for existence of mntent.h.  The latter
93415         would get a false-positive on AIX 3.4 systems.
93416         In the outer getmntent if-block, don't die if neither of the getmntent
93417         tests succeeds.  Instead, just fall through and continue with the
93418         remaining tests.
93419
93420 2001-09-23  Jim Meyering  <meyering@lucent.com>
93421
93422         * lib/mountlist.c: Remove useless parentheses in #if directives.
93423         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93424         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93425
93426 2001-09-22  Jim Meyering  <meyering@lucent.com>
93427
93428         * m4/gettext.m4: New file.  From gettext.
93429         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93430         * m4/progtest.m4: Likewise
93431         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93432         * m4/glibc21.m4: Likewise.
93433
93434         * m4/libintl.m4: Remove.  No longer used.
93435
93436 2001-09-22  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/localcharset.c: Update from latest gettext.
93439         * lib/config.charset: Likewise.
93440
93441 2001-09-20  Jim Meyering  <meyering@lucent.com>
93442
93443         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93444         strtoimax.
93445         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93446         strtoumax.
93447
93448 2001-09-20  Jim Meyering  <meyering@lucent.com>
93449
93450         * lib/xstrtol.c (strtoimax): Guard declaration with
93451         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93452         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93453         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93454         (strtoumax): Likewise, for completeness (it wasn't necessary).
93455
93456 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93457
93458         * lib/strtoimax.c (HAVE_LONG_LONG):
93459         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93460         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93461         to work around bug in IBM C compiler.
93462
93463 2001-09-17  Jim Meyering  <meyering@lucent.com>
93464
93465         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93466         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93467         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93468         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93469         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93470         whenever the right hand side need not be expanded by the shell.
93471
93472 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93473
93474         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93475         library.  It's not correct, as some older glibcs are buggy.
93476         fnmatch wasn't fixed until glibc 2.2.
93477
93478         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93479         special shell magic here.
93480
93481 2001-09-16  Jim Meyering  <meyering@lucent.com>
93482
93483         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93484         * m4/jm-macros.m4: Require it.
93485
93486 2001-09-16  Jim Meyering  <meyering@lucent.com>
93487
93488         * lib/mkdir.c: New file.
93489
93490 2001-09-15  Jim Meyering  <meyering@lucent.com>
93491
93492         * m4/jm-macros.m4: Check for help2man.
93493
93494 2001-09-11  Jim Meyering  <meyering@lucent.com>
93495
93496         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93497         The body, by Paul Eggert, was moved here from configure.in.
93498         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93499
93500 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93501
93502         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93503         (jm_PREREQ): Use it.
93504
93505 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93506
93507         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93508         Use ssize_t, not int, to store result of readlink.
93509         Check for ssize_t overflow as well as size_t overflow,
93510         as POSIX says the result of readlink is implementation-defined
93511         when ssize_t overflows.
93512         Remove unnecessary cast to char*.
93513         Use free+malloc instead of realloc, as the storage doesn't need
93514         to be preserved and it's clearer and can be more efficient that way.
93515         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93516         * lib/xreadlink.h (xreadlink): Update prototype.
93517
93518 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93519
93520         * lib/xgetcwd.c: Revert some of the previous change; intead,
93521         fix the HAVE_GETCWD_NULL code to behave more like the
93522         !HAVE_GETCWD_NULL code used to.
93523
93524         Include "xalloc.h".
93525         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93526         invoke xalloc_die.
93527
93528 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93529
93530         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93531         sys/param.h, as pathmax.h includes them.
93532
93533 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93534
93535         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93536         (jm_PREREQ_XGETCWD): New macro.
93537
93538         * m4/getcwd.m4: New file.
93539
93540 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93541
93542         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93543         like the HAVE_GETCWD_NULL code.
93544         Include pathmax.h if not HAVE_GETCWD.
93545         Do not include xalloc.h.
93546         (INITIAL_BUFFER_SIZE): New symbol.
93547         Do not use xmalloc / xrealloc, since the caller is responsible for
93548         handling errors.  Preserve errno around `free' during failure.
93549         Do not overrun buffer when using getwd.
93550
93551 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93552
93553         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93554         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93555         getcwd (NULL, 0).
93556
93557 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93558
93559         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93560         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93561         spotted by Jim Meyering.
93562
93563 2001-09-03  Jim Meyering  <meyering@lucent.com>
93564
93565         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93566         failure.
93567
93568 2001-09-02  Jim Meyering  <meyering@lucent.com>
93569
93570         * lib/error.c: Update from GNU libc.
93571
93572 2001-09-01  Jim Meyering  <meyering@lucent.com>
93573
93574         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93575         Used by df.
93576
93577 2001-09-01  Jim Meyering  <meyering@lucent.com>
93578
93579         * lib/xreadlink.c: New file.
93580         * lib/xreadlink.h: New file.
93581         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93582         xreadlink.h.
93583
93584         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93585         doesn't conflict with sparc Solaris 7's definition in
93586         /usr/include/sys/int_types.h.
93587
93588         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93589         files.
93590         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93591         and strncasecmp as r-values.  Unixware didn't have declarations.
93592
93593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93594
93595         * lib/xstrtol.h: Add copyright notice.
93596         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93597         LONGINT_INVALID_SUFFIX_CHAR.
93598
93599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93600
93601         * lib/xstrtol.c (strtoimax): New decl.
93602
93603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93604
93605         * lib/xgetcwd.c: Don't include pathmax.h.
93606         Include stdlib.h and unistd.h if available.
93607         Include xalloc.h.
93608         (xmalloc, xstrdup, free): Remove decls.
93609         (xgetcwd): Don't assume sizes fit in unsigned.
93610         Check for overflow when computing sizes.
93611         Simplify reallocation code.
93612
93613 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93614
93615         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93616         a directory's st_size can have an arbitrary value, so the old
93617         usage could waste an arbitrary amount of memory.  All uses
93618         changed.
93619         * lib/savedir.h: Update prototype.
93620
93621 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93622
93623         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93624
93625         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93626         old strtoimax.c.
93627
93628         Also, make the following further changes to make this file's
93629         configuration more similar to that of strtol.c:
93630         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93631         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93632         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93633         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93634         changed to signed values.
93635
93636         And make the following changes as well:
93637         Fix copyright notice, as 1999 was missing.
93638         (verify): New macro.
93639         (strtoimax): Check sizes at compile-time, not run-time.
93640         Prefer strtol to strtoll if both work.
93641         (main): Remove; it was not that useful and was a pain to maintain.
93642
93643         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93644
93645 2001-08-31  Jim Meyering  <meyering@lucent.com>
93646
93647         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93648         Use an initial, malloc'd, buffer of length 128 rather than
93649         a statically allocated one of length 1024.
93650
93651 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93652
93653         Simplify code, partly by assuming autoconf 2.52 semantics.
93654
93655         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93656
93657         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93658         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93659         All uses removed.
93660         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93661         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93662         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93663         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93664         jm_AC_HEADER_INTTYPES_H.
93665         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93666
93667         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93668
93669         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93670         Quote first arg of AC_DEFUN.
93671         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93672         since they are needed to parse the include file even if we need
93673         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93675         but with opposite signedness.
93676
93677 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93678
93679         Merge 'exclude' changes from tar 1.13.22.
93680         This fixes one or two unlikely storage allocation overflow bugs,
93681         but doesn't change user-visible behavior otherwise.
93682
93683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93684
93685         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93686         (jm_PREREQ_EXCLUDE): New macro.
93687
93688 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93689
93690         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93691         tm to be declared.
93692
93693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93694
93695         * lib/hash.c: Remove '2001' from copyright notice.
93696
93697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93698
93699         * lib/full-write.h: New file.
93700         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93701         * lib/full-write.c: Correct credits, as cccp.c no longer
93702         exists and anyway it was so heavily changed from the old cccp
93703         code as to be unrecognizable.  Include full-write.h.
93704         (full_write): Return size_t, with short writes meaning failure.
93705         All callers changed.  This fixes a bug with large buffers
93706         on 64-bit hosts.
93707         * lib/utime.c: Include full-write.h.
93708
93709 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93710
93711         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93712         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93713         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93714         Include if available.
93715         (<xalloc.h>): Include
93716         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93717         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93718         collide with FNM macros.
93719         (struct patopts): New struct.
93720         (struct exclude): Use it, as exclude patterns now come with options.
93721         (new_exclude): Support above changes.
93722         (new_exclude, add_exclude_file):
93723         Initial size must now be a power of two to simplify overflow checking.
93724         (free_exclude, fnmatch_no_wildcards): New function.
93725         (excluded_filename): No longer requires options arg, as the options
93726         are determined by add_exclude.  Now returns bool, not int.
93727         (excluded_filename, add_exclude):
93728         Add support for the fancy new exclusion options.
93729         (add_exclude, add_exclude_file): Now takes int options arg.
93730         Check for arithmetic overflow when computing sizes.
93731         (add_exclude_file): xrealloc might modify errno, so don't
93732         realloc until after errno might be used.
93733
93734         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93735         New macros.
93736         (free_exclude): New decl.
93737         (add_exclude, add_exclude_file): Now takes int options arg.
93738         (excluded_filename): No longer requires options arg, as the options
93739         are determined by add_exclude.  Now returns bool, not int.
93740
93741 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93742
93743         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93744
93745 2001-08-27  Jim Meyering  <meyering@lucent.com>
93746
93747         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93748
93749         * lib/version-etc.c (N_): Remove definition.
93750         Revert most of last change.
93751         Instead, simply don't mark the `Copyright...' string for translation.
93752         Based on advice from Paul Eggert.
93753
93754         * lib/strtoxmax.c: Tweak comment.
93755
93756 2001-08-26  Jim Meyering  <meyering@lucent.com>
93757
93758         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93759
93760         * m4/xstrtoimax.m4: New file.
93761         * m4/xstrtoumax.m4: Add comments explaining why we
93762         AC_REPLACE_FUNCS(strtol).
93763
93764 2001-08-26  Jim Meyering  <meyering@lucent.com>
93765
93766         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93767         of copyright with `%s' so translators don't get an untranslated
93768         message in 2002.
93769         (COPYRIGHT_YEAR): Define.
93770         (version_etc): Use fprintf rather than fputs.
93771         Suggestion from Ulrich Drepper.
93772
93773         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93774
93775         * lib/strtoll.c: New file, from GNU libc.
93776         * lib/xstrtoimax.c: New file.
93777
93778         * lib/xstrtol.h: Add xstrtoimax.
93779         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93780         * lib/strtoimax.c: New file.  Likewise, but first define
93781         STRTOUXMAX_SIGNED.
93782
93783         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93784         ...
93785         * lib/strtoxmax.c: ... then renamed to this.
93786
93787 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93788
93789         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93790         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93791         (jm_AC_TYPE_INTMAX_T): New macro.
93792         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93793
93794         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93795
93796         * m4/longlong.m4: Renamed from ulonglong.m4.
93797         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93798         * m4/uintmax_t.m4: Removed.
93799
93800 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93801
93802         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93803         Port to Solaris 8, where 'sed' requires a space after the 'r'
93804         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93805         Redirect output to $tmp just once.
93806
93807 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93808
93809         * lib/addext.c (<errno.h>): Include.
93810         (errno): Declare if not defined.
93811         (addext): Work correctly when pathconf returns -1 and leaves
93812         errno alone because there is no limit.  Also, work even if
93813         pathconf returns a value greater than SIZE_MAX.
93814
93815 2001-08-12  Jim Meyering  <meyering@lucent.com>
93816
93817         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93818         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93819         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93820         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93821         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93822         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93823         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93824         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93825         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93826         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93827         utime.m4, utimes.m4, xstrtoumax.m4:
93828         Quote the first argument in each use of AC_DEFUN.
93829
93830 2001-08-12  Jim Meyering  <meyering@lucent.com>
93831
93832         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93833         Simply `return getcwd (NULL, 0);'.
93834         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93835         Use 1300 as initial value for length, not PATH_MAX.
93836
93837         * lib/pathmax.h: Clean up cpp syntax.
93838
93839 2001-08-12  Jim Meyering  <meyering@lucent.com>
93840
93841         * lib/gettimeofday.c: New file.
93842         * lib/gtod.h: New file.
93843         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93844
93845 2001-08-05  Jim Meyering  <meyering@lucent.com>
93846
93847         * m4/jm-macros.m4: Require autoconf-2.52.
93848
93849 2001-08-04  Jim Meyering  <meyering@lucent.com>
93850
93851         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93852         stmt, to get in sync with glibc.
93853
93854 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93855
93856         The following changes are from gettext 0.10.39 as maintained by
93857         Bruno Haible.
93858
93859         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93860         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93861         with inverted sense.  All uses changed.
93862
93863         * lib/mbswidth.c: Don't include <limits.h>.
93864         Include <stdlib.h> and <string.h> unconditionally.
93865         (iswcntrl, mbsinit, ISCNTRL): New macros.
93866         (mbsnwidth): Use K&R style function declarations.
93867         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93868         can optimize it when MB_CUR_MAX == 1.
93869         The width of control characters is zero, not 1.
93870
93871 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93872
93873         The following changes are from gettext 0.10.39 as maintained by
93874         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93875
93876         * m4/codeset.m4: Upgrade to serial AM1.
93877         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93878         all uses changed.  Quote first arg of AC_DEFUN.
93879         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93880
93881         * m4/iconv.m4: Upgrade to serial AM2.
93882         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93883         Add --with-libconv-prefix.
93884         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93885         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93886         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93887         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93888         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93889
93890         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93891         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93892         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93893         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93894         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93895         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93896         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93897         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93898         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93899
93900         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93901         string.h any more.
93902
93903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93904         not the default value.
93905
93906         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93907         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93908         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93909         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93910         Also check for iswcntrl, used for wcwidth fallback.
93911         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93912         to Autoconf 2.13.
93913
93914 2001-08-03  Jim Meyering  <meyering@lucent.com>
93915
93916         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93917         as it was in the original.  Reported by Paul Eggert.
93918
93919 2001-07-16  Jim Meyering  <meyering@lucent.com>
93920
93921         * m4/gettimeofday.m4: New file.
93922         Prompted by a report from Bernhard Baehr.
93923
93924 2001-07-15  Jim Meyering  <meyering@lucent.com>
93925
93926         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93927         stuff. Now it's in ../Makefile.cfg.
93928
93929 2001-07-15  Jim Meyering  <meyering@lucent.com>
93930
93931         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93932         (BUILT_SOURCES): Add unlocked-io.h.
93933         (io_functions): Define.
93934         (unlocked-io.h): New rule.
93935         (DISTCLEANFILES): Add unlocked-io.h.
93936         (all-local): Depend on unlocked-io.h, to ensure it is created.
93937
93938         * lib/unlocked-io.hin: New file
93939
93940         * lib/regex.c: Update from glibc.
93941
93942 2001-07-05  Jim Meyering  <meyering@lucent.com>
93943
93944         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93945         recommendation.
93946         (libfetish_a_SOURCES): Put all .h files here instead.
93947         Remove a thus-exposed (better checks in automake) duplicate and
93948         two unnecessary .h files.
93949
93950 2001-07-04  Jim Meyering  <meyering@lucent.com>
93951
93952         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93953         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93954         distcheck failure.
93955
93956 2001-07-02  Jim Meyering  <meyering@lucent.com>
93957
93958         The following changes were prompted by suggestions from Bruno Haible.
93959
93960         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93961         is now generated.
93962         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93963         definition of EXTRA_DIST.
93964         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93965         ensure that the generated file is created/updated whenever the list
93966         of $(unlocked_functions) is changed.
93967         (jm-glibc-io.m4): New rule.
93968         (unlocked-io.h): New rule -- currently unused.
93969
93970 2001-06-24  Jim Meyering  <meyering@lucent.com>
93971
93972         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93973         unmatched right bracket, rather than kludging it with an extra,
93974         falsely-matching quote in a comment.  Patch by Akim Demaille.
93975
93976 2001-06-11  Jim Meyering  <meyering@lucent.com>
93977
93978         * lib/regex.c: Update from GNU libc.
93979
93980 2001-05-27  Jim Meyering  <meyering@lucent.com>
93981
93982         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93983         Check for ut_type in struct utmp.
93984
93985 2001-05-27  Jim Meyering  <meyering@lucent.com>
93986
93987         * lib/readutmp.h (UT_TYPE): Define.
93988
93989 2001-05-24  Jim Meyering  <meyering@lucent.com>
93990
93991         * lib/argmatch.c: Include "quote.h".
93992         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93993         quote function.  Reported by Göran Uddeborg.
93994
93995 2001-05-22  Jim Meyering  <meyering@lucent.com>
93996
93997         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93998         now that we use the package-supplied version unconditionally.
93999         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94000
94001 2001-05-21  Jim Meyering  <meyering@lucent.com>
94002
94003         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94004         shell syntax errors.
94005
94006 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94007
94008         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94009
94010 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94011
94012         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94013         Don't bother to check library strftime, since
94014         we'll be using our own my_strftime function anyway.
94015         Define my_strftime instead of strftime.
94016
94017 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94018
94019         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94020         which is not yet declared.
94021
94022 2001-05-15  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/regex.m4: Use proper quoting so brackets appear in the test
94025         program.
94026         Reported by, and with help from, Bruno Haible.
94027
94028 2001-05-13  Jim Meyering  <meyering@lucent.com>
94029
94030         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94031         undefined.
94032
94033 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94034
94035         dirname code cleanup.  base_name now behaves more compatibly
94036         with POSIX basename when given file names that have trailing
94037         slashes, and similarly for dir_name.  Add new primitives
94038         base_len and dir_len.  Put the directory-name-related decls
94039         into dirname.h.
94040
94041         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94042         * lib/backupfile.c (base_name): Likewise.
94043         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94044         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94045         * lib/makepath.c (strip_trailing_slashes): Likewise.
94046         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94047         ISSLASH): Likewise.
94048         * lib/rename.c (strip_trailing_slashes): Likewise.
94049         * lib/same.c (base_name): Likewise.
94050         * lib/stripslash.c (ISSLASH): Likewise.
94051
94052         * lib/addext.c: Include <dirname.h> after size_t is defined.
94053         * lib/backupfile.c: Likewise.
94054
94055         * lib/addext.c (addext): Use base_len to trim redundant
94056         trailing slashes instead of doing it ourselves.
94057         But do not trim the last slash if it is not redundant.
94058
94059         * lib/backupfile.c (find_backup_file_name,
94060         max_backup_version): Use base_len instead of rolling it ourselves.
94061         Handle the case of "" and (on DOS) "C:" correctly.
94062
94063         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94064         needed. Include <string.h>, <dirname.h>.
94065         (base_name): Allow file names ending in slashes, other than names
94066         that are all slashes.  In this case, return the basename followed
94067         by the slashes.  This is more general, and can be used in places
94068         where the original base_name purposely had an assertion failure.
94069         (base_len): New function.
94070
94071         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94072         Do not include <assert.h>; no longer needed.
94073         Include xalloc.h.
94074         (memrchr): Remove decl.
94075         (dir_name_r): Remove.
94076         (dir_len): Renamed from dirlen.  All callers changed.
94077         Rewrite in terms of base_name, for simplicity and consistency.
94078         (dir_name): Never return NULL.  All callers changed.
94079         Do not include <stdlib.h> in test program; no longer needed.
94080         return 0; is fine for test program.
94081
94082         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94083         New macros.
94084         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94085
94086         * lib/path-concat.c (path_concat): Use base_len to compute
94087         base length, not strlen; this means we cannot rely on memcpy
94088         to null-terminate.
94089
94090         * lib/same.c (STREQ): Remove.
94091         (same_name): Handle the case where the basename ends in trailing '/'.
94092
94093         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94094         a slash was stripped.  Do not strip the last slash after a
94095         file system prefix.
94096
94097 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94098
94099         * lib/Makefile.am (libfetish_a_SOURCES):
94100         Add strftime.c, since we now compile it on all hosts.
94101
94102         * lib/strftime.c (my_strftime):
94103         Define to nstrftime if emacs, but only if my_strftime is not defined.
94104         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94105         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94106         Add one more extra argument: a nanoseconds value.
94107         All uses changed.
94108         (ns): New macro.
94109         (my_strftime function): Add %N format.
94110         (emacs_strftimeu): Renamed from emacs_strftime,
94111         with extra ut argument.
94112
94113 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94114
94115         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94116
94117 2001-04-21  Jim Meyering  <meyering@lucent.com>
94118
94119         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94120         doesn't interfere.
94121
94122 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94123
94124         * m4/ftruncate.m4: Check for chsize.
94125         Link with ftruncate.o unconditionally if ftruncate is missing.
94126         This was required when cross-compiling to i586-mingw32msvc.
94127
94128 2001-04-08  Jim Meyering  <meyering@lucent.com>
94129
94130         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94131         recomputed; that's necessary when the offset spans a DST transition.
94132         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94133
94134 2001-04-02  Jim Meyering  <meyering@lucent.com>
94135
94136         * lib/regex.h, regex.c: Update from GNU libc.
94137
94138 2001-03-24  Jim Meyering  <meyering@lucent.com>
94139
94140         * m4/jm-macros.m4: Require autoconf-2.49d.
94141
94142 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94143
94144         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94145
94146 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94147
94148         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94149
94150 2001-03-17  Jim Meyering  <meyering@lucent.com>
94151
94152         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94153         now that the version in autoconf is equivalent.
94154         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94155
94156         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94157         Suggestion from Akim Demaille.
94158
94159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94160         (jm_PREREQ_TEMPNAME): New function.
94161
94162 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94163
94164         * lib/tempname.c (uint64_t): Define to uintmax_t if
94165         not defined, and if UINT64_MAX is not defined.
94166         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94167         Reported by John David Anglin.
94168
94169 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94170
94171         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94172         resolve alias if codeset is empty.
94173         * lib/config.charset (BeOS): Use wildcard syntax.
94174
94175 2001-03-13  Jim Meyering  <meyering@lucent.com>
94176
94177         * lib/path-concat.c (path_concat)
94178         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94179         concatenating e.g., `C:' and `foo'.
94180         From Bruno Haible.
94181
94182 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94183
94184         * lib/localcharset.c (locale_charset): Don't use
94185         setlocale(LC_CTYPE,NULL). Don't return NULL.
94186         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94187
94188 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94189
94190         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94191         support for DOS/DJGPP.
94192
94193 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94194
94195         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94196         lacks mkstemp.  Compile our own tempname.c if we compile our own
94197         mkstemp.c, as mkstemp relies on tempname.
94198
94199 2001-03-01  Jim Meyering  <meyering@lucent.com>
94200
94201         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94202         AH_VERBATIM really does output its argument verbatim.
94203
94204 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94205
94206         * lib/Makefile.am (libfetish_a_SOURCES):
94207         Add dup-safer.c, fopen-safer.c.
94208         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94209
94210         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94211         * lib/unistd-safer.h: New files.
94212
94213 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94214
94215         The mkstemp replacement is taken from glibc 2.2.2, with some
94216         portability fixes for use outside glibc, as follows:
94217
94218         * lib/tempname.c (struct_stat64): New macro.
94219         (direxists, __gen_tempname): Use it.
94220         This avoids a portability problem with Solaris 8.
94221
94222         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94223         (<stddef.h>, <stdint.h>, <string.h>):
94224         Include only if STDC_HEADERS || _LIBC.
94225         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94226         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94227         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94228         (__set_errno): Define this macro if <errno.h> doesn't.
94229         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94230         Define these macros if <stdio.h> doesn't.
94231         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94232         Define these macros if <sys/stat.h>
94233         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94234         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94235         __xstat64): Define if not _LIBC.
94236         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94237         (__gen_tempname): Invoke gettimeofday only if
94238         HAVE_GETTIMEOFDAY || _LIBC;
94239         otherwise, fall back on plain "time".
94240         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94241
94242         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94243
94244         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94245
94246 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94247
94248         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94249
94250 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94251
94252         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94253         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94254         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94255         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94256
94257 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94258
94259         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94260         Remove workaround macros for hosts that have mbrtowc but not
94261         mbstate_t, as we now insist on proper declarations for both
94262         before using mbrtowc.
94263
94264 2001-02-17  Jim Meyering  <meyering@lucent.com>
94265
94266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94267         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94268         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94269         UnixWare 7.1.1.
94270
94271         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94272         rather than AC_CACHE_VAL.
94273
94274 2001-02-17  Jim Meyering  <meyering@lucent.com>
94275
94276         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94277         around included file name.
94278
94279         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94280
94281         * lib/strftime.c: Update from GNU libc (the only changes were to
94282         comments).
94283
94284 2001-02-17  Jim Meyering  <meyering@lucent.com>
94285
94286         * lib/regex.c: Update from libc.
94287
94288 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94289
94290         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94291         clash.
94292
94293 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94296         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94297         Reported by Mark Hounschell via Paul Eggert.
94298
94299 2001-02-07  Jim Meyering  <meyering@lucent.com>
94300
94301         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94302
94303 2001-02-05  Jim Meyering  <meyering@lucent.com>
94304
94305         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94306         it includes the patch required for `large file' support with at least
94307         HP-UX's 10.20 /bin/cc.
94308
94309 2001-02-03  Jim Meyering  <meyering@lucent.com>
94310
94311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94312         AS_IF, now that it works once again (mysteriously).
94313         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94314
94315 2001-01-30  Jim Meyering  <meyering@lucent.com>
94316
94317         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94318         * m4/chown.m4: Rename conftestchown to conftest.chown.
94319         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94320         s/conftestdir2/conftest.d2/.
94321         * m4/utimes.m4: s/conftestdata/conftest.data/
94322         Inspired by Pavel Roskin's change in autoconf.
94323
94324 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94325
94326         * lib/config.charset: Update for FreeBSD 4.2.
94327
94328 2001-01-27  Jim Meyering  <meyering@lucent.com>
94329
94330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94331         a use of AS_IF.
94332         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94333
94334 2001-01-26  Jim Meyering  <meyering@lucent.com>
94335
94336         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94337         quotearg.c includes it.
94338
94339 2001-01-26  Jim Meyering  <meyering@lucent.com>
94340
94341         * lib/quotearg.c: Include stddef.h.
94342         * lib/quote.c: Include stddef.h.
94343         Reported by Axel Kittenberger.
94344
94345         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94346         line in double quotes so that it evokes a better diagnostic.
94347         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94348         Reported by Axel Kittenberger.
94349
94350 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94351
94352         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94353         as if it was a `charset'.
94354
94355 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94356
94357         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94358         has const.
94359
94360 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94361
94362         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94363         to avoid a warning.  Add back 'const' to inptr.
94364
94365 2001-01-20  Jim Meyering  <meyering@lucent.com>
94366
94367         Be sure that headers are checked before used in code compiled
94368         for the type checks.
94369         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94370         In place of that, invoke jm_CHECK_ALL_TYPES.
94371         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94372         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94373         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94374         The check for ssize_t was mistakenly run before the test for unistd.h.
94375
94376         The configure-time check for stdbool.h was missing.
94377         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94378         (jm_PREREQ_HASH): New function.
94379
94380 2001-01-17  Jim Meyering  <meyering@lucent.com>
94381
94382         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94383         for autoconf-2.49c.
94384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94385
94386 2001-01-16  Jim Meyering  <meyering@lucent.com>
94387
94388         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94389         From Bruno Haible.
94390
94391 2001-01-14  Jim Meyering  <meyering@lucent.com>
94392
94393         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94394         foo and bar.  Create conftestdir/ in the script, not in the C code.
94395         Remove directories in the script, not in the C code.
94396         Remove conftestdir{,2} before trying to create the directory.
94397         Make the entire configure script fail if the mkdir fails.
94398
94399 2001-01-14  Jim Meyering  <meyering@lucent.com>
94400
94401         * lib/rename.c: New file.  From Volker Borchert.
94402         Include stdlib.h, string.h or strings.h, and xalloc.h.
94403         Use strip_trailing_slashes rather than open-coding it.
94404
94405 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94406
94407         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94408
94409 2001-01-03  Jim Meyering  <meyering@lucent.com>
94410
94411         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94412         of local `inptr' to avoid warning with some system declarations of
94413         iconv.
94414
94415 2001-01-02  Volker Borchert  <bt@teknon.de>
94416
94417         * m4/rename.m4: New file.
94418         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94419
94420 2001-01-01  Jim Meyering  <meyering@lucent.com>
94421
94422         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94423         even on systems with utmpx.h.  It's necessary for the declaration of
94424         utmp's ut_user member.  Reported by Andreas Jaeger.
94425
94426         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94427         available. They are required for the declarations of getgrgid and
94428         getpwuid resp.
94429         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94430         Reported by Andreas Jaeger.
94431
94432 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94433
94434         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94435         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94436         so `make install' also works in VPATH builds.
94437
94438 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94439
94440         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94441         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94442         can be used in subdirectories.
94443
94444 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94445
94446         * lib/modechange.c: Do not assume that mode_t uses the
94447         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94448         the other-execute bit of FOO even if S_IXOTH != 1.
94449
94450         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94451         WOTH, XOTH, ALLM): New macros.
94452         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94453          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94454         Use them.
94455         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94456         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94457         (mode_compile):
94458         No need to use uintmax_t; unsigned long is long enough.
94459         Don't bother to get suffix since we don't use it.
94460
94461 2000-12-26  Jim Meyering  <meyering@lucent.com>
94462
94463         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94464         better with autoheader.
94465
94466 2000-12-24  Jim Meyering  <meyering@lucent.com>
94467
94468         * lib/hash.c (is_prime): Return explicit boolean values.
94469         (hash_get_first): Return NULL to appease Irix5.6's 89.
94470         Reported by Nelson Beebe.
94471
94472 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94473
94474         * lib/localcharset.c (locale_charset): Add support for Win32.
94475
94476 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94477
94478         * lib/physmem.h, lib/physmem.c: New files.
94479
94480         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94481         (noinst_HEADERS): Add physmem.h.
94482
94483         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94484         't' for compatibility with Solaris 8 sort.
94485
94486 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94487
94488         * lib/config.charset: Add support for BeOS.
94489
94490 2000-12-17  Jim Meyering  <meyering@lucent.com>
94491
94492         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94493         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94494
94495 2000-12-16  Jim Meyering  <meyering@lucent.com>
94496
94497         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94498         N and M) would have treated it like `chown N:N FILE'.
94499
94500         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94501
94502 2000-12-16  Jim Meyering  <meyering@lucent.com>
94503
94504         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94505         SHELLS_FILE to a file name that's useful on djgpp systems.
94506         Include stdlib.h.
94507         (ADDITIONAL_DEFAULT_SHELLS): Define.
94508         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94509         Based mostly on a patch from Prashant TR.
94510
94511 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94512
94513         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94514         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94515         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94516
94517 2000-12-08  Andreas Schwab  <schwab@suse.de>
94518
94519         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94520         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94521
94522 2000-12-07  Jim Meyering  <meyering@lucent.com>
94523
94524         * lib/stripslash.c (ISSLASH): Define.
94525         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94526         `/'.
94527         From Prashant TR.
94528
94529         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94530         (dir_name_r): Declare this function as static.
94531         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94532         manifest itself on a name containing a mix of slashes and
94533         backslashes.
94534         Make this function work with names starting with a DOS-style
94535         drive letter and colon prefix.
94536         (dir_name): Append `.' if necessary.
94537         Based mostly on patches from Prashant TR and Eli Zaretskii.
94538
94539         * lib/dirname.h (dir_name_r): Remove prototype.
94540
94541 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94542
94543         * m4/off_t-format.m4: Remove this file.
94544         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94545
94546 2000-12-06  Jim Meyering  <meyering@lucent.com>
94547
94548         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94549         replacement strtoull, we may well need the replacement strtoul, too.
94550         Check for declarations of strtoul and strtoull.
94551         Check for strtol.  Mainly as a cue to cause automake to include
94552         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94553         Check for limits.h -- strtol.c needs it.
94554
94555 2000-12-05  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94558
94559 2000-12-04  Jim Meyering  <meyering@lucent.com>
94560
94561         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94562         Also include memory.h, stdlib.h, unistd.h if appropriate.
94563         Reported by Andreas Jaeger (conflicting declaration of malloc).
94564
94565 2000-12-02  Jim Meyering  <meyering@lucent.com>
94566
94567         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94568         * m4/jm-macros.m4 (jm_MACROS): require it.
94569
94570 2000-12-02  Jim Meyering  <meyering@lucent.com>
94571
94572         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94573
94574 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94575
94576         * lib/memrchr.c: Include <config.h> before any system include file.
94577
94578 2000-11-30  Jim Meyering  <meyering@lucent.com>
94579
94580         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94581
94582 2000-11-30  Jim Meyering  <meyering@lucent.com>
94583
94584         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94585
94586 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94587
94588         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94589
94590 2000-11-26  Jim Meyering  <meyering@lucent.com>
94591
94592         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94593
94594 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94595
94596         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94597         size of (size_t) -1; it's not portable.
94598
94599 2000-11-17  Jim Meyering  <meyering@lucent.com>
94600
94601         * lib/strstr.c: Update from GNU libc.
94602
94603 2000-11-17  Akim Demaille  <akim@epita.fr>
94604
94605         * lib/obstack.h: Formatting changes.
94606         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94607         prevent type checking.
94608         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94609         cast the value to (void *): assigning a `foo *' to a `void *'
94610         variable is valid.
94611         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94612
94613 2000-11-16  Jim Meyering  <meyering@lucent.com>
94614
94615         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94616
94617 2000-11-11  Jim Meyering  <meyering@lucent.com>
94618
94619         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94620
94621 2000-11-10  Jim Meyering  <meyering@lucent.com>
94622
94623         * lib/obstack.h: Update from GNU libc.
94624         * lib/obstack.c: Likewise.
94625
94626 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94627
94628         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94629
94630 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94631
94632         * lib/getusershell.c (setusershell): Use rewind rather than
94633         fseek/fseeko, to avoid configuration hassles with fseeko.
94634         Don't bother opening SHELLS_FILE if shellstream is NULL;
94635         it's not necessary.
94636
94637 2000-11-05  Jim Meyering  <meyering@lucent.com>
94638
94639         * lib/makepath.h (make_dir): Declare.
94640         * lib/makepath.c (make_dir): Remove `static' attribute.
94641         Tweak a comment.
94642
94643 2000-11-04  Jim Meyering  <meyering@lucent.com>
94644
94645         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94646
94647 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94648
94649         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94650         last one in a bucket, advance to the next bucket.
94651
94652 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94653
94654         * lib/fnmatch.c: Do not comment out all the code if we are using
94655         the GNU C library, because in some cases we are replacing buggy
94656         code in the GNU C library itself.
94657
94658 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94659
94660         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94661         (regex_compile): Catch bogus \(\1\).
94662
94663 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94664
94665         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94666         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94667         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94668
94669 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94670
94671         * lib/error.h, getline.h, modechange.h:
94672         Remove "2000" from Copyright line, as the file hasn't been
94673         changed this year other than in the copyright notice.
94674
94675         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94676         was changed this year.
94677
94678 2000-10-29  Jim Meyering  <meyering@lucent.com>
94679
94680         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94681         renaming.
94682         * m4/ls-mntd-fs.m4: Likewise
94683
94684 2000-10-29  Jim Meyering  <meyering@lucent.com>
94685
94686         * lib/xstat.in: Fix grammar in comment.
94687
94688 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94689
94690         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94691         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94692         doesn't define __restrict_arr.
94693
94694 2000-10-28  Jim Meyering  <meyering@lucent.com>
94695
94696         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94697         (jm_PREREQ_MEMCHR): New function.
94698
94699 2000-10-28  Jim Meyering  <meyering@lucent.com>
94700
94701         * lib/memchr.c: Update from libc.
94702         Adjust for portability:
94703         [HAVE_STDLIB_H]: Include stdlib.h.
94704         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94705         Undef __memchr, too.
94706         [!weak_alias]: Define __memchr to memchr.
94707
94708         * lib/regex.c: Update from libc.
94709         * lib/regex.h: Likewise.
94710         * lib/getopt1.c: Likewise.
94711         * lib/memcmp.c: Likewise.
94712
94713         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94714         Avoid using fseek, when possible -- it's broken by design.
94715         Patch by Ulrich Drepper.
94716
94717 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94718
94719         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94720         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94721         Giving in to popular pressure to shut up the compiler with casts.
94722
94723 2000-10-26  Jim Meyering  <meyering@lucent.com>
94724
94725         * lib/strftime.c: Update from libc.
94726
94727 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94728
94729         * regex.c: More `unsigned char' -> `re_char' changes.
94730         Also change several `int' into `re_wchar_t'.
94731         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94732         (PUSH_FAILURE_POINTER): Don't cast any more.
94733         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94734         We want GCC to complain, since this piece of code makes
94735         re_match non-reentrant, which *should* be fixed.
94736         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94737         (EXTEND_BUFFER): Use RETALLOC.
94738         (SET_LIST_BIT): Don't cast.
94739         (re_wchar_t): New type.
94740         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94741         that those two functions will always properly return.
94742         (IMMEDIATE_QUIT_CHECK): Cast to void.
94743         (analyse_first): Use recursion rather than an explicit stack.
94744         (re_compile_fastmap): Can't fail anymore.
94745         (re_search_2): Don't check re_compile_fastmap for failure.
94746         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94747         Now also sets the new value (passed in a new argument).
94748         (re_match_2_internal): Use it.
94749         Also, use a new var `reg' of type size_t when looping through regs
94750         rather than reuse the inappropriate `mcnt'.
94751
94752 2000-10-25  Jim Meyering  <meyering@lucent.com>
94753
94754         * lib/obstack.c: Update from libc.
94755
94756 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94757
94758         * regex.c (regex_compile): Change the way of handling a range from
94759         a char less than 256 to a char not less than 256.
94760
94761 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94762
94763         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94764         NT-Emacs only.
94765         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94766         so that re_search functions only quit when callers expect them to.
94767
94768 2000-10-23  Jim Meyering  <meyering@lucent.com>
94769
94770         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94771         wrong.  That set_locale call must not have any side effects.
94772         From Paul Eggert.
94773
94774 2000-10-22  Jim Meyering  <meyering@lucent.com>
94775
94776         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94777         [CYCLIC]: Remove now-unused definition.
94778
94779         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94780         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94781         Suggestion from Ulrich Drepper.
94782
94783 2000-10-21  Jim Meyering  <meyering@lucent.com>
94784
94785         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94786         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94788
94789 2000-10-21  Jim Meyering  <meyering@lucent.com>
94790
94791         * lib/dirname.c (memrchr): Declare if necessary.
94792         (dir_name): Remove the restriction that there be no
94793         trailing slashes.  Now, this code skips past them, effectively
94794         ignoring them.
94795         [TEST_DIRNAME] (main): New unit tests.
94796
94797         * lib/memrchr.c: New file from GNU libc.
94798         Undef __memrchr, too.
94799         [!weak_alias]: Define __memrchr to memrchr.
94800         Guard weak_alias use with `#ifdef weak_alias'.
94801
94802 2000-10-21  Jim Meyering  <meyering@lucent.com>
94803
94804         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94805         (dir_name): Use dir_name_r.
94806         * lib/dirname.h (dir_name_r): Declare it.
94807
94808 2000-10-17  Jim Meyering  <meyering@lucent.com>
94809
94810         * lib/quote.h (PARAMS): Define and use.
94811         Reported by Akim Demaille.
94812
94813         * lib/getopt.c: Update from libc.
94814
94815 2000-10-16  Jim Meyering  <meyering@lucent.com>
94816
94817         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94818         setlocale.
94819         From Jan Fedak.
94820
94821 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94822
94823         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94824
94825 2000-09-25  Jim Meyering  <meyering@lucent.com>
94826
94827         * lib/md5.h (rol): Define (from GnuPG).
94828
94829         * lib/sha.c: Give credit (GnuPG) where due.
94830         (M): Use rol rather than open-coding it.
94831         Add a FIXME comment.
94832
94833 2000-09-21  Jim Meyering  <meyering@lucent.com>
94834
94835         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94836         Reported by Michael Stone.
94837
94838 2000-09-20  Jim Meyering  <meyering@lucent.com>
94839
94840         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94841         (noinst_HEADERS): Add sha.h.
94842         Based on code from Scott G. Miller and from GnuPG.
94843
94844 2000-09-18  Jim Meyering  <meyering@lucent.com>
94845
94846         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94847         LIBS. Otherwise, everyone ends up linking with -lelf for some
94848         configurations.
94849         Reported by Mike Stone.
94850
94851 2000-09-15  Jim Meyering  <meyering@lucent.com>
94852
94853         * lib/regex.c: Update from libc.
94854
94855 2000-09-10  Jim Meyering  <meyering@lucent.com>
94856
94857         * lib/getopt.c (_getopt_internal): Update from glibc.
94858
94859 2000-09-09  Jim Meyering  <meyering@lucent.com>
94860
94861         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94862         think it should be used as a general replacement for isascii.
94863         * lib/fnmatch.c: Likewise.
94864         * lib/mbswidth.c: Likewise
94865         * lib/regex.c: Likewise.
94866
94867         Don't use atoi.
94868         * lib/userspec.c: Include sys/param.h and limits.h.
94869         Include xstrtol.h.
94870         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94871         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94872         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94873         UID, GID.  Check range.
94874
94875 2000-09-06  Jim Meyering  <meyering@lucent.com>
94876
94877         * lib/getopt.c (_getopt_internal): Update from glibc.
94878
94879 2000-08-30  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/strftime.c: Merge in changes from GNU libc.
94882
94883 2000-08-26  Jim Meyering  <meyering@lucent.com>
94884
94885         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94886         * m4/fpending.m4: New file.
94887
94888 2000-08-26  Jim Meyering  <meyering@lucent.com>
94889
94890         * lib/closeout.c: Include "__fpending.h".
94891         (close_stdout_status): Return right away if there's nothing to flush.
94892
94893         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94894         * lib/__fpending.c: New file.
94895         * lib/__fpending.h: New file.
94896
94897 2000-08-20  Jim Meyering  <meyering@lucent.com>
94898
94899         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94900         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94901         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94902
94903 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94904
94905         Improve fileutils installation on systems where running
94906         programs (like install) can't be unlinked.
94907         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94908         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94909
94910 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94911
94912         Standardize on "memory exhausted" instead of "Memory exhausted"
94913         or "virtual memory exhausted".
94914         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94915         "virtual memory exhausted".
94916         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94917         our own message.
94918         * lib/userspec.c (parse_user_spec): Likewise.
94919         * lib/bumpalloc.h: comment fix
94920         * lib/same.c, userspec.c: Include xalloc.h.
94921
94922         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94923         not char *const and pointing to a constant array.
94924         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94925         (xrealloc): Comment fix.
94926
94927         * lib/userspec.c (parse_user_spec):
94928         Don't translate a message until just before returning,
94929         to avoid unnecessary translation.
94930
94931 2000-08-07  Jim Meyering  <meyering@lucent.com>
94932
94933         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94934         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94935         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94936         getgroups.c, gethostname.c, getopt.h, group-member.c,
94937         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94938         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94939         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94940         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94941         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94942         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94943         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94944         yesno.c: Back out Copyright date changes for each file with no change
94945         this year.  This eases coordination with other programs using the same
94946         source code modules.  From Paul Eggert.
94947
94948 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94949
94950         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94951         not char, for compatibility with glibc 2.1.3 strftime.c.
94952
94953 2000-08-03  Greg McGary  <greg@mcgary.org>
94954
94955         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94956         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94957         (EXTEND_BUFFER): Use them.
94958
94959 2000-08-01  Jim Meyering  <meyering@lucent.com>
94960
94961         * lib/dirname.c (ISSLASH): Define.
94962         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94963         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94964         both `\' and `/' may be use as path separators.
94965         Based on a patch from Prashant TR.
94966
94967 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94968
94969         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94970         slot vector a constant, since it might get modified.
94971
94972 2000-07-31  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/xmalloc.c: Use `virtual memory exhausted', not
94975         `Memory exhausted'.
94976         * lib/obstack.c (print_and_abort): Likewise.
94977
94978 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94979
94980         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94981         buffer, so that the caller can always quote one small
94982         component of a "memory exhausted" message in slot 0.
94983         From a suggestion by Jim Meyering.
94984
94985 2000-07-30  Jim Meyering  <meyering@lucent.com>
94986
94987         * lib/makepath.c (make_path): Quote the other instance, too.
94988
94989         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94990         (STATIC_BUF_SIZE): Define.
94991         (quotearg_n_options): Use only statically allocated storage when
94992         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94993         than STATIC_BUF_SIZE.
94994
94995 2000-07-29  Jim Meyering  <meyering@lucent.com>
94996
94997         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94998         * lib/dirname.c (dir_name): Likewise.
94999
95000         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95001         `/'.
95002
95003         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95004         (dir_name): Assert that there are no trailing slashes.
95005
95006 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95007
95008         * lib/mbswidth.h (mbswidth): Add a flags argument.
95009         (mbswidth): New declaration.
95010         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95011         * lib/mbswidth.c (mbswidth): Add a flags argument.
95012         (mbsnwidth): New function.
95013
95014 2000-07-24  Jim Meyering  <meyering@lucent.com>
95015
95016         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95017
95018 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95019
95020         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95021
95022 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95023
95024         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95025         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95026         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95027         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95028         invoke multibyte primitives.
95029
95030 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95031
95032         * lib/quotearg.c:
95033         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95034         so that mbstate_t is always defined.
95035
95036         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95037         be 1 in at least one GCC installation, and this configuration
95038         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95039         performance on hosts that have mbrtowc but have only unibyte
95040         locales, but I assume these hosts are rare.
95041
95042 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95043
95044         * lib/mbswidth.c (_XOPEN_SOURCE):
95045         Don't define; this causes problems on Solaris 7.
95046         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95047
95048 2000-07-23  Jim Meyering  <meyering@lucent.com>
95049
95050         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95051         too: getgrgid, getpwuid, getuid.
95052
95053 2000-07-23  Jim Meyering  <meyering@lucent.com>
95054
95055         * lib/basename.c (base_name): Add an assertion.
95056
95057 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95058
95059         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95060         shadow its mbsinit function.
95061
95062 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95063
95064         * lib/mbswidth.h: New file.
95065         * lib/mbswidth.c: New file.
95066         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95067         (noinst_HEADERS): Add mbswidth.h.
95068
95069 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95070
95071         * lib/config.charset: Add support for FreeBSD. Improve support for
95072         HP-UX and IRIX 6.
95073
95074 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95075
95076         * m4/mbswidth.m4: New file.
95077         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95078
95079 2000-07-15  Jim Meyering  <meyering@lucent.com>
95080
95081         * lib/makepath.c: Include quote.h.
95082         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95083         corresponding argument in a `quote (...)' call.
95084         Give better diagnostics.
95085
95086         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95087         (noinst_HEADERS): Add quote.h.
95088
95089         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95090         from tar's src/misc.c.
95091         * lib/quote.h: New file.  Prototypes for same.
95092
95093 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95094
95095         From a suggestion by Bruno Haible.
95096         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95097         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95098         to decide whether to define the BeOS workaround macro;
95099         this adjusts to the change to AC_MBSTATE_T.
95100
95101 2000-07-14  Jim Meyering  <meyering@lucent.com>
95102
95103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95104         jm_AC_TYPE_UINTMAX_T.
95105
95106 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95107
95108         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95109
95110         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95111         quotearg_buffer_restyled): Add support for
95112         clocale_quoting_style.  Undo previous change to
95113         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95114         and "{RIGHT QUOTATION MARK}" msgids.
95115
95116 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95117
95118         From a suggestion by Bruno Haible.
95119         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95120         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95121         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95122         and mbstate_t, to a single-part test that simply defines mbstate_t.
95123         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95124         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95125
95126 2000-07-10  Jim Meyering  <meyering@lucent.com>
95127
95128         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95129
95130         * m4/gnu-source.m4: Output to confdefs.h directly.
95131         Suggestion from Akim Demaille.
95132
95133 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95134
95135         The old behavior of quoting `like this' doesn't look good with
95136         newer, ISO-style fonts.  See:
95137         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95138
95139         Instead, quote "like this" by default.  Let the translator
95140         tailor the locale-specific quoting behavior by providing
95141         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95142
95143         * lib/quotearg.c (N_): New macro.
95144         (gettext_default): New function.
95145         (quotearg_buffer_restyled): Use
95146         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95147         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95148
95149 2000-07-09  Jim Meyering  <meyering@lucent.com>
95150
95151         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95152         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95153
95154         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95156
95157 2000-07-09  Jim Meyering  <meyering@lucent.com>
95158
95159         * lib/Most files: Update copyright dates to include 2000.
95160
95161 2000-07-08  Jim Meyering  <meyering@lucent.com>
95162
95163         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95164         if not defined.
95165         (xgethostname): Remove now-unnecessary #ifdef.
95166         Move declaration of `err' into loop where it's used.
95167
95168 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95169         and Bruno Haible  <haible@clisp.cons.org>
95170
95171         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95172         only if the test for an object-type mbstate_t fails.  This
95173         prevents us from mistakenly reporting that mbstate_t is a
95174         system object type after we "#define mbstate_t int" to work
95175         around its lack.
95176
95177 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95178         and Bruno Haible  <haible@clisp.cons.org>
95179
95180         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95181
95182 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95183
95184         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95185         to strerror_r.
95186         Include <ctype.h> for use of isalpha.
95187
95188 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95189
95190         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95191         by allocating a larger buffer. Test the gethostname return value for
95192         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95193         returns an error and ENAMETOOLONG isn't defined.
95194
95195 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95196
95197         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95198         dimension.
95199
95200 2000-07-04  Jim Meyering  <meyering@lucent.com>
95201
95202         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95203         of the deprecated AC_CHECKING.
95204
95205 2000-07-04  Jim Meyering  <meyering@lucent.com>
95206
95207         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95208         Reported by Bruno Haible.
95209
95210 2000-07-04  Jim Meyering  <meyering@lucent.com>
95211
95212         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95213         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95214         lacks mbrtowc.
95215
95216 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95217
95218         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95219         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95220
95221 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95222         and Bruno Haible  <haible@clisp.cons.org>
95223
95224         * lib/quotearg.c (mbrtowc):
95225         Assign to *pwc, and return 1 only if result is nonzero.
95226         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95227
95228 2000-07-03  Jim Meyering  <meyering@lucent.com>
95229
95230         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95231
95232 2000-07-03  Jim Meyering  <meyering@lucent.com>
95233
95234         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95235         This is necessary to get a definition of e.g., UTMP_FILE on
95236         HP-UX 10.20.
95237         From Bob Proulx.
95238
95239 2000-07-02  Jim Meyering  <meyering@lucent.com>
95240
95241         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95242
95243         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95244         AC_LIBOBJ(function_name).
95245         * m4/chown.m4: Likewise.
95246         * m4/fnmatch.m4: Likewise.
95247         * m4/ftruncate.m4: Likewise.
95248         * m4/getgroups.m4: Likewise.
95249         * m4/getline.m4: Likewise.
95250         * m4/group-member.m4: Likewise.
95251         * m4/jm-macros.m4: Likewise.
95252         * m4/lstat.m4: Likewise.
95253         * m4/malloc.m4: Likewise.
95254         * m4/memcmp.m4: Likewise.
95255         * m4/nanosleep.m4: Likewise.
95256         * m4/putenv.m4: Likewise.
95257         * m4/realloc.m4: Likewise.
95258         * m4/regex.m4: Likewise.
95259         * m4/stat.m4: Likewise.
95260         * m4/strftime.m4: Likewise.
95261
95262 2000-07-02  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/quotearg.c (mbstate_t): Don't define here.
95265
95266 2000-07-02  Jim Meyering  <meyering@lucent.com>
95267
95268         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95269
95270 2000-07-01  Jim Meyering  <meyering@lucent.com>
95271
95272         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95273
95274 2000-07-01  Jim Meyering  <meyering@lucent.com>
95275
95276         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95277         problem.
95278
95279 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95280
95281         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95282         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95283
95284 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95285
95286         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95287         per change in ../m4/ls-mntd-fs.m4.
95288         (read_filesystem_list): Ignore symbolic links.
95289
95290 2000-06-29  Jim Meyering  <meyering@lucent.com>
95291
95292         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95293         for declaration of strcmp.
95294
95295         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95296
95297         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95298         Avoid warning by casting result to `char *' to remove `const'.
95299
95300 2000-06-28  Jim Meyering  <meyering@lucent.com>
95301
95302         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95303         included by quotearg.c, for which we perform this test.  From
95304         Bruno Haible.
95305
95306 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95307
95308         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95309         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95310         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95311
95312 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95313
95314         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95315
95316 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95317
95318         savedir now sets errno on failure and invokes xmalloc to get memory.
95319         Fix a couple of other minor bugs while we're at it.
95320
95321         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95322         (NAMLEN): Remove macro.
95323         (malloc, realloc): Remove decls.
95324         (stpcpy): Likewise.
95325         ("xalloc.h"): Include.
95326         (NAME_SIZE_DEFAULT): New macro.
95327         (savedir): Use xmalloc / xrealloc to allocate memory.
95328         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95329         Skip "" directory entries.
95330         Use strlen to calculate directory entry length, since the old method
95331         is rarely used these days and isn't worth supporting.
95332         Don't use a pointer after freeing it.
95333         Check for integer overflow when calculating allocation size.
95334         Use memcpy to copy entries, instead of stpcpy.
95335         Set errno properly when returning NULL.
95336         Check for readdir error.
95337
95338 2000-06-26  Jim Meyering  <meyering@lucent.com>
95339
95340         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95341
95342 2000-06-25  Jim Meyering  <meyering@lucent.com>
95343
95344         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95345         Linux header bug when _XOPEN_SOURCE is defined to 500.
95346
95347 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95348
95349         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95350         deficiency.
95351
95352 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95353
95354         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95355         Include xalloc.h.
95356         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95357
95358 2000-06-24  Jim Meyering  <meyering@lucent.com>
95359
95360         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95361         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95362         for which strerror does return char*, but which lacks a conveniently
95363         accessible declaration of the function.  If the compile-test says
95364         strerror_r doesn't work, then resort to a `run'-test that works on
95365         BeOS and segfaults on DEC Unix.
95366
95367 2000-06-24  Jim Meyering  <meyering@lucent.com>
95368
95369         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95370
95371 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95372
95373         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95374         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95375
95376 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95377
95378         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95379         (mbrtowc, mbstate_t): Define substitutes if
95380         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95381         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95382         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95383
95384 2000-06-23  Jim Meyering  <meyering@lucent.com>
95385
95386         * m4/afs.m4: Add missing AC_MSG_RESULT.
95387         Reported by Bruno Haible.
95388
95389         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95390         Suggestion from Bruno Haible.
95391
95392 2000-06-23  Jim Meyering  <meyering@lucent.com>
95393
95394         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95395
95396 2000-06-21  Jim Meyering  <meyering@lucent.com>
95397
95398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95399
95400 2000-06-21  Jim Meyering  <meyering@lucent.com>
95401
95402         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95403         (noinst_HEADERS): Add getstr.h.
95404
95405         * lib/getline.c (getstr): Move into a separate file.
95406         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95407         the following changes: new parameter, delim2; both delim[12]
95408         parameters have type `int', not `char'.  The latter would lose
95409         with 8-bit delimiters.
95410         * lib/getstr.h: New file.
95411
95412 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95413
95414         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95415         than 1024, return a memory chunk of least possible size, instead
95416         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95417         Use free/xmalloc instead of xrealloc to avoid copying for very long
95418         paths.
95419
95420 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95421
95422         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95423         the empty string.
95424
95425 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95426
95427         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95428         address, not strdup.  Include <stdlib.h> and don't declare free().
95429
95430 2000-06-19  Jim Meyering  <meyering@lucent.com>
95431
95432         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95433
95434 2000-06-18  Jim Meyering  <meyering@lucent.com>
95435
95436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95437
95438         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95439         `checking whether...' message to be consistent with that of the
95440         lstat test.
95441
95442 2000-06-18  Jim Meyering  <meyering@lucent.com>
95443
95444         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95445         Besides, these days every porting target provides a mkdir function.
95446
95447         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95448         needed. (this snippet comes from src/system.h).
95449
95450 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95451
95452         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95453
95454 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95455
95456         * lib/human.c (adjust_value): New function.
95457         (human_readable_inexact): Apply rounding style even when
95458         printing approximate values.
95459
95460 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95461
95462         * lib/human.c (human_readable_inexact): Allow an input block
95463         size that is not a multiple of the output block size, and vice versa.
95464         Reported by Piergiorgio Sartor.
95465
95466 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95467
95468         * lib/getdate.y (get_date): Apply relative times after time
95469         zone indicator, not before.  Reported by Todd A. Jacobs.
95470
95471 2000-06-13  Jim Meyering  <meyering@lucent.com>
95472
95473         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95474
95475         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95476
95477 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95478
95479         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95480
95481 2000-06-12  Jim Meyering  <meyering@lucent.com>
95482
95483         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95484         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95485         optional argument.
95486         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95487         the optional argument, `lib'.
95488
95489 2000-06-08  Jim Meyering  <meyering@lucent.com>
95490
95491         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95492
95493 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95494
95495         Rewrite largefile configuration so that we don't need to run
95496         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95497         AC_CANONICAL_HOST in configure.in -- jmm]
95498
95499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95500         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95501         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95502         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95503         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95504         All uses changed.
95505         Instead of inspecting the output of getconf, try to compile the
95506         test program without and with the macro definition.
95507         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95508         for getconf.  Instead, check for the needed flags by compiling
95509         test programs.
95510
95511 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95512
95513         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95514
95515 2000-06-04  Jim Meyering  <meyering@lucent.com>
95516
95517         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95518         SunOS 4.1.4 for which gid_t is an unsigned type.
95519
95520 2000-06-03  Jim Meyering  <meyering@lucent.com>
95521
95522         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95523         now that autoconf requires that.
95524
95525         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95526         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95527         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95528
95529 2000-06-03  Jim Meyering  <meyering@lucent.com>
95530
95531         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95532
95533 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95534
95535         * m4/glibc21.m4: New file.
95536         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95537
95538 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95539
95540         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95541         newer, don't install charset.alias.
95542         * lib/config.charset: Change the Linux/glibc rules so they become empty
95543         on glibc-2.1 or newer.
95544
95545 2000-06-02  Jim Meyering  <meyering@lucent.com>
95546
95547         * lib/mountlist.c: Back out last change.  Instead, do this...
95548         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95549         me_dummy member using the same `ignore'-testing code.
95550         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95551         fs_type strings.
95552         From Mark D. Roth.
95553
95554 2000-05-29  Jim Meyering  <meyering@lucent.com>
95555
95556         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95557         mounts with the `ignore' attribute.  Based on a patch from
95558         Mark D. Roth.
95559
95560 2000-05-28  Jim Meyering  <meyering@lucent.com>
95561
95562         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95563         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95564         * m4/stat.m4: Likewise.
95565         * m4/lstat.m4: Likewise.
95566         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95567
95568         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95569         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95570
95571 2000-05-26  Jim Meyering  <meyering@lucent.com>
95572
95573         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95574
95575 2000-05-24  Jim Meyering  <meyering@lucent.com>
95576
95577         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95578         autoconf requires that.
95579         * m4/lib-check.m4: Likewise.
95580         * m4/jm-macros.m4: Likewise.
95581         * m4/strftime.m4: Likewise.
95582
95583         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95584         AC_CHECK_DECLS, now that autoconf requires that.
95585
95586 2000-05-22  Jim Meyering  <meyering@lucent.com>
95587
95588         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95589         * m4/lstat.m4: Likewise.
95590
95591 2000-05-22  Jim Meyering  <meyering@lucent.com>
95592
95593         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95594
95595 2000-05-20  Jim Meyering  <meyering@lucent.com>
95596
95597         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95598         (jm_PREREQ): Use it.
95599
95600 2000-05-18  Jim Meyering  <meyering@lucent.com>
95601
95602         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95603         back, too, since it may have been modified by allocate_entry.
95604         (hash_delete): Rewrite to use neither the assignment operator
95605         nor the comma operator in an if-expression.
95606
95607 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95608
95609         * lib/closeout.c:
95610         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95611         Remove; no longer needed.
95612         "quotearg.h": Add include.
95613         (file_name): Do not bother to explicitly initialize to NULL; it's less
95614         efficient on some hosts.
95615         (close_stdout_status): Remove test as to whether stdout was already
95616         closed; it breaks for the case "echo x | sort >&-".
95617         Quote file name colons.
95618         Do not assume that _("write error") lacks format strings.
95619
95620 2000-05-15  Jim Meyering  <meyering@lucent.com>
95621
95622         * lib/version-etc.c (version_etc_copyright): Update the copyright
95623         string used in all --version output.
95624
95625 2000-05-14  Jim Meyering  <meyering@lucent.com>
95626
95627         * lib/closeout.c (close_stdout_set_file_name): New function.
95628         (close_stdout_status): Use new file-scoped global.
95629         Return right away if fstat says the stdout file descriptor is invalid.
95630         * lib/closeout.h (close_stdout_set_file_name): Declare.
95631
95632 2000-05-10  Jim Meyering  <meyering@lucent.com>
95633
95634         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95635         (close_stdout_set_status): New function.
95636         * lib/closeout.h (close_stdout_set_status): Declare.
95637
95638 2000-05-09  Jim Meyering  <meyering@lucent.com>
95639
95640         * m4/gettext.m4: Rename this...
95641         * m4/libintl.m4: ...to this.
95642
95643 2000-05-08  Jim Meyering  <meyering@lucent.com>
95644
95645         * lib/long-options.c: Don't include closeout.h.
95646         (parse_long_options): Don't call close_stdout for --version.
95647
95648 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95649
95650         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95651         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95652         2.1.3 bug.  This avoids a clash when files like regex.c define
95653         _GNU_SOURCE.
95654
95655 2000-05-06  Jim Meyering  <meyering@lucent.com>
95656
95657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95658         (AC_REPLACE_FUNCS): Add strnlen.
95659
95660         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95661         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95662
95663         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95664         AC_SEARCH_LIBS call for nanosleep.
95665         (LIB_NANOSLEEP): Set and AC_SUBST.
95666
95667 2000-05-06  Jim Meyering  <meyering@lucent.com>
95668
95669         * lib/strnlen.c: Undefine __strnlen and strnlen.
95670         [!weak_alias]: Define __strnlen to strnlen.
95671
95672         * lib/atexit.c: New file, from libiberty.
95673
95674 2000-05-06  Jim Meyering  <meyering@lucent.com>
95675
95676         * lib/closeout.c (close_stdout_status): Also check for errors on the
95677         stderr stream.
95678
95679 2000-05-05  Jim Meyering  <meyering@lucent.com>
95680
95681         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95682         AC_SEARCH_LIBS call for clock_gettime.
95683         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95684
95685         * m4/search-libs.m4: Update from autoconf.
95686
95687         su doesn't work on Solaris 2.6.
95688         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95689         <shadow.h>.  Reported by Dragos Harabor.
95690
95691 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95692
95693         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95694         memcpy instead of xmalloc, xrealloc, path_concat.
95695         (locale_charset): Treat empty environment variables as absent.
95696         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95697
95698 2000-05-04  Jim Meyering  <meyering@lucent.com>
95699
95700         * lib/getopt.c: Update from glibc.
95701         * lib/obstack.c: Likewise.
95702         * lib/obstack.h: Likewise.
95703         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95704         file
95705
95706         * lib/regex.h: Likewise.
95707         * lib/strndup.c: Likewise.
95708         * lib/strnlen.c: New file, from glibc.
95709
95710 2000-05-03  Jim Meyering  <meyering@lucent.com>
95711
95712         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95713
95714 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95715
95716         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95717         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95718         compile-time test, rather than inspecting host and OS, to
95719         decide whether to define _LARGEFILE_SOURCE.
95720
95721 2000-05-01  Jim Meyering  <meyering@lucent.com>
95722
95723         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95724
95725         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95726         Based on a patch from Bruno Haible.
95727
95728 2000-05-01  Jim Meyering  <meyering@lucent.com>
95729
95730         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95731
95732 2000-04-29  Jim Meyering  <meyering@lucent.com>
95733
95734         * lib/path-concat.c: Declare strdup only if it's not defined.
95735         * lib/canon-host.c: Likewise.
95736
95737 2000-04-28  Jim Meyering  <meyering@lucent.com>
95738
95739         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95740         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95741         is included first, then limits.h is included by locale.h by libintl.h.
95742         From John David Anglin.
95743
95744 2000-04-25  Jim Meyering  <meyering@lucent.com>
95745
95746         * lib/makepath.c (S_IRWXUGO): Define.
95747         (make_path): Always perform explicit chmod if MODE specifies any
95748         of the `special' permission bits.  Prompted by a bug report against
95749         install from Mate Wierdl and Joost van Baal.
95750
95751 2000-04-18  Jim Meyering  <meyering@lucent.com>
95752
95753         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95754         (jm_PREREQ): Use it.
95755
95756 2000-04-18  Jim Meyering  <meyering@lucent.com>
95757
95758         * lib/README: New file.
95759
95760         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95761         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95762
95763 2000-04-17  Jim Meyering  <meyering@lucent.com>
95764
95765         Get it right :-)
95766         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95767         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95768         Suggestion from Akim Demaille.
95769
95770 2000-04-17  Jim Meyering  <meyering@lucent.com>
95771
95772         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95773         the definition of it to rpl_strftime also defined-away the system's
95774         declaration.
95775
95776 2000-04-15  Jim Meyering  <meyering@lucent.com>
95777
95778         Use `C' to denote so-called `contiguous' files, the same way
95779         that tar does.
95780         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95781         (ftypelet): Use S_ISCTG.
95782         From Michael Deutschmann.
95783
95784 2000-04-14  Jim Meyering  <meyering@lucent.com>
95785
95786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95787         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95788         clobbered.
95789
95790 2000-04-14  Jim Meyering  <meyering@lucent.com>
95791
95792         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95793
95794 2000-04-13  Jim Meyering  <meyering@lucent.com>
95795
95796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95797         AH_VERBATIM to insert required #ifndef into config.h.in.
95798         Suggestion from Akim Demaille.
95799
95800 2000-04-12  Jim Meyering  <meyering@lucent.com>
95801
95802         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95803         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95804         Christian Krackowizer.
95805
95806         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95807         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95808         (AC_SYS_LARGEFILE): Require.
95809         (AM_C_PROTOTYPES): Require.
95810
95811 2000-04-08  Jim Meyering  <meyering@lucent.com>
95812
95813         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95814         names don't conflict.  Reported by Eli Zaretskii.
95815
95816 2000-04-07  Jim Meyering  <meyering@lucent.com>
95817
95818         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95819         sys/types.h, to work around system header problems on AIX 3.2.5.
95820         From Bruno Haible.
95821
95822 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95823
95824         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95825         bug.  Deal with the different error behavior of Irix iconv.
95826
95827 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95828
95829         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95830         IRIX if the installer said otherwise.
95831
95832 2000-04-05  Jim Meyering  <meyering@lucent.com>
95833
95834         Portability tweaks required for ultrix4.3.
95835         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95836         (jm_CHECK_DECLS): Add getutent to the list of functions.
95837         (_jm_DECL_HEADERS): Add utmpx.h.
95838         From John David Anglin.
95839
95840         * m4/strftime.m4: Back out the 2000-04-02 change.
95841         Instead of that change, simply undefine putenv in the test program.
95842
95843 2000-04-05  Jim Meyering  <meyering@lucent.com>
95844
95845         Portability tweaks required for ultrix4.3.
95846         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95847         getutent.
95848         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95849         * lib/canon-host.c: Declare strdup.
95850         * lib/path-concat.c: Likewise.
95851         From John David Anglin.
95852
95853 2000-04-04  Jim Meyering  <meyering@lucent.com>
95854
95855         Be more DOS 8.3-friendly.
95856         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95857         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95858         * lib/Makefile.am: Reflect renaming.
95859         Reported by Eli Zaretskii.
95860
95861         Use a temporary file name that won't clash with `charset.alias'
95862         in the DOS 8.3 name space.
95863         * lib/Makefile.am (charset_tmp): Define.
95864         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95865         (uninstall-local): Likewise.
95866         Reported by Eli Zaretskii.
95867
95868 2000-04-03  Jim Meyering  <meyering@lucent.com>
95869
95870         * m4/gettext.m4: Fix typo in comment.
95871
95872         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95873         textutils/configure.in).  Suggestion from Paul Eggert.
95874         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95875
95876 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95877
95878         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95879         variable in the shell rather than using putenv, which isn't
95880         portable.  This avoids the configure-time inter-test dependency
95881         on the potentially-renamed putenv function.
95882
95883 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95884
95885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95886         before checking struct stat.st_blksize, so that
95887         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95888
95889 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95890
95891         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95892         since strftime.c uses HAVE_STRFTIME to decide whether to use
95893         the underlying strftime.
95894
95895 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95896
95897         * lib/time/strftime.c (my_strftime): Make sure we call the system
95898         strftime, not ourselves, when invoking the underlying strftime.
95899
95900 2000-03-24  Jim Meyering  <meyering@lucent.com>
95901
95902         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95903         (charset_alias): Define.
95904         (install-exec-local): Factor out common code.
95905         (uninstall-local): Split lines longer than 80.
95906         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95907         (SUFFIXES): Define.
95908         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95909         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95910
95911 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95912
95913         * lib/config.charset: Output a line containing "Packages using this
95914         file".
95915         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95916         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95917         ref-del.sed): New rules.
95918
95919 2000-03-17  Jim Meyering  <meyering@lucent.com>
95920
95921         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95922         Otherwise, include <strings.h>
95923
95924 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95925
95926         * lib/unicodeio.c (utf8_wctomb): New function.
95927         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95928         format instead of in UCS-4 with platform dependent endianness.
95929
95930 2000-03-10  Jim Meyering  <meyering@lucent.com>
95931
95932         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95933         From Marco Franzen.
95934
95935 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95936
95937         * lib/savedir.c (savedir): Work even if directory size is
95938         negative; this can happen with some screwy NFS configurations.
95939
95940 2000-03-06  Jim Meyering  <meyering@lucent.com>
95941
95942         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95943         if it's NULL (because we ran out of memory).  From Bruno Haible.
95944
95945 2000-03-05  Jim Meyering  <meyering@lucent.com>
95946
95947         * lib/localcharset.c ("path-concat.h"): Include.
95948         (get_charset_aliases): Use path_concat instead of ANSI string
95949         concatenation.
95950
95951         * lib/unicodeio.h (PARAMS): Define.
95952         Use it to guard prototype.
95953
95954 2000-03-04  Jim Meyering  <meyering@lucent.com>
95955
95956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95957         for lib/localcharset.c.
95958
95959 2000-03-04  Jim Meyering  <meyering@lucent.com>
95960
95961         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95962         installing into it.
95963         (uninstall-local): Uncomment this rule so `make distcheck' works
95964         once again.
95965
95966         * lib/unicodeio.c (<errno.h>): Include it.
95967         (errno): Declare if not defined.
95968
95969         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95970
95971         * lib/config.charset: New version, incorporating remarks from a linux
95972         i18n mailing list.  From Bruno Haible.
95973
95974 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95975
95976         * m4/codeset.m4: New file.
95977         * m4/iconv.m4: New file.
95978         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95979
95980 2000-03-03  Jim Meyering  <meyering@lucent.com>
95981
95982         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95983
95984 2000-03-02  Jim Meyering  <meyering@lucent.com>
95985
95986         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95987         the messages come out on separate lines.
95988
95989         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95990         rather than jm_CHECK_DECLARATIONS.
95991         * m4/decl.m4: Remove now-unused file.
95992
95993         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95994         geteuid.
95995
95996 2000-03-02  Jim Meyering  <meyering@lucent.com>
95997
95998         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95999
96000 2000-03-01  Jim Meyering  <meyering@lucent.com>
96001
96002         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96003         * lib/unicodeio.c: Likewise.
96004
96005 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96006
96007         * lib/config.charset: New file.
96008         * lib/localcharset.c: New file.
96009         * lib/unicodeio.h, lib/unicodeio.c: New files.
96010         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96011         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96012         (noinst_HEADERS): Add unicodeio.h.
96013         (all-local, install-exec-local, charset.alias): New targets.
96014
96015 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96016
96017         * lib/quotearg.c (ALERT_CHAR): New macro.
96018         (quotearg_buffer_restyled): Use it.
96019
96020 2000-02-27  Jim Meyering  <meyering@lucent.com>
96021
96022         * m4/check-decl.m4: Add getenv to the list.
96023
96024 2000-02-27  Jim Meyering  <meyering@lucent.com>
96025
96026         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96027         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96028
96029         * lib/backupfile.c: Guard inclusion of stdlib.h with
96030         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96031         Declare malloc if needed.
96032
96033         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96034         `#ifndef HAVE_DECL..'
96035         now that autoconf always defines the HAVE_DECL_ symbols.
96036         * lib/human.c: Likewise.
96037         * lib/same.c: Likewise.
96038         * lib/strtoumax.c: Likewise.
96039
96040         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96041         declaration check was not run.
96042         * lib/hash.c: Likewise.
96043         * lib/human.c: Likewise.
96044         * lib/same.c: Likewise.
96045         * lib/strtoumax.c: Likewise.
96046
96047         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96048         `.', then first look up the entire `.'-containing string as a login
96049         name.
96050
96051 2000-02-23  Jim Meyering  <meyering@lucent.com>
96052
96053         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96054         in place of my hack.
96055
96056 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96057
96058         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96059         (textint): New typedef.
96060         (parser_control): Member year changed from int to textint.
96061         All uses changed.
96062         (YYSTYPE): Removed; replaced by %union with int and textint members.
96063         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96064         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96065         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96066         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96067         (date, number, to_year): Use width of number in digits, not its value,
96068         to determine whether it's a 2-digit year, or a 2-digit time.
96069         (yylex): Store number of digits of numeric tokens.
96070         Reported by John Kendall.
96071
96072         (parser_control): Changed from struct parser_control to typedef (for
96073         consistency).  All uses changed.
96074
96075         (tID): Removed; not used.
96076         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96077
96078 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96079
96080         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96081         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96082
96083 2000-02-12  Jim Meyering  <meyering@lucent.com>
96084
96085         * lib/userspec.c (ISDIGIT): Define it.
96086         (isdigit): Remove definition.
96087         (is_number): Use ISDIGIT, not isdigit.
96088         <libintl.h>: Include.
96089         (_ and N_): Define.
96090         (parse_user_spec): Mark translatable strings.
96091
96092 2000-02-10  Jim Meyering  <meyering@lucent.com>
96093
96094         With these changes, nanosleep.[ch] are finally enough like the other
96095         lib/* replacement files to compile on a few more losing systems.
96096
96097         * lib/nanosleep.h: Don't include config.h.
96098         Remove prototype from declaration of nanosleep.
96099         (PARAMS): Remove now-unneeded definition.
96100         * lib/nanosleep.c: #undef nanosleep.
96101         (rpl_nanosleep): Rename from nanosleep.
96102
96103 2000-02-10  Jim Meyering  <meyering@lucent.com>
96104
96105         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96106         gnu_nanosleep to rpl_nanosleep.
96107
96108 2000-02-09  Jim Meyering  <meyering@lucent.com>
96109
96110         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96111         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96112
96113 2000-02-08  Akim Demaille  <akim@epita.fr>
96114
96115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96116         `[' and `]' and remove uses of `changequote'.
96117         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96118         (AC_SYS_LARGEFILE): Likewise.
96119         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96120         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96121         of changequote.
96122         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96123         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96124         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96125         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96126
96127 2000-02-05  Jim Meyering  <meyering@lucent.com>
96128
96129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96130         Remove explicit use of AC_HEADER_TIME.  It is required by
96131         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96132         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96133         in autoconf whereby the expansion of the latter ended up preceding
96134         the expansion of its prerequisite, AC_HEADER_TIME.
96135         Reported by Volker Borchert.
96136
96137 2000-02-03  Jim Meyering  <meyering@lucent.com>
96138
96139         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96140
96141 2000-02-03  Jim Meyering  <meyering@lucent.com>
96142
96143         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96144         rather than with `#if HAVE_UTMPNAME'.
96145
96146 2000-02-02  Jim Meyering  <meyering@lucent.com>
96147
96148         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96149         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96150         Reported by Eli Zaretskii.
96151
96152 2000-02-01  Jim Meyering  <meyering@lucent.com>
96153
96154         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96155
96156 2000-01-31  Jim Meyering  <meyering@lucent.com>
96157
96158         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96159         functions.  Add the time.h and sys/time.h headers along with the
96160         AC_REQUIRE'ment of AC_HEADER_TIME.
96161
96162 2000-01-31  Jim Meyering  <meyering@lucent.com>
96163
96164         * lib/nanosleep.h (nanosleep): Guard declaration with
96165         `#if ! HAVE_DECL_NANOSLEEP'.
96166         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96167         the declaration in that vendor's sys/timers.h.
96168         Reported by Christian Krackowizer.
96169
96170         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96171         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96172         (ISPRINT): Likewise.
96173         Reported by Tom Tromey.
96174
96175 2000-01-30  Jim Meyering  <meyering@lucent.com>
96176
96177         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96178
96179         * m4/prereq.m4 (utmp_includes): Define.
96180         Check for ut_user and ut_name members in both struct utmpx
96181         and struct utmp.
96182
96183 2000-01-30  Jim Meyering  <meyering@lucent.com>
96184
96185         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96186         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96187         header files where only utmpx.ut_user is declared.
96188
96189         * lib/readutmp.h (UT_USER): Define.
96190
96191 2000-01-29  Jim Meyering  <meyering@lucent.com>
96192
96193         * m4/lib-check.m4: New file containing library-related checks from
96194         fileutils and sh-utils (textutils had none).
96195
96196 2000-01-28  Jim Meyering  <meyering@lucent.com>
96197
96198         * m4/perl.m4: Change format of warning message to look more like that
96199         from the missing script.  Suggestion from François Pinard.
96200
96201 2000-01-25  Jim Meyering  <meyering@lucent.com>
96202
96203         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96204         well as time.h in the compile check.
96205         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96206         Fix typo in cross-compiling case: s/yes/no/.
96207
96208 2000-01-23  Jim Meyering  <meyering@lucent.com>
96209
96210         * m4/jm-macros.m4: Move df-related tests here from
96211         fileutils/configure.in
96212
96213         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96214         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96215
96216         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96217         s/space/ac_fsusage_space/.
96218         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96219
96220         * m4/ftruncate.m4: New file (derived from part of
96221         fileutils/configure.in).
96222         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96223         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96224
96225         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96226         AC_SUBST these here, rather than just in sh-util/configure.in, so
96227         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96228         all the same.
96229         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96230         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96231         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96232         (AC_SUBST(POW_LIBM)): Likewise.
96233         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96234
96235 2000-01-23  Jim Meyering  <meyering@lucent.com>
96236
96237         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96238         obstack.c.
96239
96240 2000-01-22  Jim Meyering  <meyering@lucent.com>
96241
96242         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96243
96244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96245
96246         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96247         configure.in
96248         (AC_CHECK_HEADERS): Likewise for sh-utils.
96249         (AC_CHECK_HEADERS): Likewise for textutils.
96250         Merge the three lists of headers.
96251
96252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96253         from fileutils' configure.in.
96254
96255         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96256         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96257         check-decl.m4.
96258
96259         * m4/check-decl.m4: Use #if rather than #ifdef.
96260         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96261         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96262         (_jm_DECL_HEADERS): Define new function.
96263         (jm_CHECK_DECLARATIONS): Require it.
96264
96265 2000-01-22  Jim Meyering  <meyering@lucent.com>
96266
96267         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96268         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96269         Required for some AIX systems.  Reported by Christian Krackowizer.
96270         [TESTING] (main): New function.
96271
96272         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96273         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96274         letters.
96275
96276         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96277         iswprint.
96278
96279         * lib/strverscmp.c (ISDIGIT): Define.
96280         (strverscmp): Use ISDIGIT, not isdigit.
96281
96282 2000-01-19  Jim Meyering  <meyering@lucent.com>
96283
96284         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96285         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96286         defines `struct timespec' in <sys/time.h>
96287
96288         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96289         Thanks to Akim for explaining.
96290
96291 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96292
96293         * lib/nanosleep.c (nanosleep):
96294         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96295         POSIX.1 doesn't require SA_INTERRUPT and some systems
96296         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96297         it's been part of POSIX.1 since day 1 (in 1988).
96298
96299 2000-01-17  Jim Meyering  <meyering@lucent.com>
96300
96301         * lib/interlock: Remove unused file.  Reported by François Pinard.
96302
96303 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96304
96305         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96306         alert, backslash, formfeed, and vertical tab unnecessarily in
96307         shell quoting style.
96308
96309 2000-01-16  Jim Meyering  <meyering@lucent.com>
96310
96311         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96312         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96313         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96314         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96315
96316 2000-01-16  Jim Meyering  <meyering@lucent.com>
96317
96318         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96319         because the latter didn't work.
96320
96321 2000-01-15  Jim Meyering  <meyering@lucent.com>
96322
96323         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96324         (AC_REPLACE_FUNCS): Add memcpy and memset.
96325         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96326         Add strpbrk.
96327         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96328
96329 2000-01-12  Jim Meyering  <meyering@lucent.com>
96330
96331         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96332         (jm_PREREQ): Use it.
96333         (jm_PREREQ_READUTMP): New macro.
96334         (jm_PREREQ): Use it.
96335
96336 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96337
96338         Quote multibyte characters correctly.
96339         * m4/c-bs-a.m4: New file.
96340         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96341         (jm_PREREQ): Use it.
96342
96343 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96344
96345         * m4/uintmax_t.m4: Port to autoconf 2.13.
96346
96347 2000-01-08  Jim Meyering  <meyering@ascend.com>
96348
96349         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96350         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96351
96352 2000-01-04  Jim Meyering  <meyering@ascend.com>
96353
96354         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96355         jm_STRUCT_DIRENT_D_TYPE.
96356         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96357         jm_STRUCT_DIRENT_D_INO.
96358         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96359         jm_STRUCT_UTIMBUF.
96360         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96361         renamings.
96362         * m4/utime.m4: Likewise.
96363
96364         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96365         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96366
96367 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96368
96369         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96370         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96371
96372 2000-01-02  Jim Meyering  <meyering@ascend.com>
96373
96374         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96375         remember if this is necessary.
96376
96377 1999-12-26  Jim Meyering  <meyering@ascend.com>
96378
96379         * m4/jm-macros.m4: Use it here.
96380         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96381
96382 1999-12-23  Jim Meyering  <meyering@ascend.com>
96383
96384         * m4/jm-macros.m4: Check for clock_gettime (moved from
96385         fileutils/configure.in)
96386         Check for gettimeofday.
96387
96388 1999-12-20  Jim Meyering  <meyering@ascend.com>
96389
96390         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96391         autoconf-2.14a-1999-12-20.
96392
96393 1999-12-19  Jim Meyering  <meyering@ascend.com>
96394
96395         * m4/lstat-slash.m4: New file.
96396         * m4/jm-macros.m4: Use the new macro:
96397         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96398
96399 1999-12-07  Jim Meyering  <meyering@ascend.com>
96400
96401         * m4/perl.m4: Require that File::Compare be available, too.
96402         Too many systems seem to lack it.
96403
96404         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96405         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96406
96407 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96408
96409         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96410         problem with the QNX 4.25 shell, which doesn't propagate exit
96411         status of failed commands inside shell assignments.
96412
96413 1999-11-17  Jim Meyering  <meyering@ascend.com>
96414
96415         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96416
96417 1999-11-07  Jim Meyering  <meyering@ascend.com>
96418
96419         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96420
96421 1999-11-06  Jim Meyering  <meyering@ascend.com>
96422
96423         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96424         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96425
96426 1999-11-05  Jim Meyering  <meyering@ascend.com>
96427
96428         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96429         configure.in of textutils, fileutils, and sh-utils into this one
96430         (shared between those packages) file.
96431         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96432         AC_STRUCT_ST_BLKSIZE.
96433
96434 1999-11-03  Jim Meyering  <meyering@ascend.com>
96435
96436         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96437         of AC_CHECK_TYPE checks includes unistd.h.
96438         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96439         Suggestion from Akim Demaille.
96440
96441 1999-10-30  Jim Meyering  <meyering@ascend.com>
96442
96443         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96444         m4-quoted string.
96445         * m4/ls-mntd-fs.m4: Likewise.
96446         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96447         * m4/jm-winsz1.m4: Likewise.
96448
96449         * m4/const.m4: Remove file, since the fix made it into the experimental
96450         version of autoconf.
96451         * m4/mktime.m4: Likewise.
96452
96453         * m4/check-type.m4: Remove file, now that the latest version of
96454         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96455
96456         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96457         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96458         AC_CHECK_TYPE.
96459
96460 1999-10-04  Jim Meyering  <meyering@ascend.com>
96461
96462         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96463
96464 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96465
96466         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96467         2.95.1 bug with HP-UX 10.20.
96468
96469 1999-09-17  Jim Meyering  <meyering@ascend.com>
96470
96471         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96472         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96473         due to missing strdup (against sh-utils-2.0).
96474
96475 1999-08-29  Jim Meyering  <meyering@ascend.com>
96476
96477         * m4/jm-macros.m4: Require jm_BISON.
96478         * m4/bison.m4: New file.
96479
96480 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96481
96482         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96483         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96484
96485 1999-08-05  Jim Meyering  <meyering@ascend.com>
96486
96487         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96488         to avoid conflicts with `conftest' on 8+3 filesystems.
96489         Suggestion from Eli Zaretskii.
96490
96491 1999-08-04  Jim Meyering  <meyering@ascend.com>
96492
96493         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96494         fileutils and sh-utils (textutils's getline test was inadequate).
96495         (AM_FUNC_GETLINE): Run this test.
96496         (AC_CHECK_FUNCS): Check for getdelim.
96497         Reported by Bob Proulx.
96498
96499 1999-08-02  Jim Meyering  <meyering@ascend.com>
96500
96501         * m4/jm-macros.m4: Add a comment.
96502
96503 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96504
96505         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96506         <inttypes.h> defines strtoumax as a macro (and not as a
96507         function).
96508
96509 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96510
96511         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96512         that we can shift, multiply and divide unsigned long long
96513         values; Ultrix cc can't do it.
96514
96515 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96516
96517         * m4/mktime.m4: New file, which is a preview of what should appear
96518         in the next public autoconf release.
96519
96520 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96521
96522         * m4/lfs.m4: Remove this file.
96523         * m4/largefile.m4: New file.  It contains the old contents of
96524         lfs.m4, except that all names with prefix AC_LFS have been
96525         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96526         compatible with future autoconf versions.  Also, some minor m4
96527         quoting problems have been fixed.
96528
96529 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96530
96531         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96532         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96533         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96534         and simplify the shell code.
96535
96536 1999-08-01  Jim Meyering  <meyering@ascend.com>
96537
96538         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96539         m4.
96540
96541 1999-07-20  Jim Meyering  <meyering@ascend.com>
96542
96543         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96544
96545 1999-07-15  Jim Meyering  <meyering@ascend.com>
96546
96547         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96548
96549 1999-05-22  Jim Meyering  <meyering@ascend.com>
96550
96551         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96552
96553 1999-05-20  Jim Meyering  <meyering@ascend.com>
96554
96555         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96556         Add a colon after each `then' in case $4 is empty.
96557
96558 1999-05-16  Jim Meyering  <meyering@ascend.com>
96559
96560         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96561
96562 1999-05-10  Jim Meyering  <meyering@ascend.com>
96563
96564         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96565
96566         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96567         AC_FUNC_MKTIME.
96568
96569 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96570
96571         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96572
96573 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96574
96575         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96576         not CPPFLAGS, so that linking works correctly in IRIX.
96577
96578 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96579
96580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96581
96582 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96583
96584         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96585         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96587         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96588         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96589
96590         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96591
96592 1999-04-20  Jim Meyering  <meyering@ascend.com>
96593
96594         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96595         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96596         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96597
96598 1999-04-18  Jim Meyering  <meyering@ascend.com>
96599
96600         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96601         * m4/jm-macros.m4: Use it.
96602
96603 1999-04-06  Jim Meyering  <meyering@ascend.com>
96604
96605         * m4/strftime.m4: Remove test for %f.
96606
96607 1999-03-29  Jim Meyering  <meyering@ascend.com>
96608
96609         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96610         superset of the AC_TYPE_* checks in the textutils, fileutils,
96611         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96612         AC_TYPE_PID_T.
96613
96614 1999-03-28  Jim Meyering  <meyering@ascend.com>
96615
96616         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96617         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96618         replaced e.g., in the *.sh files of the sh-utils.
96619
96620 1999-03-20  Jim Meyering  <meyering@ascend.com>
96621
96622         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96623         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96624         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96625
96626 1999-03-19  Jim Meyering  <meyering@ascend.com>
96627
96628         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96629
96630 1999-03-12  Jim Meyering  <meyering@ascend.com>
96631
96632         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96633
96634 1999-03-07  Jim Meyering  <meyering@ascend.com>
96635
96636         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96637         declared.
96638
96639 1999-02-17  Jim Meyering  <meyering@ascend.com>
96640
96641         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96642         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96643
96644 1999-02-07  Jim Meyering  <meyering@ascend.com>
96645
96646         * m4/group-member.m4: New file -- extracted from sh-utils'
96647         configure.in.
96648
96649         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96650         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96651
96652 1999-02-06  Jim Meyering  <meyering@ascend.com>
96653
96654         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96655         * m4/fnmatch.m4: Likewise.
96656         * m4/getgroups.m4: Likewise.
96657         * m4/lstat.m4: Likewise.
96658         * m4/malloc.m4: Likewise.
96659         * m4/putenv.m4: Likewise.
96660         * m4/realloc.m4: Likewise.
96661         * m4/regex.m4: Likewise.
96662         * m4/stat.m4: Likewise.
96663         * m4/strftime.m4: Likewise.
96664         Suggestion from Alain Magloire.
96665
96666         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96667         * m4/fnmatch.m4: Likewise.
96668         * m4/getgroups.m4: Likewise.
96669         * m4/getline.m4: Likewise.
96670         * m4/lstat.m4: Likewise.
96671         * m4/malloc.m4: Likewise.
96672         * m4/memcmp.m4: Likewise.
96673         * m4/putenv.m4: Likewise.
96674         * m4/realloc.m4: Likewise.
96675         * m4/regex.m4: Likewise.
96676         * m4/stat.m4: Likewise.
96677         * m4/strftime.m4: Likewise.
96678         Suggestion from Alain Magloire.
96679
96680         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96681         an argument.
96682
96683         * m4/regex.m4: Add a run-time Test for proper operation of
96684         re_compile_pattern.
96685
96686 1999-01-31  Jim Meyering  <meyering@ascend.com>
96687
96688         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96689
96690 1999-01-30  Jim Meyering  <meyering@ascend.com>
96691
96692         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96693
96694         * m4/jm-mktime.m4: Make this a wrapper around the official
96695         AM_FUNC_MKTIME rather than my private copy, now that the official one
96696         is up to date.
96697         * m4/mktime.m4: Remove file.
96698
96699         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96700         * m4/uptime.m4: Likewise.
96701         * m4/uintmax_t.m4: Likewise.
96702
96703 1999-01-28  Jim Meyering  <meyering@ascend.com>
96704
96705         * m4/jm-macros.m4: Use jm_AFS.
96706         * m4/afs.m4: New file (from fileutils' configure.in).
96707
96708         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96709         * m4/chown.m4: Likewise.
96710         * m4/d-ino.m4: Likewise.
96711         * m4/d-type.m4: Likewise.
96712         * m4/fnmatch.m4: Likewise.
96713         * m4/getgroups.m4: Likewise.
96714         * m4/gettext.m4: Likewise.
96715         * m4/jm-mktime.m4: Likewise.
96716         * m4/jm-winsz2.m4: Likewise.
96717         * m4/lcmessage.m4: Likewise.
96718         * m4/ls-mntd-fs.m4: Likewise.
96719         * m4/malloc.m4: Likewise.
96720         * m4/memcmp.m4: Likewise.
96721         * m4/putenv.m4: Likewise.
96722         * m4/realloc.m4: Likewise.
96723         * m4/st_mtim.m4: Likewise.
96724         * m4/strftime.m4: Likewise.
96725
96726 1999-01-16  Jim Meyering  <meyering@ascend.com>
96727
96728         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96729         (ARGMATCH_DIE_DECL): Define.
96730
96731 1999-01-12  Jim Meyering  <meyering@ascend.com>
96732
96733         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96734         Reported by Lars Hecking.
96735
96736 1999-01-10  Jim Meyering  <meyering@ascend.com>
96737
96738         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96739         gross kludge.
96740         * m4/inttypes_h.m4: Likewise.
96741         * m4/lstat.m4: Likewise.
96742         * m4/malloc.m4: Likewise.
96743         * m4/readdir.m4: Likewise.
96744         * m4/realloc.m4: Likewise.
96745         * m4/st_dm_mode.m4: Likewise.
96746         * m4/stat.m4: Likewise.
96747         * m4/utimbuf.m4: Likewise.
96748         * m4/utimes.m4: Likewise.
96749
96750         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96751         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96752         comments in config.h.in are meaningful.
96753
96754         * m4/jm-macros.m4: Require autoconf-2.13 here.
96755
96756         * m4/regex.m4: By default, don't use the included regex.c on systems
96757         with glibc 2.  Suggestion from Uli Drepper.
96758
96759 1999-01-02  Jim Meyering  <meyering@ascend.com>
96760
96761         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96762
96763 1998-12-18  Jim Meyering  <meyering@ascend.com>
96764
96765         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96766         Based on a suggestion from Lars Hecking.
96767
96768 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96769
96770         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96771
96772 1998-11-16  Jim Meyering  <meyering@ascend.com>
96773
96774         * m4/lfs.m4: Double-quote the `uname...` expression.
96775
96776 1998-11-14  Jim Meyering  <meyering@ascend.com>
96777
96778         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96779         * m4/stat.m4: Likewise.
96780
96781 1998-11-03  Jim Meyering  <meyering@ascend.com>
96782
96783         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96784         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96785
96786 1998-10-18  Jim Meyering  <meyering@ascend.com>
96787
96788         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96789
96790 1998-10-17  Jim Meyering  <meyering@ascend.com>
96791
96792         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96793         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96794         calls for those previously hard-coded headers.  Instead, take a new
96795         parameter.
96796         (jm_CHECK_DECLARATIONS): Reflect interface change.
96797         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96798         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96799
96800         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96801
96802 1998-10-14  Jim Meyering  <meyering@ascend.com>
96803
96804         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96805         instead of "TZ=America/Vancouver".  From Paul Eggert.
96806
96807 1998-10-11  Jim Meyering  <meyering@ascend.com>
96808
96809         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96810         This adds a test for a recently added compatibility fix for mktime.c.
96811         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96812
96813 1998-09-27  Jim Meyering  <meyering@ascend.com>
96814
96815         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96816
96817         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96818         ../configure.in, including a change from Gordon Matzigkeit to allow
96819         cross-compiling for the Hurd.
96820
96821         * m4/glibc.m4: New file/macro to test for the GNU C Library
96822         versions 1 and 2.  From Gordon Matzigkeit.
96823         Indent.
96824
96825 1998-09-21  Jim Meyering  <meyering@ascend.com>
96826
96827         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96828
96829 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96830
96831         Port nanosecond-resolution times to UnixWare 2.1.2 and
96832         pedantic Solaris 2.6.
96833
96834         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96835         AC_STRUCT_ST_MTIM.
96836         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96837         Generate name of ns member, instead of just 1 or undef.
96838         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96839
96840 1998-08-15  Jim Meyering  <meyering@ascend.com>
96841
96842         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96843         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96844         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96845         instead of jm_TYPE_SSIZE_T.
96846
96847 1998-08-12  Jim Meyering  <meyering@ascend.com>
96848
96849         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96850
96851 1998-08-02  Jim Meyering  <meyering@ascend.com>
96852
96853         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96854         in acconfig.h manually.
96855
96856 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96857
96858         * m4/st_mtim.m4: New file.
96859
96860 1998-07-28  Jim Meyering  <meyering@ascend.com>
96861
96862         * m4/utimes.m4: Undef stat.
96863
96864 1998-07-25  Jim Meyering  <meyering@ascend.com>
96865
96866         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96867         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96868
96869 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96870
96871         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96872         uid and gid actually remain unchanged.
96873
96874 1998-07-07  Jim Meyering  <meyering@ascend.com>
96875
96876         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96877
96878 1998-07-04  Jim Meyering  <meyering@ascend.com>
96879
96880         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96881         to prove that this macro can be used in packages without regex.c.
96882
96883 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96884
96885         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96886         is to be used.
96887
96888 1998-07-03  Jim Meyering  <meyering@ascend.com>
96889
96890         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96891
96892         * m4/gettext.m4: New file -- from gettext-0.10.35.
96893         * m4/lcmessage.m4: Likewise.
96894         * m4/progtest.m4: Likewise.
96895
96896         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96897         * m4/jm-macros.m4: Require the new macro.
96898
96899 1998-06-29  Jim Meyering  <meyering@ascend.com>
96900
96901         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96902         for the definition of NGROUPS (used in a system header included
96903         by sys/mount.h).
96904
96905 1998-06-28  Jim Meyering  <meyering@ascend.com>
96906
96907         * m4/ls-mntd-fs.m4: New file.
96908         * m4/fstypename.m4: New file.
96909
96910         * m4/jm-macros.m4: Require the new macro.
96911         * m4/jm-glibc-io.m4: New file.
96912
96913 1998-05-19  Jim Meyering  <meyering@ascend.com>
96914
96915         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96916         * m4/lchown.m4: New file.
96917
96918         * m4/Makefile.am.in: New file.
96919         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96920
96921 1998-05-14  Jim Meyering  <meyering@ascend.com>
96922
96923         * m4/Makefile.am (EXTRA_DIST): Add them.
96924         * m4/jm-macros.m4: New file.
96925         * m4/utimbuf.m4: New file.
96926
96927 1998-05-12  Jim Meyering  <meyering@ascend.com>
96928
96929         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96930
96931 1998-05-11  Jim Meyering  <meyering@ascend.com>
96932
96933         * m4/isc-posix.m4: New file.
96934
96935 1998-05-10  Jim Meyering  <meyering@ascend.com>
96936
96937         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96938
96939 1998-05-09  Jim Meyering  <meyering@ascend.com>
96940
96941         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96942         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96943         with automake.
96944
96945         * m4/ssize_t.m4: New file.
96946         * m4/mktime.m4: Remove file -- the new automake has this now.
96947
96948 1998-04-26  Jim Meyering  <meyering@ascend.com>
96949
96950         * m4/assert.m4: New file.
96951         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96952
96953 1998-04-05  Jim Meyering  <meyering@ascend.com>
96954
96955         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96956         (jm_PREREQ): Use it here.
96957
96958 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96959
96960         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96961         in acconfig.h.
96962
96963 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96964
96965         * m4/prereq.m4: New file.
96966         * m4/error.m4: New file.
96967         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96968
96969 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96970
96971         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96972         cache-check for the same variable -- that defeated the purpose of
96973         the test; the test program was never run.  This was a problem only
96974         on systems with losing getline functions -- HP-UX 10.20 is one.
96975         Reported by Bjorn Helgaas.
96976
96977 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96978
96979         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96980
96981 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96982
96983         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96984
96985         * m4/const.m4: New file.  Use an initializer in this declaration
96986         typedef int charset[2]; const charset x;
96987         Reported by Bob Glickstein.
96988
96989 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96990
96991         * m4/chown.m4: Fix reversed types on -1 args to chown.
96992         From Kaveh Ghazi.
96993
96994 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96995
96996         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96997         Add lseek and memchr.
96998
96999         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97000         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97001         have a 20-character limit on names.
97002
97003 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97004
97005         * m4/inttypes_h.m4: New file.
97006         * m4/uintmax_t.m4: New file.
97007         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97008
97009
97010         -----
97011
97012         Local Variables:
97013         coding: utf-8
97014         End:
97015
97016         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97017
97018         Copying and distribution of this file, with or without
97019         modification, are permitted provided the copyright notice
97020         and this notice are preserved.